-service skeleton
[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   gnunet-service-conversation-new 
66
67 if HAVE_PULSE
68 if HAVE_OPUS
69 libexec_PROGRAMS += \
70   gnunet-helper-audio-record \
71   gnunet-helper-audio-playback
72 endif
73 endif
74
75
76
77 check_PROGRAMS = \
78  test_conversation_api 
79
80 TESTS = $(check_PROGRAMS)
81
82
83 gnunet_helper_audio_record_SOURCES = \
84   gnunet-helper-audio-record.c
85 gnunet_helper_audio_record_LDADD = \
86   -lgnunetutil \
87   -lpulse  -lopus\
88   $(INTLLIBS) 
89 gnunet_helper_audio_record_LDFLAGS = \
90   $(GNUNET_LDFLAGS)  $(WINFLAGS) 
91
92 gnunet_helper_audio_playback_SOURCES = \
93   gnunet-helper-audio-playback.c
94 gnunet_helper_audio_playback_LDADD = \
95   -lgnunetutil \
96   -lpulse -lopus\
97   $(INTLLIBS) 
98 gnunet_helper_audio_playback_LDFLAGS = \
99   $(GNUNET_LDFLAGS)  $(WINFLAGS) 
100
101 gnunet_service_conversation_SOURCES = \
102   gnunet-service-conversation.c
103 gnunet_service_conversation_LDADD = \
104   -lgnunetutil -lgnunetmesh -lgnunetnamestore -lgnunetgns\
105     $(INTLLIBS) 
106 gnunet_service_conversation_LDFLAGS = \
107   $(GNUNET_LDFLAGS)  $(WINFLAGS) 
108
109 gnunet_service_conversation_new_SOURCES = \
110   gnunet-service-conversation-new.c
111 gnunet_service_conversation_new_LDADD = \
112   -lgnunetutil -lgnunetmesh \
113     $(INTLLIBS) 
114 gnunet_service_conversation_new_LDFLAGS = \
115   $(GNUNET_LDFLAGS)  $(WINFLAGS) 
116
117 gnunet_conversation_SOURCES = \
118   gnunet-conversation.c
119 gnunet_conversation_LDADD = \
120   -lgnunetutil -lgnunetconversation \
121   $(INTLLIBS) 
122 gnunet_conversation_LDFLAGS = \
123  $(GNUNET_LDFLAGS) $(WINFLAGS) 
124
125 gnunet_conversation_test_SOURCES = \
126   gnunet-conversation-test.c
127 gnunet_conversation_test_LDADD = \
128   libgnunetmicrophone.la \
129   libgnunetspeaker.la \
130   $(top_builddir)/src/util/libgnunetutil.la  \
131   $(INTLLIBS) 
132 gnunet_conversation_test_LDFLAGS = \
133  $(GNUNET_LDFLAGS) $(WINFLAGS) 
134
135
136 test_conversation_api_SOURCES = \
137  test_conversation_api.c
138 test_conversation_api_LDADD = \
139   $(top_builddir)/src/conversation/libgnunetconversation.la \
140   -lgnunetutil
141 test_conversation_api_LDFLAGS = \
142  $(GNUNET_LDFLAGS)  $(WINFLAGS) -export-dynamic
143
144  pkgcfg_DATA = conversation.conf