-moving namestore_common functions to gnsrecord library
[oweals/gnunet.git] / src / conversation / Makefile.am
1 SUBDIRS = .
2
3 plugindir = $(libdir)/gnunet
4
5 INCLUDES = \
6   -I$(top_srcdir)/src/include \
7   -I$(top_srcdir)
8
9 AM_CPPFLAGS = \
10   $(GNUNET_CPPFLAGS)
11
12 lib_LTLIBRARIES = \
13  libgnunetmicrophone.la \
14  libgnunetspeaker.la \
15  libgnunetconversation.la
16
17 pkgcfgdir= $(prefix)/share/gnunet/config.d/
18
19 libexecdir= $(prefix)/lib/gnunet/libexec/
20
21 plugin_LTLIBRARIES = \
22   libgnunet_plugin_gnsrecord_conversation.la
23
24
25 libgnunet_plugin_gnsrecord_conversation_la_SOURCES = \
26   plugin_gnsrecord_conversation.c
27 libgnunet_plugin_gnsrecord_conversation_la_LIBADD = \
28   $(top_builddir)/src/util/libgnunetutil.la \
29   $(LTLIBINTL)
30 libgnunet_plugin_gnsrecord_conversation_la_LDFLAGS = \
31  $(GN_PLUGIN_LDFLAGS)
32
33
34 libgnunetmicrophone_la_SOURCES = \
35   microphone.c
36 libgnunetmicrophone_la_LIBADD = \
37  $(top_builddir)/src/util/libgnunetutil.la
38 libgnunetmicrophone_la_LDFLAGS = \
39   $(GNUNET_LDFLAGS)  $(WINFLAGS) \
40   -version-info 0:0:0
41
42 libgnunetspeaker_la_SOURCES = \
43   speaker.c
44 libgnunetspeaker_la_LIBADD = \
45  $(top_builddir)/src/util/libgnunetutil.la
46 libgnunetspeaker_la_LDFLAGS = \
47   $(GNUNET_LDFLAGS)  $(WINFLAGS) \
48   -version-info 0:0:0
49
50
51 libgnunetconversation_la_SOURCES = \
52   conversation_api.c
53 libgnunetconversation_la_LIBADD = \
54   $(top_builddir)/src/gns/libgnunetgns.la \
55   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
56   $(top_builddir)/src/namestore/libgnunetnamestore.la \
57   $(top_builddir)/src/identity/libgnunetidentity.la \
58   $(top_builddir)/src/util/libgnunetutil.la
59
60 libgnunetconversation_la_LDFLAGS = \
61   $(GNUNET_LDFLAGS)  $(WINFLAGS) \
62   -version-info 0:0:0
63
64
65 bin_PROGRAMS = \
66  gnunet-conversation-test \
67  gnunet-conversation
68
69 libexec_PROGRAMS = \
70   gnunet-service-conversation
71
72 if HAVE_PULSE
73 if HAVE_OPUS
74 libexec_PROGRAMS += \
75   gnunet-helper-audio-record \
76   gnunet-helper-audio-playback
77 endif
78 endif
79
80
81
82 check_PROGRAMS = \
83  test_conversation_api
84
85 TESTS = $(check_PROGRAMS)
86
87
88 gnunet_helper_audio_record_SOURCES = \
89   gnunet-helper-audio-record.c
90 gnunet_helper_audio_record_LDADD = \
91   $(top_builddir)/src/util/libgnunetutil.la \
92   -lpulse  -lopus\
93   $(INTLLIBS)
94 gnunet_helper_audio_record_LDFLAGS = \
95   $(GNUNET_LDFLAGS)  $(WINFLAGS)
96
97 gnunet_helper_audio_playback_SOURCES = \
98   gnunet-helper-audio-playback.c
99 gnunet_helper_audio_playback_LDADD = \
100   $(top_builddir)/src/util/libgnunetutil.la \
101   -lpulse -lopus\
102   $(INTLLIBS)
103 gnunet_helper_audio_playback_LDFLAGS = \
104   $(GNUNET_LDFLAGS)  $(WINFLAGS)
105
106 gnunet_service_conversation_SOURCES = \
107   gnunet-service-conversation.c
108 gnunet_service_conversation_LDADD = \
109   libgnunetconversation.la \
110   libgnunetspeaker.la \
111   libgnunetmicrophone.la \
112   $(top_builddir)/src/mesh/libgnunetmesh.la \
113   $(top_builddir)/src/util/libgnunetutil.la \
114   $(INTLLIBS)
115 gnunet_service_conversation_LDFLAGS = \
116   $(GNUNET_LDFLAGS)  $(WINFLAGS)
117
118 gnunet_conversation_SOURCES = \
119   gnunet-conversation.c
120 gnunet_conversation_LDADD = \
121   libgnunetmicrophone.la \
122   libgnunetspeaker.la \
123   libgnunetconversation.la \
124   $(top_builddir)/src/gns/libgnunetgns.la \
125   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
126   $(top_builddir)/src/namestore/libgnunetnamestore.la \
127   $(top_builddir)/src/identity/libgnunetidentity.la \
128   $(top_builddir)/src/util/libgnunetutil.la \
129   $(INTLLIBS)
130 gnunet_conversation_LDFLAGS = \
131  $(GNUNET_LDFLAGS) $(WINFLAGS)
132
133 gnunet_conversation_test_SOURCES = \
134   gnunet-conversation-test.c
135 gnunet_conversation_test_LDADD = \
136   libgnunetmicrophone.la \
137   libgnunetspeaker.la \
138   $(top_builddir)/src/util/libgnunetutil.la  \
139   $(INTLLIBS)
140 gnunet_conversation_test_LDFLAGS = \
141  $(GNUNET_LDFLAGS) $(WINFLAGS)
142
143
144 test_conversation_api_SOURCES = \
145  test_conversation_api.c
146 test_conversation_api_LDADD = \
147   libgnunetconversation.la \
148   $(top_builddir)/src/util/libgnunetutil.la
149 test_conversation_api_LDFLAGS = \
150  $(GNUNET_LDFLAGS)  $(WINFLAGS) -export-dynamic
151
152  pkgcfg_DATA = conversation.conf