Makefile.am 1.23 KB
Newer Older
1
include $(top_srcdir)/modules/common.am
2
accessdir = $(pluginsdir)/access
3

Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
4
# RTP plugin
5
access_LTLIBRARIES = librtp_plugin.la
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
6
librtp_plugin_la_SOURCES = \
7
8
9
	rtp.c \
	rtp.h \
	input.c \
10
11
	session.c \
	xiph.c
12
librtp_plugin_la_CFLAGS = $(AM_CFLAGS)
13
librtp_plugin_la_LIBADD = $(AM_LIBADD) $(SOCKET_LIBS)
14

15
16
17
18
# Secure RTP library
libvlc_srtp_la_SOURCES = srtp.c
libvlc_srtp_la_CPPFLAGS =
libvlc_srtp_la_CFLAGS = $(GCRYPT_CFLAGS)
19
libvlc_srtp_la_LDFLAGS = -static
20
21
22
23
24
25
libvlc_srtp_la_LIBADD = $(GCRYPT_LIBS)
srtp_test_recv_CPPFLAGS =
srtp_test_recv_LDADD = libvlc_srtp.la
srtp_test_aes_CPPFLAGS =
srtp_test_aes_LDADD = $(GCRYPT_LIBS)

26
librtp_plugin_la_DEPENDENCIES =
27
if HAVE_GCRYPT
28
29
30
31
32
33
34
35
noinst_HEADERS = srtp.h
noinst_LTLIBRARIES = libvlc_srtp.la

check_PROGRAMS = srtp-test-aes srtp-test-recv
TESTS = $(check_PROGRAMS)

librtp_plugin_la_CFLAGS += -DHAVE_SRTP $(GCRYPT_CFLAGS)
librtp_plugin_la_LIBADD += libvlc_srtp.la $(GCRYPT_LIBS)
36
37
librtp_plugin_la_DEPENDENCIES += libvlc_srtp.la
endif
38
39
40
if HAVE_WIN32
librtp_plugin_la_DEPENDENCIES += librtp_plugin.rc.o
endif
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55

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