aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Schanzenbach <schanzen@gnunet.org>2023-01-05 19:28:38 +0900
committerMartin Schanzenbach <schanzen@gnunet.org>2023-01-05 19:28:38 +0900
commit9ed8f3c08605c4aa4f3f7a418dbdf15108076fa4 (patch)
treedef9d9eefa4003966abe8b605fbdd46c92ef14d7 /src
parent06f27f95582440a3e638c3e2fa4d360254de1b6a (diff)
downloadgnunet-9ed8f3c08605c4aa4f3f7a418dbdf15108076fa4.tar.gz
gnunet-9ed8f3c08605c4aa4f3f7a418dbdf15108076fa4.zip
REGEX: Do not link internal libraries into .las
Instead, actually include the source files in SOURCES. This may result in longer compile times, but it makes more sense to the linker.
Diffstat (limited to 'src')
-rw-r--r--src/regex/Makefile.am68
1 files changed, 24 insertions, 44 deletions
diff --git a/src/regex/Makefile.am b/src/regex/Makefile.am
index 3c8a65336..328efcd0a 100644
--- a/src/regex/Makefile.am
+++ b/src/regex/Makefile.am
@@ -18,26 +18,29 @@ libexec_PROGRAMS = \
18 gnunet-service-regex \ 18 gnunet-service-regex \
19 gnunet-daemon-regexprofiler 19 gnunet-daemon-regexprofiler
20 20
21REGEX_INTERNAL = \
22 regex_internal_lib.h \
23 regex_internal.h regex_internal.c \
24 regex_internal_dht.c
25REGEX_INTERNAL_TEST = \
26 $(REGEX_INTERNAL) \
27 regex_test_lib.c regex_test_lib.h \
28 regex_test_graph.c \
29 regex_test_random.c
21 30
22gnunet_service_regex_SOURCES = \ 31gnunet_service_regex_SOURCES = \
23 gnunet-service-regex.c 32 $(REGEX_INTERNAL) gnunet-service-regex.c
24gnunet_service_regex_LDADD = -lm \ 33gnunet_service_regex_LDADD = -lm \
25 libgnunetregex_internal.la \
26 libgnunetregexblock.la \ 34 libgnunetregexblock.la \
27 $(top_builddir)/src/dht/libgnunetdht.la \ 35 $(top_builddir)/src/dht/libgnunetdht.la \
28 $(top_builddir)/src/statistics/libgnunetstatistics.la \ 36 $(top_builddir)/src/statistics/libgnunetstatistics.la \
29 $(top_builddir)/src/util/libgnunetutil.la \ 37 $(top_builddir)/src/util/libgnunetutil.la \
30 $(GN_LIBINTL) 38 $(GN_LIBINTL)
31 39
32noinst_LTLIBRARIES = \
33 libgnunetregex_internal.la \
34 libgnunetregextest.la
35
36lib_LTLIBRARIES = \ 40lib_LTLIBRARIES = \
37 libgnunetregexblock.la \ 41 libgnunetregexblock.la \
38 libgnunetregex.la 42 libgnunetregex.la
39 43
40
41libgnunetregexblock_la_SOURCES = \ 44libgnunetregexblock_la_SOURCES = \
42 regex_block_lib.c regex_block_lib.h 45 regex_block_lib.c regex_block_lib.h
43libgnunetregexblock_la_LIBADD = \ 46libgnunetregexblock_la_LIBADD = \
@@ -49,11 +52,6 @@ libgnunetregexblock_la_LDFLAGS = \
49 -version-info 1:0:0 52 -version-info 1:0:0
50 53
51 54
52libgnunetregex_internal_la_SOURCES = \
53 regex_internal_lib.h \
54 regex_internal.h regex_internal.c \
55 regex_internal_dht.c
56
57libgnunetregex_la_SOURCES = \ 55libgnunetregex_la_SOURCES = \
58 regex_api_announce.c \ 56 regex_api_announce.c \
59 regex_api_search.c \ 57 regex_api_search.c \
@@ -85,60 +83,49 @@ noinst_mysql_progs = \
85 gnunet-regex-simulation-profiler 83 gnunet-regex-simulation-profiler
86 84
87gnunet_regex_simulation_profiler_SOURCES = \ 85gnunet_regex_simulation_profiler_SOURCES = \
88 gnunet-regex-simulation-profiler.c 86 $(REGEX_INTERNAL) gnunet-regex-simulation-profiler.c
89gnunet_regex_simulation_profiler_LDADD = \ 87gnunet_regex_simulation_profiler_LDADD = \
88 libgnunetregexblock.la \
90 $(top_builddir)/src/util/libgnunetutil.la \ 89 $(top_builddir)/src/util/libgnunetutil.la \
91 libgnunetregex_internal.la \
92 $(top_builddir)/src/dht/libgnunetdht.la \ 90 $(top_builddir)/src/dht/libgnunetdht.la \
93 $(top_builddir)/src/my/libgnunetmy.la \ 91 $(top_builddir)/src/my/libgnunetmy.la \
94 $(top_builddir)/src/mysql/libgnunetmysql.la 92 $(top_builddir)/src/mysql/libgnunetmysql.la \
93 $(top_builddir)/src/block/libgnunetblock.la \
94 $(top_builddir)/src/statistics/libgnunetstatistics.la
95endif 95endif
96 96
97libgnunetregextest_la_SOURCES = \
98 regex_test_lib.c regex_test_lib.h \
99 regex_test_graph.c \
100 regex_test_random.c
101libgnunetregextest_la_LIBADD = \
102 $(top_builddir)/src/util/libgnunetutil.la \
103 libgnunetregex_internal.la
104
105noinst_PROGRAMS = $(noinst_mysql_progs) \ 97noinst_PROGRAMS = $(noinst_mysql_progs) \
106 perf-regex \ 98 perf-regex \
107 gnunet-regex-profiler 99 gnunet-regex-profiler
108 100
109perf_regex_SOURCES = \ 101perf_regex_SOURCES = \
110 perf-regex.c 102 $(REGEX_INTERNAL_TEST) perf-regex.c
111perf_regex_LDADD = -lm \ 103perf_regex_LDADD = -lm \
112 libgnunetregex_internal.la \
113 $(top_builddir)/src/dht/libgnunetdht.la \ 104 $(top_builddir)/src/dht/libgnunetdht.la \
114 libgnunetregexblock.la \ 105 libgnunetregexblock.la \
115 libgnunetregextest.la \ 106 $(top_builddir)/src/util/libgnunetutil.la \
116 $(top_builddir)/src/util/libgnunetutil.la 107 $(top_builddir)/src/statistics/libgnunetstatistics.la
117perf_regex_LDFLAGS = \ 108perf_regex_LDFLAGS = \
118 $(GN_LIBINTL) 109 $(GN_LIBINTL)
119 110
120gnunet_regex_profiler_SOURCES = \ 111gnunet_regex_profiler_SOURCES = \
121 gnunet-regex-profiler.c 112 $(REGEX_INTERNAL_TEST) gnunet-regex-profiler.c
122gnunet_regex_profiler_LDADD = -lm \ 113gnunet_regex_profiler_LDADD = -lm \
123 $(top_builddir)/src/arm/libgnunetarm.la \ 114 $(top_builddir)/src/arm/libgnunetarm.la \
124 $(top_builddir)/src/testing/libgnunettesting.la \ 115 $(top_builddir)/src/testing/libgnunettesting.la \
125 $(top_builddir)/src/testbed/libgnunettestbed.la \ 116 $(top_builddir)/src/testbed/libgnunettestbed.la \
126 libgnunetregex_internal.la \
127 $(top_builddir)/src/dht/libgnunetdht.la \ 117 $(top_builddir)/src/dht/libgnunetdht.la \
128 libgnunetregexblock.la \ 118 libgnunetregexblock.la \
129 libgnunetregextest.la \
130 $(top_builddir)/src/statistics/libgnunetstatistics.la \ 119 $(top_builddir)/src/statistics/libgnunetstatistics.la \
131 $(top_builddir)/src/util/libgnunetutil.la 120 $(top_builddir)/src/util/libgnunetutil.la
132gnunet_regex_profiler_LDFLAGS = \ 121gnunet_regex_profiler_LDFLAGS = \
133 $(GN_LIBINTL) 122 $(GN_LIBINTL)
134 123
135gnunet_daemon_regexprofiler_SOURCES = \ 124gnunet_daemon_regexprofiler_SOURCES = \
136 gnunet-daemon-regexprofiler.c 125 $(REGEX_INTERNAL_TEST) gnunet-daemon-regexprofiler.c
137gnunet_daemon_regexprofiler_LDADD = -lm \ 126gnunet_daemon_regexprofiler_LDADD = -lm \
138 libgnunetregex_internal.la \
139 $(top_builddir)/src/dht/libgnunetdht.la \ 127 $(top_builddir)/src/dht/libgnunetdht.la \
140 libgnunetregexblock.la \ 128 libgnunetregexblock.la \
141 libgnunetregextest.la \
142 $(top_builddir)/src/statistics/libgnunetstatistics.la \ 129 $(top_builddir)/src/statistics/libgnunetstatistics.la \
143 $(top_builddir)/src/util/libgnunetutil.la 130 $(top_builddir)/src/util/libgnunetutil.la
144gnunet_daemon_regexprofiler_LDFLAGS = \ 131gnunet_daemon_regexprofiler_LDFLAGS = \
@@ -158,11 +145,9 @@ if ENABLE_TEST_RUN
158endif 145endif
159 146
160test_regex_eval_api_SOURCES = \ 147test_regex_eval_api_SOURCES = \
161 test_regex_eval_api.c 148 $(REGEX_INTERNAL_TEST) test_regex_eval_api.c
162test_regex_eval_api_LDADD = -lm \ 149test_regex_eval_api_LDADD = -lm \
163 libgnunetregex_internal.la \
164 $(top_builddir)/src/dht/libgnunetdht.la \ 150 $(top_builddir)/src/dht/libgnunetdht.la \
165 libgnunetregextest.la \
166 libgnunetregexblock.la \ 151 libgnunetregexblock.la \
167 $(top_builddir)/src/util/libgnunetutil.la 152 $(top_builddir)/src/util/libgnunetutil.la
168 153
@@ -181,28 +166,23 @@ test_regex_api_LDADD = -lm \
181 $(top_builddir)/src/util/libgnunetutil.la 166 $(top_builddir)/src/util/libgnunetutil.la
182 167
183test_regex_iterate_api_SOURCES = \ 168test_regex_iterate_api_SOURCES = \
184 test_regex_iterate_api.c 169 $(REGEX_INTERNAL) test_regex_iterate_api.c
185test_regex_iterate_api_LDADD = -lm \ 170test_regex_iterate_api_LDADD = -lm \
186 libgnunetregex_internal.la \
187 libgnunetregexblock.la \ 171 libgnunetregexblock.la \
188 $(top_builddir)/src/dht/libgnunetdht.la \ 172 $(top_builddir)/src/dht/libgnunetdht.la \
189 $(top_builddir)/src/util/libgnunetutil.la 173 $(top_builddir)/src/util/libgnunetutil.la
190 174
191test_regex_proofs_SOURCES = \ 175test_regex_proofs_SOURCES = \
192 test_regex_proofs.c 176 $(REGEX_INTERNAL_TEST) test_regex_proofs.c
193test_regex_proofs_LDADD = -lm \ 177test_regex_proofs_LDADD = -lm \
194 libgnunetregex_internal.la \
195 $(top_builddir)/src/dht/libgnunetdht.la \ 178 $(top_builddir)/src/dht/libgnunetdht.la \
196 libgnunetregextest.la \
197 libgnunetregexblock.la \ 179 libgnunetregexblock.la \
198 $(top_builddir)/src/util/libgnunetutil.la 180 $(top_builddir)/src/util/libgnunetutil.la
199 181
200test_regex_graph_api_SOURCES = \ 182test_regex_graph_api_SOURCES = \
201 test_regex_graph_api.c 183 $(REGEX_INTERNAL_TEST) test_regex_graph_api.c
202test_regex_graph_api_LDADD = -lm \ 184test_regex_graph_api_LDADD = -lm \
203 libgnunetregex_internal.la \
204 $(top_builddir)/src/dht/libgnunetdht.la \ 185 $(top_builddir)/src/dht/libgnunetdht.la \
205 libgnunetregextest.la \
206 libgnunetregexblock.la \ 186 libgnunetregexblock.la \
207 $(top_builddir)/src/util/libgnunetutil.la 187 $(top_builddir)/src/util/libgnunetutil.la
208 188