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