Correct a bug in the -S truncation mode where the mode was not being passed
[dragonfly/vkernel-mp.git] / lib / libftpio / Makefile
blob36577ef14e87af44350f0726eb4ccad39e8ef610
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.5 2005/08/06 01:43:19 swildner Exp $
4 LIB= ftpio
5 SHLIB_MAJOR= 7
7 SRCS= ftpio.c ftperr.c
8 INCS= ftpio.h
9 CFLAGS+= -I${.CURDIR} -Wall
10 CFLAGS+= -DINET6
11 MAN= ftpio.3
12 MLINKS= ftpio.3 ftpBinary.3
13 MLINKS+= ftpio.3 ftpChdir.3
14 MLINKS+= ftpio.3 ftpErrno.3
15 MLINKS+= ftpio.3 ftpGet.3
16 MLINKS+= ftpio.3 ftpGetModtime.3
17 MLINKS+= ftpio.3 ftpGetSize.3
18 MLINKS+= ftpio.3 ftpGetURL.3
19 MLINKS+= ftpio.3 ftpGetURLAf.3
20 MLINKS+= ftpio.3 ftpLogin.3
21 MLINKS+= ftpio.3 ftpLoginAf.3
22 MLINKS+= ftpio.3 ftpPassive.3
23 MLINKS+= ftpio.3 ftpPut.3
24 MLINKS+= ftpio.3 ftpPutURL.3
25 MLINKS+= ftpio.3 ftpPutURLAf.3
26 MLINKS+= ftpio.3 ftpVerbose.3
27 CLEANFILES= ftperr.c
29 WARNS?= 6
31 ftperr.c: ftp.errors
32 @echo '#include <stdio.h>' > ${.TARGET}
33 @echo '#include "ftpio.h"' >> ${.TARGET}
34 @echo "struct ftperr ftpErrList[] = {" \ >> ${.TARGET}
35 @cat ${.ALLSRC} \
36 | grep -v ^# \
37 | sort \
38 | while read NUM STRING; do \
39 echo " { $${NUM}, \"$${STRING}\" },"; \
40 done >> ${.TARGET}
41 @echo "};" >> ${.TARGET}
42 @echo -n "int const ftpErrListLength = " >> ${.TARGET}
43 @echo "sizeof(ftpErrList) / sizeof(*ftpErrList);" >> ${.TARGET}
45 .include <bsd.lib.mk>