From a3343d0d7c2734efec19de6be934565b5967fc64 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Fri, 10 Dec 2004 21:32:35 +0000 Subject: Changed makefile a bit to have it create the object files in a separate directory. --- makefile.linuxppc | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'makefile.linuxppc') diff --git a/makefile.linuxppc b/makefile.linuxppc index f2a2bd9b..dd119a91 100644 --- a/makefile.linuxppc +++ b/makefile.linuxppc @@ -8,7 +8,9 @@ CXXFLAGS =-Wall -O3 -fexpensive-optimizations -pipe -fomit-frame-pointer -funrol CFLAGS=-ljgmod `allegro-config --libs release` -lalfont include file.list -OBJS +=src/net/win2mac.o +MODULES += src/net/win2mac.cpp + +OBJS := $(patsubst src%, obj%, $(patsubst %.cpp, %.o, $(MODULES))) tmw: $(OBJS) $(CXX) -o tmw $(OBJS) $(CFLAGS) @@ -17,9 +19,12 @@ tmw: $(OBJS) @echo "TYPE ./tmw TO LAUCH THE GAME" clean: - - rm -fv *.o - - rm -fv Net/*.o - - rm -fv Gui/*.o - - rm -fv Sound/*.o - - rm -fv Graphic/*.o - - rm -fv tmw + - rm -fv obj/*.o + - rm -fv obj/net/*.o + - rm -fv obj/gui/*.o + - rm -fv obj/sound/*.o + - rm -fv obj/graphic/*.o + - rm -fv tmw + +obj/%.o: src/%.cpp + $(CXX) $(CXXFLAGS) -c $< -o $@ -- cgit v1.2.3-70-g09d2