]> git.sesse.net Git - vlc/blob - modules/access/rtp/Makefile.am
modules: use different directory prefixes for each plugins subdirectory
[vlc] / modules / access / rtp / Makefile.am
1 include $(top_srcdir)/modules/common.am
2 accessdir = $(pluginsdir)/access
3
4 # RTP plugin
5 access_LTLIBRARIES = librtp_plugin.la
6 librtp_plugin_la_SOURCES = \
7         rtp.c \
8         rtp.h \
9         input.c \
10         session.c \
11         xiph.c
12 librtp_plugin_la_CFLAGS = $(AM_CFLAGS)
13 librtp_plugin_la_LIBADD = $(AM_LIBADD) $(SOCKET_LIBS)
14
15 # Secure RTP library
16 libvlc_srtp_la_SOURCES = srtp.c
17 libvlc_srtp_la_CPPFLAGS =
18 libvlc_srtp_la_CFLAGS = $(GCRYPT_CFLAGS)
19 libvlc_srtp_la_LDFLAGS = -static
20 libvlc_srtp_la_LIBADD = $(GCRYPT_LIBS)
21 srtp_test_recv_CPPFLAGS =
22 srtp_test_recv_LDADD = libvlc_srtp.la
23 srtp_test_aes_CPPFLAGS =
24 srtp_test_aes_LDADD = $(GCRYPT_LIBS)
25
26 librtp_plugin_la_DEPENDENCIES =
27 if HAVE_GCRYPT
28 noinst_HEADERS = srtp.h
29 noinst_LTLIBRARIES = libvlc_srtp.la
30
31 check_PROGRAMS = srtp-test-aes srtp-test-recv
32 TESTS = $(check_PROGRAMS)
33
34 librtp_plugin_la_CFLAGS += -DHAVE_SRTP $(GCRYPT_CFLAGS)
35 librtp_plugin_la_LIBADD += libvlc_srtp.la $(GCRYPT_LIBS)
36 librtp_plugin_la_DEPENDENCIES += libvlc_srtp.la
37 endif
38 if HAVE_WIN32
39 librtp_plugin_la_DEPENDENCIES += librtp_plugin.rc.o
40 endif
41
42 lcov-run:
43         rm -Rf *.gcda lcov
44         $(MAKE) $(AM_MAKEFLAGS) check
45
46 lcov-pre.out:
47         lcov -c -d . -o lcov.tmp
48
49 lcov.out: lcov-pre.out
50         lcov -r lcov.tmp '*test*' > lcov.out
51
52 lcov: lcov.out
53         genhtml lcov.out -o lcov
54
55 .PHONY: lcov-run