2008-09-30 23:09:00 +04:00
|
|
|
# $NetBSD
|
|
|
|
|
|
|
|
LIB= fetch
|
|
|
|
SRCS= fetch.c common.c ftp.c http.c file.c
|
|
|
|
DPSRCS= ftperr.h httperr.h
|
|
|
|
INCS= fetch.h
|
|
|
|
INCSDIR= /usr/include
|
|
|
|
MAN= fetch.3
|
|
|
|
CLEANFILES= ftperr.h httperr.h
|
|
|
|
|
|
|
|
.include <bsd.init.mk>
|
|
|
|
|
|
|
|
CPPFLAGS+= -I.
|
|
|
|
CPPFLAGS+= -DNETBSD
|
|
|
|
CPPFLAGS+= -DFTP_COMBINE_CWDS
|
|
|
|
CPPFLAGS+= -DINET6
|
2009-05-28 14:44:29 +04:00
|
|
|
|
|
|
|
.if (${MKCRYPTO} != "no")
|
2008-09-30 23:09:00 +04:00
|
|
|
CPPFLAGS+= -DWITH_SSL
|
|
|
|
|
|
|
|
LDADD= -lssl -lcrypto
|
|
|
|
|
2009-07-20 19:46:51 +04:00
|
|
|
LIBDPLIBS+= ssl ${NETBSDSRCDIR}/crypto/external/bsd/openssl/lib/libssl \
|
|
|
|
crypto ${NETBSDSRCDIR}/crypto/external/bsd/openssl/lib/libcrypto
|
2009-05-28 14:44:29 +04:00
|
|
|
.endif
|
2008-09-30 23:09:00 +04:00
|
|
|
|
|
|
|
CLEANFILES+= ftperr.h httperr.h
|
|
|
|
|
|
|
|
.PATH: ${LIBFETCHDIR}
|
|
|
|
|
|
|
|
ftperr.h: ${LIBFETCHDIR}/ftp.errors ${LIBFETCHDIR}/errlist.sh
|
2008-11-25 08:32:05 +03:00
|
|
|
${HOST_SH} ${LIBFETCHDIR}/errlist.sh ftp_errlist FTP \
|
2008-09-30 23:09:00 +04:00
|
|
|
${LIBFETCHDIR}/ftp.errors > ${.TARGET}
|
|
|
|
|
|
|
|
httperr.h: ${LIBFETCHDIR}/http.errors ${LIBFETCHDIR}/errlist.sh
|
2008-11-25 08:32:05 +03:00
|
|
|
${HOST_SH} ${LIBFETCHDIR}/errlist.sh http_errlist HTTP \
|
2008-09-30 23:09:00 +04:00
|
|
|
${LIBFETCHDIR}/http.errors > ${.TARGET}
|
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|