No empty .Rs/.Re
[netbsd-mini2440.git] / share / examples / refuse / ian / libfetch / Makefile
blob2727d0fe34cabc627dc9264cb113b4ab19f3f8cb
1 # $FreeBSD: src/lib/libfetch/Makefile,v 1.49 2007/05/24 20:28:14 des Exp $
3 .include <bsd.own.mk>
5 OPSYS!= uname -s
7 .if ${OPSYS} == "NetBSD"
8 MK_INET6_SUPPORT=yes
9 MK_OPENSSL=yes
10 CPPFLAGS+=-I${.OBJDIR}
11 .endif
13 LIB= fetch
14 CFLAGS+= -I.
15 SRCS= fetch.c common.c ftp.c http.c file.c \
16 ftperr.h httperr.h
17 INCS= fetch.h
18 MAN= fetch.3
19 CLEANFILES= ftperr.h httperr.h
21 .if ${MK_INET6_SUPPORT} != "no"
22 CFLAGS+= -DINET6
23 .endif
25 .if ${MK_OPENSSL} != "no"
26 CFLAGS+= -DWITH_SSL
27 DPADD= ${LIBSSL} ${LIBCRYPTO}
28 LDADD= -lssl -lcrypto
29 .endif
31 CFLAGS+= -DFTP_COMBINE_CWDS
33 CSTD?= c99
34 WARNS?= 4
36 SHLIB_MAJOR= 5
38 ftperr.h: ftp.errors
39 @echo "static struct fetcherr _ftp_errlist[] = {" > ${.TARGET}
40 @cat ${.ALLSRC} \
41 | grep -v ^# \
42 | sort \
43 | while read NUM CAT STRING; do \
44 echo " { $${NUM}, FETCH_$${CAT}, \"$${STRING}\" },"; \
45 done >> ${.TARGET}
46 @echo " { -1, FETCH_UNKNOWN, \"Unknown FTP error\" }" >> ${.TARGET}
47 @echo "};" >> ${.TARGET}
49 httperr.h: http.errors
50 @echo "static struct fetcherr _http_errlist[] = {" > ${.TARGET}
51 @cat ${.ALLSRC} \
52 | grep -v ^# \
53 | sort \
54 | while read NUM CAT STRING; do \
55 echo " { $${NUM}, FETCH_$${CAT}, \"$${STRING}\" },"; \
56 done >> ${.TARGET}
57 @echo " { -1, FETCH_UNKNOWN, \"Unknown HTTP error\" }" >> ${.TARGET}
58 @echo "};" >> ${.TARGET}
60 MLINKS+= fetch.3 fetchFreeURL.3
61 MLINKS+= fetch.3 fetchGet.3
62 MLINKS+= fetch.3 fetchGetFTP.3
63 MLINKS+= fetch.3 fetchGetFile.3
64 MLINKS+= fetch.3 fetchGetHTTP.3
65 MLINKS+= fetch.3 fetchGetURL.3
66 MLINKS+= fetch.3 fetchList.3
67 MLINKS+= fetch.3 fetchListFTP.3
68 MLINKS+= fetch.3 fetchListFile.3
69 MLINKS+= fetch.3 fetchListHTTP.3
70 MLINKS+= fetch.3 fetchListURL.3
71 MLINKS+= fetch.3 fetchMakeURL.3
72 MLINKS+= fetch.3 fetchParseURL.3
73 MLINKS+= fetch.3 fetchPut.3
74 MLINKS+= fetch.3 fetchPutFTP.3
75 MLINKS+= fetch.3 fetchPutFile.3
76 MLINKS+= fetch.3 fetchPutHTTP.3
77 MLINKS+= fetch.3 fetchPutURL.3
78 MLINKS+= fetch.3 fetchStat.3
79 MLINKS+= fetch.3 fetchStatFTP.3
80 MLINKS+= fetch.3 fetchStatFile.3
81 MLINKS+= fetch.3 fetchStatHTTP.3
82 MLINKS+= fetch.3 fetchStatURL.3
83 MLINKS+= fetch.3 fetchXGet.3
84 MLINKS+= fetch.3 fetchXGetFTP.3
85 MLINKS+= fetch.3 fetchXGetFile.3
86 MLINKS+= fetch.3 fetchXGetHTTP.3
87 MLINKS+= fetch.3 fetchXGetURL.3
89 .include <bsd.lib.mk>