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