direct-io.hg

view tools/misc/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 9035b6656818 f2e12f9f7cc8 fd0d4d8e6193
line source
2 XEN_ROOT=../..
3 include $(XEN_ROOT)/tools/Make.defs
5 CC = gcc
6 CFLAGS = -Wall -O3
8 INCLUDES += -I $(XEN_XC)
9 INCLUDES += -I $(XEN_LIBXC)
10 INCLUDES += -I $(XEN_LIBXUTIL)
12 CFLAGS += $(INCLUDES)
14 HDRS = $(wildcard *.h)
15 SRCS = $(wildcard *.c)
16 OBJS = $(patsubst %.c,%.o,$(SRCS))
18 TARGETS =
20 INSTALL_BIN = $(TARGETS) xencons
21 INSTALL_SBIN = netfix xm xend xensv
23 all: $(TARGETS)
24 $(MAKE) -C miniterm
26 install: all
27 mkdir -p $(prefix)/usr/bin
28 mkdir -p $(prefix)/usr/sbin
29 install -m0755 $(INSTALL_BIN) $(prefix)/usr/bin
30 install -m0755 $(INSTALL_SBIN) $(prefix)/usr/sbin
31 $(MAKE) -C miniterm install
33 clean:
34 $(RM) *.o $(TARGETS) *~
35 $(MAKE) -C miniterm clean
37 %: %.c $(HDRS) Makefile
38 $(CC) $(CFLAGS) -o $@ $<