ia64/xen-unstable

annotate tools/libaio/Makefile @ 14445:cb1693873a7e

libxc: Explicitly reserve space for special pages in HVM memmap.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Fri Mar 16 18:59:28 2007 +0000 (2007-03-16)
parents 2937703f0ed0
children 923b8dbb0fed
rev   line source
jchesterfield@10736 1 NAME=libaio
jchesterfield@10736 2 SPECFILE=$(NAME).spec
jchesterfield@10736 3 VERSION=$(shell awk '/Version:/ { print $$2 }' $(SPECFILE))
jchesterfield@10736 4 RELEASE=$(shell awk '/Release:/ { print $$2 }' $(SPECFILE))
jchesterfield@10736 5 CVSTAG = $(NAME)_$(subst .,-,$(VERSION))_$(subst .,-,$(RELEASE))
jchesterfield@10736 6 RPMBUILD=$(shell `which rpmbuild >&/dev/null` && echo "rpmbuild" || echo "rpm")
jchesterfield@10736 7
jchesterfield@10736 8 prefix=/usr
jchesterfield@10736 9 includedir=$(prefix)/include
jchesterfield@10736 10 libdir=$(prefix)/lib
jchesterfield@10736 11
jchesterfield@10736 12 default: all
jchesterfield@10736 13
jchesterfield@10736 14 all:
jchesterfield@10736 15 @$(MAKE) -C src
jchesterfield@10736 16
jchesterfield@10736 17 install: all
jchesterfield@10736 18
jchesterfield@10736 19 clean:
jchesterfield@10736 20 @$(MAKE) -C src clean
jchesterfield@10736 21 @$(MAKE) -C harness clean
jchesterfield@10736 22
jchesterfield@10736 23 tag-archive:
jchesterfield@10736 24 @cvs -Q tag -F $(CVSTAG)
jchesterfield@10736 25
jchesterfield@10736 26 create-archive: tag-archive
jchesterfield@10736 27 @rm -rf /tmp/$(NAME)
jchesterfield@10736 28 @cd /tmp; cvs -Q -d $(CVSROOT) export -r$(CVSTAG) $(NAME) || echo GRRRrrrrr -- ignore [export aborted]
jchesterfield@10736 29 @mv /tmp/$(NAME) /tmp/$(NAME)-$(VERSION)
jchesterfield@10736 30 @cd /tmp; tar czSpf $(NAME)-$(VERSION).tar.gz $(NAME)-$(VERSION)
jchesterfield@10736 31 @rm -rf /tmp/$(NAME)-$(VERSION)
jchesterfield@10736 32 @cp /tmp/$(NAME)-$(VERSION).tar.gz .
jchesterfield@10736 33 @rm -f /tmp/$(NAME)-$(VERSION).tar.gz
jchesterfield@10736 34 @echo " "
jchesterfield@10736 35 @echo "The final archive is ./$(NAME)-$(VERSION).tar.gz."
jchesterfield@10736 36
jchesterfield@10736 37 archive: clean tag-archive create-archive
jchesterfield@10736 38
jchesterfield@10736 39 srpm: create-archive
jchesterfield@10736 40 $(RPMBUILD) --define "_sourcedir `pwd`" --define "_srcrpmdir `pwd`" --nodeps -bs $(SPECFILE)