1995-09-29 09:20:15 -07:00
|
|
|
# Makefile for the dynamic link library
|
|
|
|
|
1996-02-13 08:29:09 -08:00
|
|
|
include ../../config/Makefile
|
1995-09-29 09:20:15 -07:00
|
|
|
|
1996-04-30 07:53:58 -07:00
|
|
|
CAMLC=../../boot/ocamlrun ../../boot/ocamlc
|
1995-09-29 09:20:15 -07:00
|
|
|
INCLUDES=-I ../../utils -I ../../typing -I ../../bytecomp
|
1996-06-04 08:13:13 -07:00
|
|
|
COMPFLAGS=-I ../../stdlib $(INCLUDES)
|
1995-09-29 09:20:15 -07:00
|
|
|
|
|
|
|
OBJS=dynlink.cmo
|
1998-06-24 12:22:26 -07:00
|
|
|
COMPILEROBJS=misc.cmo config.cmo tbl.cmo clflags.cmo ident.cmo path.cmo \
|
|
|
|
types.cmo btype.cmo predef.cmo runtimedef.cmo symtable.cmo opcodes.cmo
|
1995-09-29 09:20:15 -07:00
|
|
|
|
|
|
|
all: dynlink.cma extract_crc
|
|
|
|
|
1995-11-07 02:01:45 -08:00
|
|
|
allopt:
|
|
|
|
|
1995-09-29 09:20:15 -07:00
|
|
|
dynlink.cma: $(OBJS)
|
|
|
|
$(CAMLC) $(COMPFLAGS) -a -o dynlink.cma $(COMPILEROBJS) $(OBJS)
|
|
|
|
|
|
|
|
extract_crc: dynlink.cma extract_crc.cmo
|
|
|
|
$(CAMLC) $(COMPFLAGS) -o extract_crc dynlink.cma extract_crc.cmo
|
|
|
|
|
|
|
|
install:
|
|
|
|
cp dynlink.cmi dynlink.cma extract_crc $(LIBDIR)
|
|
|
|
|
1995-11-07 02:01:45 -08:00
|
|
|
installopt:
|
|
|
|
|
1997-02-16 05:36:42 -08:00
|
|
|
partialclean:
|
1995-09-29 09:20:15 -07:00
|
|
|
rm -f extract_crc *.cm[ioa]
|
|
|
|
|
1997-02-16 05:36:42 -08:00
|
|
|
clean: partialclean
|
1995-11-07 02:01:45 -08:00
|
|
|
|
1995-09-29 09:20:15 -07:00
|
|
|
.SUFFIXES: .ml .mli .cmo .cmi
|
|
|
|
|
|
|
|
.mli.cmi:
|
|
|
|
$(CAMLC) -c $(COMPFLAGS) $<
|
|
|
|
|
|
|
|
.ml.cmo:
|
|
|
|
$(CAMLC) -c $(COMPFLAGS) $<
|
|
|
|
|
|
|
|
depend:
|
1998-04-21 09:09:03 -07:00
|
|
|
../../boot/ocamlrun ../../tools/ocamldep $(INCLUDES) *.mli *.ml >.depend
|
1995-09-29 09:20:15 -07:00
|
|
|
|
|
|
|
include .depend
|