1# $NetBSD: Makefile,v 1.9 2016/01/05 13:07:46 christos Exp $ 2 3LIB= fetch 4SRCS= fetch.c common.c ftp.c http.c file.c 5DPSRCS= ftperr.h httperr.h 6INCS= fetch.h 7INCSDIR= /usr/include 8MAN= fetch.3 9CLEANFILES= ftperr.h httperr.h 10 11.include <bsd.init.mk> 12 13CPPFLAGS+= -I. 14CPPFLAGS+= -DNETBSD 15CPPFLAGS+= -DFTP_COMBINE_CWDS 16CPPFLAGS+= -DINET6 17 18.if (${MKCRYPTO} != "no") 19CPPFLAGS+= -DWITH_SSL 20 21LIBDPLIBS+= ssl ${NETBSDSRCDIR}/crypto/external/bsd/openssl/lib/libssl \ 22 crypto ${NETBSDSRCDIR}/crypto/external/bsd/openssl/lib/libcrypto 23.endif 24 25CLEANFILES+= ftperr.h httperr.h 26 27.PATH: ${LIBFETCHDIR} 28 29ftperr.h: ${LIBFETCHDIR}/ftp.errors ${LIBFETCHDIR}/errlist.sh 30 ${HOST_SH} ${LIBFETCHDIR}/errlist.sh ftp_errlist FTP \ 31 ${LIBFETCHDIR}/ftp.errors > ${.TARGET} 32 33httperr.h: ${LIBFETCHDIR}/http.errors ${LIBFETCHDIR}/errlist.sh 34 ${HOST_SH} ${LIBFETCHDIR}/errlist.sh http_errlist HTTP \ 35 ${LIBFETCHDIR}/http.errors > ${.TARGET} 36 37.include <bsd.lib.mk> 38