| 1 |
# Secure RTP with libgcrypt |
|---|
| 2 |
# Copyright (C) 2007 Rémi Denis-Courmont <rdenis # simphalempin , com> |
|---|
| 3 |
# |
|---|
| 4 |
# This library is free software; you can redistribute it and/or |
|---|
| 5 |
# modify it under the terms of the GNU Lesser General Public |
|---|
| 6 |
# License as published by the Free Software Foundation; either |
|---|
| 7 |
# version 2.1 of the License, or (at your option) any later version. |
|---|
| 8 |
# |
|---|
| 9 |
# This library is distributed in the hope that it will be useful, |
|---|
| 10 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 11 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|---|
| 12 |
# Lesser General Public License for more details. |
|---|
| 13 |
# |
|---|
| 14 |
# You should have received a copy of the GNU Lesser General Public |
|---|
| 15 |
# License along with this library; if not, write to the Free Software |
|---|
| 16 |
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
|---|
| 17 |
|
|---|
| 18 |
AM_CPPFLAGS = @LIBGCRYPT_CFLAGS@ |
|---|
| 19 |
|
|---|
| 20 |
noinst_HEADERS = srtp.h |
|---|
| 21 |
|
|---|
| 22 |
EXTRA_PROGRAMS = srtp |
|---|
| 23 |
noinst_LTLIBRARIES = libvlc_srtp.la |
|---|
| 24 |
check_PROGRAMS = test-aes test-recv |
|---|
| 25 |
TESTS = $(check_PROGRAMS) |
|---|
| 26 |
|
|---|
| 27 |
libvlc_srtp_la_SOURCES = srtp.c |
|---|
| 28 |
libvlc_srtp_la_LIBADD = @LIBGCRYPT_LIBS@ |
|---|
| 29 |
|
|---|
| 30 |
srtp_SOURCES = recv.c |
|---|
| 31 |
srtp_LDADD = libvlc_srtp.la |
|---|
| 32 |
test_recv_LDADD = libvlc_srtp.la |
|---|
| 33 |
test_aes_LDADD = @LIBGCRYPT_LIBS@ |
|---|
| 34 |
|
|---|
| 35 |
if !HAVE_WIN32 |
|---|
| 36 |
libvlc_srtp_la_LIBADD += -lpthread |
|---|
| 37 |
test_aes_LDADD += -lpthread |
|---|
| 38 |
endif |
|---|
| 39 |
|
|---|
| 40 |
lcov-run: |
|---|
| 41 |
rm -Rf *.gcda lcov |
|---|
| 42 |
$(MAKE) $(AM_MAKEFLAGS) check |
|---|
| 43 |
|
|---|
| 44 |
lcov-pre.out: |
|---|
| 45 |
lcov -c -d . -o lcov.tmp |
|---|
| 46 |
|
|---|
| 47 |
lcov.out: lcov-pre.out |
|---|
| 48 |
lcov -r lcov.tmp '*test*' > lcov.out |
|---|
| 49 |
|
|---|
| 50 |
lcov: lcov.out |
|---|
| 51 |
genhtml lcov.out -o lcov |
|---|
| 52 |
|
|---|
| 53 |
.PHONY: lcov-run |
|---|