]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - lib/libftpio/Makefile
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / lib / libftpio / Makefile
1 # $FreeBSD$
2
3 .include <bsd.own.mk>
4
5 LIB=            ftpio
6 SHLIB_MAJOR=    8
7
8 SRCS=           ftpio.c ftperr.c
9 INCS=           ftpio.h
10 CFLAGS+=        -I${.CURDIR} -Wall
11 MAN=            ftpio.3
12 CLEANFILES=     ftperr.c
13
14 .if ${MK_INET6_SUPPORT} != "no"
15 CFLAGS+=        -DINET6
16 .endif
17
18 WARNS?=         2
19
20 ftperr.c:       ftp.errors
21         @echo '#include <stdio.h>' > ${.TARGET}
22         @echo '#include "ftpio.h"' >> ${.TARGET}
23         @echo "struct ftperr ftpErrList[] = {" \ >>  ${.TARGET}
24         @cat ${.ALLSRC} \
25           | grep -v ^# \
26           | sort \
27           | while read NUM STRING; do \
28             echo "  { $${NUM}, \"$${STRING}\" },"; \
29           done >> ${.TARGET}
30         @echo "};" >> ${.TARGET}
31         @echo -n "int const ftpErrListLength = " >> ${.TARGET}
32         @echo "sizeof(ftpErrList) / sizeof(*ftpErrList);" >> ${.TARGET}
33
34 .include <bsd.lib.mk>