Home | History | Annotate | Line # | Download | only in lib
Makefile revision 1.13
      1 # $NetBSD: Makefile,v 1.13 2019/10/09 21:19:28 christos 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+=	-DINET6
     17 
     18 CPPFLAGS+=	-DWITH_SSL
     19 
     20 LIBDPLIBS+=	ssl	${NETBSDSRCDIR}/crypto/external/bsd/${EXTERNAL_OPENSSL_SUBDIR}/lib/libssl \
     21 		crypto	${NETBSDSRCDIR}/crypto/external/bsd/${EXTERNAL_OPENSSL_SUBDIR}/lib/libcrypto
     22 
     23 CLEANFILES+=	ftperr.h httperr.h
     24 
     25 .PATH: ${LIBFETCHDIR}
     26 
     27 ftperr.h: ${LIBFETCHDIR}/ftp.errors ${LIBFETCHDIR}/errlist.sh
     28 	${HOST_SH} ${LIBFETCHDIR}/errlist.sh ftp_errlist FTP \
     29 	    ${LIBFETCHDIR}/ftp.errors > ${.TARGET}
     30 
     31 httperr.h: ${LIBFETCHDIR}/http.errors ${LIBFETCHDIR}/errlist.sh
     32 	${HOST_SH} ${LIBFETCHDIR}/errlist.sh http_errlist HTTP \
     33 	    ${LIBFETCHDIR}/http.errors > ${.TARGET}
     34 
     35 .if ${MKSANITIZER:Uno} == "yes"
     36 CFLAGS+=	-Wno-macro-redefined # _REENTRANT redefined
     37 .endif
     38 
     39 .if ${ACTIVE_CC} == "gcc"
     40 COPTS.http.c += -Wno-error=stringop-truncation
     41 .endif
     42 
     43 .include <bsd.lib.mk>
     44