ia64/xen-unstable

view tools/misc/Makefile @ 2570:30a9b33481dc

bitkeeper revision 1.1159.90.2 (415be9d5hTw1zLV9fA-AYcekmwhMwg)

Discard devices early for local migrate.
author mjw@wray-m-3.hpl.hp.com
date Thu Sep 30 11:11:17 2004 +0000 (2004-09-30)
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 $@ $<