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