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
|
|
|
|
|
2002-04-27 07:45:33 -07:00
|
|
|
CAMLC=../ocamlcomp.sh
|
2002-01-20 07:12:32 -08:00
|
|
|
COMPFLAGS=-warn-error A $(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 \
|
2002-11-17 08:42:12 -08:00
|
|
|
../utils/tbl.cmo ../utils/clflags.cmo ../utils/consistbl.cmo \
|
1996-11-29 08:55:09 -08:00
|
|
|
../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 \
|
2002-02-13 03:09:19 -08:00
|
|
|
../typing/datarepr.cmo ../typing/env.cmo ../typing/oprint.cmo \
|
1996-11-29 08:55:09 -08:00
|
|
|
../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=\
|
2002-10-29 09:53:24 -08:00
|
|
|
int64ops.cmo \
|
1996-11-29 08:55:09 -08:00
|
|
|
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 \
|
2003-11-21 08:10:57 -08:00
|
|
|
pos.cmo \
|
1996-11-29 08:55:09 -08:00
|
|
|
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)
|
2002-11-18 01:23:31 -08:00
|
|
|
$(CAMLC) $(LINKFLAGS) -o ocamldebug$(EXE) -linkall $(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
|