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)
|
1997-02-25 06:40:10 -08:00
|
|
|
LINKFLAGS=-custom -linkall
|
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 \
|
|
|
|
../utils/misc.cmo ../utils/config.cmo \
|
|
|
|
../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 \
|
1997-02-14 08:30:00 -08:00
|
|
|
../bytecomp/runtimedef.cmo ../bytecomp/symtable.cmo \
|
1997-03-22 12:16:52 -08:00
|
|
|
../bytecomp/opcodes.cmo ../toplevel/genprintval.cmo \
|
|
|
|
../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 \
|
|
|
|
command_line_interpreter.cmo \
|
|
|
|
main.cmo
|
|
|
|
|
|
|
|
all: ocamldebug
|
|
|
|
|
1997-03-24 12:11:22 -08:00
|
|
|
ocamldebug: $(OBJS) $(OTHEROBJS)
|
1996-11-29 08:55:09 -08:00
|
|
|
$(CAMLC) $(LINKFLAGS) -o ocamldebug $(OTHEROBJS) $(OBJS) ../otherlibs/unix/libunix.a
|
|
|
|
|
1997-02-23 08:28:44 -08:00
|
|
|
install:
|
1997-02-25 06:40:10 -08:00
|
|
|
cp ocamldebug $(BINDIR)/ocamldebug
|
1997-02-23 08:28:44 -08:00
|
|
|
|
1996-11-29 08:55:09 -08:00
|
|
|
clean::
|
|
|
|
rm -f ocamldebug
|
|
|
|
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
|