xref: /freebsd/lib/libexpat/Makefile (revision 41d8423f714369ea23708399e02792045f9c3f56)
14e07a41bSPoul-Henning Kamp# $FreeBSD$
24e07a41bSPoul-Henning Kamp
34e07a41bSPoul-Henning KampEXPAT=		${.CURDIR}/../../contrib/expat
44e07a41bSPoul-Henning Kamp
58a349ed8SPoul-Henning KampLIB=		bsdxml
641d8423fSGordon TetlowSHLIBDIR?=	/lib
7a1c8598eSRuslan ErmilovSHLIB_MAJOR=	1
88a349ed8SPoul-Henning KampSRCS=		xmlparse.c xmlrole.c xmltok.c
98a349ed8SPoul-Henning KampINCS=		bsdxml.h
108a349ed8SPoul-Henning KampMAN=		libbsdxml.3
114e07a41bSPoul-Henning Kamp
124e07a41bSPoul-Henning Kamp.PATH:		${EXPAT}/lib
134e07a41bSPoul-Henning Kamp
14a1c8598eSRuslan ErmilovCFLAGS+= 	-I${.CURDIR}
15a1c8598eSRuslan ErmilovCLEANFILES=	bsdxml.h
164e07a41bSPoul-Henning Kamp
178a349ed8SPoul-Henning Kamp# OK, so it is not entirely unadultered: we ammend the COPYING
188a349ed8SPoul-Henning Kamp# to point people to the right place, get rid of some VMS stuff
198a349ed8SPoul-Henning Kamp# and use FreeBSD style indempotency #ifndefs.
208a349ed8SPoul-Henning Kamp#
218a349ed8SPoul-Henning Kampbsdxml.h: expat.h
228a349ed8SPoul-Henning Kamp	unifdef -U__VMS < ${.ALLSRC} | \
238a349ed8SPoul-Henning Kamp	sed -e 's/XmlParse_INCLUDED/_BSD_XML_H_/' \
248a349ed8SPoul-Henning Kamp	    -e 's/COPYING/src\/contrib\/expat\/COPYING/' \
258a349ed8SPoul-Henning Kamp		> ${.TARGET}
264e07a41bSPoul-Henning Kamp
274e07a41bSPoul-Henning Kamp.include <bsd.lib.mk>
28