]> matita.cs.unibo.it Git - helm.git/blob - helm/DEVEL/ocaml-http/examples/Makefile
- added support for multithreaded daemons
[helm.git] / helm / DEVEL / ocaml-http / examples / Makefile
1 include ../Makefile.defs
2 OBJS = ../http.cma
3 OBJS_OPT = ../http.cmxa
4 EXAMPLES_OPTS = -I .. -linkpkg
5
6 EXAMPLES =      \
7         always_ok_daemon webfsd obj_foo dump_args timeout dont_fork threads chdir
8
9 all: $(EXAMPLES)
10 opt: $(patsubst %,%.opt,$(EXAMPLES))
11 %: %.ml $(OBJS)
12         $(OCAMLC) $(EXAMPLES_OPTS) $(OBJS) -o $@ $<
13 %.opt: %.ml $(OBJS_OPT)
14         $(OCAMLOPT) $(EXAMPLES_OPTS) $(OBJS_OPT) -o $@ $<
15
16 distclean: clean
17 clean:
18         -rm -f *.cm[ioax] *.o $(EXAMPLES) $(patsubst %,%.opt,$(EXAMPLES))