summaryrefslogtreecommitdiff
path: root/otherlibs/bigarray/Makefile.nt
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>2001-08-28 14:47:48 +0000
committerXavier Leroy <xavier.leroy@inria.fr>2001-08-28 14:47:48 +0000
commitddd99c7e5d2f0f8e7364e8521fa7e8308999344e (patch)
tree3c0158d035a52c0cf185c08c3288c3c76d6718d0 /otherlibs/bigarray/Makefile.nt
parentc345611817d76ccc3bbd02db1f942774220739f9 (diff)
downloadocaml-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 'otherlibs/bigarray/Makefile.nt')
-rw-r--r--otherlibs/bigarray/Makefile.nt33
1 files changed, 23 insertions, 10 deletions
diff --git a/otherlibs/bigarray/Makefile.nt b/otherlibs/bigarray/Makefile.nt
index c3f6970f96..9525c30381 100644
--- a/otherlibs/bigarray/Makefile.nt
+++ b/otherlibs/bigarray/Makefile.nt
@@ -15,7 +15,7 @@
include ..\..\config\Makefile.nt
CC=$(BYTECC)
-CFLAGS=-I..\..\byterun -I..\win32unix $(BYTECCCOMPOPTS)
+CFLAGS=-I..\..\byterun -I..\win32unix
CAMLC=..\..\boot\ocamlrun ..\..\ocamlc -I ..\..\stdlib -I ..\win32unix
CAMLOPT=..\..\boot\ocamlrun ..\..\ocamlopt -I ..\..\stdlib -I ..\win32unix
@@ -23,24 +23,29 @@ C_OBJS=bigarray_stubs.obj mmap_win32.obj
CAML_OBJS=bigarray.cmo
-all: libbigarray.lib bigarray.cma
+all: libbigarray.dll libbigarray.lib bigarray.cma
allopt: libbigarray.lib bigarray.cmxa
-libbigarray.lib: $(C_OBJS)
- rm -f libbigarray.lib
- $(MKLIB)libbigarray.lib $(C_OBJS)
+libbigarray.dll: $(C_OBJS:.obj=.dobj)
+ link /nologo /dll /out:libbigarray.dll /implib:tmp.lib \
+ $(C_OBJS:.obj=.dobj) ..\..\byterun\ocamlrun.lib
+ rm tmp.*
+
+libbigarray.lib: $(C_OBJS:.obj=.sobj)
+ rm -f libunix.lib
+ $(MKLIB)libbigarray.lib $(C_OBJS:.obj=.sobj)
bigarray.cma: $(CAML_OBJS)
- $(CAMLC) -a -linkall -custom -o bigarray.cma \
- $(CAML_OBJS) -cclib -lbigarray
+ $(CAMLC) -a -linkall -o bigarray.cma $(CAML_OBJS) -cclib -lbigarray
bigarray.cmxa: $(CAML_OBJS:.cmo=.cmx)
$(CAMLOPT) -a -linkall -o bigarray.cmxa \
$(CAML_OBJS:.cmo=.cmx) -cclib -lbigarray
install:
- cp bigarray.cmi bigarray.mli libbigarray.lib bigarray.cma $(LIBDIR)
+ cp libbigarray.dll libbigarray.lib $(LIBDIR)
+ cp bigarray.cmi bigarray.mli bigarray.cma $(LIBDIR)
cp bigarray.h $(LIBDIR)/caml/bigarray.h
installopt:
@@ -50,9 +55,9 @@ partialclean:
rm -f *.cm*
clean: partialclean
- rm -f libbigarray.lib *.obj
+ rm -f *.dll *.lib *.dobj *.sobj
-.SUFFIXES: .ml .mli .cmo .cmi .cmx
+.SUFFIXES: .ml .mli .cmo .cmi .cmx .dobj .sobj
.mli.cmi:
$(CAMLC) -c $(COMPFLAGS) $<
@@ -63,6 +68,14 @@ clean: partialclean
.ml.cmx:
$(CAMLOPT) -c $(COMPFLAGS) $<
+.c.dobj:
+ $(BYTECC) $(DLLCCCOMPOPTS) $(CFLAGS) -c $<
+ mv $*.obj $*.dobj
+
+.c.sobj:
+ $(BYTECC) $(BYTECCCOMPOPTS) $(CFLAGS) -c $<
+ mv $*.obj $*.sobj
+
depend:
gcc -MM $(CFLAGS) *.c > .depend
..\..\boot\ocamlrun ..\..\tools\ocamldep *.mli *.ml >> .depend