direct-io.hg

view tools/misc/Makefile @ 3657:1ba40f806898

bitkeeper revision 1.1159.223.64 (42048c67tDD9EILuuYdpEx-vM6LTnw)

Name: tools-misc-TARGETS.patch
Description: Split compile/link stages
distcc behaves much better when you compile and link in 2 separate steps.
Plus, this is a more standard way of doing things.
Signed-off-by: Adam Heath <doogie@brainfood.com>
Signed-off-by: ian.pratt@cl.cam.ac.uk
author iap10@labyrinth.cl.cam.ac.uk
date Sat Feb 05 09:05:43 2005 +0000 (2005-02-05)
parents 308203ddc173
children 09723a1de726 3ee85723a341 a0be5e5a1f37
line source
1 INSTALL = install
2 INSTALL_PROG = $(INSTALL) -m0755
3 INSTALL_DIR = $(INSTALL) -d -m0755
5 XEN_ROOT=../..
6 include $(XEN_ROOT)/tools/Rules.mk
8 CC = gcc
9 CFLAGS += -Wall -Werror -O3
11 INCLUDES += -I $(XEN_XC)
12 INCLUDES += -I $(XEN_LIBXC)
13 CFLAGS += $(INCLUDES)
15 HDRS = $(wildcard *.h)
17 TARGETS = xenperf
19 INSTALL_BIN = $(TARGETS) xencons
20 INSTALL_SBIN = netfix xm xend xensv xenperf
22 all: $(TARGETS)
23 $(MAKE) -C miniterm
25 install: all
26 [ -d $(DESTDIR)/usr/bin ] || $(INSTALL_DIR) $(DESTDIR)/usr/bin
27 [ -d $(DESTDIR)/usr/sbin ] || $(INSTALL_DIR) $(DESTDIR)/usr/sbin
28 $(INSTALL_PROG) $(INSTALL_BIN) $(DESTDIR)/usr/bin
29 $(INSTALL_PROG) $(INSTALL_SBIN) $(DESTDIR)/usr/sbin
30 # No sense in installing miniterm on the Xen box.
31 # $(MAKE) -C miniterm install
33 clean:
34 $(RM) *.o $(TARGETS) *~
35 $(MAKE) -C miniterm clean
37 %.o: %.c $(HDRS) Makefile
38 $(CC) -c $(CFLAGS) -o $@ $<
40 $(TARGETS): %: %.o Makefile
41 $(CC) $(CFLAGS) -o $@ $< -L$(XEN_LIBXC) -lxc -L$(XEN_LIBXUTIL) -lxutil