ocaml/otherlibs/dynlink/Makefile

92 lines
3.3 KiB
Makefile
Raw Normal View History

#########################################################################
# #
# 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 #
# under the terms of the GNU Library General Public License, with #
# the special exception on linking described in file ../../LICENSE. #
# #
#########################################################################
# $Id$
# Makefile for the dynamic link library
include ../../config/Makefile
CAMLC=../../boot/ocamlrun ../../ocamlc
INCLUDES=-I ../../utils -I ../../typing -I ../../bytecomp
COMPFLAGS=-warn-error A -I ../../stdlib $(INCLUDES)
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
all: dynlink.cma extract_crc
allopt:
dynlink.cma: $(OBJS)
$(CAMLC) $(COMPFLAGS) -a -o dynlink.cma $(OBJS)
dynlinkaux.cmo dynlinkaux.cmi: $(COMPILEROBJS)
$(CAMLC) $(COMPFLAGS) -pack -o dynlinkaux.cmo $(COMPILEROBJS)
extract_crc: dynlink.cma extract_crc.cmo
$(CAMLC) $(COMPFLAGS) -o extract_crc dynlink.cma extract_crc.cmo
install:
cp dynlink.cmi dynlink.cma dynlink.mli extract_crc $(LIBDIR)
installopt:
partialclean:
rm -f extract_crc *.cm[ioa]
clean: partialclean
.SUFFIXES: .ml .mli .cmo .cmi
.mli.cmi:
$(CAMLC) -c $(COMPFLAGS) $<
.ml.cmo:
$(CAMLC) -c $(COMPFLAGS) $<
depend:
dynlink.cmo: dynlinkaux.cmi dynlink.cmi
extract_crc.cmo: dynlink.cmi