ac2f47612994ba972173f089f14c46c7c14492ae
[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  libgnunetconversation.la
20
21 pkgcfgdir= $(prefix)/share/gnunet/config.d/
22
23 libexecdir= $(prefix)/lib/gnunet/libexec/
24
25 libgnunetmicrophone_la_SOURCES = \
26   microphone.c 
27 libgnunetmicrophone_la_LIBADD = \
28   -lgnunetutil
29 libgnunetmicrophone_la_LDFLAGS = \
30   $(GNUNET_LDFLAGS)  $(WINFLAGS) \
31   -version-info 0:0:0
32
33
34 libgnunetconversation_la_SOURCES = \
35   conversation_api.c \
36   conversation_api2.c 
37 libgnunetconversation_la_LIBADD = \
38   libgnunetmicrophone.la \
39   $(top_builddir)/src/gns/libgnunetgns.la \
40   $(top_builddir)/src/namestore/libgnunetnamestore.la \
41   $(top_builddir)/src/util/libgnunetutil.la 
42
43 libgnunetconversation_la_LDFLAGS = \
44   $(GNUNET_LDFLAGS)  $(WINFLAGS) \
45   -version-info 0:0:0
46
47
48 bin_PROGRAMS = gnunet-conversation
49
50 libexec_PROGRAMS = \
51   gnunet-service-conversation 
52
53 if HAVE_PULSE
54 if HAVE_OPUS
55 libexec_PROGRAMS +=
56   gnunet-helper-audio-record \
57   gnunet-helper-audio-playback
58 endif
59 endif
60
61
62
63 check_PROGRAMS = \
64  test_conversation_api 
65
66 TESTS = $(check_PROGRAMS)
67
68
69 gnunet_helper_audio_record_SOURCES = \
70   gnunet-helper-audio-record.c
71 gnunet_helper_audio_record_LDADD = \
72   -lgnunetutil \
73   -lpulse  -lopus\
74   $(INTLLIBS) 
75 gnunet_helper_audio_record_LDFLAGS = \
76   $(GNUNET_LDFLAGS)  $(WINFLAGS) -export-dynamic
77
78 gnunet_helper_audio_playback_SOURCES = \
79   gnunet-helper-audio-playback.c
80 gnunet_helper_audio_playback_LDADD = \
81   -lgnunetutil \
82   -lpulse -lopus\
83   $(INTLLIBS) 
84 gnunet_helper_audio_playback_LDFLAGS = \
85   $(GNUNET_LDFLAGS)  $(WINFLAGS) -export-dynamic  
86
87 gnunet_service_conversation_SOURCES = \
88   gnunet-service-conversation.c
89 gnunet_service_conversation_LDADD = \
90   -lgnunetutil -lgnunetmesh -lgnunetnamestore -lgnunetgns\
91     $(INTLLIBS) 
92 gnunet_service_conversation_LDFLAGS = \
93   $(GNUNET_LDFLAGS)  $(WINFLAGS) -export-dynamic 
94
95 gnunet_conversation_SOURCES = \
96   gnunet-conversation.c
97 gnunet_conversation_LDADD = \
98   -lgnunetutil -lgnunetconversation \
99   $(INTLLIBS) 
100 gnunet_conversation_LDFLAGS = \
101  $(GNUNET_LDFLAGS) $(WINFLAGS) -export-dynamic 
102
103
104
105 test_conversation_api_SOURCES = \
106  test_conversation_api.c
107 test_conversation_api_LDADD = \
108   $(top_builddir)/src/conversation/libgnunetconversation.la \
109   -lgnunetutil
110 test_conversation_api_LDFLAGS = \
111  $(GNUNET_LDFLAGS)  $(WINFLAGS) -export-dynamic
112
113  pkgcfg_DATA = conversation.conf