diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2004-12-10 21:32:35 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2004-12-10 21:32:35 +0000 |
commit | a3343d0d7c2734efec19de6be934565b5967fc64 (patch) | |
tree | 4a6b2bea0a987bb69a9d4327bab03638d77277df /makefile.macosx | |
parent | fc0a04db938e22d875803431c3b3977d5c61b526 (diff) | |
download | mana-a3343d0d7c2734efec19de6be934565b5967fc64.tar.gz mana-a3343d0d7c2734efec19de6be934565b5967fc64.tar.bz2 mana-a3343d0d7c2734efec19de6be934565b5967fc64.tar.xz mana-a3343d0d7c2734efec19de6be934565b5967fc64.zip |
Changed makefile a bit to have it create the object files in a separate directory.
Diffstat (limited to 'makefile.macosx')
-rw-r--r-- | makefile.macosx | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/makefile.macosx b/makefile.macosx index e450705c..3df4f681 100644 --- a/makefile.macosx +++ b/makefile.macosx @@ -8,7 +8,9 @@ CXXFLAGS =-Wall -O3 -fexpensive-optimizations -pipe -fomit-frame-pointer -funrol CFLAGS=`allegro-config --libs release` -lalfont /usr/lib/libjgmod.a 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,10 +19,12 @@ tmw: $(OBJS) @echo "TYPE ./tmw TO LAUCH THE GAME" clean: - - rm -fv src/*.o - - rm -fv src/Net/*.o - - rm -fv src/Gui/*.o - - rm -fv src/Sound/*.o - - rm -fv src/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 $@ |