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$
|
|
|
|
|
1996-02-15 08:25:44 -08:00
|
|
|
!include ..\config\Makefile.nt
|
|
|
|
|
1996-04-30 07:53:58 -07:00
|
|
|
RUNTIME=..\boot\ocamlrun
|
|
|
|
COMPILER=..\ocamlc
|
1996-02-15 08:25:44 -08:00
|
|
|
CAMLC=$(RUNTIME) $(COMPILER)
|
1996-04-30 07:53:58 -07:00
|
|
|
OPTCOMPILER=..\ocamlopt
|
1996-02-15 08:25:44 -08:00
|
|
|
CAMLOPT=$(RUNTIME) $(OPTCOMPILER)
|
1996-04-30 07:53:58 -07:00
|
|
|
CAMLDEP=..\boot\ocamlrun ..\tools\ocamldep
|
1996-02-15 08:25:44 -08:00
|
|
|
|
1996-12-10 06:45:58 -08:00
|
|
|
OBJS=pervasives.cmo list.cmo char.cmo string.cmo array.cmo sys.cmo \
|
1999-11-29 11:04:04 -08:00
|
|
|
hashtbl.cmo sort.cmo marshal.cmo obj.cmo \
|
1997-10-28 05:17:11 -08:00
|
|
|
lexing.cmo parsing.cmo \
|
1996-02-15 08:25:44 -08:00
|
|
|
set.cmo map.cmo stack.cmo queue.cmo stream.cmo \
|
1999-02-25 02:26:38 -08:00
|
|
|
buffer.cmo printf.cmo format.cmo arg.cmo printexc.cmo gc.cmo \
|
1997-10-28 05:17:11 -08:00
|
|
|
digest.cmo random.cmo oo.cmo genlex.cmo callback.cmo weak.cmo \
|
1999-11-29 11:04:04 -08:00
|
|
|
lazy.cmo filename.cmo
|
1996-02-15 08:25:44 -08:00
|
|
|
|
1998-06-01 07:53:28 -07:00
|
|
|
all: stdlib.cma std_exit.cmo camlheader camlheader_ur
|
1996-02-15 08:25:44 -08:00
|
|
|
|
|
|
|
allopt: stdlib.cmxa std_exit.cmx
|
|
|
|
|
|
|
|
install:
|
1998-06-01 07:53:28 -07:00
|
|
|
cp stdlib.cma std_exit.cmo *.cmi *.mli camlheader camlheader_ur $(LIBDIR)
|
1996-02-15 08:25:44 -08:00
|
|
|
|
|
|
|
installopt:
|
|
|
|
cp stdlib.cmxa stdlib.lib std_exit.obj *.cmx $(LIBDIR)
|
|
|
|
|
|
|
|
stdlib.cma: $(OBJS)
|
|
|
|
$(CAMLC) -a -o stdlib.cma $(OBJS)
|
|
|
|
|
|
|
|
stdlib.cmxa: $(OBJS:.cmo=.cmx)
|
|
|
|
$(CAMLOPT) -a -o stdlib.cmxa $(OBJS:.cmo=.cmx)
|
|
|
|
|
1998-06-01 07:53:28 -07:00
|
|
|
camlheader camlheader_ur: headernt.c ..\config\Makefile.nt
|
1996-05-07 06:09:26 -07:00
|
|
|
$(BYTECC) $(BYTECCCOMPOPTS) $(BYTECCLINKOPTS) -o camlheader. headernt.c
|
1998-06-01 07:53:28 -07:00
|
|
|
cp camlheader camlheader_ur
|
1996-02-15 08:25:44 -08:00
|
|
|
|
|
|
|
clean::
|
1998-06-01 07:53:28 -07:00
|
|
|
rm -f camlheader camlheader_ur
|
1996-02-15 08:25:44 -08:00
|
|
|
|
|
|
|
pervasives.cmi: pervasives.mli
|
|
|
|
$(CAMLC) $(COMPFLAGS) -nopervasives -c pervasives.mli
|
|
|
|
|
|
|
|
pervasives.cmo: pervasives.ml
|
|
|
|
$(CAMLC) $(COMPFLAGS) -nopervasives -c pervasives.ml
|
|
|
|
|
|
|
|
pervasives.cmx: pervasives.ml
|
|
|
|
$(CAMLOPT) $(COMPFLAGS) -nopervasives -c pervasives.ml
|
|
|
|
|
1998-05-21 05:52:21 -07:00
|
|
|
# oo.cmi must be compiled with -nopervasives for applets
|
|
|
|
oo.cmi: oo.mli
|
|
|
|
$(CAMLC) $(COMPFLAGS) -nopervasives -c oo.mli
|
|
|
|
|
1996-02-15 08:25:44 -08:00
|
|
|
.SUFFIXES: .mli .ml .cmi .cmo .cmx
|
|
|
|
|
|
|
|
.mli.cmi:
|
|
|
|
$(CAMLC) $(COMPFLAGS) -c $<
|
|
|
|
|
|
|
|
.ml.cmo:
|
|
|
|
$(CAMLC) $(COMPFLAGS) -c $<
|
|
|
|
|
|
|
|
.ml.cmx:
|
|
|
|
$(CAMLOPT) $(COMPFLAGS) -c $<
|
|
|
|
|
|
|
|
$(OBJS) std_exit.cmo: pervasives.cmi
|
|
|
|
$(OBJS:.cmo=.cmx) std_exit.cmx: pervasives.cmi
|
|
|
|
|
|
|
|
$(OBJS) std_exit.cmo: $(COMPILER)
|
|
|
|
$(OBJS:.cmo=.cmi) std_exit.cmi: $(COMPILER)
|
|
|
|
$(OBJS:.cmo=.cmx) std_exit.cmx: $(OPTCOMPILER)
|
|
|
|
|
|
|
|
clean::
|
|
|
|
rm -f *.cm* *.obj *.lib
|
|
|
|
rm -f *~
|
|
|
|
|
|
|
|
!include .depend
|
|
|
|
|
|
|
|
depend: beforedepend
|
|
|
|
$(CAMLDEP) *.mli *.ml > .depend
|