ia64/xen-unstable

view tools/xentrace/Makefile @ 6946:e703abaf6e3d

Add behaviour to the remove methods to remove the transaction's path itself. This allows us to write Remove(path) to remove the specified path rather than having to slice the path ourselves.
author emellor@ewan
date Sun Sep 18 14:42:13 2005 +0100 (2005-09-18)
parents 3233e7ecfa9f
children 06d84bf87159
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
18 SCRIPTS = xentrace_format
19 MAN1 = $(wildcard *.1)
20 MAN8 = $(wildcard *.8)
22 all: build
23 build: $(BIN)
25 install: build
26 [ -d $(DESTDIR)/usr/bin ] || $(INSTALL_DIR) $(DESTDIR)/usr/bin
27 [ -d $(DESTDIR)/usr/share/man/man1 ] || \
28 $(INSTALL_DIR) $(DESTDIR)/usr/share/man/man1
29 [ -d $(DESTDIR)/usr/share/man/man8 ] || \
30 $(INSTALL_DIR) $(DESTDIR)/usr/share/man/man8
31 $(INSTALL_PROG) $(BIN) $(SCRIPTS) $(DESTDIR)/usr/bin
32 $(INSTALL_DATA) $(MAN1) $(DESTDIR)/usr/share/man/man1
33 $(INSTALL_DATA) $(MAN8) $(DESTDIR)/usr/share/man/man8
35 clean:
36 $(RM) *.a *.so *.o *.rpm $(BIN)
38 %: %.c $(HDRS) Makefile
39 $(CC) $(CFLAGS) -o $@ $< -L$(XEN_LIBXC) -lxenctrl