]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/DEVEL/ocaml-http/examples/Makefile
added ocaml-http 0.0.1
[helm.git] / helm / DEVEL / ocaml-http / examples / Makefile
diff --git a/helm/DEVEL/ocaml-http/examples/Makefile b/helm/DEVEL/ocaml-http/examples/Makefile
new file mode 100644 (file)
index 0000000..b050bdd
--- /dev/null
@@ -0,0 +1,17 @@
+include ../Makefile.defs
+OBJS = ../http.cmo
+OBJS_OPT = ../http.cmx
+EXAMPLES_OPTS = -I .. -linkpkg
+
+EXAMPLES = always_ok_daemon webfsd obj_foo dump_args timeout
+
+all: $(EXAMPLES)
+opt: $(patsubst %,%.opt,$(EXAMPLES))
+%: %.ml $(OBJS)
+       $(OCAMLC) $(EXAMPLES_OPTS) $(OBJS) -o $@ $<
+%.opt: %.ml $(OBJS_OPT)
+       $(OCAMLOPT) $(EXAMPLES_OPTS) $(OBJS_OPT) -o $@ $<
+
+distclean: clean
+clean:
+       -rm -f *.cm[ioax] *.o $(EXAMPLES)