]> git.mxchange.org Git - quix0rs-blobwars.git/commitdiff
Small fixes for the Windows makefile.
authorGuus Sliepen <guus@debian.org>
Sun, 13 Feb 2011 17:08:56 +0000 (18:08 +0100)
committerGuus Sliepen <guus@debian.org>
Sun, 13 Feb 2011 17:08:56 +0000 (18:08 +0100)
makefile.windows

index 52f0ddd5adae553f3da263cb973c5c82639441a7..012ec727410c513aee8261c00f02240dc235179c 100755 (executable)
@@ -17,13 +17,13 @@ LOCALEDIR = $(PREFIX)/share/locale/
 MEDAL_SERVER_HOST = www.parallelrealities.co.uk
 MEDAL_SERVER_PORT = 80
 
-CXX=i586-mingw32msvc-g++
-SDLC=/home/steve/Windows/bin/sdl-config
+CXX = i586-mingw32msvc-g++
+SDLC ?= sdl-config
 
 CXXFLAGS += `$(SDLC) --cflags` -DVERSION=$(VERSION) -DRELEASE=$(RELEASE) -DUSEPAK=$(USEPAK)
 CXXFLAGS += -DPAKNAME=\"$(PAKNAME)\" -DPAKLOCATION=\"\" -DGAMEPLAYMANUAL=\"doc/index.html\" -Wall
 CXXFLAGS += -DLOCALEDIR=\"\" $(CFLAGS)  -DMEDAL_SERVER_HOST=\"$(MEDAL_SERVER_HOST)\" -DMEDAL_SERVER_PORT=$(MEDAL_SERVER_PORT) -Werror
-LIBS = -lmingw32 `$(SDLC) --libs` -lintl -lz -lSDL_mixer -lSDL_image -lSDL_ttf -lSDL_net -lSDL -lSDLmain -lwinmm -lgdi32 -mwindows
+LIBS = -lmingw32 `$(SDLC) --libs` -lz -lSDL_mixer -lSDL_image -lSDL_ttf -lSDL_net -lSDLmain -lSDL -lwinmm -lgdi32 -mwindows
 
 OBJS += CAudio.o
 OBJS += CBoss.o
@@ -83,6 +83,9 @@ $(PROG): $(GAMEOBJS)
 pak: $(PAKOBJS)
        $(CXX) $(PAKOBJS) $(LIBS) -o pak.exe
 
+buildpak: pak
+       ./pak data gfx music sound $(PAKNAME)
+
 %.mo: %.po
        msgfmt -c -o $@ $<