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 \
|
2006-05-11 08:51:31 -07:00
|
|
|
-I ../otherlibs/unix
|
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 \
|
2004-02-22 07:07:51 -08:00
|
|
|
../bytecomp/dll.cmo ../bytecomp/meta.cmo ../bytecomp/symtable.cmo \
|
|
|
|
../bytecomp/opcodes.cmo \
|
2006-05-11 08:51:31 -07:00
|
|
|
../toplevel/genprintval.cmo
|
|
|
|
|
1996-11-29 08:55:09 -08:00
|
|
|
|
|
|
|
OBJS=\
|
2006-05-11 08:51:31 -07:00
|
|
|
dynlink.cmo \
|
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 \
|
2006-12-09 05:49:10 -08:00
|
|
|
question.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 \
|
|
|
|
events.cmo \
|
2005-08-25 08:35:16 -07:00
|
|
|
symbols.cmo \
|
1996-11-29 08:55:09 -08:00
|
|
|
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
|