include Makefile.defs
-MODULES = common misc types request daemon response
+MODULES = http_common http_misc http_types http_request http_daemon http_response
+PUBLIC_MODULES = http_common http_types http_request http_daemon http_response
DESTDIR = $(shell $(OCAMLFIND) printconf stdlib)
all: http.cma
%.cmx: %.ml %.cmi
$(OCAMLOPT) -c $<
-http.cmo: $(patsubst %,%.cmo,$(MODULES))
- ocamlc -pack -o $@ $^
-http.cmx: $(patsubst %,%.cmx,$(MODULES))
- ocamlopt -pack -o $@ $^
-http.cma: http.cmo
- $(OCAMLC) -a -o $@ $<
-http.cmxa: http.cmx
- $(OCAMLOPT) -a -o $@ $<
+http.cma: $(patsubst %,%.cmo,$(MODULES))
+ $(OCAMLC) -a -o $@ $^
+http.cmxa: $(patsubst %,%.cmx,$(MODULES))
+ $(OCAMLOPT) -a -o $@ $^
meta: META
META: META.in
rm -rf $(DISTDIR)/
install: META
$(OCAMLFIND) install -destdir $(DESTDIR) $(PKGNAME) \
- META common.mli types.mli request.mli daemon.mli response.mli http.*
+ META $(patsubst %,%.mli,$(PUBLIC_MODULES)) \
+ $(patsubst %,%.cmi,$(PUBLIC_MODULES)) http.cm{,x}a http.a
.PHONY: \
all opt world examples examples.opt depend clean distclean dist \