-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (26 loc) · 1.22 KB
/
Copy pathMakefile
File metadata and controls
38 lines (26 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
CC = g++
CFLAGS = -g -w -Wall
INCLUDE = -I.
SFML_LIBRARIES = -lsfml-graphics -lsfml-window -lsfml-system
lexer.o: lexer.hpp lexer.cpp
$(CC) $(CFLAGS) -c lexer.cpp
codegen.o: ast.hpp codegen.cpp lexer.o
$(CC) $(CFLAGS) -c codegen.cpp
dump.o: ast.hpp dump.cpp lexer.o
$(CC) $(CFLAGS) -c dump.cpp
parser.o: parser.hpp parser.cpp lexer.o
$(CC) $(CFLAGS) -c parser.cpp
world.o: world.cpp world.hpp
$(CC) $(CFLAGS) -c world.cpp
test_lexer: lexer.o test/lexer/getTokTest/test.cpp
$(CC) $(CFLAGS) $^ -o test/lexer/getTokTest/test.out $(INCLUDE)
test_parser: lexer.o dump.o codegen.o parser.o ast.hpp util.hpp test/parser/test.cpp
$(CC) $(CFLAGS) $^ -o test/parser/test.out $(INCLUDE)
test_codegen: lexer.o dump.o codegen.o parser.o ast.hpp util.hpp test/codegen/test.cpp
$(CC) $(CFLAGS) $^ -o test/codegen/test.out $(INCLUDE)
showTokens.out: lexer.o dump.o codegen.o parser.o ast.hpp test/lexer/showTokens.cpp
$(CC) $(CFLAGS) $^ -o test/lexer/showTokens.out $(INCLUDE)
test_basicRendering: world.o test/renderer/test1.cpp
$(CC) $(CFLAGS) $^ -o test/renderer/test1.out $(INCLUDE) $(SFML_LIBRARIES)
main.out: lexer.o dump.o parser.o codegen.o ast.hpp util.hpp world.o main.cpp
$(CC) $(CFLAGS) $^ -o main.out $(INCLUDE) $(SFML_LIBRARIES)