diff options
author | Xavier Leroy <xavier.leroy@inria.fr> | 2000-03-16 13:35:20 +0000 |
---|---|---|
committer | Xavier Leroy <xavier.leroy@inria.fr> | 2000-03-16 13:35:20 +0000 |
commit | b070d1dce08a924cfdae5b5304318a990ebb73c8 (patch) | |
tree | adbee9f1271b251af595e3a1ac42c545f02d3237 /otherlibs/bigarray/Makefile.nt | |
parent | 3375e52091a4274b9503be74351a4aada59a94db (diff) |
MAJ portage Win32
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2962 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/bigarray/Makefile.nt')
-rw-r--r-- | otherlibs/bigarray/Makefile.nt | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/otherlibs/bigarray/Makefile.nt b/otherlibs/bigarray/Makefile.nt new file mode 100644 index 000000000..003b90561 --- /dev/null +++ b/otherlibs/bigarray/Makefile.nt @@ -0,0 +1,69 @@ +######################################################################### +# # +# Objective Caml # +# # +# Xavier Leroy, projet Cristal, INRIA Rocquencourt # +# # +# Copyright 1999 Institut National de Recherche en Informatique et # +# en Automatique. All rights reserved. This file is distributed # +# under the terms of the GNU Library General Public License. # +# # +######################################################################### + +# $Id$ + +include ..\..\config\Makefile.nt + +CC=$(BYTECC) +CFLAGS=-I..\..\byterun -I..\win32unix $(BYTECCCOMPOPTS) +CAMLC=..\..\boot\ocamlrun ..\..\ocamlc -I ..\..\stdlib -I ..\win32unix +CAMLOPT=..\..\boot\ocamlrun ..\..\ocamlopt -I ..\..\stdlib -I ..\win32unix + +C_OBJS=bigarray_stubs.obj mmap_win32.obj + +CAML_OBJS=bigarray.cmo + +all: libbigarray.lib bigarray.cma + +allopt: libbigarray.lib bigarray.cmxa + +libbigarray.lib: $(C_OBJS) + rm -f libbigarray.lib + $(MKLIB)libbigarray.lib $(C_OBJS) + +bigarray.cma: $(CAML_OBJS) + $(CAMLC) -a -linkall -custom -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) + +installopt: + cp bigarray.lib $(CAML_OBJS:.cmo=.cmx) bigarray.cmxa $(LIBDIR) + +partialclean: + rm -f *.cm* + +clean: partialclean + rm -f libbigarray.lib *.obj + +.SUFFIXES: .ml .mli .cmo .cmi .cmx + +.mli.cmi: + $(CAMLC) -c $(COMPFLAGS) $< + +.ml.cmo: + $(CAMLC) -c $(COMPFLAGS) $< + +.ml.cmx: + $(CAMLOPT) -c $(COMPFLAGS) $< + +depend: + gcc -MM $(CFLAGS) *.c > .depend + ..\..\boot\ocamlrun ..\..\tools\ocamldep *.mli *.ml >> .depend + +include .depend |