xref: /dragonfly/lib/libftpio/Makefile (revision 86d7f5d3)
1# $FreeBSD: src/lib/libftpio/Makefile,v 1.9.2.2 2001/04/25 10:04:30 ru Exp $
2
3LIB=		ftpio
4SHLIB_MAJOR=	7
5
6SRCS=		ftpio.c ftperr.c
7INCS=		ftpio.h
8CFLAGS+=	-I${.CURDIR}
9CFLAGS+=	-DINET6
10MAN=		ftpio.3
11MLINKS+=	ftpio.3 ftpAscii.3
12MLINKS+=	ftpio.3 ftpBinary.3
13MLINKS+=	ftpio.3 ftpChdir.3
14MLINKS+=	ftpio.3 ftpErrno.3
15MLINKS+=	ftpio.3 ftpErrString.3
16MLINKS+=	ftpio.3 ftpGet.3
17MLINKS+=	ftpio.3 ftpGetModtime.3
18MLINKS+=	ftpio.3 ftpGetSize.3
19MLINKS+=	ftpio.3 ftpGetURL.3
20MLINKS+=	ftpio.3 ftpGetURLAf.3
21MLINKS+=	ftpio.3 ftpLogin.3
22MLINKS+=	ftpio.3 ftpLoginAf.3
23MLINKS+=	ftpio.3 ftpPassive.3
24MLINKS+=	ftpio.3 ftpPut.3
25MLINKS+=	ftpio.3 ftpPutURL.3
26MLINKS+=	ftpio.3 ftpPutURLAf.3
27MLINKS+=	ftpio.3 ftpVerbose.3
28CLEANFILES=	ftperr.c
29
30ftperr.c:	ftp.errors
31	@echo '#include <stdio.h>' > ${.TARGET}
32	@echo '#include "ftpio.h"' >> ${.TARGET}
33	@echo "struct ftperr ftpErrList[] = {" \ >>  ${.TARGET}
34	@cat ${.ALLSRC} \
35	  | grep -v ^# \
36	  | sort \
37	  | while read NUM STRING; do \
38	    echo "  { $${NUM}, \"$${STRING}\" },"; \
39	  done >> ${.TARGET}
40	@echo "};" >> ${.TARGET}
41	@echo -n "int const ftpErrListLength = " >> ${.TARGET}
42	@echo "sizeof(ftpErrList) / sizeof(*ftpErrList);" >> ${.TARGET}
43
44.include <bsd.lib.mk>
45