ia64/xen-unstable

view tools/misc/Makefile @ 1616:498a8eca0ab9

bitkeeper revision 1.1028 (40e1794elC6xgwFnm_RLalNyn_SVNQ)

Merge ssh://xenbk@gandalf.hpl.hp.com//var/bk/xeno-unstable.bk
into scramble.cl.cam.ac.uk:/local/scratch/kaf24/hp.bk
author kaf24@scramble.cl.cam.ac.uk
date Tue Jun 29 14:14:38 2004 +0000 (2004-06-29)
parents 63fda094edbd cdccf1a15b0f
children 236a9f2698a3
line source
2 CC = gcc
3 CFLAGS = -Wall -O3
4 EXTRA_INC = -I../../xen/include/hypervisor-ifs
5 EXTRA_INC += -I../../linux-xen-sparse/include -I../xc/lib
6 EXTRA_INC += -I../xu/lib
7 EXTRA_INC += -I../lib
9 HDRS = $(wildcard *.h)
10 SRCS = $(wildcard *.c)
11 OBJS = $(patsubst %.c,%.o,$(SRCS))
13 TARGETS = xen_cpuperf
15 INSTALL = $(TARGETS) xencons
17 all: $(TARGETS)
18 $(MAKE) -C miniterm
20 install: all
21 mkdir -p $(prefix)/usr/bin
22 mkdir -p $(prefix)/usr/sbin
23 install -m0755 $(INSTALL) $(prefix)/usr/bin
24 install -m0755 netfix $(prefix)/usr/sbin
25 $(MAKE) -C miniterm install
27 clean:
28 $(RM) *.o $(TARGETS) *~
29 $(MAKE) -C miniterm clean
31 %: %.c $(HDRS) Makefile
32 $(CC) $(CFLAGS) $(EXTRA_INC) -o $@ $<