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$
|
|
|
|
|
2002-06-07 06:31:21 -07:00
|
|
|
CAMLC=../../../boot/ocamlrun ../../../ocamlc -I ../../../stdlib -I ..
|
|
|
|
CAMLOPT=../../../boot/ocamlrun ../../../ocamlopt -I ../../../stdlib -I ..
|
1996-02-22 04:52:45 -08:00
|
|
|
|
|
|
|
test: test.byt test.opt
|
2002-06-07 06:31:21 -07:00
|
|
|
../../../byterun/ocamlrun -I .. ./test.byt
|
|
|
|
./test.opt
|
1996-02-22 04:52:45 -08:00
|
|
|
|
|
|
|
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
|
1996-02-22 04:52:45 -08:00
|
|
|
|
|
|
|
TESTOPTFILES=$(TESTFILES:.cmo=.cmx)
|
|
|
|
|
2002-06-07 06:31:21 -07:00
|
|
|
test.byt: $(TESTFILES) ../nums.cma ../libnums.lib
|
2001-08-28 07:47:48 -07:00
|
|
|
$(CAMLC) -o test.byt nums.cma $(TESTFILES)
|
1996-02-22 04:52:45 -08:00
|
|
|
|
2002-06-07 06:31:21 -07:00
|
|
|
test.opt: $(TESTOPTFILES) ../nums.cmxa ../libnums.lib
|
2001-08-28 07:47:48 -07:00
|
|
|
$(CAMLOPT) -o test.opt nums.cmxa $(TESTOPTFILES)
|
1996-02-22 04:52:45 -08:00
|
|
|
|
2002-06-07 06:31:21 -07:00
|
|
|
$(TESTOPTFILES): ../../../ocamlopt
|
1996-02-22 04:52:45 -08:00
|
|
|
|
|
|
|
.SUFFIXES: .ml .cmo .cmx
|
|
|
|
|
|
|
|
.ml.cmo:
|
2001-08-28 07:47:48 -07:00
|
|
|
$(CAMLC) -c $<
|
1996-02-22 04:52:45 -08:00
|
|
|
|
|
|
|
.ml.cmx:
|
2001-08-28 07:47:48 -07:00
|
|
|
$(CAMLOPT) -c $<
|
1996-02-22 04:52:45 -08:00
|
|
|
|
2002-06-07 06:31:21 -07:00
|
|
|
ocamltopnum.exe:
|
|
|
|
ocamlmktop -o ocamltopnum.exe -custom ../nums.cma ../libnums.$(A)
|
1996-02-22 04:52:45 -08:00
|
|
|
|
|
|
|
clean:
|
2002-06-07 06:31:21 -07:00
|
|
|
rm -f test.byt test.opt *.$(O) *.cm? ocamltopnum.exe
|
1996-02-22 04:52:45 -08:00
|
|
|
|
|
|
|
depend:
|
1996-04-30 07:53:58 -07:00
|
|
|
ocamldep *.ml > .depend
|
1996-02-22 04:52:45 -08:00
|
|
|
|
2002-06-07 06:31:21 -07:00
|
|
|
include .depend
|