2000-03-16 05:35:20 -08:00
|
|
|
#########################################################################
|
|
|
|
# #
|
|
|
|
# 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 #
|
2001-12-07 05:41:02 -08:00
|
|
|
# under the terms of the GNU Library General Public License, with #
|
|
|
|
# the special exception on linking described in file ../../LICENSE. #
|
2000-03-16 05:35:20 -08:00
|
|
|
# #
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
# $Id$
|
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
include ../../config/Makefile
|
2000-03-16 05:35:20 -08:00
|
|
|
|
|
|
|
CC=$(BYTECC)
|
2002-06-07 02:49:45 -07:00
|
|
|
CFLAGS=-I../../byterun -I../win32unix
|
|
|
|
CAMLC=../../boot/ocamlrun ../../ocamlc -I ../../stdlib -I ../win32unix
|
|
|
|
CAMLOPT=../../boot/ocamlrun ../../ocamlopt -I ../../stdlib -I ../win32unix
|
2000-03-16 05:35:20 -08:00
|
|
|
|
|
|
|
C_OBJS=bigarray_stubs.obj mmap_win32.obj
|
|
|
|
|
|
|
|
CAML_OBJS=bigarray.cmo
|
|
|
|
|
2003-01-06 07:02:16 -08:00
|
|
|
all: dllbigarray.dll libbigarray.$(A) bigarray.cma
|
2000-03-16 05:35:20 -08:00
|
|
|
|
2003-01-06 07:02:16 -08:00
|
|
|
allopt: libbigarray.$(A) bigarray.cmxa
|
2000-03-16 05:35:20 -08:00
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
dllbigarray.dll: $(C_OBJS:.obj=.$(DO))
|
2003-01-06 07:02:16 -08:00
|
|
|
$(call MKDLL,dllbigarray.dll,dllbigarray.$(A),\
|
2002-06-07 02:49:45 -07:00
|
|
|
$(C_OBJS:.obj=.$(DO)) ../../byterun/ocamlrun.$(A))
|
2001-08-28 07:47:48 -07:00
|
|
|
|
2003-01-06 07:02:16 -08:00
|
|
|
libbigarray.$(A): $(C_OBJS:.obj=.$(SO))
|
2002-06-07 02:49:45 -07:00
|
|
|
$(call MKLIB,libbigarray.$(A),$(C_OBJS:.obj=.$(SO)))
|
2000-03-16 05:35:20 -08:00
|
|
|
|
|
|
|
bigarray.cma: $(CAML_OBJS)
|
2001-11-06 05:21:46 -08:00
|
|
|
$(CAMLC) -a -linkall -o bigarray.cma $(CAML_OBJS) \
|
|
|
|
-dllib -lbigarray -cclib -lbigarray
|
2000-03-16 05:35:20 -08:00
|
|
|
|
|
|
|
bigarray.cmxa: $(CAML_OBJS:.cmo=.cmx)
|
|
|
|
$(CAMLOPT) -a -linkall -o bigarray.cmxa \
|
|
|
|
$(CAML_OBJS:.cmo=.cmx) -cclib -lbigarray
|
|
|
|
|
|
|
|
install:
|
2002-06-27 04:36:02 -07:00
|
|
|
cp dllbigarray.dll $(STUBLIBDIR)
|
2003-01-06 07:02:16 -08:00
|
|
|
cp libbigarray.$(A) dllbigarray.$(A) $(LIBDIR)
|
|
|
|
cp bigarray.cmi bigarray.mli bigarray.cma $(LIBDIR)
|
2000-08-21 06:06:54 -07:00
|
|
|
cp bigarray.h $(LIBDIR)/caml/bigarray.h
|
2000-03-16 05:35:20 -08:00
|
|
|
|
|
|
|
installopt:
|
2002-06-07 02:49:45 -07:00
|
|
|
cp bigarray.$(A) $(CAML_OBJS:.cmo=.cmx) bigarray.cmxa $(LIBDIR)
|
2000-03-16 05:35:20 -08:00
|
|
|
|
|
|
|
partialclean:
|
|
|
|
rm -f *.cm*
|
|
|
|
|
|
|
|
clean: partialclean
|
2002-06-07 02:49:45 -07:00
|
|
|
rm -f *.dll *.$(A) *.$(O)
|
2000-03-16 05:35:20 -08:00
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
.SUFFIXES: .ml .mli .cmo .cmi .cmx .$(DO) .$(SO)
|
2000-03-16 05:35:20 -08:00
|
|
|
|
|
|
|
.mli.cmi:
|
|
|
|
$(CAMLC) -c $(COMPFLAGS) $<
|
|
|
|
|
|
|
|
.ml.cmo:
|
|
|
|
$(CAMLC) -c $(COMPFLAGS) $<
|
|
|
|
|
|
|
|
.ml.cmx:
|
|
|
|
$(CAMLOPT) -c $(COMPFLAGS) $<
|
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
.c.$(DO):
|
2001-08-28 07:47:48 -07:00
|
|
|
$(BYTECC) $(DLLCCCOMPOPTS) $(CFLAGS) -c $<
|
2002-06-07 02:49:45 -07:00
|
|
|
mv $*.$(O) $*.$(DO)
|
2001-08-28 07:47:48 -07:00
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
.c.$(SO):
|
2001-08-28 07:47:48 -07:00
|
|
|
$(BYTECC) $(BYTECCCOMPOPTS) $(CFLAGS) -c $<
|
2002-06-07 02:49:45 -07:00
|
|
|
mv $*.$(O) $*.$(SO)
|
2001-08-28 07:47:48 -07:00
|
|
|
|
2000-03-16 05:35:20 -08:00
|
|
|
depend:
|
|
|
|
gcc -MM $(CFLAGS) *.c > .depend
|
2002-06-07 02:49:45 -07:00
|
|
|
../../boot/ocamlrun ../../tools/ocamldep *.mli *.ml >> .depend
|
2000-03-16 05:35:20 -08:00
|
|
|
|
|
|
|
include .depend
|