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