-
Notifications
You must be signed in to change notification settings - Fork 8
/
OMakefile
66 lines (53 loc) · 1.29 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
USE_OCAMLFIND = true
NATIVE_ENABLED = true
BYTE_ENABLED = true
CamlSources(mods) =
foreach(mod, $(mods))
$(addsuffixes .cmo .cmi .cmx .sig $(EXT_OBJ), $(mod)):
%.sig: %.ml %.cmo
$(OCAMLFIND) $(OCAMLC) -package $(concat \,, $(OCAMLPACKS)) \
$(mapprefix -I, $(OCAMLINCLUDES)) \
$(OCAMLFLAGS) $(OCAMLCFLAGS) -i $< > $@
SM_PACKS[] =
ocsigen.xhtml
extlib
str
camlp4.foldgenerator
sexplib.syntax
OCAMLPACKS[] =
ocsigen.parsecommandline
ocsigen.server
ocsigen.ext.ocsipersist-sqlite
ocsigen.ext.eliom
ocsigen.ext.staticmod
$(SM_PACKS)
PP = -syntax camlp4o
OCAMLFLAGS += -g -thread -dtypes $(PP)
OCAMLOPTFLAGS += -inline 100
OCAMLDEPFLAGS += $(PP)
TESTS[] =
simple_markup
test_simple_markup
section
OCAMLPACKS[] = $(SM_PACKS) oUnit
CamlSources(run_tests test_simple_markup)
OCamlProgram(run_tests, $(TESTS) run_tests)
EXE_FILES[] =
simple_markup
simple_markup__html
catalog
node
rss
comments
ocsiblog
ocsiblog_main
section
OCamlProgram(ocsiblog, $(EXE_FILES))
OCamlProgram(hello, hello)
section
OCAMLOPTFLAGS += -cclib -static -cclib -lcrypto
OCamlProgram(ocsiblog.static, $(EXE_FILES))
.DEFAULT: run_tests ocsiblog$(EXE)
.PHONY: clean
clean:
rm -f $(filter-proper-targets $(ls R, .)) *.s *.annot