ia64/xen-unstable

view tools/Rules.mk @ 10166:e336c37b8de0

Fix kcons_write and kcons_write_dom0 CodingStyle.
Use roundup_pow_of_two().

Signed-off-by: Chris Wright <chrisw@sous-sol.org>
author kaf24@firebug.cl.cam.ac.uk
date Wed May 24 11:57:37 2006 +0100 (2006-05-24)
parents 24dbb153ab39
children 414dabe82a31
line source
1 # -*- mode: Makefile; -*-
3 # `all' is the default target
4 all:
6 include $(XEN_ROOT)/Config.mk
8 XEN_XC = $(XEN_ROOT)/tools/python/xen/lowlevel/xc
9 XEN_LIBXC = $(XEN_ROOT)/tools/libxc
10 XEN_XENSTORE = $(XEN_ROOT)/tools/xenstore
11 XEN_LIBXENSTAT = $(XEN_ROOT)/tools/xenstat/libxenstat/src
13 X11_LDPATH = -L/usr/X11R6/$(LIBDIR)
15 CFLAGS += -D__XEN_TOOLS__
17 %.opic: %.c
18 $(CC) $(CPPFLAGS) -DPIC $(CFLAGS) -fPIC -c -o $@ $<
20 %.o: %.c
21 $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
23 %.o: %.cc
24 $(CC) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $<
26 OS = $(shell uname -s)
28 .PHONY: mk-symlinks mk-symlinks-xen mk-symlinks-$(OS)
30 mk-symlinks-Linux: LINUX_ROOT=$(XEN_ROOT)/linux-2.6-xen-sparse
31 mk-symlinks-Linux:
32 mkdir -p xen/linux
33 ( cd xen/linux && \
34 ln -sf ../../$(LINUX_ROOT)/include/xen/public/*.h . )
35 ( cd xen && rm -f sys && ln -sf linux sys )
37 mk-symlinks-xen:
38 mkdir -p xen
39 ( cd xen && ln -sf ../$(XEN_ROOT)/xen/include/public/*.h . )
40 mkdir -p xen/hvm
41 ( cd xen/hvm && ln -sf ../../$(XEN_ROOT)/xen/include/public/hvm/*.h . )
42 mkdir -p xen/io
43 ( cd xen/io && ln -sf ../../$(XEN_ROOT)/xen/include/public/io/*.h . )
45 mk-symlinks: mk-symlinks-xen mk-symlinks-$(OS)