ia64/xen-unstable

view tools/xentrace/Makefile @ 2422:2274a0386cc9

bitkeeper revision 1.1159.69.5 (4138e882jA1YaR_OfTfNHe_uT4PDIg)

trivial
author iap10@labyrinth.cl.cam.ac.uk
date Fri Sep 03 21:56:18 2004 +0000 (2004-09-03)
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