diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2023-01-05 19:28:38 +0900 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2023-01-05 19:28:38 +0900 |
commit | 9ed8f3c08605c4aa4f3f7a418dbdf15108076fa4 (patch) | |
tree | def9d9eefa4003966abe8b605fbdd46c92ef14d7 /src | |
parent | 06f27f95582440a3e638c3e2fa4d360254de1b6a (diff) | |
download | gnunet-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.am | 68 |
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 | ||
21 | REGEX_INTERNAL = \ | ||
22 | regex_internal_lib.h \ | ||
23 | regex_internal.h regex_internal.c \ | ||
24 | regex_internal_dht.c | ||
25 | REGEX_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 | ||
22 | gnunet_service_regex_SOURCES = \ | 31 | gnunet_service_regex_SOURCES = \ |
23 | gnunet-service-regex.c | 32 | $(REGEX_INTERNAL) gnunet-service-regex.c |
24 | gnunet_service_regex_LDADD = -lm \ | 33 | gnunet_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 | ||
32 | noinst_LTLIBRARIES = \ | ||
33 | libgnunetregex_internal.la \ | ||
34 | libgnunetregextest.la | ||
35 | |||
36 | lib_LTLIBRARIES = \ | 40 | lib_LTLIBRARIES = \ |
37 | libgnunetregexblock.la \ | 41 | libgnunetregexblock.la \ |
38 | libgnunetregex.la | 42 | libgnunetregex.la |
39 | 43 | ||
40 | |||
41 | libgnunetregexblock_la_SOURCES = \ | 44 | libgnunetregexblock_la_SOURCES = \ |
42 | regex_block_lib.c regex_block_lib.h | 45 | regex_block_lib.c regex_block_lib.h |
43 | libgnunetregexblock_la_LIBADD = \ | 46 | libgnunetregexblock_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 | ||
52 | libgnunetregex_internal_la_SOURCES = \ | ||
53 | regex_internal_lib.h \ | ||
54 | regex_internal.h regex_internal.c \ | ||
55 | regex_internal_dht.c | ||
56 | |||
57 | libgnunetregex_la_SOURCES = \ | 55 | libgnunetregex_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 | ||
87 | gnunet_regex_simulation_profiler_SOURCES = \ | 85 | gnunet_regex_simulation_profiler_SOURCES = \ |
88 | gnunet-regex-simulation-profiler.c | 86 | $(REGEX_INTERNAL) gnunet-regex-simulation-profiler.c |
89 | gnunet_regex_simulation_profiler_LDADD = \ | 87 | gnunet_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 | ||
95 | endif | 95 | endif |
96 | 96 | ||
97 | libgnunetregextest_la_SOURCES = \ | ||
98 | regex_test_lib.c regex_test_lib.h \ | ||
99 | regex_test_graph.c \ | ||
100 | regex_test_random.c | ||
101 | libgnunetregextest_la_LIBADD = \ | ||
102 | $(top_builddir)/src/util/libgnunetutil.la \ | ||
103 | libgnunetregex_internal.la | ||
104 | |||
105 | noinst_PROGRAMS = $(noinst_mysql_progs) \ | 97 | noinst_PROGRAMS = $(noinst_mysql_progs) \ |
106 | perf-regex \ | 98 | perf-regex \ |
107 | gnunet-regex-profiler | 99 | gnunet-regex-profiler |
108 | 100 | ||
109 | perf_regex_SOURCES = \ | 101 | perf_regex_SOURCES = \ |
110 | perf-regex.c | 102 | $(REGEX_INTERNAL_TEST) perf-regex.c |
111 | perf_regex_LDADD = -lm \ | 103 | perf_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 |
117 | perf_regex_LDFLAGS = \ | 108 | perf_regex_LDFLAGS = \ |
118 | $(GN_LIBINTL) | 109 | $(GN_LIBINTL) |
119 | 110 | ||
120 | gnunet_regex_profiler_SOURCES = \ | 111 | gnunet_regex_profiler_SOURCES = \ |
121 | gnunet-regex-profiler.c | 112 | $(REGEX_INTERNAL_TEST) gnunet-regex-profiler.c |
122 | gnunet_regex_profiler_LDADD = -lm \ | 113 | gnunet_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 |
132 | gnunet_regex_profiler_LDFLAGS = \ | 121 | gnunet_regex_profiler_LDFLAGS = \ |
133 | $(GN_LIBINTL) | 122 | $(GN_LIBINTL) |
134 | 123 | ||
135 | gnunet_daemon_regexprofiler_SOURCES = \ | 124 | gnunet_daemon_regexprofiler_SOURCES = \ |
136 | gnunet-daemon-regexprofiler.c | 125 | $(REGEX_INTERNAL_TEST) gnunet-daemon-regexprofiler.c |
137 | gnunet_daemon_regexprofiler_LDADD = -lm \ | 126 | gnunet_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 |
144 | gnunet_daemon_regexprofiler_LDFLAGS = \ | 131 | gnunet_daemon_regexprofiler_LDFLAGS = \ |
@@ -158,11 +145,9 @@ if ENABLE_TEST_RUN | |||
158 | endif | 145 | endif |
159 | 146 | ||
160 | test_regex_eval_api_SOURCES = \ | 147 | test_regex_eval_api_SOURCES = \ |
161 | test_regex_eval_api.c | 148 | $(REGEX_INTERNAL_TEST) test_regex_eval_api.c |
162 | test_regex_eval_api_LDADD = -lm \ | 149 | test_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 | ||
183 | test_regex_iterate_api_SOURCES = \ | 168 | test_regex_iterate_api_SOURCES = \ |
184 | test_regex_iterate_api.c | 169 | $(REGEX_INTERNAL) test_regex_iterate_api.c |
185 | test_regex_iterate_api_LDADD = -lm \ | 170 | test_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 | ||
191 | test_regex_proofs_SOURCES = \ | 175 | test_regex_proofs_SOURCES = \ |
192 | test_regex_proofs.c | 176 | $(REGEX_INTERNAL_TEST) test_regex_proofs.c |
193 | test_regex_proofs_LDADD = -lm \ | 177 | test_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 | ||
200 | test_regex_graph_api_SOURCES = \ | 182 | test_regex_graph_api_SOURCES = \ |
201 | test_regex_graph_api.c | 183 | $(REGEX_INTERNAL_TEST) test_regex_graph_api.c |
202 | test_regex_graph_api_LDADD = -lm \ | 184 | test_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 | ||