diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-02-19 00:07:17 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-02-19 00:07:17 +0000 |
commit | f71a143f37a9cc6b64f4231bb582d736c3d34a0b (patch) | |
tree | d920c4516c334ec9c09d3cc86ca1c42a72bfc0c3 /makefile.opengl | |
parent | 93780e52a05ead59154811767edfd5573617a65f (diff) | |
download | Mana-f71a143f37a9cc6b64f4231bb582d736c3d34a0b.tar.gz Mana-f71a143f37a9cc6b64f4231bb582d736c3d34a0b.tar.bz2 Mana-f71a143f37a9cc6b64f4231bb582d736c3d34a0b.tar.xz Mana-f71a143f37a9cc6b64f4231bb582d736c3d34a0b.zip |
Added static makefile to build with OpenGL.
Diffstat (limited to 'makefile.opengl')
-rw-r--r-- | makefile.opengl | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/makefile.opengl b/makefile.opengl new file mode 100644 index 00000000..1efbcfad --- /dev/null +++ b/makefile.opengl @@ -0,0 +1,32 @@ +CXX = g++ +# for debugging +CXXFLAGS += -g -march=i686 -O2 -Wall -D__DEBUG -DUSE_OPENGL + +# excessive optimizations for pentium pro and later +#CXXFLAGS +=-Wall -march=i686 -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_opengl -lguichan \ + -lSDL_mixer -lSDL_image `pkg-config --libs libxml-2.0` -lGL + +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 obj/resources/*.o + - rm -fv tmw + +obj/%.o: src/%.cpp + $(CXX) $(CXXFLAGS) -c $< -o $@ |