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 Q Public License version 1.0. #
|
|
|
|
# #
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
# $Id$
|
|
|
|
|
1996-02-21 02:49:46 -08:00
|
|
|
# The main Makefile
|
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
include config/Makefile
|
2002-11-17 08:42:12 -08:00
|
|
|
include stdlib/StdlibModules
|
1996-02-21 02:49:46 -08:00
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
CAMLC=boot/ocamlrun boot/ocamlc -I boot
|
|
|
|
CAMLOPT=boot/ocamlrun ./ocamlopt -I stdlib
|
1996-02-21 02:49:46 -08:00
|
|
|
COMPFLAGS=$(INCLUDES)
|
|
|
|
LINKFLAGS=
|
2002-06-07 02:49:45 -07:00
|
|
|
CAMLYACC=boot/ocamlyacc
|
1996-02-21 02:49:46 -08:00
|
|
|
YACCFLAGS=
|
2002-06-07 02:49:45 -07:00
|
|
|
CAMLLEX=boot/ocamlrun boot/ocamllex
|
|
|
|
CAMLDEP=boot/ocamlrun tools/ocamldep
|
1996-02-21 02:49:46 -08:00
|
|
|
DEPFLAGS=$(INCLUDES)
|
2002-06-07 02:49:45 -07:00
|
|
|
CAMLRUN=byterun/ocamlrun
|
1996-02-21 02:49:46 -08:00
|
|
|
|
|
|
|
INCLUDES=-I utils -I parsing -I typing -I bytecomp -I asmcomp -I driver -I toplevel
|
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
UTILS=utils/misc.cmo utils/tbl.cmo utils/config.cmo \
|
2003-03-24 07:23:50 -08:00
|
|
|
utils/clflags.cmo utils/terminfo.cmo utils/ccomp.cmo utils/warnings.cmo \
|
|
|
|
utils/consistbl.cmo
|
1996-02-21 02:49:46 -08:00
|
|
|
|
2000-02-11 07:09:27 -08:00
|
|
|
OPTUTILS=$(UTILS)
|
1997-03-04 02:19:15 -08:00
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
PARSING=parsing/linenum.cmo parsing/location.cmo parsing/longident.cmo \
|
|
|
|
parsing/syntaxerr.cmo parsing/parser.cmo \
|
|
|
|
parsing/lexer.cmo parsing/parse.cmo parsing/printast.cmo
|
|
|
|
|
|
|
|
TYPING=typing/ident.cmo typing/path.cmo \
|
|
|
|
typing/primitive.cmo typing/types.cmo \
|
|
|
|
typing/btype.cmo typing/oprint.cmo \
|
|
|
|
typing/subst.cmo typing/predef.cmo \
|
|
|
|
typing/datarepr.cmo typing/env.cmo \
|
|
|
|
typing/typedtree.cmo typing/ctype.cmo \
|
|
|
|
typing/printtyp.cmo typing/includeclass.cmo \
|
|
|
|
typing/mtype.cmo typing/includecore.cmo \
|
|
|
|
typing/includemod.cmo typing/parmatch.cmo \
|
2003-05-12 07:21:02 -07:00
|
|
|
typing/typetexp.cmo typing/stypes.cmo typing/typecore.cmo \
|
2002-06-07 02:49:45 -07:00
|
|
|
typing/typedecl.cmo typing/typeclass.cmo \
|
|
|
|
typing/typemod.cmo
|
|
|
|
|
|
|
|
COMP=bytecomp/lambda.cmo bytecomp/printlambda.cmo \
|
|
|
|
bytecomp/typeopt.cmo bytecomp/switch.cmo bytecomp/matching.cmo \
|
|
|
|
bytecomp/translobj.cmo bytecomp/translcore.cmo \
|
|
|
|
bytecomp/translclass.cmo bytecomp/translmod.cmo \
|
|
|
|
bytecomp/simplif.cmo bytecomp/runtimedef.cmo
|
|
|
|
|
|
|
|
BYTECOMP=bytecomp/meta.cmo bytecomp/instruct.cmo bytecomp/bytegen.cmo \
|
|
|
|
bytecomp/printinstr.cmo bytecomp/opcodes.cmo bytecomp/emitcode.cmo \
|
|
|
|
bytecomp/bytesections.cmo bytecomp/dll.cmo bytecomp/symtable.cmo \
|
|
|
|
bytecomp/bytelink.cmo bytecomp/bytelibrarian.cmo bytecomp/bytepackager.cmo
|
|
|
|
|
|
|
|
ASMCOMP=asmcomp/arch.cmo asmcomp/cmm.cmo asmcomp/printcmm.cmo \
|
|
|
|
asmcomp/reg.cmo asmcomp/mach.cmo asmcomp/proc.cmo \
|
|
|
|
asmcomp/clambda.cmo asmcomp/compilenv.cmo \
|
|
|
|
asmcomp/closure.cmo asmcomp/cmmgen.cmo \
|
|
|
|
asmcomp/printmach.cmo asmcomp/selectgen.cmo asmcomp/selection.cmo \
|
|
|
|
asmcomp/comballoc.cmo asmcomp/liveness.cmo \
|
|
|
|
asmcomp/spill.cmo asmcomp/split.cmo \
|
|
|
|
asmcomp/interf.cmo asmcomp/coloring.cmo \
|
|
|
|
asmcomp/reloadgen.cmo asmcomp/reload.cmo \
|
|
|
|
asmcomp/printlinear.cmo asmcomp/linearize.cmo \
|
|
|
|
asmcomp/schedgen.cmo asmcomp/scheduling.cmo \
|
|
|
|
asmcomp/emitaux.cmo asmcomp/emit.cmo asmcomp/asmgen.cmo \
|
|
|
|
asmcomp/asmlink.cmo asmcomp/asmlibrarian.cmo asmcomp/asmpackager.cmo
|
|
|
|
|
|
|
|
DRIVER=driver/pparse.cmo driver/errors.cmo driver/compile.cmo \
|
|
|
|
driver/main_args.cmo driver/main.cmo
|
|
|
|
|
|
|
|
OPTDRIVER=driver/pparse.cmo driver/opterrors.cmo driver/optcompile.cmo \
|
|
|
|
driver/optmain.cmo
|
|
|
|
|
|
|
|
TOPLEVEL=driver/pparse.cmo driver/errors.cmo driver/compile.cmo \
|
|
|
|
toplevel/genprintval.cmo toplevel/toploop.cmo \
|
|
|
|
toplevel/trace.cmo toplevel/topdirs.cmo toplevel/topmain.cmo
|
|
|
|
|
|
|
|
TOPLEVELLIB=toplevel/toplevellib.cma
|
|
|
|
TOPLEVELSTART=toplevel/topstart.cmo
|
1996-02-21 02:49:46 -08:00
|
|
|
|
|
|
|
COMPOBJS=$(UTILS) $(PARSING) $(TYPING) $(COMP) $(BYTECOMP) $(DRIVER)
|
|
|
|
|
|
|
|
TOPLIB=$(UTILS) $(PARSING) $(TYPING) $(COMP) $(BYTECOMP) $(TOPLEVEL)
|
|
|
|
|
2002-06-11 06:53:03 -07:00
|
|
|
TOPOBJS=$(TOPLEVELLIB) $(TOPLEVELSTART)
|
1996-02-21 02:49:46 -08:00
|
|
|
|
1997-03-04 02:19:15 -08:00
|
|
|
OPTOBJS=$(OPTUTILS) $(PARSING) $(TYPING) $(COMP) $(ASMCOMP) $(OPTDRIVER)
|
1996-02-21 02:49:46 -08:00
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
EXPUNGEOBJS=utils/misc.cmo utils/tbl.cmo \
|
|
|
|
utils/config.cmo utils/clflags.cmo \
|
|
|
|
typing/ident.cmo typing/path.cmo typing/types.cmo typing/btype.cmo \
|
|
|
|
typing/predef.cmo bytecomp/runtimedef.cmo bytecomp/bytesections.cmo \
|
|
|
|
bytecomp/dll.cmo \
|
|
|
|
bytecomp/symtable.cmo toplevel/expunge.cmo
|
1996-02-21 02:49:46 -08:00
|
|
|
|
2002-11-22 07:10:40 -08:00
|
|
|
PERVASIVES=$(STDLIB_MODULES) topdirs toploop outcometree
|
|
|
|
|
2001-12-03 02:13:14 -08:00
|
|
|
# For users who don't read the INSTALL file
|
|
|
|
defaultentry:
|
|
|
|
@echo "Please refer to the installation instructions in file README.win32."
|
|
|
|
|
1996-02-21 02:49:46 -08:00
|
|
|
# Recompile the system using the bootstrap compiler
|
2002-11-05 02:23:52 -08:00
|
|
|
all: runtime ocamlc ocamllex ocamlyacc ocamltools library ocaml otherlibraries ocamldoc.byte camlp4out win32gui
|
1996-02-21 02:49:46 -08:00
|
|
|
|
1996-04-30 07:53:58 -07:00
|
|
|
# The compilation of ocaml will fail if the runtime has changed.
|
1996-02-21 02:49:46 -08:00
|
|
|
# Never mind, just do make bootstrap to reach fixpoint again.
|
|
|
|
|
|
|
|
# Compile everything the first time
|
1997-02-16 05:36:42 -08:00
|
|
|
world: coldstart all
|
1996-02-21 02:49:46 -08:00
|
|
|
|
|
|
|
# Complete bootstrapping cycle
|
|
|
|
bootstrap:
|
|
|
|
# Save the original bootstrap compiler
|
|
|
|
$(MAKEREC) backup
|
|
|
|
# Promote the new compiler but keep the old runtime
|
2002-06-07 02:49:45 -07:00
|
|
|
# This compiler runs on boot/ocamlrun and produces bytecode for byterun/ocamlrun
|
1996-02-21 02:49:46 -08:00
|
|
|
$(MAKEREC) promote-cross
|
2002-06-07 02:49:45 -07:00
|
|
|
# Rebuild ocamlc and ocamllex (run on byterun/ocamlrun)
|
1997-02-16 05:36:42 -08:00
|
|
|
$(MAKEREC) partialclean
|
1996-04-30 07:53:58 -07:00
|
|
|
$(MAKEREC) ocamlc ocamllex
|
2002-06-07 02:49:45 -07:00
|
|
|
# Rebuild the library (using byterun/ocamlrun ./ocamlc)
|
1996-02-21 02:49:46 -08:00
|
|
|
$(MAKEREC) library-cross
|
|
|
|
# Promote the new compiler and the new runtime
|
|
|
|
$(MAKEREC) promote
|
1996-04-30 07:53:58 -07:00
|
|
|
# Rebuild everything, including ocaml and the tools
|
1997-02-16 05:36:42 -08:00
|
|
|
$(MAKEREC) partialclean
|
1996-02-21 02:49:46 -08:00
|
|
|
$(MAKEREC) all
|
|
|
|
# Check if fixpoint reached
|
|
|
|
$(MAKEREC) compare
|
|
|
|
|
1996-05-07 06:08:11 -07:00
|
|
|
LIBFILES=stdlib.cma std_exit.cmo *.cmi camlheader
|
1996-02-21 02:49:46 -08:00
|
|
|
|
|
|
|
# Start up the system from the distribution compiler
|
|
|
|
coldstart:
|
2002-06-07 02:49:45 -07:00
|
|
|
cd byterun ; $(MAKEREC) all
|
|
|
|
cp byterun/ocamlrun.exe boot/ocamlrun.exe
|
|
|
|
cp byterun/ocamlrun.dll boot/ocamlrun.dll
|
|
|
|
cd yacc ; $(MAKEREC) all
|
|
|
|
cp yacc/ocamlyacc.exe boot/ocamlyacc.exe
|
|
|
|
cd stdlib ; $(MAKEREC) COMPILER=../boot/ocamlc all
|
|
|
|
cd stdlib ; cp $(LIBFILES) ../boot
|
1996-02-21 02:49:46 -08:00
|
|
|
|
2000-04-05 11:30:22 -07:00
|
|
|
# Build the core system: the minimum needed to make depend and bootstrap
|
|
|
|
core : runtime ocamlc ocamllex ocamlyacc ocamltools library
|
|
|
|
|
1996-02-21 02:49:46 -08:00
|
|
|
# Save the current bootstrap compiler
|
2002-06-07 02:49:45 -07:00
|
|
|
MAXSAVED=boot/Saved/Saved.prev/Saved.prev/Saved.prev/Saved.prev/Saved.prev
|
1996-02-21 02:49:46 -08:00
|
|
|
backup:
|
2002-06-07 06:31:21 -07:00
|
|
|
mkdir -p boot/Saved
|
|
|
|
if test -d $(MAXSAVED); then rm -r $(MAXSAVED); fi
|
2002-06-07 02:49:45 -07:00
|
|
|
mv boot/Saved boot/Saved.prev
|
|
|
|
mkdir boot/Saved
|
|
|
|
mv boot/Saved.prev boot/Saved/Saved.prev
|
|
|
|
cp boot/ocamlrun.exe boot/Saved/ocamlrun.exe
|
|
|
|
cd boot ; mv ocamlc ocamllex ocamlyacc.exe Saved
|
|
|
|
cd boot ; cp $(LIBFILES) Saved
|
1996-02-21 02:49:46 -08:00
|
|
|
|
|
|
|
# Promote the newly compiled system to the rank of cross compiler
|
|
|
|
# (Runs on the old runtime, produces code for the new runtime)
|
|
|
|
promote-cross:
|
2002-06-07 02:49:45 -07:00
|
|
|
cp ocamlc boot/ocamlc
|
|
|
|
cp lex/ocamllex boot/ocamllex
|
|
|
|
cp yacc/ocamlyacc.exe boot/ocamlyacc.exe
|
|
|
|
cd stdlib ; cp $(LIBFILES) ../boot
|
1996-02-21 02:49:46 -08:00
|
|
|
|
|
|
|
# Promote the newly compiled system to the rank of bootstrap compiler
|
|
|
|
# (Runs on the new runtime, produces code for the new runtime)
|
|
|
|
promote: promote-cross
|
2002-06-07 02:49:45 -07:00
|
|
|
cp byterun/ocamlrun.exe boot/ocamlrun.exe
|
1996-02-21 02:49:46 -08:00
|
|
|
|
|
|
|
# Restore the saved bootstrap compiler if a problem arises
|
|
|
|
restore:
|
2002-06-07 02:49:45 -07:00
|
|
|
cd boot/Saved ; mv * ..
|
|
|
|
rmdir boot/Saved
|
|
|
|
mv boot/Saved.prev boot/Saved
|
1996-02-21 02:49:46 -08:00
|
|
|
|
|
|
|
# Check if fixpoint reached
|
|
|
|
compare:
|
2000-03-16 05:35:20 -08:00
|
|
|
- cmp -i 4096 boot/ocamlc ocamlc
|
|
|
|
- cmp -i 4096 boot/ocamllex lex/ocamllex
|
1996-02-21 02:49:46 -08:00
|
|
|
|
|
|
|
# Remove old bootstrap compilers
|
|
|
|
cleanboot:
|
2002-06-07 02:49:45 -07:00
|
|
|
rm -rf boot/Saved/Saved.prev/*
|
1996-02-21 02:49:46 -08:00
|
|
|
|
|
|
|
# Compile the native-code compiler
|
2002-11-05 02:23:52 -08:00
|
|
|
opt: runtimeopt ocamlopt libraryopt otherlibrariesopt camlp4opt
|
1996-02-21 02:49:46 -08:00
|
|
|
|
2000-08-30 18:10:14 -07:00
|
|
|
# Native-code versions of the tools
|
2003-08-29 05:14:24 -07:00
|
|
|
opt.opt: ocamlc.opt ocamlopt.opt ocamllex.opt ocamltoolsopt.opt \
|
|
|
|
camlp4optopt ocamldoc.opt
|
2000-08-30 18:10:14 -07:00
|
|
|
|
1996-02-21 02:49:46 -08:00
|
|
|
# Installation
|
1996-02-22 04:51:04 -08:00
|
|
|
install: installbyt installopt
|
|
|
|
|
|
|
|
installbyt:
|
2002-06-07 02:49:45 -07:00
|
|
|
mkdir -p $(BINDIR)
|
|
|
|
mkdir -p $(LIBDIR)
|
|
|
|
cd byterun ; $(MAKEREC) install
|
2002-06-27 04:36:02 -07:00
|
|
|
echo "$(STUBLIBDIR)" > $(LIBDIR)/ld.conf
|
|
|
|
echo "$(LIBDIR)" >> $(LIBDIR)/ld.conf
|
2002-06-07 02:49:45 -07:00
|
|
|
cp ocamlc $(BINDIR)/ocamlc.exe
|
|
|
|
cp ocaml $(BINDIR)/ocaml.exe
|
|
|
|
cd stdlib ; $(MAKEREC) install
|
|
|
|
cp lex/ocamllex $(BINDIR)/ocamllex.exe
|
|
|
|
cp yacc/ocamlyacc.exe $(BINDIR)/ocamlyacc.exe
|
|
|
|
cp toplevel/toplevellib.cma $(LIBDIR)/toplevellib.cma
|
|
|
|
cp expunge $(LIBDIR)/expunge.exe
|
2002-06-07 06:31:21 -07:00
|
|
|
cp typing/outcometree.cmi typing/outcometree.mli $(LIBDIR)
|
|
|
|
cp toplevel/topstart.cmo $(LIBDIR)
|
|
|
|
cp toplevel/toploop.cmi toplevel/topdirs.cmi toplevel/topmain.cmi $(LIBDIR)
|
2002-06-07 02:49:45 -07:00
|
|
|
cd tools ; $(MAKEREC) install
|
|
|
|
cd ocamldoc ; $(MAKEREC) install
|
2002-07-03 02:45:44 -07:00
|
|
|
mkdir -p $(STUBLIBDIR)
|
2002-06-07 02:49:45 -07:00
|
|
|
for i in $(OTHERLIBRARIES); do $(MAKEREC) -C otherlibs/$$i install; done
|
|
|
|
ifeq ($(TOOLCHAIN),msvc)
|
|
|
|
cd win32caml ; $(MAKE) install
|
|
|
|
endif
|
2002-11-05 02:23:52 -08:00
|
|
|
cd camlp4 ; make install
|
2002-06-27 04:36:02 -07:00
|
|
|
cp README $(DISTRIB)/Readme.gen
|
|
|
|
cp README.win32 $(DISTRIB)/Readme.win
|
|
|
|
cp LICENSE $(DISTRIB)/License.txt
|
|
|
|
cp Changes $(DISTRIB)/Changes.txt
|
1996-02-21 02:49:46 -08:00
|
|
|
|
|
|
|
# Installation of the native-code compiler
|
|
|
|
installopt:
|
2002-06-07 02:49:45 -07:00
|
|
|
cd asmrun ; $(MAKEREC) install
|
|
|
|
cp ocamlopt $(BINDIR)/ocamlopt.exe
|
|
|
|
cd stdlib ; $(MAKEREC) installopt
|
|
|
|
cd ocamldoc ; $(MAKEREC) installopt
|
|
|
|
for i in $(OTHERLIBRARIES); do $(MAKEREC) -C otherlibs/$$i installopt; done
|
2003-08-29 05:14:24 -07:00
|
|
|
if test -f ocamlc.opt; \
|
|
|
|
then cp ocamlc.opt $(BINDIR)/ocamlc.opt.exe; else :; fi
|
|
|
|
if test -f ocamlopt.opt; \
|
|
|
|
then cp ocamlopt.opt $(BINDIR)/ocamlopt.opt.exe; else :; fi
|
|
|
|
if test -f lex/ocamllex.opt; \
|
|
|
|
then cp lex/ocamllex.opt $(BINDIR)/ocamllex.opt.exe; else :; fi
|
1996-02-21 02:49:46 -08:00
|
|
|
|
1997-02-16 05:36:42 -08:00
|
|
|
clean:: partialclean
|
1996-02-21 02:49:46 -08:00
|
|
|
|
|
|
|
# The compiler
|
|
|
|
|
1996-04-30 07:53:58 -07:00
|
|
|
ocamlc: $(COMPOBJS)
|
|
|
|
$(CAMLC) $(LINKFLAGS) -o ocamlc $(COMPOBJS)
|
2002-06-07 02:49:45 -07:00
|
|
|
@sed -e 's|@compiler@|$$topdir/boot/ocamlrun $$topdir/ocamlc|' \
|
|
|
|
driver/ocamlcomp.sh.in > ocamlcomp.sh
|
|
|
|
@chmod +x ocamlcomp.sh
|
1996-02-21 02:49:46 -08:00
|
|
|
|
1997-02-16 05:36:42 -08:00
|
|
|
partialclean::
|
1996-04-30 07:53:58 -07:00
|
|
|
rm -f ocamlc
|
1996-02-21 02:49:46 -08:00
|
|
|
|
|
|
|
# The native-code compiler
|
|
|
|
|
1996-04-30 07:53:58 -07:00
|
|
|
ocamlopt: $(OPTOBJS)
|
|
|
|
$(CAMLC) $(LINKFLAGS) -o ocamlopt $(OPTOBJS)
|
2002-06-07 02:49:45 -07:00
|
|
|
@sed -e 's|@compiler@|$$topdir/boot/ocamlrun $$topdir/ocamlopt|' \
|
|
|
|
driver/ocamlcomp.sh.in > ocamlcompopt.sh
|
|
|
|
@chmod +x ocamlcompopt.sh
|
1996-02-21 02:49:46 -08:00
|
|
|
|
1997-02-16 05:36:42 -08:00
|
|
|
partialclean::
|
1996-04-30 07:53:58 -07:00
|
|
|
rm -f ocamlopt
|
1996-02-21 02:49:46 -08:00
|
|
|
|
|
|
|
# The toplevel
|
|
|
|
|
1996-04-30 07:53:58 -07:00
|
|
|
ocaml: $(TOPOBJS) expunge
|
|
|
|
$(CAMLC) $(LINKFLAGS) -linkall -o ocaml.tmp $(TOPOBJS)
|
2002-11-22 07:10:40 -08:00
|
|
|
- $(CAMLRUN) ./expunge ocaml.tmp ocaml $(PERVASIVES)
|
1996-04-30 07:53:58 -07:00
|
|
|
rm -f ocaml.tmp
|
1996-02-21 02:49:46 -08:00
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
toplevel/toplevellib.cma: $(TOPLIB)
|
2000-01-31 21:42:03 -08:00
|
|
|
$(CAMLC) -a -o $@ $(TOPLIB)
|
|
|
|
|
1997-02-16 05:36:42 -08:00
|
|
|
partialclean::
|
1996-04-30 07:53:58 -07:00
|
|
|
rm -f ocaml
|
1996-02-21 02:49:46 -08:00
|
|
|
|
|
|
|
# The configuration file
|
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
utils/config.ml: utils/config.mlp config/Makefile
|
|
|
|
@rm -f utils/config.ml
|
|
|
|
sed -e "s|%%LIBDIR%%|$(LIBDIR)|" \
|
|
|
|
-e "s|%%BYTERUN%%|ocamlrun|" \
|
|
|
|
-e 's|%%CCOMPTYPE%%|$(CCOMPTYPE)|' \
|
|
|
|
-e "s|%%BYTECC%%|$(BYTECC) $(BYTECCCOMPOPTS)|" \
|
|
|
|
-e "s|%%BYTELINK%%|$(BYTECC) $(BYTECCLINKOPTS)|" \
|
|
|
|
-e "s|%%NATIVECC%%|$(NATIVECC) $(NATIVECCCOMPOPTS)|" \
|
|
|
|
-e "s|%%NATIVELINK%%|$(NATIVECC) $(NATIVECCLINKOPTS)|" \
|
|
|
|
-e "s|%%PARTIALLD%%|$(PARTIALLD)|" \
|
2003-07-03 09:21:47 -07:00
|
|
|
-e "s|%%PACKLD%%|$(PACKLD)|" \
|
2002-06-07 02:49:45 -07:00
|
|
|
-e "s|%%BYTECCLIBS%%|$(BYTECCLIBS)|" \
|
|
|
|
-e "s|%%NATIVECCLIBS%%|$(NATIVECCLIBS)|" \
|
|
|
|
-e 's|%%RANLIBCMD%%|$(RANLIBCMD)|' \
|
|
|
|
-e 's|%%BINUTILS_NM%%|$(BINUTILS_NM)|' \
|
|
|
|
-e 's|%%BINUTILS_OBJCOPY%%|$(BINUTILS_OBJCOPY)|' \
|
|
|
|
-e "s|%%ARCH%%|$(ARCH)|" \
|
|
|
|
-e "s|%%MODEL%%|$(MODEL)|" \
|
|
|
|
-e "s|%%SYSTEM%%|$(SYSTEM)|" \
|
|
|
|
-e "s|%%EXT_OBJ%%|.$(O)|" \
|
|
|
|
-e "s|%%EXT_ASM%%|.$(S)|" \
|
|
|
|
-e "s|%%EXT_LIB%%|.$(A)|" \
|
|
|
|
-e "s|%%EXT_DLL%%|.dll|" \
|
|
|
|
utils/config.mlp > utils/config.ml
|
|
|
|
@chmod -w utils/config.ml
|
1996-02-21 02:49:46 -08:00
|
|
|
|
1997-02-16 05:36:42 -08:00
|
|
|
partialclean::
|
2002-06-07 02:49:45 -07:00
|
|
|
rm -f utils/config.ml
|
1996-02-21 02:49:46 -08:00
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
beforedepend:: utils/config.ml
|
1996-02-21 02:49:46 -08:00
|
|
|
|
1997-02-04 07:40:22 -08:00
|
|
|
# The parser
|
1996-02-21 02:49:46 -08:00
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
parsing/parser.mli parsing/parser.ml: parsing/parser.mly
|
|
|
|
$(CAMLYACC) $(YACCFLAGS) parsing/parser.mly
|
1996-02-21 02:49:46 -08:00
|
|
|
|
1997-02-16 05:36:42 -08:00
|
|
|
partialclean::
|
2002-06-07 02:49:45 -07:00
|
|
|
rm -f parsing/parser.mli parsing/parser.ml parsing/parser.output
|
1996-02-21 02:49:46 -08:00
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
beforedepend:: parsing/parser.mli parsing/parser.ml
|
1996-02-21 02:49:46 -08:00
|
|
|
|
1997-02-04 07:40:22 -08:00
|
|
|
# The lexer
|
1996-02-21 02:49:46 -08:00
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
parsing/lexer.ml: parsing/lexer.mll
|
|
|
|
$(CAMLLEX) parsing/lexer.mll
|
1996-02-21 02:49:46 -08:00
|
|
|
|
1997-02-16 05:36:42 -08:00
|
|
|
partialclean::
|
2002-06-07 02:49:45 -07:00
|
|
|
rm -f parsing/lexer.ml
|
1996-02-21 02:49:46 -08:00
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
beforedepend:: parsing/lexer.ml
|
1996-02-21 02:49:46 -08:00
|
|
|
|
1997-02-04 07:40:22 -08:00
|
|
|
# The auxiliary lexer for counting line numbers
|
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
parsing/linenum.ml: parsing/linenum.mll
|
|
|
|
$(CAMLLEX) parsing/linenum.mll
|
1997-02-04 07:40:22 -08:00
|
|
|
|
1997-02-16 05:36:42 -08:00
|
|
|
partialclean::
|
2002-06-07 02:49:45 -07:00
|
|
|
rm -f parsing/linenum.ml
|
1997-02-04 07:40:22 -08:00
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
beforedepend:: parsing/linenum.ml
|
1997-02-04 07:40:22 -08:00
|
|
|
|
1997-11-17 02:39:01 -08:00
|
|
|
# The bytecode compiler compiled with the native-code compiler
|
1996-02-21 02:49:46 -08:00
|
|
|
|
1997-11-17 02:39:01 -08:00
|
|
|
ocamlc.opt: $(COMPOBJS:.cmo=.cmx)
|
2002-06-07 02:49:45 -07:00
|
|
|
cd asmrun ; $(MAKEREC) meta.$(O) dynlink.$(O)
|
|
|
|
$(CAMLOPT) $(LINKFLAGS) -o ocamlc.opt $(COMPOBJS:.cmo=.cmx) asmrun/meta.$(O) asmrun/dynlink.$(O)
|
1996-02-21 02:49:46 -08:00
|
|
|
|
1997-02-16 05:36:42 -08:00
|
|
|
partialclean::
|
1996-04-30 07:53:58 -07:00
|
|
|
rm -f ocamlc.opt
|
1996-02-21 02:49:46 -08:00
|
|
|
|
|
|
|
# The native-code compiler compiled with itself
|
|
|
|
|
1996-04-30 07:53:58 -07:00
|
|
|
ocamlopt.opt: $(OPTOBJS:.cmo=.cmx)
|
|
|
|
$(CAMLOPT) $(LINKFLAGS) -o ocamlopt.opt $(OPTOBJS:.cmo=.cmx)
|
1996-02-21 02:49:46 -08:00
|
|
|
|
1997-02-16 05:36:42 -08:00
|
|
|
partialclean::
|
1996-04-30 07:53:58 -07:00
|
|
|
rm -f ocamlopt.opt
|
1996-02-21 02:49:46 -08:00
|
|
|
|
1996-04-30 07:53:58 -07:00
|
|
|
$(OPTOBJS:.cmo=.cmx): ocamlopt
|
1996-02-21 02:49:46 -08:00
|
|
|
|
|
|
|
# The numeric opcodes
|
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
bytecomp/opcodes.ml: byterun/instruct.h
|
|
|
|
sed -n -e "/^enum/p" -e "s|,||g" -e "/^ /p" byterun/instruct.h | \
|
|
|
|
gawk -f tools/make-opcodes > bytecomp/opcodes.ml
|
1996-02-21 02:49:46 -08:00
|
|
|
|
1997-02-16 05:36:42 -08:00
|
|
|
partialclean::
|
2002-06-07 02:49:45 -07:00
|
|
|
rm -f bytecomp/opcodes.ml
|
1996-02-21 02:49:46 -08:00
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
beforedepend:: bytecomp/opcodes.ml
|
1996-02-21 02:49:46 -08:00
|
|
|
|
|
|
|
# The predefined exceptions and primitives
|
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
byterun/primitives:
|
|
|
|
cd byterun ; $(MAKEREC) primitives
|
1996-02-21 02:49:46 -08:00
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
bytecomp/runtimedef.ml: byterun/primitives byterun/fail.h
|
|
|
|
(echo 'let builtin_exceptions = [|'; \
|
|
|
|
sed -n -e 's|.*/\* \("[A-Za-z_]*"\) \*/$$| \1;|p' byterun/fail.h | \
|
|
|
|
sed -e '$$s/;$$//'; \
|
|
|
|
echo '|]'; \
|
|
|
|
echo 'let builtin_primitives = [|'; \
|
|
|
|
sed -e 's/.*/ "&";/' -e '$$s/;$$//' byterun/primitives; \
|
|
|
|
echo '|]') > bytecomp/runtimedef.ml
|
1996-02-21 02:49:46 -08:00
|
|
|
|
1997-02-16 05:36:42 -08:00
|
|
|
partialclean::
|
2002-06-07 02:49:45 -07:00
|
|
|
rm -f bytecomp/runtimedef.ml
|
1996-02-21 02:49:46 -08:00
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
beforedepend:: bytecomp/runtimedef.ml
|
1996-02-21 02:49:46 -08:00
|
|
|
|
1997-07-24 04:49:12 -07:00
|
|
|
# Choose the right machine-dependent files
|
1996-02-21 02:49:46 -08:00
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
asmcomp/arch.ml: asmcomp/$(ARCH)/arch.ml
|
|
|
|
cp asmcomp/$(ARCH)/arch.ml asmcomp/arch.ml
|
1996-02-21 02:49:46 -08:00
|
|
|
|
1997-02-16 05:36:42 -08:00
|
|
|
partialclean::
|
2002-06-07 02:49:45 -07:00
|
|
|
rm -f asmcomp/arch.ml
|
|
|
|
|
|
|
|
beforedepend:: asmcomp/arch.ml
|
1996-02-21 02:49:46 -08:00
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
ifeq ($(TOOLCHAIN),msvc)
|
|
|
|
ASMCOMP_PROC=asmcomp/$(ARCH)/proc_nt.ml
|
|
|
|
ASMCOMP_EMIT=asmcomp/$(ARCH)/emit_nt.mlp
|
|
|
|
else
|
|
|
|
ASMCOMP_PROC=asmcomp/$(ARCH)/proc.ml
|
|
|
|
ASMCOMP_EMIT=asmcomp/$(ARCH)/emit.mlp
|
|
|
|
endif
|
1996-02-21 02:49:46 -08:00
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
asmcomp/proc.ml: $(ASMCOMP_PROC)
|
|
|
|
cp $(ASMCOMP_PROC) asmcomp/proc.ml
|
1996-02-21 02:49:46 -08:00
|
|
|
|
1997-02-16 05:36:42 -08:00
|
|
|
partialclean::
|
2002-06-07 02:49:45 -07:00
|
|
|
rm -f asmcomp/proc.ml
|
1996-02-21 02:49:46 -08:00
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
beforedepend:: asmcomp/proc.ml
|
1996-02-21 02:49:46 -08:00
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
asmcomp/selection.ml: asmcomp/$(ARCH)/selection.ml
|
|
|
|
cp asmcomp/$(ARCH)/selection.ml asmcomp/selection.ml
|
1997-07-24 04:49:12 -07:00
|
|
|
|
|
|
|
partialclean::
|
2002-06-07 02:49:45 -07:00
|
|
|
rm -f asmcomp/selection.ml
|
1997-07-24 04:49:12 -07:00
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
beforedepend:: asmcomp/selection.ml
|
1997-07-24 04:49:12 -07:00
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
asmcomp/reload.ml: asmcomp/$(ARCH)/reload.ml
|
|
|
|
cp asmcomp/$(ARCH)/reload.ml asmcomp/reload.ml
|
1997-07-24 04:49:12 -07:00
|
|
|
|
|
|
|
partialclean::
|
2002-06-07 02:49:45 -07:00
|
|
|
rm -f asmcomp/reload.ml
|
1997-07-24 04:49:12 -07:00
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
beforedepend:: asmcomp/reload.ml
|
1997-07-24 04:49:12 -07:00
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
asmcomp/scheduling.ml: asmcomp/$(ARCH)/scheduling.ml
|
|
|
|
cp asmcomp/$(ARCH)/scheduling.ml asmcomp/scheduling.ml
|
1997-07-24 04:49:12 -07:00
|
|
|
|
|
|
|
partialclean::
|
2002-06-07 02:49:45 -07:00
|
|
|
rm -f asmcomp/scheduling.ml
|
1997-07-24 04:49:12 -07:00
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
beforedepend:: asmcomp/scheduling.ml
|
1997-07-24 04:49:12 -07:00
|
|
|
|
1996-02-21 02:49:46 -08:00
|
|
|
# Preprocess the code emitters
|
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
asmcomp/emit.ml: $(ASMCOMP_EMIT) tools/cvt_emit
|
|
|
|
boot/ocamlrun tools/cvt_emit < $(ASMCOMP_EMIT) > asmcomp/emit.ml
|
1996-02-21 02:49:46 -08:00
|
|
|
|
1997-02-16 05:36:42 -08:00
|
|
|
partialclean::
|
2002-06-07 02:49:45 -07:00
|
|
|
rm -f asmcomp/emit.ml
|
1996-02-21 02:49:46 -08:00
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
beforedepend:: asmcomp/emit.ml
|
1996-02-21 02:49:46 -08:00
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
tools/cvt_emit: tools/cvt_emit.mll
|
|
|
|
cd tools ; $(MAKEREC) cvt_emit
|
1996-10-07 06:19:16 -07:00
|
|
|
|
1996-02-21 02:49:46 -08:00
|
|
|
# The "expunge" utility
|
|
|
|
|
|
|
|
expunge: $(EXPUNGEOBJS)
|
|
|
|
$(CAMLC) $(LINKFLAGS) -o expunge $(EXPUNGEOBJS)
|
|
|
|
|
1997-02-16 05:36:42 -08:00
|
|
|
partialclean::
|
1996-02-21 02:49:46 -08:00
|
|
|
rm -f expunge
|
|
|
|
|
|
|
|
# The runtime system for the bytecode compiler
|
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
runtime: makeruntime stdlib/libcamlrun.$(A)
|
1997-01-05 06:06:13 -08:00
|
|
|
|
|
|
|
makeruntime:
|
2002-06-07 02:49:45 -07:00
|
|
|
cd byterun ; $(MAKEREC) all
|
|
|
|
stdlib/libcamlrun.$(A): byterun/libcamlrun.$(A)
|
|
|
|
cp byterun/libcamlrun.$(A) stdlib/libcamlrun.$(A)
|
1997-02-16 05:36:42 -08:00
|
|
|
clean::
|
2002-06-07 02:49:45 -07:00
|
|
|
cd byterun ; $(MAKEREC) clean
|
|
|
|
rm -f stdlib/libcamlrun.$(A)
|
1996-02-21 02:49:46 -08:00
|
|
|
alldepend::
|
2002-06-07 02:49:45 -07:00
|
|
|
cd byterun ; $(MAKEREC) depend
|
1996-02-21 02:49:46 -08:00
|
|
|
|
|
|
|
# The runtime system for the native-code compiler
|
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
runtimeopt: makeruntimeopt stdlib/libasmrun.$(A)
|
1996-02-21 02:49:46 -08:00
|
|
|
|
|
|
|
makeruntimeopt:
|
2002-06-07 02:49:45 -07:00
|
|
|
cd asmrun ; $(MAKEREC) all
|
|
|
|
stdlib/libasmrun.$(A): asmrun/libasmrun.$(A)
|
|
|
|
cp asmrun/libasmrun.$(A) stdlib/libasmrun.$(A)
|
1997-02-16 05:36:42 -08:00
|
|
|
clean::
|
2002-06-07 02:49:45 -07:00
|
|
|
cd asmrun ; $(MAKEREC) clean
|
|
|
|
rm -f stdlib/libasmrun.$(A)
|
1996-02-21 02:49:46 -08:00
|
|
|
alldepend::
|
2002-06-07 02:49:45 -07:00
|
|
|
cd asmrun ; $(MAKEREC) depend
|
1996-02-21 02:49:46 -08:00
|
|
|
|
|
|
|
# The library
|
|
|
|
|
|
|
|
library:
|
2002-06-07 02:49:45 -07:00
|
|
|
cd stdlib ; $(MAKEREC) all
|
1996-02-21 02:49:46 -08:00
|
|
|
library-cross:
|
2002-06-07 02:49:45 -07:00
|
|
|
cd stdlib ; $(MAKEREC) RUNTIME=../byterun/ocamlrun all
|
1996-02-21 02:49:46 -08:00
|
|
|
libraryopt:
|
2002-06-07 02:49:45 -07:00
|
|
|
cd stdlib ; $(MAKEREC) allopt
|
1997-02-16 05:36:42 -08:00
|
|
|
partialclean::
|
2002-06-07 02:49:45 -07:00
|
|
|
cd stdlib ; $(MAKEREC) clean
|
1996-02-21 02:49:46 -08:00
|
|
|
alldepend::
|
2002-06-07 02:49:45 -07:00
|
|
|
cd stdlib ; $(MAKEREC) depend
|
1996-02-21 02:49:46 -08:00
|
|
|
|
|
|
|
# The lexer and parser generators
|
|
|
|
|
1996-04-30 07:53:58 -07:00
|
|
|
ocamllex:
|
2002-06-07 02:49:45 -07:00
|
|
|
cd lex ; $(MAKEREC) all
|
2000-08-30 18:10:14 -07:00
|
|
|
ocamllex.opt:
|
2002-06-07 02:49:45 -07:00
|
|
|
cd lex ; $(MAKEREC) allopt
|
1997-02-16 05:36:42 -08:00
|
|
|
partialclean::
|
2002-06-07 02:49:45 -07:00
|
|
|
cd lex ; $(MAKEREC) clean
|
1996-02-21 02:49:46 -08:00
|
|
|
alldepend::
|
2002-06-07 02:49:45 -07:00
|
|
|
cd lex ; $(MAKEREC) depend
|
1996-02-21 02:49:46 -08:00
|
|
|
|
1996-04-30 07:53:58 -07:00
|
|
|
ocamlyacc:
|
2002-06-07 02:49:45 -07:00
|
|
|
cd yacc ; $(MAKEREC) all
|
1997-02-16 05:36:42 -08:00
|
|
|
clean::
|
2002-06-07 02:49:45 -07:00
|
|
|
cd yacc ; $(MAKEREC) clean
|
1996-02-21 02:49:46 -08:00
|
|
|
|
|
|
|
# Tools
|
|
|
|
|
1996-04-30 07:53:58 -07:00
|
|
|
ocamltools:
|
2002-06-07 02:49:45 -07:00
|
|
|
cd tools ; $(MAKEREC) all
|
2002-03-18 08:44:34 -08:00
|
|
|
ocamltoolsopt.opt:
|
2002-06-07 02:49:45 -07:00
|
|
|
cd tools ; $(MAKEREC) opt.opt
|
1997-02-16 05:36:42 -08:00
|
|
|
partialclean::
|
2002-06-07 02:49:45 -07:00
|
|
|
cd tools ; $(MAKEREC) clean
|
1996-02-21 02:49:46 -08:00
|
|
|
alldepend::
|
2002-06-07 02:49:45 -07:00
|
|
|
cd tools ; $(MAKEREC) depend
|
1996-02-21 02:49:46 -08:00
|
|
|
|
2002-03-29 04:38:23 -08:00
|
|
|
# OCamldoc
|
|
|
|
|
2002-04-23 07:13:57 -07:00
|
|
|
ocamldoc.byte:
|
2002-06-07 02:49:45 -07:00
|
|
|
cd ocamldoc ; $(MAKEREC) all
|
2002-03-29 04:38:23 -08:00
|
|
|
ocamldoc.opt:
|
2002-06-07 02:49:45 -07:00
|
|
|
cd ocamldoc ; $(MAKEREC) opt.opt
|
2002-03-29 04:38:23 -08:00
|
|
|
partialclean::
|
2002-06-07 02:49:45 -07:00
|
|
|
cd ocamldoc ; $(MAKEREC) clean
|
2002-03-29 04:38:23 -08:00
|
|
|
alldepend::
|
2002-06-07 02:49:45 -07:00
|
|
|
cd ocamldoc ; $(MAKEREC) depend
|
2002-03-29 04:38:23 -08:00
|
|
|
|
1996-02-21 02:49:46 -08:00
|
|
|
# The extra libraries
|
|
|
|
|
|
|
|
otherlibraries:
|
2002-06-07 02:49:45 -07:00
|
|
|
for i in $(OTHERLIBRARIES); do $(MAKEREC) -C otherlibs/$$i all; done
|
1996-02-21 02:49:46 -08:00
|
|
|
otherlibrariesopt:
|
2002-06-07 02:49:45 -07:00
|
|
|
for i in $(OTHERLIBRARIES); do $(MAKEREC) -C otherlibs/$$i allopt; done
|
1997-02-16 05:36:42 -08:00
|
|
|
partialclean::
|
2002-06-07 02:49:45 -07:00
|
|
|
for i in $(OTHERLIBRARIES); do $(MAKEREC) -C otherlibs/$$i partialclean; done
|
1996-02-21 02:49:46 -08:00
|
|
|
clean::
|
2002-06-07 02:49:45 -07:00
|
|
|
for i in $(OTHERLIBRARIES); do $(MAKEREC) -C otherlibs/$$i clean; done
|
1996-02-21 02:49:46 -08:00
|
|
|
alldepend::
|
2002-06-07 02:49:45 -07:00
|
|
|
for i in $(OTHERLIBRARIES); do $(MAKEREC) -C otherlibs/$$i depend; done
|
1996-02-21 02:49:46 -08:00
|
|
|
|
2002-11-05 02:23:52 -08:00
|
|
|
# Camlp4
|
|
|
|
|
|
|
|
camlp4out:
|
2003-07-03 09:14:49 -07:00
|
|
|
cd camlp4/config ; \
|
|
|
|
(cat Makefile.tpl; \
|
|
|
|
echo 'EXE=.exe'; \
|
2003-08-29 05:14:24 -07:00
|
|
|
echo 'O=$(O)'; \
|
|
|
|
echo 'A=$(A)'; \
|
2003-07-03 09:14:49 -07:00
|
|
|
echo 'OPT='; \
|
|
|
|
echo 'OTOP=../..'; \
|
|
|
|
echo 'OLIBDIR=$$(OTOP)/boot'; \
|
|
|
|
echo 'BINDIR=$(BINDIR)'; \
|
|
|
|
echo 'LIBDIR=$(LIBDIR)'; \
|
|
|
|
echo 'MANDIR=' ) > Makefile
|
2002-11-05 02:23:52 -08:00
|
|
|
cd camlp4 ; $(MAKE)
|
|
|
|
camlp4opt:
|
|
|
|
cd camlp4 ; $(MAKE) opt
|
2003-08-29 05:14:24 -07:00
|
|
|
camlp4optopt:
|
|
|
|
cd camlp4; $(MAKE) opt.opt
|
2002-11-05 02:23:52 -08:00
|
|
|
partialclean::
|
|
|
|
cd camlp4 ; $(MAKE) clean
|
|
|
|
|
2001-11-06 05:20:53 -08:00
|
|
|
# The Win32 toplevel GUI
|
|
|
|
|
|
|
|
win32gui:
|
2002-06-07 02:49:45 -07:00
|
|
|
ifeq ($(TOOLCHAIN),msvc)
|
|
|
|
cd win32caml ; $(MAKE) all
|
|
|
|
endif
|
2001-11-06 05:20:53 -08:00
|
|
|
clean::
|
2002-06-07 02:49:45 -07:00
|
|
|
cd win32caml ; $(MAKE) clean
|
2001-11-06 05:20:53 -08:00
|
|
|
|
1996-02-21 02:49:46 -08:00
|
|
|
# Default rules
|
|
|
|
|
|
|
|
.SUFFIXES: .ml .mli .cmo .cmi .cmx
|
|
|
|
|
|
|
|
.ml.cmo:
|
|
|
|
$(CAMLC) $(COMPFLAGS) -c $<
|
|
|
|
|
|
|
|
.mli.cmi:
|
|
|
|
$(CAMLC) $(COMPFLAGS) -c $<
|
|
|
|
|
|
|
|
.ml.cmx:
|
|
|
|
$(CAMLOPT) $(COMPFLAGS) -c $<
|
|
|
|
|
1997-02-16 05:36:42 -08:00
|
|
|
partialclean::
|
2002-06-07 02:49:45 -07:00
|
|
|
rm -f utils/*.cm* utils/*.$(O) utils/*.$(S)
|
|
|
|
rm -f parsing/*.cm* parsing/*.$(O) parsing/*.$(S)
|
|
|
|
rm -f typing/*.cm* typing/*.$(O) typing/*.$(S)
|
|
|
|
rm -f bytecomp/*.cm* bytecomp/*.$(O) bytecomp/*.$(S)
|
|
|
|
rm -f asmcomp/*.cm* asmcomp/*.$(O) asmcomp/*.$(S)
|
|
|
|
rm -f driver/*.cm* driver/*.$(O) driver/*.$(S)
|
|
|
|
rm -f toplevel/*.cm* toplevel/*.$(O) toplevel/*.$(S)
|
|
|
|
rm -f tools/*.cm* tools/*.$(O) tools/*.$(S)
|
1996-02-21 02:49:46 -08:00
|
|
|
|
|
|
|
depend: beforedepend
|
2003-01-03 08:08:33 -08:00
|
|
|
(for d in utils parsing typing bytecomp asmcomp driver toplevel; \
|
|
|
|
do $(CAMLDEP) $(DEPFLAGS) $$d/*.mli $$d/*.ml; \
|
|
|
|
done) > .depend
|
1996-02-21 02:49:46 -08:00
|
|
|
|
|
|
|
alldepend:: depend
|
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
include .depend
|