-add configure tests for opus/pulseaudio for conversation
[oweals/gnunet.git] / src / conversation / Makefile.am
1 SUBDIRS = .
2
3 INCLUDES = \
4   -I$(top_srcdir)/src/include \
5   -I$(top_srcdir)
6
7 AM_CPPFLAGS = \
8   $(GNUNET_CPPFLAGS)
9
10 # Set this variable if you are using GNUNET libraries for all programs and
11 # libraries. You don't then need to target-specific _LDFLAGS with GNUNET_LDFLAGS
12 # AM_LDFLAGS = \
13 #   $(GNUNET_LDFLAGS) \
14 #   $(WINFLAGS) \
15 #   -export-dynamic
16
17 lib_LTLIBRARIES = libgnunetconversation.la
18
19 pkgcfgdir= $(prefix)/share/gnunet/config.d/
20
21 libexecdir= $(prefix)/lib/gnunet/libexec/
22
23 libgnunetconversation_la_SOURCES = \
24   conversation_api.c 
25 libgnunetconversation_la_LIBADD = \
26   -lgnunetutil -lgnunetnamestore -lgnunetgns
27 libgnunetconversation_la_LDFLAGS = \
28   $(GNUNET_LDFLAGS)  $(WINFLAGS) \
29   -version-info 0:0:0
30
31
32 bin_PROGRAMS = gnunet-conversation
33
34 libexec_PROGRAMS = \
35   gnunet-service-conversation 
36
37 if HAVE_PULSE
38 if HAVE_OPUS
39 libexec_PROGRAMS +=
40   gnunet-helper-audio-record \
41   gnunet-helper-audio-playback
42 endif
43 endif
44
45
46
47 check_PROGRAMS = \
48  test_conversation_api 
49
50 TESTS = $(check_PROGRAMS)
51
52
53 gnunet_helper_audio_record_SOURCES = \
54   gnunet-helper-audio-record.c
55 gnunet_helper_audio_record_LDADD = \
56   -lgnunetutil \
57   -lpulse  -lopus\
58   $(INTLLIBS) 
59 gnunet_helper_audio_record_LDFLAGS = \
60   $(GNUNET_LDFLAGS)  $(WINFLAGS) -export-dynamic
61
62 gnunet_helper_audio_playback_SOURCES = \
63   gnunet-helper-audio-playback.c
64 gnunet_helper_audio_playback_LDADD = \
65   -lgnunetutil \
66   -lpulse -lopus\
67   $(INTLLIBS) 
68 gnunet_helper_audio_playback_LDFLAGS = \
69   $(GNUNET_LDFLAGS)  $(WINFLAGS) -export-dynamic  
70
71 gnunet_service_conversation_SOURCES = \
72   gnunet-service-conversation.c
73 gnunet_service_conversation_LDADD = \
74   -lgnunetutil -lgnunetmesh -lgnunetnamestore -lgnunetgns\
75     $(INTLLIBS) 
76 gnunet_service_conversation_LDFLAGS = \
77   $(GNUNET_LDFLAGS)  $(WINFLAGS) -export-dynamic 
78
79 gnunet_conversation_SOURCES = \
80   gnunet-conversation.c
81 gnunet_conversation_LDADD = \
82   -lgnunetutil -lgnunetconversation \
83   $(INTLLIBS) 
84 gnunet_conversation_LDFLAGS = \
85  $(GNUNET_LDFLAGS) $(WINFLAGS) -export-dynamic 
86
87
88
89 test_conversation_api_SOURCES = \
90  test_conversation_api.c
91 test_conversation_api_LDADD = \
92   $(top_builddir)/src/conversation/libgnunetconversation.la \
93   -lgnunetutil
94 test_conversation_api_LDFLAGS = \
95  $(GNUNET_LDFLAGS)  $(WINFLAGS) -export-dynamic
96
97  pkgcfg_DATA = conversation.conf