-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
58 lines (39 loc) · 1010 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
cmd := ghc -dynamic
jialc: JIALC.hs
$(cmd) -o jialc JIALC.hs
jialt: JIALT.hs
$(cmd) -o jialt JIALT.hs
JIALC.hs: Lexer.hs Parser.hs MsgTypeLexer.hs
JIALT.hs: Lexer.hs Parser.hs MsgTypeLexer.hs
lexer: Lexer.hs
$(cmd) Lexer.hs
Lexer.hs: Lexer.x
alex Lexer.x
MsgTypeLexer.hs: MsgTypeLexer.x
alex MsgTypeLexer.x
Parser.hs: Parser.y Lexer.hs
happy Parser.y
LexerTest.hs: Lexer.hs
ParserTest.hs: Parser.hs
ltest: LexerTest.hs
runhaskell LexerTest
ptest: ParserTest.hs
runhaskell ParserTest
test: LexerTest.hs ParserTest.hs AnalysisTest.hs AlgTest.hs CodeGeneratorTest.hs
runhaskell LexerTest
runhaskell ParserTest
runhaskell AnalysisTest
runhaskell AlgTest
runhaskell CodeGeneratorTest
mtest: MTest.hs Lexer.hs Parser.hs MsgTypeLexer.hs
runhaskell MTest
analysis: Analysis.hs
$(cmd) Analysis.hs
atest: AnalysisTest.hs
runhaskell AnalysisTest.hs
algtest:
runhaskell AlgTest.hs
ctest: CodeGeneratorTest.hs
runhaskell CodeGeneratorTest.hs
clean:
rm Main Lexer.hs Parser.hs *.o *.hi