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