ia64/xen-unstable

view tools/policy/Makefile @ 5740:09cc6606517d

Tools build fixes.
author kaf24@firebug.cl.cam.ac.uk
date Mon Jul 11 16:04:22 2005 +0000 (2005-07-11)
parents 649cd37aa1ab
children a83ac0806d6b
line source
1 XEN_ROOT = ../..
2 include $(XEN_ROOT)/tools/Rules.mk
4 SRCS = policy_tool.c
5 CFLAGS += -static
6 CFLAGS += -Wall
7 CFLAGS += -Werror
8 CFLAGS += -O3
9 CFLAGS += -fno-strict-aliasing
10 CFLAGS += -I.
12 all: build
13 build: mk-symlinks
14 $(MAKE) policy_tool
16 default: all
18 install: all
20 policy_tool : policy_tool.c
21 $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $<
23 clean:
24 rm -rf policy_tool xen
27 LINUX_ROOT := $(XEN_ROOT)/linux-2.6-xen-sparse
28 mk-symlinks:
29 [ -e xen/linux ] || mkdir -p xen/linux
30 [ -e xen/io ] || mkdir -p xen/io
31 ( cd xen >/dev/null ; \
32 ln -sf ../$(XEN_ROOT)/xen/include/public/*.h . )
33 ( cd xen/io >/dev/null ; \
34 ln -sf ../../$(XEN_ROOT)/xen/include/public/io/*.h . )
35 ( cd xen/linux >/dev/null ; \
36 ln -sf ../../$(LINUX_ROOT)/include/asm-xen/linux-public/*.h . )