-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·33 lines (23 loc) · 733 Bytes
/
Makefile
File metadata and controls
executable file
·33 lines (23 loc) · 733 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
25
26
27
28
29
30
31
32
33
LP=Parser.hs Lexer.hs
EV=Evaluator.hs EvaluatorMain.hs
MS=MachineSize.hs MachineSizeMain.hs
OP=OptimizerMain.hs Optimizer2.hs Optimizer.hs
SRC=AST.hs TesterMain.hs ${EV} ${MS} ${OP} FileUtils.hs
all: smopt smsize smeval smtest
prof: smoptprof
smopt: ${LP} ${SRC}
ghc --make -O2 -Wall OptimizerMain.hs -o smopt
smoptprof: ${LP} ${SRC}
/usr/bin/ghc -O2 -Wall -prof -auto-all -rtsopts OptimizerMain.hs -o smoptprof
smsize: ${LP} ${SRC}
ghc --make -O2 -Wall MachineSizeMain.hs -o smsize
smeval: ${LP} ${SRC}
ghc --make -O2 -Wall EvaluatorMain.hs -o smeval
smtest: ${LP} ${SRC}
ghc --make -O2 -Wall TesterMain.hs -o smtest
Parser.hs: Parser.y
happy -a -g -c Parser.y
Lexer.hs: Lexer.x
alex -g Lexer.x
clean:
rm *.hi *.o