summaryrefslogtreecommitdiff
path: root/debugger/Makefile.shared
diff options
context:
space:
mode:
Diffstat (limited to 'debugger/Makefile.shared')
-rw-r--r--debugger/Makefile.shared7
1 files changed, 5 insertions, 2 deletions
diff --git a/debugger/Makefile.shared b/debugger/Makefile.shared
index d85419eb0c..249e8b4c40 100644
--- a/debugger/Makefile.shared
+++ b/debugger/Makefile.shared
@@ -12,7 +12,8 @@
include ../config/Makefile
-CAMLC=../ocamlcomp.sh
+ROOTDIR=..
+CAMLC=$(ROOTDIR)/boot/ocamlrun $(ROOTDIR)/ocamlc -nostdlib -I $(ROOTDIR)/stdlib
COMPFLAGS=-warn-error A $(INCLUDES)
LINKFLAGS=-linkall -I $(UNIXDIR)
CAMLYACC=../boot/ocamlyacc
@@ -21,6 +22,8 @@ CAMLLEX=../boot/ocamlrun ../boot/ocamllex
CAMLDEP=../boot/ocamlrun ../tools/ocamldep
DEPFLAGS=$(INCLUDES)
+INSTALL_BINDIR=$(DESTDIR)$(BINDIR)
+
INCLUDES=\
-I ../utils -I ../parsing -I ../typing -I ../bytecomp -I ../toplevel \
-I $(UNIXDIR)
@@ -83,7 +86,7 @@ ocamldebug$(EXE): $(OBJS) $(OTHEROBJS)
$(CAMLC) $(LINKFLAGS) -o ocamldebug$(EXE) -linkall $(OTHEROBJS) $(OBJS)
install:
- cp ocamldebug$(EXE) $(BINDIR)/ocamldebug$(EXE)
+ cp ocamldebug$(EXE) $(INSTALL_BINDIR)/ocamldebug$(EXE)
clean::
rm -f ocamldebug$(EXE)