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