1999-09-29 15:18:46 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
1996-06-17 12:26:06 +00:00
|
|
|
LIB= ftpio
|
2005-07-22 17:19:05 +00:00
|
|
|
SHLIB_MAJOR= 6
|
1999-10-03 10:40:11 +00:00
|
|
|
|
1996-08-21 01:12:11 +00:00
|
|
|
SRCS= ftpio.c ftperr.c
|
2000-01-14 07:57:47 +00:00
|
|
|
INCS= ftpio.h
|
1999-10-03 10:40:11 +00:00
|
|
|
CFLAGS+= -I${.CURDIR} -Wall
|
2000-07-05 19:34:43 +00:00
|
|
|
CFLAGS+= -DINET6
|
2001-03-27 17:27:19 +00:00
|
|
|
MAN= ftpio.3
|
1999-10-03 10:40:11 +00:00
|
|
|
CLEANFILES= ftperr.c
|
1996-09-19 17:28:34 +00:00
|
|
|
|
1996-08-21 01:12:11 +00:00
|
|
|
ftperr.c: ftp.errors
|
|
|
|
@echo '#include <stdio.h>' > ${.TARGET}
|
|
|
|
@echo '#include "ftpio.h"' >> ${.TARGET}
|
|
|
|
@echo "struct ftperr ftpErrList[] = {" \ >> ${.TARGET}
|
|
|
|
@cat ${.ALLSRC} \
|
|
|
|
| grep -v ^# \
|
|
|
|
| sort \
|
|
|
|
| while read NUM STRING; do \
|
|
|
|
echo " { $${NUM}, \"$${STRING}\" },"; \
|
|
|
|
done >> ${.TARGET}
|
|
|
|
@echo "};" >> ${.TARGET}
|
|
|
|
@echo -n "int const ftpErrListLength = " >> ${.TARGET}
|
|
|
|
@echo "sizeof(ftpErrList) / sizeof(*ftpErrList);" >> ${.TARGET}
|
|
|
|
|
1996-06-17 12:26:06 +00:00
|
|
|
.include <bsd.lib.mk>
|