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
|
2002-01-20 07:12:32 -08:00
|
|
|
COMPFLAGS=-warn-error A -I ../../stdlib $(INCLUDES)
|
1995-09-29 09:20:15 -07:00
|
|
|
|
|
|
|
OBJS=dynlink.cmo
|
2000-04-21 04:55:31 -07:00
|
|
|
COMPILEROBJS=misc.cmo config.cmo tbl.cmo clflags.cmo \
|
1999-11-08 09:06:33 -08:00
|
|
|
ident.cmo path.cmo \
|
2000-03-05 11:18:50 -08:00
|
|
|
types.cmo btype.cmo predef.cmo runtimedef.cmo \
|
2001-10-30 01:32:32 -08:00
|
|
|
bytesections.cmo dll.cmo symtable.cmo opcodes.cmo meta.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:
|
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:
|
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
|