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
|
|
|
|
./test.byt
|
|
|
|
./test.opt
|
|
|
|
|
|
|
|
TESTFILES=test.cmo \
|
|
|
|
test_nats.cmo test_big_ints.cmo test_ratios.cmo test_nums.cmo end_test.cmo
|
|
|
|
|
|
|
|
TESTOPTFILES=$(TESTFILES:.cmo=.cmx)
|
|
|
|
|
|
|
|
test.byt: $(TESTFILES) ../nums.cma ../libnums.a
|
|
|
|
$(CAMLC) -o test.byt -custom ../nums.cma $(TESTFILES) ../libnums.a
|
|
|
|
|
|
|
|
test.opt: $(TESTOPTFILES) ../nums.cmxa ../libnums.a
|
|
|
|
$(CAMLOPT) -o test.opt ../nums.cmxa $(TESTOPTFILES) ../libnums.a
|
|
|
|
|
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
|