1 | CXX=g++ -O0 |
1 | CXX=g++ -O0 -ggdb |
2 | CC=g++ -O |
2 | CC=$(CXX) |
3 | CPPFLAGS=$(shell sdl-config --cflags) |
3 | CXXFLAGS=$(shell sdl-config --cflags) -DDEBUG |
4 | LDLIBS=$(shell sdl-config --libs) -lSDL_image -lGL -lCg -lCgGL -lGLU -lglut |
4 | LDLIBS=$(shell sdl-config --libs) -lSDL_image -lGL -lGLU |
5 | |
5 | |
6 | all: test |
6 | all: test |
7 | |
7 | |
8 | test: test.o entity.o oct.o view.o txtprt_import.o util.o level1.o |
8 | test: test.o entity.o oct.o view.o txtprt_import.o util.o level1.o material.o shader.o shader_vars.o y.tab.o lex.yy.o |
|
|
9 | |
|
|
10 | y.tab.o: y.tab.c lex.yy.c |
|
|
11 | |
|
|
12 | lex.yy.c: doom3map_lexer.l y.tab.h |
|
|
13 | lex $< |
|
|
14 | |
|
|
15 | y.tab.h: y.tab.c |
|
|
16 | |
|
|
17 | y.tab.c: doom3map_parser.y |
|
|
18 | yacc -d $< |
9 | |
19 | |
10 | clean: |
20 | clean: |
11 | rm -f test *.o |
21 | rm -f test *.o |
12 | |
22 | |
13 | depend: |
23 | depend: |
14 | makedepend -Y *.C >/dev/null 2>&1 |
24 | makedepend -Y *.C >/dev/null 2>&1 |
15 | |
25 | |
16 | # DO NOT DELETE |
26 | # DO NOT DELETE |
17 | |
27 | |
18 | entity.o: util.h gldebug.h entity.h oct.h view.h event.h |
28 | entity.o: opengl.h util.h entity.h oct.h view.h event.h material.h shader.h |
19 | oct.o: oct.h util.h gldebug.h view.h event.h entity.h |
29 | entity.o: shader_vars.h |
20 | test.o: util.h gldebug.h entity.h oct.h view.h event.h txtprt_import.h |
30 | level1.o: entity.h opengl.h util.h oct.h view.h event.h material.h shader.h |
|
|
31 | level1.o: shader_vars.h |
|
|
32 | material.o: opengl.h material.h util.h shader.h shader_vars.h view.h event.h |
|
|
33 | oct.o: opengl.h oct.h util.h view.h event.h entity.h material.h shader.h |
|
|
34 | oct.o: shader_vars.h |
|
|
35 | shader.o: shader.h opengl.h util.h shader_vars.h |
|
|
36 | shader_vars.o: shader_vars.h shader.h opengl.h util.h |
|
|
37 | test.o: opengl.h util.h entity.h oct.h view.h event.h material.h shader.h |
|
|
38 | test.o: shader_vars.h txtprt_import.h |
21 | txtprt_import.o: txtprt_import.h entity.h util.h gldebug.h oct.h view.h |
39 | txtprt_import.o: txtprt_import.h entity.h opengl.h util.h oct.h view.h |
22 | txtprt_import.o: event.h |
40 | txtprt_import.o: event.h material.h shader.h shader_vars.h |
23 | util.o: util.h gldebug.h entity.h oct.h view.h event.h |
41 | util.o: opengl.h util.h entity.h oct.h view.h event.h material.h shader.h |
|
|
42 | util.o: shader_vars.h |
24 | view.o: view.h util.h gldebug.h event.h oct.h |
43 | view.o: opengl.h view.h util.h event.h oct.h |
|
|
44 | x.o: shader.h opengl.h util.h shader_vars.h |