msync.2: Use .Dv
[dragonfly.git] / lib / libexpat / Makefile
blob9f07c0e0d2ae54daf4480a7e0c44fb932ac23b9d
1 # $FreeBSD: src/lib/libexpat/Makefile,v 1.9 2010/01/02 09:58:07 ed Exp $
3 EXPAT= ${.CURDIR}/../../contrib/expat
5 LIB= bsdxml
6 SHLIB_MAJOR= 4
7 SHLIBDIR?= /lib
8 SRCS= xmlparse.c xmlrole.c xmltok.c
9 INCS= bsdxml.h bsdxml_external.h
10 MAN= libbsdxml.3
12 .PATH: ${EXPAT}/lib
14 CFLAGS+= -I${.CURDIR} -DHAVE_EXPAT_CONFIG_H
15 CLEANFILES= bsdxml.h bsdxml_external.h
17 WARNS?= 2
19 # OK, so it is not entirely unadultered: we ammend the COPYING
20 # to point people to the right place, get rid of some VMS stuff
21 # and use FreeBSD style indempotency #ifndefs. We also want to
22 # point it at the new bsdxml_external.h rather than the old
23 # expat_external.h file.
25 bsdxml.h: expat.h
26 unifdef -U__VMS < ${.ALLSRC} | \
27 sed -e 's/XmlParse_INCLUDED/_BSD_XML_H_/' \
28 -e 's/COPYING/src\/contrib\/expat\/COPYING/' \
29 -e 's/expat_external/bsdxml_external/' \
30 > ${.TARGET}
32 bsdxml_external.h: expat_external.h
33 cp ${.ALLSRC} ${.TARGET}
35 .include <bsd.lib.mk>