ia64/xen-unstable

view tools/vnet/libxutil/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 27e9687c5b3d
children
line source
1 ifndef VNET_ROOT
2 export VNET_ROOT = $(shell cd .. && pwd)
3 include $(VNET_ROOT)/Make.env
4 endif
6 include $(XEN_ROOT)/tools/Rules.mk
8 LIB_SRCS :=
9 LIB_SRCS += allocate.c
10 LIB_SRCS += enum.c
11 LIB_SRCS += file_stream.c
12 #LIB_SRCS += gzip_stream.c
13 LIB_SRCS += hash_table.c
14 LIB_SRCS += iostream.c
15 LIB_SRCS += lexis.c
16 LIB_SRCS += mem_stream.c
17 LIB_SRCS += string_stream.c
18 LIB_SRCS += sxpr.c
19 LIB_SRCS += sxpr_parser.c
20 LIB_SRCS += sys_net.c
21 LIB_SRCS += sys_string.c
22 LIB_SRCS += util.c
24 LIB_OBJS := $(LIB_SRCS:.c=.o)
25 PIC_OBJS := $(LIB_SRCS:.c=.opic)
27 $(call cc-option-add,CFLAGS,CC,-fgnu89-inline)
28 CFLAGS += -Werror -fno-strict-aliasing
29 CFLAGS += -O3
30 #CFLAGS += -g
32 MAJOR := 3.0
33 MINOR := 0
34 LIB := libxutil.so
35 LIB += libxutil.so.$(MAJOR)
36 LIB += libxutil.so.$(MAJOR).$(MINOR)
37 LIB += libxutil.a
39 .PHONY: all
40 all: build
42 .PHONY: build
43 build: #check-for-zlib
44 $(MAKE) $(LIB)
46 gzip_stream.o: check-for-zlib
48 libxutil.so: libxutil.so.$(MAJOR)
49 ln -sf $^ $@
51 libxutil.so.$(MAJOR): libxutil.so.$(MAJOR).$(MINOR)
52 ln -sf $^ $@
54 libxutil.so.$(MAJOR).$(MINOR): $(PIC_OBJS)
55 $(CC) $(CFLAGS) -Wl,$(SONAME_LDFLAG) -Wl,libxutil.so.$(MAJOR) $(SHLIB_CFLAGS) -o $@ $^
57 libxutil.a: $(LIB_OBJS)
58 $(AR) rc $@ $^
60 .PHONY: check-for-zlib
61 check-for-zlib:
62 @if [ ! -e /usr/include/zlib.h ]; then \
63 echo "***********************************************************"; \
64 echo "ERROR: install zlib header files (http://www.gzip.org/zlib)"; \
65 echo "***********************************************************"; \
66 false; \
67 fi
69 .PHONY: install
70 install: build
71 $(INSTALL_DIR) $(DESTDIR)$(LIBDIR)
72 $(INSTALL_PROG) libxutil.so.$(MAJOR).$(MINOR) $(DESTDIR)$(LIBDIR)
73 $(INSTALL_DATA) libxutil.a $(DESTDIR)$(LIBDIR)
74 ln -sf libxutil.so.$(MAJOR).$(MINOR) $(DESTDIR)$(LIBDIR)/libxutil.so.$(MAJOR)
75 ln -sf libxutil.so.$(MAJOR) $(DESTDIR)$(LIBDIR)/libxutil.so
77 .PHONY: clean
78 clean:
79 -@$(RM) *.a *.so* *.o *.opic *.rpm
80 -@$(RM) *~
81 -@$(RM) $(DEPS)
83 -include $(DEPS)