ocaml/otherlibs/num/test/Makefile

54 lines
1.6 KiB
Makefile

#########################################################################
# #
# 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$
CAMLC=../../../boot/ocamlrun ../../../ocamlc -I ../../../stdlib
CAMLOPT=../../../boot/ocamlrun ../../../ocamlopt -I ../../../stdlib
test: test.byt test.opt
./test.byt
./test.opt
TESTFILES=test.cmo \
test_nats.cmo test_big_ints.cmo test_ratios.cmo test_nums.cmo \
test_io.cmo end_test.cmo
TESTOPTFILES=$(TESTFILES:.cmo=.cmx)
test.byt: $(TESTFILES) ../nums.cma ../libnums.a
$(CAMLC) -ccopt -L.. -o test.byt -custom ../nums.cma $(TESTFILES)
test.opt: $(TESTOPTFILES) ../nums.cmxa ../libnums.a
$(CAMLOPT) -ccopt -L.. -o test.opt ../nums.cmxa $(TESTOPTFILES)
$(TESTOPTFILES): ../../../ocamlopt
.SUFFIXES: .ml .cmo .cmx
.ml.cmo:
$(CAMLC) -I .. -c $<
.ml.cmx:
$(CAMLOPT) -I .. -c $<
ocamlnum:
ocamlmktop -o ocamlnum -custom ../nums.cma ../libnums.a
clean:
rm -f test.byt test.opt *.o *.cm? ocamlnum
depend:
ocamldep *.ml > .depend
include .depend