-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (36 loc) · 1.36 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
#*****************************************************************#
# #
# Dependent ML #
# #
# (c) Hongwei Xi #
# July 2000 #
# #
# University of Cincinnati #
# #
# Distributed by permission only. #
# #
#*****************************************************************#
OCAMLC=ocamlc
OCAMLOPT=ocamlopt
OCAMLDEP=ocamldep
OCAMLYACC=ocamlyacc
OCAMLLEX=ocamllex
INCLUDES=
OCAMLFLAGS=$(INCLUDES)
OCAMLOPTFLAGS=$(INCLUDES)
dmltop.cmo: dmlparser.cmo
dmlparser.ml dmlparser.mli: dmlsyn.ml dmlparser.mly
$(OCAMLYACC) -v dmlparser.mly
dmllexer.ml: dmllexer.mll dmlpar.ml
$(OCAMLLEX) dmllexer.mll
#common rules:
.SUFFIXES: .ml .mli .cmo .cmi .cmx
.ml.cmo:
$(OCAMLC) $(OCAMLFLAGS) -c $<
.mli.cmi:
$(OCAMLC) $(OCAMLFLAGS) -c $<
.ml.cmx:
$(OCAMLOPT) $(OCAMLOPTFLAGS) -c $<
depend:
$(OCAMLDEP) $(INCLUDES) *.mli *.ml > .depend
include .depend