mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 06:52:45 +00:00
645cdc6be5
We don't need bumping it in this time.
29 lines
658 B
Makefile
29 lines
658 B
Makefile
# $FreeBSD$
|
|
|
|
LIB= ftpio
|
|
SHLIB_MAJOR= 5
|
|
SHLIB_MINOR= 0
|
|
|
|
SRCS= ftpio.c ftperr.c
|
|
INCS= ftpio.h
|
|
CFLAGS+= -I${.CURDIR} -Wall
|
|
CFLAGS+= -DINET6
|
|
MAN3= ftpio.3
|
|
CLEANFILES= ftperr.c
|
|
|
|
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}
|
|
|
|
.include <bsd.lib.mk>
|