2002-10-02 07:35:35 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2002-10-04 15:06:44 +00:00
|
|
|
EXPAT= ${.CURDIR}/../../contrib/expat
|
2002-10-02 07:35:35 +00:00
|
|
|
|
2002-10-04 11:20:18 +00:00
|
|
|
LIB= bsdxml
|
2003-08-17 08:28:46 +00:00
|
|
|
SHLIBDIR?= /lib
|
2007-05-21 02:49:08 +00:00
|
|
|
SHLIB_MAJOR= 3
|
2002-10-04 11:20:18 +00:00
|
|
|
SRCS= xmlparse.c xmlrole.c xmltok.c
|
|
|
|
INCS= bsdxml.h
|
|
|
|
MAN= libbsdxml.3
|
2002-10-02 07:35:35 +00:00
|
|
|
|
2002-10-04 11:20:18 +00:00
|
|
|
.PATH: ${EXPAT}/lib
|
2002-10-02 07:35:35 +00:00
|
|
|
|
2002-10-04 15:06:44 +00:00
|
|
|
CFLAGS+= -I${.CURDIR}
|
|
|
|
CLEANFILES= bsdxml.h
|
2002-10-02 07:35:35 +00:00
|
|
|
|
2002-10-04 11:20:18 +00:00
|
|
|
# OK, so it is not entirely unadultered: we ammend the COPYING
|
|
|
|
# to point people to the right place, get rid of some VMS stuff
|
|
|
|
# and use FreeBSD style indempotency #ifndefs.
|
|
|
|
#
|
2002-10-04 15:06:44 +00:00
|
|
|
bsdxml.h: expat.h
|
2002-10-04 11:20:18 +00:00
|
|
|
unifdef -U__VMS < ${.ALLSRC} | \
|
|
|
|
sed -e 's/XmlParse_INCLUDED/_BSD_XML_H_/' \
|
|
|
|
-e 's/COPYING/src\/contrib\/expat\/COPYING/' \
|
|
|
|
> ${.TARGET}
|
2002-10-02 07:35:35 +00:00
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|