forked from BeID-lab/eIDClientCore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
87 lines (65 loc) · 2.32 KB
/
Makefile
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
SHELL=/bin/bash
PREFIX= $(shell pwd)
#BASIERT auf: https://github.com/BeID-lab/eIDClientCore/blob/master/README.md
ALL_DEPS = cryptopp asn1c libexpat openssl libcurl
MY_DEPS = cryptopp asn1c libexpat openssl libcurl
all: $(MY_DEPS) eIDClient
mydeps: $(MY_DEPS)
delete_all:
rm -rf *[^Makefile]*
clean_cryptopp:
make -C cryptopp*/ clean
clean_asn1c:
make -C asn1c*/ clean
clean_libexpat:
make -C expat*/ clean
clean_openssl:
make -C OpenSSL*/ clean
clean_libcurl:
make -C curl*/ clean
clean_eIDClient:
make -C eIDClientCore/ clean
clean: clean_cryptopp clean_asn1c clean_libexpat clean_openssl clean_libcurl clean_eIDClient
cryptopp:
svn checkout https://svn.code.sf.net/p/cryptopp/code/trunk/c5 cryptopp
sed -i.org -e "s%^#.*\(CXXFLAGS += -fPIC.*\)%\1%g" $(PREFIX)/cryptopp/GNUmakefile
make -C cryptopp all libcryptopp.so
make -C cryptopp install PREFIX=$(PREFIX)
asn1c:
wget http://lionet.info/soft/asn1c-0.9.24.tar.gz
tar xzf asn1c-0.9.24.tar.gz
cd asn1c-0.9.24 ;\
./configure --prefix=$(PREFIX) ;\
make install
libexpat:
wget http://sourceforge.net/projects/expat/files/expat/2.1.0/expat-2.1.0.tar.gz
tar xzf expat-2.1.0.tar.gz
cd expat-2.1.0 ;\
./configure --prefix=$(PREFIX) ;\
make install
openssl:
cd $(PREFIX)/OpenSSL_1_0_2-stable ;\
git submodule init ;\
git submodule update ;\
patch -p1 <$(PREFIX)/patches/openssl/1.0.2/0001-add-Christian-J.-Dietrichs-RSA-PSK-patch.patch ;\
patch -p1 <$(PREFIX)/patches/openssl/1.0.2/0002-fix-space-vs-tabs-indent.patch ;\
patch -p1 <$(PREFIX)/patches/openssl/1.0.2/0003-add-missing-RSA_PSK-cipher-suites.patch ;\
./config --prefix=$(PREFIX) shared ;\
make ;\
make install_sw
libcurl:
wget http://curl.haxx.se/download/curl-7.32.0.tar.gz
tar xzf curl-7.32.0.tar.gz
cd curl-7.32.0 ;\
./configure --prefix=$(PREFIX) PKG_CONFIG_PATH=$(PREFIX)/lib/pkgconfig:$(PREFIX)/lib64/pkgconfig ;\
make install
eIDClient:
cd eIDClientCore ;\
autoreconf -vis ;\
env LD_LIBRARY_PATH=$(PREFIX)/lib:$(PREFIX)/lib64 ./configure --prefix=$(PREFIX) \
--with-openssl=$(PREFIX) --with-libcurl=$(PREFIX) \
PKG_CONFIG_PATH=$(PREFIX)/lib/pkgconfig:$(PREFIX)/lib64/pkgconfig\
ASN1C=$(PREFIX)/bin/asn1c ;\
sed -i.org -e "s%^\(CPPFLAGS = .*\)%\1 -DSKIP_PEER_VERIFICATION -DSKIP_HOSTNAME_VERIFICATION%g" \
$(PREFIX)/eIDClientCore/lib/eIDClientConnection/Makefile ;\
make install