]> git.sesse.net Git - vlc/blob - libs/srtp/Makefile.am
Add real SRTP unit test (85% coverage let alone SRTCP)
[vlc] / libs / srtp / Makefile.am
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 AM_LDFLAGS = @LIBGCRYPT_LIBS@
20
21 if !HAVE_WIN32
22 AM_LDFLAGS += -lpthread
23 endif
24
25 noinst_HEADERS = srtp.h
26
27 EXTRA_PROGRAMS = srtp
28 if HAVE_LIBGCRYPT
29 noinst_LTLIBRARIES = libvlc_srtp.la
30 check_PROGRAMS = test-aes test-recv
31 TESTS = $(check_PROGRAMS)
32 endif
33
34 libvlc_srtp_la_SOURCES = srtp.c
35 srtp_SOURCES = recv.c
36 srtp_LDADD = libvlc_srtp.la
37 test_recv_LDADD = libvlc_srtp.la
38
39 lcov-run:
40         rm -Rf *.gcda lcov
41         $(MAKE) $(AM_MAKEFLAGS) check
42
43 lcov-pre.out:
44         lcov -c -d . -o lcov.tmp
45
46 lcov.out: lcov-pre.out
47         lcov -r lcov.tmp '*test*' > lcov.out
48
49 lcov: lcov.out
50         genhtml lcov.out -o lcov
51
52 .PHONY: lcov-run