]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/libexpat/Makefile
Merge branch 'releng/11.3' into releng-CDN/11.3
[FreeBSD/FreeBSD.git] / lib / libexpat / Makefile
1 # $FreeBSD$
2
3 PACKAGE=lib${LIB}
4 EXPAT=          ${SRCTOP}/contrib/expat
5
6 LIB=            bsdxml
7 SHLIBDIR?=      /lib
8 SHLIB_MAJOR=    4
9 SRCS=           xmlparse.c xmlrole.c xmltok.c
10 INCS=           bsdxml.h bsdxml_external.h
11 MAN=            libbsdxml.3
12
13 .PATH:          ${EXPAT}/lib
14
15 CFLAGS+=        -I${.CURDIR} -DHAVE_EXPAT_CONFIG_H
16 CLEANFILES=     bsdxml.h bsdxml_external.h
17
18 WARNS?=         2
19
20 # OK, so it is not entirely unadulterated: we amend the COPYING to
21 # point people to the right place, get rid of some VMS stuff and use
22 # FreeBSD-style include guards.  We also want to point it at the new
23 # bsdxml_external.h rather than the old expat_external.h file.
24 bsdxml.h: expat.h
25         unifdef -U__VMS < ${.ALLSRC} | \
26         sed -e 's/XmlParse_INCLUDED/_BSD_XML_H_/' \
27             -e 's/COPYING/src\/contrib\/expat\/COPYING/' \
28             -e 's/expat_external/bsdxml_external/' \
29                 > ${.TARGET}
30
31 bsdxml_external.h: expat_external.h
32         ${CP} ${.ALLSRC} ${.TARGET}
33
34 .include <bsd.lib.mk>