ia64/xen-unstable

view tools/misc/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 f210a633571c
children
line source
1 XEN_ROOT=../..
2 include $(XEN_ROOT)/tools/Rules.mk
4 CFLAGS += -Werror
6 INCLUDES += -I $(XEN_XC)
7 INCLUDES += -I $(XEN_LIBXC)
8 INCLUDES += -I $(XEN_INCLUDE)
9 CFLAGS += $(INCLUDES)
11 HDRS = $(wildcard *.h)
13 TARGETS-y := xenperf xenpm xen-tmem-list-parse
14 TARGETS-$(CONFIG_X86) += xen-detect
15 TARGETS := $(TARGETS-y)
17 SUBDIRS-$(CONFIG_LOMOUNT) += lomount
18 SUBDIRS-$(CONFIG_MINITERM) += miniterm
19 SUBDIRS := $(SUBDIRS-y)
21 INSTALL_BIN-y := xencons
22 INSTALL_BIN-$(CONFIG_X86) += xen-detect
23 INSTALL_BIN := $(INSTALL_BIN-y)
25 INSTALL_SBIN-y := xm xen-bugtool xen-python-path xend xenperf xsview xenpm xen-tmem-list-parse
26 INSTALL_SBIN := $(INSTALL_SBIN-y)
28 DEFAULT_PYTHON_PATH := $(shell $(XEN_ROOT)/tools/python/get-path)
29 PYTHON_PATH ?= $(DEFAULT_PYTHON_PATH)
30 INSTALL_PYTHON_PROG = $(XEN_ROOT)/tools/python/install-wrap \
31 "$(PYTHON_PATH)" $(INSTALL_PROG)
33 .PHONY: all
34 all: build
36 .PHONY: build
37 build: $(TARGETS)
38 set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d; done
40 .PHONY: install
41 install: build
42 $(INSTALL_DIR) $(DESTDIR)$(BINDIR)
43 $(INSTALL_DIR) $(DESTDIR)$(SBINDIR)
44 $(INSTALL_PYTHON_PROG) $(INSTALL_BIN) $(DESTDIR)$(BINDIR)
45 $(INSTALL_PYTHON_PROG) $(INSTALL_SBIN) $(DESTDIR)$(SBINDIR)
46 set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d install-recurse; done
48 .PHONY: clean
49 clean:
50 $(RM) *.o $(TARGETS) *~ $(DEPS)
51 set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d clean; done
53 %.o: %.c $(HDRS) Makefile
54 $(CC) -c $(CFLAGS) -o $@ $<
56 xenperf xenpm: %: %.o Makefile
57 $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(LDFLAGS_libxenctrl)
59 -include $(DEPS)