ia64/xen-unstable

view tools/console/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 221b867ee084
line source
2 XEN_ROOT=../..
3 include $(XEN_ROOT)/tools/Rules.mk
5 CLIENT_INSTALL_DIR = $(LIBDIR)/xen/bin
7 CFLAGS += -Werror
9 CFLAGS += -I $(XEN_LIBXC)
10 CFLAGS += -I $(XEN_XENSTORE)
11 CFLAGS += -I $(XEN_INCLUDE)
13 BIN = xenconsoled xenconsole
15 .PHONY: all
16 all: $(BIN)
18 .PHONY: clean
19 clean:
20 $(RM) *.a *.so *.o *.rpm $(BIN)
21 $(RM) client/*.o daemon/*.o
23 xenconsoled: $(patsubst %.c,%.o,$(wildcard daemon/*.c))
24 $(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS) -L$(XEN_LIBXC) -L$(XEN_XENSTORE) \
25 $(UTIL_LIBS) $(SOCKET_LIBS) -lxenctrl -lxenstore
27 xenconsole: $(patsubst %.c,%.o,$(wildcard client/*.c))
28 $(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS) -L$(XEN_LIBXC) -L$(XEN_XENSTORE) \
29 $(UTIL_LIBS) $(SOCKET_LIBS) -lxenctrl -lxenstore
31 .PHONY: install
32 install: $(BIN)
33 $(INSTALL_DIR) $(DESTDIR)/$(SBINDIR)
34 $(INSTALL_PROG) xenconsoled $(DESTDIR)/$(SBINDIR)
35 $(INSTALL_DIR) $(DESTDIR)/$(CLIENT_INSTALL_DIR)
36 $(INSTALL_PROG) xenconsole $(DESTDIR)/$(CLIENT_INSTALL_DIR)