]> matita.cs.unibo.it Git - helm.git/blob - helm/DEVEL/ocaml-http/examples/Makefile
Debugging message removed.
[helm.git] / helm / DEVEL / ocaml-http / examples / Makefile
1 include ../Makefile.defs
2 OBJS_NON_MT = ../http.cma
3 OBJS_NON_MT_OPT = ../http.cmxa
4 OBJS_MT = ../http_mt.cma
5 OBJS_MT_OPT = ../http_mt.cmxa
6 EXAMPLES_FLAGS = -I .. -linkpkg
7
8 EXAMPLES =      \
9         always_ok_daemon webfsd obj_foo dump_args timeout dont_fork     \
10         threads chdir damned_recursion oo_daemon client_address highlander
11
12 all: $(EXAMPLES)
13 opt: $(patsubst %,%.opt,$(EXAMPLES))
14 %: %.ml $(OBJS_NON_MT)
15         $(OCAMLC) $(EXAMPLES_FLAGS) $(OBJS_NON_MT) -o $@ $<
16 %.opt: %.ml $(OBJS_NON_MT_OPT)
17         $(OCAMLOPT) $(EXAMPLES_FLAGS) $(OBJS_NON_MT_OPT) -o $@ $<
18
19 threads: threads.ml $(OBJS_MT)
20         $(OCAMLC) $(EXAMPLES_FLAGS) $(OBJS_MT) $(THREADS_FLAGS) -o $@ $<
21 threads.opt: threads.ml $(OBJS_MT_OPT)
22         $(OCAMLOPT) $(EXAMPLES_FLAGS) $(OBJS_MT_OPT) $(THREADS_FLAGS) -o $@ $<
23
24 damned_recursion: damned_recursion.ml $(OBJS_MT)
25         $(OCAMLC) $(EXAMPLES_FLAGS) $(OBJS_MT) $(THREADS_FLAGS) -o $@ $<
26 damned_recursion.opt: damned_recursion.ml $(OBJS_MT_OPT)
27         $(OCAMLOPT) $(EXAMPLES_FLAGS) $(OBJS_MT_OPT) $(THREADS_FLAGS) -o $@ $<
28
29 distclean: clean
30 clean:
31         -rm -f *.cm[ioax] *.o $(EXAMPLES) $(patsubst %,%.opt,$(EXAMPLES))