ia64/xen-unstable

view tools/xentrace/Makefile @ 3498:1d24a5b0b338

bitkeeper revision 1.1159.223.25 (41f2cb9aEKMZkZbvqBE0eXhpljlV4Q)

Description: fix path to python
There is no python2 in debian. Instead, use python.

From: Adam Heath <doogie@brainfood.com>
Signed-off-by: ian.pratt@cl.cam.ac.uk
author iap10@labyrinth.cl.cam.ac.uk
date Sat Jan 22 21:54:34 2005 +0000 (2005-01-22)
parents 77ecf0226c2c
children 78b5439ce414
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/Make.defs
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 $(INSTALL_DIR) $(prefix)/usr/bin
28 $(INSTALL_DIR) $(prefix)/usr/man/man1
29 $(INSTALL_DIR) $(prefix)/usr/man/man8
30 $(INSTALL_PROG) $(BIN) $(SCRIPTS) $(prefix)/usr/bin
31 $(INSTALL_DATA) $(MAN1) $(prefix)/usr/man/man1
32 $(INSTALL_DATA) $(MAN8) $(prefix)/usr/man/man8
34 clean:
35 $(RM) *.a *.so *.o *.rpm $(BIN)
37 %: %.c $(HDRS) Makefile
38 $(CC) $(CFLAGS) -o $@ $< -L$(XEN_LIBXC) -L$(XEN_LIBXUTIL) -lxc -lxutil