ia64/xen-unstable

view tools/misc/Makefile @ 13884:870370439fb9

Fix xen-detect build.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Thu Feb 08 17:07:36 2007 +0000 (2007-02-08)
parents 6a383beedf83
children 620f5cdfe32b
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 CFLAGS += $(INCLUDES)
10 HDRS = $(wildcard *.h)
12 TARGETS = xenperf xc_shadow xen-detect
14 INSTALL_BIN = $(TARGETS) xencons
15 INSTALL_SBIN = netfix xm xen-bugtool xen-python-path xend xenperf
17 .PHONY: all
18 all: build
20 .PHONY: build
21 build: $(TARGETS)
22 $(MAKE) -C miniterm
23 $(MAKE) -C lomount
25 .PHONY: install
26 install: build
27 [ -d $(DESTDIR)/usr/bin ] || $(INSTALL_DIR) $(DESTDIR)/usr/bin
28 [ -d $(DESTDIR)/usr/sbin ] || $(INSTALL_DIR) $(DESTDIR)/usr/sbin
29 $(INSTALL_PROG) $(INSTALL_BIN) $(DESTDIR)/usr/bin
30 $(INSTALL_PROG) $(INSTALL_SBIN) $(DESTDIR)/usr/sbin
31 $(MAKE) -C lomount install
32 # No sense in installing miniterm on the Xen box.
33 # $(MAKE) -C miniterm install
35 .PHONY: clean
36 clean:
37 $(RM) *.o $(TARGETS) *~
38 $(MAKE) -C miniterm clean
39 $(MAKE) -C lomount clean
41 %.o: %.c $(HDRS) Makefile
42 $(CC) -c $(CFLAGS) -o $@ $<
44 xenperf xc_shadow: %: %.o Makefile
45 $(CC) $(CFLAGS) -o $@ $< -L$(XEN_LIBXC) -lxenctrl