Deleted Added
full compact
Makefile (195767) Makefile (201381)
1# $FreeBSD: head/lib/libexpat/Makefile 195767 2009-07-19 17:25:24Z kensmith $
1# $FreeBSD: head/lib/libexpat/Makefile 201381 2010-01-02 09:58:07Z ed $
2
3EXPAT= ${.CURDIR}/../../contrib/expat
4
5LIB= bsdxml
6SHLIBDIR?= /lib
7SHLIB_MAJOR= 4
8SRCS= xmlparse.c xmlrole.c xmltok.c
9INCS= bsdxml.h bsdxml_external.h
10MAN= libbsdxml.3
11
12.PATH: ${EXPAT}/lib
13
14CFLAGS+= -I${.CURDIR} -DHAVE_EXPAT_CONFIG_H
15CLEANFILES= bsdxml.h bsdxml_external.h
16
2
3EXPAT= ${.CURDIR}/../../contrib/expat
4
5LIB= bsdxml
6SHLIBDIR?= /lib
7SHLIB_MAJOR= 4
8SRCS= xmlparse.c xmlrole.c xmltok.c
9INCS= bsdxml.h bsdxml_external.h
10MAN= libbsdxml.3
11
12.PATH: ${EXPAT}/lib
13
14CFLAGS+= -I${.CURDIR} -DHAVE_EXPAT_CONFIG_H
15CLEANFILES= bsdxml.h bsdxml_external.h
16
17WARNS?= 2
18
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#
23bsdxml.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
30bsdxml_external.h: expat_external.h
31 cp ${.ALLSRC} ${.TARGET}
32
33.include <bsd.lib.mk>
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.
24#
25bsdxml.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}
31
32bsdxml_external.h: expat_external.h
33 cp ${.ALLSRC} ${.TARGET}
34
35.include <bsd.lib.mk>