freebsd-dev/lib/libexpat/Makefile
Poul-Henning Kamp 8a349ed8fe Ok, concensus was to install libexpat under a "private brandname", and after
some deliberation the name "libbsdxml" was chosen since it conveys the two
most important attributes:  "Private to FreeBSD" and "XML".

Add a skeleton man-page to give the credit and point for further
documentation.  (If somebody wants to write a true mdoc manpage for
this I am sure both the eXpat people and I will be grateful).

(Still not connected to the build)
2002-10-04 11:20:18 +00:00

31 lines
615 B
Makefile

# $FreeBSD$
EXPAT= ${.CURDIR}/../../contrib/expat
SHLIB_MAJOR= 1
LIB= bsdxml
SRCS= xmlparse.c xmlrole.c xmltok.c
INCS= bsdxml.h
MAN= libbsdxml.3
.PATH: ${EXPAT}/lib
CFLAGS += -I${EXPAT}/lib -I${EXPAT} -I${.CURDIR}
CLEANFILES+= bsdxml.h
#
# 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.
#
bsdxml.h: expat.h
unifdef -U__VMS < ${.ALLSRC} | \
sed -e 's/XmlParse_INCLUDED/_BSD_XML_H_/' \
-e 's/COPYING/src\/contrib\/expat\/COPYING/' \
> ${.TARGET}
.include <bsd.lib.mk>