-tool to record and replay, to test microphone and speaker logic
[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/util/libgnunetutil.la 
52
53 libgnunetconversation_la_LDFLAGS = \
54   $(GNUNET_LDFLAGS)  $(WINFLAGS) \
55   -version-info 0:0:0
56
57
58 bin_PROGRAMS = \
59  gnunet-conversation-test \
60  gnunet-conversation
61
62 libexec_PROGRAMS = \
63   gnunet-service-conversation 
64
65 if HAVE_PULSE
66 if HAVE_OPUS
67 libexec_PROGRAMS +=
68   gnunet-helper-audio-record \
69   gnunet-helper-audio-playback
70 endif
71 endif
72
73
74
75 check_PROGRAMS = \
76  test_conversation_api 
77
78 TESTS = $(check_PROGRAMS)
79
80
81 gnunet_helper_audio_record_SOURCES = \
82   gnunet-helper-audio-record.c
83 gnunet_helper_audio_record_LDADD = \
84   -lgnunetutil \
85   -lpulse  -lopus\
86   $(INTLLIBS) 
87 gnunet_helper_audio_record_LDFLAGS = \
88   $(GNUNET_LDFLAGS)  $(WINFLAGS) 
89
90 gnunet_helper_audio_playback_SOURCES = \
91   gnunet-helper-audio-playback.c
92 gnunet_helper_audio_playback_LDADD = \
93   -lgnunetutil \
94   -lpulse -lopus\
95   $(INTLLIBS) 
96 gnunet_helper_audio_playback_LDFLAGS = \
97   $(GNUNET_LDFLAGS)  $(WINFLAGS) 
98
99 gnunet_service_conversation_SOURCES = \
100   gnunet-service-conversation.c
101 gnunet_service_conversation_LDADD = \
102   -lgnunetutil -lgnunetmesh -lgnunetnamestore -lgnunetgns\
103     $(INTLLIBS) 
104 gnunet_service_conversation_LDFLAGS = \
105   $(GNUNET_LDFLAGS)  $(WINFLAGS) 
106
107 gnunet_conversation_SOURCES = \
108   gnunet-conversation.c
109 gnunet_conversation_LDADD = \
110   -lgnunetutil -lgnunetconversation \
111   $(INTLLIBS) 
112 gnunet_conversation_LDFLAGS = \
113  $(GNUNET_LDFLAGS) $(WINFLAGS) 
114
115 gnunet_conversation_test_SOURCES = \
116   gnunet-conversation-test.c
117 gnunet_conversation_test_LDADD = \
118   libgnunetmicrophone.la \
119   libgnunetspeaker.la \
120   $(top_builddir)/src/util/libgnunetutil.la 
121   $(INTLLIBS) 
122 gnunet_conversation_test_LDFLAGS = \
123  $(GNUNET_LDFLAGS) $(WINFLAGS) 
124
125
126 test_conversation_api_SOURCES = \
127  test_conversation_api.c
128 test_conversation_api_LDADD = \
129   $(top_builddir)/src/conversation/libgnunetconversation.la \
130   -lgnunetutil
131 test_conversation_api_LDFLAGS = \
132  $(GNUNET_LDFLAGS)  $(WINFLAGS) -export-dynamic
133
134  pkgcfg_DATA = conversation.conf