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$
|
|
|
|
|
1997-02-25 06:40:10 -08:00
|
|
|
include ../config/Makefile
|
|
|
|
|
|
|
|
CAMLC=../boot/ocamlrun ../ocamlc -I ../boot
|
1996-11-29 08:55:09 -08:00
|
|
|
COMPFLAGS=$(INCLUDES)
|
2000-04-16 07:36:44 -07:00
|
|
|
LINKFLAGS=-linkall -I ../otherlibs/unix
|
1996-11-29 08:55:09 -08:00
|
|
|
CAMLYACC=../boot/ocamlyacc
|
|
|
|
YACCFLAGS=
|
|
|
|
CAMLLEX=../boot/ocamlrun ../boot/ocamllex
|
|
|
|
CAMLDEP=../boot/ocamlrun ../tools/ocamldep
|
|
|
|
DEPFLAGS=$(INCLUDES)
|
|
|
|
|
1997-03-22 12:16:52 -08:00
|
|
|
INCLUDES=\
|
|
|
|
-I ../utils -I ../parsing -I ../typing -I ../bytecomp -I ../toplevel \
|
|
|
|
-I ../otherlibs/unix -I ../otherlibs/dynlink
|
1996-11-29 08:55:09 -08:00
|
|
|
|
|
|
|
OTHEROBJS=\
|
|
|
|
../otherlibs/unix/unix.cma \
|
2000-04-21 04:55:31 -07:00
|
|
|
../utils/misc.cmo ../utils/config.cmo \
|
1996-11-29 08:55:09 -08:00
|
|
|
../utils/tbl.cmo ../utils/clflags.cmo \
|
|
|
|
../parsing/longident.cmo \
|
|
|
|
../typing/ident.cmo ../typing/path.cmo ../typing/types.cmo \
|
1997-03-24 12:11:22 -08:00
|
|
|
../typing/btype.cmo ../typing/primitive.cmo ../typing/typedtree.cmo \
|
1996-11-29 08:55:09 -08:00
|
|
|
../typing/subst.cmo ../typing/predef.cmo \
|
|
|
|
../typing/datarepr.cmo ../typing/env.cmo \
|
|
|
|
../typing/ctype.cmo ../typing/printtyp.cmo ../typing/mtype.cmo \
|
2000-03-05 11:18:50 -08:00
|
|
|
../bytecomp/runtimedef.cmo ../bytecomp/bytesections.cmo \
|
2001-10-30 02:02:42 -08:00
|
|
|
../bytecomp/dll.cmo ../bytecomp/symtable.cmo \
|
2001-08-28 07:47:48 -07:00
|
|
|
../bytecomp/opcodes.cmo ../bytecomp/meta.cmo \
|
1998-11-12 06:51:27 -08:00
|
|
|
../toplevel/genprintval.cmo \
|
1997-03-22 12:16:52 -08:00
|
|
|
../otherlibs/dynlink/dynlink.cmo
|
1996-11-29 08:55:09 -08:00
|
|
|
|
|
|
|
OBJS=\
|
|
|
|
primitives.cmo \
|
|
|
|
unix_tools.cmo \
|
|
|
|
debugger_config.cmo \
|
|
|
|
envaux.cmo \
|
|
|
|
parameters.cmo \
|
|
|
|
lexer.cmo \
|
1997-03-22 12:16:52 -08:00
|
|
|
input_handling.cmo \
|
1996-11-29 08:55:09 -08:00
|
|
|
debugcom.cmo \
|
|
|
|
exec.cmo \
|
|
|
|
source.cmo \
|
|
|
|
checkpoints.cmo \
|
|
|
|
symbols.cmo \
|
|
|
|
events.cmo \
|
|
|
|
breakpoints.cmo \
|
|
|
|
trap_barrier.cmo \
|
|
|
|
history.cmo \
|
|
|
|
program_loading.cmo \
|
|
|
|
printval.cmo \
|
|
|
|
show_source.cmo \
|
|
|
|
time_travel.cmo \
|
|
|
|
program_management.cmo \
|
|
|
|
frames.cmo \
|
1997-03-13 14:32:10 -08:00
|
|
|
eval.cmo \
|
1996-11-29 08:55:09 -08:00
|
|
|
show_information.cmo \
|
1997-02-14 08:30:00 -08:00
|
|
|
loadprinter.cmo \
|
1996-11-29 08:55:09 -08:00
|
|
|
parser.cmo \
|
1997-05-08 11:00:18 -07:00
|
|
|
command_line.cmo \
|
1996-11-29 08:55:09 -08:00
|
|
|
main.cmo
|
|
|
|
|
2000-08-10 02:58:08 -07:00
|
|
|
all: ocamldebug$(EXE)
|
1996-11-29 08:55:09 -08:00
|
|
|
|
2000-08-10 02:58:08 -07:00
|
|
|
ocamldebug$(EXE): $(OBJS) $(OTHEROBJS)
|
|
|
|
$(CAMLC) $(LINKFLAGS) -o ocamldebug$(EXE) $(OTHEROBJS) $(OBJS)
|
1996-11-29 08:55:09 -08:00
|
|
|
|
1997-02-23 08:28:44 -08:00
|
|
|
install:
|
2000-08-10 02:58:08 -07:00
|
|
|
cp ocamldebug$(EXE) $(BINDIR)/ocamldebug$(EXE)
|
1997-02-23 08:28:44 -08:00
|
|
|
|
1996-11-29 08:55:09 -08:00
|
|
|
clean::
|
2000-10-10 05:31:22 -07:00
|
|
|
rm -f ocamldebug$(EXE)
|
1996-11-29 08:55:09 -08:00
|
|
|
rm -f *.cmo *.cmi
|
|
|
|
|
|
|
|
.SUFFIXES:
|
|
|
|
.SUFFIXES: .ml .cmo .mli .cmi
|
|
|
|
|
|
|
|
.ml.cmo:
|
|
|
|
$(CAMLC) -c $(COMPFLAGS) $<
|
|
|
|
|
|
|
|
.mli.cmi:
|
|
|
|
$(CAMLC) -c $(COMPFLAGS) $<
|
|
|
|
|
1997-01-05 06:04:06 -08:00
|
|
|
depend: beforedepend
|
1996-11-29 08:55:09 -08:00
|
|
|
$(CAMLDEP) $(DEPFLAGS) *.mli *.ml > .depend
|
|
|
|
|
|
|
|
lexer.ml: lexer.mll
|
|
|
|
$(CAMLLEX) lexer.mll
|
1997-01-05 06:04:06 -08:00
|
|
|
clean::
|
|
|
|
rm -f lexer.ml
|
|
|
|
beforedepend:: lexer.ml
|
1996-11-29 08:55:09 -08:00
|
|
|
|
|
|
|
parser.ml parser.mli: parser.mly
|
|
|
|
$(CAMLYACC) parser.mly
|
1997-01-05 06:04:06 -08:00
|
|
|
clean::
|
|
|
|
rm -f parser.ml parser.mli
|
|
|
|
beforedepend:: parser.ml parser.mli
|
1996-11-29 08:55:09 -08:00
|
|
|
|
|
|
|
include .depend
|