debuggers.hg

view tools/internal/Makefile @ 648:cda951fc1bef

bitkeeper revision 1.341 (3f1120a2WW6KGE81TArq_p654xy38Q)

Merge labyrinth.cl.cam.ac.uk:/auto/groups/xeno/BK/xeno.bk
into labyrinth.cl.cam.ac.uk:/auto/anfs/scratch/labyrinth/iap10/xeno-clone/xeno.bk
author iap10@labyrinth.cl.cam.ac.uk
date Sun Jul 13 09:04:34 2003 +0000 (2003-07-13)
parents 3539152a9fab 9339f3942f4e
children 4145c2f30e68 fb720652b3f3
line source
2 CC = gcc
3 CFLAGS = -Wall -O3
4 CFLAGS += -I../../xen/include -I../../xenolinux-2.4.21-sparse/include
6 HDRS = $(wildcard *.h)
7 SRCS = $(wildcard *.c)
8 OBJS = $(patsubst %.c,%.o,$(SRCS))
10 TARGETS = xi_create xi_start xi_stop xi_destroy xi_build
11 TARGETS += xi_phys_grant xi_phys_revoke xi_phys_probe xi_list
12 TARGETS += xi_sched_global xi_sched_domain xi_usage
13 INSTALL = $(TARGETS) xi_vifinit xi_helper
15 all: $(TARGETS)
17 install: all
18 cp -a $(INSTALL) ../../../install/bin
19 chmod 755 ../../../install/bin/xi_vifinit
20 chmod 755 ../../../install/bin/xi_helper
22 clean:
23 $(RM) *.o *.rpm $(TARGETS)
25 rpm: all
26 rm -rf staging
27 mkdir staging
28 mkdir staging/i386
29 rpmbuild --define "staging$$PWD/staging" --define '_builddir.' --define "_rpmdir$$PWD/staging" -bb rpm.spec
30 mv staging/i386/*.rpm .
31 rm -rf staging
33 %: %.c $(HDRS) Makefile
34 $(CC) $(CFLAGS) -o $@ $<