af33a8bb0f16b6264a6274b23ebdfcac97fa3e02
[oweals/gnunet.git] / 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
26 libgnunetchat_la_LDFLAGS = \
27   $(GN_LIB_LDFLAGS)  $(WINFLAGS) \
28   -version-info 0:0:0
29
30 libexec_PROGRAMS = \
31  gnunet-service-chat
32
33 bin_PROGRAMS = \
34  gnunet-chat
35
36 gnunet_service_chat_SOURCES = \
37  gnunet-service-chat.c         
38 gnunet_service_chat_LDADD = \
39   $(top_builddir)/src/core/libgnunetcore.la \
40   $(top_builddir)/src/util/libgnunetutil.la \
41   $(GN_LIBINTL)
42
43 gnunet_chat_SOURCES = \
44  gnunet-chat.c         
45 gnunet_chat_LDADD = \
46   $(top_builddir)/src/chat/libgnunetchat.la \
47   $(top_builddir)/src/util/libgnunetutil.la \
48   $(GN_LIBINTL)
49 gnunet_chat_DEPENDENCIES = \
50   libgnunetchat.la
51
52 check_PROGRAMS = \
53  test_chat \
54  test_chat_acknowledgement \
55  test_chat_anonymous \
56  test_chat_authentication \
57  test_chat_p2p \
58  test_chat_acknowledgement_p2p \
59  test_chat_anonymous_p2p \
60  test_chat_authentication_p2p \
61  test_chat_private \
62  test_chat_private_p2p
63
64 if ENABLE_TEST_RUN
65 TESTS = $(check_PROGRAMS)
66 endif
67
68 test_chat_SOURCES = \
69  test_chat.c
70 test_chat_LDADD = \
71   $(top_builddir)/src/chat/libgnunetchat.la \
72   $(top_builddir)/src/util/libgnunetutil.la
73
74 test_chat_acknowledgement_SOURCES = \
75  test_chat.c
76 test_chat_acknowledgement_LDADD = \
77   $(top_builddir)/src/chat/libgnunetchat.la \
78   $(top_builddir)/src/util/libgnunetutil.la
79
80 test_chat_anonymous_SOURCES = \
81  test_chat.c
82 test_chat_anonymous_LDADD = \
83   $(top_builddir)/src/chat/libgnunetchat.la \
84   $(top_builddir)/src/util/libgnunetutil.la
85
86 test_chat_authentication_SOURCES = \
87  test_chat.c
88 test_chat_authentication_LDADD = \
89   $(top_builddir)/src/chat/libgnunetchat.la \
90   $(top_builddir)/src/util/libgnunetutil.la
91
92 test_chat_p2p_SOURCES = \
93  test_chat.c
94 test_chat_p2p_LDADD = \
95   $(top_builddir)/src/chat/libgnunetchat.la \
96   $(top_builddir)/src/util/libgnunetutil.la
97
98 test_chat_acknowledgement_p2p_SOURCES = \
99  test_chat.c
100 test_chat_acknowledgement_p2p_LDADD = \
101   $(top_builddir)/src/chat/libgnunetchat.la \
102   $(top_builddir)/src/util/libgnunetutil.la
103
104 test_chat_anonymous_p2p_SOURCES = \
105  test_chat.c
106 test_chat_anonymous_p2p_LDADD = \
107   $(top_builddir)/src/chat/libgnunetchat.la \
108   $(top_builddir)/src/util/libgnunetutil.la
109
110 test_chat_authentication_p2p_SOURCES = \
111  test_chat.c
112 test_chat_authentication_p2p_LDADD = \
113   $(top_builddir)/src/chat/libgnunetchat.la \
114   $(top_builddir)/src/util/libgnunetutil.la
115
116 test_chat_private_SOURCES = \
117  test_chat_private.c
118 test_chat_private_LDADD = \
119   $(top_builddir)/src/chat/libgnunetchat.la \
120   $(top_builddir)/src/util/libgnunetutil.la
121
122 test_chat_private_p2p_SOURCES = \
123  test_chat_private.c
124 test_chat_private_p2p_LDADD = \
125   $(top_builddir)/src/chat/libgnunetchat.la \
126   $(top_builddir)/src/util/libgnunetutil.la
127
128 EXTRA_DIST = \
129   test_chat_data.conf \
130   test_chat_peer1.conf \
131   test_chat_peer2.conf \
132   test_chat_peer3.conf