ia64/xen-unstable

view tools/debugger/pdb/Makefile @ 6538:84ee014ebd41

Merge xen-vtx-unstable.hg
author adsharma@los-vmm.sc.intel.com
date Wed Aug 17 12:34:38 2005 -0800 (2005-08-17)
parents 23979fb12c49 60d20acf8928
children 99914b54f7bf
line source
1 OCAMLMAKEFILE = OCamlMakefile
3 XEN_ROOT = ../../..
4 include $(XEN_ROOT)/tools/Rules.mk
6 # overwrite LDFLAGS from xen/tool/Rules.mk
7 # otherwise, ocamlmktop gets confused.
8 LDFLAGS =
10 # force ocaml 3.08
11 OCAML_ROOT = /usr/local
12 OCAMLC = $(OCAML_ROOT)/bin/ocamlc
13 OCAMLMKTOP = $(OCAML_ROOT)/bin/ocamlmktop
14 OCAMLLIBPATH= $(OCAML_ROOT)/lib/ocaml
16 INCLUDES += -I $(XEN_XC)
17 INCLUDES += -I $(XEN_LIBXC)
18 INCLUDES += -I ../libxendebug
19 INCLUDES += -I ./linux-2.6-module
20 INCLUDES += -I $(OCAML_ROOT)/lib/ocaml
22 CFLAGS += $(INCLUDES)
23 CFLAGS += -Wall
24 CFLAGS += -Werror
25 CFLAGS += -g
27 CLIBS += xc
28 CLIBS += xendebug
30 LIBDIRS += $(XEN_LIBXC)
31 LIBDIRS += ../libxendebug
33 LIBS += unix str
35 # bc = byte-code, dc = debug byte-code
36 # patches = patch linux domU source code
37 all : dc
39 SOURCES += pdb_caml_xc.c
40 SOURCES += pdb_caml_domain.c pdb_caml_process.c
41 SOURCES += pdb_caml_evtchn.c pdb_caml_xcs.c pdb_xen.c
42 SOURCES += Util.ml Intel.ml
43 SOURCES += evtchn.ml evtchn.mli
44 SOURCES += xcs.ml xcs.mli
45 SOURCES += Xen_domain.ml Xen_domain.mli
46 SOURCES += Domain.ml Process.ml
47 SOURCES += Domain.mli Process.mli
48 SOURCES += PDB.ml debugger.ml server.ml
50 RESULT = pdb
52 include $(OCAMLMAKEFILE)
54 PATCHDIR = ./linux-2.6-patches
55 patches :
56 make -C $(PATCHDIR) patches