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