-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·146 lines (122 loc) · 2.72 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
#*********************************************************************
#
# Néstor CATAÑO COLLAZOS
# INRIA, France
# 2004, route des Lucioles - B.P. 93
# 06902 Sophia-Antipois Cedex(France)
#
# E-mail [email protected]
# http://www-sop.inria.fr/lemme/verificard/modifSpec/index.html
#
#*********************************************************************
OCAMLC = ocamlc
OCAMLD = ocamldebug
OCAMLR = ocamlrun
MAKE = make
DELETE = rm -f
PRINT = @echo
CLEAR = clear
OPTIONS = \
-g -c
FILES = javasyntax.ml \
display.ml \
event_space.ml \
stack_of_env.ml \
prelude.ml \
store.ml \
operational.ml \
COMPILE = $(subst .ml,.cmo,$(FILES))
#***************************************************************************
#
# Rules and dependencies.
#
# target - the parameter given to make: What to build
# depends - file or other targets target depends on
# rule - how to create target
# $(VAR) - environment variable or variable defined above
# $@ - Current target
# $* - Current target without extension
# $< - Current dependency
#
#***************************************************************************
compile-all: $(COMPILE)
javasyntax.cmo: javasyntax.ml
$(OCAMLC) $(OPTIONS) $<
display.cmo: display.ml \
javasyntax.cmo
$(OCAMLC) $(OPTIONS) $<
stack_of_env.cmi: stack_of_env.mli \
javasyntax.cmo \
display.cmo
$(OCAMLC) $(OPTIONS) $<
stack_of_env.cmo: stack_of_env.ml \
javasyntax.cmo \
display.cmo \
stack_of_env.cmi
$(OCAMLC) $(OPTIONS) $<
prelude.cmi: prelude.mli \
javasyntax.cmo \
display.cmo \
stack_of_env.cmo
$(OCAMLC) $(OPTIONS) $<
prelude.cmo: prelude.ml \
javasyntax.cmo \
display.cmo \
stack_of_env.cmo \
prelude.cmi
$(OCAMLC) $(OPTIONS) $<
store.cmi: store.mli \
javasyntax.cmo \
display.cmo \
stack_of_env.cmo \
prelude.cmo
$(OCAMLC) $(OPTIONS) $<
store.cmo: store.ml \
javasyntax.cmo \
display.cmo \
stack_of_env.cmo \
store.cmi
$(OCAMLC) $(OPTIONS) $<
event_space.cmo: event_space.ml \
javasyntax.cmo \
display.cmo \
stack_of_env.cmo \
store.cmo
$(OCAMLC) $(OPTIONS) $<
operational.cmo: operational.ml \
javasyntax.cmo \
display.cmo \
stack_of_env.cmo \
store.cmo \
event_space.cmo
$(OCAMLC) $(OPTIONS) $<
compile-test: test.ml \
javasyntax.cmo \
display.cmo \
stack_of_env.cmo \
store.cmo \
event_space.cmo \
operational.cmo
$(OCAMLC) $(COMPILE) -g -o test.sh $<
compile-swap: swap.ml \
javasyntax.cmo \
display.cmo \
stack_of_env.cmo \
store.cmo \
event_space.cmo \
operational.cmo
$(OCAMLC) $(COMPILE) -g -o swap.sh $<
run-swap: swap.sh
./$<
run: test.sh
./$<
clean:
$(PRINT) ... cleaning all
$(DELETE) *.cm*
$(DELETE) *.out
$(DELETE) *~
$(CLEAR)
debug-test: test.sh
$(OCAMLD) $<
debug-swap: swap.sh
$(OCAMLD) $<