]> git.ipfire.org Git - thirdparty/systemd.git/blob - Makefile.am
basic: add RB-Tree implementation
[thirdparty/systemd.git] / Makefile.am
1 # -*- Mode: makefile; indent-tabs-mode: t -*-
2 #
3 # This file is part of systemd.
4 #
5 # Copyright 2010-2012 Lennart Poettering
6 # Copyright 2010-2012 Kay Sievers
7 # Copyright 2013 Zbigniew Jędrzejewski-Szmek
8 # Copyright 2013 David Strauss
9 #
10 # systemd is free software; you can redistribute it and/or modify it
11 # under the terms of the GNU Lesser General Public License as published by
12 # the Free Software Foundation; either version 2.1 of the License, or
13 # (at your option) any later version.
14 #
15 # systemd is distributed in the hope that it will be useful, but
16 # WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 # Lesser General Public License for more details.
19 #
20 # You should have received a copy of the GNU Lesser General Public License
21 # along with systemd; If not, see <http://www.gnu.org/licenses/>.
22
23 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
24 AM_MAKEFLAGS = --no-print-directory
25 AUTOMAKE_OPTIONS = color-tests parallel-tests
26
27 GCC_COLORS ?= 'ooh, shiny!'
28 export GCC_COLORS
29
30 SUBDIRS = . po
31
32 # remove targets if the command fails
33 .DELETE_ON_ERROR:
34
35 # keep intermediate files
36 .SECONDARY:
37
38 # Keep the test-suite.log
39 .PRECIOUS: $(TEST_SUITE_LOG) Makefile
40
41 LIBUDEV_CURRENT=7
42 LIBUDEV_REVISION=4
43 LIBUDEV_AGE=6
44
45 LIBSYSTEMD_CURRENT=13
46 LIBSYSTEMD_REVISION=0
47 LIBSYSTEMD_AGE=13
48
49 # The following four libraries only exist for compatibility reasons,
50 # their version info should not be bumped anymore
51 LIBSYSTEMD_LOGIN_CURRENT=9
52 LIBSYSTEMD_LOGIN_REVISION=3
53 LIBSYSTEMD_LOGIN_AGE=9
54
55 LIBSYSTEMD_DAEMON_CURRENT=0
56 LIBSYSTEMD_DAEMON_REVISION=12
57 LIBSYSTEMD_DAEMON_AGE=0
58
59 LIBSYSTEMD_ID128_CURRENT=0
60 LIBSYSTEMD_ID128_REVISION=28
61 LIBSYSTEMD_ID128_AGE=0
62
63 LIBSYSTEMD_JOURNAL_CURRENT=11
64 LIBSYSTEMD_JOURNAL_REVISION=5
65 LIBSYSTEMD_JOURNAL_AGE=11
66
67 # Dirs of external packages
68 dbuspolicydir=@dbuspolicydir@
69 dbussessionservicedir=@dbussessionservicedir@
70 dbussystemservicedir=@dbussystemservicedir@
71 pamlibdir=@pamlibdir@
72 pamconfdir=@pamconfdir@
73 pkgconfigdatadir=$(datadir)/pkgconfig
74 pkgconfiglibdir=$(libdir)/pkgconfig
75 polkitpolicydir=$(datadir)/polkit-1/actions
76 bashcompletiondir=@bashcompletiondir@
77 zshcompletiondir=@zshcompletiondir@
78 rpmmacrosdir=$(prefix)/lib/rpm/macros.d
79 sysvinitdir=$(SYSTEM_SYSVINIT_PATH)
80 sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
81 varlogdir=$(localstatedir)/log
82 systemdstatedir=$(localstatedir)/lib/systemd
83 catalogstatedir=$(systemdstatedir)/catalog
84 xinitrcdir=$(sysconfdir)/X11/xinit/xinitrc.d
85
86 # Our own, non-special dirs
87 pkgsysconfdir=$(sysconfdir)/systemd
88 userunitdir=$(prefix)/lib/systemd/user
89 userpresetdir=$(prefix)/lib/systemd/user-preset
90 tmpfilesdir=$(prefix)/lib/tmpfiles.d
91 sysusersdir=$(prefix)/lib/sysusers.d
92 sysctldir=$(prefix)/lib/sysctl.d
93 binfmtdir=$(prefix)/lib/binfmt.d
94 modulesloaddir=$(prefix)/lib/modules-load.d
95 networkdir=$(rootprefix)/lib/systemd/network
96 pkgincludedir=$(includedir)/systemd
97 systemgeneratordir=$(rootlibexecdir)/system-generators
98 usergeneratordir=$(prefix)/lib/systemd/user-generators
99 systemshutdowndir=$(rootlibexecdir)/system-shutdown
100 systemsleepdir=$(rootlibexecdir)/system-sleep
101 systemunitdir=$(rootprefix)/lib/systemd/system
102 systempresetdir=$(rootprefix)/lib/systemd/system-preset
103 udevlibexecdir=$(rootprefix)/lib/udev
104 udevhomedir=$(udevlibexecdir)
105 udevrulesdir=$(udevlibexecdir)/rules.d
106 udevhwdbdir=$(udevlibexecdir)/hwdb.d
107 catalogdir=$(prefix)/lib/systemd/catalog
108 kernelinstalldir = $(prefix)/lib/kernel/install.d
109 factory_etcdir = $(datadir)/factory/etc
110 factory_pamdir = $(datadir)/factory/etc/pam.d
111 bootlibdir = $(prefix)/lib/systemd/boot/efi
112
113 # And these are the special ones for /
114 rootprefix=@rootprefix@
115 rootbindir=$(rootprefix)/bin
116 rootlibexecdir=$(rootprefix)/lib/systemd
117
118 EXTRA_DIST =
119 BUILT_SOURCES =
120 INSTALL_EXEC_HOOKS =
121 UNINSTALL_EXEC_HOOKS =
122 INSTALL_DATA_HOOKS =
123 UNINSTALL_DATA_HOOKS =
124 DISTCLEAN_LOCAL_HOOKS =
125 CLEAN_LOCAL_HOOKS =
126 pkginclude_HEADERS =
127 noinst_LTLIBRARIES =
128 lib_LTLIBRARIES =
129 include_HEADERS =
130 noinst_DATA =
131 pkgconfigdata_DATA =
132 pkgconfiglib_DATA =
133 polkitpolicy_in_in_files =
134 polkitpolicy_in_files =
135 polkitpolicy_files =
136 dist_udevrules_DATA =
137 nodist_udevrules_DATA =
138 dist_pkgsysconf_DATA =
139 nodist_pkgsysconf_DATA =
140 dist_dbuspolicy_DATA =
141 dist_dbussystemservice_DATA =
142 dist_systemunit_DATA_busnames =
143 dist_sysusers_DATA =
144 check_PROGRAMS =
145 check_DATA =
146 tests=
147 manual_tests =
148 TEST_EXTENSIONS = .py
149 PY_LOG_COMPILER = $(PYTHON)
150 if ENABLE_TESTS
151 noinst_PROGRAMS = $(manual_tests) $(tests)
152 TESTS = $(tests)
153 else
154 noinst_PROGRAMS =
155 TESTS =
156 endif
157 udevlibexec_PROGRAMS =
158 gperf_gperf_sources =
159
160 in_files = $(filter %.in,$(EXTRA_DIST))
161 in_in_files = $(filter %.in.in, $(in_files))
162 m4_files = $(filter %.m4,$(EXTRA_DIST) $(in_files:.m4.in=.m4))
163
164 CLEANFILES = $(BUILT_SOURCES) \
165 $(pkgconfigdata_DATA) \
166 $(pkgconfiglib_DATA) \
167 $(in_files:.in=) $(in_in_files:.in.in=) \
168 $(m4_files:.m4=)
169
170 .PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \
171 $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \
172 $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS)
173
174 AM_CPPFLAGS = \
175 -include $(top_builddir)/config.h \
176 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
177 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
178 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
179 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
180 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
181 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
182 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
183 -DCERTIFICATE_ROOT=\"$(CERTIFICATEROOT)\" \
184 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
185 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
186 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
187 -DSYSTEMD_FSCK_PATH=\"$(rootlibexecdir)/systemd-fsck\" \
188 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
189 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
190 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
191 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
192 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
193 -DROOTPREFIX=\"$(rootprefix)\" \
194 -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \
195 -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
196 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
197 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
198 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
199 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
200 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
201 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
202 -DSYSTEMD_LANGUAGE_FALLBACK_MAP=\"$(pkgdatadir)/language-fallback-map\" \
203 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
204 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
205 -DQUOTACHECK=\"$(QUOTACHECK)\" \
206 -DKEXEC=\"$(KEXEC)\" \
207 -DMOUNT_PATH=\"$(MOUNT_PATH)\" \
208 -DUMOUNT_PATH=\"$(UMOUNT_PATH)\" \
209 -DLIBDIR=\"$(libdir)\" \
210 -DROOTLIBDIR=\"$(rootlibdir)\" \
211 -DROOTLIBEXECDIR=\"$(rootlibexecdir)\" \
212 -DTEST_DIR=\"$(abs_top_srcdir)/test\" \
213 -I $(top_srcdir)/src \
214 -I $(top_builddir)/src/basic \
215 -I $(top_srcdir)/src/basic \
216 -I $(top_srcdir)/src/shared \
217 -I $(top_builddir)/src/shared \
218 -I $(top_srcdir)/src/network \
219 -I $(top_srcdir)/src/login \
220 -I $(top_srcdir)/src/journal \
221 -I $(top_builddir)/src/journal \
222 -I $(top_srcdir)/src/timedate \
223 -I $(top_srcdir)/src/timesync \
224 -I $(top_srcdir)/src/nspawn \
225 -I $(top_srcdir)/src/resolve \
226 -I $(top_builddir)/src/resolve \
227 -I $(top_srcdir)/src/systemd \
228 -I $(top_builddir)/src/core \
229 -I $(top_srcdir)/src/core \
230 -I $(top_srcdir)/src/libudev \
231 -I $(top_srcdir)/src/udev \
232 -I $(top_srcdir)/src/udev/net \
233 -I $(top_builddir)/src/udev \
234 -I $(top_srcdir)/src/libsystemd/sd-bus \
235 -I $(top_srcdir)/src/libsystemd/sd-event \
236 -I $(top_srcdir)/src/libsystemd/sd-login \
237 -I $(top_srcdir)/src/libsystemd/sd-netlink \
238 -I $(top_srcdir)/src/libsystemd/sd-network \
239 -I $(top_srcdir)/src/libsystemd/sd-hwdb \
240 -I $(top_srcdir)/src/libsystemd/sd-device \
241 -I $(top_srcdir)/src/libsystemd-network \
242 $(OUR_CPPFLAGS)
243
244 AM_CFLAGS = $(OUR_CFLAGS)
245 AM_LDFLAGS = $(OUR_LDFLAGS)
246
247 # ------------------------------------------------------------------------------
248 define move-to-rootlibdir
249 if test "$(libdir)" != "$(rootlibdir)"; then \
250 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
251 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
252 rm -f $(DESTDIR)$(libdir)/$$libname && \
253 $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
254 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
255 fi
256 endef
257
258 INSTALL_DIRS =
259
260 SHUTDOWN_TARGET_WANTS =
261 LOCAL_FS_TARGET_WANTS =
262 MULTI_USER_TARGET_WANTS =
263 GRAPHICAL_TARGET_WANTS =
264 RESCUE_TARGET_WANTS =
265 SYSINIT_TARGET_WANTS =
266 SOCKETS_TARGET_WANTS =
267 BUSNAMES_TARGET_WANTS =
268 TIMERS_TARGET_WANTS =
269 USER_SOCKETS_TARGET_WANTS =
270 USER_DEFAULT_TARGET_WANTS =
271 USER_BUSNAMES_TARGET_WANTS =
272
273 SYSTEM_UNIT_ALIASES =
274 USER_UNIT_ALIASES =
275 GENERAL_ALIASES =
276
277 install-target-wants-hook:
278 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
279 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
280 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
281 what="$(GRAPHICAL_TARGET_WANTS)" && wants=graphical.target && dir=$(systemunitdir) && $(add-wants)
282 what="$(RESCUE_TARGET_WANTS)" && wants=rescue.target && dir=$(systemunitdir) && $(add-wants)
283 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
284 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
285 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
286 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
287 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
288 what="$(USER_DEFAULT_TARGET_WANTS)" && wants=default.target && dir=$(userunitdir) && $(add-wants)
289
290 install-busnames-target-wants-hook:
291 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
292 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
293
294 define add-wants
295 [ -z "$$what" ] || ( \
296 dir=$(DESTDIR)$$dir/$$wants.wants && \
297 $(MKDIR_P) -m 0755 $$dir && \
298 cd $$dir && \
299 rm -f $$what && \
300 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
301 endef
302
303 install-directories-hook:
304 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
305
306 install-aliases-hook:
307 set -- $(SYSTEM_UNIT_ALIASES) && \
308 dir=$(systemunitdir) && $(install-aliases)
309 set -- $(USER_UNIT_ALIASES) && \
310 dir=$(userunitdir) && $(install-relative-aliases)
311 set -- $(GENERAL_ALIASES) && \
312 dir= && $(install-relative-aliases)
313
314 define install-aliases
315 while [ -n "$$1" ]; do \
316 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
317 rm -f $(DESTDIR)$$dir/$$2 && \
318 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
319 shift 2 || exit $$?; \
320 done
321 endef
322
323 define install-relative-aliases
324 while [ -n "$$1" ]; do \
325 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
326 rm -f $(DESTDIR)$$dir/$$2 && \
327 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
328 shift 2 || exit $$?; \
329 done
330 endef
331
332 install-touch-usr-hook:
333 touch -c $(DESTDIR)/$(prefix)
334
335 INSTALL_EXEC_HOOKS += \
336 install-target-wants-hook \
337 install-directories-hook \
338 install-aliases-hook \
339 install-touch-usr-hook
340
341 INSTALL_EXEC_HOOKS += \
342 install-busnames-target-wants-hook
343
344 # ------------------------------------------------------------------------------
345 AM_V_M4 = $(AM_V_M4_$(V))
346 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
347 AM_V_M4_0 = @echo " M4 " $@;
348
349 AM_V_XSLT = $(AM_V_XSLT_$(V))
350 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
351 AM_V_XSLT_0 = @echo " XSLT " $@;
352
353 AM_V_GPERF = $(AM_V_GPERF_$(V))
354 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
355 AM_V_GPERF_0 = @echo " GPERF " $@;
356
357 AM_V_LN = $(AM_V_LN_$(V))
358 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
359 AM_V_LN_0 = @echo " LN " $@;
360
361 AM_V_RM = $(AM_V_RM_$(V))
362 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
363 AM_V_RM_0 = @echo " RM " $@;
364
365 # ------------------------------------------------------------------------------
366 rootbin_PROGRAMS = \
367 systemctl \
368 systemd-notify \
369 systemd-ask-password \
370 systemd-tty-ask-password-agent \
371 systemd-machine-id-setup \
372 systemd-escape
373
374 bin_PROGRAMS = \
375 systemd-cgls \
376 systemd-cgtop \
377 systemd-nspawn \
378 systemd-detect-virt \
379 systemd-delta \
380 systemd-analyze \
381 systemd-run \
382 systemd-stdio-bridge \
383 systemd-path
384
385 dist_bin_SCRIPTS = \
386 src/kernel-install/kernel-install
387
388 dist_kernelinstall_SCRIPTS = \
389 src/kernel-install/50-depmod.install \
390 src/kernel-install/90-loaderentry.install
391
392 rootlibexec_PROGRAMS = \
393 systemd \
394 systemd-cgroups-agent \
395 systemd-initctl \
396 systemd-shutdown \
397 systemd-remount-fs \
398 systemd-reply-password \
399 systemd-fsck \
400 systemd-ac-power \
401 systemd-sysctl \
402 systemd-sleep \
403 systemd-bus-proxyd \
404 systemd-socket-proxyd \
405 systemd-update-done
406
407 if HAVE_UTMP
408 rootlibexec_PROGRAMS += \
409 systemd-update-utmp
410 endif
411
412 systemgenerator_PROGRAMS = \
413 systemd-getty-generator \
414 systemd-fstab-generator \
415 systemd-system-update-generator \
416 systemd-debug-generator
417
418 if ENABLE_BASH_COMPLETION
419 dist_bashcompletion_DATA = \
420 shell-completion/bash/busctl \
421 shell-completion/bash/journalctl \
422 shell-completion/bash/systemd-analyze \
423 shell-completion/bash/systemd-cat \
424 shell-completion/bash/systemd-cgls \
425 shell-completion/bash/systemd-cgtop \
426 shell-completion/bash/systemd-delta \
427 shell-completion/bash/systemd-detect-virt \
428 shell-completion/bash/systemd-nspawn \
429 shell-completion/bash/systemd-path \
430 shell-completion/bash/systemd-run \
431 shell-completion/bash/udevadm \
432 shell-completion/bash/kernel-install
433
434 nodist_bashcompletion_DATA = \
435 shell-completion/bash/systemctl
436 endif
437
438 if ENABLE_ZSH_COMPLETION
439 dist_zshcompletion_DATA = \
440 shell-completion/zsh/_busctl \
441 shell-completion/zsh/_journalctl \
442 shell-completion/zsh/_udevadm \
443 shell-completion/zsh/_kernel-install \
444 shell-completion/zsh/_systemd-nspawn \
445 shell-completion/zsh/_systemd-analyze \
446 shell-completion/zsh/_systemd-run \
447 shell-completion/zsh/_sd_hosts_or_user_at_host \
448 shell-completion/zsh/_sd_outputmodes \
449 shell-completion/zsh/_sd_unit_files \
450 shell-completion/zsh/_systemd-delta \
451 shell-completion/zsh/_systemd
452
453 nodist_zshcompletion_DATA = \
454 shell-completion/zsh/_systemctl
455 endif
456
457 EXTRA_DIST += \
458 shell-completion/bash/systemctl.in \
459 shell-completion/zsh/_systemctl.in
460
461 CLEANFILES += \
462 $(nodist_bashcompletion_DATA) \
463 $(nodist_zshcompletion_DATA)
464
465 dist_sysctl_DATA = \
466 sysctl.d/50-default.conf
467
468 dist_systemunit_DATA = \
469 units/graphical.target \
470 units/multi-user.target \
471 units/emergency.target \
472 units/sysinit.target \
473 units/basic.target \
474 units/getty.target \
475 units/halt.target \
476 units/kexec.target \
477 units/exit.target \
478 units/local-fs.target \
479 units/local-fs-pre.target \
480 units/initrd.target \
481 units/initrd-fs.target \
482 units/initrd-root-fs.target \
483 units/remote-fs.target \
484 units/remote-fs-pre.target \
485 units/network.target \
486 units/network-pre.target \
487 units/network-online.target \
488 units/nss-lookup.target \
489 units/nss-user-lookup.target \
490 units/poweroff.target \
491 units/reboot.target \
492 units/rescue.target \
493 units/rpcbind.target \
494 units/time-sync.target \
495 units/shutdown.target \
496 units/final.target \
497 units/umount.target \
498 units/sigpwr.target \
499 units/sleep.target \
500 units/sockets.target \
501 units/timers.target \
502 units/paths.target \
503 units/suspend.target \
504 units/swap.target \
505 units/slices.target \
506 units/system.slice \
507 units/x-.slice \
508 units/systemd-initctl.socket \
509 units/syslog.socket \
510 units/dev-hugepages.mount \
511 units/dev-mqueue.mount \
512 units/sys-kernel-config.mount \
513 units/sys-kernel-debug.mount \
514 units/sys-fs-fuse-connections.mount \
515 units/tmp.mount \
516 units/var-lib-machines.mount \
517 units/printer.target \
518 units/sound.target \
519 units/bluetooth.target \
520 units/smartcard.target \
521 units/systemd-ask-password-wall.path \
522 units/systemd-ask-password-console.path \
523 units/systemd-udevd-control.socket \
524 units/systemd-udevd-kernel.socket \
525 units/system-update.target \
526 units/initrd-switch-root.target \
527 units/machines.target
528
529 dist_systemunit_DATA += \
530 $(dist_systemunit_DATA_busnames)
531
532 dist_systemunit_DATA_busnames += \
533 units/busnames.target
534
535 nodist_systemunit_DATA = \
536 units/getty@.service \
537 units/serial-getty@.service \
538 units/console-shell.service \
539 units/console-getty.service \
540 units/container-getty@.service \
541 units/systemd-initctl.service \
542 units/systemd-remount-fs.service \
543 units/systemd-ask-password-wall.service \
544 units/systemd-ask-password-console.service \
545 units/systemd-sysctl.service \
546 units/emergency.service \
547 units/rescue.service \
548 units/user@.service \
549 units/systemd-suspend.service \
550 units/systemd-halt.service \
551 units/systemd-poweroff.service \
552 units/systemd-reboot.service \
553 units/systemd-kexec.service \
554 units/systemd-exit.service \
555 units/systemd-fsck@.service \
556 units/systemd-fsck-root.service \
557 units/systemd-machine-id-commit.service \
558 units/systemd-udevd.service \
559 units/systemd-udev-trigger.service \
560 units/systemd-udev-settle.service \
561 units/systemd-hwdb-update.service \
562 units/debug-shell.service \
563 units/initrd-parse-etc.service \
564 units/initrd-cleanup.service \
565 units/initrd-udevadm-cleanup-db.service \
566 units/initrd-switch-root.service \
567 units/systemd-nspawn@.service \
568 units/systemd-update-done.service
569
570 if HAVE_UTMP
571 nodist_systemunit_DATA += \
572 units/systemd-update-utmp.service \
573 units/systemd-update-utmp-runlevel.service
574 endif
575
576 dist_userunit_DATA = \
577 units/user/basic.target \
578 units/user/default.target \
579 units/user/exit.target
580
581 nodist_userunit_DATA = \
582 units/user/systemd-exit.service
583
584 dist_systempreset_DATA = \
585 system-preset/90-systemd.preset
586
587 EXTRA_DIST += \
588 units/getty@.service.m4 \
589 units/serial-getty@.service.m4 \
590 units/console-shell.service.m4.in \
591 units/console-getty.service.m4.in \
592 units/container-getty@.service.m4.in \
593 units/rescue.service.in \
594 units/systemd-initctl.service.in \
595 units/systemd-remount-fs.service.in \
596 units/systemd-update-utmp.service.in \
597 units/systemd-update-utmp-runlevel.service.in \
598 units/systemd-ask-password-wall.service.in \
599 units/systemd-ask-password-console.service.in \
600 units/systemd-sysctl.service.in \
601 units/emergency.service.in \
602 units/systemd-halt.service.in \
603 units/systemd-poweroff.service.in \
604 units/systemd-reboot.service.in \
605 units/systemd-kexec.service.in \
606 units/systemd-exit.service.in \
607 units/user/systemd-exit.service.in \
608 units/systemd-fsck@.service.in \
609 units/systemd-fsck-root.service.in \
610 units/systemd-machine-id-commit.service.in \
611 units/user@.service.m4.in \
612 units/debug-shell.service.in \
613 units/systemd-suspend.service.in \
614 units/quotaon.service.in \
615 units/initrd-parse-etc.service.in \
616 units/initrd-cleanup.service.in \
617 units/initrd-udevadm-cleanup-db.service.in \
618 units/initrd-switch-root.service.in \
619 units/systemd-nspawn@.service.in \
620 units/systemd-update-done.service.in \
621 units/tmp.mount.m4
622
623 if HAVE_SYSV_COMPAT
624 nodist_systemunit_DATA += \
625 units/rc-local.service \
626 units/halt-local.service
627
628 systemgenerator_PROGRAMS += \
629 systemd-sysv-generator \
630 systemd-rc-local-generator
631 endif
632
633 EXTRA_DIST += \
634 src/systemctl/systemd-sysv-install.SKELETON \
635 units/rc-local.service.in \
636 units/halt-local.service.in
637
638 # automake is broken and can't handle files with a dash in front
639 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
640 units-install-hook:
641 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
642
643 units-uninstall-hook:
644 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
645
646 INSTALL_DATA_HOOKS += units-install-hook
647 UNINSTALL_DATA_HOOKS += units-uninstall-hook
648
649 dist_doc_DATA = \
650 README \
651 NEWS \
652 CODING_STYLE \
653 LICENSE.LGPL2.1 \
654 LICENSE.GPL2 \
655 DISTRO_PORTING \
656 src/libsystemd/sd-bus/PORTING-DBUS1 \
657 src/libsystemd/sd-bus/DIFFERENCES \
658 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
659
660 EXTRA_DIST += \
661 README.md \
662 autogen.sh \
663 .dir-locals.el \
664 .editorconfig \
665 .vimrc \
666 .ycm_extra_conf.py \
667 .travis.yml \
668 .mailmap
669
670 @INTLTOOL_POLICY_RULE@
671
672 # ------------------------------------------------------------------------------
673
674 MANPAGES =
675 MANPAGES_ALIAS =
676
677 include Makefile-man.am
678
679 .PHONY: man update-man-list
680 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
681
682 XML_FILES = \
683 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
684 HTML_FILES = \
685 ${XML_FILES:.xml=.html}
686 HTML_ALIAS = \
687 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
688
689 if ENABLE_MANPAGES
690 man_MANS = \
691 $(MANPAGES) \
692 $(MANPAGES_ALIAS)
693
694 noinst_DATA += \
695 $(HTML_FILES) \
696 $(HTML_ALIAS)
697
698 CLEANFILES += \
699 $(man_MANS) \
700 $(HTML_FILES) \
701 $(HTML_ALIAS)
702
703 docs/html/man:
704 $(AM_V_at)$(MKDIR_P) $(dir $@)
705 $(AM_V_LN)$(LN_S) -f ../../man $@
706
707 noinst_DATA += \
708 docs/html/man
709
710 CLEANFILES += \
711 docs/html/man
712
713 if HAVE_PYTHON
714 man/index.html: man/systemd.index.html
715 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
716
717 noinst_DATA += \
718 man/index.html
719
720 CLEANFILES += \
721 man/index.html
722
723 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml)
724 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
725 SOURCE_XML_FILES = ${patsubst %,$(top_srcdir)/%,$(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))}
726
727 # This target should only be run manually. It recreates Makefile-man.am
728 # file in the source directory based on all man/*.xml files. Run it after
729 # adding, removing, or changing the conditional in a man page.
730 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB) man/custom-entities.ent
731 $(AM_V_GEN)$(PYTHON) $< $(XML_GLOB) > $(top_srcdir)/Makefile-man.tmp
732 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
733 @echo "Makefile-man.am has been regenerated"
734
735 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
736 $(AM_V_at)$(MKDIR_P) $(dir $@)
737 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
738
739 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py man/custom-entities.ent $(SOURCE_XML_FILES)
740 $(AM_V_at)$(MKDIR_P) $(dir $@)
741 $(AM_V_GEN)$(PYTHON) $< $@ $(SOURCE_XML_FILES)
742
743 CLEANFILES += \
744 man/systemd.index.xml \
745 man/systemd.directives.xml
746
747 EXTRA_DIST += \
748 tools/make-man-rules.py
749
750 endif
751
752 endif
753
754 EXTRA_DIST += \
755 $(filter-out man/systemd.directives.xml man/systemd.index.xml,$(XML_FILES)) \
756 tools/make-man-index.py \
757 tools/make-directive-index.py \
758 tools/xml_helper.py \
759 man/glib-event-glue.c
760
761 # ------------------------------------------------------------------------------
762 noinst_LTLIBRARIES += \
763 libbasic.la
764
765 libbasic_la_SOURCES = \
766 src/basic/missing.h \
767 src/basic/capability-util.c \
768 src/basic/capability-util.h \
769 src/basic/c-rbtree.c \
770 src/basic/c-rbtree.h \
771 src/basic/conf-files.c \
772 src/basic/conf-files.h \
773 src/basic/stdio-util.h \
774 src/basic/hostname-util.h \
775 src/basic/hostname-util.c \
776 src/basic/unit-name.c \
777 src/basic/unit-name.h \
778 src/basic/ioprio.h \
779 src/basic/securebits.h \
780 src/basic/special.h \
781 src/basic/list.h \
782 src/basic/unaligned.h \
783 src/basic/macro.h \
784 src/basic/def.h \
785 src/basic/sparse-endian.h \
786 src/basic/refcnt.h \
787 src/basic/util.c \
788 src/basic/util.h \
789 src/basic/io-util.c \
790 src/basic/io-util.h \
791 src/basic/string-util.c \
792 src/basic/string-util.h \
793 src/basic/fd-util.c \
794 src/basic/fd-util.h \
795 src/basic/parse-util.c \
796 src/basic/parse-util.h \
797 src/basic/user-util.c \
798 src/basic/user-util.h \
799 src/basic/rlimit-util.c \
800 src/basic/rlimit-util.h \
801 src/basic/dirent-util.c \
802 src/basic/dirent-util.h \
803 src/basic/xattr-util.c \
804 src/basic/xattr-util.h \
805 src/basic/chattr-util.c \
806 src/basic/chattr-util.h \
807 src/basic/proc-cmdline.c \
808 src/basic/proc-cmdline.h \
809 src/basic/fs-util.c \
810 src/basic/fs-util.h \
811 src/basic/syslog-util.c \
812 src/basic/syslog-util.h \
813 src/basic/stat-util.c \
814 src/basic/stat-util.h \
815 src/basic/mount-util.c \
816 src/basic/mount-util.h \
817 src/basic/hexdecoct.c \
818 src/basic/hexdecoct.h \
819 src/basic/glob-util.h \
820 src/basic/glob-util.c \
821 src/basic/extract-word.c \
822 src/basic/extract-word.h \
823 src/basic/escape.c \
824 src/basic/escape.h \
825 src/basic/cpu-set-util.c \
826 src/basic/cpu-set-util.h \
827 src/basic/lockfile-util.c \
828 src/basic/lockfile-util.h \
829 src/basic/path-util.c \
830 src/basic/path-util.h \
831 src/basic/time-util.c \
832 src/basic/time-util.h \
833 src/basic/locale-util.c \
834 src/basic/locale-util.h \
835 src/basic/umask-util.h \
836 src/basic/signal-util.c \
837 src/basic/signal-util.h \
838 src/basic/string-table.c \
839 src/basic/string-table.h \
840 src/basic/mempool.c \
841 src/basic/mempool.h \
842 src/basic/hashmap.c \
843 src/basic/hashmap.h \
844 src/basic/siphash24.c \
845 src/basic/siphash24.h \
846 src/basic/set.h \
847 src/basic/ordered-set.h \
848 src/basic/bitmap.c \
849 src/basic/bitmap.h \
850 src/basic/fdset.c \
851 src/basic/fdset.h \
852 src/basic/prioq.c \
853 src/basic/prioq.h \
854 src/basic/web-util.c \
855 src/basic/web-util.h \
856 src/basic/strv.c \
857 src/basic/strv.h \
858 src/basic/env-util.c \
859 src/basic/env-util.h \
860 src/basic/strbuf.c \
861 src/basic/strbuf.h \
862 src/basic/strxcpyx.c \
863 src/basic/strxcpyx.h \
864 src/basic/log.c \
865 src/basic/log.h \
866 src/basic/bus-label.c \
867 src/basic/bus-label.h \
868 src/basic/ratelimit.h \
869 src/basic/ratelimit.c \
870 src/basic/exit-status.c \
871 src/basic/exit-status.h \
872 src/basic/virt.c \
873 src/basic/virt.h \
874 src/basic/smack-util.c \
875 src/basic/smack-util.h \
876 src/basic/device-nodes.c \
877 src/basic/device-nodes.h \
878 src/basic/utf8.c \
879 src/basic/utf8.h \
880 src/basic/gunicode.c \
881 src/basic/gunicode.h \
882 src/basic/socket-util.c \
883 src/basic/socket-util.h \
884 src/basic/in-addr-util.c \
885 src/basic/in-addr-util.h \
886 src/basic/ether-addr-util.h \
887 src/basic/ether-addr-util.c \
888 src/basic/replace-var.c \
889 src/basic/replace-var.h \
890 src/basic/clock-util.c \
891 src/basic/clock-util.h \
892 src/basic/calendarspec.c \
893 src/basic/calendarspec.h \
894 src/basic/fileio.c \
895 src/basic/fileio.h \
896 src/basic/MurmurHash2.c \
897 src/basic/MurmurHash2.h \
898 src/basic/mkdir.c \
899 src/basic/mkdir.h \
900 src/basic/cgroup-util.c \
901 src/basic/cgroup-util.h \
902 src/basic/errno-list.c \
903 src/basic/errno-list.h \
904 src/basic/af-list.c \
905 src/basic/af-list.h \
906 src/basic/arphrd-list.c \
907 src/basic/arphrd-list.h \
908 src/basic/terminal-util.c \
909 src/basic/terminal-util.h \
910 src/basic/login-util.h \
911 src/basic/login-util.c \
912 src/basic/cap-list.c \
913 src/basic/cap-list.h \
914 src/basic/audit-util.c \
915 src/basic/audit-util.h \
916 src/basic/xml.c \
917 src/basic/xml.h \
918 src/basic/json.c \
919 src/basic/json.h \
920 src/basic/barrier.c \
921 src/basic/barrier.h \
922 src/basic/async.c \
923 src/basic/async.h \
924 src/basic/memfd-util.c \
925 src/basic/memfd-util.h \
926 src/basic/process-util.c \
927 src/basic/process-util.h \
928 src/basic/random-util.c \
929 src/basic/random-util.h \
930 src/basic/verbs.c \
931 src/basic/verbs.h \
932 src/basic/sigbus.c \
933 src/basic/sigbus.h \
934 src/basic/build.h \
935 src/basic/socket-label.c \
936 src/basic/label.c \
937 src/basic/label.h \
938 src/basic/btrfs-util.c \
939 src/basic/btrfs-util.h \
940 src/basic/btrfs-ctree.h \
941 src/basic/selinux-util.c \
942 src/basic/selinux-util.h \
943 src/basic/mkdir-label.c \
944 src/basic/fileio-label.c \
945 src/basic/fileio-label.h \
946 src/basic/rm-rf.c \
947 src/basic/rm-rf.h \
948 src/basic/copy.c \
949 src/basic/copy.h \
950 src/basic/alloc-util.h \
951 src/basic/alloc-util.c \
952 src/basic/formats-util.h \
953 src/basic/nss-util.h
954
955 nodist_libbasic_la_SOURCES = \
956 src/basic/errno-from-name.h \
957 src/basic/errno-to-name.h \
958 src/basic/af-from-name.h \
959 src/basic/af-to-name.h \
960 src/basic/arphrd-from-name.h \
961 src/basic/arphrd-to-name.h \
962 src/basic/cap-from-name.h \
963 src/basic/cap-to-name.h
964
965 libbasic_la_CFLAGS = \
966 $(AM_CFLAGS) \
967 $(SELINUX_CFLAGS) \
968 $(CAP_CFLAGS) \
969 -pthread
970
971 libbasic_la_LIBADD = \
972 $(SELINUX_LIBS) \
973 $(CAP_LIBS) \
974 -lrt \
975 -lm
976
977 # -----------------------------------------------------------------------------
978 noinst_LTLIBRARIES += \
979 libshared.la
980
981 libshared_la_SOURCES = \
982 src/shared/output-mode.h \
983 src/shared/gpt.h \
984 src/shared/udev-util.h \
985 src/shared/linux/auto_dev-ioctl.h \
986 src/shared/initreq.h \
987 src/shared/dns-domain.c \
988 src/shared/dns-domain.h \
989 src/shared/architecture.c \
990 src/shared/architecture.h \
991 src/shared/efivars.c \
992 src/shared/efivars.h \
993 src/shared/fstab-util.c \
994 src/shared/fstab-util.h \
995 src/shared/sleep-config.c \
996 src/shared/sleep-config.h \
997 src/shared/conf-parser.c \
998 src/shared/conf-parser.h \
999 src/shared/pager.c \
1000 src/shared/pager.h \
1001 src/shared/spawn-polkit-agent.c \
1002 src/shared/spawn-polkit-agent.h \
1003 src/shared/apparmor-util.c \
1004 src/shared/apparmor-util.h \
1005 src/shared/ima-util.c \
1006 src/shared/ima-util.h \
1007 src/shared/ptyfwd.c \
1008 src/shared/ptyfwd.h \
1009 src/shared/base-filesystem.c \
1010 src/shared/base-filesystem.h \
1011 src/shared/uid-range.c \
1012 src/shared/uid-range.h \
1013 src/shared/install.c \
1014 src/shared/install.h \
1015 src/shared/install-printf.c \
1016 src/shared/install-printf.h \
1017 src/shared/path-lookup.c \
1018 src/shared/path-lookup.h \
1019 src/shared/specifier.c \
1020 src/shared/specifier.h \
1021 src/shared/dev-setup.c \
1022 src/shared/dev-setup.h \
1023 src/shared/dropin.c \
1024 src/shared/dropin.h \
1025 src/shared/condition.c \
1026 src/shared/condition.h \
1027 src/shared/clean-ipc.c \
1028 src/shared/clean-ipc.h \
1029 src/shared/generator.h \
1030 src/shared/generator.c \
1031 src/shared/acpi-fpdt.h \
1032 src/shared/acpi-fpdt.c \
1033 src/shared/boot-timestamps.h \
1034 src/shared/boot-timestamps.c \
1035 src/shared/cgroup-show.c \
1036 src/shared/cgroup-show.h \
1037 src/shared/utmp-wtmp.h \
1038 src/shared/watchdog.c \
1039 src/shared/watchdog.h \
1040 src/shared/spawn-ask-password-agent.c \
1041 src/shared/spawn-ask-password-agent.h \
1042 src/shared/ask-password-api.c \
1043 src/shared/ask-password-api.h \
1044 src/shared/switch-root.h \
1045 src/shared/switch-root.c \
1046 src/shared/import-util.c \
1047 src/shared/import-util.h \
1048 src/shared/sysctl-util.c \
1049 src/shared/sysctl-util.h \
1050 src/shared/bus-util.c \
1051 src/shared/bus-util.h \
1052 src/shared/logs-show.c \
1053 src/shared/logs-show.h \
1054 src/shared/machine-image.c \
1055 src/shared/machine-image.h \
1056 src/shared/machine-pool.c \
1057 src/shared/machine-pool.h
1058
1059 if HAVE_UTMP
1060 libshared_la_SOURCES += \
1061 src/shared/utmp-wtmp.c
1062 endif
1063
1064 if HAVE_SECCOMP
1065 libshared_la_SOURCES += \
1066 src/shared/seccomp-util.h \
1067 src/shared/seccomp-util.c
1068 endif
1069
1070 if HAVE_ACL
1071 libshared_la_SOURCES += \
1072 src/shared/acl-util.c \
1073 src/shared/acl-util.h
1074 endif
1075
1076 libshared_la_CFLAGS = \
1077 $(AM_CFLAGS) \
1078 $(ACL_CFLAGS) \
1079 $(LIBIDN_CFLAGS) \
1080 $(SECCOMP_CFLAGS)
1081
1082 libshared_la_LIBADD = \
1083 libsystemd-internal.la \
1084 libsystemd-journal-internal.la \
1085 libudev-internal.la \
1086 $(ACL_LIBS) \
1087 $(LIBIDN_LIBS) \
1088 $(SECCOMP_LIBS)
1089
1090 # -----------------------------------------------------------------------------
1091 if HAVE_LIBIPTC
1092 noinst_LTLIBRARIES += \
1093 libfirewall.la
1094
1095 libfirewall_la_SOURCES = \
1096 src/shared/firewall-util.h \
1097 src/shared/firewall-util.c
1098
1099 libfirewall_la_CFLAGS = \
1100 $(AM_CFLAGS) \
1101 $(LIBIPTC_CFLAGS)
1102
1103 libfirewall_la_LIBADD = \
1104 $(LIBIPTC_LIBS)
1105 endif
1106
1107 # -----------------------------------------------------------------------------
1108 if ENABLE_LDCONFIG
1109 dist_systemunit_DATA += \
1110 units/ldconfig.service
1111
1112 SYSINIT_TARGET_WANTS += \
1113 ldconfig.service
1114 endif
1115
1116 # ------------------------------------------------------------------------------
1117 noinst_LTLIBRARIES += \
1118 libcore.la
1119
1120 libcore_la_SOURCES = \
1121 src/core/unit.c \
1122 src/core/unit.h \
1123 src/core/unit-printf.c \
1124 src/core/unit-printf.h \
1125 src/core/job.c \
1126 src/core/job.h \
1127 src/core/manager.c \
1128 src/core/manager.h \
1129 src/core/transaction.c \
1130 src/core/transaction.h \
1131 src/core/load-fragment.c \
1132 src/core/load-fragment.h \
1133 src/core/service.c \
1134 src/core/service.h \
1135 src/core/socket.c \
1136 src/core/socket.h \
1137 src/core/busname.c \
1138 src/core/busname.h \
1139 src/core/bus-endpoint.c \
1140 src/core/bus-endpoint.h \
1141 src/core/bus-policy.c \
1142 src/core/bus-policy.h \
1143 src/core/target.c \
1144 src/core/target.h \
1145 src/core/device.c \
1146 src/core/device.h \
1147 src/core/mount.c \
1148 src/core/mount.h \
1149 src/core/automount.c \
1150 src/core/automount.h \
1151 src/core/swap.c \
1152 src/core/swap.h \
1153 src/core/timer.c \
1154 src/core/timer.h \
1155 src/core/path.c \
1156 src/core/path.h \
1157 src/core/slice.c \
1158 src/core/slice.h \
1159 src/core/scope.c \
1160 src/core/scope.h \
1161 src/core/load-dropin.c \
1162 src/core/load-dropin.h \
1163 src/core/execute.c \
1164 src/core/execute.h \
1165 src/core/kill.c \
1166 src/core/kill.h \
1167 src/core/dbus.c \
1168 src/core/dbus.h \
1169 src/core/dbus-manager.c \
1170 src/core/dbus-manager.h \
1171 src/core/dbus-unit.c \
1172 src/core/dbus-unit.h \
1173 src/core/dbus-job.c \
1174 src/core/dbus-job.h \
1175 src/core/dbus-service.c \
1176 src/core/dbus-service.h \
1177 src/core/dbus-socket.c \
1178 src/core/dbus-socket.h \
1179 src/core/dbus-busname.c \
1180 src/core/dbus-busname.h \
1181 src/core/dbus-target.c \
1182 src/core/dbus-target.h \
1183 src/core/dbus-device.c \
1184 src/core/dbus-device.h \
1185 src/core/dbus-mount.c \
1186 src/core/dbus-mount.h \
1187 src/core/dbus-automount.c \
1188 src/core/dbus-automount.h \
1189 src/core/dbus-swap.c \
1190 src/core/dbus-swap.h \
1191 src/core/dbus-timer.c \
1192 src/core/dbus-timer.h \
1193 src/core/dbus-path.c \
1194 src/core/dbus-path.h \
1195 src/core/dbus-slice.c \
1196 src/core/dbus-slice.h \
1197 src/core/dbus-scope.c \
1198 src/core/dbus-scope.h \
1199 src/core/dbus-execute.c \
1200 src/core/dbus-execute.h \
1201 src/core/dbus-kill.c \
1202 src/core/dbus-kill.h \
1203 src/core/dbus-cgroup.c \
1204 src/core/dbus-cgroup.h \
1205 src/core/cgroup.c \
1206 src/core/cgroup.h \
1207 src/core/selinux-access.c \
1208 src/core/selinux-access.h \
1209 src/core/selinux-setup.c \
1210 src/core/selinux-setup.h \
1211 src/core/smack-setup.c \
1212 src/core/smack-setup.h \
1213 src/core/ima-setup.c \
1214 src/core/ima-setup.h \
1215 src/core/locale-setup.h \
1216 src/core/locale-setup.c \
1217 src/core/hostname-setup.c \
1218 src/core/hostname-setup.h \
1219 src/core/machine-id-setup.c \
1220 src/core/machine-id-setup.h \
1221 src/core/mount-setup.c \
1222 src/core/mount-setup.h \
1223 src/core/kmod-setup.c \
1224 src/core/kmod-setup.h \
1225 src/core/loopback-setup.h \
1226 src/core/loopback-setup.c \
1227 src/core/namespace.c \
1228 src/core/namespace.h \
1229 src/core/killall.h \
1230 src/core/killall.c \
1231 src/core/audit-fd.c \
1232 src/core/audit-fd.h \
1233 src/core/show-status.c \
1234 src/core/show-status.h \
1235 src/core/failure-action.c \
1236 src/core/failure-action.h
1237
1238 nodist_libcore_la_SOURCES = \
1239 src/core/load-fragment-gperf.c \
1240 src/core/load-fragment-gperf-nulstr.c
1241
1242 libcore_la_CFLAGS = \
1243 $(AM_CFLAGS) \
1244 $(PAM_CFLAGS) \
1245 $(AUDIT_CFLAGS) \
1246 $(KMOD_CFLAGS) \
1247 $(APPARMOR_CFLAGS) \
1248 $(MOUNT_CFLAGS) \
1249 $(SECCOMP_CFLAGS)
1250
1251 libcore_la_LIBADD = \
1252 libshared.la \
1253 $(PAM_LIBS) \
1254 $(AUDIT_LIBS) \
1255 $(KMOD_LIBS) \
1256 $(APPARMOR_LIBS) \
1257 $(MOUNT_LIBS)
1258
1259 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1260 $(AM_V_at)$(MKDIR_P) $(dir $@)
1261 $(AM_V_GEN)$(AWK) 'BEGIN{ keywords=0 ; FS="," ; print "extern const char load_fragment_gperf_nulstr[];" ; print "const char load_fragment_gperf_nulstr[] ="} ; keyword==1 { print "\"" $$1 "\\0\"" } ; /%%/ { keyword=1} ; END { print ";" }' < $< > $@
1262
1263 gperf_gperf_m4_sources = \
1264 src/core/load-fragment-gperf.gperf.m4
1265
1266 gperf_txt_sources = \
1267 src/basic/errno-list.txt \
1268 src/basic/af-list.txt \
1269 src/basic/arphrd-list.txt \
1270 src/basic/cap-list.txt
1271
1272 BUILT_SOURCES += \
1273 $(gperf_gperf_m4_sources:-gperf.gperf.m4=-gperf.c) \
1274 $(gperf_gperf_m4_sources:-gperf.gperf.m4=-gperf-nulstr.c) \
1275 $(gperf_gperf_sources:-gperf.gperf=-gperf.c) \
1276 $(gperf_txt_sources:-list.txt=-from-name.h) \
1277 $(filter-out %keyboard-keys-to-name.h,$(gperf_txt_sources:-list.txt=-to-name.h))
1278
1279 CLEANFILES += \
1280 $(gperf_txt_sources:-list.txt=-from-name.gperf)
1281 DISTCLEANFILES = \
1282 $(gperf_txt_sources)
1283
1284 EXTRA_DIST += \
1285 $(gperf_gperf_m4_sources) \
1286 $(gperf_gperf_sources)
1287
1288 CLEANFILES += \
1289 $(gperf_txt_sources)
1290
1291 %-from-name.gperf: %-list.txt
1292 $(AM_V_at)$(MKDIR_P) $(dir $@)
1293 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1294
1295 %-from-name.h: %-from-name.gperf
1296 $(AM_V_at)$(MKDIR_P) $(dir $@)
1297 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1298
1299
1300 src/basic/errno-list.txt:
1301 $(AM_V_at)$(MKDIR_P) $(dir $@)
1302 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1303
1304 src/basic/errno-to-name.h: src/basic/errno-list.txt
1305 $(AM_V_at)$(MKDIR_P) $(dir $@)
1306 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1307
1308
1309 src/basic/af-list.txt:
1310 $(AM_V_at)$(MKDIR_P) $(dir $@)
1311 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include sys/socket.h - </dev/null | grep -v AF_UNSPEC | grep -v AF_MAX | $(AWK) '/^#define[ \t]+AF_[^ \t]+[ \t]+PF_[^ \t]/ { print $$2; }' >$@
1312
1313 src/basic/af-to-name.h: src/basic/af-list.txt
1314 $(AM_V_at)$(MKDIR_P) $(dir $@)
1315 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const af_names[] = { "} !/AF_FILE/ && !/AF_ROUTE/ && !/AF_LOCAL/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1316
1317
1318 src/basic/arphrd-list.txt:
1319 $(AM_V_at)$(MKDIR_P) $(dir $@)
1320 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include net/if_arp.h - </dev/null | $(AWK) '/^#define[ \t]+ARPHRD_[^ \t]+[ \t]+[^ \t]/ { print $$2; }' | sed -e 's/ARPHRD_//' >$@
1321
1322 src/basic/arphrd-to-name.h: src/basic/arphrd-list.txt
1323 $(AM_V_at)$(MKDIR_P) $(dir $@)
1324 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1325
1326 src/basic/arphrd-from-name.gperf: src/basic/arphrd-list.txt
1327 $(AM_V_at)$(MKDIR_P) $(dir $@)
1328 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct arphrd_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, ARPHRD_%s\n", $$1, $$1 }' <$< >$@
1329
1330
1331 src/basic/cap-list.txt:
1332 $(AM_V_at)$(MKDIR_P) $(dir $@)
1333 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include linux/capability.h -include missing.h - </dev/null | $(AWK) '/^#define[ \t]+CAP_[A-Z_]+[ \t]+/ { print $$2; }' | grep -v CAP_LAST_CAP >$@
1334
1335 src/basic/cap-to-name.h: src/basic/cap-list.txt
1336 $(AM_V_at)$(MKDIR_P) $(dir $@)
1337 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const capability_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, tolower($$1) } END{print "};"}' <$< >$@
1338
1339 src/basic/cap-from-name.gperf: src/basic/cap-list.txt
1340 $(AM_V_at)$(MKDIR_P) $(dir $@)
1341 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct capability_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1342
1343 src/basic/cap-from-name.h: src/basic/cap-from-name.gperf
1344 $(AM_V_at)$(MKDIR_P) $(dir $@)
1345 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_capability -H hash_capability_name -p -C <$< >$@
1346
1347 audit_list_includes = -include linux/audit.h -include missing.h
1348 if HAVE_AUDIT
1349 audit_list_includes += -include libaudit.h
1350 endif
1351
1352 src/journal/audit_type-list.txt:
1353 $(AM_V_at)$(MKDIR_P) $(dir $@)
1354 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM $(audit_list_includes) - </dev/null | grep -vE 'AUDIT_.*(FIRST|LAST)_' | $(SED) -r -n 's/^#define\s+AUDIT_(\w+)\s+([0-9]{4})\s*$$/\1\t\2/p' | sort -k2 >$@
1355
1356 src/journal/audit_type-to-name.h: src/journal/audit_type-list.txt
1357 $(AM_V_at)$(MKDIR_P) $(dir $@)
1358 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char *audit_type_to_string(int type) {\n\tswitch(type) {" } {printf " case AUDIT_%s: return \"%s\";\n", $$1, $$1 } END{ print " default: return NULL;\n\t}\n}\n" }' <$< >$@
1359
1360
1361 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1362 $(AM_V_at)$(MKDIR_P) $(dir $@)
1363 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1364
1365 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1366 $(AM_V_at)$(MKDIR_P) $(dir $@)
1367 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char *dns_type_to_string(int type) {\n\tswitch(type) {" } {printf " case DNS_TYPE_%s: return ", $$1; sub(/_/, "-"); printf "\"%s\";\n", $$1 } END{ print " default: return NULL;\n\t}\n}\n" }' <$< >$@
1368
1369 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1370 $(AM_V_at)$(MKDIR_P) $(dir $@)
1371 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct dns_type_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { s=$$1; sub(/_/, "-", s); printf "%s, ", $$s; printf "DNS_TYPE_%s\n", $$1 }' <$< >$@
1372
1373 # ------------------------------------------------------------------------------
1374 systemd_SOURCES = \
1375 src/core/main.c
1376
1377 systemd_CFLAGS = \
1378 $(AM_CFLAGS) \
1379 $(SECCOMP_CFLAGS) \
1380 $(MOUNT_CFLAGS)
1381
1382 systemd_LDADD = \
1383 libcore.la
1384
1385 dist_pkgsysconf_DATA += \
1386 src/core/system.conf \
1387 src/core/user.conf
1388
1389 dist_dbuspolicy_DATA += \
1390 src/core/org.freedesktop.systemd1.conf
1391
1392 dist_dbussystemservice_DATA += \
1393 src/core/org.freedesktop.systemd1.service
1394
1395 polkitpolicy_in_in_files += \
1396 src/core/org.freedesktop.systemd1.policy.in.in
1397
1398 pkgconfigdata_DATA += \
1399 src/core/systemd.pc
1400
1401 nodist_rpmmacros_DATA = \
1402 src/core/macros.systemd
1403
1404 EXTRA_DIST += \
1405 src/core/systemd.pc.in \
1406 src/core/macros.systemd.in \
1407 src/core/triggers.systemd.in
1408
1409 # ------------------------------------------------------------------------------
1410
1411 manual_tests += \
1412 test-ns \
1413 test-loopback \
1414 test-hostname \
1415 test-daemon \
1416 test-cgroup \
1417 test-install \
1418 test-watchdog \
1419 test-log \
1420 test-ipcrm \
1421 test-btrfs \
1422 test-acd \
1423 test-ipv4ll-manual
1424
1425 if HAVE_LIBIPTC
1426 manual_tests += \
1427 test-firewall-util
1428 endif
1429
1430 if HAVE_KMOD
1431 manual_tests += \
1432 test-netlink-manual
1433 endif
1434
1435 tests += \
1436 test-engine \
1437 test-cgroup-mask \
1438 test-job-type \
1439 test-env-replace \
1440 test-strbuf \
1441 test-strv \
1442 test-path \
1443 test-path-util \
1444 test-strxcpyx \
1445 test-siphash24 \
1446 test-unit-name \
1447 test-unit-file \
1448 test-utf8 \
1449 test-ellipsize \
1450 test-util \
1451 test-string-util \
1452 test-extract-word \
1453 test-parse-util \
1454 test-user-util \
1455 test-hostname-util \
1456 test-process-util \
1457 test-terminal-util \
1458 test-path-lookup \
1459 test-barrier \
1460 test-tmpfiles \
1461 test-namespace \
1462 test-date \
1463 test-sleep \
1464 test-replace-var \
1465 test-sched-prio \
1466 test-calendarspec \
1467 test-strip-tab-ansi \
1468 test-cgroup-util \
1469 test-fstab-util \
1470 test-prioq \
1471 test-fileio \
1472 test-time \
1473 test-hashmap \
1474 test-set \
1475 test-bitmap \
1476 test-list \
1477 test-unaligned \
1478 test-tables \
1479 test-device-nodes \
1480 test-xml \
1481 test-json \
1482 test-architecture \
1483 test-socket-util \
1484 test-fdset \
1485 test-conf-files \
1486 test-conf-parser \
1487 test-capability \
1488 test-async \
1489 test-ratelimit \
1490 test-condition \
1491 test-uid-range \
1492 test-bus-policy \
1493 test-locale-util \
1494 test-execute \
1495 test-copy \
1496 test-cap-list \
1497 test-sigbus \
1498 test-rbtree \
1499 test-verbs \
1500 test-af-list \
1501 test-arphrd-list \
1502 test-dns-domain \
1503 test-install-root
1504
1505 if HAVE_ACL
1506 tests += \
1507 test-acl-util
1508 endif
1509
1510 EXTRA_DIST += \
1511 test/a.service \
1512 test/basic.target \
1513 test/b.service \
1514 test/c.service \
1515 test/daughter.service \
1516 test/d.service \
1517 test/end.service \
1518 test/e.service \
1519 test/f.service \
1520 test/grandchild.service \
1521 test/g.service \
1522 test/hello-after-sleep.target \
1523 test/hello.service \
1524 test/h.service \
1525 test/parent-deep.slice \
1526 test/parent.slice \
1527 test/sched_idle_bad.service \
1528 test/sched_idle_ok.service \
1529 test/sched_rr_bad.service \
1530 test/sched_rr_change.service \
1531 test/sched_rr_ok.service \
1532 test/shutdown.target \
1533 test/sleep.service \
1534 test/sockets.target \
1535 test/son.service \
1536 test/sysinit.target \
1537 test/testsuite.target \
1538 test/timers.target \
1539 test/unstoppable.service \
1540 test/test-path/paths.target \
1541 test/test-path/basic.target \
1542 test/test-path/sysinit.target \
1543 test/test-path/path-changed.service \
1544 test/test-path/path-directorynotempty.service \
1545 test/test-path/path-existsglob.service \
1546 test/test-path/path-exists.service \
1547 test/test-path/path-makedirectory.service \
1548 test/test-path/path-modified.service \
1549 test/test-path/path-mycustomunit.service \
1550 test/test-path/path-service.service \
1551 test/test-path/path-changed.path \
1552 test/test-path/path-directorynotempty.path \
1553 test/test-path/path-existsglob.path \
1554 test/test-path/path-exists.path \
1555 test/test-path/path-makedirectory.path \
1556 test/test-path/path-modified.path \
1557 test/test-path/path-unit.path \
1558 test/test-execute/exec-environment-empty.service \
1559 test/test-execute/exec-environment-multiple.service \
1560 test/test-execute/exec-environment.service \
1561 test/test-execute/exec-passenvironment-absent.service \
1562 test/test-execute/exec-passenvironment-empty.service \
1563 test/test-execute/exec-passenvironment-repeated.service \
1564 test/test-execute/exec-passenvironment.service \
1565 test/test-execute/exec-group.service \
1566 test/test-execute/exec-ignoresigpipe-no.service \
1567 test/test-execute/exec-ignoresigpipe-yes.service \
1568 test/test-execute/exec-personality-x86-64.service \
1569 test/test-execute/exec-personality-x86.service \
1570 test/test-execute/exec-personality-s390.service \
1571 test/test-execute/exec-privatedevices-no.service \
1572 test/test-execute/exec-privatedevices-yes.service \
1573 test/test-execute/exec-privatetmp-no.service \
1574 test/test-execute/exec-privatetmp-yes.service \
1575 test/test-execute/exec-systemcallerrornumber.service \
1576 test/test-execute/exec-systemcallfilter-failing2.service \
1577 test/test-execute/exec-systemcallfilter-failing.service \
1578 test/test-execute/exec-systemcallfilter-not-failing2.service \
1579 test/test-execute/exec-systemcallfilter-not-failing.service \
1580 test/test-execute/exec-user.service \
1581 test/test-execute/exec-workingdirectory.service \
1582 test/test-execute/exec-umask-0177.service \
1583 test/test-execute/exec-umask-default.service \
1584 test/test-execute/exec-privatenetwork-yes.service \
1585 test/test-execute/exec-environmentfile.service \
1586 test/test-execute/exec-oomscoreadjust-positive.service \
1587 test/test-execute/exec-oomscoreadjust-negative.service \
1588 test/test-execute/exec-ioschedulingclass-best-effort.service \
1589 test/test-execute/exec-ioschedulingclass-idle.service \
1590 test/test-execute/exec-ioschedulingclass-none.service \
1591 test/test-execute/exec-ioschedulingclass-realtime.service \
1592 test/test-execute/exec-capabilityboundingset-invert.service \
1593 test/test-execute/exec-capabilityboundingset-merge.service \
1594 test/test-execute/exec-capabilityboundingset-reset.service \
1595 test/test-execute/exec-capabilityboundingset-simple.service \
1596 test/bus-policy/hello.conf \
1597 test/bus-policy/methods.conf \
1598 test/bus-policy/ownerships.conf \
1599 test/bus-policy/signals.conf \
1600 test/bus-policy/check-own-rules.conf \
1601 test/bus-policy/many-rules.conf \
1602 test/bus-policy/test.conf
1603
1604
1605 EXTRA_DIST += \
1606 src/test/test-helper.h
1607
1608 test_device_nodes_SOURCES = \
1609 src/test/test-device-nodes.c
1610
1611 test_device_nodes_LDADD = \
1612 libshared.la
1613
1614 test_engine_SOURCES = \
1615 src/test/test-engine.c
1616
1617 test_engine_CFLAGS = \
1618 $(AM_CFLAGS) \
1619 $(SECCOMP_CFLAGS) \
1620 $(MOUNT_CFLAGS)
1621
1622 test_engine_LDADD = \
1623 libcore.la
1624
1625 test_job_type_SOURCES = \
1626 src/test/test-job-type.c
1627
1628 test_job_type_CFLAGS = \
1629 $(AM_CFLAGS) \
1630 $(SECCOMP_CFLAGS) \
1631 $(MOUNT_CFLAGS)
1632
1633 test_job_type_LDADD = \
1634 libcore.la
1635
1636 test_ns_SOURCES = \
1637 src/test/test-ns.c
1638
1639 test_ns_CFLAGS = \
1640 $(AM_CFLAGS) \
1641 $(SECCOMP_CFLAGS)
1642
1643 test_ns_LDADD = \
1644 libcore.la
1645
1646 test_loopback_SOURCES = \
1647 src/test/test-loopback.c
1648
1649 test_loopback_LDADD = \
1650 libcore.la
1651
1652 test_hostname_SOURCES = \
1653 src/test/test-hostname.c
1654
1655 test_hostname_LDADD = \
1656 libcore.la
1657
1658 test_dns_domain_SOURCES = \
1659 src/test/test-dns-domain.c
1660
1661 test_dns_domain_LDADD = \
1662 libsystemd-network.la \
1663 libshared.la
1664
1665 if ENABLE_EFI
1666 manual_tests += \
1667 test-boot-timestamp
1668
1669 test_boot_timestamp_SOURCES = \
1670 src/test/test-boot-timestamps.c
1671
1672 test_boot_timestamp_LDADD = \
1673 libshared.la
1674 endif
1675
1676 test_unit_name_SOURCES = \
1677 src/test/test-unit-name.c
1678
1679 test_unit_name_CFLAGS = \
1680 $(AM_CFLAGS) \
1681 $(SECCOMP_CFLAGS) \
1682 $(MOUNT_CFLAGS)
1683
1684 test_unit_name_LDADD = \
1685 libcore.la
1686
1687 test_unit_file_SOURCES = \
1688 src/test/test-unit-file.c
1689
1690 test_unit_file_CFLAGS = \
1691 $(AM_CFLAGS) \
1692 $(SECCOMP_CFLAGS) \
1693 $(MOUNT_CFLAGS)
1694
1695 test_unit_file_LDADD = \
1696 libcore.la
1697
1698 test_utf8_SOURCES = \
1699 src/test/test-utf8.c
1700
1701 test_utf8_LDADD = \
1702 libshared.la
1703
1704 test_capability_SOURCES = \
1705 src/test/test-capability.c
1706
1707 test_capability_LDADD = \
1708 libshared.la
1709
1710 test_async_SOURCES = \
1711 src/test/test-async.c
1712
1713 test_async_LDADD = \
1714 libshared.la
1715
1716 test_locale_util_SOURCES = \
1717 src/test/test-locale-util.c
1718
1719 test_locale_util_LDADD = \
1720 libshared.la
1721
1722 test_copy_SOURCES = \
1723 src/test/test-copy.c
1724
1725 test_copy_LDADD = \
1726 libshared.la
1727
1728 test_sigbus_SOURCES = \
1729 src/test/test-sigbus.c
1730
1731 test_sigbus_LDADD = \
1732 libshared.la
1733
1734 test_rbtree_SOURCES = \
1735 src/test/test-rbtree.c
1736
1737 test_rbtree_LDADD = \
1738 libshared.la
1739
1740 test_condition_SOURCES = \
1741 src/test/test-condition.c
1742
1743 test_condition_LDADD = \
1744 libshared.la
1745
1746 test_fdset_SOURCES = \
1747 src/test/test-fdset.c
1748
1749 test_fdset_LDADD = \
1750 libshared.la
1751
1752 test_fstab_util_SOURCES = \
1753 src/test/test-fstab-util.c
1754
1755 test_fstab_util_LDADD = \
1756 libshared.la
1757
1758 test_ratelimit_SOURCES = \
1759 src/test/test-ratelimit.c
1760
1761 test_ratelimit_LDADD = \
1762 libshared.la
1763
1764 test_util_SOURCES = \
1765 src/test/test-util.c
1766
1767 test_util_LDADD = \
1768 libshared.la
1769
1770 test_string_util_SOURCES = \
1771 src/test/test-string-util.c
1772
1773 test_string_util_LDADD = \
1774 libshared.la
1775
1776 test_extract_word_SOURCES = \
1777 src/test/test-extract-word.c
1778
1779 test_extract_word_LDADD = \
1780 libshared.la
1781
1782 test_parse_util_SOURCES = \
1783 src/test/test-parse-util.c
1784
1785 test_parse_util_LDADD = \
1786 libshared.la
1787
1788 test_user_util_SOURCES = \
1789 src/test/test-user-util.c
1790
1791 test_user_util_LDADD = \
1792 libshared.la
1793
1794 test_hostname_util_SOURCES = \
1795 src/test/test-hostname-util.c
1796
1797 test_hostname_util_LDADD = \
1798 libshared.la
1799
1800 test_process_util_SOURCES = \
1801 src/test/test-process-util.c
1802
1803 test_process_util_LDADD = \
1804 libshared.la
1805
1806 test_terminal_util_SOURCES = \
1807 src/test/test-terminal-util.c
1808
1809 test_terminal_util_LDADD = \
1810 libshared.la
1811
1812 test_path_lookup_SOURCES = \
1813 src/test/test-path-lookup.c
1814
1815 test_path_lookup_LDADD = \
1816 libshared.la
1817
1818 test_uid_range_SOURCES = \
1819 src/test/test-uid-range.c
1820
1821 test_uid_range_LDADD = \
1822 libshared.la
1823
1824 test_cap_list_SOURCES = \
1825 src/test/test-cap-list.c
1826
1827 test_cap_list_LDADD = \
1828 libshared.la
1829
1830 test_socket_util_SOURCES = \
1831 src/test/test-socket-util.c
1832
1833 test_socket_util_LDADD = \
1834 libshared.la
1835
1836 test_barrier_SOURCES = \
1837 src/test/test-barrier.c
1838
1839 test_barrier_LDADD = \
1840 libshared.la
1841
1842 test_tmpfiles_SOURCES = \
1843 src/test/test-tmpfiles.c
1844
1845 test_tmpfiles_LDADD = \
1846 libshared.la
1847
1848 test_namespace_SOURCES = \
1849 src/test/test-namespace.c
1850
1851 test_verbs_SOURCES = \
1852 src/test/test-verbs.c
1853
1854 test_verbs_LDADD = \
1855 libshared.la
1856
1857 test_install_root_SOURCES = \
1858 src/test/test-install-root.c
1859
1860 test_install_root_LDADD = \
1861 libshared.la
1862
1863 test_acl_util_SOURCES = \
1864 src/test/test-acl-util.c
1865
1866 test_acl_util_LDADD = \
1867 libshared.la
1868
1869 test_namespace_LDADD = \
1870 libcore.la
1871
1872 BUILT_SOURCES += \
1873 src/test/test-hashmap-ordered.c
1874
1875 src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c
1876 $(AM_V_at)$(MKDIR_P) $(dir $@)
1877 $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \
1878 { if (!match($$0, "^#include")) \
1879 gsub(/hashmap/, "ordered_hashmap"); \
1880 gsub(/HASHMAP/, "ORDERED_HASHMAP"); \
1881 gsub(/Hashmap/, "OrderedHashmap"); \
1882 print }' <$< >$@
1883
1884 nodist_test_hashmap_SOURCES = \
1885 src/test/test-hashmap-ordered.c
1886
1887 test_hashmap_SOURCES = \
1888 src/test/test-hashmap.c \
1889 src/test/test-hashmap-plain.c
1890
1891 test_hashmap_LDADD = \
1892 libshared.la
1893
1894 test_set_SOURCES = \
1895 src/test/test-set.c
1896
1897 test_set_LDADD = \
1898 libshared.la
1899
1900 test_bitmap_SOURCES = \
1901 src/test/test-bitmap.c
1902
1903 test_bitmap_LDADD = \
1904 libshared.la
1905
1906 test_xml_SOURCES = \
1907 src/test/test-xml.c
1908
1909 test_xml_LDADD = \
1910 libshared.la
1911
1912 test_json_SOURCES = \
1913 src/test/test-json.c
1914
1915 test_json_LDADD = \
1916 libshared.la
1917
1918 test_list_SOURCES = \
1919 src/test/test-list.c
1920
1921 test_list_LDADD = \
1922 libshared.la
1923
1924 test_unaligned_LDADD = \
1925 libshared.la
1926
1927 test_unaligned_SOURCES = \
1928 src/test/test-unaligned.c
1929
1930 test_tables_SOURCES = \
1931 src/test/test-tables.c \
1932 src/shared/test-tables.h \
1933 src/bus-proxyd/bus-xml-policy.c \
1934 src/bus-proxyd/bus-xml-policy.h \
1935 src/journal/journald-server.c \
1936 src/journal/journald-server.h
1937
1938 test_tables_CPPFLAGS = \
1939 $(AM_CPPFLAGS) \
1940 -I$(top_srcdir)/src/bus-proxyd
1941
1942 test_tables_CFLAGS = \
1943 $(AM_CFLAGS) \
1944 $(SECCOMP_CFLAGS) \
1945 $(MOUNT_CFLAGS)
1946
1947 test_tables_LDADD = \
1948 libjournal-core.la \
1949 libcore.la \
1950 libudev-core.la
1951
1952 test_prioq_SOURCES = \
1953 src/test/test-prioq.c
1954
1955 test_prioq_LDADD = \
1956 libshared.la
1957
1958 test_fileio_SOURCES = \
1959 src/test/test-fileio.c
1960
1961 test_fileio_LDADD = \
1962 libshared.la
1963
1964 test_time_SOURCES = \
1965 src/test/test-time.c
1966
1967 test_time_LDADD = \
1968 libshared.la
1969
1970 test_architecture_SOURCES = \
1971 src/test/test-architecture.c
1972
1973 test_architecture_LDADD = \
1974 libshared.la
1975
1976 test_log_SOURCES = \
1977 src/test/test-log.c
1978
1979 test_log_LDADD = \
1980 libshared.la
1981
1982 test_ipcrm_SOURCES = \
1983 src/test/test-ipcrm.c
1984
1985 test_ipcrm_LDADD = \
1986 libshared.la
1987
1988 test_btrfs_SOURCES = \
1989 src/test/test-btrfs.c
1990
1991 test_btrfs_LDADD = \
1992 libshared.la
1993
1994 if HAVE_LIBIPTC
1995 test_firewall_util_SOURCES = \
1996 src/test/test-firewall-util.c
1997
1998 test_firewall_util_CFLAGS = \
1999 $(AM_CFLAGS) \
2000 $(LIBIPTC_CFLAGS)
2001
2002 test_firewall_util_LDADD = \
2003 libfirewall.la \
2004 libshared.la \
2005 $(LIBIPTC_LIBS)
2006 endif
2007
2008 test_netlink_manual_SOURCES = \
2009 src/test/test-netlink-manual.c
2010
2011 test_netlink_manual_CFLAGS = \
2012 $(AM_CFLAGS) \
2013 $(KMOD_CFLAGS)
2014
2015 test_netlink_manual_LDADD = \
2016 libshared.la \
2017 $(KMOD_LIBS)
2018
2019 test_ellipsize_SOURCES = \
2020 src/test/test-ellipsize.c
2021
2022 test_ellipsize_LDADD = \
2023 libshared.la
2024
2025 test_date_SOURCES = \
2026 src/test/test-date.c
2027
2028 test_date_LDADD = \
2029 libshared.la
2030
2031 test_sleep_SOURCES = \
2032 src/test/test-sleep.c
2033
2034 test_sleep_LDADD = \
2035 libcore.la
2036
2037 test_replace_var_SOURCES = \
2038 src/test/test-replace-var.c
2039
2040 test_replace_var_LDADD = \
2041 libshared.la
2042
2043 test_calendarspec_SOURCES = \
2044 src/test/test-calendarspec.c
2045
2046 test_calendarspec_LDADD = \
2047 libshared.la
2048
2049 test_strip_tab_ansi_SOURCES = \
2050 src/test/test-strip-tab-ansi.c
2051
2052 test_strip_tab_ansi_LDADD = \
2053 libshared.la
2054
2055 test_daemon_SOURCES = \
2056 src/test/test-daemon.c
2057
2058 test_daemon_LDADD = \
2059 libshared.la
2060
2061 test_cgroup_SOURCES = \
2062 src/test/test-cgroup.c
2063
2064 test_cgroup_LDADD = \
2065 libshared.la
2066
2067 test_cgroup_mask_SOURCES = \
2068 src/test/test-cgroup-mask.c
2069
2070 test_cgroup_mask_CPPFLAGS = \
2071 $(AM_CPPFLAGS) \
2072 $(MOUNT_CFLAGS)
2073
2074 test_cgroup_mask_CFLAGS = \
2075 $(AM_CFLAGS) \
2076 $(SECCOMP_CFLAGS)
2077
2078 test_cgroup_mask_LDADD = \
2079 libcore.la
2080
2081 test_cgroup_util_SOURCES = \
2082 src/test/test-cgroup-util.c
2083
2084 test_cgroup_util_LDADD = \
2085 libshared.la
2086
2087 test_env_replace_SOURCES = \
2088 src/test/test-env-replace.c
2089
2090 test_env_replace_LDADD = \
2091 libshared.la
2092
2093 test_strbuf_SOURCES = \
2094 src/test/test-strbuf.c
2095
2096 test_strbuf_LDADD = \
2097 libshared.la
2098
2099 test_strv_SOURCES = \
2100 src/test/test-strv.c
2101
2102 test_strv_LDADD = \
2103 libshared.la
2104
2105 test_path_util_SOURCES = \
2106 src/test/test-path-util.c
2107
2108 test_path_util_LDADD = \
2109 libshared.la
2110
2111 test_path_SOURCES = \
2112 src/test/test-path.c
2113
2114 test_path_CFLAGS = \
2115 $(AM_CFLAGS) \
2116 $(MOUNT_CFLAGS)
2117
2118 test_path_LDADD = \
2119 libcore.la
2120
2121 test_execute_SOURCES = \
2122 src/test/test-execute.c
2123
2124 test_execute_CFLAGS = \
2125 $(AM_CFLAGS) \
2126 $(MOUNT_CFLAGS)
2127
2128 test_execute_LDADD = \
2129 libcore.la
2130
2131 test_siphash24_SOURCES = \
2132 src/test/test-siphash24.c
2133
2134 test_siphash24_LDADD = \
2135 libshared.la
2136
2137 test_strxcpyx_SOURCES = \
2138 src/test/test-strxcpyx.c
2139
2140 test_strxcpyx_LDADD = \
2141 libshared.la
2142
2143 test_install_SOURCES = \
2144 src/test/test-install.c
2145
2146 test_install_LDADD = \
2147 libshared.la
2148
2149 test_watchdog_SOURCES = \
2150 src/test/test-watchdog.c
2151
2152 test_watchdog_LDADD = \
2153 libshared.la
2154
2155 test_sched_prio_SOURCES = \
2156 src/test/test-sched-prio.c
2157
2158 test_sched_prio_CPPFLAGS = \
2159 $(AM_CPPFLAGS) \
2160 $(MOUNT_CFLAGS)
2161
2162 test_sched_prio_CFLAGS = \
2163 $(AM_CFLAGS) \
2164 $(SECCOMP_CFLAGS)
2165
2166 test_sched_prio_LDADD = \
2167 libcore.la
2168
2169 test_conf_files_SOURCES = \
2170 src/test/test-conf-files.c
2171
2172 test_conf_files_LDADD = \
2173 libshared.la
2174
2175 test_conf_parser_SOURCES = \
2176 src/test/test-conf-parser.c
2177
2178 test_conf_parser_LDADD = \
2179 libshared.la
2180
2181 test_bus_policy_SOURCES = \
2182 src/bus-proxyd/test-bus-xml-policy.c
2183
2184 test_bus_policy_LDADD = \
2185 libbus-proxy-core.la \
2186 libshared.la
2187
2188 test_af_list_SOURCES = \
2189 src/test/test-af-list.c
2190
2191 test_af_list_LDADD = \
2192 libbasic.la
2193
2194 test_arphrd_list_SOURCES = \
2195 src/test/test-arphrd-list.c
2196
2197 test_arphrd_list_LDADD = \
2198 libbasic.la
2199
2200 # ------------------------------------------------------------------------------
2201 ## .PHONY so it always rebuilds it
2202 .PHONY: coverage lcov-run lcov-report coverage-sync
2203
2204 # run lcov from scratch, always
2205 coverage: all
2206 $(MAKE) lcov-run
2207 $(MAKE) lcov-report
2208
2209 coverage_dir = coverage
2210 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
2211
2212 if ENABLE_COVERAGE
2213 # reset run coverage tests
2214 lcov-run:
2215 @rm -rf $(coverage_dir)
2216 lcov $(coverage_opts) --zerocounters
2217 -$(MAKE) check
2218
2219 # generate report based on current coverage data
2220 lcov-report:
2221 $(MKDIR_P) $(coverage_dir)
2222 lcov $(coverage_opts) --compat-libtool --capture --no-external \
2223 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
2224 lcov --remove $(coverage_dir)/.lcov.info --output-file $(coverage_dir)/.lcov-clean.info 'test-*'
2225 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov-clean.info
2226 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
2227
2228 # lcov doesn't work properly with vpath builds, make sure that bad
2229 # output is not uploaded by mistake.
2230 coverage-sync: coverage
2231 test "$(builddir)" = "$(srcdir)"
2232 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
2233
2234 else
2235 lcov-run lcov-report:
2236 echo "Need to reconfigure with --enable-coverage"
2237 endif
2238
2239 # ------------------------------------------------------------------------------
2240 systemd_analyze_SOURCES = \
2241 src/analyze/analyze.c \
2242 src/analyze/analyze-verify.c \
2243 src/analyze/analyze-verify.h
2244
2245 systemd_analyze_CFLAGS = \
2246 $(AM_CFLAGS) \
2247 $(SECCOMP_CFLAGS) \
2248 $(MOUNT_CFLAGS)
2249
2250 systemd_analyze_LDADD = \
2251 libcore.la
2252
2253 # ------------------------------------------------------------------------------
2254 systemd_initctl_SOURCES = \
2255 src/initctl/initctl.c
2256
2257 systemd_initctl_LDADD = \
2258 libshared.la
2259
2260 # ------------------------------------------------------------------------------
2261 systemd_update_utmp_SOURCES = \
2262 src/update-utmp/update-utmp.c
2263
2264 systemd_update_utmp_CFLAGS = \
2265 $(AM_CFLAGS) \
2266 $(AUDIT_CFLAGS)
2267
2268 systemd_update_utmp_LDADD = \
2269 libshared.la \
2270 $(AUDIT_LIBS)
2271
2272 # ------------------------------------------------------------------------------
2273 systemd_update_done_SOURCES = \
2274 src/update-done/update-done.c
2275
2276 systemd_update_done_LDADD = \
2277 libshared.la
2278
2279 # ------------------------------------------------------------------------------
2280 systemd_shutdown_SOURCES = \
2281 src/core/umount.c \
2282 src/core/umount.h \
2283 src/core/shutdown.c \
2284 src/core/mount-setup.c \
2285 src/core/mount-setup.h \
2286 src/core/killall.h \
2287 src/core/killall.c
2288
2289 systemd_shutdown_LDADD = \
2290 libshared.la
2291
2292 # ------------------------------------------------------------------------------
2293 if HAVE_KMOD
2294 systemd_modules_load_SOURCES = \
2295 src/modules-load/modules-load.c
2296
2297 systemd_modules_load_CFLAGS = \
2298 $(AM_CFLAGS) \
2299 $(KMOD_CFLAGS)
2300
2301 systemd_modules_load_LDADD = \
2302 libshared.la \
2303 $(KMOD_LIBS)
2304
2305 rootlibexec_PROGRAMS += \
2306 systemd-modules-load
2307
2308 nodist_systemunit_DATA += \
2309 units/systemd-modules-load.service
2310
2311 SYSINIT_TARGET_WANTS += \
2312 systemd-modules-load.service
2313
2314 if ENABLE_TMPFILES
2315 nodist_systemunit_DATA += \
2316 units/kmod-static-nodes.service
2317
2318 SYSINIT_TARGET_WANTS += \
2319 kmod-static-nodes.service
2320 endif
2321 endif
2322
2323 EXTRA_DIST += \
2324 units/systemd-modules-load.service.in \
2325 units/kmod-static-nodes.service.in
2326
2327 # ------------------------------------------------------------------------------
2328 if ENABLE_TMPFILES
2329 systemd_tmpfiles_SOURCES = \
2330 src/tmpfiles/tmpfiles.c
2331
2332 systemd_tmpfiles_LDADD = \
2333 libshared.la
2334
2335 rootbin_PROGRAMS += \
2336 systemd-tmpfiles
2337
2338 dist_systemunit_DATA += \
2339 units/systemd-tmpfiles-clean.timer
2340
2341 nodist_systemunit_DATA += \
2342 units/systemd-tmpfiles-setup-dev.service \
2343 units/systemd-tmpfiles-setup.service \
2344 units/systemd-tmpfiles-clean.service
2345
2346 nodist_tmpfiles_DATA = \
2347 tmpfiles.d/systemd.conf \
2348 tmpfiles.d/etc.conf
2349
2350 dist_tmpfiles_DATA = \
2351 tmpfiles.d/systemd-nologin.conf \
2352 tmpfiles.d/tmp.conf \
2353 tmpfiles.d/x11.conf \
2354 tmpfiles.d/var.conf \
2355 tmpfiles.d/home.conf \
2356 tmpfiles.d/systemd-nspawn.conf \
2357 tmpfiles.d/journal-nocow.conf
2358
2359 if HAVE_SYSV_COMPAT
2360 dist_tmpfiles_DATA += \
2361 tmpfiles.d/legacy.conf
2362 endif
2363
2364 SYSINIT_TARGET_WANTS += \
2365 systemd-tmpfiles-setup-dev.service \
2366 systemd-tmpfiles-setup.service
2367
2368 if ENABLE_ZSH_COMPLETION
2369 dist_zshcompletion_DATA += \
2370 shell-completion/zsh/_systemd-tmpfiles
2371 endif
2372
2373 TIMERS_TARGET_WANTS += \
2374 systemd-tmpfiles-clean.timer
2375
2376 INSTALL_DIRS += \
2377 $(tmpfilesdir) \
2378 $(sysconfdir)/tmpfiles.d
2379 endif
2380
2381 EXTRA_DIST += \
2382 tmpfiles.d/systemd.conf.m4 \
2383 tmpfiles.d/etc.conf.m4 \
2384 units/systemd-tmpfiles-setup-dev.service.in \
2385 units/systemd-tmpfiles-setup.service.in \
2386 units/systemd-tmpfiles-clean.service.in
2387
2388 # ------------------------------------------------------------------------------
2389 if ENABLE_SYSUSERS
2390 systemd_sysusers_SOURCES = \
2391 src/sysusers/sysusers.c
2392
2393 systemd_sysusers_LDADD = \
2394 libshared.la
2395
2396 rootbin_PROGRAMS += \
2397 systemd-sysusers
2398
2399 nodist_systemunit_DATA += \
2400 units/systemd-sysusers.service
2401
2402 SYSINIT_TARGET_WANTS += \
2403 systemd-sysusers.service
2404
2405 nodist_sysusers_DATA = \
2406 sysusers.d/systemd.conf \
2407 sysusers.d/basic.conf
2408
2409 INSTALL_DIRS += \
2410 $(sysusersdir)
2411 endif
2412
2413 EXTRA_DIST += \
2414 units/systemd-sysusers.service.in \
2415 sysusers.d/systemd.conf.m4 \
2416 sysusers.d/basic.conf.in
2417
2418 # ------------------------------------------------------------------------------
2419 dist_factory_etc_DATA = \
2420 factory/etc/nsswitch.conf
2421
2422 if HAVE_PAM
2423 dist_factory_pam_DATA = \
2424 factory/etc/pam.d/system-auth \
2425 factory/etc/pam.d/other
2426 endif
2427
2428 # ------------------------------------------------------------------------------
2429 if ENABLE_FIRSTBOOT
2430 systemd_firstboot_SOURCES = \
2431 src/firstboot/firstboot.c
2432
2433 systemd_firstboot_LDADD = \
2434 libshared.la \
2435 -lcrypt
2436
2437 rootbin_PROGRAMS += \
2438 systemd-firstboot
2439
2440 nodist_systemunit_DATA += \
2441 units/systemd-firstboot.service
2442
2443 SYSINIT_TARGET_WANTS += \
2444 systemd-firstboot.service
2445 endif
2446
2447 EXTRA_DIST += \
2448 units/systemd-firstboot.service.in
2449
2450 # ------------------------------------------------------------------------------
2451 systemd_machine_id_setup_SOURCES = \
2452 src/machine-id-setup/machine-id-setup-main.c \
2453 src/core/machine-id-setup.c \
2454 src/core/machine-id-setup.h
2455
2456 systemd_machine_id_setup_LDADD = \
2457 libshared.la
2458
2459 SYSINIT_TARGET_WANTS += \
2460 systemd-machine-id-commit.service
2461
2462 # ------------------------------------------------------------------------------
2463 systemd_sysctl_SOURCES = \
2464 src/sysctl/sysctl.c
2465
2466 systemd_sysctl_LDADD = \
2467 libshared.la
2468
2469 # ------------------------------------------------------------------------------
2470 systemd_sleep_SOURCES = \
2471 src/sleep/sleep.c
2472
2473 systemd_sleep_LDADD = \
2474 libshared.la
2475
2476 # ------------------------------------------------------------------------------
2477 systemd_fsck_SOURCES = \
2478 src/fsck/fsck.c
2479
2480 systemd_fsck_LDADD = \
2481 libshared.la
2482
2483 # ------------------------------------------------------------------------------
2484 systemd_ac_power_SOURCES = \
2485 src/ac-power/ac-power.c
2486
2487 systemd_ac_power_LDADD = \
2488 libshared.la
2489
2490 # ------------------------------------------------------------------------------
2491 systemd_detect_virt_SOURCES = \
2492 src/detect-virt/detect-virt.c
2493
2494 systemd_detect_virt_LDADD = \
2495 libshared.la
2496
2497 INSTALL_EXEC_HOOKS += \
2498 systemd-detect-virt-install-hook
2499
2500 # ------------------------------------------------------------------------------
2501 systemd_delta_SOURCES = \
2502 src/delta/delta.c
2503
2504 systemd_delta_LDADD = \
2505 libshared.la
2506
2507 # ------------------------------------------------------------------------------
2508 systemd_getty_generator_SOURCES = \
2509 src/getty-generator/getty-generator.c
2510
2511 systemd_getty_generator_LDADD = \
2512 libshared.la
2513
2514 # ------------------------------------------------------------------------------
2515 systemd_debug_generator_SOURCES = \
2516 src/debug-generator/debug-generator.c
2517
2518 systemd_debug_generator_LDADD = \
2519 libshared.la
2520
2521 # ------------------------------------------------------------------------------
2522 systemd_fstab_generator_SOURCES = \
2523 src/fstab-generator/fstab-generator.c \
2524 src/core/mount-setup.c
2525
2526 systemd_fstab_generator_LDADD = \
2527 libshared.la
2528
2529 # ------------------------------------------------------------------------------
2530 systemd_system_update_generator_SOURCES = \
2531 src/system-update-generator/system-update-generator.c
2532
2533 systemd_system_update_generator_LDADD = \
2534 libshared.la
2535
2536 # ------------------------------------------------------------------------------
2537 if ENABLE_HIBERNATE
2538 systemgenerator_PROGRAMS += \
2539 systemd-hibernate-resume-generator
2540
2541 rootlibexec_PROGRAMS += \
2542 systemd-hibernate-resume
2543
2544 systemd_hibernate_resume_SOURCES = \
2545 src/hibernate-resume/hibernate-resume.c
2546
2547 systemd_hibernate_resume_LDADD = \
2548 libshared.la
2549
2550 systemd_hibernate_resume_generator_SOURCES = \
2551 src/hibernate-resume/hibernate-resume-generator.c
2552
2553 systemd_hibernate_resume_generator_LDADD = \
2554 libshared.la
2555
2556 dist_systemunit_DATA += \
2557 units/hibernate.target \
2558 units/hybrid-sleep.target
2559
2560 nodist_systemunit_DATA += \
2561 units/systemd-hibernate.service \
2562 units/systemd-hibernate-resume@.service \
2563 units/systemd-hybrid-sleep.service
2564 endif
2565
2566 EXTRA_DIST += \
2567 units/systemd-hibernate.service.in \
2568 units/systemd-hibernate-resume@.service.in \
2569 units/systemd-hybrid-sleep.service.in
2570
2571 # ------------------------------------------------------------------------------
2572 if ENABLE_EFI
2573 if HAVE_BLKID
2574 bootctl_SOURCES = \
2575 src/boot/bootctl.c
2576
2577 bootctl_CPPFLAGS = \
2578 $(AM_CPPFLAGS) \
2579 -DEFI_MACHINE_TYPE_NAME=\"$(EFI_MACHINE_TYPE_NAME)\" \
2580 -DBOOTLIBDIR=\"$(bootlibdir)\"
2581
2582 bootctl_CFLAGS = \
2583 $(AM_CFLAGS) \
2584 $(BLKID_CFLAGS)
2585
2586 bootctl_LDADD = \
2587 libshared.la \
2588 $(BLKID_LIBS)
2589
2590 bin_PROGRAMS += \
2591 bootctl
2592
2593 if ENABLE_BASH_COMPLETION
2594 dist_bashcompletion_DATA += \
2595 shell-completion/bash/bootctl
2596 endif
2597
2598 if ENABLE_ZSH_COMPLETION
2599 dist_zshcompletion_DATA += \
2600 shell-completion/zsh/_bootctl
2601 endif
2602 endif
2603
2604 # ------------------------------------------------------------------------------
2605 if HAVE_GNUEFI
2606 efi_cppflags = \
2607 $(EFI_CPPFLAGS) \
2608 -I$(top_builddir) -include config.h \
2609 -I$(EFI_INC_DIR)/efi \
2610 -I$(EFI_INC_DIR)/efi/$(EFI_ARCH) \
2611 -DEFI_MACHINE_TYPE_NAME=\"$(EFI_MACHINE_TYPE_NAME)\"
2612
2613 efi_cflags = \
2614 $(EFI_CFLAGS) \
2615 -Wall \
2616 -Wextra \
2617 -std=gnu90 \
2618 -nostdinc \
2619 -ggdb -O0 \
2620 -fpic \
2621 -fshort-wchar \
2622 -nostdinc \
2623 -ffreestanding \
2624 -fno-strict-aliasing \
2625 -fno-stack-protector \
2626 -Wsign-compare \
2627 -Wno-missing-field-initializers
2628
2629 if ARCH_X86_64
2630 efi_cflags += \
2631 -mno-red-zone \
2632 -mno-sse \
2633 -mno-mmx \
2634 -DEFI_FUNCTION_WRAPPER \
2635 -DGNU_EFI_USE_MS_ABI
2636 endif
2637
2638 if ARCH_IA32
2639 efi_cflags += \
2640 -mno-sse \
2641 -mno-mmx
2642 endif
2643
2644 efi_ldflags = \
2645 $(EFI_LDFLAGS) \
2646 -T $(EFI_LDS_DIR)/elf_$(EFI_ARCH)_efi.lds \
2647 -shared \
2648 -Bsymbolic \
2649 -nostdlib \
2650 -znocombreloc \
2651 -L $(EFI_LIB_DIR) \
2652 $(EFI_LDS_DIR)/crt0-efi-$(EFI_ARCH).o
2653
2654 # Aarch64 and ARM32 don't have an EFI capable objcopy. Use 'binary' instead,
2655 # and add required symbols manually.
2656 if ARCH_AARCH64
2657 efi_ldflags += --defsym=EFI_SUBSYSTEM=0xa
2658 EFI_FORMAT = -O binary
2659 else
2660 EFI_FORMAT = --target=efi-app-$(EFI_ARCH)
2661 endif
2662 endif
2663 endif
2664
2665 # ------------------------------------------------------------------------------
2666 systemd_boot_headers = \
2667 src/boot/efi/util.h \
2668 src/boot/efi/console.h \
2669 src/boot/efi/graphics.h \
2670 src/boot/efi/pefile.h \
2671 src/boot/efi/disk.h
2672
2673 systemd_boot_sources = \
2674 src/boot/efi/util.c \
2675 src/boot/efi/console.c \
2676 src/boot/efi/graphics.c \
2677 src/boot/efi/pefile.c \
2678 src/boot/efi/disk.c \
2679 src/boot/efi/boot.c
2680
2681 EXTRA_DIST += $(systemd_boot_sources) $(systemd_boot_headers)
2682
2683 if ENABLE_EFI
2684 if HAVE_GNUEFI
2685 systemd_boot_objects = $(addprefix $(top_builddir)/,$(systemd_boot_sources:.c=.o))
2686 systemd_boot_solib = $(top_builddir)/src/boot/efi/systemd_boot.so
2687 systemd_boot = systemd-boot$(EFI_MACHINE_TYPE_NAME).efi
2688
2689 bootlib_DATA = $(systemd_boot)
2690 CLEANFILES += $(systemd_boot_objects) $(systemd_boot_solib) $(systemd_boot)
2691
2692 $(top_builddir)/src/boot/efi/%.o: $(top_srcdir)/src/boot/efi/%.c $(addprefix $(top_srcdir)/,$(systemd_boot_headers))
2693 @$(MKDIR_P) $(top_builddir)/src/boot/efi/
2694 $(AM_V_CC)$(EFI_CC) $(efi_cppflags) $(efi_cflags) -c $< -o $@
2695
2696 $(systemd_boot_solib): $(systemd_boot_objects)
2697 $(AM_V_CCLD)$(LD) $(efi_ldflags) $(systemd_boot_objects) \
2698 -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name); \
2699 nm -D -u $@ | grep ' U ' && exit 1 || :
2700
2701 $(systemd_boot): $(systemd_boot_solib)
2702 $(AM_V_GEN)$(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic \
2703 -j .dynsym -j .rel -j .rela -j .reloc $(EFI_FORMAT) $< $@
2704 endif
2705 endif
2706
2707 # ------------------------------------------------------------------------------
2708 stub_headers = \
2709 src/boot/efi/util.h \
2710 src/boot/efi/pefile.h \
2711 src/boot/efi/disk.h \
2712 src/boot/efi/graphics.h \
2713 src/boot/efi/splash.h \
2714 src/boot/efi/linux.h
2715
2716 stub_sources = \
2717 src/boot/efi/util.c \
2718 src/boot/efi/pefile.c \
2719 src/boot/efi/disk.c \
2720 src/boot/efi/graphics.c \
2721 src/boot/efi/splash.c \
2722 src/boot/efi/linux.c \
2723 src/boot/efi/stub.c
2724
2725 EXTRA_DIST += \
2726 $(stub_sources) \
2727 $(stub_headers) \
2728 test/splash.bmp
2729
2730 if ENABLE_EFI
2731 if HAVE_GNUEFI
2732 stub_objects = $(addprefix $(top_builddir)/,$(stub_sources:.c=.o))
2733 stub_solib = $(top_builddir)/src/boot/efi/stub.so
2734 stub = linux$(EFI_MACHINE_TYPE_NAME).efi.stub
2735
2736 bootlib_DATA += $(stub)
2737 CLEANFILES += $(stub_objects) $(stub_solib) $(stub)
2738
2739 $(top_builddir)/src/boot/efi/%.o: $(top_srcdir)/src/boot/efi/%.c $(addprefix $(top_srcdir)/,$(stub_headers))
2740 @$(MKDIR_P) $(top_builddir)/src/boot/efi/
2741 $(AM_V_CC)$(EFI_CC) $(efi_cppflags) $(efi_cflags) -c $< -o $@
2742
2743 $(stub_solib): $(stub_objects)
2744 $(AM_V_CCLD)$(LD) $(efi_ldflags) $(stub_objects) \
2745 -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name); \
2746 nm -D -u $@ | grep ' U ' && exit 1 || :
2747
2748 $(stub): $(stub_solib)
2749 $(AM_V_GEN)$(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic \
2750 -j .dynsym -j .rel -j .rela -j .reloc $(EFI_FORMAT) $< $@
2751
2752 # ------------------------------------------------------------------------------
2753 CLEANFILES += test-efi-disk.img
2754
2755 test-efi-disk.img: $(systemd_boot) $(stub) test/test-efi-create-disk.sh
2756 $(AM_V_GEN)test/test-efi-create-disk.sh
2757
2758 test-efi: test-efi-disk.img
2759 $(QEMU) -machine accel=kvm -m 1024 -bios $(QEMU_BIOS) -snapshot test-efi-disk.img
2760 endif
2761 endif
2762
2763 EXTRA_DIST += test/test-efi-create-disk.sh
2764
2765 # ------------------------------------------------------------------------------
2766 if HAVE_BLKID
2767 systemgenerator_PROGRAMS += \
2768 systemd-gpt-auto-generator
2769
2770 systemd_gpt_auto_generator_SOURCES = \
2771 src/gpt-auto-generator/gpt-auto-generator.c \
2772 src/basic/blkid-util.h
2773
2774 systemd_gpt_auto_generator_LDADD = \
2775 libshared.la \
2776 $(BLKID_LIBS)
2777
2778 systemd_gpt_auto_generator_CFLAGS = \
2779 $(AM_CFLAGS) \
2780 $(BLKID_CFLAGS)
2781 endif
2782
2783 # ------------------------------------------------------------------------------
2784 systemgenerator_PROGRAMS += \
2785 systemd-dbus1-generator
2786
2787 systemd_dbus1_generator_SOURCES = \
2788 src/dbus1-generator/dbus1-generator.c
2789
2790 systemd_dbus1_generator_LDADD = \
2791 libshared.la
2792
2793 dbus1-generator-install-hook:
2794 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2795 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2796 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2797
2798 dbus1-generator-uninstall-hook:
2799 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2800
2801 dist_xinitrc_SCRIPTS = \
2802 xorg/50-systemd-user.sh
2803
2804 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2805 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2806
2807 # ------------------------------------------------------------------------------
2808 systemd_sysv_generator_SOURCES = \
2809 src/sysv-generator/sysv-generator.c
2810
2811 systemd_sysv_generator_LDADD = \
2812 libcore.la
2813
2814 # ------------------------------------------------------------------------------
2815 systemd_rc_local_generator_SOURCES = \
2816 src/rc-local-generator/rc-local-generator.c
2817
2818 systemd_rc_local_generator_LDADD = \
2819 libshared.la
2820
2821 # ------------------------------------------------------------------------------
2822 systemd_remount_fs_SOURCES = \
2823 src/remount-fs/remount-fs.c \
2824 src/core/mount-setup.c \
2825 src/core/mount-setup.h
2826
2827 systemd_remount_fs_LDADD = \
2828 libshared.la
2829
2830 # ------------------------------------------------------------------------------
2831 systemd_cgroups_agent_SOURCES = \
2832 src/cgroups-agent/cgroups-agent.c
2833
2834 systemd_cgroups_agent_LDADD = \
2835 libshared.la
2836
2837 # ------------------------------------------------------------------------------
2838 systemd_escape_SOURCES = \
2839 src/escape/escape.c
2840
2841 systemd_escape_LDADD = \
2842 libshared.la
2843
2844 # -----------------------------------------------------------------------------
2845 systemctl_SOURCES = \
2846 src/systemctl/systemctl.c
2847
2848 systemctl_LDADD = \
2849 libshared.la
2850
2851 # ------------------------------------------------------------------------------
2852 systemd_notify_SOURCES = \
2853 src/notify/notify.c
2854
2855 systemd_notify_LDADD = \
2856 libshared.la
2857
2858 # ------------------------------------------------------------------------------
2859 systemd_path_SOURCES = \
2860 src/path/path.c
2861
2862 systemd_path_LDADD = \
2863 libshared.la
2864
2865 # ------------------------------------------------------------------------------
2866 systemd_ask_password_SOURCES = \
2867 src/ask-password/ask-password.c
2868
2869 systemd_ask_password_LDADD = \
2870 libshared.la
2871
2872 # ------------------------------------------------------------------------------
2873 systemd_reply_password_SOURCES = \
2874 src/reply-password/reply-password.c
2875
2876 systemd_reply_password_LDADD = \
2877 libshared.la
2878
2879 # ------------------------------------------------------------------------------
2880 systemd_cgls_SOURCES = \
2881 src/cgls/cgls.c
2882
2883 systemd_cgls_LDADD = \
2884 libshared.la
2885
2886 # ------------------------------------------------------------------------------
2887 systemd_cgtop_SOURCES = \
2888 src/cgtop/cgtop.c
2889
2890 systemd_cgtop_LDADD = \
2891 libshared.la
2892
2893 # ------------------------------------------------------------------------------
2894 systemd_nspawn_SOURCES = \
2895 src/nspawn/nspawn.c \
2896 src/nspawn/nspawn-settings.c \
2897 src/nspawn/nspawn-settings.h \
2898 src/nspawn/nspawn-mount.c \
2899 src/nspawn/nspawn-mount.h \
2900 src/nspawn/nspawn-network.c \
2901 src/nspawn/nspawn-network.h \
2902 src/nspawn/nspawn-expose-ports.c \
2903 src/nspawn/nspawn-expose-ports.h \
2904 src/nspawn/nspawn-cgroup.c \
2905 src/nspawn/nspawn-cgroup.h \
2906 src/nspawn/nspawn-register.c \
2907 src/nspawn/nspawn-register.h \
2908 src/nspawn/nspawn-setuid.c \
2909 src/nspawn/nspawn-setuid.h \
2910 src/core/mount-setup.c \
2911 src/core/mount-setup.h \
2912 src/core/loopback-setup.c \
2913 src/core/loopback-setup.h
2914
2915 nodist_systemd_nspawn_SOURCES = \
2916 src/nspawn/nspawn-gperf.c
2917
2918 gperf_gperf_sources += \
2919 src/nspawn/nspawn-gperf.gperf
2920
2921 systemd_nspawn_CFLAGS = \
2922 $(AM_CFLAGS) \
2923 $(BLKID_CFLAGS) \
2924 $(SECCOMP_CFLAGS)
2925
2926 systemd_nspawn_LDADD = \
2927 libshared.la \
2928 $(BLKID_LIBS)
2929
2930 if HAVE_LIBIPTC
2931 systemd_nspawn_LDADD += \
2932 libfirewall.la
2933 endif
2934
2935 # ------------------------------------------------------------------------------
2936 systemd_run_SOURCES = \
2937 src/run/run.c
2938
2939 systemd_run_LDADD = \
2940 libshared.la
2941
2942 # ------------------------------------------------------------------------------
2943 noinst_LTLIBRARIES += \
2944 libbus-proxy-core.la
2945
2946 libbus_proxy_core_la_SOURCES = \
2947 src/bus-proxyd/bus-xml-policy.c \
2948 src/bus-proxyd/bus-xml-policy.h \
2949 src/bus-proxyd/driver.c \
2950 src/bus-proxyd/driver.h \
2951 src/bus-proxyd/proxy.c \
2952 src/bus-proxyd/proxy.h \
2953 src/bus-proxyd/synthesize.c \
2954 src/bus-proxyd/synthesize.h
2955
2956 libbus_proxy_core_la_LIBADD = \
2957 libshared.la
2958
2959 systemd_bus_proxyd_SOURCES = \
2960 src/bus-proxyd/bus-proxyd.c
2961
2962 systemd_bus_proxyd_LDADD = \
2963 libbus-proxy-core.la \
2964 libshared.la
2965
2966 systemd_stdio_bridge_SOURCES = \
2967 src/bus-proxyd/stdio-bridge.c
2968
2969 systemd_stdio_bridge_LDADD = \
2970 libbus-proxy-core.la \
2971 libshared.la
2972
2973 nodist_systemunit_DATA += \
2974 units/systemd-bus-proxyd.service
2975
2976 dist_systemunit_DATA += \
2977 units/systemd-bus-proxyd.socket
2978
2979 nodist_userunit_DATA += \
2980 units/user/systemd-bus-proxyd.service
2981
2982 dist_userunit_DATA += \
2983 units/user/systemd-bus-proxyd.socket
2984
2985 EXTRA_DIST += \
2986 units/systemd-bus-proxyd.service.m4.in \
2987 units/user/systemd-bus-proxyd.service.in
2988
2989 if HAVE_SMACK
2990 bus-proxyd-set-cap-hook:
2991 -$(SETCAP) cap_mac_admin+ei $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd
2992
2993 INSTALL_EXEC_HOOKS += bus-proxyd-set-cap-hook
2994 endif
2995
2996 # ------------------------------------------------------------------------------
2997 systemd_tty_ask_password_agent_SOURCES = \
2998 src/tty-ask-password-agent/tty-ask-password-agent.c
2999
3000 systemd_tty_ask_password_agent_LDADD = \
3001 libshared.la
3002
3003 # ------------------------------------------------------------------------------
3004 libsystemd_internal_la_SOURCES = \
3005 src/systemd/sd-bus.h \
3006 src/systemd/sd-bus-protocol.h \
3007 src/systemd/sd-bus-vtable.h \
3008 src/systemd/sd-utf8.h \
3009 src/systemd/sd-event.h \
3010 src/systemd/sd-netlink.h \
3011 src/systemd/sd-resolve.h \
3012 src/systemd/sd-login.h \
3013 src/systemd/sd-id128.h \
3014 src/systemd/sd-daemon.h \
3015 src/systemd/sd-path.h \
3016 src/systemd/sd-network.h \
3017 src/systemd/sd-hwdb.h \
3018 src/systemd/sd-device.h \
3019 src/libsystemd/libsystemd.sym \
3020 src/libsystemd/sd-bus/sd-bus.c \
3021 src/libsystemd/sd-bus/bus-control.c \
3022 src/libsystemd/sd-bus/bus-control.h \
3023 src/libsystemd/sd-bus/bus-error.c \
3024 src/libsystemd/sd-bus/bus-error.h \
3025 src/libsystemd/sd-bus/bus-common-errors.h \
3026 src/libsystemd/sd-bus/bus-common-errors.c \
3027 src/libsystemd/sd-bus/bus-internal.c \
3028 src/libsystemd/sd-bus/bus-internal.h \
3029 src/libsystemd/sd-bus/bus-socket.c \
3030 src/libsystemd/sd-bus/bus-socket.h \
3031 src/libsystemd/sd-bus/bus-kernel.c \
3032 src/libsystemd/sd-bus/bus-kernel.h \
3033 src/libsystemd/sd-bus/bus-container.c \
3034 src/libsystemd/sd-bus/bus-container.h \
3035 src/libsystemd/sd-bus/bus-message.c \
3036 src/libsystemd/sd-bus/bus-message.h \
3037 src/libsystemd/sd-bus/bus-creds.c \
3038 src/libsystemd/sd-bus/bus-creds.h \
3039 src/libsystemd/sd-bus/bus-signature.c \
3040 src/libsystemd/sd-bus/bus-signature.h \
3041 src/libsystemd/sd-bus/bus-type.c \
3042 src/libsystemd/sd-bus/bus-type.h \
3043 src/libsystemd/sd-bus/bus-match.c \
3044 src/libsystemd/sd-bus/bus-match.h \
3045 src/libsystemd/sd-bus/bus-bloom.c \
3046 src/libsystemd/sd-bus/bus-bloom.h \
3047 src/libsystemd/sd-bus/bus-introspect.c \
3048 src/libsystemd/sd-bus/bus-introspect.h \
3049 src/libsystemd/sd-bus/bus-objects.c \
3050 src/libsystemd/sd-bus/bus-objects.h \
3051 src/libsystemd/sd-bus/bus-gvariant.c \
3052 src/libsystemd/sd-bus/bus-gvariant.h \
3053 src/libsystemd/sd-bus/bus-convenience.c \
3054 src/libsystemd/sd-bus/bus-track.c \
3055 src/libsystemd/sd-bus/bus-track.h \
3056 src/libsystemd/sd-bus/bus-slot.c \
3057 src/libsystemd/sd-bus/bus-slot.h \
3058 src/libsystemd/sd-bus/bus-protocol.h \
3059 src/libsystemd/sd-bus/kdbus.h \
3060 src/libsystemd/sd-bus/bus-dump.c \
3061 src/libsystemd/sd-bus/bus-dump.h \
3062 src/libsystemd/sd-utf8/sd-utf8.c \
3063 src/libsystemd/sd-event/sd-event.c \
3064 src/libsystemd/sd-netlink/sd-netlink.c \
3065 src/libsystemd/sd-netlink/netlink-internal.h \
3066 src/libsystemd/sd-netlink/netlink-message.c \
3067 src/libsystemd/sd-netlink/netlink-socket.c \
3068 src/libsystemd/sd-netlink/rtnl-message.c \
3069 src/libsystemd/sd-netlink/netlink-types.h \
3070 src/libsystemd/sd-netlink/netlink-types.c \
3071 src/libsystemd/sd-netlink/netlink-util.h \
3072 src/libsystemd/sd-netlink/netlink-util.c \
3073 src/libsystemd/sd-netlink/local-addresses.h \
3074 src/libsystemd/sd-netlink/local-addresses.c \
3075 src/libsystemd/sd-id128/sd-id128.c \
3076 src/libsystemd/sd-daemon/sd-daemon.c \
3077 src/libsystemd/sd-login/sd-login.c \
3078 src/libsystemd/sd-path/sd-path.c \
3079 src/libsystemd/sd-network/sd-network.c \
3080 src/libsystemd/sd-network/network-util.h \
3081 src/libsystemd/sd-network/network-util.c \
3082 src/libsystemd/sd-hwdb/sd-hwdb.c \
3083 src/libsystemd/sd-hwdb/hwdb-util.h \
3084 src/libsystemd/sd-hwdb/hwdb-internal.h \
3085 src/libsystemd/sd-device/device-internal.h \
3086 src/libsystemd/sd-device/device-util.h \
3087 src/libsystemd/sd-device/device-enumerator.c \
3088 src/libsystemd/sd-device/device-enumerator-private.h \
3089 src/libsystemd/sd-device/sd-device.c \
3090 src/libsystemd/sd-device/device-private.c \
3091 src/libsystemd/sd-device/device-private.h \
3092 src/libsystemd/sd-resolve/sd-resolve.c
3093
3094 libsystemd_internal_la_LIBADD = \
3095 libbasic.la \
3096 -lresolv
3097
3098 noinst_LTLIBRARIES += \
3099 libsystemd-internal.la
3100
3101 EXTRA_DIST += \
3102 src/libsystemd/libsystemd.pc.in \
3103 src/libsystemd/sd-bus/DIFFERENCES \
3104 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
3105
3106 libsystemd_la_SOURCES = \
3107 $(libsystemd_internal_la_SOURCES) \
3108 $(libsystemd_journal_internal_la_SOURCES)
3109
3110 nodist_libsystemd_la_SOURCES = \
3111 $(nodist_libsystemd_internal_la_SOURCES)
3112
3113 libsystemd_la_CFLAGS = \
3114 $(libsystemd_internal_la_CFLAGS) \
3115 $(libsystemd_journal_internal_la_CFLAGS)
3116
3117 libsystemd_la_LDFLAGS = \
3118 $(AM_LDFLAGS) \
3119 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
3120 -Wl,--version-script=$(top_srcdir)/src/libsystemd/libsystemd.sym
3121
3122 libsystemd_la_LIBADD = \
3123 $(libsystemd_internal_la_LIBADD) \
3124 $(libsystemd_journal_internal_la_LIBADD)
3125
3126 libsystemd-install-hook:
3127 libname=libsystemd.so && $(move-to-rootlibdir)
3128
3129 libsystemd-uninstall-hook:
3130 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
3131
3132 INSTALL_EXEC_HOOKS += libsystemd-install-hook
3133 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
3134
3135 pkgconfiglib_DATA += \
3136 src/libsystemd/libsystemd.pc
3137
3138 pkginclude_HEADERS += \
3139 src/systemd/sd-bus.h \
3140 src/systemd/sd-bus-protocol.h \
3141 src/systemd/sd-bus-vtable.h \
3142 src/systemd/sd-event.h \
3143 src/systemd/sd-login.h \
3144 src/systemd/sd-id128.h \
3145 src/systemd/sd-daemon.h
3146
3147 lib_LTLIBRARIES += \
3148 libsystemd.la
3149
3150 tests += \
3151 test-bus-marshal \
3152 test-bus-signature \
3153 test-bus-benchmark \
3154 test-bus-chat \
3155 test-bus-cleanup \
3156 test-bus-server \
3157 test-bus-match \
3158 test-bus-proxy \
3159 test-bus-kernel \
3160 test-bus-kernel-bloom \
3161 test-bus-zero-copy \
3162 test-bus-introspect \
3163 test-bus-objects \
3164 test-bus-error \
3165 test-bus-creds \
3166 test-bus-gvariant \
3167 test-event \
3168 test-netlink \
3169 test-local-addresses \
3170 test-resolve
3171
3172 bin_PROGRAMS += \
3173 busctl
3174
3175 test_bus_marshal_SOURCES = \
3176 src/libsystemd/sd-bus/test-bus-marshal.c
3177
3178 test_bus_marshal_LDADD = \
3179 libshared.la \
3180 $(GLIB_LIBS) \
3181 $(DBUS_LIBS)
3182
3183 test_bus_marshal_CFLAGS = \
3184 $(AM_CFLAGS) \
3185 $(GLIB_CFLAGS) \
3186 $(DBUS_CFLAGS)
3187
3188 test_bus_signature_SOURCES = \
3189 src/libsystemd/sd-bus/test-bus-signature.c
3190
3191 test_bus_signature_LDADD = \
3192 libshared.la
3193
3194 test_bus_chat_SOURCES = \
3195 src/libsystemd/sd-bus/test-bus-chat.c
3196
3197 test_bus_chat_LDADD = \
3198 libshared.la
3199
3200 test_bus_cleanup_SOURCES = \
3201 src/libsystemd/sd-bus/test-bus-cleanup.c
3202
3203 test_bus_cleanup_CFLAGS = \
3204 $(AM_CFLAGS) \
3205 $(SECCOMP_CFLAGS)
3206
3207 test_bus_cleanup_LDADD = \
3208 libshared.la
3209
3210 test_bus_server_SOURCES = \
3211 src/libsystemd/sd-bus/test-bus-server.c
3212
3213 test_bus_server_LDADD = \
3214 libshared.la
3215
3216 test_bus_objects_SOURCES = \
3217 src/libsystemd/sd-bus/test-bus-objects.c
3218
3219 test_bus_objects_LDADD = \
3220 libshared.la
3221
3222 test_bus_error_SOURCES = \
3223 src/libsystemd/sd-bus/test-bus-error.c
3224
3225 test_bus_error_LDADD = \
3226 libshared.la
3227
3228 test_bus_gvariant_SOURCES = \
3229 src/libsystemd/sd-bus/test-bus-gvariant.c
3230
3231 test_bus_gvariant_LDADD = \
3232 libshared.la \
3233 $(GLIB_LIBS)
3234
3235 test_bus_gvariant_CFLAGS = \
3236 $(AM_CFLAGS) \
3237 $(GLIB_CFLAGS)
3238
3239 test_bus_creds_SOURCES = \
3240 src/libsystemd/sd-bus/test-bus-creds.c
3241
3242 test_bus_creds_LDADD = \
3243 libshared.la
3244
3245 test_bus_match_SOURCES = \
3246 src/libsystemd/sd-bus/test-bus-match.c
3247
3248 test_bus_match_LDADD = \
3249 libshared.la
3250
3251 test_bus_proxy_SOURCES = \
3252 src/libsystemd/sd-bus/test-bus-proxy.c
3253
3254 test_bus_proxy_LDADD = \
3255 libshared.la
3256
3257 test_bus_kernel_SOURCES = \
3258 src/libsystemd/sd-bus/test-bus-kernel.c
3259
3260 test_bus_kernel_LDADD = \
3261 libshared.la
3262
3263 test_bus_kernel_bloom_SOURCES = \
3264 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
3265
3266 test_bus_kernel_bloom_LDADD = \
3267 libshared.la
3268
3269 test_bus_benchmark_SOURCES = \
3270 src/libsystemd/sd-bus/test-bus-benchmark.c
3271
3272 test_bus_benchmark_LDADD = \
3273 libshared.la
3274
3275 test_bus_zero_copy_SOURCES = \
3276 src/libsystemd/sd-bus/test-bus-zero-copy.c
3277
3278 test_bus_zero_copy_LDADD = \
3279 libshared.la
3280
3281 test_bus_introspect_SOURCES = \
3282 src/libsystemd/sd-bus/test-bus-introspect.c
3283
3284 test_bus_introspect_LDADD = \
3285 libshared.la
3286
3287 test_event_SOURCES = \
3288 src/libsystemd/sd-event/test-event.c
3289
3290 test_event_LDADD = \
3291 libshared.la
3292
3293 test_netlink_SOURCES = \
3294 src/libsystemd/sd-netlink/test-netlink.c
3295
3296 test_netlink_LDADD = \
3297 libshared.la
3298
3299 test_local_addresses_SOURCES = \
3300 src/libsystemd/sd-netlink/test-local-addresses.c
3301
3302 test_local_addresses_LDADD = \
3303 libshared.la
3304
3305 test_resolve_SOURCES = \
3306 src/libsystemd/sd-resolve/test-resolve.c
3307
3308 test_resolve_LDADD = \
3309 libshared.la
3310
3311 busctl_SOURCES = \
3312 src/libsystemd/sd-bus/busctl.c \
3313 src/libsystemd/sd-bus/busctl-introspect.c \
3314 src/libsystemd/sd-bus/busctl-introspect.h
3315
3316 busctl_LDADD = \
3317 libshared.la
3318
3319 # ------------------------------------------------------------------------------
3320 noinst_LTLIBRARIES += \
3321 libsystemd-network.la
3322
3323 libsystemd_network_la_CFLAGS = \
3324 $(AM_CFLAGS) \
3325 $(KMOD_CFLAGS)
3326
3327 libsystemd_network_la_SOURCES = \
3328 src/systemd/sd-dhcp-client.h \
3329 src/systemd/sd-dhcp-server.h \
3330 src/systemd/sd-dhcp-lease.h \
3331 src/systemd/sd-ipv4ll.h \
3332 src/systemd/sd-ipv4acd.h \
3333 src/systemd/sd-ndisc.h \
3334 src/systemd/sd-dhcp6-client.h \
3335 src/systemd/sd-dhcp6-lease.h \
3336 src/systemd/sd-lldp.h \
3337 src/libsystemd-network/sd-dhcp-client.c \
3338 src/libsystemd-network/sd-dhcp-server.c \
3339 src/libsystemd-network/dhcp-network.c \
3340 src/libsystemd-network/dhcp-option.c \
3341 src/libsystemd-network/dhcp-packet.c \
3342 src/libsystemd-network/dhcp-internal.h \
3343 src/libsystemd-network/dhcp-server-internal.h \
3344 src/libsystemd-network/dhcp-protocol.h \
3345 src/libsystemd-network/dhcp-lease-internal.h \
3346 src/libsystemd-network/sd-dhcp-lease.c \
3347 src/libsystemd-network/sd-ipv4ll.c \
3348 src/libsystemd-network/sd-ipv4acd.c \
3349 src/libsystemd-network/arp-util.h \
3350 src/libsystemd-network/arp-util.c \
3351 src/libsystemd-network/network-internal.c \
3352 src/libsystemd-network/network-internal.h \
3353 src/libsystemd-network/sd-ndisc.c \
3354 src/libsystemd-network/icmp6-util.h \
3355 src/libsystemd-network/icmp6-util.c \
3356 src/libsystemd-network/sd-dhcp6-client.c \
3357 src/libsystemd-network/dhcp6-internal.h \
3358 src/libsystemd-network/dhcp6-protocol.h \
3359 src/libsystemd-network/dhcp6-network.c \
3360 src/libsystemd-network/dhcp6-option.c \
3361 src/libsystemd-network/dhcp6-lease-internal.h \
3362 src/libsystemd-network/sd-dhcp6-lease.c \
3363 src/libsystemd-network/dhcp-identifier.h \
3364 src/libsystemd-network/dhcp-identifier.c \
3365 src/libsystemd-network/lldp.h \
3366 src/libsystemd-network/lldp-tlv.h \
3367 src/libsystemd-network/lldp-tlv.c \
3368 src/libsystemd-network/lldp-network.h \
3369 src/libsystemd-network/lldp-network.c \
3370 src/libsystemd-network/lldp-port.h \
3371 src/libsystemd-network/lldp-port.c \
3372 src/libsystemd-network/lldp-internal.h \
3373 src/libsystemd-network/lldp-internal.c \
3374 src/libsystemd-network/sd-lldp.c
3375
3376 libsystemd_network_la_LIBADD = \
3377 $(KMOD_LIBS)
3378
3379 test_dhcp_option_SOURCES = \
3380 src/libsystemd-network/dhcp-protocol.h \
3381 src/libsystemd-network/dhcp-internal.h \
3382 src/libsystemd-network/test-dhcp-option.c
3383
3384 test_dhcp_option_LDADD = \
3385 libsystemd-network.la \
3386 libshared.la
3387
3388 test_dhcp_client_SOURCES = \
3389 src/systemd/sd-dhcp-client.h \
3390 src/libsystemd-network/dhcp-protocol.h \
3391 src/libsystemd-network/dhcp-internal.h \
3392 src/libsystemd-network/test-dhcp-client.c
3393
3394 test_dhcp_client_LDADD = \
3395 libsystemd-network.la \
3396 libshared.la
3397
3398 test_dhcp_server_SOURCES = \
3399 src/libsystemd-network/test-dhcp-server.c
3400
3401 test_dhcp_server_LDADD = \
3402 libsystemd-network.la \
3403 libshared.la
3404
3405 test_ipv4ll_SOURCES = \
3406 src/systemd/sd-ipv4ll.h \
3407 src/libsystemd-network/arp-util.h \
3408 src/libsystemd-network/test-ipv4ll.c
3409
3410 test_ipv4ll_LDADD = \
3411 libsystemd-network.la \
3412 libshared.la
3413
3414 test_ipv4ll_manual_SOURCES = \
3415 src/systemd/sd-ipv4ll.h \
3416 src/libsystemd-network/test-ipv4ll-manual.c
3417
3418 test_ipv4ll_manual_LDADD = \
3419 libsystemd-network.la \
3420 libshared.la
3421
3422 test_acd_SOURCES = \
3423 src/systemd/sd-ipv4acd.h \
3424 src/libsystemd-network/test-acd.c
3425
3426 test_acd_LDADD = \
3427 libsystemd-network.la \
3428 libshared.la
3429
3430 test_ndisc_rs_SOURCES = \
3431 src/systemd/sd-dhcp6-client.h \
3432 src/systemd/sd-ndisc.h \
3433 src/libsystemd-network/icmp6-util.h \
3434 src/libsystemd-network/test-ndisc-rs.c \
3435 src/libsystemd-network/dhcp-identifier.h \
3436 src/libsystemd-network/dhcp-identifier.c
3437
3438 test_ndisc_rs_LDADD = \
3439 libsystemd-network.la \
3440 libudev.la \
3441 libshared.la
3442
3443 test_dhcp6_client_SOURCES = \
3444 src/systemd/sd-dhcp6-client.h \
3445 src/libsystemd-network/dhcp6-internal.h \
3446 src/libsystemd-network/test-dhcp6-client.c \
3447 src/libsystemd-network/dhcp-identifier.h \
3448 src/libsystemd-network/dhcp-identifier.c
3449
3450 test_dhcp6_client_LDADD = \
3451 libsystemd-network.la \
3452 libudev.la \
3453 libshared.la
3454
3455 test_lldp_SOURCES = \
3456 src/libsystemd-network/lldp.h \
3457 src/libsystemd-network/lldp-tlv.h \
3458 src/libsystemd-network/lldp-tlv.c \
3459 src/libsystemd-network/test-lldp.c
3460
3461 test_lldp_LDADD = \
3462 libsystemd-network.la \
3463 libshared.la
3464
3465 tests += \
3466 test-dhcp-option \
3467 test-dhcp-client \
3468 test-dhcp-server \
3469 test-ipv4ll \
3470 test-ndisc-rs \
3471 test-dhcp6-client \
3472 test-lldp
3473
3474 # ------------------------------------------------------------------------------
3475 include_HEADERS += \
3476 src/libudev/libudev.h
3477
3478 lib_LTLIBRARIES += \
3479 libudev.la
3480
3481 libudev_la_SOURCES =\
3482 src/libudev/libudev.sym \
3483 src/libudev/libudev-private.h \
3484 src/libudev/libudev-device-internal.h \
3485 src/libudev/libudev.c \
3486 src/libudev/libudev-list.c \
3487 src/libudev/libudev-util.c \
3488 src/libudev/libudev-device.c \
3489 src/libudev/libudev-device-private.c \
3490 src/libudev/libudev-enumerate.c \
3491 src/libudev/libudev-monitor.c \
3492 src/libudev/libudev-queue.c \
3493 src/libudev/libudev-hwdb.c
3494
3495 libudev_la_LDFLAGS = \
3496 $(AM_LDFLAGS) \
3497 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3498 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3499
3500 libudev_la_LIBADD = \
3501 libsystemd-internal.la
3502
3503 pkgconfiglib_DATA += \
3504 src/libudev/libudev.pc
3505
3506 EXTRA_DIST += \
3507 src/libudev/libudev.pc.in
3508
3509 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3510 libudev-install-hook:
3511 libname=libudev.so && $(move-to-rootlibdir)
3512
3513 libudev-uninstall-hook:
3514 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3515
3516 INSTALL_EXEC_HOOKS += libudev-install-hook
3517 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3518
3519 # ------------------------------------------------------------------------------
3520 noinst_LTLIBRARIES += \
3521 libudev-internal.la
3522
3523 libudev_internal_la_SOURCES =\
3524 $(libudev_la_SOURCES)
3525
3526 # ------------------------------------------------------------------------------
3527 INSTALL_DIRS += \
3528 $(sysconfdir)/udev/rules.d
3529
3530 dist_network_DATA = \
3531 network/99-default.link \
3532 network/80-container-host0.network \
3533 network/80-container-ve.network
3534
3535 dist_udevrules_DATA += \
3536 rules/50-udev-default.rules \
3537 rules/60-block.rules \
3538 rules/60-drm.rules \
3539 rules/60-evdev.rules \
3540 rules/60-persistent-storage-tape.rules \
3541 rules/60-persistent-input.rules \
3542 rules/60-persistent-alsa.rules \
3543 rules/60-persistent-storage.rules \
3544 rules/60-serial.rules \
3545 rules/64-btrfs.rules \
3546 rules/70-mouse.rules \
3547 rules/75-net-description.rules \
3548 rules/78-sound-card.rules \
3549 rules/80-net-setup-link.rules
3550
3551 nodist_udevrules_DATA += \
3552 rules/99-systemd.rules
3553
3554 udevconfdir = $(sysconfdir)/udev
3555 dist_udevconf_DATA = \
3556 src/udev/udev.conf
3557
3558 pkgconfigdata_DATA += \
3559 src/udev/udev.pc
3560
3561 EXTRA_DIST += \
3562 rules/99-systemd.rules.in \
3563 src/udev/udev.pc.in
3564
3565 EXTRA_DIST += \
3566 units/systemd-udevd.service.in \
3567 units/systemd-udev-trigger.service.in \
3568 units/systemd-udev-settle.service.in
3569
3570 SOCKETS_TARGET_WANTS += \
3571 systemd-udevd-control.socket \
3572 systemd-udevd-kernel.socket
3573
3574 SYSINIT_TARGET_WANTS += \
3575 systemd-udevd.service \
3576 systemd-udev-trigger.service
3577
3578 rootbin_PROGRAMS += \
3579 udevadm
3580
3581 rootlibexec_PROGRAMS += \
3582 systemd-udevd
3583
3584 noinst_LTLIBRARIES += \
3585 libudev-core.la
3586
3587 src/udev/keyboard-keys-list.txt:
3588 $(AM_V_at)$(MKDIR_P) $(dir $@)
3589 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include linux/input.h - < /dev/null | $(AWK) '/^#define[ \t]+KEY_[^ ]+[ \t]+[0-9K]/ { if ($$2 != "KEY_MAX") { print $$2 } }' > $@
3590
3591 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys-list.txt
3592 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3593
3594 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3595 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3596
3597 gperf_txt_sources += \
3598 src/udev/keyboard-keys-list.txt
3599
3600 libudev_core_la_SOURCES = \
3601 src/udev/udev.h \
3602 src/udev/udev-event.c \
3603 src/udev/udev-watch.c \
3604 src/udev/udev-node.c \
3605 src/udev/udev-rules.c \
3606 src/udev/udev-ctrl.c \
3607 src/udev/udev-builtin.c \
3608 src/udev/udev-builtin-btrfs.c \
3609 src/udev/udev-builtin-hwdb.c \
3610 src/udev/udev-builtin-input_id.c \
3611 src/udev/udev-builtin-keyboard.c \
3612 src/udev/udev-builtin-net_id.c \
3613 src/udev/udev-builtin-net_setup_link.c \
3614 src/udev/udev-builtin-path_id.c \
3615 src/udev/udev-builtin-usb_id.c \
3616 src/udev/net/link-config.h \
3617 src/udev/net/link-config.c \
3618 src/udev/net/ethtool-util.h \
3619 src/udev/net/ethtool-util.c
3620
3621 nodist_libudev_core_la_SOURCES = \
3622 src/udev/keyboard-keys-from-name.h \
3623 src/udev/net/link-config-gperf.c
3624
3625 gperf_gperf_sources += \
3626 src/udev/net/link-config-gperf.gperf
3627
3628 libudev_core_la_CFLAGS = \
3629 $(AM_CFLAGS) \
3630 $(BLKID_CFLAGS) \
3631 $(KMOD_CFLAGS)
3632
3633 libudev_core_la_LIBADD = \
3634 libsystemd-network.la \
3635 libshared.la \
3636 $(BLKID_LIBS) \
3637 $(KMOD_LIBS)
3638
3639 if HAVE_KMOD
3640 libudev_core_la_SOURCES += \
3641 src/udev/udev-builtin-kmod.c
3642
3643 dist_udevrules_DATA += \
3644 rules/80-drivers.rules
3645 endif
3646
3647 if HAVE_BLKID
3648 libudev_core_la_SOURCES += \
3649 src/udev/udev-builtin-blkid.c
3650 endif
3651
3652 if HAVE_ACL
3653 libudev_core_la_SOURCES += \
3654 src/udev/udev-builtin-uaccess.c \
3655 src/login/logind-acl.c \
3656 src/libsystemd/sd-login/sd-login.c \
3657 src/systemd/sd-login.h
3658 endif
3659
3660 systemd_udevd_SOURCES = \
3661 src/udev/udevd.c
3662
3663 systemd_udevd_LDADD = \
3664 libudev-core.la
3665
3666 udevadm_SOURCES = \
3667 src/udev/udevadm.c \
3668 src/udev/udevadm-info.c \
3669 src/udev/udevadm-control.c \
3670 src/udev/udevadm-monitor.c \
3671 src/udev/udevadm-hwdb.c \
3672 src/udev/udevadm-settle.c \
3673 src/udev/udevadm-trigger.c \
3674 src/udev/udevadm-test.c \
3675 src/udev/udevadm-test-builtin.c \
3676 src/udev/udevadm-util.c \
3677 src/udev/udevadm-util.h
3678
3679 udevadm_LDADD = \
3680 libudev-core.la
3681
3682 # ------------------------------------------------------------------------------
3683 if ENABLE_HWDB
3684 INSTALL_DIRS += \
3685 $(sysconfdir)/udev/hwdb.d
3686
3687 systemd_hwdb_SOURCES = \
3688 src/libsystemd/sd-hwdb/hwdb-internal.h \
3689 src/hwdb/hwdb.c
3690
3691 systemd_hwdb_LDADD = \
3692 libshared.la
3693
3694 rootbin_PROGRAMS += \
3695 systemd-hwdb
3696
3697 dist_udevhwdb_DATA = \
3698 hwdb/20-pci-vendor-model.hwdb \
3699 hwdb/20-pci-classes.hwdb \
3700 hwdb/20-usb-vendor-model.hwdb \
3701 hwdb/20-usb-classes.hwdb \
3702 hwdb/20-sdio-vendor-model.hwdb \
3703 hwdb/20-sdio-classes.hwdb \
3704 hwdb/20-bluetooth-vendor-product.hwdb \
3705 hwdb/20-acpi-vendor.hwdb \
3706 hwdb/20-OUI.hwdb \
3707 hwdb/20-net-ifname.hwdb \
3708 hwdb/60-evdev.hwdb \
3709 hwdb/60-keyboard.hwdb \
3710 hwdb/70-mouse.hwdb \
3711 hwdb/70-pointingstick.hwdb
3712
3713 SYSINIT_TARGET_WANTS += \
3714 systemd-hwdb-update.service
3715
3716 # Update hwdb on installation. Do not bother if installing
3717 # in DESTDIR, since this is likely for packaging purposes.
3718 hwdb-update-hook:
3719 -test -n "$(DESTDIR)" || $(rootbindir)/systemd-hwdb update
3720
3721 INSTALL_DATA_HOOKS += \
3722 hwdb-update-hook
3723
3724 hwdb-remove-hook:
3725 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3726 endif
3727
3728 EXTRA_DIST += \
3729 units/systemd-hwdb-update.service.in \
3730 hwdb/ids-update.pl \
3731 hwdb/sdio.ids
3732
3733 # ------------------------------------------------------------------------------
3734 TESTS += \
3735 test/udev-test.pl
3736
3737 if HAVE_PYTHON
3738 TESTS += \
3739 test/rule-syntax-check.py
3740
3741 if HAVE_SYSV_COMPAT
3742 TESTS += \
3743 test/sysv-generator-test.py
3744 endif
3745 endif
3746
3747 manual_tests += \
3748 test-libudev \
3749 test-udev
3750
3751 test_libudev_SOURCES = \
3752 src/test/test-libudev.c
3753
3754 test_libudev_LDADD = \
3755 libshared.la
3756
3757 test_udev_SOURCES = \
3758 src/test/test-udev.c
3759
3760 test_udev_LDADD = \
3761 libudev-core.la \
3762 $(BLKID_LIBS) \
3763 $(KMOD_LIBS)
3764
3765 check_DATA += \
3766 test/sys
3767
3768 # packed sysfs test tree
3769 test/sys:
3770 $(AM_V_at)$(MKDIR_P) $(dir $@)
3771 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3772
3773 test-sys-distclean:
3774 -rm -rf test/sys
3775 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3776
3777 EXTRA_DIST += \
3778 test/sys.tar.xz \
3779 test/udev-test.pl \
3780 test/rule-syntax-check.py \
3781 test/sysv-generator-test.py \
3782 test/mocks/fsck
3783
3784 # ------------------------------------------------------------------------------
3785 ata_id_SOURCES = \
3786 src/udev/ata_id/ata_id.c
3787
3788 ata_id_LDADD = \
3789 libshared.la
3790
3791 udevlibexec_PROGRAMS += \
3792 ata_id
3793
3794 # ------------------------------------------------------------------------------
3795 cdrom_id_SOURCES = \
3796 src/udev/cdrom_id/cdrom_id.c
3797
3798 cdrom_id_LDADD = \
3799 libshared.la
3800
3801 udevlibexec_PROGRAMS += \
3802 cdrom_id
3803
3804 dist_udevrules_DATA += \
3805 rules/60-cdrom_id.rules
3806
3807 # ------------------------------------------------------------------------------
3808 collect_SOURCES = \
3809 src/udev/collect/collect.c
3810
3811 collect_LDADD = \
3812 libshared.la
3813
3814 udevlibexec_PROGRAMS += \
3815 collect
3816
3817 # ------------------------------------------------------------------------------
3818 scsi_id_SOURCES =\
3819 src/udev/scsi_id/scsi_id.c \
3820 src/udev/scsi_id/scsi_serial.c \
3821 src/udev/scsi_id/scsi.h \
3822 src/udev/scsi_id/scsi_id.h
3823
3824 scsi_id_LDADD = \
3825 libshared.la
3826
3827 udevlibexec_PROGRAMS += \
3828 scsi_id
3829
3830 EXTRA_DIST += \
3831 src/udev/scsi_id/README
3832
3833 # ------------------------------------------------------------------------------
3834 v4l_id_SOURCES = \
3835 src/udev/v4l_id/v4l_id.c
3836
3837 v4l_id_LDADD = \
3838 libshared.la
3839
3840 udevlibexec_PROGRAMS += \
3841 v4l_id
3842
3843 dist_udevrules_DATA += \
3844 rules/60-persistent-v4l.rules
3845
3846 # ------------------------------------------------------------------------------
3847 mtd_probe_SOURCES = \
3848 src/udev/mtd_probe/mtd_probe.c \
3849 src/udev/mtd_probe/mtd_probe.h \
3850 src/udev/mtd_probe/probe_smartmedia.c
3851
3852 dist_udevrules_DATA += \
3853 rules/75-probe_mtd.rules
3854
3855 udevlibexec_PROGRAMS += \
3856 mtd_probe
3857
3858 # ------------------------------------------------------------------------------
3859 test_id128_SOURCES = \
3860 src/test/test-id128.c
3861
3862 test_id128_LDADD = \
3863 libshared.la
3864
3865 tests += \
3866 test-id128
3867
3868 # ------------------------------------------------------------------------------
3869
3870 rootlibexec_PROGRAMS += \
3871 systemd-activate
3872
3873 systemd_activate_SOURCES = \
3874 src/activate/activate.c
3875
3876 systemd_activate_LDADD = \
3877 libshared.la
3878
3879 # ------------------------------------------------------------------------------
3880 systemd_journald_SOURCES = \
3881 src/journal/journald.c \
3882 src/journal/journald-server.h
3883
3884 systemd_journald_LDADD = \
3885 libjournal-core.la \
3886 libshared.la
3887
3888 systemd_cat_SOURCES = \
3889 src/journal/cat.c
3890
3891 systemd_cat_LDADD = \
3892 libjournal-core.la
3893
3894 if HAVE_MICROHTTPD
3895 rootlibexec_PROGRAMS += \
3896 systemd-journal-remote
3897
3898 systemd_journal_remote_SOURCES = \
3899 src/journal-remote/journal-remote-parse.h \
3900 src/journal-remote/journal-remote-parse.c \
3901 src/journal-remote/journal-remote-write.h \
3902 src/journal-remote/journal-remote-write.c \
3903 src/journal-remote/journal-remote.h \
3904 src/journal-remote/journal-remote.c
3905
3906 systemd_journal_remote_LDADD = \
3907 libjournal-core.la
3908
3909 systemd_journal_remote_SOURCES += \
3910 src/journal-remote/microhttpd-util.h \
3911 src/journal-remote/microhttpd-util.c
3912
3913 systemd_journal_remote_CFLAGS = \
3914 $(AM_CFLAGS) \
3915 $(MICROHTTPD_CFLAGS)
3916
3917 systemd_journal_remote_LDADD += \
3918 $(MICROHTTPD_LIBS)
3919
3920 if ENABLE_SYSUSERS
3921 dist_sysusers_DATA += \
3922 sysusers.d/systemd-remote.conf
3923 endif
3924
3925 if ENABLE_TMPFILES
3926 dist_tmpfiles_DATA += \
3927 tmpfiles.d/systemd-remote.conf
3928 endif
3929
3930 if HAVE_GNUTLS
3931 systemd_journal_remote_LDADD += \
3932 $(GNUTLS_LIBS)
3933 endif
3934
3935 # systemd-journal-remote make sense mostly with full crypto stack
3936 dist_systemunit_DATA += \
3937 units/systemd-journal-remote.socket
3938
3939 nodist_systemunit_DATA += \
3940 units/systemd-journal-remote.service
3941
3942 journal-remote-install-hook: journal-install-hook
3943 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
3944 -chown 0:0 $(DESTDIR)/var/log/journal/remote
3945 -chmod 755 $(DESTDIR)/var/log/journal/remote
3946
3947 INSTALL_EXEC_HOOKS += journal-remote-install-hook
3948
3949 nodist_pkgsysconf_DATA += \
3950 src/journal-remote/journal-remote.conf
3951
3952 EXTRA_DIST += \
3953 units/systemd-journal-remote.service.in \
3954 src/journal-remote/journal-remote.conf.in \
3955 src/journal-remote/log-generator.py
3956 endif
3957
3958 if HAVE_LIBCURL
3959 rootlibexec_PROGRAMS += \
3960 systemd-journal-upload
3961
3962 systemd_journal_upload_SOURCES = \
3963 src/journal-remote/journal-upload.h \
3964 src/journal-remote/journal-upload.c \
3965 src/journal-remote/journal-upload-journal.c
3966
3967 systemd_journal_upload_CFLAGS = \
3968 $(AM_CFLAGS) \
3969 $(LIBCURL_CFLAGS)
3970
3971 systemd_journal_upload_LDADD = \
3972 libshared.la \
3973 $(LIBCURL_LIBS)
3974
3975 nodist_systemunit_DATA += \
3976 units/systemd-journal-upload.service
3977
3978 nodist_pkgsysconf_DATA += \
3979 src/journal-remote/journal-upload.conf
3980 endif
3981
3982 EXTRA_DIST += \
3983 units/systemd-journal-upload.service.in \
3984 src/journal-remote/journal-upload.conf.in
3985
3986 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3987 journalctl_CFLAGS = \
3988 $(AM_CFLAGS)
3989
3990 journalctl_SOURCES = \
3991 src/journal/journalctl.c
3992
3993 journalctl_LDADD = \
3994 libshared.la
3995
3996 if HAVE_QRENCODE
3997 journalctl_SOURCES += \
3998 src/journal/journal-qrcode.c \
3999 src/journal/journal-qrcode.h
4000
4001 journalctl_CFLAGS += \
4002 $(QRENCODE_CFLAGS)
4003
4004 journalctl_LDADD += \
4005 $(QRENCODE_LIBS)
4006 endif
4007
4008 test_journal_SOURCES = \
4009 src/journal/test-journal.c
4010
4011 test_journal_LDADD = \
4012 libjournal-core.la
4013
4014 test_journal_send_SOURCES = \
4015 src/journal/test-journal-send.c
4016
4017 test_journal_send_LDADD = \
4018 libjournal-core.la
4019
4020 test_journal_syslog_SOURCES = \
4021 src/journal/test-journal-syslog.c
4022
4023 test_journal_syslog_LDADD = \
4024 libjournal-core.la
4025
4026 test_journal_match_SOURCES = \
4027 src/journal/test-journal-match.c
4028
4029 test_journal_match_LDADD = \
4030 libjournal-core.la
4031
4032 test_journal_enum_SOURCES = \
4033 src/journal/test-journal-enum.c
4034
4035 test_journal_enum_LDADD = \
4036 libjournal-core.la
4037
4038 test_journal_stream_SOURCES = \
4039 src/journal/test-journal-stream.c
4040
4041 test_journal_stream_LDADD = \
4042 libjournal-core.la
4043
4044 test_journal_flush_SOURCES = \
4045 src/journal/test-journal-flush.c
4046
4047 test_journal_flush_LDADD = \
4048 libjournal-core.la
4049
4050 test_journal_init_SOURCES = \
4051 src/journal/test-journal-init.c
4052
4053 test_journal_init_LDADD = \
4054 libjournal-core.la
4055
4056 test_journal_verify_SOURCES = \
4057 src/journal/test-journal-verify.c
4058
4059 test_journal_verify_LDADD = \
4060 libjournal-core.la
4061
4062 test_journal_interleaving_SOURCES = \
4063 src/journal/test-journal-interleaving.c
4064
4065 test_journal_interleaving_LDADD = \
4066 libjournal-core.la
4067
4068 test_mmap_cache_SOURCES = \
4069 src/journal/test-mmap-cache.c
4070
4071 test_mmap_cache_LDADD = \
4072 libjournal-core.la
4073
4074 test_catalog_SOURCES = \
4075 src/journal/test-catalog.c
4076
4077 test_catalog_CPPFLAGS = \
4078 $(AM_CPPFLAGS) \
4079 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
4080
4081 test_catalog_LDADD = \
4082 libjournal-core.la
4083
4084 test_compress_SOURCES = \
4085 src/journal/test-compress.c
4086
4087 test_compress_LDADD = \
4088 libshared.la
4089
4090 test_compress_benchmark_SOURCES = \
4091 src/journal/test-compress-benchmark.c
4092
4093 test_compress_benchmark_LDADD = \
4094 libshared.la
4095
4096 test_audit_type_SOURCES = \
4097 src/journal/test-audit-type.c
4098
4099 test_audit_type_LDADD = \
4100 libjournal-core.la
4101
4102 libjournal_core_la_SOURCES = \
4103 src/journal/journald-kmsg.c \
4104 src/journal/journald-kmsg.h \
4105 src/journal/journald-syslog.c \
4106 src/journal/journald-syslog.h \
4107 src/journal/journald-stream.c \
4108 src/journal/journald-stream.h \
4109 src/journal/journald-server.c \
4110 src/journal/journald-server.h \
4111 src/journal/journald-console.c \
4112 src/journal/journald-console.h \
4113 src/journal/journald-wall.c \
4114 src/journal/journald-wall.h \
4115 src/journal/journald-native.c \
4116 src/journal/journald-native.h \
4117 src/journal/journald-audit.c \
4118 src/journal/journald-audit.h \
4119 src/journal/journald-rate-limit.c \
4120 src/journal/journald-rate-limit.h \
4121 src/journal/journal-internal.h
4122
4123 nodist_libjournal_core_la_SOURCES = \
4124 src/journal/journald-gperf.c
4125
4126 libjournal_core_la_LIBADD = \
4127 libshared.la
4128
4129 noinst_LTLIBRARIES += \
4130 libjournal-core.la
4131
4132 journal-install-hook:
4133 -$(MKDIR_P) $(DESTDIR)/var/log/journal
4134 -chown 0:0 $(DESTDIR)/var/log/journal
4135 -chmod 755 $(DESTDIR)/var/log/journal
4136 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4137 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4138
4139 journal-uninstall-hook:
4140 -rmdir $(DESTDIR)/var/log/journal/remote
4141 -rmdir $(DESTDIR)/var/log/journal/
4142
4143 INSTALL_EXEC_HOOKS += journal-install-hook
4144 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4145
4146 # ------------------------------------------------------------------------------
4147 # Update catalog on installation. Do not bother if installing
4148 # in DESTDIR, since this is likely for packaging purposes.
4149 catalog-update-hook:
4150 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4151
4152 INSTALL_DATA_HOOKS += \
4153 catalog-update-hook
4154
4155 catalog-remove-hook:
4156 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4157
4158 UNINSTALL_DATA_HOOKS += \
4159 catalog-remove-hook
4160
4161 manual_tests += \
4162 test-journal-enum
4163
4164 tests += \
4165 test-journal \
4166 test-journal-send \
4167 test-journal-syslog \
4168 test-journal-match \
4169 test-journal-stream \
4170 test-journal-init \
4171 test-journal-verify \
4172 test-journal-interleaving \
4173 test-journal-flush \
4174 test-mmap-cache \
4175 test-catalog \
4176 test-audit-type
4177
4178 if HAVE_COMPRESSION
4179 tests += \
4180 test-compress \
4181 test-compress-benchmark
4182 endif
4183
4184 pkginclude_HEADERS += \
4185 src/systemd/sd-journal.h \
4186 src/systemd/sd-messages.h \
4187 src/systemd/_sd-common.h
4188
4189 libsystemd_journal_internal_la_SOURCES = \
4190 src/journal/sd-journal.c \
4191 src/systemd/sd-journal.h \
4192 src/systemd/_sd-common.h \
4193 src/journal/journal-file.c \
4194 src/journal/journal-file.h \
4195 src/journal/journal-vacuum.c \
4196 src/journal/journal-vacuum.h \
4197 src/journal/journal-verify.c \
4198 src/journal/journal-verify.h \
4199 src/journal/lookup3.c \
4200 src/journal/lookup3.h \
4201 src/journal/journal-send.c \
4202 src/journal/journal-def.h \
4203 src/journal/compress.h \
4204 src/journal/catalog.c \
4205 src/journal/catalog.h \
4206 src/journal/mmap-cache.c \
4207 src/journal/mmap-cache.h \
4208 src/journal/compress.c \
4209 src/journal/audit-type.h \
4210 src/journal/audit-type.c
4211
4212 nodist_libsystemd_journal_internal_la_SOURCES = \
4213 src/journal/audit_type-to-name.h
4214
4215 gperf_txt_sources += \
4216 src/journal/audit_type-list.txt
4217
4218 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4219 libsystemd_journal_internal_la_CFLAGS = \
4220 $(AM_CFLAGS)
4221
4222 libsystemd_journal_internal_la_LIBADD =
4223
4224 if HAVE_XZ
4225 libsystemd_journal_internal_la_CFLAGS += \
4226 $(XZ_CFLAGS)
4227
4228 libsystemd_journal_internal_la_LIBADD += \
4229 $(XZ_LIBS)
4230 endif
4231
4232 if HAVE_LZ4
4233 libsystemd_journal_internal_la_LIBADD += \
4234 -llz4
4235 endif
4236
4237 if HAVE_GCRYPT
4238 libsystemd_journal_internal_la_SOURCES += \
4239 src/journal/journal-authenticate.c \
4240 src/journal/journal-authenticate.h \
4241 src/journal/fsprg.c \
4242 src/journal/fsprg.h
4243
4244 libsystemd_journal_internal_la_LIBADD += \
4245 $(GCRYPT_LIBS)
4246
4247 # fsprg.c is a drop-in file using void pointer arithmetic
4248 libsystemd_journal_internal_la_CFLAGS += \
4249 $(GCRYPT_CFLAGS) \
4250 -Wno-pointer-arith
4251 endif
4252
4253 noinst_LTLIBRARIES += \
4254 libsystemd-journal-internal.la
4255
4256 rootlibexec_PROGRAMS += \
4257 systemd-journald
4258
4259 rootbin_PROGRAMS += \
4260 journalctl
4261
4262 bin_PROGRAMS += \
4263 systemd-cat
4264
4265 dist_systemunit_DATA += \
4266 units/systemd-journald.socket \
4267 units/systemd-journald-dev-log.socket \
4268 units/systemd-journald-audit.socket
4269
4270 nodist_systemunit_DATA += \
4271 units/systemd-journald.service \
4272 units/systemd-journal-flush.service \
4273 units/systemd-journal-catalog-update.service
4274
4275 dist_pkgsysconf_DATA += \
4276 src/journal/journald.conf
4277
4278 dist_catalog_DATA = \
4279 catalog/systemd.be.catalog \
4280 catalog/systemd.be@latin.catalog \
4281 catalog/systemd.fr.catalog \
4282 catalog/systemd.it.catalog \
4283 catalog/systemd.pl.catalog \
4284 catalog/systemd.pt_BR.catalog \
4285 catalog/systemd.ru.catalog \
4286 catalog/systemd.zh_CN.catalog \
4287 catalog/systemd.zh_TW.catalog \
4288 catalog/systemd.catalog
4289
4290 SOCKETS_TARGET_WANTS += \
4291 systemd-journald.socket \
4292 systemd-journald-dev-log.socket \
4293 systemd-journald-audit.socket
4294
4295 SYSINIT_TARGET_WANTS += \
4296 systemd-journald.service \
4297 systemd-journal-flush.service \
4298 systemd-journal-catalog-update.service
4299
4300 EXTRA_DIST += \
4301 units/systemd-journald.service.in \
4302 units/systemd-journal-flush.service.in \
4303 units/systemd-journal-catalog-update.service.in
4304
4305 gperf_gperf_sources += \
4306 src/journal/journald-gperf.gperf
4307
4308 # ------------------------------------------------------------------------------
4309 if HAVE_MICROHTTPD
4310 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4311
4312 rootlibexec_PROGRAMS += \
4313 systemd-journal-gatewayd
4314
4315 systemd_journal_gatewayd_SOURCES = \
4316 src/journal-remote/journal-gatewayd.c \
4317 src/journal-remote/microhttpd-util.h \
4318 src/journal-remote/microhttpd-util.c
4319
4320 systemd_journal_gatewayd_LDADD = \
4321 libshared.la \
4322 $(MICROHTTPD_LIBS)
4323
4324 if HAVE_GNUTLS
4325 systemd_journal_gatewayd_LDADD += \
4326 $(GNUTLS_LIBS)
4327 endif
4328
4329 systemd_journal_gatewayd_CFLAGS = \
4330 $(AM_CFLAGS) \
4331 $(MICROHTTPD_CFLAGS)
4332
4333 systemd_journal_gatewayd_CPPFLAGS = \
4334 $(AM_CPPFLAGS) \
4335 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4336
4337 dist_systemunit_DATA += \
4338 units/systemd-journal-gatewayd.socket
4339
4340 nodist_systemunit_DATA += \
4341 units/systemd-journal-gatewayd.service
4342
4343 dist_gatewayddocumentroot_DATA = \
4344 src/journal-remote/browse.html
4345
4346 endif
4347
4348 EXTRA_DIST += \
4349 units/systemd-journal-gatewayd.service.in
4350
4351 # ------------------------------------------------------------------------------
4352
4353 systemd_socket_proxyd_SOURCES = \
4354 src/socket-proxy/socket-proxyd.c
4355
4356 systemd_socket_proxyd_LDADD = \
4357 libshared.la
4358
4359 # ------------------------------------------------------------------------------
4360 if ENABLE_COREDUMP
4361 systemd_coredump_SOURCES = \
4362 src/journal/coredump.c \
4363 src/journal/coredump-vacuum.c \
4364 src/journal/coredump-vacuum.h
4365
4366 systemd_coredump_LDADD = \
4367 libshared.la
4368
4369 if HAVE_ELFUTILS
4370 systemd_coredump_SOURCES += \
4371 src/journal/stacktrace.c \
4372 src/journal/stacktrace.h
4373
4374 systemd_coredump_LDADD += \
4375 $(ELFUTILS_LIBS)
4376 endif
4377
4378 rootlibexec_PROGRAMS += \
4379 systemd-coredump
4380
4381 dist_pkgsysconf_DATA += \
4382 src/journal/coredump.conf
4383
4384 coredumpctl_SOURCES = \
4385 src/journal/coredumpctl.c
4386
4387 coredumpctl_LDADD = \
4388 libshared.la
4389
4390 bin_PROGRAMS += \
4391 coredumpctl
4392
4393 manual_tests += \
4394 test-coredump-vacuum
4395
4396 test_coredump_vacuum_SOURCES = \
4397 src/journal/test-coredump-vacuum.c \
4398 src/journal/coredump-vacuum.c \
4399 src/journal/coredump-vacuum.h
4400
4401 test_coredump_vacuum_LDADD = \
4402 libshared.la
4403
4404 if ENABLE_BASH_COMPLETION
4405 dist_bashcompletion_DATA += \
4406 shell-completion/bash/coredumpctl
4407 endif
4408
4409 if ENABLE_ZSH_COMPLETION
4410 dist_zshcompletion_DATA += \
4411 shell-completion/zsh/_coredumpctl
4412 endif
4413
4414 nodist_sysctl_DATA = \
4415 sysctl.d/50-coredump.conf
4416
4417 CLEANFILES += \
4418 sysctl.d/50-coredump.conf
4419 endif
4420
4421 EXTRA_DIST += \
4422 sysctl.d/50-coredump.conf.in
4423
4424 # ------------------------------------------------------------------------------
4425 if ENABLE_BINFMT
4426 systemd_binfmt_SOURCES = \
4427 src/binfmt/binfmt.c
4428
4429 systemd_binfmt_LDADD = \
4430 libshared.la
4431
4432 rootlibexec_PROGRAMS += \
4433 systemd-binfmt
4434
4435 dist_systemunit_DATA += \
4436 units/proc-sys-fs-binfmt_misc.automount \
4437 units/proc-sys-fs-binfmt_misc.mount
4438
4439 nodist_systemunit_DATA += \
4440 units/systemd-binfmt.service
4441
4442 INSTALL_DIRS += \
4443 $(prefix)/lib/binfmt.d \
4444 $(sysconfdir)/binfmt.d
4445
4446 SYSINIT_TARGET_WANTS += \
4447 systemd-binfmt.service \
4448 proc-sys-fs-binfmt_misc.automount
4449
4450 endif
4451
4452 EXTRA_DIST += \
4453 units/systemd-binfmt.service.in
4454
4455 # ------------------------------------------------------------------------------
4456 if ENABLE_VCONSOLE
4457 systemd_vconsole_setup_SOURCES = \
4458 src/vconsole/vconsole-setup.c
4459
4460 systemd_vconsole_setup_LDADD = \
4461 libshared.la
4462
4463 rootlibexec_PROGRAMS += \
4464 systemd-vconsole-setup
4465
4466 nodist_udevrules_DATA += \
4467 src/vconsole/90-vconsole.rules
4468
4469 nodist_systemunit_DATA += \
4470 units/systemd-vconsole-setup.service
4471
4472 SYSINIT_TARGET_WANTS += \
4473 systemd-vconsole-setup.service
4474 endif
4475
4476 EXTRA_DIST += \
4477 src/vconsole/90-vconsole.rules.in \
4478 units/systemd-vconsole-setup.service.in
4479
4480 # ------------------------------------------------------------------------------
4481 if ENABLE_BOOTCHART
4482 systemd_bootchart_SOURCES = \
4483 src/bootchart/bootchart.c \
4484 src/bootchart/bootchart.h \
4485 src/bootchart/store.c \
4486 src/bootchart/store.h \
4487 src/bootchart/svg.c \
4488 src/bootchart/svg.h
4489
4490 systemd_bootchart_LDADD = \
4491 libshared.la
4492
4493 rootlibexec_PROGRAMS += \
4494 systemd-bootchart
4495
4496 dist_pkgsysconf_DATA += \
4497 src/bootchart/bootchart.conf
4498
4499 nodist_systemunit_DATA += \
4500 units/systemd-bootchart.service
4501 endif
4502
4503 EXTRA_DIST += \
4504 units/systemd-bootchart.service.in
4505
4506 # ------------------------------------------------------------------------------
4507 if ENABLE_QUOTACHECK
4508 rootlibexec_PROGRAMS += \
4509 systemd-quotacheck
4510
4511 nodist_systemunit_DATA += \
4512 units/systemd-quotacheck.service
4513
4514 systemd_quotacheck_SOURCES = \
4515 src/quotacheck/quotacheck.c
4516
4517 systemd_quotacheck_LDADD = \
4518 libshared.la
4519 endif
4520
4521 EXTRA_DIST += \
4522 units/systemd-quotacheck.service.in
4523
4524 nodist_systemunit_DATA += \
4525 units/quotaon.service
4526
4527 # ------------------------------------------------------------------------------
4528 if ENABLE_RANDOMSEED
4529 rootlibexec_PROGRAMS += \
4530 systemd-random-seed
4531
4532 nodist_systemunit_DATA += \
4533 units/systemd-random-seed.service
4534
4535 systemd_random_seed_SOURCES = \
4536 src/random-seed/random-seed.c
4537
4538 systemd_random_seed_LDADD = \
4539 libshared.la
4540
4541 SYSINIT_TARGET_WANTS += \
4542 systemd-random-seed.service
4543
4544 endif
4545
4546 EXTRA_DIST += \
4547 units/systemd-random-seed.service.in
4548
4549 # ------------------------------------------------------------------------------
4550 if ENABLE_BACKLIGHT
4551 rootlibexec_PROGRAMS += \
4552 systemd-backlight
4553
4554 nodist_systemunit_DATA += \
4555 units/systemd-backlight@.service
4556
4557 systemd_backlight_SOURCES = \
4558 src/backlight/backlight.c
4559
4560 systemd_backlight_LDADD = \
4561 libshared.la
4562 endif
4563
4564 EXTRA_DIST += \
4565 units/systemd-backlight@.service.in
4566
4567 # ------------------------------------------------------------------------------
4568 if ENABLE_RFKILL
4569 rootlibexec_PROGRAMS += \
4570 systemd-rfkill
4571
4572 nodist_systemunit_DATA += \
4573 units/systemd-rfkill.service
4574
4575 dist_systemunit_DATA += \
4576 units/systemd-rfkill.socket
4577
4578 systemd_rfkill_SOURCES = \
4579 src/rfkill/rfkill.c
4580
4581 systemd_rfkill_LDADD = \
4582 libshared.la
4583 endif
4584
4585 EXTRA_DIST += \
4586 units/systemd-rfkill.service.in
4587
4588 # ------------------------------------------------------------------------------
4589 if HAVE_LIBCRYPTSETUP
4590 rootlibexec_PROGRAMS += \
4591 systemd-cryptsetup
4592
4593 systemgenerator_PROGRAMS += \
4594 systemd-cryptsetup-generator
4595
4596 dist_systemunit_DATA += \
4597 units/cryptsetup.target \
4598 units/cryptsetup-pre.target
4599
4600 systemd_cryptsetup_SOURCES = \
4601 src/cryptsetup/cryptsetup.c
4602
4603 systemd_cryptsetup_CFLAGS = \
4604 $(AM_CFLAGS) \
4605 $(LIBCRYPTSETUP_CFLAGS)
4606
4607 systemd_cryptsetup_LDADD = \
4608 libshared.la \
4609 $(LIBCRYPTSETUP_LIBS)
4610
4611 systemd_cryptsetup_generator_SOURCES = \
4612 src/cryptsetup/cryptsetup-generator.c
4613
4614 systemd_cryptsetup_generator_LDADD = \
4615 libshared.la
4616
4617 SYSINIT_TARGET_WANTS += \
4618 cryptsetup.target
4619
4620 endif
4621
4622 # ------------------------------------------------------------------------------
4623 if ENABLE_HOSTNAMED
4624 systemd_hostnamed_SOURCES = \
4625 src/hostname/hostnamed.c
4626
4627 systemd_hostnamed_LDADD = \
4628 libshared.la
4629
4630 rootlibexec_PROGRAMS += \
4631 systemd-hostnamed
4632
4633 nodist_systemunit_DATA += \
4634 units/systemd-hostnamed.service
4635
4636 dist_systemunit_DATA_busnames += \
4637 units/org.freedesktop.hostname1.busname
4638
4639 dist_dbuspolicy_DATA += \
4640 src/hostname/org.freedesktop.hostname1.conf
4641
4642 dist_dbussystemservice_DATA += \
4643 src/hostname/org.freedesktop.hostname1.service
4644
4645 polkitpolicy_files += \
4646 src/hostname/org.freedesktop.hostname1.policy
4647
4648 SYSTEM_UNIT_ALIASES += \
4649 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4650
4651 BUSNAMES_TARGET_WANTS += \
4652 org.freedesktop.hostname1.busname
4653
4654 hostnamectl_SOURCES = \
4655 src/hostname/hostnamectl.c
4656
4657 hostnamectl_LDADD = \
4658 libshared.la
4659
4660 bin_PROGRAMS += \
4661 hostnamectl
4662
4663 if ENABLE_BASH_COMPLETION
4664 dist_bashcompletion_DATA += \
4665 shell-completion/bash/hostnamectl
4666 endif
4667
4668 if ENABLE_ZSH_COMPLETION
4669 dist_zshcompletion_DATA += \
4670 shell-completion/zsh/_hostnamectl
4671 endif
4672 endif
4673
4674 polkitpolicy_in_files += \
4675 src/hostname/org.freedesktop.hostname1.policy.in
4676
4677 EXTRA_DIST += \
4678 units/systemd-hostnamed.service.in
4679
4680 # ------------------------------------------------------------------------------
4681 dist_systemunit_DATA_busnames += \
4682 units/org.freedesktop.systemd1.busname
4683
4684 BUSNAMES_TARGET_WANTS += \
4685 org.freedesktop.systemd1.busname
4686
4687 # ------------------------------------------------------------------------------
4688 if ENABLE_LOCALED
4689 systemd_localed_SOURCES = \
4690 src/locale/localed.c
4691
4692 systemd_localed_LDADD = \
4693 libshared.la \
4694 $(XKBCOMMON_LIBS)
4695
4696 systemd_localed_CFLAGS = \
4697 $(AM_CFLAGS) \
4698 $(XKBCOMMON_CFLAGS)
4699
4700 nodist_systemunit_DATA += \
4701 units/systemd-localed.service
4702
4703 dist_systemunit_DATA_busnames += \
4704 units/org.freedesktop.locale1.busname
4705
4706 rootlibexec_PROGRAMS += \
4707 systemd-localed
4708
4709 dist_dbuspolicy_DATA += \
4710 src/locale/org.freedesktop.locale1.conf
4711
4712 dist_dbussystemservice_DATA += \
4713 src/locale/org.freedesktop.locale1.service
4714
4715 polkitpolicy_files += \
4716 src/locale/org.freedesktop.locale1.policy
4717
4718 SYSTEM_UNIT_ALIASES += \
4719 systemd-localed.service dbus-org.freedesktop.locale1.service
4720
4721 BUSNAMES_TARGET_WANTS += \
4722 org.freedesktop.locale1.busname
4723
4724 dist_pkgdata_DATA = \
4725 src/locale/kbd-model-map \
4726 src/locale/language-fallback-map
4727
4728 localectl_SOURCES = \
4729 src/locale/localectl.c
4730
4731 localectl_LDADD = \
4732 libshared.la
4733
4734 bin_PROGRAMS += \
4735 localectl
4736
4737 if ENABLE_BASH_COMPLETION
4738 dist_bashcompletion_DATA += \
4739 shell-completion/bash/localectl
4740 endif
4741
4742 if ENABLE_ZSH_COMPLETION
4743 dist_zshcompletion_DATA += \
4744 shell-completion/zsh/_localectl
4745 endif
4746 endif
4747
4748 .PHONY: update-kbd-model-map
4749
4750 polkitpolicy_in_files += \
4751 src/locale/org.freedesktop.locale1.policy.in
4752
4753 EXTRA_DIST += \
4754 units/systemd-localed.service.in
4755
4756 # ------------------------------------------------------------------------------
4757 if ENABLE_TIMEDATED
4758 systemd_timedated_SOURCES = \
4759 src/timedate/timedated.c
4760
4761 systemd_timedated_LDADD = \
4762 libshared.la
4763
4764 rootlibexec_PROGRAMS += \
4765 systemd-timedated
4766
4767 dist_dbussystemservice_DATA += \
4768 src/timedate/org.freedesktop.timedate1.service
4769
4770 dist_dbuspolicy_DATA += \
4771 src/timedate/org.freedesktop.timedate1.conf
4772
4773 nodist_systemunit_DATA += \
4774 units/systemd-timedated.service
4775
4776 dist_systemunit_DATA_busnames += \
4777 units/org.freedesktop.timedate1.busname
4778
4779 polkitpolicy_files += \
4780 src/timedate/org.freedesktop.timedate1.policy
4781
4782 SYSTEM_UNIT_ALIASES += \
4783 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4784
4785 BUSNAMES_TARGET_WANTS += \
4786 org.freedesktop.timedate1.busname
4787
4788 timedatectl_SOURCES = \
4789 src/timedate/timedatectl.c
4790
4791 timedatectl_LDADD = \
4792 libshared.la
4793
4794 bin_PROGRAMS += \
4795 timedatectl
4796
4797 if ENABLE_BASH_COMPLETION
4798 dist_bashcompletion_DATA += \
4799 shell-completion/bash/timedatectl
4800 endif
4801
4802 if ENABLE_ZSH_COMPLETION
4803 dist_zshcompletion_DATA += \
4804 shell-completion/zsh/_timedatectl
4805 endif
4806 endif
4807
4808 polkitpolicy_in_files += \
4809 src/timedate/org.freedesktop.timedate1.policy.in
4810
4811 EXTRA_DIST += \
4812 units/systemd-timedated.service.in
4813
4814 # ------------------------------------------------------------------------------
4815 if ENABLE_TIMESYNCD
4816 systemd_timesyncd_SOURCES = \
4817 src/timesync/timesyncd.c \
4818 src/timesync/timesyncd-manager.c \
4819 src/timesync/timesyncd-manager.h \
4820 src/timesync/timesyncd-conf.c \
4821 src/timesync/timesyncd-conf.h \
4822 src/timesync/timesyncd-server.c \
4823 src/timesync/timesyncd-server.h
4824
4825 nodist_systemd_timesyncd_SOURCES = \
4826 src/timesync/timesyncd-gperf.c
4827
4828 systemd_timesyncd_LDADD = \
4829 libsystemd-network.la \
4830 libshared.la
4831
4832 rootlibexec_PROGRAMS += \
4833 systemd-timesyncd
4834
4835 nodist_systemunit_DATA += \
4836 units/systemd-timesyncd.service
4837
4838 GENERAL_ALIASES += \
4839 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
4840
4841
4842 nodist_pkgsysconf_DATA += \
4843 src/timesync/timesyncd.conf
4844
4845 endif
4846
4847 gperf_gperf_sources += \
4848 src/timesync/timesyncd-gperf.gperf
4849
4850 EXTRA_DIST += \
4851 units/systemd-timesyncd.service.in \
4852 src/timesync/timesyncd.conf.in
4853
4854 # ------------------------------------------------------------------------------
4855 if HAVE_MYHOSTNAME
4856 libnss_myhostname_la_SOURCES = \
4857 src/nss-myhostname/nss-myhostname.sym \
4858 src/nss-myhostname/nss-myhostname.c
4859
4860 libnss_myhostname_la_LDFLAGS = \
4861 $(AM_LDFLAGS) \
4862 -module \
4863 -export-dynamic \
4864 -avoid-version \
4865 -shared \
4866 -shrext .so.2 \
4867 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
4868
4869 libnss_myhostname_la_LIBADD = \
4870 libshared.la
4871
4872 lib_LTLIBRARIES += \
4873 libnss_myhostname.la
4874 endif
4875
4876 # ------------------------------------------------------------------------------
4877 if ENABLE_MACHINED
4878 systemd_machined_SOURCES = \
4879 src/machine/machined.c \
4880 src/machine/machined.h
4881
4882 systemd_machined_LDADD = \
4883 libmachine-core.la
4884
4885 rootlibexec_PROGRAMS += \
4886 systemd-machined
4887
4888 libmachine_core_la_SOURCES = \
4889 src/machine/machine.c \
4890 src/machine/machine.h \
4891 src/machine/machined-dbus.c \
4892 src/machine/machine-dbus.c \
4893 src/machine/machine-dbus.h \
4894 src/machine/image-dbus.c \
4895 src/machine/image-dbus.h
4896
4897 libmachine_core_la_LIBADD = \
4898 libshared.la
4899
4900 noinst_LTLIBRARIES += \
4901 libmachine-core.la
4902
4903 machinectl_SOURCES = \
4904 src/machine/machinectl.c
4905
4906 machinectl_LDADD = \
4907 libshared.la
4908
4909 rootbin_PROGRAMS += \
4910 machinectl
4911
4912 if ENABLE_BASH_COMPLETION
4913 dist_bashcompletion_DATA += \
4914 shell-completion/bash/machinectl
4915 endif
4916
4917 test_machine_tables_SOURCES = \
4918 src/machine/test-machine-tables.c
4919
4920 test_machine_tables_LDADD = \
4921 libmachine-core.la
4922
4923 tests += \
4924 test-machine-tables
4925
4926 nodist_systemunit_DATA += \
4927 units/systemd-machined.service
4928
4929 dist_systemunit_DATA += \
4930 units/machine.slice
4931
4932 dist_systemunit_DATA_busnames += \
4933 units/org.freedesktop.machine1.busname
4934
4935 dist_dbussystemservice_DATA += \
4936 src/machine/org.freedesktop.machine1.service
4937
4938 dist_dbuspolicy_DATA += \
4939 src/machine/org.freedesktop.machine1.conf
4940
4941 polkitpolicy_files += \
4942 src/machine/org.freedesktop.machine1.policy
4943
4944 if ENABLE_ZSH_COMPLETION
4945 dist_zshcompletion_DATA += \
4946 shell-completion/zsh/_machinectl \
4947 shell-completion/zsh/_sd_machines
4948 endif
4949
4950 SYSTEM_UNIT_ALIASES += \
4951 systemd-machined.service dbus-org.freedesktop.machine1.service
4952
4953 BUSNAMES_TARGET_WANTS += \
4954 org.freedesktop.machine1.busname
4955
4956 libnss_mymachines_la_SOURCES = \
4957 src/nss-mymachines/nss-mymachines.sym \
4958 src/nss-mymachines/nss-mymachines.c
4959
4960 libnss_mymachines_la_LDFLAGS = \
4961 $(AM_LDFLAGS) \
4962 -module \
4963 -export-dynamic \
4964 -avoid-version \
4965 -shared \
4966 -shrext .so.2 \
4967 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
4968
4969 libnss_mymachines_la_LIBADD = \
4970 libshared.la
4971
4972 lib_LTLIBRARIES += \
4973 libnss_mymachines.la
4974
4975 endif
4976
4977 polkitpolicy_in_files += \
4978 src/machine/org.freedesktop.machine1.policy.in
4979
4980 EXTRA_DIST += \
4981 units/systemd-machined.service.in
4982
4983 # ------------------------------------------------------------------------------
4984 if ENABLE_IMPORTD
4985
4986 if HAVE_LIBCURL
4987 if HAVE_XZ
4988 if HAVE_ZLIB
4989 if HAVE_BZIP2
4990 if HAVE_GCRYPT
4991
4992 rootlibexec_PROGRAMS += \
4993 systemd-importd \
4994 systemd-pull \
4995 systemd-import \
4996 systemd-export
4997
4998 systemd_importd_SOURCES = \
4999 src/import/importd.c
5000
5001 systemd_importd_CFLAGS = \
5002 $(AM_CFLAGS) \
5003 -D SYSTEMD_PULL_PATH=\"$(rootlibexecdir)/systemd-pull\" \
5004 -D SYSTEMD_IMPORT_PATH=\"$(rootlibexecdir)/systemd-import\" \
5005 -D SYSTEMD_EXPORT_PATH=\"$(rootlibexecdir)/systemd-export\"
5006
5007 systemd_importd_LDADD = \
5008 libshared.la
5009
5010 systemd_pull_SOURCES = \
5011 src/import/pull.c \
5012 src/import/pull-raw.c \
5013 src/import/pull-raw.h \
5014 src/import/pull-tar.c \
5015 src/import/pull-tar.h \
5016 src/import/pull-dkr.c \
5017 src/import/pull-dkr.h \
5018 src/import/pull-job.c \
5019 src/import/pull-job.h \
5020 src/import/pull-common.c \
5021 src/import/pull-common.h \
5022 src/import/import-common.c \
5023 src/import/import-common.h \
5024 src/import/import-compress.c \
5025 src/import/import-compress.h \
5026 src/import/curl-util.c \
5027 src/import/curl-util.h \
5028 src/import/aufs-util.c \
5029 src/import/aufs-util.h \
5030 src/import/qcow2-util.c \
5031 src/import/qcow2-util.h
5032
5033 systemd_pull_CFLAGS = \
5034 $(AM_CFLAGS) \
5035 $(LIBCURL_CFLAGS) \
5036 $(XZ_CFLAGS) \
5037 $(ZLIB_CFLAGS) \
5038 $(GCRYPT_CFLAGS) \
5039 -D VENDOR_KEYRING_PATH=\"$(rootlibexecdir)/import-pubring.gpg\" \
5040 -D USER_KEYRING_PATH=\"$(pkgsysconfdir)/import-pubring.gpg\"
5041
5042 systemd_pull_LDADD = \
5043 libshared.la \
5044 $(LIBCURL_LIBS) \
5045 $(XZ_LIBS) \
5046 $(ZLIB_LIBS) \
5047 -lbz2 \
5048 $(GCRYPT_LIBS)
5049
5050 systemd_import_SOURCES = \
5051 src/import/import.c \
5052 src/import/import-raw.c \
5053 src/import/import-raw.h \
5054 src/import/import-tar.c \
5055 src/import/import-tar.h \
5056 src/import/import-common.c \
5057 src/import/import-common.h \
5058 src/import/import-compress.c \
5059 src/import/import-compress.h \
5060 src/import/qcow2-util.c \
5061 src/import/qcow2-util.h
5062
5063 systemd_import_CFLAGS = \
5064 $(AM_CFLAGS) \
5065 $(XZ_CFLAGS) \
5066 $(ZLIB_CFLAGS)
5067
5068 systemd_import_LDADD = \
5069 libshared.la \
5070 $(XZ_LIBS) \
5071 $(ZLIB_LIBS) \
5072 -lbz2
5073
5074 systemd_export_SOURCES = \
5075 src/import/export.c \
5076 src/import/export-tar.c \
5077 src/import/export-tar.h \
5078 src/import/export-raw.c \
5079 src/import/export-raw.h \
5080 src/import/import-common.c \
5081 src/import/import-common.h \
5082 src/import/import-compress.c \
5083 src/import/import-compress.h
5084
5085 systemd_export_CFLAGS = \
5086 $(AM_CFLAGS) \
5087 $(XZ_CFLAGS) \
5088 $(ZLIB_CFLAGS)
5089
5090 systemd_export_LDADD = \
5091 libshared.la \
5092 $(XZ_LIBS) \
5093 $(ZLIB_LIBS) \
5094 -lbz2
5095
5096 dist_rootlibexec_DATA = \
5097 src/import/import-pubring.gpg
5098
5099 nodist_systemunit_DATA += \
5100 units/systemd-importd.service
5101
5102 dist_systemunit_DATA_busnames += \
5103 units/org.freedesktop.import1.busname
5104
5105 BUSNAMES_TARGET_WANTS += \
5106 org.freedesktop.import1.busname
5107
5108 SYSTEM_UNIT_ALIASES += \
5109 systemd-importd.service dbus-org.freedesktop.import1.service
5110
5111 dist_dbussystemservice_DATA += \
5112 src/import/org.freedesktop.import1.service
5113
5114 dist_dbuspolicy_DATA += \
5115 src/import/org.freedesktop.import1.conf
5116
5117 polkitpolicy_files += \
5118 src/import/org.freedesktop.import1.policy
5119
5120 manual_tests += \
5121 test-qcow2
5122
5123 test_qcow2_SOURCES = \
5124 src/import/test-qcow2.c \
5125 src/import/qcow2-util.c \
5126 src/import/qcow2-util.h
5127
5128 test_qcow2_CFLAGS = \
5129 $(AM_CFLAGS) \
5130 $(ZLIB_CFLAGS)
5131
5132 test_qcow2_LDADD = \
5133 libshared.la \
5134 $(ZLIB_LIBS)
5135
5136 endif
5137 endif
5138 endif
5139 endif
5140 endif
5141
5142 endif
5143
5144 polkitpolicy_in_files += \
5145 src/import/org.freedesktop.import1.policy.in
5146
5147 EXTRA_DIST += \
5148 units/systemd-importd.service.in
5149
5150
5151 # ------------------------------------------------------------------------------
5152 if ENABLE_RESOLVED
5153 if HAVE_GCRYPT
5154
5155 systemd_resolved_SOURCES = \
5156 src/resolve/resolved.c \
5157 src/resolve/resolved-manager.c \
5158 src/resolve/resolved-manager.h \
5159 src/resolve/resolved-conf.c \
5160 src/resolve/resolved-conf.h \
5161 src/resolve/resolved-resolv-conf.c \
5162 src/resolve/resolved-resolv-conf.h \
5163 src/resolve/resolved-bus.c \
5164 src/resolve/resolved-bus.h \
5165 src/resolve/resolved-link.h \
5166 src/resolve/resolved-link.c \
5167 src/resolve/resolved-llmnr.h \
5168 src/resolve/resolved-llmnr.c \
5169 src/resolve/resolved-def.h \
5170 src/resolve/resolved-dns-rr.h \
5171 src/resolve/resolved-dns-rr.c \
5172 src/resolve/resolved-dns-question.h \
5173 src/resolve/resolved-dns-question.c \
5174 src/resolve/resolved-dns-answer.h \
5175 src/resolve/resolved-dns-answer.c \
5176 src/resolve/resolved-dns-packet.h \
5177 src/resolve/resolved-dns-packet.c \
5178 src/resolve/resolved-dns-query.h \
5179 src/resolve/resolved-dns-query.c \
5180 src/resolve/resolved-dns-transaction.h \
5181 src/resolve/resolved-dns-transaction.c \
5182 src/resolve/resolved-dns-scope.h \
5183 src/resolve/resolved-dns-scope.c \
5184 src/resolve/resolved-dns-server.h \
5185 src/resolve/resolved-dns-server.c \
5186 src/resolve/resolved-dns-search-domain.h \
5187 src/resolve/resolved-dns-search-domain.c \
5188 src/resolve/resolved-dns-cache.h \
5189 src/resolve/resolved-dns-cache.c \
5190 src/resolve/resolved-dns-zone.h \
5191 src/resolve/resolved-dns-zone.c \
5192 src/resolve/resolved-dns-stream.h \
5193 src/resolve/resolved-dns-stream.c \
5194 src/resolve/resolved-dns-dnssec.h \
5195 src/resolve/resolved-dns-dnssec.c \
5196 src/resolve/resolved-dns-trust-anchor.h \
5197 src/resolve/resolved-dns-trust-anchor.c \
5198 src/resolve/dns-type.c \
5199 src/resolve/dns-type.h
5200
5201 nodist_systemd_resolved_SOURCES = \
5202 src/resolve/dns_type-from-name.h \
5203 src/resolve/dns_type-to-name.h \
5204 src/resolve/resolved-gperf.c
5205
5206 gperf_gperf_sources += \
5207 src/resolve/resolved-gperf.gperf
5208
5209 gperf_txt_sources += \
5210 src/resolve/dns_type-list.txt
5211
5212 systemd_resolved_LDADD = \
5213 libsystemd-network.la \
5214 libshared.la
5215
5216 rootlibexec_PROGRAMS += \
5217 systemd-resolved
5218
5219 nodist_systemunit_DATA += \
5220 units/systemd-resolved.service
5221
5222 dist_systemunit_DATA_busnames += \
5223 units/org.freedesktop.resolve1.busname
5224
5225 dist_dbuspolicy_DATA += \
5226 src/resolve/org.freedesktop.resolve1.conf
5227
5228 dist_dbussystemservice_DATA += \
5229 src/resolve/org.freedesktop.resolve1.service
5230
5231 SYSTEM_UNIT_ALIASES += \
5232 systemd-resolved.service dbus-org.freedesktop.resolve1.service
5233
5234 BUSNAMES_TARGET_WANTS += \
5235 org.freedesktop.resolve1.busname
5236
5237 GENERAL_ALIASES += \
5238 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
5239
5240 nodist_pkgsysconf_DATA += \
5241 src/resolve/resolved.conf
5242
5243 libnss_resolve_la_SOURCES = \
5244 src/nss-resolve/nss-resolve.sym \
5245 src/nss-resolve/nss-resolve.c
5246
5247 libnss_resolve_la_LDFLAGS = \
5248 $(AM_LDFLAGS) \
5249 -module \
5250 -export-dynamic \
5251 -avoid-version \
5252 -shared \
5253 -shrext .so.2 \
5254 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
5255
5256 libnss_resolve_la_LIBADD = \
5257 libshared.la \
5258 -ldl
5259
5260 lib_LTLIBRARIES += \
5261 libnss_resolve.la
5262
5263 systemd_resolve_host_SOURCES = \
5264 src/resolve-host/resolve-host.c \
5265 src/resolve/resolved-dns-packet.c \
5266 src/resolve/resolved-dns-packet.h \
5267 src/resolve/resolved-dns-rr.c \
5268 src/resolve/resolved-dns-rr.h \
5269 src/resolve/resolved-dns-answer.c \
5270 src/resolve/resolved-dns-answer.h \
5271 src/resolve/resolved-dns-question.c \
5272 src/resolve/resolved-dns-question.h \
5273 src/resolve/dns-type.c \
5274 src/resolve/dns-type.h
5275
5276 nodist_systemd_resolve_host_SOURCES = \
5277 src/resolve/dns_type-from-name.h \
5278 src/resolve/dns_type-to-name.h
5279
5280 systemd_resolve_host_LDADD = \
5281 libshared.la
5282
5283 rootlibexec_PROGRAMS += \
5284 systemd-resolve-host
5285
5286 tests += \
5287 test-dns-domain \
5288 test-dnssec
5289
5290 test_dnssec_SOURCES = \
5291 src/resolve/test-dnssec.c \
5292 src/resolve/resolved-dns-packet.c \
5293 src/resolve/resolved-dns-packet.h \
5294 src/resolve/resolved-dns-rr.c \
5295 src/resolve/resolved-dns-rr.h \
5296 src/resolve/resolved-dns-answer.c \
5297 src/resolve/resolved-dns-answer.h \
5298 src/resolve/resolved-dns-question.c \
5299 src/resolve/resolved-dns-question.h \
5300 src/resolve/resolved-dns-dnssec.c \
5301 src/resolve/resolved-dns-dnssec.h \
5302 src/resolve/dns-type.c \
5303 src/resolve/dns-type.h
5304
5305 test_dnssec_LDADD = \
5306 libshared.la
5307
5308 endif
5309 endif
5310
5311 EXTRA_DIST += \
5312 units/systemd-resolved.service.m4.in \
5313 src/resolve/resolved.conf.in
5314
5315 # ------------------------------------------------------------------------------
5316 if ENABLE_NETWORKD
5317 rootlibexec_PROGRAMS += \
5318 systemd-networkd
5319
5320 systemd_networkd_SOURCES = \
5321 src/network/networkd.c
5322
5323 systemd_networkd_LDADD = \
5324 libnetworkd-core.la
5325
5326 if HAVE_LIBIPTC
5327 systemd_networkd_LDADD += \
5328 libfirewall.la
5329 endif
5330
5331 noinst_LTLIBRARIES += \
5332 libnetworkd-core.la
5333
5334 libnetworkd_core_la_CFLAGS = \
5335 $(AM_CFLAGS)
5336
5337 libnetworkd_core_la_SOURCES = \
5338 src/libsystemd-network/network-internal.h \
5339 src/network/networkd.h \
5340 src/network/networkd-link.h \
5341 src/network/networkd-link.c \
5342 src/network/networkd-netdev.h \
5343 src/network/networkd-netdev.c \
5344 src/network/networkd-netdev-tunnel.h \
5345 src/network/networkd-netdev-tunnel.c \
5346 src/network/networkd-netdev-veth.h \
5347 src/network/networkd-netdev-veth.c \
5348 src/network/networkd-netdev-vxlan.h \
5349 src/network/networkd-netdev-vxlan.c \
5350 src/network/networkd-netdev-vlan.h \
5351 src/network/networkd-netdev-vlan.c \
5352 src/network/networkd-netdev-macvlan.h \
5353 src/network/networkd-netdev-macvlan.c \
5354 src/network/networkd-netdev-ipvlan.h \
5355 src/network/networkd-netdev-ipvlan.c \
5356 src/network/networkd-netdev-dummy.h \
5357 src/network/networkd-netdev-dummy.c \
5358 src/network/networkd-netdev-tuntap.h \
5359 src/network/networkd-netdev-tuntap.c \
5360 src/network/networkd-netdev-bond.h \
5361 src/network/networkd-netdev-bond.c \
5362 src/network/networkd-netdev-bridge.h \
5363 src/network/networkd-netdev-bridge.c \
5364 src/network/networkd-link-bus.c \
5365 src/network/networkd-ipv4ll.c \
5366 src/network/networkd-dhcp4.c \
5367 src/network/networkd-dhcp6.c \
5368 src/network/networkd-ndisc.c \
5369 src/network/networkd-network.h \
5370 src/network/networkd-network.c \
5371 src/network/networkd-network-bus.c \
5372 src/network/networkd-address.h \
5373 src/network/networkd-address.c \
5374 src/network/networkd-route.h \
5375 src/network/networkd-route.c \
5376 src/network/networkd-manager.c \
5377 src/network/networkd-manager-bus.c \
5378 src/network/networkd-fdb.h \
5379 src/network/networkd-fdb.c \
5380 src/network/networkd-address-pool.h \
5381 src/network/networkd-address-pool.c \
5382 src/network/networkd-util.h \
5383 src/network/networkd-util.c
5384
5385 nodist_libnetworkd_core_la_SOURCES = \
5386 src/network/networkd-network-gperf.c \
5387 src/network/networkd-netdev-gperf.c
5388
5389 libnetworkd_core_la_LIBADD = \
5390 libsystemd-network.la \
5391 libshared.la
5392
5393 rootlibexec_PROGRAMS += \
5394 systemd-networkd-wait-online
5395
5396 systemd_networkd_wait_online_CFLAGS = \
5397 $(AM_CFLAGS)
5398
5399 systemd_networkd_wait_online_SOURCES = \
5400 src/libsystemd-network/network-internal.h \
5401 src/network/networkd-wait-online.h \
5402 src/network/networkd-wait-online-link.h \
5403 src/network/networkd-wait-online.c \
5404 src/network/networkd-wait-online-manager.c \
5405 src/network/networkd-wait-online-link.c
5406
5407 systemd_networkd_wait_online_LDADD = \
5408 libsystemd-network.la \
5409 libshared.la
5410
5411 rootbin_PROGRAMS += \
5412 networkctl
5413
5414 networkctl_SOURCES = \
5415 src/network/networkctl.c
5416
5417 networkctl_LDADD = \
5418 libshared.la \
5419 libsystemd-network.la
5420
5421 if ENABLE_BASH_COMPLETION
5422 dist_bashcompletion_DATA += \
5423 shell-completion/bash/networkctl
5424 endif
5425
5426 test_network_SOURCES = \
5427 src/network/test-network.c
5428
5429 test_network_LDADD = \
5430 libnetworkd-core.la
5431
5432 if HAVE_LIBIPTC
5433 test_network_LDADD += \
5434 libfirewall.la
5435 endif
5436
5437 test_network_tables_SOURCES = \
5438 src/network/test-network-tables.c \
5439 src/shared/test-tables.h
5440
5441 test_network_tables_LDADD = \
5442 libnetworkd-core.la \
5443 libudev-core.la
5444
5445 if HAVE_LIBIPTC
5446 test_network_tables_LDADD += \
5447 libfirewall.la
5448 endif
5449
5450 tests += \
5451 test-network \
5452 test-network-tables
5453
5454 dist_systemunit_DATA += \
5455 units/systemd-networkd.socket
5456
5457 nodist_systemunit_DATA += \
5458 units/systemd-networkd.service \
5459 units/systemd-networkd-wait-online.service
5460
5461 dist_systemunit_DATA_busnames += \
5462 units/org.freedesktop.network1.busname
5463
5464 dist_dbussystemservice_DATA += \
5465 src/network/org.freedesktop.network1.service
5466
5467 dist_dbuspolicy_DATA += \
5468 src/network/org.freedesktop.network1.conf
5469
5470 GENERAL_ALIASES += \
5471 $(systemunitdir)/systemd-networkd.socket $(pkgsysconfdir)/system/sockets.target.wants/systemd-networkd.socket \
5472 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5473 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5474
5475 SYSTEM_UNIT_ALIASES += \
5476 systemd-networkd.service dbus-org.freedesktop.network1.service
5477
5478 BUSNAMES_TARGET_WANTS += \
5479 org.freedesktop.network1.busname
5480
5481 endif
5482
5483 gperf_gperf_sources += \
5484 src/network/networkd-network-gperf.gperf \
5485 src/network/networkd-netdev-gperf.gperf
5486
5487 EXTRA_DIST += \
5488 units/systemd-networkd.service.m4.in \
5489 units/systemd-networkd-wait-online.service.in \
5490 test/networkd-test.py
5491
5492 # ------------------------------------------------------------------------------
5493 if ENABLE_LOGIND
5494 systemd_logind_SOURCES = \
5495 src/login/logind.c \
5496 src/login/logind.h
5497
5498 nodist_systemd_logind_SOURCES = \
5499 src/login/logind-gperf.c
5500
5501 systemd_logind_LDADD = \
5502 liblogind-core.la
5503
5504 liblogind_core_la_SOURCES = \
5505 src/login/logind-core.c \
5506 src/login/logind-device.c \
5507 src/login/logind-device.h \
5508 src/login/logind-button.c \
5509 src/login/logind-button.h \
5510 src/login/logind-action.c \
5511 src/login/logind-action.h \
5512 src/login/logind-seat.c \
5513 src/login/logind-seat.h \
5514 src/login/logind-session.c \
5515 src/login/logind-session.h \
5516 src/login/logind-session-device.c \
5517 src/login/logind-session-device.h \
5518 src/login/logind-user.c \
5519 src/login/logind-user.h \
5520 src/login/logind-inhibit.c \
5521 src/login/logind-inhibit.h \
5522 src/login/logind-dbus.c \
5523 src/login/logind-session-dbus.c \
5524 src/login/logind-seat-dbus.c \
5525 src/login/logind-user-dbus.c \
5526 src/login/logind-utmp.c \
5527 src/login/logind-acl.h
5528
5529 liblogind_core_la_LIBADD = \
5530 libshared.la
5531
5532 if HAVE_ACL
5533 liblogind_core_la_SOURCES += \
5534 src/login/logind-acl.c
5535 endif
5536
5537 noinst_LTLIBRARIES += \
5538 liblogind-core.la
5539
5540 rootlibexec_PROGRAMS += \
5541 systemd-logind
5542
5543 loginctl_SOURCES = \
5544 src/login/loginctl.c \
5545 src/login/sysfs-show.h \
5546 src/login/sysfs-show.c
5547
5548 loginctl_LDADD = \
5549 libshared.la
5550
5551 rootbin_PROGRAMS += \
5552 loginctl
5553
5554 if ENABLE_BASH_COMPLETION
5555 dist_bashcompletion_DATA += \
5556 shell-completion/bash/loginctl
5557 endif
5558
5559 if ENABLE_ZSH_COMPLETION
5560 dist_zshcompletion_DATA += \
5561 shell-completion/zsh/_loginctl \
5562 shell-completion/zsh/_systemd-inhibit
5563 endif
5564
5565 systemd_inhibit_SOURCES = \
5566 src/login/inhibit.c
5567
5568 systemd_inhibit_LDADD = \
5569 libshared.la
5570
5571 rootbin_PROGRAMS += \
5572 systemd-inhibit
5573
5574 test_login_SOURCES = \
5575 src/libsystemd/sd-login/test-login.c
5576
5577 test_login_LDADD = \
5578 libshared.la
5579
5580 test_login_shared_SOURCES = \
5581 src/login/test-login-shared.c
5582
5583 test_login_shared_LDADD = \
5584 libshared.la
5585
5586 test_inhibit_SOURCES = \
5587 src/login/test-inhibit.c
5588
5589 test_inhibit_LDADD = \
5590 libshared.la
5591
5592 test_login_tables_SOURCES = \
5593 src/login/test-login-tables.c
5594
5595 test_login_tables_LDADD = \
5596 liblogind-core.la
5597
5598 manual_tests += \
5599 test-login \
5600 test-inhibit
5601
5602 tests += \
5603 test-login-tables \
5604 test-login-shared
5605
5606 if HAVE_PAM
5607 pam_systemd_la_SOURCES = \
5608 src/login/pam_systemd.sym \
5609 src/login/pam_systemd.c
5610
5611 pam_systemd_la_CFLAGS = \
5612 $(AM_CFLAGS) \
5613 $(PAM_CFLAGS)
5614
5615 pam_systemd_la_LDFLAGS = \
5616 $(AM_LDFLAGS) \
5617 -module \
5618 -export-dynamic \
5619 -avoid-version \
5620 -shared \
5621 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5622
5623 pam_systemd_la_LIBADD = \
5624 libshared.la \
5625 $(PAM_LIBS)
5626
5627 pamlib_LTLIBRARIES = \
5628 pam_systemd.la
5629
5630 dist_pamconf_DATA = \
5631 src/login/systemd-user
5632
5633 EXTRA_DIST += \
5634 src/login/systemd-user.m4
5635 endif
5636
5637 nodist_systemunit_DATA += \
5638 units/systemd-logind.service
5639
5640 dist_systemunit_DATA += \
5641 units/user.slice
5642
5643 dist_systemunit_DATA_busnames += \
5644 units/org.freedesktop.login1.busname
5645
5646 dist_dbussystemservice_DATA += \
5647 src/login/org.freedesktop.login1.service
5648
5649 dist_dbuspolicy_DATA += \
5650 src/login/org.freedesktop.login1.conf
5651
5652 dist_pkgsysconf_DATA += \
5653 src/login/logind.conf
5654
5655 polkitpolicy_files += \
5656 src/login/org.freedesktop.login1.policy
5657
5658 INSTALL_DIRS += \
5659 $(systemdstatedir)
5660
5661 MULTI_USER_TARGET_WANTS += \
5662 systemd-logind.service
5663
5664 SYSTEM_UNIT_ALIASES += \
5665 systemd-logind.service dbus-org.freedesktop.login1.service
5666
5667 BUSNAMES_TARGET_WANTS += \
5668 org.freedesktop.login1.busname
5669
5670 dist_udevrules_DATA += \
5671 src/login/70-uaccess.rules \
5672 src/login/70-power-switch.rules
5673
5674 nodist_udevrules_DATA += \
5675 src/login/71-seat.rules \
5676 src/login/73-seat-late.rules
5677
5678 endif
5679
5680 polkitpolicy_in_files += \
5681 src/login/org.freedesktop.login1.policy.in
5682
5683 gperf_gperf_sources += \
5684 src/login/logind-gperf.gperf
5685
5686 EXTRA_DIST += \
5687 src/login/71-seat.rules.in \
5688 src/login/73-seat-late.rules.in \
5689 units/systemd-logind.service.in
5690
5691 # ------------------------------------------------------------------------------
5692 if HAVE_PAM
5693
5694 systemd_user_sessions_SOURCES = \
5695 src/user-sessions/user-sessions.c
5696
5697 systemd_user_sessions_LDADD = \
5698 libshared.la
5699
5700 rootlibexec_PROGRAMS += \
5701 systemd-user-sessions
5702
5703 nodist_systemunit_DATA += \
5704 units/systemd-user-sessions.service
5705
5706 MULTI_USER_TARGET_WANTS += \
5707 systemd-user-sessions.service
5708
5709 endif
5710
5711 EXTRA_DIST += \
5712 units/systemd-user-sessions.service.in
5713
5714 # ------------------------------------------------------------------------------
5715 EXTRA_DIST += \
5716 test/Makefile \
5717 test/README.testsuite \
5718 test/TEST-01-BASIC \
5719 test/TEST-01-BASIC/Makefile \
5720 test/TEST-01-BASIC/test.sh \
5721 test/TEST-02-CRYPTSETUP \
5722 test/TEST-02-CRYPTSETUP/Makefile \
5723 test/TEST-02-CRYPTSETUP/test.sh \
5724 test/TEST-03-JOBS \
5725 test/TEST-03-JOBS/Makefile \
5726 test/TEST-03-JOBS/test-jobs.sh \
5727 test/TEST-03-JOBS/test.sh \
5728 test/TEST-04-JOURNAL/Makefile \
5729 test/TEST-04-JOURNAL/test-journal.sh \
5730 test/TEST-04-JOURNAL/test.sh \
5731 test/test-functions
5732
5733 EXTRA_DIST += \
5734 test/loopy2.service \
5735 test/loopy3.service \
5736 test/loopy4.service \
5737 test/loopy.service \
5738 test/loopy.service.d \
5739 test/loopy.service.d/compat.conf
5740
5741 # ------------------------------------------------------------------------------
5742 if ENABLE_COMPAT_LIBS
5743 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
5744 $(AM_V_at)$(MKDIR_P) $(dir $@)
5745 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
5746
5747 BUILT_SOURCES += \
5748 libsystemd-journal.c \
5749 libsystemd-login.c \
5750 libsystemd-id128.c \
5751 libsystemd-daemon.c
5752
5753 nodist_libsystemd_journal_la_SOURCES = \
5754 libsystemd-journal.c
5755
5756 libsystemd_journal_la_SOURCES = \
5757 src/compat-libs/libsystemd-journal.sym
5758
5759 libsystemd_journal_la_CPPFLAGS = \
5760 $(AM_CPPFLAGS) \
5761 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5762
5763 libsystemd_journal_la_LDFLAGS = \
5764 $(AM_LDFLAGS) \
5765 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
5766 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
5767
5768 libsystemd_journal_la_LIBADD = \
5769 libsystemd-journal-internal.la \
5770 libsystemd-internal.la
5771
5772 nodist_libsystemd_login_la_SOURCES = \
5773 libsystemd-login.c
5774
5775 libsystemd_login_la_SOURCES = \
5776 src/compat-libs/libsystemd-login.sym
5777
5778 libsystemd_login_la_CPPFLAGS = \
5779 $(AM_CPPFLAGS) \
5780 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5781
5782 libsystemd_login_la_LDFLAGS = \
5783 $(AM_LDFLAGS) \
5784 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
5785 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
5786
5787 libsystemd_login_la_LIBADD = \
5788 libsystemd-internal.la
5789
5790 nodist_libsystemd_id128_la_SOURCES = \
5791 libsystemd-id128.c
5792
5793 libsystemd_id128_la_SOURCES = \
5794 src/compat-libs/libsystemd-id128.sym
5795
5796 libsystemd_id128_la_CPPFLAGS = \
5797 $(AM_CPPFLAGS) \
5798 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5799
5800 libsystemd_id128_la_LDFLAGS = \
5801 $(AM_LDFLAGS) \
5802 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
5803 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
5804
5805 libsystemd_id128_la_LIBADD = \
5806 libsystemd-internal.la
5807
5808 nodist_libsystemd_daemon_la_SOURCES = \
5809 libsystemd-daemon.c
5810
5811 libsystemd_daemon_la_SOURCES = \
5812 src/compat-libs/libsystemd-daemon.sym
5813
5814 libsystemd_daemon_la_CPPFLAGS = \
5815 $(AM_CPPFLAGS) \
5816 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5817
5818 libsystemd_daemon_la_LDFLAGS = \
5819 $(AM_LDFLAGS) \
5820 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
5821 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
5822
5823 libsystemd_daemon_la_LIBADD = \
5824 libsystemd-internal.la
5825
5826 lib_LTLIBRARIES += \
5827 libsystemd-journal.la \
5828 libsystemd-login.la \
5829 libsystemd-id128.la \
5830 libsystemd-daemon.la
5831
5832 pkgconfiglib_DATA += \
5833 src/compat-libs/libsystemd-journal.pc \
5834 src/compat-libs/libsystemd-login.pc \
5835 src/compat-libs/libsystemd-id128.pc \
5836 src/compat-libs/libsystemd-daemon.pc
5837
5838 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
5839 compat-lib-install-hook:
5840 libname=libsystemd-login.so && $(move-to-rootlibdir)
5841 libname=libsystemd-journal.so && $(move-to-rootlibdir)
5842 libname=libsystemd-id128.so && $(move-to-rootlibdir)
5843 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
5844
5845 compat-lib-uninstall-hook:
5846 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
5847 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
5848 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
5849 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
5850
5851 INSTALL_EXEC_HOOKS += compat-lib-install-hook
5852 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
5853 endif
5854
5855 EXTRA_DIST += \
5856 src/compat-libs/linkwarning.h \
5857 src/compat-libs/libsystemd-journal.pc.in \
5858 src/compat-libs/libsystemd-login.pc.in \
5859 src/compat-libs/libsystemd-id128.pc.in \
5860 src/compat-libs/libsystemd-daemon.pc.in
5861
5862 # ------------------------------------------------------------------------------
5863 substitutions = \
5864 '|rootlibexecdir=$(rootlibexecdir)|' \
5865 '|rootbindir=$(rootbindir)|' \
5866 '|bindir=$(bindir)|' \
5867 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5868 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5869 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5870 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5871 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
5872 '|pkgdatadir=$(pkgdatadir)|' \
5873 '|systemunitdir=$(systemunitdir)|' \
5874 '|userunitdir=$(userunitdir)|' \
5875 '|systempresetdir=$(systempresetdir)|' \
5876 '|userpresetdir=$(userpresetdir)|' \
5877 '|udevhwdbdir=$(udevhwdbdir)|' \
5878 '|udevrulesdir=$(udevrulesdir)|' \
5879 '|catalogdir=$(catalogdir)|' \
5880 '|tmpfilesdir=$(tmpfilesdir)|' \
5881 '|sysusersdir=$(sysusersdir)|' \
5882 '|sysctldir=$(sysctldir)|' \
5883 '|systemgeneratordir=$(systemgeneratordir)|' \
5884 '|usergeneratordir=$(usergeneratordir)|' \
5885 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
5886 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
5887 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
5888 '|PACKAGE_URL=$(PACKAGE_URL)|' \
5889 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
5890 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
5891 '|prefix=$(prefix)|' \
5892 '|exec_prefix=$(exec_prefix)|' \
5893 '|libdir=$(libdir)|' \
5894 '|includedir=$(includedir)|' \
5895 '|VERSION=$(VERSION)|' \
5896 '|rootprefix=$(rootprefix)|' \
5897 '|udevlibexecdir=$(udevlibexecdir)|' \
5898 '|SUSHELL=$(SUSHELL)|' \
5899 '|SULOGIN=$(SULOGIN)|' \
5900 '|DEBUGTTY=$(DEBUGTTY)|' \
5901 '|KILL=$(KILL)|' \
5902 '|KMOD=$(KMOD)|' \
5903 '|MOUNT_PATH=$(MOUNT_PATH)|' \
5904 '|UMOUNT_PATH=$(UMOUNT_PATH)|' \
5905 '|MKDIR_P=$(MKDIR_P)|' \
5906 '|QUOTAON=$(QUOTAON)|' \
5907 '|QUOTACHECK=$(QUOTACHECK)|' \
5908 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
5909 '|VARLOGDIR=$(varlogdir)|' \
5910 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
5911 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
5912 '|PYTHON=$(PYTHON)|' \
5913 '|NTP_SERVERS=$(NTP_SERVERS)|' \
5914 '|DNS_SERVERS=$(DNS_SERVERS)|' \
5915 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
5916 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
5917 '|TTY_GID=$(TTY_GID)|' \
5918 '|systemsleepdir=$(systemsleepdir)|' \
5919 '|systemshutdowndir=$(systemshutdowndir)|' \
5920 '|binfmtdir=$(binfmtdir)|' \
5921 '|modulesloaddir=$(modulesloaddir)|'
5922
5923 SED_PROCESS = \
5924 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
5925 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
5926 < $< > $@
5927
5928 units/%: units/%.in
5929 $(SED_PROCESS)
5930
5931 man/%: man/%.in
5932 $(SED_PROCESS)
5933
5934 sysctl.d/%: sysctl.d/%.in
5935 $(SED_PROCESS)
5936
5937 %.pc: %.pc.in
5938 $(SED_PROCESS)
5939
5940 %.conf: %.conf.in
5941 $(SED_PROCESS)
5942
5943 src/core/%.systemd: src/core/%.systemd.in
5944 $(SED_PROCESS)
5945
5946 src/%.policy.in: src/%.policy.in.in
5947 $(SED_PROCESS)
5948
5949 shell-completion/%: shell-completion/%.in
5950 $(SED_PROCESS)
5951
5952 %.rules: %.rules.in
5953 $(SED_PROCESS)
5954
5955 %.conf: %.conf.in
5956 $(SED_PROCESS)
5957
5958 %.sh: %.sh.in
5959 $(SED_PROCESS)
5960 $(AM_V_GEN)chmod +x $@
5961
5962 src/%.c: src/%.gperf
5963 $(AM_V_at)$(MKDIR_P) $(dir $@)
5964 $(AM_V_GPERF)$(GPERF) < $< > $@
5965
5966 src/%: src/%.m4
5967 $(AM_V_at)$(MKDIR_P) $(dir $@)
5968 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5969
5970 sysusers.d/%: sysusers.d/%.m4
5971 $(AM_V_at)$(MKDIR_P) $(dir $@)
5972 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5973
5974 tmpfiles.d/%: tmpfiles.d/%.m4
5975 $(AM_V_at)$(MKDIR_P) $(dir $@)
5976 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5977
5978
5979 units/%: units/%.m4
5980 $(AM_V_at)$(MKDIR_P) $(dir $@)
5981 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
5982
5983 units/user/%: units/user/%.m4
5984 $(AM_V_at)$(MKDIR_P) $(dir $@)
5985 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
5986
5987 if ENABLE_POLKIT
5988 nodist_polkitpolicy_DATA = \
5989 $(polkitpolicy_files) \
5990 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
5991 endif
5992
5993 EXTRA_DIST += \
5994 $(polkitpolicy_in_files) \
5995 $(polkitpolicy_in_in_files)
5996
5997 # ------------------------------------------------------------------------------
5998 if ENABLE_MANPAGES
5999 man/custom-entities.ent: configure.ac
6000 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
6001 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
6002 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
6003 > $@ # '
6004
6005 CLEANFILES += \
6006 man/custom-entities.ent
6007
6008 XSLTPROC_FLAGS = \
6009 --nonet \
6010 --xinclude \
6011 --stringparam man.output.quietly 1 \
6012 --stringparam funcsynopsis.style ansi \
6013 --stringparam man.authors.section.enabled 0 \
6014 --stringparam man.copyright.section.enabled 0 \
6015 --stringparam systemd.version $(VERSION) \
6016 --path '$(builddir)/man:$(srcdir)/man'
6017
6018 XSLTPROC_PROCESS_MAN = \
6019 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
6020
6021 XSLTPROC_PROCESS_HTML = \
6022 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
6023
6024 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
6025 $(XSLTPROC_PROCESS_MAN)
6026
6027 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
6028 $(XSLTPROC_PROCESS_MAN)
6029
6030 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
6031 $(XSLTPROC_PROCESS_MAN)
6032
6033 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
6034 $(XSLTPROC_PROCESS_MAN)
6035
6036 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
6037 $(XSLTPROC_PROCESS_MAN)
6038
6039 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
6040 $(XSLTPROC_PROCESS_HTML)
6041
6042 define html-alias
6043 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
6044 endef
6045
6046 endif
6047
6048 EXTRA_DIST += \
6049 man/custom-html.xsl \
6050 man/custom-man.xsl
6051
6052 # ------------------------------------------------------------------------------
6053 if HAVE_SYSV_COMPAT
6054 sysvinit_DATA = \
6055 docs/sysvinit/README
6056
6057 varlog_DATA = \
6058 docs/var-log/README
6059
6060 docs/sysvinit/README: docs/sysvinit/README.in
6061 $(SED_PROCESS)
6062
6063 docs/var-log/README: docs/var-log/README.in
6064 $(SED_PROCESS)
6065
6066 CLEANFILES += \
6067 docs/sysvinit/README \
6068 docs/var-log/README
6069 endif
6070
6071 EXTRA_DIST += \
6072 docs/sysvinit/README.in \
6073 docs/var-log/README.in
6074
6075 SOCKETS_TARGET_WANTS += \
6076 systemd-initctl.socket
6077
6078 if HAVE_UTMP
6079 if HAVE_SYSV_COMPAT
6080 MULTI_USER_TARGET_WANTS += \
6081 systemd-update-utmp-runlevel.service
6082 GRAPHICAL_TARGET_WANTS += \
6083 systemd-update-utmp-runlevel.service
6084 RESCUE_TARGET_WANTS += \
6085 systemd-update-utmp-runlevel.service
6086 endif
6087
6088 SYSINIT_TARGET_WANTS += \
6089 systemd-update-utmp.service
6090 endif
6091
6092 SYSINIT_TARGET_WANTS += \
6093 systemd-update-done.service
6094
6095 LOCAL_FS_TARGET_WANTS += \
6096 systemd-remount-fs.service \
6097 tmp.mount \
6098 var-lib-machines.mount
6099
6100 MULTI_USER_TARGET_WANTS += \
6101 getty.target \
6102 systemd-ask-password-wall.path
6103
6104 SYSINIT_TARGET_WANTS += \
6105 dev-hugepages.mount \
6106 dev-mqueue.mount \
6107 sys-kernel-config.mount \
6108 sys-kernel-debug.mount \
6109 sys-fs-fuse-connections.mount \
6110 systemd-sysctl.service \
6111 systemd-ask-password-console.path
6112
6113 if HAVE_SYSV_COMPAT
6114 SYSTEM_UNIT_ALIASES += \
6115 poweroff.target runlevel0.target \
6116 rescue.target runlevel1.target \
6117 multi-user.target runlevel2.target \
6118 multi-user.target runlevel3.target \
6119 multi-user.target runlevel4.target \
6120 graphical.target runlevel5.target \
6121 reboot.target runlevel6.target
6122 endif
6123
6124 SYSTEM_UNIT_ALIASES += \
6125 graphical.target default.target \
6126 reboot.target ctrl-alt-del.target \
6127 getty@.service autovt@.service
6128
6129 USER_UNIT_ALIASES += \
6130 $(systemunitdir)/shutdown.target shutdown.target \
6131 $(systemunitdir)/sockets.target sockets.target \
6132 $(systemunitdir)/timers.target timers.target \
6133 $(systemunitdir)/paths.target paths.target \
6134 $(systemunitdir)/bluetooth.target bluetooth.target \
6135 $(systemunitdir)/printer.target printer.target \
6136 $(systemunitdir)/sound.target sound.target \
6137 $(systemunitdir)/smartcard.target smartcard.target
6138
6139 USER_UNIT_ALIASES += \
6140 $(systemunitdir)/busnames.target busnames.target
6141
6142 GENERAL_ALIASES += \
6143 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
6144 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
6145 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
6146 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
6147
6148 if HAVE_SYSV_COMPAT
6149 INSTALL_DIRS += \
6150 $(systemunitdir)/runlevel1.target.wants \
6151 $(systemunitdir)/runlevel2.target.wants \
6152 $(systemunitdir)/runlevel3.target.wants \
6153 $(systemunitdir)/runlevel4.target.wants \
6154 $(systemunitdir)/runlevel5.target.wants
6155 endif
6156
6157 INSTALL_DIRS += \
6158 $(prefix)/lib/modules-load.d \
6159 $(sysconfdir)/modules-load.d \
6160 $(prefix)/lib/systemd/network \
6161 $(sysconfdir)/systemd/network \
6162 $(prefix)/lib/sysctl.d \
6163 $(sysconfdir)/sysctl.d \
6164 $(prefix)/lib/kernel/install.d \
6165 $(sysconfdir)/kernel/install.d \
6166 $(systemshutdowndir) \
6167 $(systemsleepdir) \
6168 $(systemgeneratordir) \
6169 $(usergeneratordir) \
6170 \
6171 $(userunitdir) \
6172 $(pkgsysconfdir)/system \
6173 $(pkgsysconfdir)/system/multi-user.target.wants \
6174 $(pkgsysconfdir)/system/getty.target.wants \
6175 $(pkgsysconfdir)/user \
6176 $(dbussessionservicedir) \
6177 $(sysconfdir)/xdg/systemd
6178
6179 install-exec-hook: $(INSTALL_EXEC_HOOKS)
6180
6181 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
6182
6183 install-data-hook: $(INSTALL_DATA_HOOKS)
6184
6185 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
6186
6187 clean-local: $(CLEAN_LOCAL_HOOKS)
6188 rm -rf $(abs_srcdir)/install-tree
6189 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
6190 $(abs_srcdir)/hwdb/iab.txt
6191
6192 DISTCHECK_CONFIGURE_FLAGS = \
6193 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
6194 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6195 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
6196 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
6197 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
6198 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
6199 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
6200 --with-rootprefix=$$dc_install_base \
6201 --enable-compat-libs
6202
6203 if HAVE_SYSV_COMPAT
6204 DISTCHECK_CONFIGURE_FLAGS += \
6205 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
6206 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
6207 else
6208 DISTCHECK_CONFIGURE_FLAGS += \
6209 --with-sysvinit-path= \
6210 --with-sysvrcnd-path=
6211 endif
6212
6213 if ENABLE_SPLIT_USR
6214 DISTCHECK_CONFIGURE_FLAGS += \
6215 --enable-split-usr
6216 else
6217 DISTCHECK_CONFIGURE_FLAGS += \
6218 --disable-split-usr
6219 endif
6220
6221 #
6222 # Require python when making dist
6223 #
6224 .PHONY: dist-check-python dist-check-compat-libs dist-check-help
6225 dist-check-python:
6226 if !HAVE_PYTHON
6227 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
6228 @false
6229 endif
6230
6231 dist-check-compat-libs:
6232 if !ENABLE_COMPAT_LIBS
6233 @echo "*** compat-libs must be enabled in order to make dist"
6234 @false
6235 endif
6236
6237 dist-check-help: $(rootbin_PROGRAMS) $(bin_PROGRAMS)
6238 for i in $(abspath $^); do \
6239 if $$i --help | grep -v 'default:' | grep -E -q '.{80}.' ; then \
6240 echo "$(basename $$i) --help output is too wide:"; \
6241 $$i --help | awk 'length > 80' | grep -E --color=yes '.{80}'; \
6242 exit 1; \
6243 fi; done
6244
6245 dist: dist-check-python dist-check-compat-libs
6246
6247 .PHONY: hwdb-update
6248 hwdb-update:
6249 ( cd $(top_srcdir)/hwdb && \
6250 wget -O usb.ids 'http://www.linux-usb.org/usb.ids' && \
6251 wget -O pci.ids 'http://pci-ids.ucw.cz/v2.2/pci.ids' && \
6252 wget -O ma-large.txt 'http://standards.ieee.org/develop/regauth/oui/oui.txt' && \
6253 wget -O ma-medium.txt 'http://standards.ieee.org/develop/regauth/oui28/mam.txt' && \
6254 wget -O ma-small.txt 'http://standards.ieee.org/develop/regauth/oui36/oui36.txt' && \
6255 ./ids-update.pl )
6256
6257 .PHONY: built-sources
6258 built-sources: $(BUILT_SOURCES)
6259
6260 .PHONY: git-tag
6261 git-tag:
6262 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6263
6264 .PHONY: git-tar
6265 git-tar:
6266 git archive --format=tar --prefix=systemd-$(VERSION)/ HEAD | gzip > systemd-$(VERSION).tar.gz
6267
6268 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6269
6270 .PHONY: doc-sync
6271 doc-sync: all
6272 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6273
6274 .PHONY: gardel
6275 gardel:
6276 scp man/*.html gardel:public/systemd-man/
6277
6278 .PHONY: lennart-fedora
6279 lennart-fedora:
6280 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
6281
6282 .PHONY: install-tree
6283 install-tree: all
6284 rm -rf $(abs_srcdir)/install-tree
6285 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6286 tree $(abs_srcdir)/install-tree
6287
6288 # Let's run all tests of the test suite, but under valgrind. Let's
6289 # exclude the one perl script we have in there
6290 .PHONY: valgrind-tests
6291 valgrind-tests: $(TESTS)
6292 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
6293 if file $$f | grep -q shell; then \
6294 echo -e "$${x}Skipping non-binary $$f"; else \
6295 echo -e "$${x}Running $$f"; \
6296 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6297 x="\n\n"; \
6298 done
6299
6300 exported-%: %
6301 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6302
6303 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6304 $(AM_V_GEN)sort -u $^ > $@
6305
6306 .PHONY: check-api-docs
6307 check-api-docs: exported man
6308 $(AM_V_GEN)for symbol in `cat exported` ; do \
6309 if test -f $(builddir)/man/$$symbol.html ; then \
6310 echo " Symbol $$symbol() is documented." ; \
6311 else \
6312 echo "‣ Symbol $$symbol() lacks documentation." ; \
6313 fi ; \
6314 done
6315
6316 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6317 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6318
6319 undefined defined: $(ALL_OBJECTS)
6320 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6321 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6322 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6323
6324 CLEANFILES += \
6325 defined \
6326 undefined
6327
6328 .PHONY: check-api-unused
6329 check-api-unused: defined undefined exported
6330 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6331
6332 .PHONY: check-includes
6333 check-includes: $(top_srcdir)/tools/check-includes.pl
6334 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6335 | xargs $(top_srcdir)/tools/check-includes.pl
6336
6337 EXTRA_DIST += \
6338 $(top_srcdir)/tools/check-includes.pl
6339
6340 # Stupid test that everything purported to be exported really is
6341 define generate-sym-test
6342 $(AM_V_at)$(MKDIR_P) $(dir $@)
6343 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6344 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6345 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6346 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6347 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6348 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6349 $(AM_V_at)printf 'return 0; }\n' >> $@
6350 endef
6351
6352 test-libsystemd-sym.c: \
6353 $(top_builddir)/src/libsystemd/libsystemd.sym \
6354 src/systemd/sd-journal.h \
6355 src/systemd/sd-daemon.h \
6356 src/systemd/sd-login.h \
6357 src/systemd/sd-bus.h \
6358 src/systemd/sd-utf8.h \
6359 src/systemd/sd-resolve.h \
6360 src/systemd/sd-path.h \
6361 src/systemd/sd-event.h
6362 $(generate-sym-test)
6363
6364 test-libudev-sym.c: \
6365 src/libudev/libudev.sym \
6366 src/udev/udev.h
6367 $(generate-sym-test)
6368
6369 nodist_test_libsystemd_sym_SOURCES = \
6370 test-libsystemd-sym.c
6371 test_libsystemd_sym_LDADD = \
6372 libsystemd.la
6373
6374 nodist_test_libudev_sym_SOURCES = \
6375 test-libudev-sym.c
6376 test_libudev_sym_CFLAGS = \
6377 $(AM_CFLAGS) \
6378 -Wno-deprecated-declarations
6379 test_libudev_sym_LDADD = \
6380 libudev.la
6381
6382 BUILT_SOURCES += \
6383 test-libsystemd-sym.c \
6384 test-libudev-sym.c
6385
6386 CLEANFILES += \
6387 test-libsystemd-sym.c \
6388 test-libudev-sym.c
6389
6390 tests += \
6391 test-libsystemd-sym \
6392 test-libudev-sym
6393
6394 .PHONY: cppcheck
6395 cppcheck:
6396 cppcheck --enable=all -q $(top_srcdir)
6397
6398 # Used to extract compile flags for YCM.
6399 print-%:
6400 @echo $($*)
6401
6402 git-contrib:
6403 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u
6404
6405 EXTRA_DIST += \
6406 tools/gdb-sd_dump_hashmaps.py
6407
6408 list-keys:
6409 gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --list-keys
6410
6411 add-key:
6412 gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --import -