1996-02-13 08:29:09 -08:00
|
|
|
include ../../config/Makefile
|
1995-12-20 02:39:12 -08:00
|
|
|
|
1996-04-30 07:53:58 -07:00
|
|
|
CAMLC=../../boot/ocamlrun ../../ocamlc -I ../../stdlib
|
|
|
|
CAMLOPT=../../boot/ocamlrun ../../ocamlopt -I ../../stdlib
|
1995-12-20 02:39:12 -08:00
|
|
|
OPTFLAGS=-S
|
1996-04-30 07:53:58 -07:00
|
|
|
CAMLDEP=../../boot/ocamlrun ../../tools/ocamldep
|
|
|
|
CAMLRUN=../../byterun/ocamlrun
|
1995-12-20 02:39:12 -08:00
|
|
|
CODERUNPARAMS=CAMLRUNPARAM='o=100'
|
|
|
|
|
|
|
|
callback.byt: callback.cmo callbackprim.o
|
|
|
|
$(CAMLC) -o callback.byt -custom callback.cmo callbackprim.o
|
|
|
|
callback.out: callback.cmx callbackprim.o
|
|
|
|
$(CAMLOPT) -o callback.out callback.cmx callbackprim.o
|
|
|
|
|
|
|
|
manyargs.byt: manyargs.cmo manyargsprim.o
|
|
|
|
$(CAMLC) -o manyargs.byt -custom manyargs.cmo manyargsprim.o
|
|
|
|
manyargs.out: manyargs.cmx manyargsprim.o
|
|
|
|
$(CAMLOPT) -o manyargs.out manyargs.cmx manyargsprim.o
|
|
|
|
|
1996-03-20 02:51:37 -08:00
|
|
|
multdef.out: multdef.cmx usemultdef.cmx
|
|
|
|
$(CAMLOPT) -o multdef.out multdef.cmx usemultdef.cmx
|
|
|
|
|
1995-12-20 02:39:12 -08:00
|
|
|
# Common rules
|
|
|
|
|
|
|
|
.SUFFIXES:
|
|
|
|
.SUFFIXES: .mli .ml .cmi .cmo .cmx .byt .fast.byt .out .fast.out .c .o
|
|
|
|
|
|
|
|
.ml.byt:
|
|
|
|
$(CAMLC) -o $*.byt $<
|
|
|
|
|
|
|
|
.ml.fast.byt:
|
|
|
|
cp $*.ml $*_fast.ml
|
|
|
|
$(CAMLC) -unsafe -o $*.fast.byt $*_fast.ml
|
|
|
|
rm -f $*_fast.ml
|
|
|
|
|
|
|
|
.ml.out:
|
|
|
|
$(CAMLOPT) $(OPTFLAGS) -o $*.out $<
|
|
|
|
|
|
|
|
.ml.fast.out:
|
|
|
|
cp $*.ml $*_fast.ml
|
|
|
|
$(CAMLOPT) $(OPTFLAGS) -unsafe -o $*.fast.out $*_fast.ml
|
|
|
|
rm -f $*_fast.ml
|
|
|
|
|
|
|
|
.mli.cmi:
|
|
|
|
$(CAMLC) -c $<
|
|
|
|
|
|
|
|
.ml.cmo:
|
|
|
|
$(CAMLC) -c $<
|
|
|
|
|
|
|
|
.ml.cmx:
|
|
|
|
$(CAMLOPT) $(OPTFLAGS) -c $<
|
|
|
|
|
|
|
|
.c.o:
|
|
|
|
$(NATIVECC) -I../../byterun -c $<
|
|
|
|
|
|
|
|
clean::
|
|
|
|
rm -f *.byt *.out
|
|
|
|
rm -f *.cm[iox] *.[os]
|
|
|
|
rm -f *~
|
1996-04-01 07:26:56 -08:00
|
|
|
rm -f intext.data
|
1995-12-20 02:39:12 -08:00
|
|
|
|
|
|
|
# Dependencies
|
|
|
|
|
|
|
|
depend:
|
|
|
|
$(CAMLDEP) *.mli *.ml > .depend
|
|
|
|
|
|
|
|
include .depend
|
|
|
|
|