… | |
… | |
3 | CPPFLAGS=$(shell sdl-config --cflags) -DDEBUG |
3 | CPPFLAGS=$(shell sdl-config --cflags) -DDEBUG |
4 | LDLIBS=$(shell sdl-config --libs) -lSDL_image -lGL -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 shader.o shader_vars.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: |