Makefile revision 104453
1# $FreeBSD: head/lib/libexpat/Makefile 104453 2002-10-04 11:20:18Z phk $
2
3EXPAT=	${.CURDIR}/../../contrib/expat
4
5SHLIB_MAJOR=	1
6
7LIB=		bsdxml
8
9SRCS=		xmlparse.c xmlrole.c xmltok.c
10INCS=		bsdxml.h
11MAN=		libbsdxml.3
12
13.PATH:		${EXPAT}/lib
14
15CFLAGS += 	-I${EXPAT}/lib -I${EXPAT} -I${.CURDIR}
16CLEANFILES+=	bsdxml.h
17
18#
19# OK, so it is not entirely unadultered: we ammend the COPYING
20# to point people to the right place, get rid of some VMS stuff
21# and use FreeBSD style indempotency #ifndefs.
22#
23bsdxml.h:	expat.h
24	unifdef -U__VMS < ${.ALLSRC} | \
25	sed -e 's/XmlParse_INCLUDED/_BSD_XML_H_/' \
26	    -e 's/COPYING/src\/contrib\/expat\/COPYING/' \
27		> ${.TARGET}
28
29.include <bsd.lib.mk>
30
31