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.8 2005/09/06 18:55:21 dillon Exp $
8 SRCS
= fetch.c common.c ftp.c http.c file.c \
12 CLEANFILES
= ftperr.h httperr.h
14 .if
!defined
(NO_CRYPT
) && !defined
(NO_OPENSSL
)
16 DPADD
= ${LIBSSL} ${LIBCRYPTO}
23 @echo
"static struct fetcherr _ftp_errlist[] = {" > ${.TARGET
}
27 | while read NUM CAT STRING
; do \
28 echo
" { $${NUM}, FETCH_$${CAT}, \"$${STRING}\" },"; \
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
}
38 | while read NUM CAT STRING
; do \
39 echo
" { $${NUM}, FETCH_$${CAT}, \"$${STRING}\" },"; \
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