config root man

Current Path : /usr/src/lib/libexpat/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/src/lib/libexpat/Makefile

# $FreeBSD: release/9.1.0/lib/libexpat/Makefile 211243 2010-08-12 20:46:49Z will $

EXPAT=		${.CURDIR}/../../contrib/expat

LIB=		bsdxml
SHLIBDIR?=	/lib
SHLIB_MAJOR=	4
SRCS=		xmlparse.c xmlrole.c xmltok.c
INCS=		bsdxml.h bsdxml_external.h
MAN=		libbsdxml.3

.PATH:		${EXPAT}/lib

CFLAGS+= 	-I${.CURDIR} -DHAVE_EXPAT_CONFIG_H
CLEANFILES=	bsdxml.h bsdxml_external.h

WARNS?=		2

# 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. We also want to
# point it at the new bsdxml_external.h rather than the old
# expat_external.h file.
#
bsdxml.h: expat.h
	unifdef -U__VMS < ${.ALLSRC} | \
	sed -e 's/XmlParse_INCLUDED/_BSD_XML_H_/' \
	    -e 's/COPYING/src\/contrib\/expat\/COPYING/' \
	    -e 's/expat_external/bsdxml_external/' \
		> ${.TARGET}

bsdxml_external.h: expat_external.h
	cp -f ${.ALLSRC} ${.TARGET}

.include <bsd.lib.mk>

Man Man