xref: /freebsd/lib/libexpat/Makefile (revision 8a349ed8fe54a2a43611e4f073fda34ce5b700ca)
14e07a41bSPoul-Henning Kamp# $FreeBSD$
24e07a41bSPoul-Henning Kamp
34e07a41bSPoul-Henning KampEXPAT=	${.CURDIR}/../../contrib/expat
44e07a41bSPoul-Henning Kamp
58a349ed8SPoul-Henning KampSHLIB_MAJOR=	1
64e07a41bSPoul-Henning Kamp
78a349ed8SPoul-Henning KampLIB=		bsdxml
84e07a41bSPoul-Henning Kamp
98a349ed8SPoul-Henning KampSRCS=		xmlparse.c xmlrole.c xmltok.c
108a349ed8SPoul-Henning KampINCS=		bsdxml.h
118a349ed8SPoul-Henning KampMAN=		libbsdxml.3
124e07a41bSPoul-Henning Kamp
134e07a41bSPoul-Henning Kamp.PATH:		${EXPAT}/lib
144e07a41bSPoul-Henning Kamp
154e07a41bSPoul-Henning KampCFLAGS += 	-I${EXPAT}/lib -I${EXPAT} -I${.CURDIR}
168a349ed8SPoul-Henning KampCLEANFILES+=	bsdxml.h
174e07a41bSPoul-Henning Kamp
188a349ed8SPoul-Henning Kamp#
198a349ed8SPoul-Henning Kamp# OK, so it is not entirely unadultered: we ammend the COPYING
208a349ed8SPoul-Henning Kamp# to point people to the right place, get rid of some VMS stuff
218a349ed8SPoul-Henning Kamp# and use FreeBSD style indempotency #ifndefs.
228a349ed8SPoul-Henning Kamp#
238a349ed8SPoul-Henning Kampbsdxml.h:	expat.h
248a349ed8SPoul-Henning Kamp	unifdef -U__VMS < ${.ALLSRC} | \
258a349ed8SPoul-Henning Kamp	sed -e 's/XmlParse_INCLUDED/_BSD_XML_H_/' \
268a349ed8SPoul-Henning Kamp	    -e 's/COPYING/src\/contrib\/expat\/COPYING/' \
278a349ed8SPoul-Henning Kamp		> ${.TARGET}
284e07a41bSPoul-Henning Kamp
294e07a41bSPoul-Henning Kamp.include <bsd.lib.mk>
308a349ed8SPoul-Henning Kamp
31