]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/DEVEL/ocaml-http/examples/Makefile
added client_address example which show the ability to retrieve client
[helm.git] / helm / DEVEL / ocaml-http / examples / Makefile
index 825a27567330c3cabbc1842a7b444ac3d0a20e0f..6988880da658aac9c774e6c8c3aa1cbe09d0a6e4 100644 (file)
@@ -6,23 +6,24 @@ OBJS_MT_OPT = ../http_mt.cmxa
 EXAMPLES_FLAGS = -I .. -linkpkg
 
 EXAMPLES =     \
-       always_ok_daemon webfsd obj_foo dump_args timeout dont_fork threads chdir threads_foo
+       always_ok_daemon webfsd obj_foo dump_args timeout dont_fork     \
+       threads chdir damned_recursion oo_daemon client_address
 
 all: $(EXAMPLES)
 opt: $(patsubst %,%.opt,$(EXAMPLES))
-%: %.ml $(OBJS)
+%: %.ml $(OBJS_NON_MT)
        $(OCAMLC) $(EXAMPLES_FLAGS) $(OBJS_NON_MT) -o $@ $<
-%.opt: %.ml $(OBJS_OPT)
+%.opt: %.ml $(OBJS_NON_MT_OPT)
        $(OCAMLOPT) $(EXAMPLES_FLAGS) $(OBJS_NON_MT_OPT) -o $@ $<
 
-threads: threads.ml
+threads: threads.ml $(OBJS_MT)
        $(OCAMLC) $(EXAMPLES_FLAGS) $(OBJS_MT) $(THREADS_FLAGS) -o $@ $<
-threads.opt: threads.ml
+threads.opt: threads.ml $(OBJS_MT_OPT)
        $(OCAMLOPT) $(EXAMPLES_FLAGS) $(OBJS_MT_OPT) $(THREADS_FLAGS) -o $@ $<
 
-threads_foo: threads_foo.ml
+damned_recursion: damned_recursion.ml $(OBJS_MT)
        $(OCAMLC) $(EXAMPLES_FLAGS) $(OBJS_MT) $(THREADS_FLAGS) -package netclient -o $@ $<
-threads_foo.opt: threads_foo.ml
+damned_recursion.opt: damned_recursion.ml $(OBJS_MT_OPT)
        $(OCAMLOPT) $(EXAMPLES_FLAGS) $(OBJS_MT_OPT) $(THREADS_FLAGS) -package netclient -o $@ $<
 
 distclean: clean