From 701352f84ddd204d738407c29a4b6e501694a59c Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Thu, 12 Jul 2012 22:04:39 +0200 Subject: ported libfetch to Linux and gcc 4.7 with almost all flags --- libfetch/Makefile.orig | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 libfetch/Makefile.orig (limited to 'libfetch/Makefile.orig') 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 + +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 -- cgit v1.2.3-54-g00ecf