ia64/xen-unstable

view tools/xentrace/Makefile @ 2621:9402048e2325

bitkeeper revision 1.1159.1.218 (416a8128OiHXHyk_Sy8FsA0YUQcEnA)

Merge freefall.cl.cam.ac.uk:/auto/groups/xeno/users/cl349/BK/xeno.bk-26dom0
into freefall.cl.cam.ac.uk:/local/scratch/cl349/xeno.bk-26dom0
author cl349@freefall.cl.cam.ac.uk
date Mon Oct 11 12:48:40 2004 +0000 (2004-10-11)
parents dae98734f12e
children a5c335665fd6 3f929065a1d1 0a4b76b6b5a0
line source
2 XEN_ROOT=../..
3 include $(XEN_ROOT)/tools/Make.defs
5 CC = gcc
6 CFLAGS = -Wall -Werror -O3
8 CFLAGS += -I $(XEN_HYPERVISOR_IFS)
9 CFLAGS += -I $(XEN_LINUX_INCLUDE)
10 CFLAGS += -I $(XEN_XC)
11 CFLAGS += -I $(XEN_LIBXC)
12 CFLAGS += -I $(XEN_LIBXUTIL)
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: $(BIN)
24 install: all
25 mkdir -p $(prefix)/usr/bin
26 mkdir -p $(prefix)/usr/man/man1
27 mkdir -p $(prefix)/usr/man/man8
28 install -m0755 $(BIN) $(SCRIPTS) $(prefix)/usr/bin
29 install -m0644 $(MAN1) $(prefix)/usr/man/man1
30 install -m0644 $(MAN8) $(prefix)/usr/man/man8
32 clean:
33 $(RM) *.a *.so *.o *.rpm $(BIN)
35 %: %.c $(HDRS) Makefile
36 $(CC) $(CFLAGS) -o $@ $< -L$(XEN_LIBXC) -L$(XEN_LIBXUTIL) -lxc -lxutil