From 5985c08d2aa70df88fde87aca1f01a80d10c382c Mon Sep 17 00:00:00 2001 From: Alexander Baldeck Date: Thu, 16 Dec 2004 17:26:14 +0000 Subject: part of autotools update (former makefile) --- makefile.static | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 makefile.static (limited to 'makefile.static') 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 $@ -- cgit v1.2.3-70-g09d2