direct-io.hg

view tools/xentrace/Makefile @ 2787:a5c335665fd6

bitkeeper revision 1.1159.142.2 (41849fadYlUYMwSy6tcq8Y-Yi8NMZA)

Clean up libxc by allowing direct use of Xen headers from userland:
#include <xen/...>
author kaf24@freefall.cl.cam.ac.uk
date Sun Oct 31 08:17:49 2004 +0000 (2004-10-31)
parents dae98734f12e
children 3f929065a1d1
line source
2 XEN_ROOT=../..
3 include $(XEN_ROOT)/tools/Make.defs
5 CC = gcc
6 CFLAGS = -Wall -Werror -O3
8 CFLAGS += -I $(XEN_LINUX_INCLUDE)
9 CFLAGS += -I $(XEN_XC)
10 CFLAGS += -I $(XEN_LIBXC)
11 CFLAGS += -I $(XEN_LIBXUTIL)
13 HDRS = $(wildcard *.h)
14 OBJS = $(patsubst %.c,%.o,$(wildcard *.c))
16 BIN = xentrace
17 SCRIPTS = xentrace_format
18 MAN1 = $(wildcard *.1)
19 MAN8 = $(wildcard *.8)
21 all: $(BIN)
23 install: all
24 mkdir -p $(prefix)/usr/bin
25 mkdir -p $(prefix)/usr/man/man1
26 mkdir -p $(prefix)/usr/man/man8
27 install -m0755 $(BIN) $(SCRIPTS) $(prefix)/usr/bin
28 install -m0644 $(MAN1) $(prefix)/usr/man/man1
29 install -m0644 $(MAN8) $(prefix)/usr/man/man8
31 clean:
32 $(RM) *.a *.so *.o *.rpm $(BIN)
34 %: %.c $(HDRS) Makefile
35 $(CC) $(CFLAGS) -o $@ $< -L$(XEN_LIBXC) -L$(XEN_LIBXUTIL) -lxc -lxutil