Makefile.am 1.12 KB
Newer Older
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
1
# RTP plugin
2
access_LTLIBRARIES += librtp_plugin.la
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
3
librtp_plugin_la_SOURCES = \
4 5 6 7 8
	access/rtp/input.c \
	access/rtp/session.c \
	access/rtp/xiph.c \
	access/rtp/rtp.c access/rtp/rtp.h
librtp_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/access/rtp
9
librtp_plugin_la_CFLAGS = $(AM_CFLAGS)
10
librtp_plugin_la_LIBADD = $(SOCKET_LIBS) $(LIBPTHREAD)
11

12
# Secure RTP library
13 14
libvlc_srtp_la_SOURCES = access/rtp/srtp.c access/rtp/srtp.h
libvlc_srtp_la_CPPFLAGS = -I$(srcdir)/access/rtp
15
libvlc_srtp_la_CFLAGS = $(GCRYPT_CFLAGS)
16
libvlc_srtp_la_LDFLAGS = -static
17
libvlc_srtp_la_LIBADD = $(GCRYPT_LIBS) $(LIBPTHREAD)
18
srtp_test_recv_SOURCES = access/rtp/srtp-test-recv.c
19
srtp_test_recv_LDADD = libvlc_srtp.la
20
srtp_test_aes_SOURCES = access/rtp/srtp-test-aes.c
21 22
srtp_test_aes_LDADD = $(GCRYPT_LIBS)

23
librtp_plugin_la_DEPENDENCIES =
24
if HAVE_GCRYPT
25
noinst_LTLIBRARIES += libvlc_srtp.la
26

27 28
check_PROGRAMS += srtp-test-aes srtp-test-recv
TESTS += srtp-test-aes srtp-test-recv
29

30 31
librtp_plugin_la_CPPFLAGS += -DHAVE_SRTP
librtp_plugin_la_CFLAGS += $(GCRYPT_CFLAGS)
32
librtp_plugin_la_LIBADD += libvlc_srtp.la $(GCRYPT_LIBS)
33 34
librtp_plugin_la_DEPENDENCIES += libvlc_srtp.la
endif