From aa7a5bfcee6bb2ee1fde1220ffab7a3f478f501f Mon Sep 17 00:00:00 2001 From: thp Date: Sun, 13 May 2007 13:44:55 +0000 Subject: [PATCH] Support for SDL_mixer and SDL_image on win32 --- README.win32 | 12 ++++++++++++ makefile | 3 ++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/README.win32 b/README.win32 index 7ca96af..cbb4be6 100644 --- a/README.win32 +++ b/README.win32 @@ -6,6 +6,18 @@ http://www.netadelica.com/coding/sdl/install.html Cross-compiling on a Debian System (untested!) http://wiki.njh.eu/MinGW-Cross-Compiling_mit_SDL +You also need the win32 development packages of +SDL_mixer and SDL_image, these can be found here: + +http://www.libsdl.org/projects/SDL_mixer/ +http://www.libsdl.org/projects/SDL_image/ + +For SDL_mixer and SDL_image, copy the *.h files +to c:\mingw\include\SDL\ and the *.lib files to +c:\mingw\lib\. The .dll files have to be copied +to the tennix source folder, so they can be +found and copied to the binary release archive. + You should also consider installing UPX and ZIP into your $PATH, so the .exe file can be compressed diff --git a/makefile b/makefile index 23fbecd..fcdde54 100644 --- a/makefile +++ b/makefile @@ -7,6 +7,7 @@ CFLAGS = -Wall $$(sdl-config --cflags) SRC = tennix.c game.c graphics.c input.c sound.c OBJ = tennix.o game.o graphics.o input.o sound.o +WIN32LIBS = *.dll DATAFILES = data/*.bmp data/*.wav tennix: $(OBJ) @@ -19,7 +20,7 @@ game.o: game.c game.h graphics.h tennix.h sound.h sound.o: sound.c sound.h tennix.h release-win32: tennix - zip tennix-$(RELEASE).zip tennix.exe sdl.dll $(DATAFILES) + zip tennix-$(RELEASE).zip tennix.exe $(WIN32LIBS) $(DATAFILES) release-bin: tennix tar czvf tennix-$(RELEASE)-bin.tar.gz tennix $(DATAFILES) -- 2.11.4.GIT