ia64/xen-unstable

view tools/libfsimage/common/Makefile @ 19648:f0e2df69a8eb

x86 hvm: Allow cross-vendor migration

Intercept #UD and emulate SYSCALL/SYSENTER/SYSEXIT as necessary.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue May 26 15:01:36 2009 +0100 (2009-05-26)
parents bd78714b8594
children
line source
1 XEN_ROOT = ../../..
2 include $(XEN_ROOT)/tools/Rules.mk
4 MAJOR = 1.0
5 MINOR = 0
7 LDFLAGS-$(CONFIG_SunOS) = -Wl,-M -Wl,mapfile-SunOS
8 LDFLAGS-$(CONFIG_Linux) = -Wl,mapfile-GNU
9 LDFLAGS = $(LDFLAGS-y)
11 LIB_SRCS-y = fsimage.c fsimage_plugin.c fsimage_grub.c
13 PIC_OBJS := $(patsubst %.c,%.opic,$(LIB_SRCS-y))
15 LIB = libfsimage.so libfsimage.so.$(MAJOR) libfsimage.so.$(MAJOR).$(MINOR)
17 .PHONY: all
18 all: $(LIB)
20 .PHONY: install
21 install: all
22 $(INSTALL_DIR) $(DESTDIR)$(LIBDIR)
23 $(INSTALL_DIR) $(DESTDIR)$(INCLUDEDIR)
24 $(INSTALL_PROG) libfsimage.so.$(MAJOR).$(MINOR) $(DESTDIR)$(LIBDIR)
25 ln -sf libfsimage.so.$(MAJOR).$(MINOR) $(DESTDIR)$(LIBDIR)/libfsimage.so.$(MAJOR)
26 ln -sf libfsimage.so.$(MAJOR) $(DESTDIR)$(LIBDIR)/libfsimage.so
27 $(INSTALL_DATA) fsimage.h $(DESTDIR)$(INCLUDEDIR)
28 $(INSTALL_DATA) fsimage_plugin.h $(DESTDIR)$(INCLUDEDIR)
29 $(INSTALL_DATA) fsimage_grub.h $(DESTDIR)$(INCLUDEDIR)
31 clean distclean:
32 rm -f $(PIC_OBJS) $(LIB) $(DEPS)
34 libfsimage.so: libfsimage.so.$(MAJOR)
35 ln -sf $< $@
36 libfsimage.so.$(MAJOR): libfsimage.so.$(MAJOR).$(MINOR)
37 ln -sf $< $@
39 libfsimage.so.$(MAJOR).$(MINOR): $(PIC_OBJS)
40 $(CC) $(CFLAGS) $(LDFLAGS) -Wl,$(SONAME_LDFLAG) -Wl,libfsimage.so.$(MAJOR) $(SHLIB_CFLAGS) -o $@ $^ -lpthread
42 -include $(DEPS)