ia64/xen-unstable

view tools/libfsimage/common/Makefile @ 19848:5839491bbf20

[IA64] replace MAX_VCPUS with d->max_vcpus where necessary.

don't use MAX_VCPUS, and use vcpu::max_vcpus.
The changeset of 2f9e1348aa98 introduced max_vcpus to allow more vcpus
per guest. This patch is ia64 counter part.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author Isaku Yamahata <yamahata@valinux.co.jp>
date Mon Jun 29 11:26:05 2009 +0900 (2009-06-29)
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)