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)
|
2005-10-19 04:56:24 -07:00
|
|
|
CFLAGS=-I../../byterun -O $(BYTECCCOMPOPTS) $(SHAREDCCCOMPOPTS)
|
2002-04-27 07:45:33 -07:00
|
|
|
CAMLC=../../ocamlcomp.sh -I ../unix
|
|
|
|
CAMLOPT=../../ocamlcompopt.sh -I ../unix
|
2001-11-08 02:32:24 -08:00
|
|
|
MKLIB=../../boot/ocamlrun ../../tools/ocamlmklib
|
2007-01-29 04:11:18 -08:00
|
|
|
COMPFLAGS=-warn-error A -g
|
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:
|
2002-06-27 04:36:02 -07:00
|
|
|
if test -f dllbigarray.so; then cp dllbigarray.so $(STUBLIBDIR)/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
|
2007-02-07 02:31:36 -08:00
|
|
|
rm -f *.o *.so *.a
|
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
|