1 | CXX=g++ -O6 |
1 | CXX=g++ -O0 -ggdb |
2 | CC=g++ -O |
2 | CC=$(CXX) |
3 | CPPFLAGS=$(shell sdl-config --cflags) $(shell gts-config --cflags) |
3 | CXXFLAGS=$(shell sdl-config --cflags) -DDEBUG |
4 | LDLIBS=$(shell sdl-config --libs) $(shell gts-config --libs) -lGL |
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 |
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 *.C *.h |
24 | makedepend -Y *.C >/dev/null 2>&1 |
15 | |
25 | |
16 | # DO NOT DELETE |
26 | # DO NOT DELETE |
17 | |
27 | |
18 | entity.o: entity.h /usr/include/GL/gl.h /usr/include/GL/glext.h |
28 | entity.o: opengl.h util.h entity.h oct.h view.h event.h material.h shader.h |
19 | entity.o: /usr/lib/gcc-lib/x86_64-linux/3.3.4/include/stddef.h util.h oct.h |
29 | entity.o: shader_vars.h |
20 | entity.o: view.h |
30 | level1.o: entity.h opengl.h util.h oct.h view.h event.h material.h shader.h |
21 | oct.o: /usr/include/GL/gl.h /usr/include/GL/glext.h |
31 | level1.o: shader_vars.h |
22 | oct.o: /usr/lib/gcc-lib/x86_64-linux/3.3.4/include/stddef.h oct.h util.h |
32 | material.o: opengl.h material.h util.h shader.h shader_vars.h view.h event.h |
23 | oct.o: view.h entity.h |
33 | oct.o: opengl.h oct.h util.h view.h event.h entity.h material.h shader.h |
24 | se.o: /usr/include/stdlib.h /usr/include/features.h /usr/include/sys/cdefs.h |
34 | oct.o: shader_vars.h |
25 | se.o: /usr/include/gnu/stubs.h |
35 | shader.o: shader.h opengl.h util.h shader_vars.h |
26 | se.o: /usr/lib/gcc-lib/x86_64-linux/3.3.4/include/stddef.h |
36 | shader_vars.o: shader_vars.h shader.h opengl.h util.h |
27 | se.o: /usr/include/stdio.h /usr/include/bits/types.h |
37 | test.o: opengl.h util.h entity.h oct.h view.h event.h material.h shader.h |
28 | se.o: /usr/include/bits/wordsize.h /usr/include/bits/typesizes.h |
38 | test.o: shader_vars.h txtprt_import.h |
29 | se.o: /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h |
39 | txtprt_import.o: txtprt_import.h entity.h opengl.h util.h oct.h view.h |
30 | se.o: /usr/include/bits/wchar.h /usr/include/gconv.h |
40 | txtprt_import.o: event.h material.h shader.h shader_vars.h |
31 | se.o: /usr/lib/gcc-lib/x86_64-linux/3.3.4/include/stdarg.h |
41 | util.o: opengl.h util.h entity.h oct.h view.h event.h material.h shader.h |
32 | se.o: /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h |
42 | util.o: shader_vars.h |
33 | se.o: /usr/include/string.h /usr/include/math.h /usr/include/bits/huge_val.h |
43 | view.o: opengl.h view.h util.h event.h oct.h |
34 | se.o: /usr/include/bits/mathdef.h /usr/include/bits/mathcalls.h |
44 | x.o: shader.h opengl.h util.h shader_vars.h |
35 | test.o: /usr/include/stdlib.h /usr/include/features.h |
|
|
36 | test.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h |
|
|
37 | test.o: /usr/lib/gcc-lib/x86_64-linux/3.3.4/include/stddef.h |
|
|
38 | test.o: /usr/include/stdio.h /usr/include/bits/types.h |
|
|
39 | test.o: /usr/include/bits/wordsize.h /usr/include/bits/typesizes.h |
|
|
40 | test.o: /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h |
|
|
41 | test.o: /usr/include/bits/wchar.h /usr/include/gconv.h |
|
|
42 | test.o: /usr/lib/gcc-lib/x86_64-linux/3.3.4/include/stdarg.h |
|
|
43 | test.o: /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h |
|
|
44 | test.o: /usr/include/string.h /usr/include/math.h |
|
|
45 | test.o: /usr/include/bits/huge_val.h /usr/include/bits/mathdef.h |
|
|
46 | test.o: /usr/include/bits/mathcalls.h entity.h /usr/include/GL/gl.h |
|
|
47 | test.o: /usr/include/GL/glext.h util.h oct.h view.h txtprt_import.h |
|
|
48 | txtprt_import.o: txtprt_import.h entity.h /usr/include/GL/gl.h |
|
|
49 | txtprt_import.o: /usr/include/GL/glext.h |
|
|
50 | txtprt_import.o: /usr/lib/gcc-lib/x86_64-linux/3.3.4/include/stddef.h util.h |
|
|
51 | txtprt_import.o: oct.h view.h |
|
|
52 | util.o: /usr/include/sys/time.h /usr/include/features.h |
|
|
53 | util.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h |
|
|
54 | util.o: /usr/include/bits/types.h /usr/include/bits/wordsize.h |
|
|
55 | util.o: /usr/lib/gcc-lib/x86_64-linux/3.3.4/include/stddef.h |
|
|
56 | util.o: /usr/include/bits/typesizes.h /usr/include/time.h |
|
|
57 | util.o: /usr/include/bits/time.h /usr/include/sys/select.h |
|
|
58 | util.o: /usr/include/bits/select.h /usr/include/bits/sigset.h util.h |
|
|
59 | util.o: /usr/include/GL/gl.h /usr/include/GL/glext.h |
|
|
60 | view.o: oct.h util.h /usr/include/GL/gl.h /usr/include/GL/glext.h |
|
|
61 | view.o: /usr/lib/gcc-lib/x86_64-linux/3.3.4/include/stddef.h view.h |
|
|
62 | entity.o: /usr/include/GL/gl.h /usr/include/GL/glext.h |
|
|
63 | entity.o: /usr/lib/gcc-lib/x86_64-linux/3.3.4/include/stddef.h util.h oct.h |
|
|
64 | entity.o: view.h |
|
|
65 | matrix.o: util.h /usr/include/GL/gl.h /usr/include/GL/glext.h |
|
|
66 | matrix.o: /usr/lib/gcc-lib/x86_64-linux/3.3.4/include/stddef.h |
|
|
67 | oct.o: util.h /usr/include/GL/gl.h /usr/include/GL/glext.h |
|
|
68 | oct.o: /usr/lib/gcc-lib/x86_64-linux/3.3.4/include/stddef.h |
|
|
69 | txtprt_import.o: entity.h /usr/include/GL/gl.h /usr/include/GL/glext.h |
|
|
70 | txtprt_import.o: /usr/lib/gcc-lib/x86_64-linux/3.3.4/include/stddef.h util.h |
|
|
71 | txtprt_import.o: oct.h view.h |
|
|
72 | util.o: /usr/include/GL/gl.h /usr/include/GL/glext.h |
|
|
73 | util.o: /usr/lib/gcc-lib/x86_64-linux/3.3.4/include/stddef.h |
|
|
74 | view.o: util.h /usr/include/GL/gl.h /usr/include/GL/glext.h |
|
|
75 | view.o: /usr/lib/gcc-lib/x86_64-linux/3.3.4/include/stddef.h |
|
|