etc/services - sync with NetBSD-8
[minix.git] / external / bsd / fetch / lib / Makefile
blobabb069a338a0c92ca34ef690b1b4233e944dd303
1 # $NetBSD: Makefile,v 1.8 2011/08/17 09:20:14 christos Exp $
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
11 .include <bsd.init.mk>
13 CPPFLAGS+= -I.
14 CPPFLAGS+= -DNETBSD
15 CPPFLAGS+= -DFTP_COMBINE_CWDS
16 CPPFLAGS+= -DINET6
18 .if (${MKCRYPTO} != "no")
19 CPPFLAGS+= -DWITH_SSL
21 LDADD= -lssl -lcrypto
23 LIBDPLIBS+= ssl ${NETBSDSRCDIR}/crypto/external/bsd/openssl/lib/libssl \
24 crypto ${NETBSDSRCDIR}/crypto/external/bsd/openssl/lib/libcrypto
25 .endif
27 CLEANFILES+= ftperr.h httperr.h
29 .PATH: ${LIBFETCHDIR}
31 ftperr.h: ${LIBFETCHDIR}/ftp.errors ${LIBFETCHDIR}/errlist.sh
32 ${HOST_SH} ${LIBFETCHDIR}/errlist.sh ftp_errlist FTP \
33 ${LIBFETCHDIR}/ftp.errors > ${.TARGET}
35 httperr.h: ${LIBFETCHDIR}/http.errors ${LIBFETCHDIR}/errlist.sh
36 ${HOST_SH} ${LIBFETCHDIR}/errlist.sh http_errlist HTTP \
37 ${LIBFETCHDIR}/http.errors > ${.TARGET}
39 .include <bsd.lib.mk>