-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (17 loc) · 836 Bytes
/
Makefile
File metadata and controls
24 lines (17 loc) · 836 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
-include ./Objects/subdir.mk
-include ./Nodes/subdir.mk
-include ./Renderer/subdir.mk
all: low-level
low-level: lexparse high-level
high-level:
@echo 'Building Code Without Rebuilding Lexparser!'
g++ -std=c++11 -g -o arendelle ./Parser/parser.cpp ./Lexer/tokens.cpp $(CPP_SRC) main.cpp -lboost_system -lboost_filesystem -lsfml-graphics -lsfml-window -lsfml-system -lpthread
lexparse: parser lexer
parser:
@echo 'YACC Bison Building'
bison -d -o ./Parser/parser.cpp ./Parser/parser.y
lexer:
@echo 'LEX Flex Building'
flex -o ./Lexer/tokens.cpp ./Lexer/tokens.l
windows-64:
x86_64-w64-mingw32-g++ -std=c++11 -g -o arendelle.exe ./Parser/parser.cpp ./Lexer/tokens.cpp $(CPP_SRC) main.cpp /usr/lib/x86_64-linux-gnu/libsfml-graphics.so /usr/lib/x86_64-linux-gnu/libsfml-window.so -lboost_filesystem -lsfml-system -lpthread