ia64/xen-unstable

view tools/console/Makefile @ 16741:2773cdbecda5

tools: LDFLAGS in link lines

LDFLAGS is not honoured by a couple of link lines in tools/*, but
should be.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Jan 17 15:17:22 2008 +0000 (2008-01-17)
parents 3d13b318349a
children 6ed9b42d1ec4
line source
2 XEN_ROOT=../..
3 include $(XEN_ROOT)/tools/Rules.mk
5 DAEMON_INSTALL_DIR = /usr/sbin
6 CLIENT_INSTALL_DIR = /usr/$(LIBDIR)/xen/bin
8 CFLAGS += -Werror
10 CFLAGS += -I $(XEN_LIBXC)
11 CFLAGS += -I $(XEN_XENSTORE)
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)/$(DAEMON_INSTALL_DIR)
34 $(INSTALL_PROG) xenconsoled $(DESTDIR)/$(DAEMON_INSTALL_DIR)
35 $(INSTALL_DIR) $(DESTDIR)/$(CLIENT_INSTALL_DIR)
36 $(INSTALL_PROG) xenconsole $(DESTDIR)/$(CLIENT_INSTALL_DIR)