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