aboutsummaryrefslogtreecommitdiffstats
path: root/tools/debugger/pdb/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tools/debugger/pdb/Makefile')
-rw-r--r--tools/debugger/pdb/Makefile24
1 files changed, 10 insertions, 14 deletions
diff --git a/tools/debugger/pdb/Makefile b/tools/debugger/pdb/Makefile
index 579c7da12c..12ec4be453 100644
--- a/tools/debugger/pdb/Makefile
+++ b/tools/debugger/pdb/Makefile
@@ -7,10 +7,8 @@ include $(XEN_ROOT)/tools/Rules.mk
# otherwise, ocamlmktop gets confused.
LDFLAGS =
-OCAML_ROOT=/usr/local
# force ocaml 3.08
-# OCAML_ROOT = /anfs/nos1/ach61/ocaml
-
+OCAML_ROOT = /usr/local
OCAMLC = $(OCAML_ROOT)/bin/ocamlc
OCAMLMKTOP = $(OCAML_ROOT)/bin/ocamlmktop
OCAMLLIBPATH= $(OCAML_ROOT)/lib/ocaml
@@ -18,6 +16,7 @@ OCAMLLIBPATH= $(OCAML_ROOT)/lib/ocaml
INCLUDES += -I $(XEN_XC)
INCLUDES += -I $(XEN_LIBXC)
INCLUDES += -I ../libxendebug
+INCLUDES += -I ./linux-2.6-module
INCLUDES += -I $(OCAML_ROOT)/lib/ocaml
CFLAGS += $(INCLUDES)
@@ -27,29 +26,26 @@ CFLAGS += -g
CLIBS += xc
CLIBS += xendebug
-CLIBS += pdb
LIBDIRS += $(XEN_LIBXC)
-LIBDIRS += $(XEN_LIBXUTIL)
LIBDIRS += ../libxendebug
-LIBDIRS += .
LIBS += unix str
-PRE_TARGETS = libpdb.a
-
-all : bc
+# bc = byte-code, dc = debug byte-code
+all : dc
-libpdb.a : pdb_xen.o
- ar rc $@ $^
- ranlib $@
-
-SOURCES += pdb_caml_xc.c pdb_xen.c
+SOURCES += pdb_caml_xc.c
+SOURCES += pdb_caml_domain.c pdb_caml_process.c
+SOURCES += pdb_caml_evtchn.c pdb_caml_xcs.c pdb_xen.c
SOURCES += Util.ml Intel.ml
SOURCES += evtchn.ml evtchn.mli
+SOURCES += xcs.ml xcs.mli
+SOURCES += Xen_domain.ml Xen_domain.mli
SOURCES += Domain.ml Process.ml
SOURCES += Domain.mli Process.mli
SOURCES += PDB.ml debugger.ml server.ml
+
RESULT = pdb
include $(OCAMLMAKEFILE)