]> git.sesse.net Git - vlc/blobdiff - libs/srtp/Makefile.am
More avoidable directories
[vlc] / libs / srtp / Makefile.am
index 74c4bafe049598c0a67ab9f6dd09f6ff661a426b..901003cc34496ecdbbcc095dd6f9e8714f0e5261 100644 (file)
@@ -25,14 +25,26 @@ endif
 noinst_HEADERS = srtp.h
 
 EXTRA_PROGRAMS = srtp
-if HAVE_LIBGCRYPT
 noinst_LTLIBRARIES = libvlc_srtp.la
-check_PROGRAMS = test-aes
-TESTS = test-aes
-endif
+check_PROGRAMS = test-aes test-recv
+TESTS = $(check_PROGRAMS)
 
 libvlc_srtp_la_SOURCES = srtp.c
-test_aes_SOURCES = test-aes.c
 srtp_SOURCES = recv.c
 srtp_LDADD = libvlc_srtp.la
+test_recv_LDADD = libvlc_srtp.la
+
+lcov-run:
+       rm -Rf *.gcda lcov
+       $(MAKE) $(AM_MAKEFLAGS) check
+
+lcov-pre.out:
+       lcov -c -d . -o lcov.tmp
+
+lcov.out: lcov-pre.out
+       lcov -r lcov.tmp '*test*' > lcov.out
+
+lcov: lcov.out
+       genhtml lcov.out -o lcov
 
+.PHONY: lcov-run