ia64/xen-unstable

view tools/xentrace/Makefile @ 3562:308203ddc173

bitkeeper revision 1.1159.223.48 (41f9204fFDaBv7jCdF63bwx5zXNlNA)

Merge arcadians.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-2.0-testing.bk
into arcadians.cl.cam.ac.uk:/local/scratch-2/cl349/xen-2.0-testing.bk
author cl349@arcadians.cl.cam.ac.uk
date Thu Jan 27 17:09:35 2005 +0000 (2005-01-27)
parents dca8a77a487d 0a8bc30a7c4b
children 2e60786262c4 3ee85723a341 a0be5e5a1f37
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 CC = gcc
10 CFLAGS += -Wall -Werror -O3
12 CFLAGS += -I $(XEN_XC)
13 CFLAGS += -I $(XEN_LIBXC)
14 CFLAGS += -I $(XEN_LIBXUTIL)
16 HDRS = $(wildcard *.h)
17 OBJS = $(patsubst %.c,%.o,$(wildcard *.c))
19 BIN = xentrace
20 SCRIPTS = xentrace_format
21 MAN1 = $(wildcard *.1)
22 MAN8 = $(wildcard *.8)
24 all: $(BIN)
26 install: all
27 [ -d $(DESTDIR)/usr/bin ] || $(INSTALL_DIR) $(DESTDIR)/usr/bin
28 [ -d $(DESTDIR)/usr/man/man1 ] || \
29 $(INSTALL_DIR) $(DESTDIR)/usr/man/man1
30 [ -d $(DESTDIR)/usr/man/man8 ] || \
31 $(INSTALL_DIR) $(DESTDIR)/usr/man/man8
32 $(INSTALL_PROG) $(BIN) $(SCRIPTS) $(DESTDIR)/usr/bin
33 $(INSTALL_DATA) $(MAN1) $(DESTDIR)/usr/man/man1
34 $(INSTALL_DATA) $(MAN8) $(DESTDIR)/usr/man/man8
36 clean:
37 $(RM) *.a *.so *.o *.rpm $(BIN)
39 %: %.c $(HDRS) Makefile
40 $(CC) $(CFLAGS) -o $@ $< -L$(XEN_LIBXC) -L$(XEN_LIBXUTIL) -lxc -lxutil