ia64/xen-unstable

view tools/misc/Makefile @ 5145:d61ceec31dfd

bitkeeper revision 1.1547 (42945455UNorq1ha3va8g7OVydNVmw)

XendDomain.py:
Improve error handling.
XendCheckpoint.py:
Switch restore to use os functions to read from the state file.
Simplify code.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Wed May 25 10:32:53 2005 +0000 (2005-05-25)
parents e41c470ae8b5
children cd95b96a172e a83ac0806d6b
line source
1 INSTALL = install
2 INSTALL_PROG = $(INSTALL) -m0755
3 INSTALL_DIR = $(INSTALL) -d -m0755
5 XEN_ROOT=../..
6 include $(XEN_ROOT)/tools/Rules.mk
8 CFLAGS += -Wall -Werror -O3
10 INCLUDES += -I $(XEN_XC)
11 INCLUDES += -I $(XEN_LIBXC)
12 CFLAGS += $(INCLUDES)
14 HDRS = $(wildcard *.h)
16 TARGETS = xenperf xc_shadow
18 INSTALL_BIN = $(TARGETS) xencons
19 INSTALL_SBIN = netfix xm xend xenperf
21 all: build
22 build: $(TARGETS)
23 $(MAKE) -C miniterm
24 $(MAKE) -C cpuperf
25 $(MAKE) -C mbootpack
27 install: build
28 [ -d $(DESTDIR)/usr/bin ] || $(INSTALL_DIR) $(DESTDIR)/usr/bin
29 [ -d $(DESTDIR)/usr/sbin ] || $(INSTALL_DIR) $(DESTDIR)/usr/sbin
30 $(INSTALL_PROG) $(INSTALL_BIN) $(DESTDIR)/usr/bin
31 $(INSTALL_PROG) $(INSTALL_SBIN) $(DESTDIR)/usr/sbin
32 $(MAKE) -C cpuperf install
33 # No sense in installing miniterm on the Xen box.
34 # $(MAKE) -C miniterm install
35 # Likewise mbootpack
36 # $(MAKE) -C mbootpack install
38 clean:
39 $(RM) *.o $(TARGETS) *~
40 $(MAKE) -C miniterm clean
41 $(MAKE) -C cpuperf clean
42 $(MAKE) -C mbootpack clean
44 %.o: %.c $(HDRS) Makefile
45 $(CC) -c $(CFLAGS) -o $@ $<
47 $(TARGETS): %: %.o Makefile
48 $(CC) $(CFLAGS) -o $@ $< -L$(XEN_LIBXC) -lxc