1995-05-04 03:15:53 -07:00
|
|
|
include ../Makefile.config
|
|
|
|
|
1995-06-18 07:45:56 -07:00
|
|
|
RUNTIME=../boot/camlrun
|
1995-05-04 03:15:53 -07:00
|
|
|
COMPILER=../camlc
|
1995-06-18 07:45:56 -07:00
|
|
|
CAMLC=$(RUNTIME) $(COMPILER)
|
1995-07-10 02:48:27 -07:00
|
|
|
OPTCOMPILER=../camlopt
|
|
|
|
CAMLOPT=$(RUNTIME) $(OPTCOMPILER)
|
1995-08-25 06:54:37 -07:00
|
|
|
CAMLDEP=../boot/camlrun ../tools/camldep
|
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-05-30 06:33:57 -07:00
|
|
|
set.cmo map.cmo stack.cmo queue.cmo \
|
1995-10-24 08:38:03 -07:00
|
|
|
printf.cmo format.cmo arg.cmo printexc.cmo gc.cmo random.cmo \
|
|
|
|
digest.cmo profiling.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
|
|
|
|
1995-05-04 04:48:01 -07:00
|
|
|
cslheader: header.c ../Makefile.config
|
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-05-04 03:15:53 -07:00
|
|
|
|
|
|
|
$(OBJS): $(COMPILER)
|
|
|
|
$(OBJS:.cmo=.cmi): $(COMPILER)
|
1995-07-10 02:48:27 -07:00
|
|
|
$(OBJS:.cmo=.cmx): $(OPTCOMPILER)
|
1995-05-04 03:15:53 -07:00
|
|
|
|
|
|
|
clean:
|
1995-07-10 02:48:27 -07:00
|
|
|
rm -f *.cm*
|
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
|