NetBSD/external/bsd/fetch/lib/Makefile

38 lines
994 B
Makefile
Raw Permalink Normal View History

# $NetBSD: Makefile,v 1.18 2023/06/03 09:09:03 lukem Exp $
2008-09-30 23:09:00 +04:00
LIB= fetch
SRCS= fetch.c common.c ftp.c http.c file.c
DPSRCS= ftperr.h httperr.h
INCS= fetch.h
INCSDIR= /usr/include
MAN= fetch.3
CLEANFILES= ftperr.h httperr.h
.include <bsd.init.mk>
CPPFLAGS+= -I.
CPPFLAGS+= -DNETBSD
CPPFLAGS+= -DFTP_COMBINE_CWDS
CPPFLAGS+= -DINET6
2009-05-28 14:44:29 +04:00
2008-09-30 23:09:00 +04:00
CPPFLAGS+= -DWITH_SSL
2018-02-04 06:19:51 +03:00
LIBDPLIBS+= ssl ${NETBSDSRCDIR}/crypto/external/bsd/${EXTERNAL_OPENSSL_SUBDIR}/lib/libssl \
crypto ${NETBSDSRCDIR}/crypto/external/bsd/${EXTERNAL_OPENSSL_SUBDIR}/lib/libcrypto
2008-09-30 23:09:00 +04:00
CLEANFILES+= ftperr.h httperr.h
.PATH: ${LIBFETCHDIR}
ftperr.h: ${LIBFETCHDIR}/ftp.errors ${LIBFETCHDIR}/errlist.sh
${HOST_SH} ${LIBFETCHDIR}/errlist.sh ftp_errlist FTP \
2008-09-30 23:09:00 +04:00
${LIBFETCHDIR}/ftp.errors > ${.TARGET}
httperr.h: ${LIBFETCHDIR}/http.errors ${LIBFETCHDIR}/errlist.sh
${HOST_SH} ${LIBFETCHDIR}/errlist.sh http_errlist HTTP \
2008-09-30 23:09:00 +04:00
${LIBFETCHDIR}/http.errors > ${.TARGET}
COPTS.http.c+= ${CC_WNO_STRINGOP_TRUNCATION}
2019-10-10 00:19:28 +03:00
2008-09-30 23:09:00 +04:00
.include <bsd.lib.mk>