1 src := src/sumhack.cpp src/events.cpp
4 include src/parts/Makefile-part
5 include src/sdlvf/Makefile-part
7 obj := $(src:.cpp=.o) $(csrc:.c=.o)
11 CXXFLAGS := -ansi -pedantic -Wall $(opt) -Isrc/3dengfx/src `src/3dengfx/3dengfx-config --cflags`
12 CFLAGS := -std=c89 -pedantic -Wall $(opt) `src/3dengfx/3dengfx-config --cflags`
13 libs := src/3dengfx/lib3dengfx.a `src/3dengfx/3dengfx-config --libs-no-3dengfx` -lGL -lvorbisfile
15 $(bin): $(obj) src/3dengfx/lib3dengfx.a data/tex_list
16 $(CXX) -o $@ $(obj) $(libs)
18 src/3dengfx/lib3dengfx.a:
20 ./configure --with-gfxlib=sdl --disable-ft --enable-opt --disable-debug && make
23 tools/find_textures >$@
28 @set -e; rm -f $@; $(CXX) -MM $(CXXFLAGS) $< > $@.$$$$; \
29 sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; rm -f $@.$$$$
32 @set -e; rm -f $@; $(CC) -MM $(CFLAGS) $< > $@.$$$$; \
33 sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; rm -f $@.$$$$
41 find src \( -name '*.d' -o -name '*.d.*' \) -exec $(RM) '{}' ';'