2000-02-22 09:33:01 -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-02-22 09:33:01 -08:00
|
|
|
# #
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include ../../config/Makefile
|
|
|
|
|
|
|
|
CC=$(BYTECC)
|
2001-08-28 07:47:48 -07:00
|
|
|
CFLAGS=-I../../byterun -g -O $(BYTECCCOMPOPTS) $(SHAREDCCCOMPOPTS)
|
2000-02-22 09:33:01 -08:00
|
|
|
CAMLC=../../boot/ocamlrun ../../ocamlc -I ../../stdlib -I ../unix
|
|
|
|
CAMLOPT=../../boot/ocamlrun ../../ocamlopt -I ../../stdlib -I ../unix
|
2001-11-08 02:32:24 -08:00
|
|
|
MKLIB=../../boot/ocamlrun ../../tools/ocamlmklib
|
2000-02-22 09:33:01 -08:00
|
|
|
|
2000-02-25 05:45:54 -08:00
|
|
|
C_OBJS=bigarray_stubs.o mmap_unix.o
|
2000-02-22 09:33:01 -08:00
|
|
|
|
|
|
|
CAML_OBJS=bigarray.cmo
|
|
|
|
|
|
|
|
all: libbigarray.a bigarray.cma
|
|
|
|
|
|
|
|
allopt: libbigarray.a bigarray.cmxa
|
|
|
|
|
|
|
|
libbigarray.a: $(C_OBJS)
|
2001-08-28 07:47:48 -07:00
|
|
|
$(MKLIB) -o bigarray $(C_OBJS)
|
2000-02-22 09:33:01 -08:00
|
|
|
|
|
|
|
bigarray.cma: $(CAML_OBJS)
|
2001-08-28 07:47:48 -07:00
|
|
|
$(MKLIB) -ocamlc '$(CAMLC)' -linkall -o bigarray $(CAML_OBJS)
|
2000-02-22 09:33:01 -08:00
|
|
|
|
|
|
|
bigarray.cmxa: $(CAML_OBJS:.cmo=.cmx)
|
2001-08-28 07:47:48 -07:00
|
|
|
$(MKLIB) -ocamlopt '$(CAMLOPT)' -linkall -o bigarray \
|
|
|
|
$(CAML_OBJS:.cmo=.cmx)
|
2000-02-22 09:33:01 -08:00
|
|
|
|
2000-03-01 04:35:41 -08:00
|
|
|
install:
|
2001-10-30 01:32:32 -08:00
|
|
|
if test -f dllbigarray.so; then cp dllbigarray.so $(LIBDIR)/dllbigarray.so; fi
|
2000-03-02 01:18:00 -08:00
|
|
|
cp bigarray.cmi bigarray.mli libbigarray.a bigarray.cma $(LIBDIR)
|
2000-03-07 00:27:12 -08:00
|
|
|
cd $(LIBDIR); $(RANLIB) libbigarray.a
|
2000-04-10 08:00:16 -07:00
|
|
|
cp bigarray.h $(LIBDIR)/caml/bigarray.h
|
2000-03-01 04:35:41 -08:00
|
|
|
|
|
|
|
installopt:
|
2000-03-07 00:27:12 -08:00
|
|
|
cp bigarray.a $(CAML_OBJS:.cmo=.cmx) bigarray.cmxa $(LIBDIR)
|
|
|
|
cd $(LIBDIR); $(RANLIB) bigarray.a
|
2000-03-01 04:35:41 -08:00
|
|
|
|
2000-02-22 09:33:01 -08:00
|
|
|
partialclean:
|
2001-03-30 04:21:13 -08:00
|
|
|
rm -f *.cm*
|
2000-02-22 09:33:01 -08:00
|
|
|
|
|
|
|
clean: partialclean
|
2001-11-05 08:26:31 -08:00
|
|
|
rm -f libbigarray.* *.o bigarray.a *.so
|
2000-02-22 09:33:01 -08:00
|
|
|
|
|
|
|
.SUFFIXES: .ml .mli .cmo .cmi .cmx
|
|
|
|
|
|
|
|
.mli.cmi:
|
|
|
|
$(CAMLC) -c $(COMPFLAGS) $<
|
|
|
|
|
|
|
|
.ml.cmo:
|
|
|
|
$(CAMLC) -c $(COMPFLAGS) $<
|
|
|
|
|
|
|
|
.ml.cmx:
|
|
|
|
$(CAMLOPT) -c $(COMPFLAGS) $<
|
|
|
|
|
|
|
|
depend:
|
2000-04-21 01:13:22 -07:00
|
|
|
gcc -MM -I../../byterun -I../unix *.c > .depend
|
2000-02-22 09:33:01 -08:00
|
|
|
../../boot/ocamlrun ../../tools/ocamldep *.mli *.ml >> .depend
|
|
|
|
|
|
|
|
include .depend
|