ia64/xen-unstable

view tools/libaio/Makefile @ 10736:2937703f0ed0

Added blktap support. Includes kernel driver (enabled as CONFIG_XEN_BLKDEV_TAP=y) and userspace tools. The userspace deamon (blktapctrl) is enabled by default when xend is activated. For further information on using and configuring blktap see tools/blktap/README.
author jchesterfield@dhcp92.uk.xensource.com
date Thu Jul 13 10:13:26 2006 +0100 (2006-07-13)
parents
children 923b8dbb0fed
line source
1 NAME=libaio
2 SPECFILE=$(NAME).spec
3 VERSION=$(shell awk '/Version:/ { print $$2 }' $(SPECFILE))
4 RELEASE=$(shell awk '/Release:/ { print $$2 }' $(SPECFILE))
5 CVSTAG = $(NAME)_$(subst .,-,$(VERSION))_$(subst .,-,$(RELEASE))
6 RPMBUILD=$(shell `which rpmbuild >&/dev/null` && echo "rpmbuild" || echo "rpm")
8 prefix=/usr
9 includedir=$(prefix)/include
10 libdir=$(prefix)/lib
12 default: all
14 all:
15 @$(MAKE) -C src
17 install: all
19 clean:
20 @$(MAKE) -C src clean
21 @$(MAKE) -C harness clean
23 tag-archive:
24 @cvs -Q tag -F $(CVSTAG)
26 create-archive: tag-archive
27 @rm -rf /tmp/$(NAME)
28 @cd /tmp; cvs -Q -d $(CVSROOT) export -r$(CVSTAG) $(NAME) || echo GRRRrrrrr -- ignore [export aborted]
29 @mv /tmp/$(NAME) /tmp/$(NAME)-$(VERSION)
30 @cd /tmp; tar czSpf $(NAME)-$(VERSION).tar.gz $(NAME)-$(VERSION)
31 @rm -rf /tmp/$(NAME)-$(VERSION)
32 @cp /tmp/$(NAME)-$(VERSION).tar.gz .
33 @rm -f /tmp/$(NAME)-$(VERSION).tar.gz
34 @echo " "
35 @echo "The final archive is ./$(NAME)-$(VERSION).tar.gz."
37 archive: clean tag-archive create-archive
39 srpm: create-archive
40 $(RPMBUILD) --define "_sourcedir `pwd`" --define "_srcrpmdir `pwd`" --nodeps -bs $(SPECFILE)