forked from jmhossler/proglang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
88 lines (59 loc) · 1.59 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
compile: lexer.o parser.o types.o env.o eval.o compile.o
gcc -Wall -o compile lexer.o parser.o types.o env.o eval.o compile.o -lm
compile.o: compile.c
gcc -Wall -c compile.c
env.o: environment/env.c environment/env.h
gcc -Wall -c environment/env.c
eval.o: evaluation/eval.c evaluation/eval.h
gcc -Wall -c evaluation/eval.c
parser.o: parser/parser.c parser/parser.h
gcc -Wall -c parser/parser.c
lexer.o: lexer/lexer.c lexer/lexer.h
gcc -Wall -c lexer/lexer.c
types.o: types/types.c types/types.h
gcc -Wall -c types/types.c
clean:
rm *.o
run:
bash test.sh
.IGNORE: run-error1 run-error2 run-error3
cat-error1:
cat testScripts/error1.sux
run-error1:
./compile testScripts/error1.sux || true
cat-error2:
cat testScripts/error2.sux
run-error2:
./compile testScripts/error2.sux || true
cat-error3:
cat testScripts/error3.sux
run-error3:
./compile testScripts/error3.sux || true
cat-arrays:
cat testScripts/testArr.sux
run-arrays:
./compile testScripts/testArr.sux
cat-conditionals:
cat testScripts/ifelseifelse.sux
run-conditionals:
./compile testScripts/ifelseifelse.sux
cat-recursion:
cat testScripts/printFib.sux
run-recursion:
./compile testScripts/printFib.sux
cat-iteration:
cat testScripts/while.sux
run-iteration:
./compile testScripts/while.sux
cat-functions:
cat testScripts/testFirstclass.sux
run-functions:
./compile testScripts/testFirstclass.sux
cat-dictionary:
cat testScripts/testDictionary.sux
run-dictionary:
./compile testScripts/testDictionary.sux
cat-problem:
cat testScripts/testOneBitAdder.sux
run-problem:
./compile testScripts/testOneBitAdder.sux