]> git.sesse.net Git - vlc/blob - libs/srtp/Makefile.am
Move libs/loader to modules/codec/loader
[vlc] / libs / srtp / Makefile.am
1 # Secure RTP with libgcrypt
2 # Copyright (C) 2007  RĂ©mi Denis-Courmont
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 = @GCRYPT_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 = @GCRYPT_LIBS@
29
30 srtp_SOURCES = recv.c
31 srtp_LDADD = libvlc_srtp.la
32 test_recv_LDADD = libvlc_srtp.la
33 test_aes_LDADD = @GCRYPT_LIBS@
34
35 lcov-run:
36         rm -Rf *.gcda lcov
37         $(MAKE) $(AM_MAKEFLAGS) check
38
39 lcov-pre.out:
40         lcov -c -d . -o lcov.tmp
41
42 lcov.out: lcov-pre.out
43         lcov -r lcov.tmp '*test*' > lcov.out
44
45 lcov: lcov.out
46         genhtml lcov.out -o lcov
47
48 .PHONY: lcov-run