This repository has been archived by the owner on Jul 9, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
56 lines (46 loc) · 1.77 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
# Unix Makefile stub for separate compilation with Moscow ML.
MOSMLHOME=$(HOME)/mosml
MOSMLTOOLS=camlrunm $(MOSMLHOME)/tools
MOSMLC=mosmlc -c -liberal
MOSMLL=mosmlc
MOSMLLEX=mosmllex
MOSMLYACC=mosmlyac
UNITS= -structure EA_implementation_sml -toplevel makeTables parseElectionData parseBLTFile random_ballots EA_main
.SUFFIXES :
.SUFFIXES : .sig .sml .ui .uo
all: EA
EA: EA_implementation_sml.uo makeTables.uo parseElectionData.uo parseBLTFile.uo random_ballots.uo EA_main.uo
$(MOSMLL) -o EA EA_implementation_sml.uo makeTables.uo parseElectionData.uo random_ballots.uo EA_main.uo
clean:
rm -f *.ui
rm -f *.uo
rm -f Makefile.bak
# these rules are only needed if UNITS is undefined or empty
.sig.ui:
$(MOSMLC) $<
.sml.uo:
$(MOSMLC) $<
depend:
rm -f Makefile.bak
mv Makefile Makefile.bak
$(MOSMLTOOLS)/cutdeps < Makefile.bak > Makefile
$(MOSMLTOOLS)/mosmldep $(UNITS) >> Makefile
### DO NOT DELETE THIS LINE
EA_implementation_sml.uo: EA_implementation_sml.sml
$(MOSMLC) -structure \
EA_implementation_sml.sml
makeTables.uo: makeTables.sml EA_implementation_sml.uo
$(MOSMLC) -toplevel \
EA_implementation_sml.ui makeTables.sml
parseElectionData.uo: parseElectionData.sml makeTables.uo
$(MOSMLC) -toplevel makeTables.ui \
EA_implementation_sml.ui parseElectionData.sml
parseBLTFile.uo: parseBLTFile.sml parseElectionData.uo
$(MOSMLC) -toplevel parseElectionData.ui makeTables.ui \
EA_implementation_sml.ui parseBLTFile.sml
random_ballots.uo: random_ballots.sml parseElectionData.uo
$(MOSMLC) -toplevel parseElectionData.ui makeTables.ui \
EA_implementation_sml.ui random_ballots.sml
EA_main.uo: EA_main.sml random_ballots.uo
$(MOSMLC) -toplevel random_ballots.ui parseBLTFile.ui parseElectionData.ui makeTables.ui \
EA_implementation_sml.ui EA_main.sml