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
20 EXAMPLES := $(patsubst %.ml,%,$(EXAMPLES))
23 opt: $(patsubst %,%.opt,$(EXAMPLES))
24 %: %.ml $(OBJS_NON_MT)
25 $(OCAMLC) $(EXAMPLES_FLAGS) $(OBJS_NON_MT) -o $@ $<
26 %.opt: %.ml $(OBJS_NON_MT_OPT)
27 $(OCAMLOPT) $(EXAMPLES_FLAGS) $(OBJS_NON_MT_OPT) -o $@ $<
29 threads: threads.ml $(OBJS_MT)
30 $(OCAMLC) $(EXAMPLES_FLAGS) $(OBJS_MT) $(THREADS_FLAGS) -o $@ $<
31 threads.opt: threads.ml $(OBJS_MT_OPT)
32 $(OCAMLOPT) $(EXAMPLES_FLAGS) $(OBJS_MT_OPT) $(THREADS_FLAGS) -o $@ $<
34 damned_recursion: damned_recursion.ml $(OBJS_MT)
35 $(OCAMLC) $(EXAMPLES_FLAGS) $(OBJS_MT) $(THREADS_FLAGS) -o $@ $<
36 damned_recursion.opt: damned_recursion.ml $(OBJS_MT_OPT)
37 $(OCAMLOPT) $(EXAMPLES_FLAGS) $(OBJS_MT_OPT) $(THREADS_FLAGS) -o $@ $<
41 -rm -f *.cm[ioax] *.o $(EXAMPLES) $(patsubst %,%.opt,$(EXAMPLES))