1 | CXX=g++ -O6 |
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 |
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 material.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 doom3map_parser.tab.o lex.yy.o |
|
|
9 | |
|
|
10 | doom3map_parser.tab.o: doom3map_parser.tab.c++ lex.yy.c |
|
|
11 | $(CXX) -c doom3map_parser.tab.c++ -o doom3map_parser.tab.o $(CXXFLAGS) |
|
|
12 | |
|
|
13 | lex.yy.c: doom3map_lexer.l doom3map_parser.tab.h++ |
|
|
14 | lex $< |
|
|
15 | |
|
|
16 | doom3map_parser.tab.h++: doom3map_parser.tab.c++ |
|
|
17 | |
|
|
18 | doom3map_parser.tab.c++: doom3map_parser.y++ |
|
|
19 | bison -d $< |
9 | |
20 | |
10 | clean: |
21 | clean: |
11 | rm -f test *.o |
22 | rm -f test *.o |
12 | |
23 | |
13 | depend: |
24 | depend: |
14 | makedepend -Y *.C >/dev/null 2>&1 |
25 | makedepend -Y *.C *.y++ >/dev/null 2>&1 |
15 | |
26 | |
16 | # DO NOT DELETE |
27 | # DO NOT DELETE |
17 | |
28 | |
18 | entity.o: opengl.h gldebug.h util.h entity.h oct.h view.h event.h material.h |
29 | entity.o: opengl.h util.h entity.h oct.h view.h event.h shader.h |
|
|
30 | entity.o: shader_vars.h material.h |
19 | level1.o: entity.h opengl.h gldebug.h util.h oct.h view.h event.h material.h |
31 | level1.o: entity.h opengl.h util.h oct.h view.h event.h shader.h |
20 | material.o: opengl.h gldebug.h material.h util.h |
32 | level1.o: shader_vars.h material.h |
21 | oct.o: opengl.h gldebug.h oct.h util.h view.h event.h entity.h material.h |
33 | material.o: opengl.h material.h util.h shader.h shader_vars.h view.h event.h |
22 | test.o: util.h opengl.h gldebug.h entity.h oct.h view.h event.h material.h |
34 | oct.o: opengl.h oct.h util.h view.h event.h shader.h shader_vars.h entity.h |
|
|
35 | oct.o: material.h |
|
|
36 | shader.o: shader.h opengl.h util.h shader_vars.h |
|
|
37 | shader_vars.o: shader_vars.h shader.h opengl.h util.h |
|
|
38 | test.o: opengl.h util.h entity.h oct.h view.h event.h shader.h shader_vars.h |
23 | test.o: txtprt_import.h |
39 | test.o: material.h txtprt_import.h |
24 | txtprt_import.o: txtprt_import.h entity.h opengl.h gldebug.h util.h oct.h |
40 | txtprt_import.o: txtprt_import.h entity.h opengl.h util.h oct.h view.h |
25 | txtprt_import.o: view.h event.h material.h |
41 | txtprt_import.o: event.h shader.h shader_vars.h material.h |
26 | util.o: opengl.h gldebug.h util.h entity.h oct.h view.h event.h material.h |
42 | util.o: opengl.h util.h entity.h oct.h view.h event.h shader.h shader_vars.h |
27 | view.o: opengl.h gldebug.h view.h util.h event.h oct.h |
43 | util.o: material.h |
|
|
44 | view.o: opengl.h view.h util.h event.h shader.h shader_vars.h oct.h |
|
|
45 | x.o: shader.h opengl.h util.h shader_vars.h |
|
|
46 | doom3map_parser.o: entity.h opengl.h util.h oct.h view.h event.h shader.h |
|
|
47 | doom3map_parser.o: shader_vars.h material.h |