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
9 always_ok_daemon webfsd obj_foo dump_args timeout dont_fork \
10 threads chdir damned_recursion oo_daemon client_address highlander
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 $@ $<
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 $@ $<
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 $@ $<
31 -rm -f *.cm[ioax] *.o $(EXAMPLES) $(patsubst %,%.opt,$(EXAMPLES))