summaryrefslogtreecommitdiff
path: root/makefile.static
diff options
context:
space:
mode:
authorAlexander Baldeck <alexander@archlinux.org>2004-12-16 17:26:14 +0000
committerAlexander Baldeck <alexander@archlinux.org>2004-12-16 17:26:14 +0000
commit5985c08d2aa70df88fde87aca1f01a80d10c382c (patch)
treed5665de245536c39512d375f103fd5b928087bf1 /makefile.static
parent0a40257e5b5526aff5b963ed4ad8d1a8d5aa29b5 (diff)
downloadmana-client-5985c08d2aa70df88fde87aca1f01a80d10c382c.tar.gz
mana-client-5985c08d2aa70df88fde87aca1f01a80d10c382c.tar.bz2
mana-client-5985c08d2aa70df88fde87aca1f01a80d10c382c.tar.xz
mana-client-5985c08d2aa70df88fde87aca1f01a80d10c382c.zip
part of autotools update (former makefile)
Diffstat (limited to 'makefile.static')
-rw-r--r--makefile.static31
1 files changed, 31 insertions, 0 deletions
diff --git a/makefile.static b/makefile.static
new file mode 100644
index 00000000..2ee3e5fe
--- /dev/null
+++ b/makefile.static
@@ -0,0 +1,31 @@
+CXX = g++
+# for debugging
+#CXXFLAGS += -g -march=i686 -O2
+
+# excessive optimizations for pentium pro and later
+CXXFLAGS +=-Wall -march=i686 -O3 -fexpensive-optimizations -pipe -fomit-frame-pointer -funroll-loops -fexceptions
+CXXFLAGS +=`allegro-config --cflags release`
+
+LIBS := -ljgmod `allegro-config --libs release` -lalfont -lguichan \
+ -lguichan_allegro
+
+include file.list
+
+OBJS := $(patsubst src%, obj%, $(patsubst %.cpp, %.o, $(MODULES)))
+
+tmw: $(OBJS)
+ $(CXX) -o tmw $(OBJS) $(LIBS)
+ @echo -
+ @echo -
+ @echo "TYPE ./tmw TO LAUCH THE GAME"
+
+clean:
+ - 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 $@