- New function Buf_Append(), which is given a pointer to a string to
[dragonfly.git] / lib / libftpio / Makefile
1 # $FreeBSD: src/lib/libftpio/Makefile,v 1.9.2.2 2001/04/25 10:04:30 ru Exp $
2 # $DragonFly: src/lib/libftpio/Makefile,v 1.3 2004/08/16 12:59:21 joerg Exp $
3
4 LIB=            ftpio
5 SHLIB_MAJOR=    5
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 WARNS?=         6
14
15 ftperr.c:       ftp.errors
16         @echo '#include <stdio.h>' > ${.TARGET}
17         @echo '#include "ftpio.h"' >> ${.TARGET}
18         @echo "struct ftperr ftpErrList[] = {" \ >>  ${.TARGET}
19         @cat ${.ALLSRC} \
20           | grep -v ^# \
21           | sort \
22           | while read NUM STRING; do \
23             echo "  { $${NUM}, \"$${STRING}\" },"; \
24           done >> ${.TARGET}
25         @echo "};" >> ${.TARGET}
26         @echo -n "int const ftpErrListLength = " >> ${.TARGET}
27         @echo "sizeof(ftpErrList) / sizeof(*ftpErrList);" >> ${.TARGET}
28
29 .include <bsd.lib.mk>