1# $NetBSD: Makefile,v 1.8 2011/08/17 09:20:14 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 21LDADD= -lssl -lcrypto 22 23LIBDPLIBS+= ssl ${NETBSDSRCDIR}/crypto/external/bsd/openssl/lib/libssl \ 24 crypto ${NETBSDSRCDIR}/crypto/external/bsd/openssl/lib/libcrypto 25.endif 26 27CLEANFILES+= ftperr.h httperr.h 28 29.PATH: ${LIBFETCHDIR} 30 31ftperr.h: ${LIBFETCHDIR}/ftp.errors ${LIBFETCHDIR}/errlist.sh 32 ${HOST_SH} ${LIBFETCHDIR}/errlist.sh ftp_errlist FTP \ 33 ${LIBFETCHDIR}/ftp.errors > ${.TARGET} 34 35httperr.h: ${LIBFETCHDIR}/http.errors ${LIBFETCHDIR}/errlist.sh 36 ${HOST_SH} ${LIBFETCHDIR}/errlist.sh http_errlist HTTP \ 37 ${LIBFETCHDIR}/http.errors > ${.TARGET} 38 39.include <bsd.lib.mk> 40