diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2004-12-13 16:23:14 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2004-12-13 16:23:14 +0000 |
commit | 7f6f4dfebc463916a8cb82e8abebdecd2ed6e38b (patch) | |
tree | 3b875cf008e544e5effcc7edc66bc58d2c68e164 /makefile.mgw | |
parent | d32386353d28093a5d03ad99f161f8133d73e056 (diff) | |
download | mana-7f6f4dfebc463916a8cb82e8abebdecd2ed6e38b.tar.gz mana-7f6f4dfebc463916a8cb82e8abebdecd2ed6e38b.tar.bz2 mana-7f6f4dfebc463916a8cb82e8abebdecd2ed6e38b.tar.xz mana-7f6f4dfebc463916a8cb82e8abebdecd2ed6e38b.zip |
Whee, moving headers around! Also provided makefile.mgw for compiling with MinGW+MSYS.
Diffstat (limited to 'makefile.mgw')
-rw-r--r-- | makefile.mgw | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/makefile.mgw b/makefile.mgw new file mode 100644 index 00000000..1f7c565e --- /dev/null +++ b/makefile.mgw @@ -0,0 +1,30 @@ +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 + +LIBS := -ljgmod -lalfont -lguichan \ + -lguichan_allegro -lalleg -lws2_32 + +include file.list + +OBJS := $(patsubst src%, obj%, $(patsubst %.cpp, %.o, $(MODULES))) + +tmw.exe: $(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 $@ |