ia64/xen-unstable

view tools/xenstore/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 2eb9f1db70a4
children
line source
1 XEN_ROOT=../..
2 include $(XEN_ROOT)/tools/Rules.mk
4 MAJOR = 3.0
5 MINOR = 0
7 CFLAGS += -Werror
8 CFLAGS += -I.
9 CFLAGS += $(CFLAGS_libxenctrl)
11 CLIENTS := xenstore-exists xenstore-list xenstore-read xenstore-rm xenstore-chmod
12 CLIENTS += xenstore-write xenstore-ls
14 XENSTORED_OBJS = xenstored_core.o xenstored_watch.o xenstored_domain.o xenstored_transaction.o xs_lib.o talloc.o utils.o tdb.o hashtable.o
16 XENSTORED_OBJS_$(CONFIG_Linux) = xenstored_linux.o
17 XENSTORED_OBJS_$(CONFIG_SunOS) = xenstored_solaris.o xenstored_probes.o
18 XENSTORED_OBJS_$(CONFIG_NetBSD) = xenstored_netbsd.o
20 XENSTORED_OBJS += $(XENSTORED_OBJS_y)
22 ifneq ($(XENSTORE_STATIC_CLIENTS),y)
23 LIBXENSTORE := libxenstore.so
24 else
25 LIBXENSTORE := libxenstore.a
26 xenstore xenstore-control: CFLAGS += -static
27 endif
29 ALL_TARGETS = libxenstore.so libxenstore.a clients xs_tdb_dump
30 ifneq ($(CONFIG_OCAML_XENSTORED),y)
31 ALL_TARGETS += xenstored
32 endif
34 .PHONY: all
35 all: $(ALL_TARGETS)
37 .PHONY: clients
38 clients: xenstore $(CLIENTS) xenstore-control
40 ifeq ($(CONFIG_SunOS),y)
41 xenstored_probes.h: xenstored_probes.d
42 dtrace -C -h -s xenstored_probes.d
44 xenstored_solaris.o: xenstored_probes.h
46 xenstored_probes.o: xenstored_solaris.o
47 dtrace -C -G -s xenstored_probes.d xenstored_solaris.o
49 CFLAGS += -DHAVE_DTRACE=1
50 endif
52 xenstored: $(XENSTORED_OBJS)
53 $(CC) $(CFLAGS) $(LDFLAGS) $^ $(LDFLAGS_libxenctrl) $(SOCKET_LIBS) -o $@
55 $(CLIENTS): xenstore
56 ln -f xenstore $@
58 xenstore: xenstore_client.o $(LIBXENSTORE)
59 $(CC) $(CFLAGS) $(LDFLAGS) $< -L. -lxenstore $(SOCKET_LIBS) -o $@
61 xenstore-control: xenstore_control.o $(LIBXENSTORE)
62 $(CC) $(CFLAGS) $(LDFLAGS) $< -L. -lxenstore $(SOCKET_LIBS) -o $@
64 xs_tdb_dump: xs_tdb_dump.o utils.o tdb.o talloc.o
65 $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@
67 libxenstore.so: libxenstore.so.$(MAJOR)
68 ln -sf $< $@
69 libxenstore.so.$(MAJOR): libxenstore.so.$(MAJOR).$(MINOR)
70 ln -sf $< $@
72 xs.opic: CFLAGS += -DUSE_PTHREAD
74 libxenstore.so.$(MAJOR).$(MINOR): xs.opic xs_lib.opic
75 $(CC) $(CFLAGS) $(LDFLAGS) -Wl,$(SONAME_LDFLAG) -Wl,libxenstore.so.$(MAJOR) $(SHLIB_CFLAGS) -o $@ $^ $(SOCKET_LIBS) -lpthread
77 libxenstore.a: xs.o xs_lib.o
78 $(AR) rcs $@ $^
80 .PHONY: clean
81 clean:
82 rm -f *.a *.o *.opic *.so* xenstored_probes.h
83 rm -f xenstored xs_random xs_stress xs_crashme
84 rm -f xs_tdb_dump xenstore-control
85 rm -f xenstore $(CLIENTS)
86 $(RM) $(DEPS)
88 .PHONY: TAGS
89 TAGS:
90 etags `find . -name '*.[ch]'`
92 .PHONY: tarball
93 tarball: clean
94 cd .. && tar -c -j -v -h -f xenstore.tar.bz2 xenstore/
96 .PHONY: install
97 install: all
98 ifneq ($(CONFIG_OCAML_XENSTORED),y)
99 $(INSTALL_DIR) $(DESTDIR)/var/run/xenstored
100 $(INSTALL_DIR) $(DESTDIR)/var/lib/xenstored
101 $(INSTALL_PROG) xenstored $(DESTDIR)$(SBINDIR)
102 endif
103 $(INSTALL_DIR) $(DESTDIR)$(BINDIR)
104 $(INSTALL_DIR) $(DESTDIR)$(SBINDIR)
105 $(INSTALL_DIR) $(DESTDIR)$(INCLUDEDIR)
106 $(INSTALL_PROG) xenstore-control $(DESTDIR)$(BINDIR)
107 $(INSTALL_PROG) xenstore $(DESTDIR)$(BINDIR)
108 set -e ; for c in $(CLIENTS) ; do \
109 ln -f $(DESTDIR)$(BINDIR)/xenstore $(DESTDIR)$(BINDIR)/$${c} ; \
110 done
111 $(INSTALL_DIR) $(DESTDIR)$(LIBDIR)
112 $(INSTALL_PROG) libxenstore.so.$(MAJOR).$(MINOR) $(DESTDIR)$(LIBDIR)
113 ln -sf libxenstore.so.$(MAJOR).$(MINOR) $(DESTDIR)$(LIBDIR)/libxenstore.so.$(MAJOR)
114 ln -sf libxenstore.so.$(MAJOR) $(DESTDIR)$(LIBDIR)/libxenstore.so
115 $(INSTALL_DATA) libxenstore.a $(DESTDIR)$(LIBDIR)
116 $(INSTALL_DATA) xs.h $(DESTDIR)$(INCLUDEDIR)
117 $(INSTALL_DATA) xs_lib.h $(DESTDIR)$(INCLUDEDIR)
119 -include $(DEPS)
121 # never delete any intermediate files.
122 .SECONDARY: