ia64/xen-unstable

view tools/Rules.mk @ 8740:3d7ea7972b39

Update patches for linux 2.6.15.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Thu Feb 02 17:16:00 2006 +0000 (2006-02-02)
parents fd9b2c1bb577
children d4e433d615b0
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 ifeq ($(XEN_TARGET_ARCH),x86_32)
14 CFLAGS += -m32 -march=i686
15 LDFLAGS += -m32
16 endif
18 ifeq ($(XEN_TARGET_ARCH),x86_64)
19 CFLAGS += -m64
20 LDFLAGS += -m64
21 endif
23 X11_LDPATH = -L/usr/X11R6/$(LIBDIR)
25 %.opic: %.c
26 $(CC) $(CPPFLAGS) -DPIC $(CFLAGS) -fPIC -c -o $@ $<
28 %.o: %.c
29 $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
31 %.o: %.cc
32 $(CC) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $<
34 mk-symlinks: LINUX_ROOT=$(XEN_ROOT)/linux-2.6-xen-sparse
35 mk-symlinks:
36 mkdir -p xen
37 ( cd xen && ln -sf ../$(XEN_ROOT)/xen/include/public/*.h . )
38 mkdir -p xen/hvm
39 ( cd xen/hvm && ln -sf ../../$(XEN_ROOT)/xen/include/public/hvm/*.h . )
40 mkdir -p xen/io
41 ( cd xen/io && ln -sf ../../$(XEN_ROOT)/xen/include/public/io/*.h . )
42 mkdir -p xen/linux
43 ( cd xen/linux && \
44 ln -sf ../../$(LINUX_ROOT)/include/xen/public/*.h . )