ia64/xen-unstable

view tools/Rules.mk @ 16607:dad1f2974d29

[IA64] Fix XenITP build

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
author Alex Williamson <alex.williamson@hp.com>
date Thu Dec 13 09:07:55 2007 -0700 (2007-12-13)
parents 7e7e0ea6a0bb
children b9004e222fde
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 # Enable implicit LFS support *and* explicit LFS names.
18 CFLAGS += $(shell getconf LFS_CFLAGS)
19 CFLAGS += -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
20 LDFLAGS += $(shell getconf LFS_LDFLAGS)
22 # 32-bit x86 does not perform well with -ve segment accesses on Xen.
23 CFLAGS-$(CONFIG_X86_32) += $(call cc-option,$(CC),-mno-tls-direct-seg-refs)
24 CFLAGS += $(CFLAGS-y)
26 # Require GCC v3.4+ (to avoid issues with alignment constraints in Xen headers)
27 check-$(CONFIG_X86) = $(call cc-ver-check,CC,0x030400,\
28 "Xen requires at least gcc-3.4")
29 $(eval $(check-y))
31 %.opic: %.c
32 $(CC) $(CPPFLAGS) -DPIC $(CFLAGS) -fPIC -c -o $@ $<
34 %.o: %.c
35 $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
37 %.o: %.cc
38 $(CC) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $<
40 .PHONY: mk-symlinks
42 mk-symlinks:
43 mkdir -p xen/sys
44 ( cd xen/sys && \
45 ln -sf ../../$(XEN_ROOT)/tools/include/$(XEN_OS)/*.h . )
46 mkdir -p xen
47 ( cd xen && ln -sf ../$(XEN_ROOT)/xen/include/public/*.h . )
48 mkdir -p xen/hvm
49 ( cd xen/hvm && ln -sf ../../$(XEN_ROOT)/xen/include/public/hvm/*.h . )
50 mkdir -p xen/io
51 ( cd xen/io && ln -sf ../../$(XEN_ROOT)/xen/include/public/io/*.h . )
52 mkdir -p xen/xsm
53 ( cd xen/xsm && ln -sf ../../$(XEN_ROOT)/xen/include/public/xsm/*.h . )
54 mkdir -p xen/arch-x86
55 ( cd xen/arch-x86 && ln -sf ../../$(XEN_ROOT)/xen/include/public/arch-x86/*.h . )
56 mkdir -p xen/arch-ia64
57 ( cd xen/arch-ia64 && ln -sf ../../$(XEN_ROOT)/xen/include/public/arch-ia64/*.h . )
58 mkdir -p xen/foreign
59 ( cd xen/foreign && ln -sf ../../$(XEN_ROOT)/xen/include/public/foreign/Makefile . )
60 ( cd xen/foreign && ln -sf ../../$(XEN_ROOT)/xen/include/public/foreign/reference.size . )
61 ( cd xen/foreign && ln -sf ../../$(XEN_ROOT)/xen/include/public/foreign/*.py . )
62 $(MAKE) -C xen/foreign