-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (30 loc) · 1.1 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
all: sltester brtester bropt brcp brcond brst bror
clean:
$(RM) -f *.o *.hi SetLangParser.hs SetLangLexer.hs
SETLANG=SetLangParser.hs SetLangLexer.hs SetLang.hs
BASERULE=BaseRule.hs RuleParser.hs
GHC=ghc -O2 -funfolding-use-threshold=16
TAR=tar
#-prof -auto-all -caf-all -fforce-recomp
SetLangLexer.hs: SetLangLexer.x
alex SetLangLexer.x -o SetLangLexer.hs
SetLangParser.hs: SetLangParser.y
happy -o SetLangParser.hs SetLangParser.y
sltester: Main.hs $(SETLANG)
$(GHC) --make -o sltester Main.hs
brtester: BRMain.hs $(SETLANG) $(BASERULE)
$(GHC) --make -o brtester BRMain.hs
brst: BRSet.hs $(SETLANG) $(BASERULE)
$(GHC) --make -o brst BRSet.hs
bropt: BROptimizer.hs $(SETLANG) $(BASERULE) BRApprox.hs
$(GHC) --make -o bropt BROptimizer.hs
brcp: BRCp.hs BRCopy.hs $(SETLANG) $(BASERULE)
$(GHC) --make -o brcp BRCp.hs
brcond: BRByCond.hs BRCopy.hs $(SETLANG) $(BASERULE)
$(GHC) --make -o brcond BRByCond.hs
bror: BROptRule.hs BRCopy.hs $(SETLANG) $(BASERULE)
$(GHC) --make -o bror BROptRule.hs
ekidata/lemma.dic.asendatud: ekidata.tgz
$(TAR) xzvf ekidata.tgz
rules: ekidata/lemma.dic.asendatud
cd d; make