Skip to content
Find file
298c05b Apr 7, 2009
67 lines (53 sloc) 1.29 KB
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
Something went wrong with that request. Please try again.