1996-04-30 07:53:58 -07:00
|
|
|
CAMLC=..\..\..\boot\ocamlrun ..\..\..\ocamlc -I ..\..\..\stdlib
|
|
|
|
CAMLOPT=..\..\..\boot\ocamlrun ..\..\..\ocamlopt -I ..\..\..\stdlib
|
1996-02-22 04:52:45 -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.lib
|
|
|
|
$(CAMLC) -o test.byt -custom ..\nums.cma $(TESTFILES) ..\libnums.lib
|
|
|
|
|
|
|
|
test.opt: $(TESTOPTFILES) ..\nums.cmxa ..\libnums.lib
|
|
|
|
$(CAMLOPT) -o test.opt ..\nums.cmxa $(TESTOPTFILES) ..\libnums.lib
|
|
|
|
|
1996-04-30 07:53:58 -07:00
|
|
|
$(TESTOPTFILES): ..\..\..\ocamlopt
|
1996-02-22 04:52:45 -08:00
|
|
|
|
|
|
|
.SUFFIXES: .ml .cmo .cmx
|
|
|
|
|
|
|
|
.ml.cmo:
|
|
|
|
$(CAMLC) -I .. -c $<
|
|
|
|
|
|
|
|
.ml.cmx:
|
|
|
|
$(CAMLOPT) -I .. -c $<
|
|
|
|
|
1996-04-30 07:53:58 -07:00
|
|
|
ocamltopnum:
|
|
|
|
ocamlmktop -o ocamltopnum -custom ..\nums.cma ..\libnums.lib
|
1996-02-22 04:52:45 -08:00
|
|
|
|
|
|
|
clean:
|
1996-04-30 07:53:58 -07:00
|
|
|
rm -f test.byt test.opt *.obj *.cm? ocamltopnum
|
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
|
|
|
|
|
|
|
!include .depend
|