]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/libfetch/Makefile
This commit was generated by cvs2svn to compensate for changes in r82794,
[FreeBSD/FreeBSD.git] / lib / libfetch / Makefile
1 # $FreeBSD$
2
3 MAINTAINER=     des@freebsd.org
4 LIB=            fetch
5 CFLAGS+=        -I. -Wall -pedantic
6 CFLAGS+=        -DINET6
7 .if !defined(DEBUG)
8 CFLAGS+=        -DNDEBUG
9 .endif
10 SRCS=           fetch.c common.c ftp.c http.c file.c \
11                 ftperr.h httperr.h
12 INCS=           fetch.h
13 MAN=            fetch.3
14 CLEANFILES=     ftperr.h httperr.h
15
16 SHLIB_MAJOR=    3
17 SHLIB_MINOR=    0
18
19 ftperr.h: ftp.errors
20         @echo "static struct fetcherr _ftp_errlist[] = {" > ${.TARGET}
21         @cat ${.ALLSRC} \
22           | grep -v ^# \
23           | sort \
24           | while read NUM CAT STRING; do \
25             echo "    { $${NUM}, FETCH_$${CAT}, \"$${STRING}\" },"; \
26           done >> ${.TARGET}
27         @echo "    { -1, FETCH_UNKNOWN, \"Unknown FTP error\" }" >> ${.TARGET}
28         @echo "};" >> ${.TARGET}
29
30 httperr.h: http.errors
31         @echo "static struct fetcherr _http_errlist[] = {" > ${.TARGET}
32         @cat ${.ALLSRC} \
33           | grep -v ^# \
34           | sort \
35           | while read NUM CAT STRING; do \
36             echo "    { $${NUM}, FETCH_$${CAT}, \"$${STRING}\" },"; \
37           done >> ${.TARGET}
38         @echo "    { -1, FETCH_UNKNOWN, \"Unknown HTTP error\" }" >> ${.TARGET}
39         @echo "};" >> ${.TARGET}
40
41 .for MP in fetchFreeURL fetchGet fetchGetFTP fetchGetFile fetchGetHTTP \
42 fetchGetURL fetchList fetchListFTP fetchListFile fetchListHTTP fetchListURL \
43 fetchMakeURL fetchParseURL fetchPut fetchPutFTP fetchPutFile fetchPutHTTP \
44 fetchPutURL fetchStat fetchStatFTP fetchStatFile fetchStatHTTP fetchStatURL \
45 fetchXGet fetchXGetFTP fetchXGetFile fetchXGetHTTP fetchXGetURL
46 MLINKS+= fetch.3 ${MP}.3
47 .endfor
48
49 .include <bsd.lib.mk>