1999-11-17 10:59:06 -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 Q Public License version 1.0. #
|
|
|
|
# #
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
# $Id$
|
|
|
|
|
1996-02-13 08:29:09 -08:00
|
|
|
include ../../config/Makefile
|
1995-12-20 02:39:12 -08:00
|
|
|
|
1996-04-30 07:53:58 -07:00
|
|
|
CAMLC=../../boot/ocamlrun ../../ocamlc -I ../../stdlib
|
|
|
|
CAMLOPT=../../boot/ocamlrun ../../ocamlopt -I ../../stdlib
|
1995-12-20 02:39:12 -08:00
|
|
|
OPTFLAGS=-S
|
1996-04-30 07:53:58 -07:00
|
|
|
CAMLDEP=../../boot/ocamlrun ../../tools/ocamldep
|
|
|
|
CAMLRUN=../../byterun/ocamlrun
|
1999-11-18 09:57:48 -08:00
|
|
|
CODERUNPARAMS=OCAMLRUNPARAM='o=100'
|
1995-12-20 02:39:12 -08:00
|
|
|
|
|
|
|
callback.byt: callback.cmo callbackprim.o
|
1997-11-28 02:35:58 -08:00
|
|
|
$(CAMLC) -o callback.byt -custom callback.cmo callbackprim.o ../../otherlibs/unix/libunix.a
|
1995-12-20 02:39:12 -08:00
|
|
|
callback.out: callback.cmx callbackprim.o
|
1997-11-28 02:35:58 -08:00
|
|
|
$(CAMLOPT) -o callback.out callback.cmx callbackprim.o ../../otherlibs/unix/libunix.a
|
1995-12-20 02:39:12 -08:00
|
|
|
|
|
|
|
manyargs.byt: manyargs.cmo manyargsprim.o
|
|
|
|
$(CAMLC) -o manyargs.byt -custom manyargs.cmo manyargsprim.o
|
|
|
|
manyargs.out: manyargs.cmx manyargsprim.o
|
|
|
|
$(CAMLOPT) -o manyargs.out manyargs.cmx manyargsprim.o
|
|
|
|
|
1996-03-20 02:51:37 -08:00
|
|
|
multdef.out: multdef.cmx usemultdef.cmx
|
|
|
|
$(CAMLOPT) -o multdef.out multdef.cmx usemultdef.cmx
|
|
|
|
|
1997-03-17 02:18:39 -08:00
|
|
|
cm.byt: cmcaml.ml cmstub.c cmmain.c
|
1997-02-02 06:54:33 -08:00
|
|
|
$(CAMLC) -custom -o cm.byt cmcaml.ml cmstub.c cmmain.c
|
1996-11-08 06:47:40 -08:00
|
|
|
|
1997-03-17 02:18:39 -08:00
|
|
|
cmlinked.out: cmcaml.ml cmstub.c cmmain.c
|
1997-02-02 06:54:33 -08:00
|
|
|
$(CAMLC) -output-obj -o cm.o cmcaml.ml
|
2000-10-27 08:18:24 -07:00
|
|
|
$(BYTECC) -g -o cmlinked.out cm.o -I../../byterun -DNO_BYTECODE_FILE cmstub.c cmmain.c ../../byterun/libcamlrun.a $(BYTECCLIBS)
|
1996-11-08 06:47:40 -08:00
|
|
|
|
1997-03-17 02:18:39 -08:00
|
|
|
cm.out: cmcaml.ml cmstub.c cmmain.c
|
1997-02-02 06:54:33 -08:00
|
|
|
$(CAMLOPT) -output-obj -o cm.o cmcaml.ml
|
2000-10-27 08:18:24 -07:00
|
|
|
$(NATIVECC) -g -o cm.out cm.o -I$(LIBDIR) -DNO_BYTECODE_FILE cmstub.c cmmain.c ../../asmrun/libasmrun.a $(NATIVECCLIBS)
|
1996-11-08 06:47:40 -08:00
|
|
|
|
2000-02-29 09:41:12 -08:00
|
|
|
bigarrays.byt: ../../otherlibs/bigarray/bigarray.cma \
|
2000-02-22 09:34:55 -08:00
|
|
|
../../otherlibs/bigarray/libbigarray.a bigarrays.ml
|
2000-03-10 06:54:41 -08:00
|
|
|
$(CAMLC) -o bigarrays.byt \
|
2000-02-25 05:46:11 -08:00
|
|
|
-I ../../otherlibs/bigarray \
|
|
|
|
-I ../../otherlibs/unix \
|
2000-04-16 07:36:44 -07:00
|
|
|
unix.cma bigarray.cma bigarrays.ml
|
2000-02-22 09:34:55 -08:00
|
|
|
|
2000-02-29 09:41:12 -08:00
|
|
|
bigarrays.out: ../../otherlibs/bigarray/bigarray.cmxa \
|
2000-02-22 09:34:55 -08:00
|
|
|
../../otherlibs/bigarray/libbigarray.a bigarrays.ml
|
2000-02-28 07:46:50 -08:00
|
|
|
$(CAMLOPT) $(OPTFLAGS) -o bigarrays.out \
|
2000-02-25 05:46:11 -08:00
|
|
|
-I ../../otherlibs/bigarray \
|
|
|
|
-I ../../otherlibs/unix \
|
2000-04-16 07:36:44 -07:00
|
|
|
unix.cmxa bigarray.cmxa bigarrays.ml
|
2000-02-29 09:41:12 -08:00
|
|
|
|
|
|
|
bigarrf.byt: bigarrf.o bigarrfstub.o \
|
|
|
|
../../otherlibs/bigarray/bigarray.cma \
|
|
|
|
../../otherlibs/bigarray/libbigarray.a bigarrfml.ml
|
|
|
|
$(CAMLC) -custom -o bigarrf.byt \
|
|
|
|
-I ../../otherlibs/bigarray \
|
|
|
|
-I ../../otherlibs/unix \
|
|
|
|
unix.cma bigarray.cma bigarrf.ml \
|
2000-02-29 01:11:26 -08:00
|
|
|
bigarrf.o bigarrfstub.o \
|
2000-02-29 09:41:12 -08:00
|
|
|
../../byterun/libcamlrun.a -cclib -lg2c
|
|
|
|
|
|
|
|
bigarrf.out: bigarrf.o bigarrfstub.o \
|
|
|
|
../../otherlibs/bigarray/bigarray.cma \
|
|
|
|
../../otherlibs/bigarray/libbigarray.a bigarrfml.ml
|
|
|
|
$(CAMLOPT) $(OPTFLAGS) -o bigarrf.out \
|
|
|
|
-I ../../otherlibs/bigarray \
|
|
|
|
-I ../../otherlibs/unix \
|
|
|
|
unix.cma bigarray.cma bigarrf.ml \
|
|
|
|
bigarrf.o bigarrfstub.o \
|
|
|
|
../../byterun/libcamlrun.a -cclib -lg2c
|
2000-02-29 01:11:26 -08:00
|
|
|
|
|
|
|
bigarrf.o: bigarrf.f
|
|
|
|
g77 -c bigarrf.f
|
|
|
|
|
|
|
|
bigarrfstub.o: bigarrfstub.c
|
|
|
|
$(NATIVECC) $(NATIVECCCOMPOPTS) -I../../byterun -I../../otherlibs/bigarray -c bigarrfstub.c
|
2000-02-22 09:34:55 -08:00
|
|
|
|
2000-03-10 06:54:41 -08:00
|
|
|
fftba.byt: fftba.ml
|
|
|
|
$(CAMLC) -o fftba.byt -I ../../otherlibs/bigarray \
|
2000-04-16 07:36:44 -07:00
|
|
|
bigarray.cma fftba.ml
|
2000-03-10 06:54:41 -08:00
|
|
|
|
|
|
|
fftba.out: fftba.ml
|
|
|
|
$(CAMLOPT) $(OPTFLAGS) -o fftba.out -I ../../otherlibs/bigarray \
|
2000-04-16 07:36:44 -07:00
|
|
|
bigarray.cmxa fftba.ml
|
2000-03-10 06:54:41 -08:00
|
|
|
|
2001-08-11 10:36:38 -07:00
|
|
|
globroots.byt: globroots.ml globrootsprim.o
|
|
|
|
$(CAMLC) -custom -o globroots.byt globroots.ml globrootsprim.o
|
|
|
|
|
|
|
|
globroots.out: globroots.ml globrootsprim.o
|
|
|
|
$(CAMLOPT) -o globroots.out globroots.ml globrootsprim.o
|
|
|
|
|
|
|
|
globrootsprim.o: globrootsprim.c
|
|
|
|
$(BYTECC) $(BYTECCCOMPOPTS) -I../../byterun -c globrootsprim.c
|
|
|
|
|
1995-12-20 02:39:12 -08:00
|
|
|
# Common rules
|
|
|
|
|
|
|
|
.SUFFIXES:
|
|
|
|
.SUFFIXES: .mli .ml .cmi .cmo .cmx .byt .fast.byt .out .fast.out .c .o
|
|
|
|
|
|
|
|
.ml.byt:
|
|
|
|
$(CAMLC) -o $*.byt $<
|
|
|
|
|
|
|
|
.ml.fast.byt:
|
|
|
|
cp $*.ml $*_fast.ml
|
|
|
|
$(CAMLC) -unsafe -o $*.fast.byt $*_fast.ml
|
|
|
|
rm -f $*_fast.ml
|
|
|
|
|
|
|
|
.ml.out:
|
|
|
|
$(CAMLOPT) $(OPTFLAGS) -o $*.out $<
|
|
|
|
|
|
|
|
.ml.fast.out:
|
|
|
|
cp $*.ml $*_fast.ml
|
|
|
|
$(CAMLOPT) $(OPTFLAGS) -unsafe -o $*.fast.out $*_fast.ml
|
|
|
|
rm -f $*_fast.ml
|
|
|
|
|
|
|
|
.mli.cmi:
|
|
|
|
$(CAMLC) -c $<
|
|
|
|
|
|
|
|
.ml.cmo:
|
|
|
|
$(CAMLC) -c $<
|
|
|
|
|
|
|
|
.ml.cmx:
|
|
|
|
$(CAMLOPT) $(OPTFLAGS) -c $<
|
|
|
|
|
|
|
|
.c.o:
|
1997-02-03 06:41:42 -08:00
|
|
|
$(NATIVECC) $(NATIVECCCOMPOPTS) -I../../byterun -c $<
|
1995-12-20 02:39:12 -08:00
|
|
|
|
|
|
|
clean::
|
|
|
|
rm -f *.byt *.out
|
|
|
|
rm -f *.cm[iox] *.[os]
|
|
|
|
rm -f *~
|
1996-04-01 07:26:56 -08:00
|
|
|
rm -f intext.data
|
1995-12-20 02:39:12 -08:00
|
|
|
|
|
|
|
# Dependencies
|
|
|
|
|
|
|
|
depend:
|
|
|
|
$(CAMLDEP) *.mli *.ml > .depend
|
|
|
|
|
|
|
|
include .depend
|
|
|
|
|