1999-11-17 10:59:06 -08:00
|
|
|
#########################################################################
|
|
|
|
# #
|
|
|
|
# Objective Caml #
|
|
|
|
# #
|
|
|
|
# Xavier Leroy, projet Cristal, INRIA Rocquencourt #
|
|
|
|
# #
|
|
|
|
# Copyright 1999 Institut National de Recherche en Informatique et #
|
|
|
|
# en Automatique. All rights reserved. This file is distributed #
|
2001-12-07 05:41:02 -08:00
|
|
|
# under the terms of the GNU Library General Public License, with #
|
|
|
|
# the special exception on linking described in file ../../LICENSE. #
|
1999-11-17 10:59:06 -08:00
|
|
|
# #
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
# $Id$
|
|
|
|
|
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
|
|
|
|
2000-02-05 04:16:09 -08:00
|
|
|
CAMLC=../../boot/ocamlrun ../../ocamlc
|
1995-09-29 09:20:15 -07:00
|
|
|
INCLUDES=-I ../../utils -I ../../typing -I ../../bytecomp
|
2004-11-29 06:53:32 -08:00
|
|
|
COMPFLAGS=-warn-error A -I ../../stdlib $(INCLUDES)
|
1995-09-29 09:20:15 -07:00
|
|
|
|
2006-05-11 08:52:02 -07:00
|
|
|
OBJS=dynlinkaux.cmo dynlink.cmo
|
|
|
|
|
|
|
|
COMPILEROBJS=\
|
|
|
|
../../utils/misc.cmo ../../utils/config.cmo ../../utils/clflags.cmo \
|
|
|
|
../../utils/tbl.cmo ../../utils/consistbl.cmo \
|
|
|
|
../../utils/terminfo.cmo ../../utils/warnings.cmo \
|
|
|
|
../../parsing/asttypes.cmi ../../parsing/linenum.cmo \
|
|
|
|
../../parsing/location.cmo ../../parsing/longident.cmo \
|
|
|
|
../../typing/ident.cmo ../../typing/path.cmo \
|
|
|
|
../../typing/primitive.cmo ../../typing/types.cmo \
|
|
|
|
../../typing/btype.cmo ../../typing/subst.cmo ../../typing/predef.cmo \
|
|
|
|
../../typing/datarepr.cmo ../../typing/env.cmo \
|
|
|
|
../../bytecomp/lambda.cmo ../../bytecomp/instruct.cmo \
|
|
|
|
../../bytecomp/cmo_format.cmi ../../bytecomp/opcodes.cmo \
|
|
|
|
../../bytecomp/runtimedef.cmo ../../bytecomp/bytesections.cmo \
|
|
|
|
../../bytecomp/dll.cmo ../../bytecomp/meta.cmo \
|
|
|
|
../../bytecomp/symtable.cmo
|
|
|
|
|
|
|
|
# ../../utils/misc.cmo ../../utils/config.cmo ../../utils/tbl.cmo \
|
|
|
|
# ../../utils/clflags.cmo ../../utils/warnings.cmo ../../utils/consistbl.cmo \
|
|
|
|
# ../../parsing/asttypes.cmi ../../parsing/linenum.cmo \
|
|
|
|
# ../../parsing/location.cmo ../../parsing/longident.cmo \
|
|
|
|
# ../../typing/ident.cmo ../../typing/path.cmo \
|
|
|
|
# ../../typing/primitive.cmo \
|
|
|
|
# ../../typing/types.cmo ../../typing/btype.cmo \
|
|
|
|
# ../../typing/subst.cmo ../../typing/predef.cmo ../../typing/datarepr.cmo \
|
|
|
|
# ../../typing/env.cmo \
|
|
|
|
# ../../bytecomp/lambda.cmo ../../bytecomp/instruct.cmo \
|
|
|
|
# ../../bytecomp/opcodes.cmo ../../bytecomp/emitcode.cmo \
|
|
|
|
# ../../bytecomp/runtimedef.cmo ../../bytecomp/bytesections.cmo \
|
|
|
|
# ../../bytecomp/dll.cmo ../../bytecomp/meta.cmo \
|
|
|
|
# ../../bytecomp/symtable.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)
|
2006-05-11 08:52:02 -07:00
|
|
|
$(CAMLC) $(COMPFLAGS) -a -o dynlink.cma $(OBJS)
|
|
|
|
|
|
|
|
dynlinkaux.cmo dynlinkaux.cmi: $(COMPILEROBJS)
|
|
|
|
$(CAMLC) $(COMPFLAGS) -pack -o dynlinkaux.cmo $(COMPILEROBJS)
|
1995-09-29 09:20:15 -07:00
|
|
|
|
|
|
|
extract_crc: dynlink.cma extract_crc.cmo
|
|
|
|
$(CAMLC) $(COMPFLAGS) -o extract_crc dynlink.cma extract_crc.cmo
|
|
|
|
|
|
|
|
install:
|
2000-03-29 03:32:06 -08:00
|
|
|
cp dynlink.cmi dynlink.cma dynlink.mli extract_crc $(LIBDIR)
|
1995-09-29 09:20:15 -07:00
|
|
|
|
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:
|
|
|
|
|
2006-05-11 08:52:02 -07:00
|
|
|
dynlink.cmo: dynlinkaux.cmi dynlink.cmi
|
|
|
|
extract_crc.cmo: dynlink.cmi
|