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