1995-05-04 03:15:53 -07:00
|
|
|
include ../Makefile.config
|
|
|
|
|
|
|
|
COMPILER=../camlc
|
1995-05-22 08:43:44 -07:00
|
|
|
CAMLC=../byterun/camlrun $(COMPILER)
|
1995-05-04 03:15:53 -07:00
|
|
|
CAMLDEP=../tools/camldep
|
|
|
|
|
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-05-04 03:15:53 -07:00
|
|
|
printf.cmo format.cmo arg.cmo printexc.cmo gc.cmo
|
|
|
|
|
1995-05-04 04:48:01 -07:00
|
|
|
all: stdlib.cma cslheader
|
1995-05-04 03:15:53 -07:00
|
|
|
|
|
|
|
install:
|
1995-05-04 04:48:01 -07:00
|
|
|
cp stdlib.cma *.cmi *.mli cslheader $(LIBDIR)
|
1995-05-04 03:15:53 -07:00
|
|
|
|
|
|
|
stdlib.cma: $(OBJS)
|
|
|
|
$(CAMLC) -a -o stdlib.cma $(OBJS)
|
|
|
|
|
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; \
|
|
|
|
else $(CC) $(CCCOMPOPTS) $(CCLINKOPTS) header.c -o cslheader; \
|
|
|
|
strip cslheader; fi
|
1995-05-04 03:15:53 -07:00
|
|
|
|
|
|
|
pervasives.cmi: pervasives.mli
|
|
|
|
$(CAMLC) -nopervasives -c pervasives.mli
|
|
|
|
|
|
|
|
pervasives.cmo: pervasives.ml
|
|
|
|
$(CAMLC) -nopervasives -c pervasives.ml
|
|
|
|
|
|
|
|
.SUFFIXES: .mli .ml .cmi .cmo
|
|
|
|
|
|
|
|
.mli.cmi:
|
|
|
|
$(CAMLC) $(COMPFLAGS) -c $<
|
|
|
|
|
|
|
|
.ml.cmo:
|
|
|
|
$(CAMLC) $(COMPFLAGS) -c $<
|
|
|
|
|
|
|
|
$(OBJS): pervasives.cmi
|
|
|
|
|
|
|
|
$(OBJS): $(COMPILER)
|
|
|
|
$(OBJS:.cmo=.cmi): $(COMPILER)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.cm[ioa]
|
|
|
|
rm -f *~
|
|
|
|
|
|
|
|
include .depend
|
|
|
|
|
|
|
|
depend:
|
|
|
|
$(CAMLDEP) *.mli *.ml > .depend
|