-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
39 lines (26 loc) · 1.22 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
CC=fsharpc
CFLAGS=--nologo
slpc.exe: src/ast.fs parserLib.dll src/parser.fs src/interpreter.fs src/codeGenerator.fs src/main.fs
fsharpc -r parserLib.dll src/ast.fs src/parser.fs src/interpreter.fs src/codeGenerator.fs src/main.fs -o slpc.exe
parserLib.dll: src/parserLib.fs
fsharpc -a src/parserLib.fs -o parserLib.dll
parserTests.exe: src/ast.fs parserLib.dll src/parser.fs src/tests/testUtil.fs src/tests/parserTests.fs
fsharpc -r parserLib.dll src/ast.fs src/parser.fs src/tests/testUtil.fs src/tests/parserTests.fs
interpreterTests.exe: src/ast.fs src/interpreter.fs src/tests/testUtil.fs src/tests/interpreterTests.fs
fsharpc src/ast.fs src/interpreter.fs src/tests/testUtil.fs src/tests/interpreterTests.fs
.PHONY: test
test: parserTests.exe interpreterTests.exe
mono parserTests.exe
mono interpreterTests.exe
.PHONY: testv
testv: parserTests.exe interpreterTests.exe
mono parserTests.exe -v
mono interpreterTests.exe -v
.PHONY: examples
examples: slpc.exe examples/add1.slp examples/add_and_sub.slp examples/hello.slp
mono slpc.exe examples/add1.slp -o examples/add1
mono slpc.exe examples/add_and_sub.slp -o examples/add_and_sub
mono slpc.exe examples/hello.slp -o examples/hello
.PHONY: clean
clean:
rm -f *.{exe,dll}