]> CyberLeo.Net >> Repos - FreeBSD/releng/8.1.git/blob - lib/libexpat/Makefile
Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.
[FreeBSD/releng/8.1.git] / lib / libexpat / Makefile
1 # $FreeBSD$
2
3 EXPAT=          ${.CURDIR}/../../contrib/expat
4
5 LIB=            bsdxml
6 SHLIBDIR?=      /lib
7 SHLIB_MAJOR=    4
8 SRCS=           xmlparse.c xmlrole.c xmltok.c
9 INCS=           bsdxml.h bsdxml_external.h
10 MAN=            libbsdxml.3
11
12 .PATH:          ${EXPAT}/lib
13
14 CFLAGS+=        -I${.CURDIR} -DHAVE_EXPAT_CONFIG_H
15 CLEANFILES=     bsdxml.h bsdxml_external.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. We also want to
20 # point it at the new bsdxml_external.h rather than the old
21 # expat_external.h file.
22 #
23 bsdxml.h: expat.h
24         unifdef -U__VMS < ${.ALLSRC} | \
25         sed -e 's/XmlParse_INCLUDED/_BSD_XML_H_/' \
26             -e 's/COPYING/src\/contrib\/expat\/COPYING/' \
27             -e 's/expat_external/bsdxml_external/' \
28                 > ${.TARGET}
29
30 bsdxml_external.h: expat_external.h
31         cp ${.ALLSRC} ${.TARGET}
32
33 .include <bsd.lib.mk>