-detect tunnel creation error
[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   -lgnunetutil
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   -lgnunetutil
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/namestore/libgnunetnamestore.la \
110   $(top_builddir)/src/identity/libgnunetidentity.la \
111   $(top_builddir)/src/util/libgnunetutil.la \
112   $(INTLLIBS) 
113 gnunet_conversation_LDFLAGS = \
114  $(GNUNET_LDFLAGS) $(WINFLAGS) 
115
116 gnunet_conversation_test_SOURCES = \
117   gnunet-conversation-test.c
118 gnunet_conversation_test_LDADD = \
119   libgnunetmicrophone.la \
120   libgnunetspeaker.la \
121   $(top_builddir)/src/util/libgnunetutil.la  \
122   $(INTLLIBS) 
123 gnunet_conversation_test_LDFLAGS = \
124  $(GNUNET_LDFLAGS) $(WINFLAGS) 
125
126
127 test_conversation_api_SOURCES = \
128  test_conversation_api.c
129 test_conversation_api_LDADD = \
130   libgnunetconversation.la \
131   $(top_builddir)/src/util/libgnunetutil.la 
132 test_conversation_api_LDFLAGS = \
133  $(GNUNET_LDFLAGS)  $(WINFLAGS) -export-dynamic
134
135  pkgcfg_DATA = conversation.conf