ia64/xen-unstable

view tools/misc/Makefile @ 16894:b9004e222fde

Move generation of public header hierarchy into the tools.

This patch merges the two versions of public header generation
currently used in the build into one.

Signed-off-by: Bastian Blank <waldi@debian.org>
author Keir Fraser <keir.fraser@citrix.com>
date Sat Jan 26 10:38:44 2008 +0000 (2008-01-26)
parents 71012e36922c
children ddf454872de4
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
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 = $(TARGETS) xencons
22 INSTALL_SBIN = netfix xm xen-bugtool xen-python-path xend xenperf xsview
24 .PHONY: all
25 all: build
27 .PHONY: build
28 build: $(TARGETS)
29 set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d; done
31 .PHONY: install
32 install: build
33 $(INSTALL_DIR) $(DESTDIR)$(BINDIR)
34 $(INSTALL_DIR) $(DESTDIR)$(SBINDIR)
35 $(INSTALL_PROG) $(INSTALL_BIN) $(DESTDIR)$(BINDIR)
36 $(INSTALL_PROG) $(INSTALL_SBIN) $(DESTDIR)$(SBINDIR)
37 set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d install-recurse; done
39 .PHONY: clean
40 clean:
41 $(RM) *.o $(TARGETS) *~
42 set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d clean; done
44 %.o: %.c $(HDRS) Makefile
45 $(CC) -c $(CFLAGS) -o $@ $<
47 xenperf: %: %.o Makefile
48 $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) -L$(XEN_LIBXC) -lxenctrl