2008-07-29 01:31:41 -07:00
|
|
|
#########################################################################
|
|
|
|
# #
|
2011-07-27 07:17:02 -07:00
|
|
|
# OCaml #
|
2008-07-29 01:31:41 -07:00
|
|
|
# #
|
|
|
|
# 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. #
|
|
|
|
# #
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
include ../config/Makefile
|
2015-07-17 07:31:05 -07:00
|
|
|
CAMLRUN ?= ../boot/ocamlrun
|
|
|
|
CAMLYACC ?= ../boot/ocamlyacc
|
2008-07-29 01:31:41 -07:00
|
|
|
|
2015-07-17 07:31:05 -07:00
|
|
|
CAMLC=$(CAMLRUN) ../ocamlc -nostdlib -I ../stdlib
|
2014-04-29 04:56:17 -07:00
|
|
|
COMPFLAGS=-warn-error A -safe-string $(INCLUDES)
|
2013-11-29 05:04:38 -08:00
|
|
|
LINKFLAGS=-linkall -I $(UNIXDIR)
|
2008-07-29 01:31:41 -07:00
|
|
|
YACCFLAGS=
|
2015-07-17 07:31:05 -07:00
|
|
|
CAMLLEX=$(CAMLRUN) ../boot/ocamllex
|
|
|
|
CAMLDEP=$(CAMLRUN) ../tools/ocamldep
|
2008-07-29 01:31:41 -07:00
|
|
|
DEPFLAGS=$(INCLUDES)
|
|
|
|
|
2014-04-07 00:06:17 -07:00
|
|
|
INSTALL_BINDIR=$(DESTDIR)$(BINDIR)
|
|
|
|
|
2008-07-29 01:31:41 -07:00
|
|
|
INCLUDES=\
|
|
|
|
-I ../utils -I ../parsing -I ../typing -I ../bytecomp -I ../toplevel \
|
|
|
|
-I $(UNIXDIR)
|
|
|
|
|
|
|
|
OTHEROBJS=\
|
|
|
|
$(UNIXDIR)/unix.cma \
|
2011-10-20 20:26:35 -07:00
|
|
|
../utils/misc.cmo ../utils/config.cmo ../utils/tbl.cmo \
|
|
|
|
../utils/clflags.cmo ../utils/consistbl.cmo ../utils/warnings.cmo \
|
2015-06-28 06:11:50 -07:00
|
|
|
../parsing/location.cmo ../parsing/longident.cmo ../parsing/docstrings.cmo \
|
2013-09-26 08:24:11 -07:00
|
|
|
../parsing/ast_helper.cmo ../parsing/ast_mapper.cmo \
|
2015-10-06 03:58:20 -07:00
|
|
|
../parsing/attr_helper.cmo \
|
2008-07-29 01:31:41 -07:00
|
|
|
../typing/ident.cmo ../typing/path.cmo ../typing/types.cmo \
|
|
|
|
../typing/btype.cmo ../typing/primitive.cmo ../typing/typedtree.cmo \
|
|
|
|
../typing/subst.cmo ../typing/predef.cmo \
|
2013-03-09 14:38:52 -08:00
|
|
|
../typing/datarepr.cmo ../typing/cmi_format.cmo ../typing/env.cmo \
|
|
|
|
../typing/oprint.cmo \
|
2008-07-29 01:31:41 -07:00
|
|
|
../typing/ctype.cmo ../typing/printtyp.cmo ../typing/mtype.cmo \
|
2012-07-12 04:02:18 -07:00
|
|
|
../typing/envaux.cmo \
|
2008-07-29 01:31:41 -07:00
|
|
|
../bytecomp/runtimedef.cmo ../bytecomp/bytesections.cmo \
|
|
|
|
../bytecomp/dll.cmo ../bytecomp/meta.cmo ../bytecomp/symtable.cmo \
|
|
|
|
../bytecomp/opcodes.cmo \
|
|
|
|
../toplevel/genprintval.cmo
|
|
|
|
|
|
|
|
|
|
|
|
OBJS=\
|
2010-01-22 04:48:24 -08:00
|
|
|
dynlink.cmo \
|
2008-07-29 01:31:41 -07:00
|
|
|
int64ops.cmo \
|
|
|
|
primitives.cmo \
|
|
|
|
unix_tools.cmo \
|
|
|
|
debugger_config.cmo \
|
|
|
|
parameters.cmo \
|
|
|
|
lexer.cmo \
|
|
|
|
input_handling.cmo \
|
|
|
|
question.cmo \
|
|
|
|
debugcom.cmo \
|
|
|
|
exec.cmo \
|
|
|
|
source.cmo \
|
|
|
|
pos.cmo \
|
|
|
|
checkpoints.cmo \
|
|
|
|
events.cmo \
|
2010-01-20 08:26:46 -08:00
|
|
|
program_loading.cmo \
|
2008-07-29 01:31:41 -07:00
|
|
|
symbols.cmo \
|
|
|
|
breakpoints.cmo \
|
|
|
|
trap_barrier.cmo \
|
|
|
|
history.cmo \
|
|
|
|
printval.cmo \
|
|
|
|
show_source.cmo \
|
|
|
|
time_travel.cmo \
|
|
|
|
program_management.cmo \
|
|
|
|
frames.cmo \
|
|
|
|
eval.cmo \
|
|
|
|
show_information.cmo \
|
2010-01-20 08:26:46 -08:00
|
|
|
loadprinter.cmo \
|
2008-07-29 01:31:41 -07:00
|
|
|
parser.cmo \
|
|
|
|
command_line.cmo \
|
|
|
|
main.cmo
|
|
|
|
|
|
|
|
all: ocamldebug$(EXE)
|
|
|
|
|
|
|
|
ocamldebug$(EXE): $(OBJS) $(OTHEROBJS)
|
|
|
|
$(CAMLC) $(LINKFLAGS) -o ocamldebug$(EXE) -linkall $(OTHEROBJS) $(OBJS)
|
|
|
|
|
|
|
|
install:
|
2014-04-07 00:06:17 -07:00
|
|
|
cp ocamldebug$(EXE) $(INSTALL_BINDIR)/ocamldebug$(EXE)
|
2008-07-29 01:31:41 -07:00
|
|
|
|
|
|
|
clean::
|
|
|
|
rm -f ocamldebug$(EXE)
|
|
|
|
rm -f *.cmo *.cmi
|
|
|
|
|
|
|
|
.SUFFIXES:
|
|
|
|
.SUFFIXES: .ml .cmo .mli .cmi
|
|
|
|
|
|
|
|
.ml.cmo:
|
|
|
|
$(CAMLC) -c $(COMPFLAGS) $<
|
|
|
|
|
|
|
|
.mli.cmi:
|
|
|
|
$(CAMLC) -c $(COMPFLAGS) $<
|
|
|
|
|
|
|
|
depend: beforedepend
|
2010-01-20 08:26:46 -08:00
|
|
|
$(CAMLDEP) $(DEPFLAGS) *.mli *.ml \
|
|
|
|
| sed -e 's,$(UNIXDIR)/,$$(UNIXDIR)/,' > .depend
|
2008-07-29 01:31:41 -07:00
|
|
|
|
|
|
|
lexer.ml: lexer.mll
|
|
|
|
$(CAMLLEX) lexer.mll
|
|
|
|
clean::
|
|
|
|
rm -f lexer.ml
|
|
|
|
beforedepend:: lexer.ml
|
|
|
|
|
|
|
|
parser.ml parser.mli: parser.mly
|
|
|
|
$(CAMLYACC) parser.mly
|
|
|
|
clean::
|
|
|
|
rm -f parser.ml parser.mli
|
|
|
|
beforedepend:: parser.ml parser.mli
|
|
|
|
|
2010-05-17 08:49:53 -07:00
|
|
|
dynlink.ml: ../otherlibs/dynlink/dynlink.ml
|
|
|
|
grep -v 'REMOVE_ME for ../../debugger/dynlink.ml' \
|
|
|
|
../otherlibs/dynlink/dynlink.ml >dynlink.ml
|
|
|
|
dynlink.mli: ../otherlibs/dynlink/dynlink.mli
|
|
|
|
cp ../otherlibs/dynlink/dynlink.mli .
|
|
|
|
clean::
|
|
|
|
rm -f dynlink.ml dynlink.mli
|
|
|
|
beforedepend:: dynlink.ml dynlink.mli
|
|
|
|
|
2008-07-29 01:31:41 -07:00
|
|
|
include .depend
|