kqueue: Knote should not be accessed once the KN_PROCESSING is cleared
[dragonfly.git] / lib / libfetch / Makefile
blob48a705460ba267c9cf7be962e00321693a018a31
1 # $FreeBSD: src/lib/libfetch/Makefile,v 1.51 2007/12/19 05:10:07 ru Exp $
3 LIB= fetch
4 CFLAGS+= -I.
5 CFLAGS+= -DINET6 -DFTP_COMBINE_CWDS
6 SRCS= fetch.c common.c ftp.c http.c file.c \
7 ftperr.h httperr.h
8 INCS= fetch.h
9 MAN= fetch.3
10 CLEANFILES= ftperr.h httperr.h
12 .if !defined(NO_CRYPT) && !defined(NO_OPENSSL)
13 CFLAGS+= -DWITH_SSL
14 DPADD= ${LIBSSL} ${LIBCRYPTO}
15 LDADD= -lssl -lcrypto
16 .else
17 DPADD= ${LIBMD}
18 LDADD= -lmd
19 .endif
21 SHLIB_MAJOR= 4
23 ftperr.h: ftp.errors ${.CURDIR}/Makefile
24 @echo "static struct fetcherr ftp_errlist[] = {" > ${.TARGET}
25 @cat ${.CURDIR}/ftp.errors \
26 | grep -v ^# \
27 | sort \
28 | while read NUM CAT STRING; do \
29 echo " { $${NUM}, FETCH_$${CAT}, \"$${STRING}\" },"; \
30 done >> ${.TARGET}
31 @echo " { -1, FETCH_UNKNOWN, \"Unknown FTP error\" }" >> ${.TARGET}
32 @echo "};" >> ${.TARGET}
34 httperr.h: http.errors ${.CURDIR}/Makefile
35 @echo "static struct fetcherr http_errlist[] = {" > ${.TARGET}
36 @cat ${.CURDIR}/http.errors \
37 | grep -v ^# \
38 | sort \
39 | while read NUM CAT STRING; do \
40 echo " { $${NUM}, FETCH_$${CAT}, \"$${STRING}\" },"; \
41 done >> ${.TARGET}
42 @echo " { -1, FETCH_UNKNOWN, \"Unknown HTTP error\" }" >> ${.TARGET}
43 @echo "};" >> ${.TARGET}
45 MLINKS+= fetch.3 fetchFreeURL.3
46 MLINKS+= fetch.3 fetchGet.3
47 MLINKS+= fetch.3 fetchGetFTP.3
48 MLINKS+= fetch.3 fetchGetFile.3
49 MLINKS+= fetch.3 fetchGetHTTP.3
50 MLINKS+= fetch.3 fetchGetURL.3
51 MLINKS+= fetch.3 fetchList.3
52 MLINKS+= fetch.3 fetchListFTP.3
53 MLINKS+= fetch.3 fetchListFile.3
54 MLINKS+= fetch.3 fetchListHTTP.3
55 MLINKS+= fetch.3 fetchListURL.3
56 MLINKS+= fetch.3 fetchMakeURL.3
57 MLINKS+= fetch.3 fetchParseURL.3
58 MLINKS+= fetch.3 fetchPut.3
59 MLINKS+= fetch.3 fetchPutFTP.3
60 MLINKS+= fetch.3 fetchPutFile.3
61 MLINKS+= fetch.3 fetchPutHTTP.3
62 MLINKS+= fetch.3 fetchPutURL.3
63 MLINKS+= fetch.3 fetchStat.3
64 MLINKS+= fetch.3 fetchStatFTP.3
65 MLINKS+= fetch.3 fetchStatFile.3
66 MLINKS+= fetch.3 fetchStatHTTP.3
67 MLINKS+= fetch.3 fetchStatURL.3
68 MLINKS+= fetch.3 fetchXGet.3
69 MLINKS+= fetch.3 fetchXGetFTP.3
70 MLINKS+= fetch.3 fetchXGetFile.3
71 MLINKS+= fetch.3 fetchXGetHTTP.3
72 MLINKS+= fetch.3 fetchXGetURL.3
74 .include <bsd.lib.mk>