1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include
4 pkgcfgdir= $(pkgdatadir)/config.d/
6 libexecdir= $(pkglibdir)/libexec/
12 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
16 AM_CFLAGS = --coverage -O0
24 libgnunetcore_la_SOURCES = \
27 core_api_monitor_peers.c
28 libgnunetcore_la_LIBADD = \
29 $(top_builddir)/src/util/libgnunetutil.la \
31 libgnunetcore_la_LDFLAGS = \
32 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
42 gnunet_service_core_SOURCES = \
43 gnunet-service-core.c gnunet-service-core.h \
44 gnunet-service-core_kx.c gnunet-service-core_kx.h \
45 gnunet-service-core_sessions.c gnunet-service-core_sessions.h \
46 gnunet-service-core_typemap.c gnunet-service-core_typemap.h
47 gnunet_service_core_LDADD = \
48 $(top_builddir)/src/statistics/libgnunetstatistics.la \
49 $(top_builddir)/src/transport/libgnunettransport.la \
50 $(top_builddir)/src/util/libgnunetutil.la \
51 $(GN_LIBINTL) $(Z_LIBS)
54 gnunet_core_SOURCES = \
58 $(top_builddir)/src/util/libgnunetutil.la
62 test_core_api_send_to_self
66 test_core_api_start_only \
68 test_core_api_reliability \
69 test_core_quota_compliance_symmetric \
70 test_core_quota_compliance_asymmetric_send_limited \
71 test_core_quota_compliance_asymmetric_recv_limited \
75 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
76 TESTS = $(check_PROGRAMS)
79 test_core_api_SOURCES = \
81 test_core_api_LDADD = \
83 $(top_builddir)/src/transport/libgnunettransport.la \
84 $(top_builddir)/src/ats/libgnunetats.la \
85 $(top_builddir)/src/util/libgnunetutil.la
87 test_core_api_reliability_SOURCES = \
88 test_core_api_reliability.c
89 test_core_api_reliability_LDADD = \
91 $(top_builddir)/src/transport/libgnunettransport.la \
92 $(top_builddir)/src/ats/libgnunetats.la \
93 $(top_builddir)/src/util/libgnunetutil.la
95 test_core_api_send_to_self_SOURCES = \
96 test_core_api_send_to_self.c
97 test_core_api_send_to_self_LDADD = \
99 $(top_builddir)/src/testing/libgnunettesting.la \
100 $(top_builddir)/src/transport/libgnunettransport.la \
101 $(top_builddir)/src/util/libgnunetutil.la
103 test_core_api_start_only_SOURCES = \
104 test_core_api_start_only.c
105 test_core_api_start_only_LDADD = \
106 $(top_builddir)/src/testing/libgnunettesting.la \
108 $(top_builddir)/src/util/libgnunetutil.la
110 test_core_quota_compliance_symmetric_SOURCES = \
111 test_core_quota_compliance.c
112 test_core_quota_compliance_symmetric_LDADD = \
114 $(top_builddir)/src/transport/libgnunettransport.la \
115 $(top_builddir)/src/ats/libgnunetats.la \
116 $(top_builddir)/src/util/libgnunetutil.la \
117 $(top_builddir)/src/statistics/libgnunetstatistics.la
119 test_core_quota_compliance_asymmetric_send_limited_SOURCES = \
120 test_core_quota_compliance.c
121 test_core_quota_compliance_asymmetric_send_limited_LDADD = \
123 $(top_builddir)/src/transport/libgnunettransport.la \
124 $(top_builddir)/src/ats/libgnunetats.la \
125 $(top_builddir)/src/util/libgnunetutil.la \
126 $(top_builddir)/src/statistics/libgnunetstatistics.la
128 test_core_quota_compliance_asymmetric_recv_limited_SOURCES = \
129 test_core_quota_compliance.c
130 test_core_quota_compliance_asymmetric_recv_limited_LDADD = \
132 $(top_builddir)/src/transport/libgnunettransport.la \
133 $(top_builddir)/src/ats/libgnunetats.la \
134 $(top_builddir)/src/util/libgnunetutil.la \
135 $(top_builddir)/src/statistics/libgnunetstatistics.la
138 test_core_defaults.conf \
139 test_core_api_data.conf \
140 test_core_api_peer1.conf \
141 test_core_api_peer2.conf \
142 test_core_api_send_to_self.conf \
143 test_core_quota_asymmetric_recv_limited_peer1.conf \
144 test_core_quota_asymmetric_recv_limited_peer2.conf \
145 test_core_quota_asymmetric_send_limit_peer1.conf \
146 test_core_quota_asymmetric_send_limit_peer2.conf \
147 test_core_quota_peer1.conf \
148 test_core_quota_peer2.conf