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