ia64/xen-unstable

view tools/xentrace/Makefile @ 8740:3d7ea7972b39

Update patches for linux 2.6.15.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Thu Feb 02 17:16:00 2006 +0000 (2006-02-02)
parents d4e3f04e3d38
children 7e68bc2745af
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 += -Wall -Werror -O3
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