d336d93e6ec61fd2eb5ca9d895d2034f212fcbb2
[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   -lgnunetutil \
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   -lgnunetutil \
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   -lgnunetutil -lgnunetmesh -lgnunetnamestore -lgnunetgns\
104     $(INTLLIBS) 
105 gnunet_service_conversation_LDFLAGS = \
106   $(GNUNET_LDFLAGS)  $(WINFLAGS) 
107
108 gnunet_service_conversation_new_SOURCES = \
109   gnunet-service-conversation-new.c
110 gnunet_service_conversation_new_LDADD = \
111   libgnunetconversation.la \
112   libgnunetspeaker.la \
113   libgnunetmicrophone.la \
114   $(top_builddir)/src/mesh/libgnunetmesh.la \
115   $(top_builddir)/src/util/libgnunetutil.la \
116   $(INTLLIBS) 
117
118 gnunet_service_conversation_new_LDFLAGS = \
119   $(GNUNET_LDFLAGS)  $(WINFLAGS) 
120
121 gnunet_conversation_SOURCES = \
122   gnunet-conversation.c
123 gnunet_conversation_LDADD = \
124   libgnunetconversation.la \
125   -lgnunetutil \
126   $(INTLLIBS) 
127 gnunet_conversation_LDFLAGS = \
128  $(GNUNET_LDFLAGS) $(WINFLAGS) 
129
130 gnunet_conversation_new_SOURCES = \
131   gnunet-conversation-new.c
132 gnunet_conversation_new_LDADD = \
133   libgnunetmicrophone.la \
134   libgnunetspeaker.la \
135   libgnunetconversation.la \
136   $(top_builddir)/src/gns/libgnunetgns.la \
137   $(top_builddir)/src/namestore/libgnunetnamestore.la \
138   $(top_builddir)/src/identity/libgnunetidentity.la \
139   $(top_builddir)/src/util/libgnunetutil.la \
140   $(INTLLIBS) 
141 gnunet_conversation_new_LDFLAGS = \
142  $(GNUNET_LDFLAGS) $(WINFLAGS) 
143
144 gnunet_conversation_test_SOURCES = \
145   gnunet-conversation-test.c
146 gnunet_conversation_test_LDADD = \
147   libgnunetmicrophone.la \
148   libgnunetspeaker.la \
149   $(top_builddir)/src/util/libgnunetutil.la  \
150   $(INTLLIBS) 
151 gnunet_conversation_test_LDFLAGS = \
152  $(GNUNET_LDFLAGS) $(WINFLAGS) 
153
154
155 test_conversation_api_SOURCES = \
156  test_conversation_api.c
157 test_conversation_api_LDADD = \
158   libgnunetconversation.la \
159   -lgnunetutil
160 test_conversation_api_LDFLAGS = \
161  $(GNUNET_LDFLAGS)  $(WINFLAGS) -export-dynamic
162
163  pkgcfg_DATA = conversation.conf