ia64/xen-unstable

view tools/misc/cpuperf/Makefile @ 6403:6e899a3840b2

Rename libxc => libxenctrl and xc.h => xen/xenctrl.h
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Wed Aug 24 23:07:29 2005 +0000 (2005-08-24)
parents a83ac0806d6b
children 2f20c2fce2c5 e24fd7012ffb 4abd299ef2f6 3428d58a85e1 b54144915ae6 0610add7c3fe b4b3f6be5226
line source
1 #
2 # Make Performance counter tool
3 #
4 # $Id: Makefile,v 1.1 2003/10/13 16:49:44 jrb44 Exp $
5 #
6 # $Log: Makefile,v $
7 # Revision 1.1 2003/10/13 16:49:44 jrb44
8 # Initial revision
9 #
10 #
12 INSTALL = install
13 INSTALL_PROG = $(INSTALL) -m0755
14 INSTALL_DIR = $(INSTALL) -d -m0755
16 # these are for Xen
17 XEN_ROOT=../../..
18 include $(XEN_ROOT)/tools/Rules.mk
20 CFLAGS += -Wall -O3
22 HDRS = $(wildcard *.h)
23 SRCS = $(wildcard *.c)
24 OBJS = $(patsubst %.c,%.o,$(SRCS))
26 TARGETS = cpuperf-xen cpuperf-perfcntr
28 INSTALL_BIN = $(TARGETS)
31 all: $(TARGETS)
33 clean:
34 $(RM) *.o $(TARGETS)
36 %: %.c $(HDRS) Makefile
37 $(CC) $(CFLAGS) -o $@ $<
39 cpuperf-xen: cpuperf.c $(HDRS) Makefile
40 $(CC) $(CFLAGS) -I $(XEN_LIBXC) -L$(XEN_LIBXC) -lxenctrl -DXENO -o $@ $<
42 cpuperf-perfcntr: cpuperf.c $(HDRS) Makefile
43 $(CC) $(CFLAGS) -DPERFCNTR -o $@ $<
45 install: all
46 $(INSTALL_PROG) $(INSTALL_BIN) $(DESTDIR)/usr/bin
49 # End of $RCSfile: Makefile,v $