-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
43 lines (37 loc) · 946 Bytes
/
Makefile
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
38
39
40
41
42
43
clear:
cls
copy:
xcopy src out /E /y /q
gen:
flex -o out/rules/lexer.cpp out/rules/lexer_specs.l
bison -d -o out/rules/parser.cpp out/rules/parser_grammar.y
comp:
g++ -o out/M++.exe \
out/main.cpp \
\
out/parse_tree/statements/statement_analyzer.cpp \
out/parse_tree/statements/statement_generator.cpp \
\
out/parse_tree/expressions/expression_analyzer.cpp \
out/parse_tree/expressions/expression_generator.cpp \
out/parse_tree/expressions/expression_evaluator.cpp \
\
out/parse_tree/branches/branch_analyzer.cpp \
out/parse_tree/branches/branch_generator.cpp \
\
out/parse_tree/functions/function_generator.cpp \
out/parse_tree/functions/function_analyzer.cpp \
\
out/rules/lexer.cpp \
out/rules/parser.cpp
build:
@make -s clear
@make -s copy
@make -s gen
@make -s comp
run:
@make -s clear
out\\M++.exe data/input.mpp -o data/out.quad -s data/symbol_table.txt
all:
@make -s build
@make -s run