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 #
|
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.#
|
1999-11-17 10:59:06 -08:00
|
|
|
# #
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
# $Id$
|
|
|
|
|
2001-08-28 07:47:48 -07:00
|
|
|
include ../../../config/Makefile
|
|
|
|
|
1996-05-11 11:26:49 -07:00
|
|
|
CAMLC=../../../boot/ocamlrun ../../../ocamlc -I ../../../stdlib
|
|
|
|
CAMLOPT=../../../boot/ocamlrun ../../../ocamlopt -I ../../../stdlib
|
1995-11-06 02:34:19 -08:00
|
|
|
|
|
|
|
test: test.byt test.opt
|
2001-08-28 07:47:48 -07:00
|
|
|
if $(SUPPORTS_SHARED_LIBRARIES); then ../../../byterun/ocamlrun -I .. ./test.byt; else ./test.byt; fi
|
1995-11-06 02:34:19 -08:00
|
|
|
./test.opt
|
|
|
|
|
|
|
|
TESTFILES=test.cmo \
|
2000-02-10 06:04:59 -08:00
|
|
|
test_nats.cmo test_big_ints.cmo test_ratios.cmo test_nums.cmo \
|
|
|
|
test_io.cmo end_test.cmo
|
1995-11-06 02:34:19 -08:00
|
|
|
|
|
|
|
TESTOPTFILES=$(TESTFILES:.cmo=.cmx)
|
|
|
|
|
|
|
|
test.byt: $(TESTFILES) ../nums.cma ../libnums.a
|
2001-08-28 07:47:48 -07:00
|
|
|
$(CAMLC) -ccopt -L.. -o test.byt ../nums.cma $(TESTFILES)
|
1995-11-06 02:34:19 -08:00
|
|
|
|
|
|
|
test.opt: $(TESTOPTFILES) ../nums.cmxa ../libnums.a
|
2000-07-20 08:23:43 -07:00
|
|
|
$(CAMLOPT) -ccopt -L.. -o test.opt ../nums.cmxa $(TESTOPTFILES)
|
1995-11-06 02:34:19 -08:00
|
|
|
|
1996-05-11 11:26:49 -07:00
|
|
|
$(TESTOPTFILES): ../../../ocamlopt
|
1995-11-26 12:23:16 -08:00
|
|
|
|
1995-11-06 02:34:19 -08:00
|
|
|
.SUFFIXES: .ml .cmo .cmx
|
|
|
|
|
|
|
|
.ml.cmo:
|
|
|
|
$(CAMLC) -I .. -c $<
|
|
|
|
|
|
|
|
.ml.cmx:
|
|
|
|
$(CAMLOPT) -I .. -c $<
|
|
|
|
|
1996-05-11 11:26:49 -07:00
|
|
|
ocamlnum:
|
|
|
|
ocamlmktop -o ocamlnum -custom ../nums.cma ../libnums.a
|
1995-11-06 02:34:19 -08:00
|
|
|
|
|
|
|
clean:
|
1996-05-11 11:26:49 -07:00
|
|
|
rm -f test.byt test.opt *.o *.cm? ocamlnum
|
1995-11-06 02:34:19 -08:00
|
|
|
|
|
|
|
depend:
|
1996-05-11 11:26:49 -07:00
|
|
|
ocamldep *.ml > .depend
|
1995-11-06 02:34:19 -08:00
|
|
|
|
|
|
|
include .depend
|