-fix
[oweals/gnunet.git] / src / core / Makefile.am
1 INCLUDES = -I$(top_srcdir)/src/include
2
3 pkgcfgdir= $(pkgdatadir)/config.d/
4
5 pkgcfg_DATA = \
6   core.conf
7
8 if MINGW
9   WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
10 endif
11
12 if USE_COVERAGE
13   AM_CFLAGS = --coverage -O0
14   XLIB = -lgcov
15 endif
16
17
18 lib_LTLIBRARIES = \
19   libgnunetcore.la
20
21 libgnunetcore_la_SOURCES = \
22   core_api.c core.h \
23   core_api_iterate_peers.c
24 libgnunetcore_la_LIBADD = \
25   $(top_builddir)/src/util/libgnunetutil.la \
26   $(GN_LIBINTL) $(XLIB)
27 libgnunetcore_la_LDFLAGS = \
28   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
29   -version-info 0:0:0
30
31
32 bin_PROGRAMS = \
33  gnunet-service-core \
34  gnunet-core
35
36 gnunet_service_core_SOURCES = \
37  gnunet-service-core.c gnunet-service-core.h \
38  gnunet-service-core_clients.c gnunet-service-core_clients.h \
39  gnunet-service-core_neighbours.c gnunet-service-core_neighbours.h \
40  gnunet-service-core_kx.c gnunet-service-core_kx.h \
41  gnunet-service-core_sessions.c gnunet-service-core_sessions.h \
42  gnunet-service-core_typemap.c gnunet-service-core_typemap.h
43 gnunet_service_core_LDADD = \
44   $(top_builddir)/src/hello/libgnunethello.la \
45   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
46   $(top_builddir)/src/statistics/libgnunetstatistics.la \
47   $(top_builddir)/src/transport/libgnunettransport.la \
48   $(top_builddir)/src/util/libgnunetutil.la \
49   $(GN_LIBINTL) -lz
50
51
52 gnunet_core_SOURCES = \
53  gnunet-core.c         
54 gnunet_core_LDADD = \
55   $(top_builddir)/src/core/libgnunetcore.la \
56   $(top_builddir)/src/util/libgnunetutil.la
57 gnunet_core_DEPENDENCIES = \
58   libgnunetcore.la
59
60 check_PROGRAMS = \
61  test_core_api_start_only \
62  test_core_api \
63  test_core_api_reliability \
64  test_core_quota_compliance_symmetric \
65  test_core_quota_compliance_asymmetric_send_limited \
66  test_core_quota_compliance_asymmetric_recv_limited \
67  test_core_api_send_to_self
68
69 if ENABLE_TEST_RUN
70 TESTS = $(check_PROGRAMS)
71 endif
72
73 test_core_api_SOURCES = \
74  test_core_api.c
75 test_core_api_LDADD = \
76  $(top_builddir)/src/core/libgnunetcore.la \
77  $(top_builddir)/src/transport/libgnunettransport.la \
78  $(top_builddir)/src/util/libgnunetutil.la  
79
80 test_core_api_reliability_SOURCES = \
81  test_core_api_reliability.c
82 test_core_api_reliability_LDADD = \
83  $(top_builddir)/src/core/libgnunetcore.la \
84  $(top_builddir)/src/transport/libgnunettransport.la \
85  $(top_builddir)/src/util/libgnunetutil.la
86
87 test_core_api_send_to_self_SOURCES = \
88  test_core_api_send_to_self.c
89 test_core_api_send_to_self_LDADD = \
90  $(top_builddir)/src/core/libgnunetcore.la \
91  $(top_builddir)/src/transport/libgnunettransport.la \
92  $(top_builddir)/src/util/libgnunetutil.la
93
94 test_core_api_start_only_SOURCES = \
95  test_core_api_start_only.c
96 test_core_api_start_only_LDADD = \
97  $(top_builddir)/src/core/libgnunetcore.la \
98  $(top_builddir)/src/util/libgnunetutil.la
99
100 test_core_quota_compliance_symmetric_SOURCES = \
101  test_core_quota_compliance.c
102 test_core_quota_compliance_symmetric_LDADD = \
103  $(top_builddir)/src/core/libgnunetcore.la \
104  $(top_builddir)/src/transport/libgnunettransport.la \
105  $(top_builddir)/src/util/libgnunetutil.la \
106  $(top_builddir)/src/statistics/libgnunetstatistics.la
107
108 test_core_quota_compliance_asymmetric_send_limited_SOURCES = \
109  test_core_quota_compliance.c
110 test_core_quota_compliance_asymmetric_send_limited_LDADD = \
111  $(top_builddir)/src/core/libgnunetcore.la \
112  $(top_builddir)/src/transport/libgnunettransport.la \
113  $(top_builddir)/src/util/libgnunetutil.la \
114  $(top_builddir)/src/statistics/libgnunetstatistics.la
115
116 test_core_quota_compliance_asymmetric_recv_limited_SOURCES = \
117  test_core_quota_compliance.c
118 test_core_quota_compliance_asymmetric_recv_limited_LDADD = \
119  $(top_builddir)/src/core/libgnunetcore.la \
120  $(top_builddir)/src/transport/libgnunettransport.la \
121  $(top_builddir)/src/util/libgnunetutil.la \
122  $(top_builddir)/src/statistics/libgnunetstatistics.la
123
124 EXTRA_DIST = \
125   test_core_defaults.conf \
126   test_core_api_data.conf \
127   test_core_api_peer1.conf \
128   test_core_api_peer2.conf \
129   test_core_api_send_to_self.conf \
130   test_core_quota_asymmetric_recv_limited_peer1.conf \
131   test_core_quota_asymmetric_recv_limited_peer2.conf \
132   test_core_quota_asymmetric_send_limit_peer1.conf \
133   test_core_quota_asymmetric_send_limit_peer2.conf \
134   test_core_quota_peer1.conf \
135   test_core_quota_peer2.conf