-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (25 loc) · 865 Bytes
/
Makefile
File metadata and controls
36 lines (25 loc) · 865 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
34
35
36
all: patchdep
include .dep
.SUFFIXES: .mli .cmi
.SUFFIXES: .ml .cmo
.SUFFIXES: .ml .cmx
.SUFFIXES: .mll .ml
.SUFFIXES: .mly .ml
.mli.cmi:
ocamlopt -c $<
.ml.cmx:
ocamlopt $(CFLAGS) -c $(INCLUDEDIR) $<
.ml.cmo:
ocamlc -g $(CFLAGS) -c $(INCLUDEDIR) $<
.mly.ml:
ocamlyacc $<
.mll.ml:
ocamllex $<
patchdep: types.cmx parser.mli parser.cmi parser.cmx lexer.cmx pretty.cmx helpers.cmx search.cmx dependencies.cmx main.cmx
ocamlopt types.cmx unix.cmxa parser.cmx lexer.cmx pretty.cmx helpers.cmx search.cmx dependencies.cmx main.cmx -o patchdep
patchdep.b: types.cmo parser.mli parser.cmi parser.cmo lexer.cmo pretty.cmo helpers.cmo search.cmo dependencies.cmo main.cmo
ocamlc -g types.cmo unix.cma parser.cmo lexer.cmo pretty.cmo helpers.cmo search.cmx dependencies.cmo main.cmo -o patchdep.b
dep:
ocamldep *.ml > .dep
clean:
rm -f *.cmi *.cmx