diff options
Diffstat (limited to 'debugger/Makefile')
-rw-r--r-- | debugger/Makefile | 99 |
1 files changed, 97 insertions, 2 deletions
diff --git a/debugger/Makefile b/debugger/Makefile index 75f4aa8eb..fc0f59c40 100644 --- a/debugger/Makefile +++ b/debugger/Makefile @@ -10,5 +10,100 @@ # # ######################################################################### -UNIXDIR=../otherlibs/$(UNIXLIB) -include Makefile.shared +include Makefile.local + +ROOTDIR=.. +COMPFLAGS=-warn-error A -safe-string +LINKFLAGS=-linkall +YACCFLAGS= + +INSTALL_BINDIR=$(DESTDIR)$(BINDIR) + +OTHEROBJS=\ + unix.cma \ + misc.cmo config.cmo tbl.cmo \ + clflags.cmo consistbl.cmo warnings.cmo \ + location.cmo longident.cmo \ + ast_helper.cmo ast_mapper.cmo \ + ident.cmo path.cmo types.cmo \ + btype.cmo primitive.cmo typedtree.cmo \ + subst.cmo predef.cmo \ + datarepr.cmo cmi_format.cmo env.cmo \ + oprint.cmo \ + ctype.cmo printtyp.cmo mtype.cmo \ + envaux.cmo \ + runtimedef.cmo bytesections.cmo \ + dll.cmo meta.cmo symtable.cmo \ + opcodes.cmo \ + genprintval.cmo + + +OBJS=\ + 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 \ + program_loading.cmo \ + 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 \ + loadprinter.cmo \ + parser.cmo \ + command_line.cmo \ + main.cmo + +all: ocamldebug$(EXE) + +ocamldebug$(EXE): $(OBJS) + $(OCAMLC) $(LINKFLAGS) -o ocamldebug$(EXE) -linkall $(OTHEROBJS) dynlink.cma $(OBJS) + +install: + cp ocamldebug$(EXE) $(INSTALL_BINDIR)/ocamldebug$(EXE) + +clean:: + rm -f ocamldebug$(EXE) + rm -f *.cmo *.cmi + +.SUFFIXES: +.SUFFIXES: .ml .cmo .mli .cmi + +.ml.cmo: + $(OCAMLC) -c $(COMPFLAGS) $< + +.mli.cmi: + $(OCAMLC) -c $(COMPFLAGS) $< + +depend: beforedepend + $(OCAMLDEP) $(DEPFLAGS) *.mli *.ml > .depend + +lexer.ml: lexer.mll + $(OCAMLLEX) lexer.mll +clean:: + rm -f lexer.ml +beforedepend:: lexer.ml + +parser.ml parser.mli: parser.mly + $(OCAMLYACC) parser.mly +clean:: + rm -f parser.ml parser.mli +beforedepend:: parser.ml parser.mli + +include .depend |