Make ath(4) compilable into the kernel and add it to LINT.
[dragonfly.git] / lib / libfetch / Makefile
blob6358e628142d19eb4e80c01adacc78c9f879e261
1 # $FreeBSD: src/lib/libfetch/Makefile,v 1.14.2.5 2003/01/09 11:50:32 des Exp $
2 # $DragonFly: src/lib/libfetch/Makefile,v 1.9 2007/08/05 21:48:12 swildner Exp $
4 LIB= fetch
5 WARNS?= 6
6 CFLAGS+= -I.
7 CFLAGS+= -DINET6 -DFTP_COMBINE_CWDS
8 SRCS= fetch.c common.c ftp.c http.c file.c \
9 ftperr.h httperr.h
10 INCS= fetch.h
11 MAN= fetch.3
12 CLEANFILES= ftperr.h httperr.h
14 .if !defined(NO_CRYPT) && !defined(NO_OPENSSL)
15 CFLAGS+= -DWITH_SSL
16 DPADD= ${LIBSSL} ${LIBCRYPTO}
17 LDADD= -lssl -lcrypto
18 .endif
20 SHLIB_MAJOR= 4
22 ftperr.h: ftp.errors
23 @echo "static struct fetcherr _ftp_errlist[] = {" > ${.TARGET}
24 @cat ${.ALLSRC} \
25 | grep -v ^# \
26 | sort \
27 | while read NUM CAT STRING; do \
28 echo " { $${NUM}, FETCH_$${CAT}, \"$${STRING}\" },"; \
29 done >> ${.TARGET}
30 @echo " { -1, FETCH_UNKNOWN, \"Unknown FTP error\" }" >> ${.TARGET}
31 @echo "};" >> ${.TARGET}
33 httperr.h: http.errors
34 @echo "static struct fetcherr _http_errlist[] = {" > ${.TARGET}
35 @cat ${.ALLSRC} \
36 | grep -v ^# \
37 | sort \
38 | while read NUM CAT STRING; do \
39 echo " { $${NUM}, FETCH_$${CAT}, \"$${STRING}\" },"; \
40 done >> ${.TARGET}
41 @echo " { -1, FETCH_UNKNOWN, \"Unknown HTTP error\" }" >> ${.TARGET}
42 @echo "};" >> ${.TARGET}
44 MLINKS+= fetch.3 fetchFreeURL.3
45 MLINKS+= fetch.3 fetchGet.3
46 MLINKS+= fetch.3 fetchGetFTP.3
47 MLINKS+= fetch.3 fetchGetFile.3
48 MLINKS+= fetch.3 fetchGetHTTP.3
49 MLINKS+= fetch.3 fetchGetURL.3
50 MLINKS+= fetch.3 fetchList.3
51 MLINKS+= fetch.3 fetchListFTP.3
52 MLINKS+= fetch.3 fetchListFile.3
53 MLINKS+= fetch.3 fetchListHTTP.3
54 MLINKS+= fetch.3 fetchListURL.3
55 MLINKS+= fetch.3 fetchMakeURL.3
56 MLINKS+= fetch.3 fetchParseURL.3
57 MLINKS+= fetch.3 fetchPut.3
58 MLINKS+= fetch.3 fetchPutFTP.3
59 MLINKS+= fetch.3 fetchPutFile.3
60 MLINKS+= fetch.3 fetchPutHTTP.3
61 MLINKS+= fetch.3 fetchPutURL.3
62 MLINKS+= fetch.3 fetchStat.3
63 MLINKS+= fetch.3 fetchStatFTP.3
64 MLINKS+= fetch.3 fetchStatFile.3
65 MLINKS+= fetch.3 fetchStatHTTP.3
66 MLINKS+= fetch.3 fetchStatURL.3
67 MLINKS+= fetch.3 fetchXGet.3
68 MLINKS+= fetch.3 fetchXGetFTP.3
69 MLINKS+= fetch.3 fetchXGetFile.3
70 MLINKS+= fetch.3 fetchXGetHTTP.3
71 MLINKS+= fetch.3 fetchXGetURL.3
73 .include <bsd.lib.mk>