96 lines
2.0 KiB
Makefile
96 lines
2.0 KiB
Makefile
CAMLC=../boot/ocamlrun ../boot/ocamlc -I ../boot
|
|
COMPFLAGS=$(INCLUDES)
|
|
LINKFLAGS=-custom
|
|
CAMLYACC=../boot/ocamlyacc
|
|
YACCFLAGS=
|
|
CAMLLEX=../boot/ocamlrun ../boot/ocamllex
|
|
CAMLDEP=../boot/ocamlrun ../tools/ocamldep
|
|
DEPFLAGS=$(INCLUDES)
|
|
|
|
INCLUDES=-I ../otherlibs/unix -I ../utils -I ../parsing -I ../typing -I ../bytecomp
|
|
|
|
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 \
|
|
../typing/primitive.cmo ../typing/typedtree.cmo \
|
|
../typing/subst.cmo ../typing/predef.cmo \
|
|
../typing/datarepr.cmo ../typing/env.cmo \
|
|
../typing/ctype.cmo ../typing/printtyp.cmo ../typing/mtype.cmo \
|
|
../bytecomp/runtimedef.cmo ../bytecomp/symtable.cmo
|
|
|
|
OBJS=\
|
|
primitives.cmo \
|
|
unix_tools.cmo \
|
|
debugger_config.cmo \
|
|
envaux.cmo \
|
|
parameters.cmo \
|
|
lexer.cmo \
|
|
debugcom.cmo \
|
|
exec.cmo \
|
|
input_handling.cmo \
|
|
source.cmo \
|
|
checkpoints.cmo \
|
|
symbols.cmo \
|
|
events.cmo \
|
|
breakpoints.cmo \
|
|
trap_barrier.cmo \
|
|
history.cmo \
|
|
program_loading.cmo \
|
|
eval.cmo \
|
|
printval.cmo \
|
|
show_source.cmo \
|
|
time_travel.cmo \
|
|
program_management.cmo \
|
|
frames.cmo \
|
|
show_information.cmo \
|
|
parser.cmo \
|
|
command_line_interpreter.cmo \
|
|
main.cmo
|
|
# debugger.cmo
|
|
|
|
xOBJS=\
|
|
debugcom.cmo \
|
|
symbols.cmo \
|
|
envaux.cmo \
|
|
eval.cmo \
|
|
printval.cmo \
|
|
source.cmo \
|
|
show_source.cmo \
|
|
debugger.cmo
|
|
|
|
all: ocamldebug
|
|
|
|
ocamldebug: $(OBJS)
|
|
$(CAMLC) $(LINKFLAGS) -o ocamldebug $(OTHEROBJS) $(OBJS) ../otherlibs/unix/libunix.a
|
|
|
|
clean::
|
|
rm -f ocamldebug
|
|
rm -f *.cmo *.cmi
|
|
rm -f lexer.ml parser.ml parser.mli
|
|
|
|
.SUFFIXES:
|
|
.SUFFIXES: .ml .cmo .mli .cmi
|
|
|
|
.ml.cmo:
|
|
$(CAMLC) -c $(COMPFLAGS) $<
|
|
|
|
.mli.cmi:
|
|
$(CAMLC) -c $(COMPFLAGS) $<
|
|
|
|
depend: lexer.ml parser.ml parser.mli
|
|
$(CAMLDEP) $(DEPFLAGS) *.mli *.ml > .depend
|
|
|
|
lexer.ml: lexer.mll
|
|
$(CAMLLEX) lexer.mll
|
|
|
|
parser.ml parser.mli: parser.mly
|
|
$(CAMLYACC) parser.mly
|
|
|
|
sharfile: Makefile *.ml *.mli *.mll *.mly
|
|
shar -o $@ $^
|
|
|
|
include .depend
|