ia64/xen-unstable

view tools/libxc/Makefile @ 9488:0a6f5527ca4b

[IA64] set itv handoff as masked and enable reading irr[0-3]

Set initial vcpu itv handoff state to mask the timer vector.
This seems to match hardware and makes logical sense from a
spurious interrupt perspective. Enable vcpu_get_irr[0-3]
functions as they seem to work and have the proper backing.
This enables the check_sal_cache_flush() in arch/ia64/kernel.sal.c
to work unmodified, allowing us to remove the Xen changes from
the file (and thus the file from the sparse tree).

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
author awilliam@xenbuild.aw
date Tue Apr 04 09:39:45 2006 -0600 (2006-04-04)
parents 30ae67d6e5f0
children b454a09cddb1
line source
2 INSTALL = install
3 INSTALL_PROG = $(INSTALL) -m0755
4 INSTALL_DATA = $(INSTALL) -m0644
5 INSTALL_DIR = $(INSTALL) -d -m0755
7 MAJOR = 3.0
8 MINOR = 0
10 XEN_ROOT = ../..
11 include $(XEN_ROOT)/tools/Rules.mk
13 SRCS :=
14 SRCS += xc_bvtsched.c
15 SRCS += xc_core.c
16 SRCS += xc_domain.c
17 SRCS += xc_evtchn.c
18 SRCS += xc_misc.c
19 SRCS += xc_physdev.c
20 SRCS += xc_private.c
21 SRCS += xc_sedf.c
22 SRCS += xc_tbuf.c
24 ifeq ($(patsubst x86%,x86,$(XEN_TARGET_ARCH)),x86)
25 SRCS += xc_ptrace.c
26 SRCS += xc_ptrace_core.c
27 SRCS += xc_pagetab.c
28 endif
30 BUILD_SRCS :=
31 BUILD_SRCS += xc_linux_build.c
32 BUILD_SRCS += xc_load_bin.c
33 BUILD_SRCS += xc_load_elf.c
34 BUILD_SRCS += xg_private.c
36 ifeq ($(XEN_TARGET_ARCH),ia64)
37 BUILD_SRCS += xc_ia64_stubs.c
38 else
39 BUILD_SRCS += xc_load_aout9.c
40 BUILD_SRCS += xc_linux_restore.c
41 BUILD_SRCS += xc_linux_save.c
42 BUILD_SRCS += xc_hvm_build.c
43 endif
45 CFLAGS += -Werror
46 CFLAGS += -fno-strict-aliasing
47 CFLAGS += $(INCLUDES) -I.
49 # Define this to make it possible to run valgrind on code linked with these
50 # libraries.
51 #CFLAGS += -DVALGRIND -O0 -ggdb3
53 # Get gcc to generate the dependencies for us.
54 CFLAGS += -Wp,-MD,.$(@F).d
55 LDFLAGS += -L.
56 DEPS = .*.d
58 LIB_OBJS := $(patsubst %.c,%.o,$(SRCS))
59 PIC_OBJS := $(patsubst %.c,%.opic,$(SRCS))
61 LIB_BUILD_OBJS := $(patsubst %.c,%.o,$(BUILD_SRCS))
62 PIC_BUILD_OBJS := $(patsubst %.c,%.opic,$(BUILD_SRCS))
64 LIB := libxenctrl.a
65 LIB += libxenctrl.so libxenctrl.so.$(MAJOR) libxenctrl.so.$(MAJOR).$(MINOR)
67 LIB += libxenguest.a
68 LIB += libxenguest.so libxenguest.so.$(MAJOR) libxenguest.so.$(MAJOR).$(MINOR)
70 all: build
71 build: check-for-zlib mk-symlinks
72 $(MAKE) $(LIB)
74 check-for-zlib:
75 @if [ ! -e /usr/include/zlib.h ]; then \
76 echo "***********************************************************"; \
77 echo "ERROR: install zlib header files (http://www.gzip.org/zlib)"; \
78 echo "***********************************************************"; \
79 false; \
80 fi
82 install: build
83 [ -d $(DESTDIR)/usr/$(LIBDIR) ] || $(INSTALL_DIR) $(DESTDIR)/usr/$(LIBDIR)
84 [ -d $(DESTDIR)/usr/include ] || $(INSTALL_DIR) $(DESTDIR)/usr/include
85 $(INSTALL_PROG) libxenctrl.so.$(MAJOR).$(MINOR) $(DESTDIR)/usr/$(LIBDIR)
86 $(INSTALL_DATA) libxenctrl.a $(DESTDIR)/usr/$(LIBDIR)
87 ln -sf libxenctrl.so.$(MAJOR).$(MINOR) $(DESTDIR)/usr/$(LIBDIR)/libxenctrl.so.$(MAJOR)
88 ln -sf libxenctrl.so.$(MAJOR) $(DESTDIR)/usr/$(LIBDIR)/libxenctrl.so
89 $(INSTALL_DATA) xenctrl.h $(DESTDIR)/usr/include
91 $(INSTALL_PROG) libxenguest.so.$(MAJOR).$(MINOR) $(DESTDIR)/usr/$(LIBDIR)
92 $(INSTALL_DATA) libxenguest.a $(DESTDIR)/usr/$(LIBDIR)
93 ln -sf libxenguest.so.$(MAJOR).$(MINOR) $(DESTDIR)/usr/$(LIBDIR)/libxenguest.so.$(MAJOR)
94 ln -sf libxenguest.so.$(MAJOR) $(DESTDIR)/usr/$(LIBDIR)/libxenguest.so
95 $(INSTALL_DATA) xenguest.h $(DESTDIR)/usr/include
97 .PHONY: TAGS clean rpm install all
99 TAGS:
100 etags -t *.c *.h
102 clean:
103 rm -rf *.a *.so* *.o *.opic *.rpm $(LIB) *~ $(DEPS) xen
105 rpm: build
106 rm -rf staging
107 mkdir staging
108 mkdir staging/i386
109 rpmbuild --define "staging$$PWD/staging" --define '_builddir.' \
110 --define "_rpmdir$$PWD/staging" -bb rpm.spec
111 mv staging/i386/*.rpm .
112 rm -rf staging
114 # libxenctrl
116 libxenctrl.a: $(LIB_OBJS)
117 $(AR) rc $@ $^
119 libxenctrl.so: libxenctrl.so.$(MAJOR)
120 ln -sf $< $@
121 libxenctrl.so.$(MAJOR): libxenctrl.so.$(MAJOR).$(MINOR)
122 ln -sf $< $@
124 libxenctrl.so.$(MAJOR).$(MINOR): $(PIC_OBJS)
125 $(CC) $(CFLAGS) $(LDFLAGS) -Wl,-soname -Wl,libxenctrl.so.$(MAJOR) -shared -o $@ $^
127 # libxenguest
129 libxenguest.a: $(LIB_BUILD_OBJS)
130 $(AR) rc $@ $^
132 libxenguest.so: libxenguest.so.$(MAJOR)
133 ln -sf $< $@
134 libxenguest.so.$(MAJOR): libxenguest.so.$(MAJOR).$(MINOR)
135 ln -sf $< $@
137 libxenguest.so.$(MAJOR).$(MINOR): $(PIC_BUILD_OBJS) libxenctrl.so
138 $(CC) $(CFLAGS) $(LDFLAGS) -Wl,-soname -Wl,libxenguest.so.$(MAJOR) -shared -o $@ $^ -lz -lxenctrl
140 -include $(DEPS)