summaryrefslogtreecommitdiff
path: root/libfetch/Makefile.orig
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2012-07-12 22:04:39 +0200
committerAndreas Baumann <abaumann@yahoo.com>2012-07-12 22:04:39 +0200
commit701352f84ddd204d738407c29a4b6e501694a59c (patch)
treefe81b066da1244010e8317cef27e12f8af75358a /libfetch/Makefile.orig
parentd255a7489b6a64b1e972f5f7bd0f91a6684ff3b1 (diff)
downloadcrawler-701352f84ddd204d738407c29a4b6e501694a59c.tar.gz
crawler-701352f84ddd204d738407c29a4b6e501694a59c.tar.bz2
ported libfetch to Linux and gcc 4.7 with almost all flags
Diffstat (limited to 'libfetch/Makefile.orig')
-rw-r--r--libfetch/Makefile.orig42
1 files changed, 42 insertions, 0 deletions
diff --git a/libfetch/Makefile.orig b/libfetch/Makefile.orig
new file mode 100644
index 0000000..09c558d
--- /dev/null
+++ b/libfetch/Makefile.orig
@@ -0,0 +1,42 @@
+# $NetBSD: Makefile,v 1.5 2010/02/24 22:00:51 joerg Exp $
+
+LIB= fetch
+SRCS= fetch.c common.c ftp.c http.c file.c
+DPSRCS= ftperr.h httperr.h
+INCS= fetch.h
+MAN= fetch.3
+CLEANFILES= ftperr.h httperr.h
+MKLINT= no
+MKPIC= no
+MKPROFILE= no
+
+.include <bsd.own.mk>
+
+CPPFLAGS+= -I.
+CPPFLAGS+= -D_LARGEFILE_SOURCE -D_LARGE_FILES
+
+FETCH_WITH_INET6?= no
+FETCH_WITH_OPENSSL?= no
+
+.if !empty(FETCH_WITH_INET6:M[yY][eE][sS])
+CPPFLAGS+= -DINET6
+.endif
+
+.if !empty(FETCH_WITH_OPENSSL:M[yY][eE][sS])
+CPPFLAGS+= -DWITH_SSL
+LDADD= -lssl -lcrypto
+.endif
+
+CPPFLAGS+= -DFTP_COMBINE_CWDS
+
+WARNS?= 4
+
+ftperr.h: ${.CURDIR}/ftp.errors ${.CURDIR}/Makefile ${.CURDIR}/errlist.sh
+ ${.CURDIR}/errlist.sh ftp_errlist FTP \
+ ${.CURDIR}/ftp.errors > ${.TARGET}
+
+httperr.h: ${.CURDIR}/http.errors ${.CURDIR}/Makefile ${.CURDIR}/errlist.sh
+ ${.CURDIR}/errlist.sh http_errlist HTTP \
+ ${.CURDIR}/http.errors > ${.TARGET}
+
+.include <bsd.lib.mk>