debuggers.hg

view tools/misc/Makefile @ 3601:25f3f22927e9

bitkeeper revision 1.1159.1.539 (41f925edsOM-7RHXmwoPRFfYwoxtEw)

Merge tempest.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xeno.bk
into tempest.cl.cam.ac.uk:/local/scratch/smh22/xen-unstable.bk
author smh22@tempest.cl.cam.ac.uk
date Thu Jan 27 17:33:33 2005 +0000 (2005-01-27)
parents d8ba911dce48 a26c121cabd0
children bc0fbb38cb25
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 $(INSTALL_DIR) $(DESTDIR)/usr/bin
27 $(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 %: %.c $(HDRS) Makefile
38 $(CC) $(CFLAGS) -o $@ $< -L$(XEN_LIBXC) -lxc -L$(XEN_LIBXUTIL) -lxutil