]> CyberLeo.Net >> Repos - FreeBSD/releng/7.2.git/blob - lib/libexpat/Makefile
Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.
[FreeBSD/releng/7.2.git] / lib / libexpat / Makefile
1 # $FreeBSD$
2
3 EXPAT=          ${.CURDIR}/../../contrib/expat
4
5 LIB=            bsdxml
6 SHLIBDIR?=      /lib
7 SHLIB_MAJOR=    3
8 SRCS=           xmlparse.c xmlrole.c xmltok.c
9 INCS=           bsdxml.h
10 MAN=            libbsdxml.3
11
12 .PATH:          ${EXPAT}/lib
13
14 CFLAGS+=        -I${.CURDIR}
15 CLEANFILES=     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 #
21 bsdxml.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>