ia64/xen-unstable

view tools/misc/Makefile @ 2422:2274a0386cc9

bitkeeper revision 1.1159.69.5 (4138e882jA1YaR_OfTfNHe_uT4PDIg)

trivial
author iap10@labyrinth.cl.cam.ac.uk
date Fri Sep 03 21:56:18 2004 +0000 (2004-09-03)
parents dae98734f12e
children 7266d3bd3b1f ad13896e776c 0a4b76b6b5a0
line source
2 XEN_ROOT=../..
3 include $(XEN_ROOT)/tools/Make.defs
5 CC = gcc
6 CFLAGS = -Wall -O3
8 INCLUDES += -I $(XEN_HYPERVISOR_IFS)
9 INCLUDES += -I $(XEN_LINUX_INCLUDE)
10 INCLUDES += -I $(XEN_XC)
11 INCLUDES += -I $(XEN_LIBXC)
12 INCLUDES += -I $(XEN_LIBXUTIL)
14 CFLAGS += $(INCLUDES)
16 HDRS = $(wildcard *.h)
17 SRCS = $(wildcard *.c)
18 OBJS = $(patsubst %.c,%.o,$(SRCS))
20 TARGETS = xen_cpuperf
22 INSTALL_BIN = $(TARGETS) xencons
23 INSTALL_SBIN = netfix xm xend xensv
25 all: $(TARGETS)
26 $(MAKE) -C miniterm
28 install: all
29 mkdir -p $(prefix)/usr/bin
30 mkdir -p $(prefix)/usr/sbin
31 install -m0755 $(INSTALL_BIN) $(prefix)/usr/bin
32 install -m0755 $(INSTALL_SBIN) $(prefix)/usr/sbin
33 $(MAKE) -C miniterm install
35 clean:
36 $(RM) *.o $(TARGETS) *~
37 $(MAKE) -C miniterm clean
39 %: %.c $(HDRS) Makefile
40 $(CC) $(CFLAGS) -o $@ $<