Fix RCS ID
[netbsd-mini2440.git] / external / bsd / fetch / lib / Makefile
blob81202bc31f05e46296fba441e3a259296cc882f7
1 # $NetBSD$
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>