Makefile revision 1.1
11.1Sagc# $FreeBSD: src/lib/libfetch/Makefile,v 1.49 2007/05/24 20:28:14 des Exp $ 21.1Sagc 31.1Sagc.include <bsd.own.mk> 41.1Sagc 51.1SagcOPSYS!= uname -s 61.1Sagc 71.1Sagc.if ${OPSYS} == "NetBSD" 81.1SagcMK_INET6_SUPPORT=yes 91.1SagcMK_OPENSSL=yes 101.1Sagc#CPPFLAGS+='-D__FBSDID(x)=__RCSID(x)' '-D__DECONST(t,x)=__UNCONST(x)' 111.1SagcCPPFLAGS+=-I${.OBJDIR} 121.1Sagc.endif 131.1Sagc 141.1SagcLIB= fetch 151.1SagcCFLAGS+= -I. 161.1SagcSRCS= fetch.c common.c ftp.c http.c file.c \ 171.1Sagc ftperr.h httperr.h 181.1SagcINCS= fetch.h 191.1SagcMAN= fetch.3 201.1SagcCLEANFILES= ftperr.h httperr.h 211.1Sagc 221.1Sagc.if ${MK_INET6_SUPPORT} != "no" 231.1SagcCFLAGS+= -DINET6 241.1Sagc.endif 251.1Sagc 261.1Sagc.if ${MK_OPENSSL} != "no" 271.1SagcCFLAGS+= -DWITH_SSL 281.1SagcDPADD= ${LIBSSL} ${LIBCRYPTO} 291.1SagcLDADD= -lssl -lcrypto 301.1Sagc.endif 311.1Sagc 321.1SagcCFLAGS+= -DFTP_COMBINE_CWDS 331.1Sagc 341.1SagcCSTD?= c99 351.1SagcWARNS?= 4 361.1Sagc 371.1SagcSHLIB_MAJOR= 5 381.1Sagc 391.1Sagcftperr.h: ftp.errors 401.1Sagc @echo "static struct fetcherr _ftp_errlist[] = {" > ${.TARGET} 411.1Sagc @cat ${.ALLSRC} \ 421.1Sagc | grep -v ^# \ 431.1Sagc | sort \ 441.1Sagc | while read NUM CAT STRING; do \ 451.1Sagc echo " { $${NUM}, FETCH_$${CAT}, \"$${STRING}\" },"; \ 461.1Sagc done >> ${.TARGET} 471.1Sagc @echo " { -1, FETCH_UNKNOWN, \"Unknown FTP error\" }" >> ${.TARGET} 481.1Sagc @echo "};" >> ${.TARGET} 491.1Sagc 501.1Sagchttperr.h: http.errors 511.1Sagc @echo "static struct fetcherr _http_errlist[] = {" > ${.TARGET} 521.1Sagc @cat ${.ALLSRC} \ 531.1Sagc | grep -v ^# \ 541.1Sagc | sort \ 551.1Sagc | while read NUM CAT STRING; do \ 561.1Sagc echo " { $${NUM}, FETCH_$${CAT}, \"$${STRING}\" },"; \ 571.1Sagc done >> ${.TARGET} 581.1Sagc @echo " { -1, FETCH_UNKNOWN, \"Unknown HTTP error\" }" >> ${.TARGET} 591.1Sagc @echo "};" >> ${.TARGET} 601.1Sagc 611.1SagcMLINKS+= fetch.3 fetchFreeURL.3 621.1SagcMLINKS+= fetch.3 fetchGet.3 631.1SagcMLINKS+= fetch.3 fetchGetFTP.3 641.1SagcMLINKS+= fetch.3 fetchGetFile.3 651.1SagcMLINKS+= fetch.3 fetchGetHTTP.3 661.1SagcMLINKS+= fetch.3 fetchGetURL.3 671.1SagcMLINKS+= fetch.3 fetchList.3 681.1SagcMLINKS+= fetch.3 fetchListFTP.3 691.1SagcMLINKS+= fetch.3 fetchListFile.3 701.1SagcMLINKS+= fetch.3 fetchListHTTP.3 711.1SagcMLINKS+= fetch.3 fetchListURL.3 721.1SagcMLINKS+= fetch.3 fetchMakeURL.3 731.1SagcMLINKS+= fetch.3 fetchParseURL.3 741.1SagcMLINKS+= fetch.3 fetchPut.3 751.1SagcMLINKS+= fetch.3 fetchPutFTP.3 761.1SagcMLINKS+= fetch.3 fetchPutFile.3 771.1SagcMLINKS+= fetch.3 fetchPutHTTP.3 781.1SagcMLINKS+= fetch.3 fetchPutURL.3 791.1SagcMLINKS+= fetch.3 fetchStat.3 801.1SagcMLINKS+= fetch.3 fetchStatFTP.3 811.1SagcMLINKS+= fetch.3 fetchStatFile.3 821.1SagcMLINKS+= fetch.3 fetchStatHTTP.3 831.1SagcMLINKS+= fetch.3 fetchStatURL.3 841.1SagcMLINKS+= fetch.3 fetchXGet.3 851.1SagcMLINKS+= fetch.3 fetchXGetFTP.3 861.1SagcMLINKS+= fetch.3 fetchXGetFile.3 871.1SagcMLINKS+= fetch.3 fetchXGetHTTP.3 881.1SagcMLINKS+= fetch.3 fetchXGetURL.3 891.1Sagc 901.1Sagc.include <bsd.lib.mk> 91