1996-02-13 08:29:09 -08:00
|
|
|
include ../config/Makefile
|
1995-05-04 03:15:53 -07:00
|
|
|
|
1996-04-30 07:53:58 -07:00
|
|
|
RUNTIME=../boot/ocamlrun
|
|
|
|
COMPILER=../ocamlc
|
1995-06-18 07:45:56 -07:00
|
|
|
CAMLC=$(RUNTIME) $(COMPILER)
|
1997-02-19 08:10:57 -08:00
|
|
|
COMPFLAGS=-g
|
1996-04-30 07:53:58 -07:00
|
|
|
OPTCOMPILER=../ocamlopt
|
1995-07-10 02:48:27 -07:00
|
|
|
CAMLOPT=$(RUNTIME) $(OPTCOMPILER)
|
1997-02-19 08:10:57 -08:00
|
|
|
OPTCOMPFLAGS=
|
1996-04-30 07:53:58 -07:00
|
|
|
CAMLDEP=../boot/ocamlrun ../tools/ocamldep
|
1995-05-04 03:15:53 -07:00
|
|
|
|
1996-10-31 08:03:04 -08:00
|
|
|
OBJS=pervasives.cmo list.cmo char.cmo string.cmo array.cmo sys.cmo \
|
1995-05-04 03:15:53 -07:00
|
|
|
hashtbl.cmo sort.cmo filename.cmo obj.cmo lexing.cmo parsing.cmo \
|
1995-11-09 03:08:48 -08:00
|
|
|
set.cmo map.cmo stack.cmo queue.cmo stream.cmo \
|
1995-11-15 08:40:44 -08:00
|
|
|
printf.cmo format.cmo arg.cmo printexc.cmo gc.cmo \
|
1997-02-24 11:24:39 -08:00
|
|
|
digest.cmo random.cmo oo.cmo genlex.cmo callback.cmo weak.cmo
|
1995-05-04 03:15:53 -07:00
|
|
|
|
1996-04-30 07:53:58 -07:00
|
|
|
all: stdlib.cma std_exit.cmo camlheader
|
1995-05-04 03:15:53 -07:00
|
|
|
|
1995-10-23 09:58:50 -07:00
|
|
|
allopt: stdlib.cmxa std_exit.cmx
|
1995-07-21 02:03:58 -07:00
|
|
|
|
1995-05-04 03:15:53 -07:00
|
|
|
install:
|
1997-02-25 06:40:56 -08:00
|
|
|
cp stdlib.cma std_exit.cmo *.cmi *.mli *.ml camlheader $(LIBDIR)
|
1995-05-04 03:15:53 -07:00
|
|
|
|
1995-07-21 02:03:58 -07:00
|
|
|
installopt:
|
1995-10-26 09:25:03 -07:00
|
|
|
cp stdlib.cmxa stdlib.a std_exit.o *.cmx $(LIBDIR)
|
1995-07-21 02:03:58 -07:00
|
|
|
cd $(LIBDIR); $(RANLIB) stdlib.a
|
|
|
|
|
1995-05-04 03:15:53 -07:00
|
|
|
stdlib.cma: $(OBJS)
|
|
|
|
$(CAMLC) -a -o stdlib.cma $(OBJS)
|
|
|
|
|
1995-07-11 11:08:25 -07:00
|
|
|
stdlib.cmxa: $(OBJS:.cmo=.cmx)
|
|
|
|
$(CAMLOPT) -a -o stdlib.cmxa $(OBJS:.cmo=.cmx)
|
1995-07-10 02:48:27 -07:00
|
|
|
|
1996-04-30 07:53:58 -07:00
|
|
|
camlheader: header.c ../config/Makefile
|
1995-05-04 03:15:53 -07:00
|
|
|
if $(SHARPBANGSCRIPTS); \
|
1996-04-30 07:53:58 -07:00
|
|
|
then echo "#!$(BINDIR)/ocamlrun" > camlheader; \
|
1997-03-04 02:21:27 -08:00
|
|
|
else $(BYTECC) $(BYTECCCOMPOPTS) $(BYTECCLINKOPTS) '-DRUNTIME_NAME="$(BINDIR)/ocamlrun"' header.c -o camlheader; \
|
|
|
|
strip camlheader; \
|
|
|
|
fi
|
1995-05-04 03:15:53 -07:00
|
|
|
|
1996-02-15 08:19:09 -08:00
|
|
|
clean::
|
1996-04-30 07:53:58 -07:00
|
|
|
rm -f camlheader
|
1996-02-15 08:19:09 -08:00
|
|
|
|
1995-05-04 03:15:53 -07:00
|
|
|
pervasives.cmi: pervasives.mli
|
1995-07-18 01:43:50 -07:00
|
|
|
$(CAMLC) $(COMPFLAGS) -nopervasives -c pervasives.mli
|
1995-05-04 03:15:53 -07:00
|
|
|
|
|
|
|
pervasives.cmo: pervasives.ml
|
1995-07-18 01:43:50 -07:00
|
|
|
$(CAMLC) $(COMPFLAGS) -nopervasives -c pervasives.ml
|
1995-05-04 03:15:53 -07:00
|
|
|
|
1995-07-10 02:48:27 -07:00
|
|
|
pervasives.cmx: pervasives.ml
|
1997-02-19 08:10:57 -08:00
|
|
|
$(CAMLOPT) $(OPTCOMPFLAGS) -nopervasives -c pervasives.ml
|
1995-07-10 02:48:27 -07:00
|
|
|
|
|
|
|
.SUFFIXES: .mli .ml .cmi .cmo .cmx
|
1995-05-04 03:15:53 -07:00
|
|
|
|
|
|
|
.mli.cmi:
|
|
|
|
$(CAMLC) $(COMPFLAGS) -c $<
|
|
|
|
|
|
|
|
.ml.cmo:
|
|
|
|
$(CAMLC) $(COMPFLAGS) -c $<
|
|
|
|
|
1995-07-10 02:48:27 -07:00
|
|
|
.ml.cmx:
|
1997-02-19 08:10:57 -08:00
|
|
|
$(CAMLOPT) $(OPTCOMPFLAGS) -c $<
|
1995-07-10 02:48:27 -07:00
|
|
|
|
1995-10-23 09:58:50 -07:00
|
|
|
$(OBJS) std_exit.cmo: pervasives.cmi
|
1995-11-09 05:24:02 -08:00
|
|
|
$(OBJS:.cmo=.cmx) std_exit.cmx: pervasives.cmi
|
1995-05-04 03:15:53 -07:00
|
|
|
|
1995-12-10 01:34:35 -08:00
|
|
|
$(OBJS) std_exit.cmo: $(COMPILER)
|
|
|
|
$(OBJS:.cmo=.cmi) std_exit.cmi: $(COMPILER)
|
|
|
|
$(OBJS:.cmo=.cmx) std_exit.cmx: $(OPTCOMPILER)
|
1995-05-04 03:15:53 -07:00
|
|
|
|
1996-02-15 08:19:09 -08:00
|
|
|
clean::
|
1995-11-26 12:23:16 -08:00
|
|
|
rm -f *.cm* *.o *.a
|
1995-05-04 03:15:53 -07:00
|
|
|
rm -f *~
|
|
|
|
|
|
|
|
include .depend
|
|
|
|
|
1996-11-08 06:47:14 -08:00
|
|
|
depend:
|
1995-05-04 03:15:53 -07:00
|
|
|
$(CAMLDEP) *.mli *.ml > .depend
|