mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
7b628f43e0
This may only be turning up now to changes in the cpp predefines for sparc64, which may be turning on more strict alignment checking. Approved by: re
75 lines
1.9 KiB
Makefile
75 lines
1.9 KiB
Makefile
# $FreeBSD$
|
|
|
|
LIB= fetch
|
|
CFLAGS+= -I.
|
|
CFLAGS+= -DINET6
|
|
SRCS= fetch.c common.c ftp.c http.c file.c \
|
|
ftperr.h httperr.h
|
|
INCS= fetch.h
|
|
MAN= fetch.3
|
|
CLEANFILES= ftperr.h httperr.h
|
|
|
|
.if !defined(NOCRYPT) && !defined(NOSECURE) && !defined(NO_OPENSSL)
|
|
CFLAGS+= -DWITH_SSL
|
|
DPADD= ${LIBSSL} ${LIBCRYPTO}
|
|
LDADD= -lssl -lcrypto
|
|
WARNS?= 2
|
|
.endif
|
|
|
|
WARNS?= 3
|
|
|
|
SHLIB_MAJOR= 3
|
|
|
|
ftperr.h: ftp.errors
|
|
@echo "static struct fetcherr _ftp_errlist[] = {" > ${.TARGET}
|
|
@cat ${.ALLSRC} \
|
|
| grep -v ^# \
|
|
| sort \
|
|
| while read NUM CAT STRING; do \
|
|
echo " { $${NUM}, FETCH_$${CAT}, \"$${STRING}\" },"; \
|
|
done >> ${.TARGET}
|
|
@echo " { -1, FETCH_UNKNOWN, \"Unknown FTP error\" }" >> ${.TARGET}
|
|
@echo "};" >> ${.TARGET}
|
|
|
|
httperr.h: http.errors
|
|
@echo "static struct fetcherr _http_errlist[] = {" > ${.TARGET}
|
|
@cat ${.ALLSRC} \
|
|
| grep -v ^# \
|
|
| sort \
|
|
| while read NUM CAT STRING; do \
|
|
echo " { $${NUM}, FETCH_$${CAT}, \"$${STRING}\" },"; \
|
|
done >> ${.TARGET}
|
|
@echo " { -1, FETCH_UNKNOWN, \"Unknown HTTP error\" }" >> ${.TARGET}
|
|
@echo "};" >> ${.TARGET}
|
|
|
|
MLINKS+= fetch.3 fetchFreeURL.3
|
|
MLINKS+= fetch.3 fetchGet.3
|
|
MLINKS+= fetch.3 fetchGetFTP.3
|
|
MLINKS+= fetch.3 fetchGetFile.3
|
|
MLINKS+= fetch.3 fetchGetHTTP.3
|
|
MLINKS+= fetch.3 fetchGetURL.3
|
|
MLINKS+= fetch.3 fetchList.3
|
|
MLINKS+= fetch.3 fetchListFTP.3
|
|
MLINKS+= fetch.3 fetchListFile.3
|
|
MLINKS+= fetch.3 fetchListHTTP.3
|
|
MLINKS+= fetch.3 fetchListURL.3
|
|
MLINKS+= fetch.3 fetchMakeURL.3
|
|
MLINKS+= fetch.3 fetchParseURL.3
|
|
MLINKS+= fetch.3 fetchPut.3
|
|
MLINKS+= fetch.3 fetchPutFTP.3
|
|
MLINKS+= fetch.3 fetchPutFile.3
|
|
MLINKS+= fetch.3 fetchPutHTTP.3
|
|
MLINKS+= fetch.3 fetchPutURL.3
|
|
MLINKS+= fetch.3 fetchStat.3
|
|
MLINKS+= fetch.3 fetchStatFTP.3
|
|
MLINKS+= fetch.3 fetchStatFile.3
|
|
MLINKS+= fetch.3 fetchStatHTTP.3
|
|
MLINKS+= fetch.3 fetchStatURL.3
|
|
MLINKS+= fetch.3 fetchXGet.3
|
|
MLINKS+= fetch.3 fetchXGetFTP.3
|
|
MLINKS+= fetch.3 fetchXGetFile.3
|
|
MLINKS+= fetch.3 fetchXGetHTTP.3
|
|
MLINKS+= fetch.3 fetchXGetURL.3
|
|
|
|
.include <bsd.lib.mk>
|