ia64/xen-unstable

view tools/misc/Makefile @ 1820:3d4f8eb89670

bitkeeper revision 1.1106.1.2 (40faa780dekT3E5arFwcbQDu1MbX6g)

Cleaned up Xen's instruction emulator.
author kaf24@scramble.cl.cam.ac.uk
date Sun Jul 18 16:38:24 2004 +0000 (2004-07-18)
parents 236a9f2698a3
children 7197ab066b67 698b17696712 f9ae44cc1373 dae98734f12e
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_XU)
12 INCLUDES += -I $(XEN_LIBXC)
13 INCLUDES += -I $(XEN_LIBXUTIL)
15 CFLAGS += $(INCLUDES)
17 HDRS = $(wildcard *.h)
18 SRCS = $(wildcard *.c)
19 OBJS = $(patsubst %.c,%.o,$(SRCS))
21 TARGETS = xen_cpuperf
23 INSTALL_BIN = $(TARGETS) xencons
24 INSTALL_SBIN = netfix xm xend
26 all: $(TARGETS)
27 $(MAKE) -C miniterm
29 install: all
30 mkdir -p $(prefix)/usr/bin
31 mkdir -p $(prefix)/usr/sbin
32 install -m0755 $(INSTALL_BIN) $(prefix)/usr/bin
33 install -m0755 $(INSTALL_SBIN) $(prefix)/usr/sbin
34 $(MAKE) -C miniterm install
36 clean:
37 $(RM) *.o $(TARGETS) *~
38 $(MAKE) -C miniterm clean
40 %: %.c $(HDRS) Makefile
41 $(CC) $(CFLAGS) -o $@ $<