libevtr: Add YY_NO_INPUT to ktrfmt.l and regenerate (silences gcc44 warning).
[dragonfly.git] / lib / libexpat / Makefile
1 # $FreeBSD: src/lib/libexpat/Makefile,v 1.9 2010/01/02 09:58:07 ed Exp $
2
3 EXPAT=          ${.CURDIR}/../../contrib/expat
4
5 LIB=            bsdxml
6 SHLIB_MAJOR=    4
7 SRCS=           xmlparse.c xmlrole.c xmltok.c
8 INCS=           bsdxml.h bsdxml_external.h
9 MAN=            libbsdxml.3
10
11 .PATH:          ${EXPAT}/lib
12
13 CFLAGS+=        -I${.CURDIR} -DHAVE_EXPAT_CONFIG_H
14 CLEANFILES=     bsdxml.h bsdxml_external.h
15
16 WARNS?=         2
17
18 # OK, so it is not entirely unadultered: we ammend the COPYING
19 # to point people to the right place, get rid of some VMS stuff
20 # and use FreeBSD style indempotency #ifndefs. We also want to
21 # point it at the new bsdxml_external.h rather than the old
22 # expat_external.h file.
23 #
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>