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