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 #
|
|
|
|
# under the terms of the GNU Library General Public License. #
|
|
|
|
# #
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include ../../config/Makefile
|
|
|
|
|
|
|
|
CC=$(BYTECC)
|
|
|
|
CFLAGS=-I../../byterun -g -O $(BYTECCCOMPOPTS)
|
|
|
|
CAMLC=../../boot/ocamlrun ../../ocamlc -I ../../stdlib -I ../unix
|
|
|
|
CAMLOPT=../../boot/ocamlrun ../../ocamlopt -I ../../stdlib -I ../unix
|
|
|
|
|
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)
|
|
|
|
rm -f libbigarray.a
|
|
|
|
ar rc libbigarray.a $(C_OBJS)
|
|
|
|
$(RANLIB) libbigarray.a
|
|
|
|
|
|
|
|
bigarray.cma: $(CAML_OBJS)
|
2000-03-09 01:12:28 -08:00
|
|
|
$(CAMLC) -a -linkall -custom -o bigarray.cma \
|
|
|
|
$(CAML_OBJS) -cclib -lbigarray
|
2000-02-22 09:33:01 -08:00
|
|
|
|
|
|
|
bigarray.cmxa: $(CAML_OBJS:.cmo=.cmx)
|
2000-03-09 01:12:28 -08:00
|
|
|
$(CAMLOPT) -a -linkall -o bigarray.cmxa \
|
|
|
|
$(CAML_OBJS:.cmo=.cmx) -cclib -lbigarray
|
2000-02-22 09:33:01 -08:00
|
|
|
|
2000-03-01 04:35:41 -08:00
|
|
|
install:
|
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:
|
|
|
|
rm -f *.cm*
|
|
|
|
|
|
|
|
clean: partialclean
|
|
|
|
rm -f libbigarray.a *.o
|
|
|
|
|
|
|
|
.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
|