diff options
author | Xavier Leroy <xavier.leroy@inria.fr> | 2001-08-28 14:47:48 +0000 |
---|---|---|
committer | Xavier Leroy <xavier.leroy@inria.fr> | 2001-08-28 14:47:48 +0000 |
commit | ddd99c7e5d2f0f8e7364e8521fa7e8308999344e (patch) | |
tree | 3c0158d035a52c0cf185c08c3288c3c76d6718d0 /tools/Makefile | |
parent | c345611817d76ccc3bbd02db1f942774220739f9 (diff) | |
download | ocaml-ddd99c7e5d2f0f8e7364e8521fa7e8308999344e.tar.gz |
Chargement dynamique de primitives C
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3677 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'tools/Makefile')
-rw-r--r-- | tools/Makefile | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/tools/Makefile b/tools/Makefile index 7225eb4011..eeb2a9f0b4 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -22,7 +22,7 @@ INCLUDES=-I ../utils -I ../parsing -I ../typing -I ../bytecomp -I ../asmcomp \ COMPFLAGS=$(INCLUDES) LINKFLAGS=$(INCLUDES) -all: ocamldep ocamlprof ocamlcp ocamlmktop +all: ocamldep ocamlprof ocamlcp ocamlmktop ocamlmklib # The dependency generator @@ -73,6 +73,22 @@ install:: clean:: rm -f ocamlmktop +# To help building mixed-mode libraries (Caml + C) + +ocamlmklib: ocamlmklib.tpl ../config/Makefile + sed -e 's|%%BINDIR%%|$(BINDIR)|' \ + -e 's|%%SUPPORTS_SHARED_LIBRARIES%%|$(SUPPORTS_SHARED_LIBRARIES)|' \ + -e 's|%%MKSHAREDLIB%%|$(MKSHAREDLIB)|' \ + -e 's|%%RANLIB%%|$(RANLIB)|' \ + ocamlmklib.tpl > ocamlmklib + chmod +x ocamlmklib + +install:: + cp ocamlmklib $(BINDIR)/ocamlmklib + +clean:: + rm -f ocamlmklib + # Converter ocaml 2.04 to 3 OCAML299TO3= lexer299.cmo ocaml299to3.cmo |