forked from traviscross/libzrtp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
134 lines (119 loc) · 4.44 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
#
# Copyright (c) 2006-2007 Philip R. Zimmermann. All rights reserved.
# Contact: http://philzimmermann.com
#
# Viktor Krikun <[email protected]> <[email protected]>
#
libzrtp_includedir=$(includedir)/libzrtp
libzrtp_include_HEADERS = \
$(top_srcdir)/include/zrtp.h \
$(top_srcdir)/include/zrtp_base.h \
$(top_srcdir)/include/zrtp_cache.h \
$(top_srcdir)/include/zrtp_cache_file.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_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_sdes.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
if ZRTP_WITH_SQLITE
libzrtp_include_HEADERS += $(top_srcdir)/include/zrtp_cache_db.h \
$(top_srcdir)/include/zrtp_cache_db_backend.h \
$(top_srcdir)/include/zrtp_b64_decode.h \
$(top_srcdir)/include/zrtp_b64_encode.h
endif
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_cache.c \
$(top_srcdir)/src/zrtp_cache_file.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_sdes.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_engine_driven.c
if ZRTP_WITH_SQLITE
libzrtp_a_SOURCES +=$(top_srcdir)/src/zrtp_cache_db.c \
$(top_srcdir)/src/zrtp_cache_sqlite_backend.c \
$(top_srcdir)/src/zrtp_b64_decode.c \
$(top_srcdir)/src/zrtp_b64_encode.c
endif
check_PROGRAMS = cache_test
cache_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_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
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