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