diff --git a/Makefile b/Makefile index 8a124b8..6e4b99e 100644 --- a/Makefile +++ b/Makefile @@ -99,3 +99,7 @@ intel_targets.o: ui.h globals.h events.h bits.h date.h render.h %.o: %.c %.h types.h dclass.h $(CC) $(CFLAGS) $(CPPFLAGS) $(SDLFLAGS) -o $@ -c $< +static: all + mkdir static + cp -r art dat lib map save stats *.o static/ + make -C static -f lib/Makefile -B harris diff --git a/lib/LMReg.ttf b/lib/LMReg.ttf new file mode 100644 index 0000000..b1d88ac Binary files /dev/null and b/lib/LMReg.ttf differ diff --git a/lib/Makefile b/lib/Makefile new file mode 100644 index 0000000..f17e436 --- /dev/null +++ b/lib/Makefile @@ -0,0 +1,33 @@ +# Makefile for Harris static binary + +# Installation directories +DESTDIR ?= +PREFIX ?= /usr/local +BINIDIR := $(DESTDIR)$(PREFIX)/games +DATIDIR := $(DESTDIR)$(PREFIX)/share/games/harris +# User directories (relative to $HOME) +USAVDIR := .local/share/harris + +LDFLAGS := -Llib/ -Wl,-rpath -Wl,lib + +LIBS := -latg -lm +INTEL_OBJS := intel_bombers.o intel_fighters.o intel_targets.o +SCREEN_OBJS := main_menu.o setup_game.o setup_difficulty.o load_game.o save_game.o control.o run_raid.o raid_results.o post_raid.o $(INTEL_OBJS) +OBJS := weather.o bits.o rand.o geom.o widgets.o date.o history.o routing.o saving.o render.o events.o ui.o load_data.o dclass.o $(SCREEN_OBJS) +INCLUDES := $(OBJS:.o=.h) types.h globals.h version.h +SAVES := save/qstart.sav save/civ.sav save/abd.sav save/ruhr.sav + +SDL := `sdl-config --libs` -lSDL_ttf -lSDL_gfx -lSDL_image +SDLFLAGS := `sdl-config --cflags` + +harris: + $(CC) $(CFLAGS) $(CPPFLAGS) $(SDLFLAGS) $(LDFLAGS) $(OBJS) $(LIBS) harris.o -o $@ $(SDL) + +install: + install -d $(BINIDIR) $(DATIDIR) + install harris $(BINIDIR)/ + ./install.py -d $(DATIDIR) + +uninstall: + rm $(BINIDIR)/harris + rm -r $(DATIDIR) diff --git a/lib/libSDL-1.2.so.0 b/lib/libSDL-1.2.so.0 new file mode 100644 index 0000000..1564108 Binary files /dev/null and b/lib/libSDL-1.2.so.0 differ diff --git a/lib/libSDL_gfx.so.13 b/lib/libSDL_gfx.so.13 new file mode 100644 index 0000000..f7883f7 Binary files /dev/null and b/lib/libSDL_gfx.so.13 differ diff --git a/lib/libSDL_image-1.2.so.0 b/lib/libSDL_image-1.2.so.0 new file mode 100644 index 0000000..3a4db52 Binary files /dev/null and b/lib/libSDL_image-1.2.so.0 differ diff --git a/lib/libSDL_ttf-2.0.so.0 b/lib/libSDL_ttf-2.0.so.0 new file mode 100644 index 0000000..e87c4fc Binary files /dev/null and b/lib/libSDL_ttf-2.0.so.0 differ diff --git a/lib/libatg.so.1 b/lib/libatg.so.1 new file mode 100644 index 0000000..62a45d2 Binary files /dev/null and b/lib/libatg.so.1 differ diff --git a/lib/libdirect-1.2.so.9 b/lib/libdirect-1.2.so.9 new file mode 100644 index 0000000..b6d8d4e Binary files /dev/null and b/lib/libdirect-1.2.so.9 differ diff --git a/lib/libdirectfb-1.2.so.9 b/lib/libdirectfb-1.2.so.9 new file mode 100644 index 0000000..56ca7a6 Binary files /dev/null and b/lib/libdirectfb-1.2.so.9 differ diff --git a/lib/libfreetype.so.6 b/lib/libfreetype.so.6 new file mode 100644 index 0000000..6141cfb Binary files /dev/null and b/lib/libfreetype.so.6 differ diff --git a/lib/libfusion-1.2.so.9 b/lib/libfusion-1.2.so.9 new file mode 100644 index 0000000..cf6b935 Binary files /dev/null and b/lib/libfusion-1.2.so.9 differ diff --git a/lib/libjbig.so.0 b/lib/libjbig.so.0 new file mode 100644 index 0000000..7c0a57c Binary files /dev/null and b/lib/libjbig.so.0 differ diff --git a/lib/libjpeg.so.8 b/lib/libjpeg.so.8 new file mode 100644 index 0000000..fe1bbbc Binary files /dev/null and b/lib/libjpeg.so.8 differ diff --git a/lib/libpng12.so.0 b/lib/libpng12.so.0 new file mode 100644 index 0000000..a0103e0 Binary files /dev/null and b/lib/libpng12.so.0 differ diff --git a/lib/libtiff.so.4 b/lib/libtiff.so.4 new file mode 100644 index 0000000..0f8eab3 Binary files /dev/null and b/lib/libtiff.so.4 differ diff --git a/lib/libwebp.so.2 b/lib/libwebp.so.2 new file mode 100644 index 0000000..bffab9c Binary files /dev/null and b/lib/libwebp.so.2 differ diff --git a/lib/libz.so.1 b/lib/libz.so.1 new file mode 100644 index 0000000..8f31c98 Binary files /dev/null and b/lib/libz.so.1 differ