blob: 42e408e0390feed0329a646240db8c4a18bdd82e (
plain)
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
|
#
# module.mk
#
# Copyright (C) 2010 - 2017 Creytiv.com
#
#
# To build libzrtpcppcore run the following commands:
#
# git clone https://github.com/wernerd/ZRTPCPP.git
# cd ZRTPCPP
# mkdir build
# cd build
# cmake -DCMAKE_POSITION_INDEPENDENT_CODE=1 -DCORE_LIB=1 -DSDES=1 \
# -DBUILD_STATIC=1 ..
# make
#
# GNU ZRTP C++ library (ZRTPCPP) source directory
ZRTP_PATH ?= ../ZRTPCPP
ZRTP_LIB := $(shell find $(ZRTP_PATH) -name libzrtpcppcore.a)
MOD := gzrtp
$(MOD)_SRCS += gzrtp.cpp session.cpp stream.cpp messages.cpp srtp.cpp
$(MOD)_LFLAGS += $(ZRTP_LIB) -lstdc++
$(MOD)_CXXFLAGS += \
-I$(ZRTP_PATH) \
-I$(ZRTP_PATH)/zrtp \
-I$(ZRTP_PATH)/srtp
$(MOD)_CXXFLAGS += -O2 -Wall -fPIC
# Uncomment this if you want to use libre SRTP facilities instead of the ones
# provided by ZRTPCPP. In this case only standard ciphers (AES) are supported.
#$(MOD)_CXXFLAGS += -DGZRTP_USE_RE_SRTP=1
include mk/mod.mk
|