From 9418b93fd33707d10302a61182cdb2a6cd3b59fa Mon Sep 17 00:00:00 2001 From: pixel Date: Thu, 17 Feb 2005 08:33:49 +0000 Subject: Updating makefiles to add luapatch, and updating things a bit for PS2 target. --- compile/win32/Makefile | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) (limited to 'compile/win32/Makefile') diff --git a/compile/win32/Makefile b/compile/win32/Makefile index f64d651..09a4eb1 100644 --- a/compile/win32/Makefile +++ b/compile/win32/Makefile @@ -104,15 +104,15 @@ LUAPATCH_OBJECTS = $(addsuffix .o, $(notdir $(basename $(COMMON_SOURCES)))) luap LUAPATCH_DEP = $(addsuffix .dep, $(notdir $(basename $(COMMON_SOURCES)))) luapatch.dep -all: dep cd-tool.exe Dalos.exe luapatch.exe +all: cd-tool.exe luapatch.exe stats: @wc $(WHOLE_SOURCES) -dist: all README-SDL.txt SDL.dll ../../cd-tool.lua ../../COPYING ../../FAQ-cd.txt +dist: all ../../cd-tool.lua ../../COPYING ../../FAQ-cd.txt ../../README-LuaPatch.txt # README-SDL.txt SDL.dll 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 + #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 ../../README-LuaPatch.txt 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 @@ -127,15 +127,13 @@ cd-tool.exe: $(CD_TOOL_OBJECTS) luapatch.exe: $(LUAPATCH_OBJECTS) i586-mingw32msvc-windres -I ../../ ../../luapatch.rc luapatch-res.o - $(LD) $(LDFLAGS) -o luapatch.exe $(LUAPATCH_OBJECTS) luapatch-res.o -mwindows + $(LD) $(LDFLAGS) -o luapatch.exe $(LUAPATCH_OBJECTS) luapatch-res.o -mconsole -lcomdlg32 $(STRIP) luapatch.exe upx-nrv -9 luapatch.exe clean: rm -f *.exe *.o *.dep -dep: $(ALL_DEP) - source: dep $(COMMON_SOURCES) ../../cd-tool.cpp for s in $(COMMON_SOURCES) ../../cd-tool.cpp ; do \ depfile=$${s/*\//} ; \ @@ -152,17 +150,11 @@ source: dep $(COMMON_SOURCES) ../../cd-tool.cpp define OBJECT_C_template $(addsuffix .o, $(notdir $(basename $(1)))): $(src) $$(CC) $$(CPPFLAGS) $$(CFLAGS) -c $(src) - - $(addsuffix .dep, $(notdir $(basename $(1)))): $(src) - $$(CC) $$(CPPFLAGS) $$(CFLAGS) -MM $(src) -o $$@ endef define OBJECT_CXX_template $(addsuffix .o, $(notdir $(basename $(1)))): $(src) $$(CXX) $$(CPPFLAGS) $$(CXXFLAGS) -c $(src) - - $(addsuffix .dep, $(notdir $(basename $(1)))): $(src) - $$(CXX) $$(CPPFLAGS) $$(CXXFLAGS) -MM $(src) -o $$@ endef $(foreach src, $(WHOLE_SOURCES), $(if $(filter %.c, $(src)), $(eval $(call OBJECT_C_template, $(src))), $(eval $(call OBJECT_CXX_template, $(src))))) -- cgit v1.2.3