1996-06-17 12:26:06 +00:00
|
|
|
LIB= ftpio
|
1996-06-26 20:31:11 +00:00
|
|
|
CFLAGS+= -I${.CURDIR} -Wall
|
1996-08-21 01:12:11 +00:00
|
|
|
SRCS= ftpio.c ftperr.c
|
1996-06-17 12:26:06 +00:00
|
|
|
MAN3= ftpio.3
|
1996-08-21 01:12:11 +00:00
|
|
|
CLEANFILES+= ftperr.c
|
1996-06-17 12:26:06 +00:00
|
|
|
|
1996-11-14 06:59:41 +00:00
|
|
|
SHLIB_MAJOR= 4
|
1996-09-19 17:28:34 +00:00
|
|
|
SHLIB_MINOR= 0
|
|
|
|
|
1996-06-17 12:26:06 +00:00
|
|
|
beforeinstall:
|
1996-08-30 01:51:09 +00:00
|
|
|
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/ftpio.h \
|
|
|
|
${DESTDIR}/usr/include
|
1996-06-17 12:26:06 +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>
|