X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libs%2Fsrtp%2FMakefile.am;h=8b7522be9f00d829a59e531aaa6b5a3aa7a5dbcd;hb=a12bbd58d931088bbacb857caf2b95f968fe9cae;hp=7c95859eb507608e7e6377f90e6972c12e43cef4;hpb=b0f459734980ed8bc36fd968587c64f77c72aa4b;p=vlc diff --git a/libs/srtp/Makefile.am b/libs/srtp/Makefile.am index 7c95859eb5..8b7522be9f 100644 --- a/libs/srtp/Makefile.am +++ b/libs/srtp/Makefile.am @@ -1,5 +1,5 @@ # Secure RTP with libgcrypt -# Copyright (C) 2007 Rémi Denis-Courmont +# Copyright (C) 2007 Rémi Denis-Courmont # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -15,29 +15,30 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -AM_CPPFLAGS = @LIBGCRYPT_CFLAGS@ -AM_LDFLAGS = @LIBGCRYPT_LIBS@ - -if !HAVE_WIN32 -AM_LDFLAGS += -lpthread -endif +AM_CPPFLAGS = @GCRYPT_CFLAGS@ 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 +libvlc_srtp_la_LIBADD = @GCRYPT_LIBS@ + srtp_SOURCES = recv.c srtp_LDADD = libvlc_srtp.la +test_recv_LDADD = libvlc_srtp.la +test_aes_LDADD = @GCRYPT_LIBS@ + +if !HAVE_WIN32 +libvlc_srtp_la_LIBADD += -lpthread +test_aes_LDADD += -lpthread +endif lcov-run: - rm -f *.gcda lcov + rm -Rf *.gcda lcov $(MAKE) $(AM_MAKEFLAGS) check lcov-pre.out: