-implement speaker library
[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 = \
18  libgnunetmicrophone.la \
19  libgnunetspeaker.la \
20  libgnunetconversation.la
21
22 pkgcfgdir= $(prefix)/share/gnunet/config.d/
23
24 libexecdir= $(prefix)/lib/gnunet/libexec/
25
26 libgnunetmicrophone_la_SOURCES = \
27   microphone.c 
28 libgnunetmicrophone_la_LIBADD = \
29   -lgnunetutil
30 libgnunetmicrophone_la_LDFLAGS = \
31   $(GNUNET_LDFLAGS)  $(WINFLAGS) \
32   -version-info 0:0:0
33
34 libgnunetspeaker_la_SOURCES = \
35   speaker.c 
36 libgnunetspeaker_la_LIBADD = \
37   -lgnunetutil
38 libgnunetspeaker_la_LDFLAGS = \
39   $(GNUNET_LDFLAGS)  $(WINFLAGS) \
40   -version-info 0:0:0
41
42
43 libgnunetconversation_la_SOURCES = \
44   conversation_api.c \
45   conversation_api2.c 
46 libgnunetconversation_la_LIBADD = \
47   libgnunetmicrophone.la \
48   libgnunetspeaker.la \
49   $(top_builddir)/src/gns/libgnunetgns.la \
50   $(top_builddir)/src/namestore/libgnunetnamestore.la \
51   $(top_builddir)/src/util/libgnunetutil.la 
52
53 libgnunetconversation_la_LDFLAGS = \
54   $(GNUNET_LDFLAGS)  $(WINFLAGS) \
55   -version-info 0:0:0
56
57
58 bin_PROGRAMS = gnunet-conversation
59
60 libexec_PROGRAMS = \
61   gnunet-service-conversation 
62
63 if HAVE_PULSE
64 if HAVE_OPUS
65 libexec_PROGRAMS +=
66   gnunet-helper-audio-record \
67   gnunet-helper-audio-playback
68 endif
69 endif
70
71
72
73 check_PROGRAMS = \
74  test_conversation_api 
75
76 TESTS = $(check_PROGRAMS)
77
78
79 gnunet_helper_audio_record_SOURCES = \
80   gnunet-helper-audio-record.c
81 gnunet_helper_audio_record_LDADD = \
82   -lgnunetutil \
83   -lpulse  -lopus\
84   $(INTLLIBS) 
85 gnunet_helper_audio_record_LDFLAGS = \
86   $(GNUNET_LDFLAGS)  $(WINFLAGS) -export-dynamic
87
88 gnunet_helper_audio_playback_SOURCES = \
89   gnunet-helper-audio-playback.c
90 gnunet_helper_audio_playback_LDADD = \
91   -lgnunetutil \
92   -lpulse -lopus\
93   $(INTLLIBS) 
94 gnunet_helper_audio_playback_LDFLAGS = \
95   $(GNUNET_LDFLAGS)  $(WINFLAGS) -export-dynamic  
96
97 gnunet_service_conversation_SOURCES = \
98   gnunet-service-conversation.c
99 gnunet_service_conversation_LDADD = \
100   -lgnunetutil -lgnunetmesh -lgnunetnamestore -lgnunetgns\
101     $(INTLLIBS) 
102 gnunet_service_conversation_LDFLAGS = \
103   $(GNUNET_LDFLAGS)  $(WINFLAGS) -export-dynamic 
104
105 gnunet_conversation_SOURCES = \
106   gnunet-conversation.c
107 gnunet_conversation_LDADD = \
108   -lgnunetutil -lgnunetconversation \
109   $(INTLLIBS) 
110 gnunet_conversation_LDFLAGS = \
111  $(GNUNET_LDFLAGS) $(WINFLAGS) -export-dynamic 
112
113
114
115 test_conversation_api_SOURCES = \
116  test_conversation_api.c
117 test_conversation_api_LDADD = \
118   $(top_builddir)/src/conversation/libgnunetconversation.la \
119   -lgnunetutil
120 test_conversation_api_LDFLAGS = \
121  $(GNUNET_LDFLAGS)  $(WINFLAGS) -export-dynamic
122
123  pkgcfg_DATA = conversation.conf