-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile.am
167 lines (140 loc) · 6.81 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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
#
# Copyright (c) 2006-2007 Philip R. Zimmermann. All rights reserved.
# Contact: http://philzimmermann.com
#
# Viktor Krikun <[email protected]> <[email protected]>
#
AUTOMAKE_OPTIONS = subdir-objects
libzrtp_includedir=$(includedir)/libzrtp
libzrtp_include_HEADERS = \
$(top_srcdir)/include/zrtp.h \
$(top_srcdir)/include/zrtp_base.h \
$(top_srcdir)/include/zrtp_config.h \
$(top_srcdir)/include/zrtp_config_user.h \
$(top_srcdir)/include/zrtp_config_unix.h \
$(top_srcdir)/include/zrtp_crypto.h \
$(top_srcdir)/include/zrtp_ec.h \
$(top_srcdir)/include/zrtp_engine.h \
$(top_srcdir)/include/zrtp_error.h \
$(top_srcdir)/include/zrtp_iface.h \
$(top_srcdir)/include/zrtp_iface_scheduler.h \
$(top_srcdir)/include/zrtp_iface_cache.h \
$(top_srcdir)/include/zrtp_iface_system.h \
$(top_srcdir)/include/zrtp_legal.h \
$(top_srcdir)/include/zrtp_list.h \
$(top_srcdir)/include/zrtp_log.h \
$(top_srcdir)/include/zrtp_pbx.h \
$(top_srcdir)/include/zrtp_protocol.h \
$(top_srcdir)/include/zrtp_srtp.h \
$(top_srcdir)/include/zrtp_srtp_builtin.h \
$(top_srcdir)/include/zrtp_string.h \
$(top_srcdir)/include/zrtp_types.h \
$(top_srcdir)/include/zrtp_version.h \
\
$(top_srcdir)/third_party/bnlib/bn.h \
\
$(top_srcdir)/third_party/bgaes/aes.h \
$(top_srcdir)/third_party/bgaes/aesopt.h \
$(top_srcdir)/third_party/bgaes/aestab.h \
$(top_srcdir)/third_party/bgaes/bg2zrtp.h \
$(top_srcdir)/third_party/bgaes/brg_types.h \
$(top_srcdir)/third_party/bgaes/sha1.h \
$(top_srcdir)/third_party/bgaes/sha2.h
lib_LIBRARIES = libzrtp.a
libzrtp_a_CPPFLAGS = \
-I$(top_srcdir)/include \
-I$(top_srcdir)/. \
-I$(top_srcdir)/third_party/bgaes \
-I$(top_srcdir)/third_party/bnlib
libzrtp_a_LIBADD = $(top_srcdir)/third_party/bnlib/libbn.a
libzrtp_a_SOURCES = $(top_srcdir)/src/zrtp.c \
$(top_srcdir)/src/zrtp_crc.c \
$(top_srcdir)/src/zrtp_crypto_aes.c \
$(top_srcdir)/src/zrtp_crypto_atl.c \
$(top_srcdir)/src/zrtp_crypto_ec.c \
$(top_srcdir)/src/zrtp_crypto_ecdh.c \
$(top_srcdir)/src/zrtp_crypto_hash.c \
$(top_srcdir)/src/zrtp_crypto_pk.c \
$(top_srcdir)/src/zrtp_crypto_sas.c \
$(top_srcdir)/src/zrtp_datatypes.c \
$(top_srcdir)/src/zrtp_engine.c \
$(top_srcdir)/src/zrtp_iface_scheduler.c \
$(top_srcdir)/src/zrtp_iface_sys.c \
$(top_srcdir)/src/zrtp_initiator.c \
$(top_srcdir)/src/zrtp_legal.c \
$(top_srcdir)/src/zrtp_list.c \
$(top_srcdir)/src/zrtp_log.c \
$(top_srcdir)/src/zrtp_pbx.c \
$(top_srcdir)/src/zrtp_protocol.c \
$(top_srcdir)/src/zrtp_responder.c \
$(top_srcdir)/src/zrtp_rng.c \
$(top_srcdir)/src/zrtp_srtp_builtin.c \
$(top_srcdir)/src/zrtp_string.c \
$(top_srcdir)/src/zrtp_utils.c \
$(top_srcdir)/src/zrtp_utils_proto.c \
\
$(top_srcdir)/third_party/bgaes/aes_modes.c \
$(top_srcdir)/third_party/bgaes/aescrypt.c \
$(top_srcdir)/third_party/bgaes/aeskey.c \
$(top_srcdir)/third_party/bgaes/aestab.c \
$(top_srcdir)/third_party/bgaes/sha1.c \
$(top_srcdir)/third_party/bgaes/sha2.c\
\
$(top_srcdir)/src/zrtp_iface_cache.c
$(top_srcdir)/src/zrtp_engine_driven.c
check_PROGRAMS = cache_test cipher_test dh_test dk_test ecdh_test enrollment_test go_secure_test \
hash_test minor_bugs_test sasrelay_test srtp_replay_test zrtphash_test
TESTS = cache_test cipher_test dh_test dk_test ecdh_test enrollment_test go_secure_test \
hash_test minor_bugs_test sasrelay_test srtp_replay_test zrtphash_test
TEST_CPPFLAGS = -I$(top_srcdir)/include \
-I$(top_srcdir)/. \
-I$(top_srcdir)/test \
-I$(top_srcdir)/test/cmockery \
-I$(top_srcdir)/third_party/bgaes \
-I$(top_srcdir)/third_party/bnlib
cache_test_CPPFLAGS = $(TEST_CPPFLAGS)
cache_test_SOURCES = $(top_srcdir)/test/cmockery/cmockery.c $(top_srcdir)/test/cache_test.c
cache_test_LDADD = libzrtp.a $(top_srcdir)/third_party/bnlib/libbn.a -lpthread
cipher_test_CPPFLAGS = $(TEST_CPPFLAGS)
cipher_test_SOURCES = $(top_srcdir)/test/cmockery/cmockery.c $(top_srcdir)/test/cipher_test.c
cipher_test_LDADD = libzrtp.a $(top_srcdir)/third_party/bnlib/libbn.a -lpthread
dh_test_CPPFLAGS = $(TEST_CPPFLAGS)
dh_test_SOURCES = $(top_srcdir)/test/cmockery/cmockery.c $(top_srcdir)/test/dh_test.c
dh_test_LDADD = libzrtp.a $(top_srcdir)/third_party/bnlib/libbn.a -lpthread
dk_test_CPPFLAGS = $(TEST_CPPFLAGS)
dk_test_SOURCES = $(top_srcdir)/test/cmockery/cmockery.c $(top_srcdir)/test/dk_test.c
dk_test_LDADD = libzrtp.a $(top_srcdir)/third_party/bnlib/libbn.a -lpthread
ecdh_test_CPPFLAGS = $(TEST_CPPFLAGS)
ecdh_test_SOURCES = $(top_srcdir)/test/cmockery/cmockery.c $(top_srcdir)/test/ecdh_test.c
ecdh_test_LDADD = libzrtp.a $(top_srcdir)/third_party/bnlib/libbn.a -lpthread
enrollment_test_CPPFLAGS = $(TEST_CPPFLAGS)
enrollment_test_SOURCES = $(top_srcdir)/test/cmockery/cmockery.c $(top_srcdir)/test/enrollment_test.c $(top_srcdir)/test/test_engine.c $(top_srcdir)/test/queue.c
enrollment_test_LDADD = libzrtp.a $(top_srcdir)/third_party/bnlib/libbn.a -lpthread
go_secure_test_CPPFLAGS = $(TEST_CPPFLAGS)
go_secure_test_SOURCES = $(top_srcdir)/test/cmockery/cmockery.c $(top_srcdir)/test/go_secure_test.c $(top_srcdir)/test/test_engine.c $(top_srcdir)/test/queue.c
go_secure_test_LDADD = libzrtp.a $(top_srcdir)/third_party/bnlib/libbn.a -lpthread
hash_test_CPPFLAGS = $(TEST_CPPFLAGS)
hash_test_SOURCES = $(top_srcdir)/test/cmockery/cmockery.c $(top_srcdir)/test/hash_test.c
hash_test_LDADD = libzrtp.a $(top_srcdir)/third_party/bnlib/libbn.a -lpthread
minor_bugs_test_CPPFLAGS = $(TEST_CPPFLAGS)
minor_bugs_test_SOURCES = $(top_srcdir)/test/cmockery/cmockery.c $(top_srcdir)/test/minor_bugs_test.c
minor_bugs_test_LDADD = libzrtp.a $(top_srcdir)/third_party/bnlib/libbn.a -lpthread
sasrelay_test_CPPFLAGS = $(TEST_CPPFLAGS)
sasrelay_test_SOURCES = $(top_srcdir)/test/cmockery/cmockery.c $(top_srcdir)/test/sasrelay_test.c $(top_srcdir)/test/test_engine.c $(top_srcdir)/test/queue.c
sasrelay_test_LDADD = libzrtp.a $(top_srcdir)/third_party/bnlib/libbn.a -lpthread
srtp_replay_test_CPPFLAGS = $(TEST_CPPFLAGS)
srtp_replay_test_SOURCES = $(top_srcdir)/test/cmockery/cmockery.c $(top_srcdir)/test/srtp_replay_test.c
srtp_replay_test_LDADD = libzrtp.a $(top_srcdir)/third_party/bnlib/libbn.a -lpthread
zrtphash_test_CPPFLAGS = $(TEST_CPPFLAGS)
zrtphash_test_SOURCES = $(top_srcdir)/test/cmockery/cmockery.c $(top_srcdir)/test/zrtphash_test.c $(top_srcdir)/test/test_engine.c $(top_srcdir)/test/queue.c
zrtphash_test_LDADD = libzrtp.a $(top_srcdir)/third_party/bnlib/libbn.a -lpthread
SUBDIRS = third_party/bnlib
if HAVE_DOXYGEN
doc: .stamp-doc
.stamp-doc:
(cd doc && $(DOXYGEN) Doxyfile)
touch $@
endif
uninstall:
rm -rf $(prefix)/include/libzrtp
rm -f $(prefix)/lib/libzrtp.a