naming
[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 gnunet_chat_DEPENDENCIES = \
41   libgnunetchat.la
42
43 check_PROGRAMS = \
44  test_chat \
45  test_chat_acknowledgement \
46  test_chat_anonymous \
47  test_chat_authentication \
48  test_chat_p2p \
49  test_chat_acknowledgement_p2p \
50  test_chat_anonymous_p2p \
51  test_chat_authentication_p2p \
52  test_chat_private \
53  test_chat_private_p2p
54
55 if ENABLE_TEST_RUN
56 TESTS = $(check_PROGRAMS)
57 endif
58
59 test_chat_SOURCES = \
60  test_chat.c
61 test_chat_LDADD = \
62   $(top_builddir)/src/chat/libgnunetchat.la \
63   $(top_builddir)/src/util/libgnunetutil.la
64
65 test_chat_acknowledgement_SOURCES = \
66  test_chat.c
67 test_chat_acknowledgement_LDADD = \
68   $(top_builddir)/src/chat/libgnunetchat.la \
69   $(top_builddir)/src/util/libgnunetutil.la
70
71 test_chat_anonymous_SOURCES = \
72  test_chat.c
73 test_chat_anonymous_LDADD = \
74   $(top_builddir)/src/chat/libgnunetchat.la \
75   $(top_builddir)/src/util/libgnunetutil.la
76
77 test_chat_authentication_SOURCES = \
78  test_chat.c
79 test_chat_authentication_LDADD = \
80   $(top_builddir)/src/chat/libgnunetchat.la \
81   $(top_builddir)/src/util/libgnunetutil.la
82
83 test_chat_p2p_SOURCES = \
84  test_chat.c
85 test_chat_p2p_LDADD = \
86   $(top_builddir)/src/chat/libgnunetchat.la \
87   $(top_builddir)/src/util/libgnunetutil.la
88
89 test_chat_acknowledgement_p2p_SOURCES = \
90  test_chat.c
91 test_chat_acknowledgement_p2p_LDADD = \
92   $(top_builddir)/src/chat/libgnunetchat.la \
93   $(top_builddir)/src/util/libgnunetutil.la
94
95 test_chat_anonymous_p2p_SOURCES = \
96  test_chat.c
97 test_chat_anonymous_p2p_LDADD = \
98   $(top_builddir)/src/chat/libgnunetchat.la \
99   $(top_builddir)/src/util/libgnunetutil.la
100
101 test_chat_authentication_p2p_SOURCES = \
102  test_chat.c
103 test_chat_authentication_p2p_LDADD = \
104   $(top_builddir)/src/chat/libgnunetchat.la \
105   $(top_builddir)/src/util/libgnunetutil.la
106
107 test_chat_private_SOURCES = \
108  test_chat_private.c
109 test_chat_private_LDADD = \
110   $(top_builddir)/src/chat/libgnunetchat.la \
111   $(top_builddir)/src/util/libgnunetutil.la
112
113 test_chat_private_p2p_SOURCES = \
114  test_chat_private.c
115 test_chat_private_p2p_LDADD = \
116   $(top_builddir)/src/chat/libgnunetchat.la \
117   $(top_builddir)/src/util/libgnunetutil.la
118
119 EXTRA_DIST = \
120   test_chat_data.conf \
121   test_chat_peer1.conf \
122   test_chat_peer2.conf \
123   test_chat_peer3.conf