direct-io.hg

view tools/Rules.mk @ 11774:5d2ce349f9f4

[SOLARIS] Don't build ptrace code on Solaris.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Tue Oct 17 17:59:32 2006 +0100 (2006-10-17)
parents f4b7b8aefc05
children 729a6231de35
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 .PHONY: mk-symlinks mk-symlinks-xen mk-symlinks-$(XEN_OS)
28 mk-symlinks-SunOS:
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-$(XEN_OS)