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