blob: 1683a2d63f53b0cd2c700384850828b19f666f4d [file] [log] [blame]
Emeric Vigier2f625822012-08-06 11:09:52 -04001# Copyright (C) 1999-2005 Open Source Telecom Corporation.
2# Copyright (C) 2006-2010 David Sugar, Tycho Softworks.
3#
4# This file is free software; as a special exception the author gives
5# unlimited permission to copy and/or distribute it, with or without
6# modifications, as long as this notice is preserved.
7#
8# This program is distributed in the hope that it will be useful, but
9# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
10# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11
12AUTOMAKE_OPTIONS = no-dependencies dist-shar
Emeric Vigier2f625822012-08-06 11:09:52 -040013
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014# additional include path necessary to compile the srtp crypto sources
15AM_CXXFLAGS= @WARN_FLAGS@ -I$(top_srcdir)/src/ccrtp
16AM_CPPFLAGS= @WARN_FLAGS@ -I$(top_srcdir)/src/ccrtp
17
18# RELEASE = $(LT_VERSION) -release $(LT_RELEASE)
Alexandre Lisione41ecd42014-02-27 15:51:10 -050019RELEASE = -version-info $(LT_VERSION)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050020
21lib_LTLIBRARIES = libccrtp.la
Emeric Vigier2f625822012-08-06 11:09:52 -040022
23if SRTP_OPENSSL
Alexandre Lisionddd731e2014-01-31 11:50:08 -050024srtp_src_o = ccrtp/crypto/openssl/hmac.cpp \
25 ccrtp/crypto/openssl/SrtpSymCrypto.cpp
Emeric Vigier2f625822012-08-06 11:09:52 -040026endif
27
28if SRTP_GCRYPT
Alexandre Lisionddd731e2014-01-31 11:50:08 -050029srtp_src_g = ccrtp/crypto/gcrypt/gcrypthmac.cpp \
30 ccrtp/crypto/gcrypt/gcryptSrtpSymCrypto.cpp \
31 ccrtp/crypto/gcrypt/InitializeGcrypt.cpp ccrtp/crypto/twofish.c
Emeric Vigier2f625822012-08-06 11:09:52 -040032endif
33
34skein_srcs= ccrtp/crypto/macSkein.cpp \
35 ccrtp/crypto/skein.c \
36 ccrtp/crypto/skein_block.c \
37 ccrtp/crypto/skeinApi.c
38
39
40SUBDIRS = ccrtp ccrtp/crypto
41
Alexandre Lisionddd731e2014-01-31 11:50:08 -050042libccrtp_la_SOURCES = rtppkt.cpp rtcppkt.cpp source.cpp data.cpp incqueue.cpp \
43 outqueue.cpp queue.cpp control.cpp members.cpp socket.cpp duplex.cpp pool.cpp \
44 CryptoContext.cpp CryptoContextCtrl.cpp $(srtp_src_g) $(srtp_src_o) $(skein_srcs)
Emeric Vigier2f625822012-08-06 11:09:52 -040045
Alexandre Lisione41ecd42014-02-27 15:51:10 -050046libccrtp_la_LDFLAGS = $(RELEASE)
47libccrtp_la_LIBADD = @GNULIBS@
Emeric Vigier2f625822012-08-06 11:09:52 -040048
49noinst_HEADERS = private.h