ia64/xen-unstable

view tools/console/Makefile @ 16899:221b867ee084

Add PRIVATE_BINDIR. Use it.

Signed-off-by: Bastian Blank <waldi@debian.org>
author Keir Fraser <keir.fraser@citrix.com>
date Sat Jan 26 14:42:03 2008 +0000 (2008-01-26)
parents b9004e222fde
children ddf454872de4
line source
2 XEN_ROOT=../..
3 include $(XEN_ROOT)/tools/Rules.mk
5 CFLAGS += -Werror
7 CFLAGS += -I $(XEN_LIBXC)
8 CFLAGS += -I $(XEN_XENSTORE)
9 CFLAGS += -I $(XEN_INCLUDE)
11 BIN = xenconsoled xenconsole
13 .PHONY: all
14 all: $(BIN)
16 .PHONY: clean
17 clean:
18 $(RM) *.a *.so *.o *.rpm $(BIN)
19 $(RM) client/*.o daemon/*.o
21 xenconsoled: $(patsubst %.c,%.o,$(wildcard daemon/*.c))
22 $(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS) -L$(XEN_LIBXC) -L$(XEN_XENSTORE) \
23 $(UTIL_LIBS) $(SOCKET_LIBS) -lxenctrl -lxenstore
25 xenconsole: $(patsubst %.c,%.o,$(wildcard client/*.c))
26 $(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS) -L$(XEN_LIBXC) -L$(XEN_XENSTORE) \
27 $(UTIL_LIBS) $(SOCKET_LIBS) -lxenctrl -lxenstore
29 .PHONY: install
30 install: $(BIN)
31 $(INSTALL_DIR) $(DESTDIR)/$(SBINDIR)
32 $(INSTALL_PROG) xenconsoled $(DESTDIR)/$(SBINDIR)
33 $(INSTALL_DIR) $(DESTDIR)$(PRIVATE_BINDIR)
34 $(INSTALL_PROG) xenconsole $(DESTDIR)$(PRIVATE_BINDIR)