-simplifying core API (#2400)
[oweals/gnunet.git] / src / chat / Makefile.am
1 INCLUDES = -I$(top_srcdir)/src/include
2
3 pkgcfgdir= $(pkgdatadir)/config.d/
4
5 pkgcfg_DATA = \
6   chat.conf
7
8 if MINGW
9  WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols 
10 endif
11
12 if USE_COVERAGE
13   AM_CFLAGS = -fprofile-arcs -ftest-coverage
14 endif
15
16 lib_LTLIBRARIES = libgnunetchat.la
17
18 libgnunetchat_la_SOURCES = \
19   chat.c chat.h
20
21 libgnunetchat_la_LIBADD = \
22   $(top_builddir)/src/util/libgnunetutil.la
23
24 libgnunetchat_la_LDFLAGS = \
25   $(GN_LIB_LDFLAGS)  $(WINFLAGS) \
26   -version-info 0:0:0
27
28 bin_PROGRAMS = \
29  gnunet-service-chat \
30  gnunet-chat
31
32 gnunet_service_chat_SOURCES = \
33  gnunet-service-chat.c         
34 gnunet_service_chat_LDADD = \
35   $(top_builddir)/src/core/libgnunetcore.la \
36   $(top_builddir)/src/util/libgnunetutil.la \
37   $(GN_LIBINTL)
38
39 gnunet_chat_SOURCES = \
40  gnunet-chat.c         
41 gnunet_chat_LDADD = \
42   $(top_builddir)/src/chat/libgnunetchat.la \
43   $(top_builddir)/src/util/libgnunetutil.la \
44   $(GN_LIBINTL)
45 gnunet_chat_DEPENDENCIES = \
46   libgnunetchat.la
47
48 check_PROGRAMS = \
49  test_chat \
50  test_chat_acknowledgement \
51  test_chat_anonymous \
52  test_chat_authentication \
53  test_chat_p2p \
54  test_chat_acknowledgement_p2p \
55  test_chat_anonymous_p2p \
56  test_chat_authentication_p2p \
57  test_chat_private \
58  test_chat_private_p2p
59
60 if ENABLE_TEST_RUN
61 TESTS = $(check_PROGRAMS)
62 endif
63
64 test_chat_SOURCES = \
65  test_chat.c
66 test_chat_LDADD = \
67   $(top_builddir)/src/chat/libgnunetchat.la \
68   $(top_builddir)/src/util/libgnunetutil.la
69
70 test_chat_acknowledgement_SOURCES = \
71  test_chat.c
72 test_chat_acknowledgement_LDADD = \
73   $(top_builddir)/src/chat/libgnunetchat.la \
74   $(top_builddir)/src/util/libgnunetutil.la
75
76 test_chat_anonymous_SOURCES = \
77  test_chat.c
78 test_chat_anonymous_LDADD = \
79   $(top_builddir)/src/chat/libgnunetchat.la \
80   $(top_builddir)/src/util/libgnunetutil.la
81
82 test_chat_authentication_SOURCES = \
83  test_chat.c
84 test_chat_authentication_LDADD = \
85   $(top_builddir)/src/chat/libgnunetchat.la \
86   $(top_builddir)/src/util/libgnunetutil.la
87
88 test_chat_p2p_SOURCES = \
89  test_chat.c
90 test_chat_p2p_LDADD = \
91   $(top_builddir)/src/chat/libgnunetchat.la \
92   $(top_builddir)/src/util/libgnunetutil.la
93
94 test_chat_acknowledgement_p2p_SOURCES = \
95  test_chat.c
96 test_chat_acknowledgement_p2p_LDADD = \
97   $(top_builddir)/src/chat/libgnunetchat.la \
98   $(top_builddir)/src/util/libgnunetutil.la
99
100 test_chat_anonymous_p2p_SOURCES = \
101  test_chat.c
102 test_chat_anonymous_p2p_LDADD = \
103   $(top_builddir)/src/chat/libgnunetchat.la \
104   $(top_builddir)/src/util/libgnunetutil.la
105
106 test_chat_authentication_p2p_SOURCES = \
107  test_chat.c
108 test_chat_authentication_p2p_LDADD = \
109   $(top_builddir)/src/chat/libgnunetchat.la \
110   $(top_builddir)/src/util/libgnunetutil.la
111
112 test_chat_private_SOURCES = \
113  test_chat_private.c
114 test_chat_private_LDADD = \
115   $(top_builddir)/src/chat/libgnunetchat.la \
116   $(top_builddir)/src/util/libgnunetutil.la
117
118 test_chat_private_p2p_SOURCES = \
119  test_chat_private.c
120 test_chat_private_p2p_LDADD = \
121   $(top_builddir)/src/chat/libgnunetchat.la \
122   $(top_builddir)/src/util/libgnunetutil.la
123
124 EXTRA_DIST = \
125   test_chat_data.conf \
126   test_chat_peer1.conf \
127   test_chat_peer2.conf \
128   test_chat_peer3.conf