direct-io.hg

view tools/misc/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 ad13896e776c
children 3f929065a1d1
line source
2 XEN_ROOT=../..
3 include $(XEN_ROOT)/tools/Make.defs
5 CC = gcc
6 CFLAGS = -Wall -O3
8 INCLUDES += -I $(XEN_LINUX_INCLUDE)
9 INCLUDES += -I $(XEN_XC)
10 INCLUDES += -I $(XEN_LIBXC)
11 INCLUDES += -I $(XEN_LIBXUTIL)
13 CFLAGS += $(INCLUDES)
15 HDRS = $(wildcard *.h)
16 SRCS = $(wildcard *.c)
17 OBJS = $(patsubst %.c,%.o,$(SRCS))
19 TARGETS =
21 INSTALL_BIN = $(TARGETS) xencons
22 INSTALL_SBIN = netfix xm xend xensv
24 all: $(TARGETS)
25 $(MAKE) -C miniterm
27 install: all
28 mkdir -p $(prefix)/usr/bin
29 mkdir -p $(prefix)/usr/sbin
30 install -m0755 $(INSTALL_BIN) $(prefix)/usr/bin
31 install -m0755 $(INSTALL_SBIN) $(prefix)/usr/sbin
32 $(MAKE) -C miniterm install
34 clean:
35 $(RM) *.o $(TARGETS) *~
36 $(MAKE) -C miniterm clean
38 %: %.c $(HDRS) Makefile
39 $(CC) $(CFLAGS) -o $@ $<