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 #
|
|
|
|
# under the terms of the GNU Library General Public License. #
|
|
|
|
# #
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
# $Id$
|
|
|
|
|
1998-07-29 02:59:47 -07:00
|
|
|
# Makefile for the dynamic link library
|
|
|
|
|
|
|
|
!include ..\..\config\Makefile.nt
|
|
|
|
|
2000-03-16 19:46:24 -08:00
|
|
|
CAMLC=..\..\boot\ocamlrun ..\..\ocamlc
|
1998-07-29 02:59:47 -07:00
|
|
|
INCLUDES=-I ..\..\utils -I ..\..\typing -I ..\..\bytecomp
|
|
|
|
COMPFLAGS=-I ..\..\stdlib $(INCLUDES)
|
|
|
|
|
|
|
|
OBJS=dynlink.cmo
|
2000-04-21 04:55:31 -07:00
|
|
|
COMPILEROBJS=misc.cmo config.cmo tbl.cmo \
|
1999-11-08 09:06:33 -08:00
|
|
|
clflags.cmo ident.cmo path.cmo \
|
2000-03-16 19:46:24 -08:00
|
|
|
types.cmo btype.cmo predef.cmo runtimedef.cmo \
|
2001-09-08 11:09:03 -07:00
|
|
|
bytesections.cmo dllpath.cmo dll.cmo symtable.cmo opcodes.cmo
|
1998-07-29 02:59:47 -07:00
|
|
|
|
|
|
|
all: dynlink.cma extract_crc
|
|
|
|
|
|
|
|
allopt:
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
|
|
|
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:
|
|
|
|
..\..\boot\ocamlrun ..\..\tools\ocamldep *.mli *.ml > .depend
|
|
|
|
|
|
|
|
!include .depend
|