This repository has been archived by the owner on Jun 16, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.am
146 lines (133 loc) · 5.51 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
#
# Makefile.am - part of the GAP installer BOB
#
# Copyright (C) by Max Neunhoeffer 2012
# This file is free software, see license information at the end.
#
FORLDADD=@FORLDADD@
FORLDFLAGS=@FORLDFLAGS@
bin_PROGRAMS = bob
bob_SOURCES = bob.cc gap.cc hl_sha1.cc
bob_CPPFLAGS = `libs/bin/curl-config --cflags` -Wall -Wextra
bob_LDADD = libs/lib/libcurl.a libs/lib/libarchive.a libs/lib/libz.a libs/lib/libbz2.a libs/lib/liblzma.a ${FORLDADD}
bob_LDFLAGS = ${FORLDFLAGS}
BUILT_SOURCES = libs/include/zlib.h libs/include/bzlib.h \
libs/include/lzma.h libs/include/archive.h \
libs/include/curl/curl.h
ZLIBVERSION = 1.2.7
BZ2LIBVERSION = 1.0.6
LIBARCHIVEVERSION = 3.0.4
CURLVERSION = 7.24.0
OPENSSLVERSION = 1.0.0g
XZUTILSVERSION = 5.0.3
CURLARCH = curl-${CURLVERSION}.tar.gz
LIBARCHIVEARCH = libarchive-${LIBARCHIVEVERSION}.tar.gz
ZLIBARCH = zlib-${ZLIBVERSION}.tar.gz
BZ2LIBARCH = bzip2-${BZ2LIBVERSION}.tar.gz
XZUTILSARCH = xz-${XZUTILSVERSION}.tar.gz
OPENSSLARCH = openssl-${OPENSSLVERSION}.tar.gz
distclean-local:
rm -rf libs zlib-${ZLIBVERSION} bzip2-${BZ2LIBVERSION} \
curl-${CURLVERSION} libarchive-${LIBARCHIVEVERSION} \
xz-${XZUTILSVERSION}
libs/include/zlib.h:
( if [ ! -e archives/${ZLIBARCH} ] ; then \
curl http://zlib.net/${ZLIBARCH} -o archives/${ZLIBARCH} ; fi )
rm -rf zlib-${ZLIBVERSION}
tar xzvf archives/${ZLIBARCH}
if [ ! -e libs ] ; then mkdir libs ; fi
( export MYPATH=`pwd` ; cd zlib-${ZLIBVERSION} ; \
./configure --prefix=$$MYPATH/libs --static ; \
make ; make install )
bz2lib_m32:
( if [ ! -e archives/${BZ2LIBARCH} ] ; then \
curl http://bzip.org/${BZ2LIBVERSION}/${BZ2LIBARCH} \
-o archives/${BZ2LIBARCH} ; fi )
rm -rf bzip2-${BZ2LIBVERSION}
tar xzvf archives/${BZ2LIBARCH}
if [ ! -e libs ] ; then mkdir libs ; fi
( export MYPATH=`pwd` ; cd bzip2-${BZ2LIBVERSION} ; \
make CFLAGS="-m32 -Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64" ; \
make install PREFIX=$$MYPATH/libs )
libs/include/bzlib.h:
( if [ ! -e archives/${BZ2LIBARCH} ] ; then \
curl http://bzip.org/${BZ2LIBVERSION}/${BZ2LIBARCH} \
-o archives/${BZ2LIBARCH} ; fi )
rm -rf bzip2-${BZ2LIBVERSION}
tar xzvf archives/${BZ2LIBARCH}
if [ ! -e libs ] ; then mkdir libs ; fi
( export MYPATH=`pwd` ; cd bzip2-${BZ2LIBVERSION} ; \
make ; make install PREFIX=$$MYPATH/libs )
libs/include/curl/curl.h:
( if [ ! -e archives/${CURLARCH} ] ; then \
curl http://curl.haxx.se/download/${CURLARCH} \
-o archives/${CURLARCH} ; fi )
rm -rf curl-${CURLVERSION}
tar xzvf archives/${CURLARCH}
if [ ! -e libs ] ; then mkdir libs ; fi
( export MYPATH=`pwd` ; cd curl-${CURLVERSION} ; \
./configure --prefix=$$MYPATH/libs --disable-shared \
--disable-imap --disable-imaps --disable-ldap --disable-ldaps \
--disable-pop3 --disable-pop3s --disable-rtsp --disable-smtp \
--disable-smtps --disable-telnet --disable-gopher --without-ssl \
--without-libidn --disable-threaded-resolver --disable-thread \
--without-libssh2 \
CPPFLAGS="-I$$MYPATH/libs/include" \
LDFLAGS="-L$$MYPATH/libs/lib" ; \
make ; make install )
libs/include/archive.h: libs/include/zlib.h libs/include/bzlib.h libs/include/lzma.h
( if [ ! -e archives/${LIBARCHIVEARCH} ] ; then \
curl -k https://cloud.github.com/downloads/libarchive/libarchive/${LIBARCHIVEARCH} \
-o archives/${LIBARCHIVEARCH} ; fi )
rm -rf libarchive-${LIBARCHIVEVERSION}
tar xzvf archives/${LIBARCHIVEARCH}
if [ ! -e libs ] ; then mkdir libs ; fi
( export MYPATH=`pwd` ; cd libarchive-${LIBARCHIVEVERSION} ; \
./configure --prefix=$$MYPATH/libs --disable-shared \
--without-lzmadec --without-iconv \
--with-lzma --without-nettle --without-openssl \
--without-xml2 --without-expat --disable-acl \
CPPFLAGS="-I$$MYPATH/libs/include" \
LDFLAGS="-L$$MYPATH/libs/lib" ; \
make ; make install )
libs/include/openssl/ssl.h:
( if [ ! -e archives/${OPENSSLARCH} ] ; then \
curl http://www.openssl.org/source/${OPENSSLARCH} \
-o archives/${OPENSSLARCH} ; fi )
rm -rf openssl-${OPENSSLVERSION}
tar xzvf archives/${OPENSSLARCH}
if [ ! -e libs ] ; then mkdir libs ; fi
( export MYPATH=`pwd` ; cd openssl-${OPENSSLVERSION} ; \
if test `uname -s` == "Darwin" ; then \
./Configure --prefix=$$MYPATH/libs \
--openssldir=$$MYPATH/libs/openssl \
no-threads no-shared no-sse2 zlib darwin64-x86_64-cc ; \
else \
./config --prefix=$$MYPATH/libs --openssldir=$$MYPATH/libs/openssl \
no-threads no-shared no-sse2 zlib ; \
fi ; \
make ; make install )
libs/include/lzma.h:
( if [ ! -e archives/${XZUTILSARCH} ] ; then \
curl http://tukaani.org/xz/${XZUTILSARCH} \
-o archives/${XZUTILSARCH} ; fi )
rm -rf xz-${XZUTILSVERSION}
tar xzvf archives/${XZUTILSARCH}
if [ ! -e libs ] ; then mkdir libs ; fi
( export MYPATH=`pwd` ; cd xz-${XZUTILSVERSION} ; \
./configure --prefix=$$MYPATH/libs --disable-shared ; make ; \
make install )
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#