summaryrefslogtreecommitdiff
path: root/makefile.linuxppc
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2004-12-10 21:32:35 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2004-12-10 21:32:35 +0000
commita3343d0d7c2734efec19de6be934565b5967fc64 (patch)
tree4a6b2bea0a987bb69a9d4327bab03638d77277df /makefile.linuxppc
parentfc0a04db938e22d875803431c3b3977d5c61b526 (diff)
downloadmana-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.linuxppc')
-rw-r--r--makefile.linuxppc19
1 files changed, 12 insertions, 7 deletions
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 $@