1
# Write here all the findlib packages you need, for example:
2
# PACKAGES= ,extlib,netstring
4
# Write here all your .ml files, in dependency order (default: all)
5
FILES=services.ml mylib.ml forum0.ml forum1.ml forum2.ml
7
CAMLC = ocamlfind ocamlc -g -thread $(LIB)
8
CAMLOPT = ocamlfind ocamlopt -thread $(LIB)
9
CAMLDOC = ocamlfind ocamldoc $(LIB)
10
CAMLDEP = ocamlfind ocamldep
11
OCSIGENREP = `ocamlfind query ocsigen`
12
#OCSIGENREP = ../ocsigen/lib
13
LIB = -package lwt,ocsigen$(PACKAGES) -I $(OCSIGENREP)
14
# If you use the syntax extension:
15
PP = -pp "camlp4o $(OCSIGENREP)/xhtmlsyntax.cma"
19
OBJS = $(FILES:.ml=.cmo)
21
CMA = site0.cma site1.cma site2.cma
23
all: depend $(CMA) install
26
# $(CAMLC) -a -o $(CMA) $(OBJS)
28
site0.cma: mylib.cmo forum.cmo
31
site1.cma: mylib.cmo forum.cmo
34
site2.cma: services.cmo mylib.cmo forum.cmo
42
.SUFFIXES: .ml .mli .cmo .cmi .cmx
52
$(CAMLOPT) $(PP) -c $<
55
# $(CAMLDOC) -d doc -html db.mli
58
-rm -f *.cm[ioxa] *~ $(NAME)
61
$(CAMLDEP) $(PP) $(LIB) $(FILES:.ml=.mli) $(FILES) > .depend