ia64/xen-unstable

view tools/xentrace/Makefile @ 9447:dfbf0939350c

This patch is mainly a cleanup of vmx related xentrace code. One minor
xentrace bug is fixed.

Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
Signed-off-by: Yunfeng Zhao <yunfeng.zhao@intel.com>
author kaf24@firebug.cl.cam.ac.uk
date Fri Mar 24 10:59:31 2006 +0100 (2006-03-24)
parents 85b34394c9a2
children b454a09cddb1
line source
1 INSTALL = install
2 INSTALL_PROG = $(INSTALL) -m0755
3 INSTALL_DIR = $(INSTALL) -d -m0755
4 INSTALL_DATA = $(INSTALL) -m0644
6 XEN_ROOT=../..
7 include $(XEN_ROOT)/tools/Rules.mk
9 CFLAGS += -Werror -D_LARGEFILE64_SOURCE
11 CFLAGS += -I $(XEN_XC)
12 CFLAGS += -I $(XEN_LIBXC)
14 HDRS = $(wildcard *.h)
15 OBJS = $(patsubst %.c,%.o,$(wildcard *.c))
17 BIN = xentrace tbctl setsize
18 LIBBIN =
19 SCRIPTS = xentrace_format
20 MAN1 = $(wildcard *.1)
21 MAN8 = $(wildcard *.8)
23 ifeq ($(XEN_TARGET_ARCH),x86_32)
24 LIBBIN += xenctx
25 endif
27 ifeq ($(XEN_TARGET_ARCH),x86_64)
28 LIBBIN += xenctx
29 endif
31 all: build
32 build: $(BIN) $(LIBBIN)
34 install: build
35 [ -d $(DESTDIR)/usr/bin ] || $(INSTALL_DIR) $(DESTDIR)/usr/bin
36 [ -z "$(LIBBIN)" ] || [ -d $(DESTDIR)/usr/$(LIBDIR)/xen/bin ] || \
37 $(INSTALL_DIR) $(DESTDIR)/usr/$(LIBDIR)/xen/bin
38 [ -d $(DESTDIR)/usr/share/man/man1 ] || \
39 $(INSTALL_DIR) $(DESTDIR)/usr/share/man/man1
40 [ -d $(DESTDIR)/usr/share/man/man8 ] || \
41 $(INSTALL_DIR) $(DESTDIR)/usr/share/man/man8
42 $(INSTALL_PROG) $(BIN) $(SCRIPTS) $(DESTDIR)/usr/bin
43 [ -z "$(LIBBIN)" ] || $(INSTALL_PROG) $(LIBBIN) $(DESTDIR)/usr/$(LIBDIR)/xen/bin
44 $(INSTALL_DATA) $(MAN1) $(DESTDIR)/usr/share/man/man1
45 $(INSTALL_DATA) $(MAN8) $(DESTDIR)/usr/share/man/man8
47 clean:
48 $(RM) *.a *.so *.o *.rpm $(BIN) $(LIBBIN)
50 %: %.c $(HDRS) Makefile
51 $(CC) $(CFLAGS) -o $@ $< -L$(XEN_LIBXC) -lxenctrl