direct-io.hg

view tools/xentrace/Makefile @ 2821:724449a888fe

bitkeeper revision 1.1159.1.332 (41874e954CLIDA2J3phVFD2RnzVTpA)

Clean up public XenLinux header files. Now accessible from userspace as
#include <xen/linux...>
Got rid of the linux-xen-sparse symlink as it's no longer needed.
author kaf24@freefall.cl.cam.ac.uk
date Tue Nov 02 09:08:37 2004 +0000 (2004-11-02)
parents 3f929065a1d1
children 77ecf0226c2c 074d7606fd61 d8ba911dce48 0dc3b8b8c298
line source
2 XEN_ROOT=../..
3 include $(XEN_ROOT)/tools/Make.defs
5 CC = gcc
6 CFLAGS = -Wall -Werror -O3
8 CFLAGS += -I $(XEN_XC)
9 CFLAGS += -I $(XEN_LIBXC)
10 CFLAGS += -I $(XEN_LIBXUTIL)
12 HDRS = $(wildcard *.h)
13 OBJS = $(patsubst %.c,%.o,$(wildcard *.c))
15 BIN = xentrace
16 SCRIPTS = xentrace_format
17 MAN1 = $(wildcard *.1)
18 MAN8 = $(wildcard *.8)
20 all: $(BIN)
22 install: all
23 mkdir -p $(prefix)/usr/bin
24 mkdir -p $(prefix)/usr/man/man1
25 mkdir -p $(prefix)/usr/man/man8
26 install -m0755 $(BIN) $(SCRIPTS) $(prefix)/usr/bin
27 install -m0644 $(MAN1) $(prefix)/usr/man/man1
28 install -m0644 $(MAN8) $(prefix)/usr/man/man8
30 clean:
31 $(RM) *.a *.so *.o *.rpm $(BIN)
33 %: %.c $(HDRS) Makefile
34 $(CC) $(CFLAGS) -o $@ $< -L$(XEN_LIBXC) -L$(XEN_LIBXUTIL) -lxc -lxutil