ia64/xen-unstable

view tools/misc/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 56b543dd0da2
children acb35c1088fd
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
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 xsview
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: %: %.o Makefile
47 $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) -L$(XEN_LIBXC) -lxenctrl