-
Notifications
You must be signed in to change notification settings - Fork 106
/
OMakefile
128 lines (118 loc) · 2.2 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
.SUBDIRS: syntax
export BAT_FILES
.SUBDIRS: pa_comprehension pa_strings
include OMakefile
export BAT_FILES
EXTRA[] =
batteries_help.cmo
OBJECTS[] =
batArg
batArray
batBigarray
batBig_int
batBool
batBuffer
batChar
batComplex
batDigest
batEnum
batFloat
batFormat
batGc
batGenlex
batHashtbl
batIO
batInnerIO
batInt32
batInt64
batInt
batLexing
batList
batMap
batMarshal
batNativeint
batNum
batOo
batPervasives
batPrintexc
batPrintf
batQueue
batRandom
batScanf
batSet
batStack
batStream
batString
batStr
batSys
batUChar
batUnit
batUnix
batUTF8
batBase64
batBitSet
batCharEncodings
batCharParser
batConcurrent
batDllist
batDynArray
batFile
batGlobal
batInnerWeaktbl
batInterfaces
batLazyList
batLogger
batMonad
batMultiPMap
batNumber
batOption
batOptParse
batPair
batParserCo
batPathGen
batPMap
batPrint
batPSet
batRefList
batRef
batResult
batReturn
batRope
batSeq
batStd
batSubstring
batUCharParser
batValue_printer
batVect
batAvlTree
batISet
batIMap
batteries_config
batteries_print
batteries_uni
THREAD_OBJECTS[] =
batConcurrent
batMutex
batRMutex
batteries
section
# turn on -thread for the threaded objects
OCAMLFLAGS += -thread
foreach(mod,$(THREAD_OBJECTS))
$(mod).cmo $(mod).cmi:
if $(NATIVE_ENABLED)
$(mod).cmx $(mod).o $(mod).cmi:
OCamlLibrary(batteries_uni, $(OBJECTS))
OCamlLibrary(batteries, $(OBJECTS) $(THREAD_OBJECTS))
batteries_config.ml: batteries_config.mlp
rm(-f batteries_config.ml)
sed -e 's|@VERSION@|$(VERSION)|' \
-e 's|@DOCROOT@|$(DOCROOT)|' \
-e 's|@BROWSER_COMMAND@|$(BROWSER_COMMAND)|' \
batteries_config.mlp > batteries_config.ml
chmod(444 batteries_config.ml)
BAT_FILES[] += $(file $(glob *.mli *.cmi *.cma $(EXTRA) *.a))
if $(NATIVE_ENABLED)
BAT_FILES[] += $(file $(glob *.cmx *.cmxa))
export BAT_FILES
all: batteries.cma batteries_uni.cma $(if $(NATIVE_ENABLED), batteries.cmxa batteries_uni.cmxa) $(EXTRA)