]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/libftpio/Makefile
This commit was generated by cvs2svn to compensate for changes in r100616,
[FreeBSD/FreeBSD.git] / lib / libftpio / Makefile
1 # $FreeBSD$
2
3 LIB=            ftpio
4 SHLIB_MAJOR=    5
5 SHLIB_MINOR=    0
6
7 SRCS=           ftpio.c ftperr.c
8 INCS=           ftpio.h
9 CFLAGS+=        -I${.CURDIR} -Wall
10 CFLAGS+=        -DINET6
11 MAN=            ftpio.3
12 CLEANFILES=     ftperr.c
13
14 ftperr.c:       ftp.errors
15         @echo '#include <stdio.h>' > ${.TARGET}
16         @echo '#include "ftpio.h"' >> ${.TARGET}
17         @echo "struct ftperr ftpErrList[] = {" \ >>  ${.TARGET}
18         @cat ${.ALLSRC} \
19           | grep -v ^# \
20           | sort \
21           | while read NUM STRING; do \
22             echo "  { $${NUM}, \"$${STRING}\" },"; \
23           done >> ${.TARGET}
24         @echo "};" >> ${.TARGET}
25         @echo -n "int const ftpErrListLength = " >> ${.TARGET}
26         @echo "sizeof(ftpErrList) / sizeof(*ftpErrList);" >> ${.TARGET}
27
28 .include <bsd.lib.mk>