-fixes to build system, integrating conversation in non-experimental builds
[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   $(top_builddir)/src/gns/libgnunetgns.la \
48   $(top_builddir)/src/namestore/libgnunetnamestore.la \
49   $(top_builddir)/src/identity/libgnunetidentity.la \
50   $(top_builddir)/src/util/libgnunetutil.la 
51
52 libgnunetconversation_la_LDFLAGS = \
53   $(GNUNET_LDFLAGS)  $(WINFLAGS) \
54   -version-info 0:0:0
55
56
57 bin_PROGRAMS = \
58  gnunet-conversation-test \
59  gnunet-conversation \
60  gnunet-conversation-new
61
62 libexec_PROGRAMS = \
63   gnunet-service-conversation \
64   gnunet-service-conversation-new 
65
66 if HAVE_PULSE
67 if HAVE_OPUS
68 libexec_PROGRAMS += \
69   gnunet-helper-audio-record \
70   gnunet-helper-audio-playback
71 endif
72 endif
73
74
75
76 check_PROGRAMS = \
77  test_conversation_api 
78
79 TESTS = $(check_PROGRAMS)
80
81
82 gnunet_helper_audio_record_SOURCES = \
83   gnunet-helper-audio-record.c
84 gnunet_helper_audio_record_LDADD = \
85   $(top_builddir)/src/util/libgnunetutil.la \
86   -lpulse  -lopus\
87   $(INTLLIBS) 
88 gnunet_helper_audio_record_LDFLAGS = \
89   $(GNUNET_LDFLAGS)  $(WINFLAGS) 
90
91 gnunet_helper_audio_playback_SOURCES = \
92   gnunet-helper-audio-playback.c
93 gnunet_helper_audio_playback_LDADD = \
94   $(top_builddir)/src/util/libgnunetutil.la \
95   -lpulse -lopus\
96   $(INTLLIBS) 
97 gnunet_helper_audio_playback_LDFLAGS = \
98   $(GNUNET_LDFLAGS)  $(WINFLAGS) 
99
100 gnunet_service_conversation_SOURCES = \
101   gnunet-service-conversation.c
102 gnunet_service_conversation_LDADD = \
103   $(top_builddir)/src/gns/libgnunetgns.la \
104   $(top_builddir)/src/mesh/libgnunetmesh.la \
105   $(top_builddir)/src/namestore/libgnunetnamestore.la \
106   $(top_builddir)/src/util/libgnunetutil.la \
107   $(INTLLIBS) 
108 gnunet_service_conversation_LDFLAGS = \
109   $(GNUNET_LDFLAGS)  $(WINFLAGS) 
110
111 gnunet_service_conversation_new_SOURCES = \
112   gnunet-service-conversation-new.c
113 gnunet_service_conversation_new_LDADD = \
114   libgnunetconversation.la \
115   libgnunetspeaker.la \
116   libgnunetmicrophone.la \
117   $(top_builddir)/src/mesh/libgnunetmesh.la \
118   $(top_builddir)/src/util/libgnunetutil.la \
119   $(INTLLIBS) 
120
121 gnunet_service_conversation_new_LDFLAGS = \
122   $(GNUNET_LDFLAGS)  $(WINFLAGS) 
123
124 gnunet_conversation_SOURCES = \
125   gnunet-conversation.c
126 gnunet_conversation_LDADD = \
127   libgnunetconversation.la \
128   $(top_builddir)/src/util/libgnunetutil.la \
129   $(INTLLIBS) 
130 gnunet_conversation_LDFLAGS = \
131  $(GNUNET_LDFLAGS) $(WINFLAGS) 
132
133 gnunet_conversation_new_SOURCES = \
134   gnunet-conversation-new.c
135 gnunet_conversation_new_LDADD = \
136   libgnunetmicrophone.la \
137   libgnunetspeaker.la \
138   libgnunetconversation.la \
139   $(top_builddir)/src/gns/libgnunetgns.la \
140   $(top_builddir)/src/namestore/libgnunetnamestore.la \
141   $(top_builddir)/src/identity/libgnunetidentity.la \
142   $(top_builddir)/src/util/libgnunetutil.la \
143   $(INTLLIBS) 
144 gnunet_conversation_new_LDFLAGS = \
145  $(GNUNET_LDFLAGS) $(WINFLAGS) 
146
147 gnunet_conversation_test_SOURCES = \
148   gnunet-conversation-test.c
149 gnunet_conversation_test_LDADD = \
150   libgnunetmicrophone.la \
151   libgnunetspeaker.la \
152   $(top_builddir)/src/util/libgnunetutil.la  \
153   $(INTLLIBS) 
154 gnunet_conversation_test_LDFLAGS = \
155  $(GNUNET_LDFLAGS) $(WINFLAGS) 
156
157
158 test_conversation_api_SOURCES = \
159  test_conversation_api.c
160 test_conversation_api_LDADD = \
161   libgnunetconversation.la \
162   $(top_builddir)/src/util/libgnunetutil.la 
163 test_conversation_api_LDFLAGS = \
164  $(GNUNET_LDFLAGS)  $(WINFLAGS) -export-dynamic
165
166  pkgcfg_DATA = conversation.conf