forked from camlspotter/ocamloscope
-
Notifications
You must be signed in to change notification settings - Fork 0
/
OMakefile
103 lines (88 loc) · 1.78 KB
/
OMakefile
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
# How-to-build using OMake
#
# cp OMakeroot.in OMakeroot # to create OMakeroot for the first time
# If OMakeroot is here, include OMyMakefile
if $(file-exists OMakeroot)
include OMyMakefile
export
OCAMLWARNING_STOP_AT_ERROR_WARNING=true
OCAMLPACKS[] =
spotlib
findlib
treeprint
ppx_orakuda
levenshtein
OCAMLFLAGS += -thread
OCAMLDEPFLAGS= -package ppx_meta_conv,ppx_orakuda,ppx_test,ppx_monadic
OCAMLPPFLAGS = -package ppx_meta_conv,ppx_orakuda,ppx_test,ppx_monadic
SHARED[]=
init
conf
# log
xSpotlib
fileDigest
xhashset
xpath
source
kindkey
item
hashcons
hcons
odoc_fold
extract
# analysis
oCamlDoc
loc
load
xpredef
xenv
spath
type_expr
stype_core
stype_print
stype_hcons
stype_conv
stype_test
stype_pool
stype
pathfix
util
cmfile
oCamlc
oPAM
module_path
oCamlFind
distthresh
match
pattern_escape
xParser
packageq
query
cachedQuery
attr
printer
tests
stat
FILES[] =
$(SHARED)
cli
# Uses OCamlDoc modules
OCAML_OTHER_LIBS += odoc_info
OCAMLFLAGS += -I +ocamldoc # ocamldoc is not exported as an OCamlFind package
if $(not $(file-exists NOELIOM))
Subdirs()
export
PROGRAM = oco
NO_INSTALL=true
MyOCamlProgram($(PROGRAM), $(FILES))
MyOCamlLibrary(oco, $(SHARED))
###### XParser.mly
xParser.ml xParser.mli: xParser.mly
ocamlyacc xParser.mly
sed -e 's/type token =/type token = Parser.token =/' xParser.ml > xParser.ml.tmp
mv xParser.ml.tmp xParser.ml
sed -e 's/type token =/type token = Parser.token =/' xParser.mli > xParser.mli.tmp
mv xParser.mli.tmp xParser.mli
# odoc_fold.ml: odoc/odoc_fold.ml
# cp odoc/odoc_fold.ml odoc_fold.ml
WithOCamlVeryClean()