diff options
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 $@ |