From 766388b4a337de6fc387755f5eb23c2b29a45830 Mon Sep 17 00:00:00 2001 From: pixel Date: Wed, 22 Dec 2004 15:25:00 +0000 Subject: Fixing linux compilation --- compile/win32/Makefile | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'compile') diff --git a/compile/win32/Makefile b/compile/win32/Makefile index 7071224..f64d651 100644 --- a/compile/win32/Makefile +++ b/compile/win32/Makefile @@ -16,7 +16,7 @@ CPPFLAGS = $(INCLUDES) -O4 -march=i686 -DSTDC_HEADERS -DREADLINE_STATIC -fexcept LDFLAGS = -march=i586 -O4 SOURCES = \ -../../Dalos/Dalos.cc ../../cd-tool.cpp +../../Dalos/Dalos.cc ../../cd-tool.cpp ../../luapatch.cpp MOGLTK_SOURCES = \ ../../mogltk/lib/base.cc ../../mogltk/lib/glwidgets.cc \ @@ -98,9 +98,13 @@ DALOS_OBJECTS = $(addsuffix .o, $(notdir $(basename $(COMMON_SOURCES) $(MOGLTK_S CD_TOOL_OBJECTS = $(addsuffix .o, $(notdir $(basename $(COMMON_SOURCES)))) cd-tool.o -CD_TOOL_DEP = $(addsuffix .dep, $(notdir $(basename $(COMMON_SOURCES)))) cd-tool.o +CD_TOOL_DEP = $(addsuffix .dep, $(notdir $(basename $(COMMON_SOURCES)))) cd-tool.dep -all: dep cd-tool.exe Dalos.exe +LUAPATCH_OBJECTS = $(addsuffix .o, $(notdir $(basename $(COMMON_SOURCES)))) luapatch.o + +LUAPATCH_DEP = $(addsuffix .dep, $(notdir $(basename $(COMMON_SOURCES)))) luapatch.dep + +all: dep cd-tool.exe Dalos.exe luapatch.exe stats: @wc $(WHOLE_SOURCES) @@ -108,6 +112,7 @@ stats: dist: all README-SDL.txt SDL.dll ../../cd-tool.lua ../../COPYING ../../FAQ-cd.txt zip -j9 ../cd-tool-`date +%Y%m%d`-win32.zip cd-tool.exe ../../cd-tool.lua ../../FAQ-cd.txt ../../COPYING zip -j9 ../Dalos-`date +%Y%m%d`-win32.zip Dalos.exe ../../COPYING README-SDL.txt SDL.dll + zip -j9 ../luapatch-`date +%Y%m%d`.zip luapatch.exe ../../FAQ-cd.txt ../../COPYING Dalos.exe: $(DALOS_OBJECTS) $(LD) $(LDFLAGS) -o Dalos.exe $(DALOS_OBJECTS) -lmingw32 -L/usr/local/cross-tools/i386-mingw32msvc/lib -lmingw32 -lSDLmain -lSDL -mwindows -lopengl32 -lglu32 ../../libreadline-static.a @@ -120,6 +125,12 @@ cd-tool.exe: $(CD_TOOL_OBJECTS) $(STRIP) cd-tool.exe upx-nrv -9 cd-tool.exe +luapatch.exe: $(LUAPATCH_OBJECTS) + i586-mingw32msvc-windres -I ../../ ../../luapatch.rc luapatch-res.o + $(LD) $(LDFLAGS) -o luapatch.exe $(LUAPATCH_OBJECTS) luapatch-res.o -mwindows + $(STRIP) luapatch.exe + upx-nrv -9 luapatch.exe + clean: rm -f *.exe *.o *.dep -- cgit v1.2.3