debuggers.hg

view tools/xentrace/Makefile @ 21067:b4a1832a916f

Update Xen version to 4.0.0-rc6
author Keir Fraser <keir.fraser@citrix.com>
date Tue Mar 09 18:18:05 2010 +0000 (2010-03-09)
parents bd78714b8594
children 3ffdb094c2c0
line source
1 XEN_ROOT=../..
2 include $(XEN_ROOT)/tools/Rules.mk
4 CFLAGS += -Werror
6 CFLAGS += $(CFLAGS_libxenctrl)
7 LDFLAGS += $(LDFLAGS_libxenctrl)
9 HDRS = $(wildcard *.h)
10 OBJS = $(patsubst %.c,%.o,$(wildcard *.c))
12 BIN = xentrace xentrace_setsize
13 LIBBIN =
14 SCRIPTS = xentrace_format
15 MAN1 = $(wildcard *.1)
16 MAN8 = $(wildcard *.8)
18 ifeq ($(XEN_TARGET_ARCH),x86_32)
19 LIBBIN += xenctx
20 endif
22 ifeq ($(XEN_TARGET_ARCH),x86_64)
23 LIBBIN += xenctx
24 endif
26 ifeq ($(XEN_TARGET_ARCH),ia64)
27 LIBBIN += xenctx
28 endif
30 .PHONY: all
31 all: build
33 .PHONY: build
34 build: $(BIN) $(LIBBIN)
36 .PHONY: install
37 install: build
38 $(INSTALL_DIR) $(DESTDIR)$(BINDIR)
39 [ -z "$(LIBBIN)" ] || $(INSTALL_DIR) $(DESTDIR)$(PRIVATE_BINDIR)
40 $(INSTALL_DIR) $(DESTDIR)$(MAN1DIR)
41 $(INSTALL_DIR) $(DESTDIR)$(MAN8DIR)
42 $(INSTALL_PROG) $(BIN) $(SCRIPTS) $(DESTDIR)$(BINDIR)
43 [ -z "$(LIBBIN)" ] || $(INSTALL_PROG) $(LIBBIN) $(DESTDIR)$(PRIVATE_BINDIR)
44 $(INSTALL_DATA) $(MAN1) $(DESTDIR)$(MAN1DIR)
45 $(INSTALL_DATA) $(MAN8) $(DESTDIR)$(MAN8DIR)
47 .PHONY: clean
48 clean:
49 $(RM) *.a *.so *.o *.rpm $(BIN) $(LIBBIN) $(DEPS)
51 %: %.c $(HDRS) Makefile
52 $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
53 xentrace_%: %.c $(HDRS) Makefile
54 $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
56 -include $(DEPS)