]>
Commit | Line | Data |
---|---|---|
b55979b4 MT |
1 | ############################################################################### |
2 | # # | |
3 | # Pakfire - The IPFire package management system # | |
4 | # Copyright (C) 2013 Pakfire development team # | |
5 | # # | |
6 | # This program is free software: you can redistribute it and/or modify # | |
7 | # it under the terms of the GNU General Public License as published by # | |
8 | # the Free Software Foundation, either version 3 of the License, or # | |
9 | # (at your option) any later version. # | |
10 | # # | |
11 | # This program is distributed in the hope that it will be useful, # | |
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of # | |
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # | |
14 | # GNU General Public License for more details. # | |
15 | # # | |
16 | # You should have received a copy of the GNU General Public License # | |
17 | # along with this program. If not, see <http://www.gnu.org/licenses/>. # | |
18 | # # | |
19 | ############################################################################### | |
20 | ||
21 | ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} | |
22 | AM_MAKEFLAGS = --no-print-directory | |
23 | AUTOMAKE_OPTIONS = color-tests | |
24 | ||
25 | # remove target it the command fails | |
26 | .DELETE_ON_ERROR: | |
27 | ||
28 | # keep itermediate files | |
29 | .SECONDARY: | |
30 | ||
31 | SUBDIRS = . po | |
32 | ||
221cc3ce MT |
33 | LIBPAKFIRE_CURRENT=0 |
34 | LIBPAKFIRE_REVISION=0 | |
35 | LIBPAKFIRE_AGE=0 | |
36 | ||
b55979b4 | 37 | libexecdir = $(libdir)/pakfire |
b72b666b | 38 | pythondir = $(pyexecdir) |
b55979b4 MT |
39 | |
40 | configsdir = $(sysconfdir)/pakfire | |
41 | configsdistrosdir = $(configsdir)/distros | |
42 | macrosdir = $(prefix)/lib/pakfire/macros | |
43 | qualityagentdir = $(prefix)/lib/quality-agent | |
44 | scriptsdir = $(prefix)/lib/$(PACKAGE_NAME) | |
45 | ||
5f185fab | 46 | TEST_ROOTFS = $(abs_top_builddir)/tests/.root |
3e936d67 | 47 | |
dee8ae80 | 48 | BUILT_SOURCES = |
b55979b4 MT |
49 | CLEANFILES = |
50 | DISTCLEANFILES = | |
51 | EXTRA_DIST = | |
52 | ||
53 | AM_CPPFLAGS = \ | |
54 | -include $(top_builddir)/config.h \ | |
55 | -I $(top_srcdir)/include \ | |
56 | $(OUR_CPPFLAGS) | |
57 | ||
9f953e68 MT |
58 | AM_CFLAGS = $(OUR_CFLAGS) \ |
59 | -ffunction-sections \ | |
60 | -fdata-sections | |
61 | ||
62 | AM_LDFLAGS = $(OUR_LDFLAGS) \ | |
63 | -Wl,--gc-sections \ | |
64 | -Wl,--as-needed | |
b55979b4 | 65 | |
7b463f34 MT |
66 | PAKFIRE_CPPFLAGS = -I$(top_srcdir)/src/libpakfire/include |
67 | PAKFIRE_LIBS = libpakfire.la | |
b8a51cb6 | 68 | |
7b463f34 | 69 | check_PROGRAMS = |
b55979b4 MT |
70 | lib_LTLIBRARIES = |
71 | libexec_PROGRAMS = | |
f9a691ef | 72 | noinst_LTLIBRARIES = |
b55979b4 | 73 | pkgpyexec_LTLIBRARIES = |
221cc3ce | 74 | pkginclude_HEADERS = |
b55979b4 MT |
75 | |
76 | DISTCHECK_CONFIGURE_FLAGS = \ | |
a7d75de9 MT |
77 | --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir) \ |
78 | --enable-debug | |
b55979b4 MT |
79 | |
80 | @INTLTOOL_POLICY_RULE@ | |
81 | ||
3e936d67 MT |
82 | clean-local: clean-local-check |
83 | ||
d1de2db6 | 84 | .PHONY: update-po |
cfcdf2ab | 85 | update-po: po/POTFILES.in |
d1de2db6 MT |
86 | $(MAKE) -C po update-po |
87 | ||
cfcdf2ab MT |
88 | po/POTFILES.in: Makefile |
89 | find $(abs_srcdir)/src | \ | |
90 | grep -E "\.(c|in|py)$$" | sed -e "s@$(abs_srcdir)/@@g" | LC_COLLATE=C sort > $@ | |
91 | ||
b55979b4 MT |
92 | # ------------------------------------------------------------------------------ |
93 | ||
94 | dist_doc_DATA = \ | |
95 | COPYING \ | |
96 | I18N \ | |
97 | README | |
98 | ||
99 | # ------------------------------------------------------------------------------ | |
100 | ||
101 | dist_bin_SCRIPTS = \ | |
102 | src/scripts/pakfire | |
103 | ||
104 | install-exec-local: | |
105 | $(MKDIR_P) $(DESTDIR)/$(bindir) | |
106 | cd $(DESTDIR)/$(bindir) && \ | |
107 | $(LN_S) -vf pakfire pakfire-builder && \ | |
108 | $(LN_S) -vf pakfire pakfire-client && \ | |
109 | $(LN_S) -vf pakfire pakfire-daemon && \ | |
110 | $(LN_S) -vf pakfire pakfire-key | |
111 | ||
b55979b4 MT |
112 | # ------------------------------------------------------------------------------ |
113 | ||
114 | pakfire_PYTHON = \ | |
115 | src/pakfire/__init__.py \ | |
116 | src/pakfire/__version__.py \ | |
b55979b4 MT |
117 | src/pakfire/base.py \ |
118 | src/pakfire/builder.py \ | |
b55979b4 MT |
119 | src/pakfire/client.py \ |
120 | src/pakfire/cli.py \ | |
b55979b4 MT |
121 | src/pakfire/config.py \ |
122 | src/pakfire/constants.py \ | |
123 | src/pakfire/daemon.py \ | |
b55979b4 | 124 | src/pakfire/errors.py \ |
7eec9830 | 125 | src/pakfire/http.py \ |
96a8f2a4 | 126 | src/pakfire/hub.py \ |
b55979b4 | 127 | src/pakfire/i18n.py \ |
b55979b4 | 128 | src/pakfire/logger.py \ |
b55979b4 | 129 | src/pakfire/system.py \ |
b55979b4 MT |
130 | src/pakfire/util.py |
131 | ||
132 | pakfiredir = $(pythondir)/pakfire | |
133 | ||
134 | # ------------------------------------------------------------------------------ | |
135 | ||
136 | pakfire_packages_PYTHON = \ | |
137 | src/pakfire/packages/__init__.py \ | |
b55979b4 | 138 | src/pakfire/packages/packager.py \ |
b55979b4 MT |
139 | src/pakfire/packages/tar.py |
140 | ||
141 | pakfire_packagesdir = $(pythondir)/pakfire/packages | |
142 | ||
143 | # ------------------------------------------------------------------------------ | |
144 | ||
10458aa0 MT |
145 | pakfire_ui_PYTHON = \ |
146 | src/pakfire/ui/__init__.py \ | |
0a257615 MT |
147 | src/pakfire/ui/base.py \ |
148 | src/pakfire/ui/cli.py \ | |
10458aa0 MT |
149 | src/pakfire/ui/helpers.py \ |
150 | src/pakfire/ui/progressbar.py | |
151 | ||
152 | pakfire_uidir = $(pythondir)/pakfire/ui | |
153 | ||
154 | # ------------------------------------------------------------------------------ | |
155 | ||
b55979b4 MT |
156 | pkgpyexec_LTLIBRARIES += \ |
157 | _pakfire.la | |
158 | ||
159 | _pakfire_la_SOURCES = \ | |
160 | src/_pakfire/_pakfiremodule.c \ | |
f1f8452b MT |
161 | src/_pakfire/archive.c \ |
162 | src/_pakfire/archive.h \ | |
a5845b60 | 163 | src/_pakfire/errors.h \ |
0a89bb8a MT |
164 | src/_pakfire/key.c \ |
165 | src/_pakfire/key.h \ | |
b8a51cb6 MT |
166 | src/_pakfire/package.c \ |
167 | src/_pakfire/package.h \ | |
6e46b18e MT |
168 | src/_pakfire/pakfire.c \ |
169 | src/_pakfire/pakfire.h \ | |
40f17018 MT |
170 | src/_pakfire/parser.c \ |
171 | src/_pakfire/parser.h \ | |
b55979b4 MT |
172 | src/_pakfire/problem.c \ |
173 | src/_pakfire/problem.h \ | |
a304fc14 MT |
174 | src/_pakfire/progressbar.c \ |
175 | src/_pakfire/progressbar.h \ | |
b55979b4 MT |
176 | src/_pakfire/relation.c \ |
177 | src/_pakfire/relation.h \ | |
178 | src/_pakfire/repo.c \ | |
179 | src/_pakfire/repo.h \ | |
180 | src/_pakfire/request.c \ | |
181 | src/_pakfire/request.h \ | |
182 | src/_pakfire/solution.c \ | |
183 | src/_pakfire/solution.h \ | |
b55979b4 MT |
184 | src/_pakfire/transaction.c \ |
185 | src/_pakfire/transaction.h \ | |
186 | src/_pakfire/util.c \ | |
187 | src/_pakfire/util.h | |
188 | ||
7b463f34 | 189 | _pakfire_la_CPPFLAGS = \ |
f06095f1 | 190 | -include $(top_builddir)/config.h \ |
7b463f34 MT |
191 | $(PAKFIRE_CPPFLAGS) |
192 | ||
b55979b4 MT |
193 | _pakfire_la_CFLAGS = \ |
194 | $(AM_CFLAGS) \ | |
195 | $(PYTHON_DEVEL_CFLAGS) \ | |
aa92274c | 196 | -Wno-cast-function-type |
b55979b4 MT |
197 | |
198 | _pakfire_la_LDFLAGS = \ | |
199 | $(AM_LDFLAGS) \ | |
200 | -shared \ | |
201 | -module \ | |
202 | -avoid-version | |
203 | ||
204 | _pakfire_la_LIBADD = \ | |
205 | $(PYTHON_DEVEL_LIBS) \ | |
0df05626 | 206 | $(PAKFIRE_LIBS) |
b55979b4 MT |
207 | |
208 | # ------------------------------------------------------------------------------ | |
209 | ||
f9a691ef | 210 | CLEANFILES += \ |
da7b0ac4 MT |
211 | src/libpakfire/parser/grammar.c \ |
212 | src/libpakfire/parser/grammar.h \ | |
213 | src/libpakfire/parser/scanner.c | |
f9a691ef MT |
214 | |
215 | noinst_LTLIBRARIES += \ | |
216 | libpakfire-parser.la | |
217 | ||
218 | libpakfire_parser_la_SOURCES = \ | |
219 | src/libpakfire/parser/grammar.h \ | |
220 | src/libpakfire/parser/grammar.y \ | |
221 | src/libpakfire/parser/scanner.l | |
222 | ||
223 | libpakfire_parser_la_CFLAGS = \ | |
224 | $(AM_CFLAGS) | |
225 | ||
35ebb186 MT |
226 | libpakfire_parser_la_CPPFLAGS = \ |
227 | $(AM_CPPFLAGS) \ | |
228 | -I$(top_srcdir)/src/libpakfire/include \ | |
a0258b56 MT |
229 | -include $(top_builddir)/config.h \ |
230 | -DPAKFIRE_PRIVATE | |
35ebb186 | 231 | |
f9a691ef MT |
232 | src/libpakfire/parser/scanner.c: src/libpakfire/parser/grammar.h |
233 | ||
dee8ae80 MT |
234 | src/libpakfire/parser/grammar.h: src/libpakfire/parser/grammar.c |
235 | ||
236 | src/libpakfire/parser/grammar.c: src/libpakfire/parser/grammar.y Makefile | |
237 | $(AM_V_GEN) $(BISON) -Wall -t -d -o $@ $< | |
238 | ||
239 | BUILT_SOURCES += \ | |
240 | src/libpakfire/parser/grammar.h | |
241 | ||
221cc3ce MT |
242 | lib_LTLIBRARIES += \ |
243 | libpakfire.la | |
244 | ||
245 | libpakfire_la_SOURCES = \ | |
a5600261 | 246 | src/libpakfire/arch.c \ |
221cc3ce | 247 | src/libpakfire/archive.c \ |
9dd11ed0 | 248 | src/libpakfire/cgroup.c \ |
c352b776 | 249 | src/libpakfire/compress.c \ |
95b07a7f | 250 | src/libpakfire/config.c \ |
33d55ab4 | 251 | src/libpakfire/db.c \ |
af41db7e | 252 | src/libpakfire/dist.c \ |
ba26680e | 253 | src/libpakfire/downloader.c \ |
55b57cf6 | 254 | src/libpakfire/execute.c \ |
221cc3ce | 255 | src/libpakfire/file.c \ |
d03fa9a3 | 256 | src/libpakfire/filelist.c \ |
0a89bb8a | 257 | src/libpakfire/key.c \ |
f06095f1 | 258 | src/libpakfire/logging.c \ |
221cc3ce | 259 | src/libpakfire/package.c \ |
6aeb48e6 | 260 | src/libpakfire/packager.c \ |
221cc3ce | 261 | src/libpakfire/packagelist.c \ |
6e46b18e | 262 | src/libpakfire/pakfire.c \ |
a426e6b8 | 263 | src/libpakfire/parser.c \ |
d528058e | 264 | src/libpakfire/problem.c \ |
563e9600 | 265 | src/libpakfire/progressbar.c \ |
ce389fc8 | 266 | src/libpakfire/pwd.c \ |
221cc3ce MT |
267 | src/libpakfire/relation.c \ |
268 | src/libpakfire/relationlist.c \ | |
269 | src/libpakfire/repo.c \ | |
78cc8800 | 270 | src/libpakfire/repolist.c \ |
221cc3ce | 271 | src/libpakfire/request.c \ |
101264c8 | 272 | src/libpakfire/scriptlet.c \ |
a3fa61f4 | 273 | src/libpakfire/snapshot.c \ |
9c8337dd | 274 | src/libpakfire/solution.c \ |
221cc3ce MT |
275 | src/libpakfire/step.c \ |
276 | src/libpakfire/transaction.c \ | |
277 | src/libpakfire/util.c | |
278 | ||
279 | pkginclude_HEADERS += \ | |
a5600261 | 280 | src/libpakfire/include/pakfire/arch.h \ |
221cc3ce | 281 | src/libpakfire/include/pakfire/archive.h \ |
9dd11ed0 | 282 | src/libpakfire/include/pakfire/cgroup.h \ |
c352b776 | 283 | src/libpakfire/include/pakfire/compress.h \ |
95b07a7f | 284 | src/libpakfire/include/pakfire/config.h \ |
221cc3ce | 285 | src/libpakfire/include/pakfire/constants.h \ |
33d55ab4 | 286 | src/libpakfire/include/pakfire/db.h \ |
af41db7e | 287 | src/libpakfire/include/pakfire/dist.h \ |
ba26680e | 288 | src/libpakfire/include/pakfire/downloader.h \ |
55b57cf6 | 289 | src/libpakfire/include/pakfire/execute.h \ |
221cc3ce | 290 | src/libpakfire/include/pakfire/file.h \ |
d03fa9a3 | 291 | src/libpakfire/include/pakfire/filelist.h \ |
221cc3ce | 292 | src/libpakfire/include/pakfire/i18n.h \ |
0a89bb8a | 293 | src/libpakfire/include/pakfire/key.h \ |
f06095f1 | 294 | src/libpakfire/include/pakfire/logging.h \ |
221cc3ce | 295 | src/libpakfire/include/pakfire/package.h \ |
6aeb48e6 | 296 | src/libpakfire/include/pakfire/packager.h \ |
221cc3ce | 297 | src/libpakfire/include/pakfire/packagelist.h \ |
6e46b18e | 298 | src/libpakfire/include/pakfire/pakfire.h \ |
f9a691ef | 299 | src/libpakfire/include/pakfire/parser.h \ |
9f953e68 | 300 | src/libpakfire/include/pakfire/private.h \ |
d528058e | 301 | src/libpakfire/include/pakfire/problem.h \ |
563e9600 | 302 | src/libpakfire/include/pakfire/progressbar.h \ |
ce389fc8 | 303 | src/libpakfire/include/pakfire/pwd.h \ |
221cc3ce MT |
304 | src/libpakfire/include/pakfire/relation.h \ |
305 | src/libpakfire/include/pakfire/relationlist.h \ | |
306 | src/libpakfire/include/pakfire/repo.h \ | |
78cc8800 | 307 | src/libpakfire/include/pakfire/repolist.h \ |
221cc3ce | 308 | src/libpakfire/include/pakfire/request.h \ |
101264c8 | 309 | src/libpakfire/include/pakfire/scriptlet.h \ |
a3fa61f4 | 310 | src/libpakfire/include/pakfire/snapshot.h \ |
9c8337dd | 311 | src/libpakfire/include/pakfire/solution.h \ |
221cc3ce MT |
312 | src/libpakfire/include/pakfire/step.h \ |
313 | src/libpakfire/include/pakfire/transaction.h \ | |
314 | src/libpakfire/include/pakfire/types.h \ | |
315 | src/libpakfire/include/pakfire/util.h | |
316 | ||
317 | libpakfire_la_CFLAGS = \ | |
7b463f34 | 318 | $(AM_CFLAGS) \ |
9f953e68 | 319 | -fvisibility=hidden \ |
9d017afc | 320 | $(CURL_CFLAGS) \ |
6b2e1ec2 | 321 | $(JSON_C_CFLAGS) \ |
36230729 | 322 | $(OPENSSL_CFLAGS) \ |
ae83d808 | 323 | $(PCRE2_CFLAGS) \ |
3350b942 | 324 | $(SOLV_CFLAGS) \ |
df552c32 | 325 | $(SQLITE3_CFLAGS) \ |
2f5d648d MT |
326 | $(UUID_CFLAGS) \ |
327 | $(ZSTD_CFLAGS) | |
221cc3ce MT |
328 | |
329 | libpakfire_la_CPPFLAGS = \ | |
330 | $(AM_CPPFLAGS) \ | |
331 | -I$(top_srcdir)/src/libpakfire/include \ | |
332 | -include $(top_builddir)/config.h \ | |
333 | -DPAKFIRE_PRIVATE | |
334 | ||
335 | libpakfire_la_LDFLAGS = \ | |
336 | $(AM_LDFLAGS) \ | |
337 | -version-info $(LIBPAKFIRE_CURRENT):$(LIBPAKFIRE_REVISION):$(LIBPAKFIRE_AGE) \ | |
338 | -Wl,--version-script=$(top_srcdir)/src/libpakfire/libpakfire.sym | |
339 | ||
340 | libpakfire_la_LIBADD = \ | |
f9a691ef | 341 | libpakfire-parser.la \ |
221cc3ce | 342 | $(ARCHIVE_LIBS) \ |
9d017afc | 343 | $(CURL_LIBS) \ |
0e75ae24 | 344 | $(GPGME_LIBS) \ |
6b2e1ec2 | 345 | $(JSON_C_LIBS) \ |
e207c23c | 346 | $(LZMA_LIBS) \ |
36230729 | 347 | $(OPENSSL_LIBS) \ |
ae83d808 | 348 | $(PCRE2_LIBS) \ |
26affd69 | 349 | $(SOLV_LIBS) \ |
df552c32 | 350 | $(SQLITE3_LIBS) \ |
2f5d648d MT |
351 | $(UUID_LIBS) \ |
352 | $(ZSTD_LIBS) | |
221cc3ce | 353 | |
b30972cd | 354 | libpakfire_la_DEPENDENCIES = \ |
f9a691ef MT |
355 | src/libpakfire/libpakfire.sym \ |
356 | libpakfire-parser.la | |
b30972cd | 357 | |
221cc3ce MT |
358 | EXTRA_DIST += \ |
359 | src/libpakfire/libpakfire.sym | |
360 | ||
ad970155 MT |
361 | noinst_LTLIBRARIES += \ |
362 | libpakfire-internal.la | |
363 | ||
364 | libpakfire_internal_la_SOURCES = \ | |
365 | $(libpakfire_la_SOURCES) | |
366 | ||
367 | libpakfire_internal_la_CPPFLAGS = \ | |
368 | $(libpakfire_la_CPPFLAGS) | |
369 | ||
370 | libpakfire_internal_la_CFLAGS = \ | |
371 | $(libpakfire_la_CFLAGS) | |
372 | ||
373 | libpakfire_internal_la_LDFLAGS = \ | |
374 | $(AM_LDFLAGS) \ | |
375 | -Wl,--version-script=$(top_srcdir)/src/libpakfire/libpakfire.sym | |
376 | ||
377 | libpakfire_internal_la_LIBADD = \ | |
378 | $(libpakfire_la_LIBADD) | |
379 | ||
380 | libpakfire_internal_la_DEPENDENCIES = \ | |
381 | $(libpakfire_la_DEPENDENCIES) | |
382 | ||
7b463f34 | 383 | check_PROGRAMS += \ |
35ed7247 | 384 | tests/libpakfire/main \ |
10ad6f16 | 385 | tests/libpakfire/arch \ |
134b2757 | 386 | tests/libpakfire/archive \ |
9dd11ed0 | 387 | tests/libpakfire/cgroup \ |
d909a3a2 | 388 | tests/libpakfire/compress \ |
95b07a7f | 389 | tests/libpakfire/config \ |
746e9da5 | 390 | tests/libpakfire/db \ |
e1e46f50 | 391 | tests/libpakfire/downloader \ |
55b57cf6 | 392 | tests/libpakfire/execute \ |
a46d234a | 393 | tests/libpakfire/key \ |
8d687eaa | 394 | tests/libpakfire/makefile \ |
8da2c139 | 395 | tests/libpakfire/packager \ |
e1392437 | 396 | tests/libpakfire/parser \ |
563e9600 | 397 | tests/libpakfire/progressbar \ |
b9888230 | 398 | tests/libpakfire/repo \ |
e1392437 | 399 | tests/libpakfire/util |
7b463f34 MT |
400 | |
401 | dist_tests_libpakfire_main_SOURCES = \ | |
402 | tests/libpakfire/main.c | |
403 | ||
404 | tests_libpakfire_main_CPPFLAGS = \ | |
3e936d67 MT |
405 | $(TESTSUITE_CPPFLAGS) \ |
406 | -DTEST_ROOTFS=\"$(TEST_ROOTFS)\" | |
7b463f34 MT |
407 | |
408 | tests_libpakfire_main_LDADD = \ | |
ad970155 | 409 | $(TESTSUITE_LDADD) |
7b463f34 | 410 | |
10ad6f16 MT |
411 | tests_libpakfire_arch_SOURCES = \ |
412 | tests/libpakfire/arch.c | |
413 | ||
414 | tests_libpakfire_arch_CPPFLAGS = \ | |
415 | $(TESTSUITE_CPPFLAGS) | |
416 | ||
417 | tests_libpakfire_arch_LDADD = \ | |
ad970155 | 418 | $(TESTSUITE_LDADD) |
10ad6f16 | 419 | |
134b2757 MT |
420 | tests_libpakfire_archive_SOURCES = \ |
421 | tests/libpakfire/archive.c | |
422 | ||
423 | tests_libpakfire_archive_CPPFLAGS = \ | |
424 | $(TESTSUITE_CPPFLAGS) | |
425 | ||
426 | tests_libpakfire_archive_LDADD = \ | |
ad970155 | 427 | $(TESTSUITE_LDADD) |
134b2757 | 428 | |
9dd11ed0 | 429 | dist_tests_libpakfire_cgroup_SOURCES = \ |
ad970155 | 430 | tests/libpakfire/cgroup.c |
9dd11ed0 MT |
431 | |
432 | tests_libpakfire_cgroup_CPPFLAGS = \ | |
ad970155 | 433 | $(TESTSUITE_CPPFLAGS) |
9dd11ed0 MT |
434 | |
435 | tests_libpakfire_cgroup_LDADD = \ | |
ad970155 | 436 | $(TESTSUITE_LDADD) |
9dd11ed0 | 437 | |
d909a3a2 | 438 | dist_tests_libpakfire_compress_SOURCES = \ |
ad970155 | 439 | tests/libpakfire/compress.c |
d909a3a2 MT |
440 | |
441 | tests_libpakfire_compress_CPPFLAGS = \ | |
ad970155 | 442 | $(TESTSUITE_CPPFLAGS) |
d909a3a2 MT |
443 | |
444 | tests_libpakfire_compress_LDADD = \ | |
ad970155 | 445 | $(TESTSUITE_LDADD) |
d909a3a2 | 446 | |
95b07a7f | 447 | dist_tests_libpakfire_config_SOURCES = \ |
ad970155 | 448 | tests/libpakfire/config.c |
95b07a7f MT |
449 | |
450 | tests_libpakfire_config_CPPFLAGS = \ | |
ad970155 | 451 | $(TESTSUITE_CPPFLAGS) |
95b07a7f MT |
452 | |
453 | tests_libpakfire_config_LDADD = \ | |
ad970155 | 454 | $(TESTSUITE_LDADD) |
95b07a7f | 455 | |
746e9da5 MT |
456 | tests_libpakfire_db_SOURCES = \ |
457 | tests/libpakfire/db.c | |
458 | ||
459 | tests_libpakfire_db_CPPFLAGS = \ | |
460 | $(TESTSUITE_CPPFLAGS) | |
461 | ||
462 | tests_libpakfire_db_LDADD = \ | |
ad970155 | 463 | $(TESTSUITE_LDADD) |
746e9da5 | 464 | |
e1e46f50 | 465 | dist_tests_libpakfire_downloader_SOURCES = \ |
ad970155 | 466 | tests/libpakfire/downloader.c |
e1e46f50 MT |
467 | |
468 | tests_libpakfire_downloader_CPPFLAGS = \ | |
ad970155 | 469 | $(TESTSUITE_CPPFLAGS) |
e1e46f50 MT |
470 | |
471 | tests_libpakfire_downloader_LDADD = \ | |
ad970155 | 472 | $(TESTSUITE_LDADD) |
e1e46f50 | 473 | |
55b57cf6 MT |
474 | tests_libpakfire_execute_SOURCES = \ |
475 | tests/libpakfire/execute.c | |
476 | ||
477 | tests_libpakfire_execute_CPPFLAGS = \ | |
478 | $(TESTSUITE_CPPFLAGS) | |
479 | ||
480 | tests_libpakfire_execute_LDADD = \ | |
ad970155 | 481 | $(TESTSUITE_LDADD) |
55b57cf6 | 482 | |
35ed7247 MT |
483 | tests_libpakfire_key_SOURCES = \ |
484 | tests/libpakfire/key.c \ | |
485 | tests/libpakfire/key.h | |
486 | ||
487 | tests_libpakfire_key_CPPFLAGS = \ | |
488 | $(TESTSUITE_CPPFLAGS) | |
489 | ||
490 | tests_libpakfire_key_LDADD = \ | |
ad970155 | 491 | $(TESTSUITE_LDADD) |
35ed7247 | 492 | |
b7a1fdad MT |
493 | dist_tests_libpakfire_makefile_SOURCES = \ |
494 | tests/libpakfire/makefile.c | |
495 | ||
496 | tests_libpakfire_makefile_CPPFLAGS = \ | |
ad970155 | 497 | $(TESTSUITE_CPPFLAGS) |
b7a1fdad MT |
498 | |
499 | tests_libpakfire_makefile_LDADD = \ | |
ad970155 | 500 | $(TESTSUITE_LDADD) |
a46d234a | 501 | |
8da2c139 MT |
502 | dist_tests_libpakfire_packager_SOURCES = \ |
503 | tests/libpakfire/packager.c | |
504 | ||
505 | tests_libpakfire_packager_CPPFLAGS = \ | |
506 | $(TESTSUITE_CPPFLAGS) | |
507 | ||
508 | tests_libpakfire_packager_LDADD = \ | |
ad970155 | 509 | $(TESTSUITE_LDADD) |
8da2c139 | 510 | |
8d687eaa MT |
511 | dist_tests_libpakfire_parser_SOURCES = \ |
512 | tests/libpakfire/parser.c | |
513 | ||
514 | tests_libpakfire_parser_CPPFLAGS = \ | |
515 | $(TESTSUITE_CPPFLAGS) | |
516 | ||
517 | tests_libpakfire_parser_LDADD = \ | |
ad970155 | 518 | $(TESTSUITE_LDADD) |
8d687eaa | 519 | |
563e9600 | 520 | dist_tests_libpakfire_progressbar_SOURCES = \ |
ad970155 | 521 | tests/libpakfire/progressbar.c |
563e9600 MT |
522 | |
523 | tests_libpakfire_progressbar_CPPFLAGS = \ | |
ad970155 | 524 | $(TESTSUITE_CPPFLAGS) |
563e9600 MT |
525 | |
526 | tests_libpakfire_progressbar_LDADD = \ | |
ad970155 | 527 | $(TESTSUITE_LDADD) |
563e9600 | 528 | |
b9888230 MT |
529 | dist_tests_libpakfire_repo_SOURCES = \ |
530 | tests/libpakfire/repo.c | |
531 | ||
532 | tests_libpakfire_repo_CPPFLAGS = \ | |
533 | $(TESTSUITE_CPPFLAGS) | |
534 | ||
535 | tests_libpakfire_repo_LDADD = \ | |
ad970155 | 536 | $(TESTSUITE_LDADD) |
b9888230 | 537 | |
e1392437 | 538 | dist_tests_libpakfire_util_SOURCES = \ |
ad970155 | 539 | tests/libpakfire/util.c |
e1392437 MT |
540 | |
541 | tests_libpakfire_util_CPPFLAGS = \ | |
ad970155 | 542 | $(TESTSUITE_CPPFLAGS) |
e1392437 MT |
543 | |
544 | tests_libpakfire_util_LDADD = \ | |
ad970155 | 545 | $(TESTSUITE_LDADD) |
e1392437 | 546 | |
221cc3ce MT |
547 | # ------------------------------------------------------------------------------ |
548 | ||
b55979b4 MT |
549 | lib_LTLIBRARIES += \ |
550 | libpakfire_preload.la | |
551 | ||
552 | libpakfire_preload_la_SOURCES = \ | |
553 | src/libpakfire_preload/uname.c | |
554 | ||
555 | libpakfire_preload_la_LDFLAGS = \ | |
556 | $(AM_LDFLAGS) \ | |
557 | -shared \ | |
558 | -module \ | |
559 | -avoid-version | |
560 | ||
561 | libpakfire_preload_la_LIBADD = \ | |
562 | $(DL_LIBS) | |
563 | ||
564 | # ------------------------------------------------------------------------------ | |
565 | ||
b55979b4 MT |
566 | scripts_SCRIPTS = \ |
567 | src/scripts/extract-debuginfo \ | |
568 | src/scripts/quality-agent | |
569 | ||
570 | EXTRA_DIST += \ | |
571 | src/scripts/extract-debuginfo.in \ | |
572 | src/scripts/quality-agent.in | |
573 | ||
574 | CLEANFILES += \ | |
575 | src/scripts/extract-debuginfo \ | |
576 | src/scripts/quality-agent | |
577 | ||
578 | dist_scripts_SCRIPTS = \ | |
579 | src/scripts/chroot-shell \ | |
580 | src/scripts/cleanup \ | |
581 | src/scripts/compress-man-pages \ | |
582 | src/scripts/find-common \ | |
583 | src/scripts/find-prerequires \ | |
584 | src/scripts/find-provides \ | |
585 | src/scripts/find-requires \ | |
586 | src/scripts/patch \ | |
587 | src/scripts/perl.prov \ | |
588 | src/scripts/perl.req \ | |
589 | src/scripts/py-compile \ | |
590 | src/scripts/remove-static-libs | |
591 | ||
592 | dist_scripts_DATA = \ | |
593 | src/scripts/functions-common \ | |
594 | src/scripts/functions-constants \ | |
595 | src/scripts/functions-directories \ | |
596 | src/scripts/functions-files \ | |
597 | src/scripts/functions-lists \ | |
598 | src/scripts/functions-logging | |
599 | ||
600 | # ------------------------------------------------------------------------------ | |
601 | ||
602 | dist_qualityagent_SCRIPTS = \ | |
603 | src/quality-agent/001-include-files \ | |
604 | src/quality-agent/001-remove-info-files \ | |
605 | src/quality-agent/001-unsafe-files \ | |
606 | src/quality-agent/002-bad-symlinks \ | |
607 | src/quality-agent/003-libs-location \ | |
608 | src/quality-agent/050-canary \ | |
609 | src/quality-agent/050-execstacks \ | |
610 | src/quality-agent/050-invalid-interpreters \ | |
611 | src/quality-agent/050-libs-needed \ | |
612 | src/quality-agent/050-libs-soname \ | |
613 | src/quality-agent/050-libs-x86_64 \ | |
614 | src/quality-agent/050-nx \ | |
615 | src/quality-agent/050-relro \ | |
616 | src/quality-agent/050-rpaths \ | |
617 | src/quality-agent/095-directory-layout | |
618 | ||
619 | dist_qualityagent_DATA = \ | |
620 | src/quality-agent/qa-include | |
621 | ||
622 | # ------------------------------------------------------------------------------ | |
623 | ||
624 | dist_macros_DATA = \ | |
625 | macros/arch.macro \ | |
626 | macros/build.macro \ | |
627 | macros/cflags.macro \ | |
628 | macros/constants.macro \ | |
629 | macros/package-default.macro \ | |
630 | macros/perl.macro \ | |
631 | macros/python.macro \ | |
632 | macros/quality-agent.macro \ | |
633 | macros/systemd.macro \ | |
634 | macros/templates.macro | |
635 | ||
636 | # ------------------------------------------------------------------------------ | |
637 | ||
638 | if HAVE_SYSTEMD | |
639 | systemdsystemunit_DATA = \ | |
640 | src/systemd/pakfire-daemon.service | |
641 | ||
642 | EXTRA_DIST += \ | |
643 | src/systemd/pakfire-daemon.service.in | |
644 | ||
645 | CLEANFILES += \ | |
646 | src/systemd/pakfire-daemon.service | |
647 | endif | |
648 | ||
649 | # ------------------------------------------------------------------------------ | |
650 | ||
651 | dist_configs_DATA = \ | |
b55979b4 MT |
652 | contrib/config/client.conf \ |
653 | contrib/config/daemon.conf \ | |
654 | contrib/config/general.conf | |
655 | ||
656 | dist_configsdistros_DATA = \ | |
657 | contrib/config/distros/ipfire3.conf | |
658 | ||
659 | # ------------------------------------------------------------------------------ | |
660 | ||
661 | substitutions = \ | |
662 | '|PACKAGE_NAME=$(PACKAGE_NAME)|' \ | |
663 | '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \ | |
664 | '|bindir=$(bindir)|' \ | |
665 | '|libexecdir=$(libexecdir)|' \ | |
666 | '|qualityagentdir=$(qualityagentdir)|' | |
667 | ||
668 | SED_PROCESS = \ | |
669 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ | |
670 | $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \ | |
671 | < $< > $@ | |
672 | ||
673 | src/scripts/%: src/scripts/%.in Makefile | |
674 | $(SED_PROCESS) | |
675 | ||
676 | src/systemd/%: src/systemd/%.in Makefile | |
677 | $(SED_PROCESS) | |
db5396bb MT |
678 | |
679 | # - testsuite ------------------------------------------------------------------ | |
680 | ||
7b463f34 MT |
681 | check_LTLIBRARIES = \ |
682 | tests/libtestsuite.la | |
683 | ||
684 | tests_libtestsuite_la_SOURCES = \ | |
685 | tests/testsuite.c \ | |
686 | tests/testsuite.h | |
687 | ||
4250f96b | 688 | tests_libtestsuite_la_CPPFLAGS = \ |
e1e46f50 | 689 | $(TESTSUITE_CPPFLAGS) |
4250f96b | 690 | |
7b463f34 MT |
691 | TESTSUITE_CPPFLAGS = \ |
692 | $(AM_CPPFLAGS) \ | |
e1e46f50 MT |
693 | $(PAKFIRE_CPPFLAGS) \ |
694 | -DABS_TOP_SRCDIR=\"$(abs_top_srcdir)\" \ | |
cb4ccff9 MT |
695 | -DTEST_ROOTFS=\"$(TEST_ROOTFS)\" \ |
696 | -DPAKFIRE_PRIVATE | |
7b463f34 MT |
697 | |
698 | TESTSUITE_LDADD = \ | |
ad970155 MT |
699 | tests/libtestsuite.la \ |
700 | libpakfire.la \ | |
701 | libpakfire-internal.la | |
7b463f34 | 702 | |
db5396bb | 703 | TESTS_ENVIRONMENT = \ |
b793862a | 704 | TEST_DATA_DIR="$(abs_top_srcdir)/tests/data" \ |
f06095f1 | 705 | PAKFIRE_LOG=debug \ |
db5396bb MT |
706 | PYTHONPATH="$(top_srcdir)/.libs:$(top_srcdir)/src" \ |
707 | topdir="$(shell pwd)" | |
708 | ||
77511b48 | 709 | dist_check_SCRIPTS = \ |
0b95b06f | 710 | tests/python/execute.py \ |
40f17018 | 711 | tests/python/parser.py \ |
a304fc14 | 712 | tests/python/progressbar.py \ |
77511b48 | 713 | tests/python/test.py |
db5396bb MT |
714 | |
715 | TESTS = \ | |
7b463f34 MT |
716 | $(check_PROGRAMS) \ |
717 | $(dist_check_SCRIPTS) | |
134b2757 MT |
718 | |
719 | # Some test data to run tests | |
720 | EXTRA_DIST += \ | |
54bf8fba MT |
721 | tests/pakfire.conf \ |
722 | \ | |
134b2757 | 723 | tests/data/726D8B0B0889B04E.key \ |
2caf2a8c MT |
724 | tests/data/beep-1.3-2.ip3.x86_64.pfm \ |
725 | \ | |
d6a88c88 MT |
726 | tests/data/beep.nm \ |
727 | tests/data/kernel.nm \ | |
728 | \ | |
d909a3a2 | 729 | tests/data/compress/data.xz \ |
9476d502 | 730 | tests/data/compress/data.zst \ |
d909a3a2 | 731 | \ |
2caf2a8c | 732 | tests/data/parser/test-comments.txt \ |
aff85bdb | 733 | tests/data/parser/test-conditionals.txt \ |
aed19891 | 734 | tests/data/parser/test-declarations.txt \ |
36446af0 MT |
735 | tests/data/parser/test-subparsers.txt \ |
736 | tests/data/parser/perl.info | |
3e936d67 MT |
737 | |
738 | .PHONY: clean-local-check | |
739 | clean-local-check: | |
6dbda957 | 740 | -rm -rf $(TEST_ROOTFS)/* |