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