direct-io.hg

view tools/xentrace/Makefile @ 11422:0419253c81de

Fix inverted sense of getRequiredAvailableMemory and
getRequiredInitialReservation on x86 HVM.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Tue Sep 05 16:23:11 2006 +0100 (2006-09-05)
parents 4704cd92242e
children edf0e488ea2a
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 xentrace_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 ifeq ($(XEN_TARGET_ARCH),ia64)
32 LIBBIN += xenctx
33 endif
35 .PHONY: all
36 all: build
38 .PHONY: build
39 build: $(BIN) $(LIBBIN)
41 .PHONY: install
42 install: build
43 [ -d $(DESTDIR)/usr/bin ] || $(INSTALL_DIR) $(DESTDIR)/usr/bin
44 [ -z "$(LIBBIN)" ] || [ -d $(DESTDIR)/usr/$(LIBDIR)/xen/bin ] || \
45 $(INSTALL_DIR) $(DESTDIR)/usr/$(LIBDIR)/xen/bin
46 [ -d $(DESTDIR)/usr/share/man/man1 ] || \
47 $(INSTALL_DIR) $(DESTDIR)/usr/share/man/man1
48 [ -d $(DESTDIR)/usr/share/man/man8 ] || \
49 $(INSTALL_DIR) $(DESTDIR)/usr/share/man/man8
50 $(INSTALL_PROG) $(BIN) $(SCRIPTS) $(DESTDIR)/usr/bin
51 [ -z "$(LIBBIN)" ] || $(INSTALL_PROG) $(LIBBIN) $(DESTDIR)/usr/$(LIBDIR)/xen/bin
52 $(INSTALL_DATA) $(MAN1) $(DESTDIR)/usr/share/man/man1
53 $(INSTALL_DATA) $(MAN8) $(DESTDIR)/usr/share/man/man8
55 .PHONY: clean
56 clean:
57 $(RM) *.a *.so *.o *.rpm $(BIN) $(LIBBIN)
59 %: %.c $(HDRS) Makefile
60 $(CC) $(CFLAGS) -o $@ $< -L$(XEN_LIBXC) -lxenctrl
61 xentrace_%: %.c $(HDRS) Makefile
62 $(CC) $(CFLAGS) -o $@ $< -L$(XEN_LIBXC) -lxenctrl