ia64/xen-unstable

view tools/misc/Makefile @ 13894:620f5cdfe32b

Fix non-x86 build.
author kfraser@localhost.localdomain
date Thu Feb 08 21:36:35 2007 +0000 (2007-02-08)
parents 870370439fb9
children fd0b109501af
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-y := xenperf xc_shadow
13 TARGETS-$(CONFIG_X86) += xen-detect
14 TARGETS := $(TARGETS-y)
16 INSTALL_BIN = $(TARGETS) xencons
17 INSTALL_SBIN = netfix xm xen-bugtool xen-python-path xend xenperf
19 .PHONY: all
20 all: build
22 .PHONY: build
23 build: $(TARGETS)
24 $(MAKE) -C miniterm
25 $(MAKE) -C lomount
27 .PHONY: install
28 install: build
29 [ -d $(DESTDIR)/usr/bin ] || $(INSTALL_DIR) $(DESTDIR)/usr/bin
30 [ -d $(DESTDIR)/usr/sbin ] || $(INSTALL_DIR) $(DESTDIR)/usr/sbin
31 $(INSTALL_PROG) $(INSTALL_BIN) $(DESTDIR)/usr/bin
32 $(INSTALL_PROG) $(INSTALL_SBIN) $(DESTDIR)/usr/sbin
33 $(MAKE) -C lomount install
34 # No sense in installing miniterm on the Xen box.
35 # $(MAKE) -C miniterm install
37 .PHONY: clean
38 clean:
39 $(RM) *.o $(TARGETS) *~
40 $(MAKE) -C miniterm clean
41 $(MAKE) -C lomount clean
43 %.o: %.c $(HDRS) Makefile
44 $(CC) -c $(CFLAGS) -o $@ $<
46 xenperf xc_shadow: %: %.o Makefile
47 $(CC) $(CFLAGS) -o $@ $< -L$(XEN_LIBXC) -lxenctrl