get mxge to build, stage 29/many
[dragonfly.git] / lib / libfetch / Makefile
blobebb99ea4d0bd72c4f0844f1dc24dea30f7c83e40
1 # $FreeBSD: src/lib/libfetch/Makefile,v 1.51 2007/12/19 05:10:07 ru 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 ${.CURDIR}/Makefile
23 @echo "static struct fetcherr ftp_errlist[] = {" > ${.TARGET}
24 @cat ${.CURDIR}/ftp.errors \
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 ${.CURDIR}/Makefile
34 @echo "static struct fetcherr http_errlist[] = {" > ${.TARGET}
35 @cat ${.CURDIR}/http.errors \
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>