1# $FreeBSD: src/lib/libftpio/Makefile,v 1.9.2.2 2001/04/25 10:04:30 ru Exp $ 2# $DragonFly: src/lib/libftpio/Makefile,v 1.7 2008/10/28 16:54:09 swildner Exp $ 3 4LIB= ftpio 5SHLIB_MAJOR= 7 6 7SRCS= ftpio.c ftperr.c 8INCS= ftpio.h 9CFLAGS+= -I${.CURDIR} 10CFLAGS+= -DINET6 11MAN= ftpio.3 12MLINKS+= ftpio.3 ftpAscii.3 13MLINKS+= ftpio.3 ftpBinary.3 14MLINKS+= ftpio.3 ftpChdir.3 15MLINKS+= ftpio.3 ftpErrno.3 16MLINKS+= ftpio.3 ftpErrString.3 17MLINKS+= ftpio.3 ftpGet.3 18MLINKS+= ftpio.3 ftpGetModtime.3 19MLINKS+= ftpio.3 ftpGetSize.3 20MLINKS+= ftpio.3 ftpGetURL.3 21MLINKS+= ftpio.3 ftpGetURLAf.3 22MLINKS+= ftpio.3 ftpLogin.3 23MLINKS+= ftpio.3 ftpLoginAf.3 24MLINKS+= ftpio.3 ftpPassive.3 25MLINKS+= ftpio.3 ftpPut.3 26MLINKS+= ftpio.3 ftpPutURL.3 27MLINKS+= ftpio.3 ftpPutURLAf.3 28MLINKS+= ftpio.3 ftpVerbose.3 29CLEANFILES= ftperr.c 30 31WARNS?= 6 32 33ftperr.c: ftp.errors 34 @echo '#include <stdio.h>' > ${.TARGET} 35 @echo '#include "ftpio.h"' >> ${.TARGET} 36 @echo "struct ftperr ftpErrList[] = {" \ >> ${.TARGET} 37 @cat ${.ALLSRC} \ 38 | grep -v ^# \ 39 | sort \ 40 | while read NUM STRING; do \ 41 echo " { $${NUM}, \"$${STRING}\" },"; \ 42 done >> ${.TARGET} 43 @echo "};" >> ${.TARGET} 44 @echo -n "int const ftpErrListLength = " >> ${.TARGET} 45 @echo "sizeof(ftpErrList) / sizeof(*ftpErrList);" >> ${.TARGET} 46 47.include <bsd.lib.mk> 48