Fix handling of OCAML_PKG_* macros for new OCaml autoconf.
[ocaml-bitstring.git] / Makefile.in
index 6086f24..3f626ba 100644 (file)
@@ -33,8 +33,8 @@ BYTESWAP_H    = @BYTESWAP_H@
 OCAMLLIB       = @OCAMLLIB@
 top_srcdir     = @top_srcdir@
 
-pkg_cil                = @pkg_cil@
-pkg_extlib     = @pkg_extlib@
+pkg_cil                = @OCAML_PKG_cil@
+pkg_extlib     = @OCAML_PKG_extlib@
 
 enable_coverage = @enable_coverage@
 
@@ -109,11 +109,11 @@ bitstring_persistent.cmi: bitstring_persistent.mli
          -I +camlp4 -pp camlp4of -c $<
 
 pa_bitstring.cmo: pa_bitstring.ml bitstring.cma bitstring_persistent.cma
-       $(OCAMLFIND) ocamlc bitstring.cma -I +camlp4 camlp4lib.cma \
+       $(OCAMLFIND) ocamlc bitstring.cma -I +camlp4 dynlink.cma camlp4lib.cma \
          -pp camlp4of -c $< -o $@
 
 bitstring-objinfo: bitstring_objinfo.cmo bitstring.cma bitstring_persistent.cma
-       $(OCAMLFIND) ocamlc -I +camlp4 unix.cma camlp4lib.cma \
+       $(OCAMLFIND) ocamlc -I +camlp4 unix.cma dynlink.cma camlp4lib.cma \
          $(OCAMLCLIBS) \
          bitstring.cma bitstring_persistent.cma \
          $< -o $@
@@ -155,7 +155,7 @@ tests/test.bmpp: create_test_pattern
 
 create_test_pattern: create_test_pattern.cmo
        $(OCAMLFIND) ocamlc $(OCAMLCFLAGS) -pp camlp4of \
-         unix.cma -I +camlp4 camlp4lib.cma \
+         unix.cma -I +camlp4 dynlink.cma camlp4lib.cma \
          $(OCAMLCLIBS) \
          -I . bitstring.cma bitstring_persistent.cma $< -o $@
 
@@ -274,6 +274,9 @@ install:
                pa_bitstring.cmo
        @for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done
 
+uninstall: 
+       ocamlfind remove bitstring
+
 # Standard rules.
 
 .mli.cmi: