-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathOMakefile
55 lines (44 loc) · 1.02 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
NATIVE_ENABLED = true
BYTE_ENABLED = true
OCAMLOPTFLAGS = -inline 100
USE_OCAMLFIND = true
.SUBDIRS: ocaml-sqlexpr
OCAMLFLAGS = -thread
OCAMLCFLAGS += -g -annot
OCAMLFINDFLAGS += -syntax camlp4o
OCAMLINCLUDES += ocaml-sqlexpr
OCAML_LIBS[] += ocaml-sqlexpr/sqlexpr
OCAMLPACKS[] =
csv
lwt
lwt.unix
lwt.syntax
estring
batteries
unix
str
sqlite3
camlp4.macro
threads
OBJECTS[] =
binlog
extSet
mq_types
mq_stomp
mq_server
mq_sqlite_persistence
ternary
section
OCAMLFINDFLAGS += -ppopt ocaml-sqlexpr/pa_sql.cmo
.SCANNER: scan-ocaml-%.ml: %.ml ocaml-sqlexpr/pa_sql.cmo
$(addsuffixes .cmi .cmx .cmo .o, mq_sqlite_persistence):
OCamlProgram(ocamlmq, $(OBJECTS) ocamlmq)
section
OCAMLPACKS[] += oUnit
TEST_FILES[] = $(removesuffix $(ls test*ml))
OCamlProgram(test, $(OBJECTS) $(TEST_FILES) test)
$(addsuffixes .cmi .cmo .cmx .o, $(TEST_FILES) test):
.DEFAULT: ocamlmq$(EXE)
.PHONY: clean
clean:
rm -f $(filter-proper-targets $(ls R, .)) *.s