a91e6a40c36f1fe6fced7ee35f63e342e529b03a
[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
63 libexec_PROGRAMS = \
64   gnunet-service-conversation 
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_conversation_SOURCES = \
109   gnunet-conversation.c
110 gnunet_conversation_LDADD = \
111   -lgnunetutil -lgnunetconversation \
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   $(top_builddir)/src/conversation/libgnunetconversation.la \
131   -lgnunetutil
132 test_conversation_api_LDFLAGS = \
133  $(GNUNET_LDFLAGS)  $(WINFLAGS) -export-dynamic
134
135  pkgcfg_DATA = conversation.conf