diff options
author | Yohann Ferreira <bertram@cegetel.net> | 2005-03-27 01:22:39 +0000 |
---|---|---|
committer | Yohann Ferreira <bertram@cegetel.net> | 2005-03-27 01:22:39 +0000 |
commit | 4c831dc330fb9ac8f6b5f05f77d2f72b5b1f32c2 (patch) | |
tree | 6f5588de14745cde1fcfd39b989c9fefab61e7c7 /dist/debian/makefile | |
parent | 66563a3822b15fe542981b0dbd2042cfc7d475d8 (diff) | |
download | mana-4c831dc330fb9ac8f6b5f05f77d2f72b5b1f32c2.tar.gz mana-4c831dc330fb9ac8f6b5f05f77d2f72b5b1f32c2.tar.bz2 mana-4c831dc330fb9ac8f6b5f05f77d2f72b5b1f32c2.tar.xz mana-4c831dc330fb9ac8f6b5f05f77d2f72b5b1f32c2.zip |
tmw debian repository initialized
Diffstat (limited to 'dist/debian/makefile')
-rw-r--r-- | dist/debian/makefile | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/dist/debian/makefile b/dist/debian/makefile new file mode 100644 index 00000000..ab0fd099 --- /dev/null +++ b/dist/debian/makefile @@ -0,0 +1,27 @@ +CXX = g++ +# optimizations +CXXFLAGS = -Wall -O3 -fexpensive-optimizations -pipe -fomit-frame-pointer -funroll-loops -fexceptions +CXXFLAGS += `sdl-config --cflags` -fexceptions `pkg-config --cflags libxml-2.0` + +LIBS := `sdl-config --libs` -lguichan_sdl -lguichan -lSDL_mixer -lSDL_image \ + `pkg-config --libs libxml-2.0` -lphysfs + +include debianfile.list + +OBJS := $(patsubst src%, obj%, $(patsubst %.cpp, %.o, $(MODULES))) + +tmw: $(OBJS) + @echo $(OBJS) + $(CXX) -o ../../tmw $(OBJS) $(LIBS) + +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 ../../obj/resources/*.o + - rm -fv ../../tmw + +obj/%.o: src/%.cpp + $(CXX) $(CXXFLAGS) -c $< -o $@ |