1999-09-29 16:18:46 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
1996-06-17 13:26:06 +01:00
|
|
|
LIB= ftpio
|
2000-07-06 21:19:02 +01:00
|
|
|
SHLIB_MAJOR= 5
|
1999-10-03 11:40:11 +01:00
|
|
|
SHLIB_MINOR= 0
|
|
|
|
|
1996-08-21 02:12:11 +01:00
|
|
|
SRCS= ftpio.c ftperr.c
|
2000-01-14 07:57:47 +00:00
|
|
|
INCS= ftpio.h
|
1999-10-03 11:40:11 +01:00
|
|
|
CFLAGS+= -I${.CURDIR} -Wall
|
2000-07-05 20:34:43 +01:00
|
|
|
CFLAGS+= -DINET6
|
2001-03-27 18:27:19 +01:00
|
|
|
MAN= ftpio.3
|
1999-10-03 11:40:11 +01:00
|
|
|
CLEANFILES= ftperr.c
|
1996-09-19 18:28:34 +01:00
|
|
|
|
1996-08-21 02:12:11 +01: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 13:26:06 +01:00
|
|
|
.include <bsd.lib.mk>
|