xref: /netbsd/src/external/bsd/fetch/lib/Makefile
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# $NetBSD: Makefile,v 1.18 2023/06/03 09:09:03 lukem 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
18CPPFLAGS+=          -DWITH_SSL
19
20LIBDPLIBS+=         ssl       ${NETBSDSRCDIR}/crypto/external/bsd/${EXTERNAL_OPENSSL_SUBDIR}/lib/libssl \
21                    crypto    ${NETBSDSRCDIR}/crypto/external/bsd/${EXTERNAL_OPENSSL_SUBDIR}/lib/libcrypto
22
23CLEANFILES+=        ftperr.h httperr.h
24
25.PATH: ${LIBFETCHDIR}
26
27ftperr.h: ${LIBFETCHDIR}/ftp.errors ${LIBFETCHDIR}/errlist.sh
28          ${HOST_SH} ${LIBFETCHDIR}/errlist.sh ftp_errlist FTP \
29              ${LIBFETCHDIR}/ftp.errors > ${.TARGET}
30
31httperr.h: ${LIBFETCHDIR}/http.errors ${LIBFETCHDIR}/errlist.sh
32          ${HOST_SH} ${LIBFETCHDIR}/errlist.sh http_errlist HTTP \
33              ${LIBFETCHDIR}/http.errors > ${.TARGET}
34
35COPTS.http.c+=      ${CC_WNO_STRINGOP_TRUNCATION}
36
37.include <bsd.lib.mk>
38

served by {OpenGrok

Last Index Update: Sun Mar 22 17:06:33 EDT 2026