1 # $FreeBSD: src/lib/libfetch/Makefile,v 1.49 2007/05/24 20:28:14 des Exp $
7 .if
${OPSYS} == "NetBSD"
10 CPPFLAGS
+=-I
${.OBJDIR
}
15 SRCS
= fetch.c common.c ftp.c http.c file.c \
19 CLEANFILES
= ftperr.h httperr.h
21 .if
${MK_INET6_SUPPORT} != "no"
25 .if
${MK_OPENSSL} != "no"
27 DPADD
= ${LIBSSL} ${LIBCRYPTO}
31 CFLAGS
+= -DFTP_COMBINE_CWDS
39 @echo
"static struct fetcherr _ftp_errlist[] = {" > ${.TARGET
}
43 | while read NUM CAT STRING
; do \
44 echo
" { $${NUM}, FETCH_$${CAT}, \"$${STRING}\" },"; \
46 @echo
" { -1, FETCH_UNKNOWN, \"Unknown FTP error\" }" >> ${.TARGET
}
47 @echo
"};" >> ${.TARGET
}
49 httperr.h
: http.errors
50 @echo
"static struct fetcherr _http_errlist[] = {" > ${.TARGET
}
54 | while read NUM CAT STRING
; do \
55 echo
" { $${NUM}, FETCH_$${CAT}, \"$${STRING}\" },"; \
57 @echo
" { -1, FETCH_UNKNOWN, \"Unknown HTTP error\" }" >> ${.TARGET
}
58 @echo
"};" >> ${.TARGET
}
60 MLINKS
+= fetch
.3 fetchFreeURL
.3
61 MLINKS
+= fetch
.3 fetchGet
.3
62 MLINKS
+= fetch
.3 fetchGetFTP
.3
63 MLINKS
+= fetch
.3 fetchGetFile
.3
64 MLINKS
+= fetch
.3 fetchGetHTTP
.3
65 MLINKS
+= fetch
.3 fetchGetURL
.3
66 MLINKS
+= fetch
.3 fetchList
.3
67 MLINKS
+= fetch
.3 fetchListFTP
.3
68 MLINKS
+= fetch
.3 fetchListFile
.3
69 MLINKS
+= fetch
.3 fetchListHTTP
.3
70 MLINKS
+= fetch
.3 fetchListURL
.3
71 MLINKS
+= fetch
.3 fetchMakeURL
.3
72 MLINKS
+= fetch
.3 fetchParseURL
.3
73 MLINKS
+= fetch
.3 fetchPut
.3
74 MLINKS
+= fetch
.3 fetchPutFTP
.3
75 MLINKS
+= fetch
.3 fetchPutFile
.3
76 MLINKS
+= fetch
.3 fetchPutHTTP
.3
77 MLINKS
+= fetch
.3 fetchPutURL
.3
78 MLINKS
+= fetch
.3 fetchStat
.3
79 MLINKS
+= fetch
.3 fetchStatFTP
.3
80 MLINKS
+= fetch
.3 fetchStatFile
.3
81 MLINKS
+= fetch
.3 fetchStatHTTP
.3
82 MLINKS
+= fetch
.3 fetchStatURL
.3
83 MLINKS
+= fetch
.3 fetchXGet
.3
84 MLINKS
+= fetch
.3 fetchXGetFTP
.3
85 MLINKS
+= fetch
.3 fetchXGetFile
.3
86 MLINKS
+= fetch
.3 fetchXGetHTTP
.3
87 MLINKS
+= fetch
.3 fetchXGetURL
.3