1996-02-13 08:29:09 -08:00
|
|
|
include ../config/Makefile
|
1995-05-04 03:15:53 -07:00
|
|
|
|
1995-11-02 06:09:42 -08:00
|
|
|
RUNTIME=../boot/cslrun
|
|
|
|
COMPILER=../cslc
|
1995-06-18 07:45:56 -07:00
|
|
|
CAMLC=$(RUNTIME) $(COMPILER)
|
1995-11-02 06:09:42 -08:00
|
|
|
OPTCOMPILER=../cslopt
|
1995-07-10 02:48:27 -07:00
|
|
|
CAMLOPT=$(RUNTIME) $(OPTCOMPILER)
|
1995-11-02 06:09:42 -08:00
|
|
|
CAMLDEP=../boot/cslrun ../tools/csldep
|
1995-05-04 03:15:53 -07:00
|
|
|
|
1995-05-05 03:05:18 -07:00
|
|
|
OBJS=pervasives.cmo list.cmo string.cmo char.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 \
|
|
|
|
digest.cmo random.cmo
|
1995-05-04 03:15:53 -07:00
|
|
|
|
1995-10-23 09:58:50 -07:00
|
|
|
all: stdlib.cma std_exit.cmo cslheader
|
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:
|
1995-10-23 09:58:50 -07:00
|
|
|
cp stdlib.cma std_exit.cmo *.cmi *.mli cslheader $(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-02-13 08:29:09 -08:00
|
|
|
cslheader: header.c ../config/Makefile
|
1995-05-04 03:15:53 -07:00
|
|
|
if $(SHARPBANGSCRIPTS); \
|
1995-05-04 04:48:01 -07:00
|
|
|
then echo "#!$(BINDIR)/cslrun" > cslheader; \
|
1995-09-27 03:48:16 -07:00
|
|
|
else $(BYTECC) $(BYTECCCOMPOPTS) $(BYTECCLINKOPTS) header.c -o cslheader; \
|
1995-05-04 04:48:01 -07:00
|
|
|
strip cslheader; fi
|
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
|
1995-07-18 01:43:50 -07:00
|
|
|
$(CAMLOPT) $(COMPFLAGS) -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:
|
|
|
|
$(CAMLOPT) $(COMPFLAGS) -c $<
|
|
|
|
|
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
|
|
|
|
|
|
|
clean:
|
1995-11-26 12:23:16 -08:00
|
|
|
rm -f *.cm* *.o *.a
|
1995-06-18 07:45:56 -07:00
|
|
|
rm -f cslheader
|
1995-05-04 03:15:53 -07:00
|
|
|
rm -f *~
|
|
|
|
|
|
|
|
include .depend
|
|
|
|
|
|
|
|
depend:
|
|
|
|
$(CAMLDEP) *.mli *.ml > .depend
|