1 # -*- Mode: makefile; indent-tabs-mode: t -*-
3 # This file is part of systemd.
5 # Copyright 2010-2012 Lennart Poettering
6 # Copyright 2010-2012 Kay Sievers
7 # Copyright 2013 Zbigniew Jędrzejewski-Szmek
8 # Copyright 2013 David Strauss
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.
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.
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/>.
23 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
24 AM_MAKEFLAGS = --no-print-directory
25 AUTOMAKE_OPTIONS = color-tests parallel-tests
27 GCC_COLORS ?= 'ooh, shiny!'
32 # remove targets if the command fails
35 # keep intermediate files
38 # Keep the test-suite.log
39 .PRECIOUS: $(TEST_SUITE_LOG) Makefile
53 # The following four libraries only exist for compatibility reasons,
54 # their version info should not be bumped anymore
55 LIBSYSTEMD_LOGIN_CURRENT=9
56 LIBSYSTEMD_LOGIN_REVISION=3
57 LIBSYSTEMD_LOGIN_AGE=9
59 LIBSYSTEMD_DAEMON_CURRENT=0
60 LIBSYSTEMD_DAEMON_REVISION=12
61 LIBSYSTEMD_DAEMON_AGE=0
63 LIBSYSTEMD_ID128_CURRENT=0
64 LIBSYSTEMD_ID128_REVISION=28
65 LIBSYSTEMD_ID128_AGE=0
67 LIBSYSTEMD_JOURNAL_CURRENT=11
68 LIBSYSTEMD_JOURNAL_REVISION=5
69 LIBSYSTEMD_JOURNAL_AGE=11
71 # Dirs of external packages
72 dbuspolicydir=@dbuspolicydir@
73 dbussessionservicedir=@dbussessionservicedir@
74 dbussystemservicedir=@dbussystemservicedir@
76 pamconfdir=@pamconfdir@
77 pkgconfiglibdir=$(libdir)/pkgconfig
78 polkitpolicydir=$(datadir)/polkit-1/actions
79 bashcompletiondir=@bashcompletiondir@
80 zshcompletiondir=@zshcompletiondir@
81 rpmmacrosdir=$(prefix)/lib/rpm/macros.d
82 sysvinitdir=$(SYSTEM_SYSVINIT_PATH)
83 sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
84 varlogdir=$(localstatedir)/log
85 systemdstatedir=$(localstatedir)/lib/systemd
86 catalogstatedir=$(systemdstatedir)/catalog
87 xinitrcdir=$(sysconfdir)/X11/xinit/xinitrc.d
89 # Our own, non-special dirs
90 pkgsysconfdir=$(sysconfdir)/systemd
91 userunitdir=$(prefix)/lib/systemd/user
92 userpresetdir=$(prefix)/lib/systemd/user-preset
93 tmpfilesdir=$(prefix)/lib/tmpfiles.d
94 sysusersdir=$(prefix)/lib/sysusers.d
95 sysctldir=$(prefix)/lib/sysctl.d
96 binfmtdir=$(prefix)/lib/binfmt.d
97 modulesloaddir=$(prefix)/lib/modules-load.d
98 networkdir=$(rootprefix)/lib/systemd/network
99 pkgincludedir=$(includedir)/systemd
100 systemgeneratordir=$(rootlibexecdir)/system-generators
101 usergeneratordir=$(prefix)/lib/systemd/user-generators
102 systemshutdowndir=$(rootlibexecdir)/system-shutdown
103 systemsleepdir=$(rootlibexecdir)/system-sleep
104 systemunitdir=$(rootprefix)/lib/systemd/system
105 systempresetdir=$(rootprefix)/lib/systemd/system-preset
106 udevlibexecdir=$(rootprefix)/lib/udev
107 udevhomedir=$(udevlibexecdir)
108 udevrulesdir=$(udevlibexecdir)/rules.d
109 udevhwdbdir=$(udevlibexecdir)/hwdb.d
110 catalogdir=$(prefix)/lib/systemd/catalog
111 kernelinstalldir = $(prefix)/lib/kernel/install.d
112 factory_etcdir = $(prefix)/share/factory/etc
113 factory_pamdir = $(prefix)/share/factory/etc/pam.d
115 # And these are the special ones for /
116 rootprefix=@rootprefix@
117 rootbindir=$(rootprefix)/bin
118 rootlibexecdir=$(rootprefix)/lib/systemd
120 CLEANFILES = $(BUILT_SOURCES)
125 UNINSTALL_EXEC_HOOKS =
127 UNINSTALL_DATA_HOOKS =
128 DISTCLEAN_LOCAL_HOOKS =
136 polkitpolicy_in_in_files =
137 polkitpolicy_in_files =
139 dist_udevrules_DATA =
140 nodist_udevrules_DATA =
141 dist_pkgsysconf_DATA =
142 nodist_pkgsysconf_DATA =
144 dist_dbuspolicy_DATA =
145 dist_dbussystemservice_DATA =
146 dist_systemunit_DATA_busnames =
151 TEST_EXTENSIONS = .py
152 PY_LOG_COMPILER = $(PYTHON)
154 noinst_PROGRAMS = $(manual_tests) $(tests)
160 udevlibexec_PROGRAMS =
162 .PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \
163 $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \
164 $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS)
167 -include $(top_builddir)/config.h \
168 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
169 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
170 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
171 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
172 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
173 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
174 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
175 -DCERTIFICATE_ROOT=\"$(CERTIFICATEROOT)\" \
176 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
177 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
178 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
179 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
180 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
181 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
182 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
183 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
184 -DROOTPREFIX=\"$(rootprefix)\" \
185 -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \
186 -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
187 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
188 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
189 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
190 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
191 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
192 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
193 -DX_SERVER=\"$(bindir)/X\" \
194 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
195 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
196 -DQUOTACHECK=\"$(QUOTACHECK)\" \
197 -DKEXEC=\"$(KEXEC)\" \
198 -DLIBDIR=\"$(libdir)\" \
199 -DROOTLIBDIR=\"$(rootlibdir)\" \
200 -DTEST_DIR=\"$(abs_top_srcdir)/test\" \
201 -I $(top_srcdir)/src \
202 -I $(top_builddir)/src/shared \
203 -I $(top_srcdir)/src/shared \
204 -I $(top_srcdir)/src/network \
205 -I $(top_srcdir)/src/login \
206 -I $(top_srcdir)/src/journal \
207 -I $(top_srcdir)/src/timedate \
208 -I $(top_srcdir)/src/timesync \
209 -I $(top_srcdir)/src/resolve \
210 -I $(top_builddir)/src/resolve \
211 -I $(top_srcdir)/src/systemd \
212 -I $(top_builddir)/src/core \
213 -I $(top_srcdir)/src/core \
214 -I $(top_srcdir)/src/libudev \
215 -I $(top_srcdir)/src/udev \
216 -I $(top_srcdir)/src/udev/net \
217 -I $(top_builddir)/src/udev \
218 -I $(top_srcdir)/src/libsystemd/sd-bus \
219 -I $(top_srcdir)/src/libsystemd/sd-event \
220 -I $(top_srcdir)/src/libsystemd/sd-rtnl \
221 -I $(top_srcdir)/src/libsystemd/sd-network \
222 -I $(top_srcdir)/src/libsystemd/sd-hwdb \
223 -I $(top_srcdir)/src/libsystemd-network \
224 -I $(top_srcdir)/src/libsystemd-terminal \
227 AM_CFLAGS = $(OUR_CFLAGS)
228 AM_LDFLAGS = $(OUR_LDFLAGS)
230 # ------------------------------------------------------------------------------
231 define move-to-rootlibdir
232 if test "$(libdir)" != "$(rootlibdir)"; then \
233 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
234 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
235 rm -f $(DESTDIR)$(libdir)/$$libname && \
236 $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
237 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
243 RUNLEVEL1_TARGET_WANTS =
244 RUNLEVEL2_TARGET_WANTS =
245 RUNLEVEL3_TARGET_WANTS =
246 RUNLEVEL4_TARGET_WANTS =
247 RUNLEVEL5_TARGET_WANTS =
248 SHUTDOWN_TARGET_WANTS =
249 LOCAL_FS_TARGET_WANTS =
250 MULTI_USER_TARGET_WANTS =
251 SYSINIT_TARGET_WANTS =
252 SOCKETS_TARGET_WANTS =
253 BUSNAMES_TARGET_WANTS =
254 TIMERS_TARGET_WANTS =
255 USER_SOCKETS_TARGET_WANTS =
256 USER_DEFAULT_TARGET_WANTS =
257 USER_BUSNAMES_TARGET_WANTS =
259 SYSTEM_UNIT_ALIASES =
263 install-target-wants-hook:
264 what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && dir=$(systemunitdir) && $(add-wants)
265 what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && dir=$(systemunitdir) && $(add-wants)
266 what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && dir=$(systemunitdir) && $(add-wants)
267 what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && dir=$(systemunitdir) && $(add-wants)
268 what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && dir=$(systemunitdir) && $(add-wants)
269 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
270 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
271 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
272 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
273 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
274 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
275 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
276 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
277 what="$(USER_DEFAULT_TARGET_WANTS)" && wants=default.target && dir=$(userunitdir) && $(add-wants)
279 install-busnames-target-wants-hook:
280 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
281 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
284 [ -z "$$what" ] || ( \
285 dir=$(DESTDIR)$$dir/$$wants.wants && \
286 $(MKDIR_P) -m 0755 $$dir && \
289 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
292 install-directories-hook:
293 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
295 install-aliases-hook:
296 set -- $(SYSTEM_UNIT_ALIASES) && \
297 dir=$(systemunitdir) && $(install-aliases)
298 set -- $(USER_UNIT_ALIASES) && \
299 dir=$(userunitdir) && $(install-relative-aliases)
300 set -- $(GENERAL_ALIASES) && \
301 dir= && $(install-relative-aliases)
303 define install-aliases
304 while [ -n "$$1" ]; do \
305 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
306 rm -f $(DESTDIR)$$dir/$$2 && \
307 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
308 shift 2 || exit $$?; \
312 define install-relative-aliases
313 while [ -n "$$1" ]; do \
314 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
315 rm -f $(DESTDIR)$$dir/$$2 && \
316 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
317 shift 2 || exit $$?; \
321 install-touch-usr-hook:
322 touch -c $(DESTDIR)/$(prefix)
324 INSTALL_EXEC_HOOKS += \
325 install-target-wants-hook \
326 install-directories-hook \
327 install-aliases-hook \
328 install-touch-usr-hook
331 INSTALL_EXEC_HOOKS += \
332 install-busnames-target-wants-hook
335 # ------------------------------------------------------------------------------
336 AM_V_M4 = $(AM_V_M4_$(V))
337 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
338 AM_V_M4_0 = @echo " M4 " $@;
340 AM_V_XSLT = $(AM_V_XSLT_$(V))
341 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
342 AM_V_XSLT_0 = @echo " XSLT " $@;
344 AM_V_GPERF = $(AM_V_GPERF_$(V))
345 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
346 AM_V_GPERF_0 = @echo " GPERF " $@;
348 AM_V_LN = $(AM_V_LN_$(V))
349 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
350 AM_V_LN_0 = @echo " LN " $@;
352 AM_V_RM = $(AM_V_RM_$(V))
353 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
354 AM_V_RM_0 = @echo " RM " $@;
356 # ------------------------------------------------------------------------------
360 systemd-ask-password \
361 systemd-tty-ask-password-agent \
362 systemd-machine-id-setup \
369 systemd-detect-virt \
373 systemd-stdio-bridge \
377 src/kernel-install/kernel-install
379 dist_kernelinstall_SCRIPTS = \
380 src/kernel-install/50-depmod.install \
381 src/kernel-install/90-loaderentry.install
383 rootlibexec_PROGRAMS = \
385 systemd-cgroups-agent \
390 systemd-reply-password \
392 systemd-machine-id-commit \
397 systemd-socket-proxyd \
401 rootlibexec_PROGRAMS += \
405 systemgenerator_PROGRAMS = \
406 systemd-getty-generator \
407 systemd-fstab-generator \
408 systemd-system-update-generator \
409 systemd-debug-generator
411 dist_bashcompletion_DATA = \
412 shell-completion/bash/busctl \
413 shell-completion/bash/journalctl \
414 shell-completion/bash/systemd-analyze \
415 shell-completion/bash/systemd-cat \
416 shell-completion/bash/systemd-cgls \
417 shell-completion/bash/systemd-cgtop \
418 shell-completion/bash/systemd-delta \
419 shell-completion/bash/systemd-detect-virt \
420 shell-completion/bash/systemd-nspawn \
421 shell-completion/bash/systemd-run \
422 shell-completion/bash/udevadm \
423 shell-completion/bash/kernel-install
425 nodist_bashcompletion_DATA = \
426 shell-completion/bash/systemctl
428 dist_zshcompletion_DATA = \
429 shell-completion/zsh/_journalctl \
430 shell-completion/zsh/_udevadm \
431 shell-completion/zsh/_kernel-install \
432 shell-completion/zsh/_systemd-nspawn \
433 shell-completion/zsh/_systemd-analyze \
434 shell-completion/zsh/_systemd-run \
435 shell-completion/zsh/_sd_hosts_or_user_at_host \
436 shell-completion/zsh/_sd_outputmodes \
437 shell-completion/zsh/_sd_unit_files \
438 shell-completion/zsh/_systemd-delta \
439 shell-completion/zsh/_systemd
441 nodist_zshcompletion_DATA = \
442 shell-completion/zsh/_systemctl
445 shell-completion/bash/systemctl.in \
446 shell-completion/zsh/_systemctl.in
449 $(nodist_bashcompletion_DATA) \
450 $(nodist_zshcompletion_DATA)
453 sysctl.d/50-default.conf
455 dist_systemunit_DATA = \
456 units/graphical.target \
457 units/multi-user.target \
458 units/emergency.target \
459 units/sysinit.target \
464 units/local-fs.target \
465 units/local-fs-pre.target \
466 units/initrd.target \
467 units/initrd-fs.target \
468 units/initrd-root-fs.target \
469 units/remote-fs.target \
470 units/remote-fs-pre.target \
471 units/network.target \
472 units/network-pre.target \
473 units/network-online.target \
474 units/nss-lookup.target \
475 units/nss-user-lookup.target \
476 units/poweroff.target \
477 units/reboot.target \
478 units/rescue.target \
479 units/rpcbind.target \
480 units/time-sync.target \
481 units/shutdown.target \
483 units/umount.target \
484 units/sigpwr.target \
486 units/sockets.target \
487 units/timers.target \
489 units/suspend.target \
491 units/slices.target \
494 units/systemd-initctl.socket \
495 units/systemd-shutdownd.socket \
496 units/syslog.socket \
497 units/dev-hugepages.mount \
498 units/dev-mqueue.mount \
499 units/sys-kernel-config.mount \
500 units/sys-kernel-debug.mount \
501 units/sys-fs-fuse-connections.mount \
503 units/printer.target \
505 units/bluetooth.target \
506 units/smartcard.target \
507 units/systemd-ask-password-wall.path \
508 units/systemd-ask-password-console.path \
509 units/systemd-udevd-control.socket \
510 units/systemd-udevd-kernel.socket \
511 units/system-update.target \
512 units/initrd-switch-root.target \
513 units/machines.target
516 dist_systemunit_DATA += \
517 $(dist_systemunit_DATA_busnames)
520 dist_systemunit_DATA_busnames += \
521 units/busnames.target
523 nodist_systemunit_DATA = \
524 units/getty@.service \
525 units/serial-getty@.service \
526 units/console-shell.service \
527 units/console-getty.service \
528 units/container-getty@.service \
529 units/systemd-initctl.service \
530 units/systemd-shutdownd.service \
531 units/systemd-remount-fs.service \
532 units/systemd-ask-password-wall.service \
533 units/systemd-ask-password-console.service \
534 units/systemd-sysctl.service \
535 units/emergency.service \
536 units/rescue.service \
537 units/user@.service \
538 units/systemd-suspend.service \
539 units/systemd-halt.service \
540 units/systemd-poweroff.service \
541 units/systemd-reboot.service \
542 units/systemd-kexec.service \
543 units/systemd-fsck@.service \
544 units/systemd-fsck-root.service \
545 units/systemd-machine-id-commit.service \
546 units/systemd-udevd.service \
547 units/systemd-udev-trigger.service \
548 units/systemd-udev-settle.service \
549 units/systemd-hwdb-update.service \
550 units/debug-shell.service \
551 units/initrd-parse-etc.service \
552 units/initrd-cleanup.service \
553 units/initrd-udevadm-cleanup-db.service \
554 units/initrd-switch-root.service \
555 units/systemd-nspawn@.service \
556 units/systemd-update-done.service
559 nodist_systemunit_DATA += \
560 units/systemd-update-utmp.service \
561 units/systemd-update-utmp-runlevel.service
564 dist_userunit_DATA = \
565 units/user/basic.target \
566 units/user/default.target \
567 units/user/exit.target
569 nodist_userunit_DATA = \
570 units/user/systemd-exit.service
572 dist_systempreset_DATA = \
573 system-preset/90-systemd.preset
576 units/getty@.service.m4 \
577 units/serial-getty@.service.m4 \
578 units/console-shell.service.m4.in \
579 units/console-getty.service.m4.in \
580 units/container-getty@.service.m4.in \
581 units/rescue.service.in \
582 units/systemd-initctl.service.in \
583 units/systemd-shutdownd.service.in \
584 units/systemd-remount-fs.service.in \
585 units/systemd-update-utmp.service.in \
586 units/systemd-update-utmp-runlevel.service.in \
587 units/systemd-ask-password-wall.service.in \
588 units/systemd-ask-password-console.service.in \
589 units/systemd-sysctl.service.in \
590 units/emergency.service.in \
591 units/systemd-halt.service.in \
592 units/systemd-poweroff.service.in \
593 units/systemd-reboot.service.in \
594 units/systemd-kexec.service.in \
595 units/user/systemd-exit.service.in \
596 units/systemd-fsck@.service.in \
597 units/systemd-fsck-root.service.in \
598 units/systemd-machine-id-commit.service.in \
599 units/user@.service.m4.in \
600 units/debug-shell.service.in \
601 units/systemd-suspend.service.in \
602 units/quotaon.service.in \
603 units/initrd-parse-etc.service.in \
604 units/initrd-cleanup.service.in \
605 units/initrd-udevadm-cleanup-db.service.in \
606 units/initrd-switch-root.service.in \
607 units/systemd-nspawn@.service.in \
608 units/systemd-update-done.service.in
611 units/console-shell.service.m4 \
612 units/console-getty.service.m4 \
613 units/container-getty@.service.m4 \
614 units/user@.service.m4
617 nodist_systemunit_DATA += \
618 units/rc-local.service \
619 units/halt-local.service
621 systemgenerator_PROGRAMS += \
622 systemd-sysv-generator \
623 systemd-rc-local-generator
627 units/rc-local.service.in \
628 units/halt-local.service.in
630 # automake is broken and can't handle files with a dash in front
631 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
633 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
635 units-uninstall-hook:
636 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
638 INSTALL_DATA_HOOKS += units-install-hook
639 UNINSTALL_DATA_HOOKS += units-uninstall-hook
648 src/libsystemd/sd-bus/PORTING-DBUS1 \
649 src/libsystemd/sd-bus/DIFFERENCES \
650 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
652 @INTLTOOL_POLICY_RULE@
654 # ------------------------------------------------------------------------------
659 include Makefile-man.am
661 .PHONY: man update-man-list
662 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
665 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
667 ${XML_FILES:.xml=.html}
669 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
686 $(AM_V_at)$(MKDIR_P) $(dir $@)
687 $(AM_V_LN)$(LN_S) -f ../../man $@
696 man/index.html: man/systemd.index.html
697 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
705 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
706 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
707 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
709 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB)
710 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
711 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
712 @echo "Makefile-man.am has been regenerated"
714 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
715 $(AM_V_at)$(MKDIR_P) $(dir $@)
716 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
718 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py $(SOURCE_XML_FILES)
719 $(AM_V_at)$(MKDIR_P) $(dir $@)
720 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
723 man/systemd.index.xml \
725 man/systemd.directives.xml \
726 man/glib-event-glue.c
729 man/systemd.index.xml \
730 man/systemd.directives.xml
741 tools/make-man-index.py \
742 tools/make-directive-index.py \
745 # ------------------------------------------------------------------------------
746 noinst_LTLIBRARIES += \
749 libsystemd_shared_la_SOURCES = \
750 src/shared/capability.c \
751 src/shared/capability.h \
752 src/shared/linux/auto_dev-ioctl.h \
753 src/shared/ioprio.h \
754 src/shared/missing.h \
755 src/shared/initreq.h \
756 src/shared/securebits.h \
757 src/shared/special.h \
759 src/shared/unaligned.h \
762 src/shared/sparse-endian.h \
763 src/shared/refcnt.h \
764 src/shared/udev-util.h \
765 src/shared/device-nodes.c \
766 src/shared/device-nodes.h \
771 src/shared/architecture.c \
772 src/shared/architecture.h \
773 src/shared/efivars.c \
774 src/shared/efivars.h \
775 src/shared/fstab-util.c \
776 src/shared/fstab-util.h \
777 src/shared/path-util.c \
778 src/shared/path-util.h \
779 src/shared/time-util.c \
780 src/shared/time-util.h \
781 src/shared/locale-util.c \
782 src/shared/locale-util.h \
783 src/shared/mempool.c \
784 src/shared/mempool.h \
785 src/shared/hashmap.c \
786 src/shared/hashmap.h \
787 src/shared/siphash24.c \
788 src/shared/siphash24.h \
794 src/shared/sleep-config.c \
795 src/shared/sleep-config.h \
798 src/shared/env-util.c \
799 src/shared/env-util.h \
800 src/shared/strbuf.c \
801 src/shared/strbuf.h \
802 src/shared/strxcpyx.c \
803 src/shared/strxcpyx.h \
804 src/shared/conf-parser.c \
805 src/shared/conf-parser.h \
808 src/shared/ratelimit.h \
809 src/shared/ratelimit.c \
810 src/shared/exit-status.c \
811 src/shared/exit-status.h \
814 src/shared/gunicode.c \
815 src/shared/gunicode.h \
818 src/shared/socket-util.c \
819 src/shared/socket-util.h \
820 src/shared/in-addr-util.c \
821 src/shared/in-addr-util.h \
822 src/shared/ether-addr-util.h \
823 src/shared/conf-files.c \
824 src/shared/conf-files.h \
825 src/shared/cgroup-util.c \
826 src/shared/cgroup-util.h \
827 src/shared/cgroup-show.c \
828 src/shared/cgroup-show.h \
829 src/shared/unit-name.c \
830 src/shared/unit-name.h \
831 src/shared/utmp-wtmp.h \
832 src/shared/watchdog.c \
833 src/shared/watchdog.h \
834 src/shared/spawn-ask-password-agent.c \
835 src/shared/spawn-ask-password-agent.h \
836 src/shared/replace-var.c \
837 src/shared/replace-var.h \
838 src/shared/spawn-polkit-agent.c \
839 src/shared/spawn-polkit-agent.h \
840 src/shared/clock-util.c \
841 src/shared/clock-util.h \
842 src/shared/time-dst.c \
843 src/shared/time-dst.h \
844 src/shared/calendarspec.c \
845 src/shared/calendarspec.h \
846 src/shared/fileio.c \
847 src/shared/fileio.h \
848 src/shared/output-mode.h \
849 src/shared/MurmurHash2.c \
850 src/shared/MurmurHash2.h \
851 src/shared/acpi-fpdt.h \
852 src/shared/acpi-fpdt.c \
853 src/shared/boot-timestamps.h \
854 src/shared/boot-timestamps.c \
857 src/shared/smack-util.c \
858 src/shared/smack-util.h \
859 src/shared/apparmor-util.c \
860 src/shared/apparmor-util.h \
861 src/shared/ima-util.c \
862 src/shared/ima-util.h \
863 src/shared/ptyfwd.c \
864 src/shared/ptyfwd.h \
865 src/shared/errno-list.c \
866 src/shared/errno-list.h \
867 src/shared/af-list.c \
868 src/shared/af-list.h \
869 src/shared/arphrd-list.c \
870 src/shared/arphrd-list.h \
871 src/shared/cap-list.c \
872 src/shared/cap-list.h \
879 src/shared/bus-label.c \
880 src/shared/bus-label.h \
882 src/shared/clean-ipc.h \
883 src/shared/clean-ipc.c \
884 src/shared/login-shared.c \
885 src/shared/login-shared.h \
888 src/shared/barrier.c \
889 src/shared/barrier.h \
894 src/shared/base-filesystem.c \
895 src/shared/base-filesystem.h \
896 src/shared/memfd-util.c \
897 src/shared/memfd-util.h \
898 src/shared/uid-range.c \
899 src/shared/uid-range.h \
900 src/shared/nss-util.h \
903 src/shared/sigbus.c \
904 src/shared/sigbus.h \
908 libsystemd_shared_la_SOURCES += \
909 src/shared/utmp-wtmp.c
912 nodist_libsystemd_shared_la_SOURCES = \
913 src/shared/errno-from-name.h \
914 src/shared/errno-to-name.h \
915 src/shared/af-from-name.h \
916 src/shared/af-to-name.h \
917 src/shared/arphrd-from-name.h \
918 src/shared/arphrd-to-name.h \
919 src/shared/cap-from-name.h \
920 src/shared/cap-to-name.h
922 libsystemd_shared_la_CFLAGS = \
928 libsystemd_shared_la_LIBADD = \
932 # ------------------------------------------------------------------------------
933 noinst_LTLIBRARIES += \
936 libsystemd_units_la_SOURCES = \
937 src/shared/install.c \
938 src/shared/install.h \
939 src/shared/install-printf.c \
940 src/shared/install-printf.h \
941 src/shared/path-lookup.c \
942 src/shared/path-lookup.h \
943 src/shared/specifier.c \
944 src/shared/specifier.h
946 # ------------------------------------------------------------------------------
947 noinst_LTLIBRARIES += \
950 libsystemd_label_la_SOURCES = \
951 src/shared/socket-label.c \
954 src/shared/selinux-util.c \
955 src/shared/selinux-util.h \
956 src/shared/mkdir-label.c \
957 src/shared/ask-password-api.c \
958 src/shared/ask-password-api.h \
959 src/shared/switch-root.h \
960 src/shared/switch-root.c \
961 src/shared/fileio-label.c \
962 src/shared/fileio-label.h \
963 src/shared/dev-setup.c \
964 src/shared/dev-setup.h \
965 src/shared/dropin.c \
966 src/shared/dropin.h \
967 src/shared/condition.c \
968 src/shared/condition.h \
969 src/shared/generator.h \
970 src/shared/generator.c \
971 src/shared/btrfs-util.c \
972 src/shared/btrfs-util.h \
973 src/shared/btrfs-ctree.h \
974 src/shared/machine-image.c \
975 src/shared/machine-image.h \
979 libsystemd_label_la_CFLAGS = \
983 libsystemd_label_la_LIBADD = \
986 # -----------------------------------------------------------------------------
989 noinst_LTLIBRARIES += \
992 libsystemd_fw_la_SOURCES = \
993 src/shared/fw-util.h \
996 libsystemd_fw_la_CFLAGS = \
1000 libsystemd_fw_la_LIBADD = \
1004 # -----------------------------------------------------------------------------
1007 dist_systemunit_DATA += \
1008 units/ldconfig.service
1010 SYSINIT_TARGET_WANTS += \
1014 # ------------------------------------------------------------------------------
1017 noinst_LTLIBRARIES += \
1018 libsystemd-seccomp.la
1020 libsystemd_seccomp_la_SOURCES = \
1021 src/shared/seccomp-util.h \
1022 src/shared/seccomp-util.c
1024 libsystemd_seccomp_la_CFLAGS = \
1028 libsystemd_seccomp_la_LIBADD = \
1032 # ------------------------------------------------------------------------------
1033 noinst_LTLIBRARIES += \
1036 libsystemd_logs_la_SOURCES = \
1037 src/shared/logs-show.c \
1038 src/shared/logs-show.h
1040 # ------------------------------------------------------------------------------
1042 noinst_LTLIBRARIES += \
1045 libsystemd_acl_la_SOURCES = \
1046 src/shared/acl-util.c \
1047 src/shared/acl-util.h
1049 libsystemd_acl_la_CFLAGS = \
1053 libsystemd_acl_la_LIBADD = \
1057 # ------------------------------------------------------------------------------
1058 noinst_LTLIBRARIES += \
1061 libsystemd_core_la_SOURCES = \
1064 src/core/unit-printf.c \
1065 src/core/unit-printf.h \
1068 src/core/manager.c \
1069 src/core/manager.h \
1070 src/core/transaction.c \
1071 src/core/transaction.h \
1072 src/core/load-fragment.c \
1073 src/core/load-fragment.h \
1074 src/core/service.c \
1075 src/core/service.h \
1078 src/core/busname.c \
1079 src/core/busname.h \
1080 src/core/bus-endpoint.c \
1081 src/core/bus-endpoint.h \
1082 src/core/bus-policy.c \
1083 src/core/bus-policy.h \
1086 src/core/snapshot.c \
1087 src/core/snapshot.h \
1092 src/core/automount.c \
1093 src/core/automount.h \
1104 src/core/load-dropin.c \
1105 src/core/load-dropin.h \
1106 src/core/execute.c \
1107 src/core/execute.h \
1112 src/core/dbus-manager.c \
1113 src/core/dbus-manager.h \
1114 src/core/dbus-unit.c \
1115 src/core/dbus-unit.h \
1116 src/core/dbus-job.c \
1117 src/core/dbus-job.h \
1118 src/core/dbus-service.c \
1119 src/core/dbus-service.h \
1120 src/core/dbus-socket.c \
1121 src/core/dbus-socket.h \
1122 src/core/dbus-busname.c \
1123 src/core/dbus-busname.h \
1124 src/core/dbus-target.c \
1125 src/core/dbus-target.h \
1126 src/core/dbus-snapshot.c \
1127 src/core/dbus-snapshot.h \
1128 src/core/dbus-device.c \
1129 src/core/dbus-device.h \
1130 src/core/dbus-mount.c \
1131 src/core/dbus-mount.h \
1132 src/core/dbus-automount.c \
1133 src/core/dbus-automount.h \
1134 src/core/dbus-swap.c \
1135 src/core/dbus-swap.h \
1136 src/core/dbus-timer.c \
1137 src/core/dbus-timer.h \
1138 src/core/dbus-path.c \
1139 src/core/dbus-path.h \
1140 src/core/dbus-slice.c \
1141 src/core/dbus-slice.h \
1142 src/core/dbus-scope.c \
1143 src/core/dbus-scope.h \
1144 src/core/dbus-execute.c \
1145 src/core/dbus-execute.h \
1146 src/core/dbus-kill.c \
1147 src/core/dbus-kill.h \
1148 src/core/dbus-cgroup.c \
1149 src/core/dbus-cgroup.h \
1152 src/core/selinux-access.c \
1153 src/core/selinux-access.h \
1154 src/core/selinux-setup.c \
1155 src/core/selinux-setup.h \
1156 src/core/smack-setup.c \
1157 src/core/smack-setup.h \
1158 src/core/ima-setup.c \
1159 src/core/ima-setup.h \
1160 src/core/locale-setup.h \
1161 src/core/locale-setup.c \
1162 src/core/hostname-setup.c \
1163 src/core/hostname-setup.h \
1164 src/core/machine-id-setup.c \
1165 src/core/machine-id-setup.h \
1166 src/core/mount-setup.c \
1167 src/core/mount-setup.h \
1168 src/core/kmod-setup.c \
1169 src/core/kmod-setup.h \
1170 src/core/loopback-setup.h \
1171 src/core/loopback-setup.c \
1172 src/core/namespace.c \
1173 src/core/namespace.h \
1174 src/core/killall.h \
1175 src/core/killall.c \
1176 src/core/audit-fd.c \
1177 src/core/audit-fd.h \
1178 src/core/show-status.c \
1179 src/core/show-status.h \
1180 src/core/failure-action.c \
1181 src/core/failure-action.h
1183 nodist_libsystemd_core_la_SOURCES = \
1184 src/core/load-fragment-gperf.c \
1185 src/core/load-fragment-gperf-nulstr.c
1187 libsystemd_core_la_CFLAGS = \
1192 $(APPARMOR_CFLAGS) \
1197 libsystemd_core_la_LIBADD = \
1198 libsystemd-units.la \
1199 libsystemd-label.la \
1200 libudev-internal.la \
1201 libsystemd-shared.la \
1202 libsystemd-internal.la \
1211 libsystemd_core_la_LIBADD += \
1212 libsystemd-seccomp.la
1215 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1216 $(AM_V_at)$(MKDIR_P) $(dir $@)
1217 $(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 ";" }' < $< > $@
1220 src/core/load-fragment-gperf.gperf.m4
1223 src/core/load-fragment-gperf.gperf \
1224 src/core/load-fragment-gperf.c \
1225 src/core/load-fragment-gperf-nulstr.c \
1226 src/shared/errno-list.txt \
1227 src/shared/errno-from-name.gperf \
1228 src/shared/af-list.txt \
1229 src/shared/af-from-name.gperf \
1230 src/shared/arphrd-list.txt \
1231 src/shared/arphrd-from-name.gperf \
1232 src/shared/cap-list.txt \
1233 src/shared/cap-from-name.gperf \
1234 src/resolve/dns_type-list.txt \
1235 src/resolve/dns_type-from-name.gperf
1238 src/shared/errno-from-name.h \
1239 src/shared/errno-to-name.h \
1240 src/shared/af-from-name.h \
1241 src/shared/af-to-name.h \
1242 src/shared/arphrd-from-name.h \
1243 src/shared/arphrd-to-name.h \
1244 src/shared/cap-from-name.h \
1245 src/shared/cap-to-name.h \
1246 src/resolve/dns_type-from-name.h \
1247 src/resolve/dns_type-to-name.h
1249 %-from-name.gperf: %-list.txt
1250 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1252 %-from-name.h: %-from-name.gperf
1253 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1256 src/shared/errno-list.txt:
1257 $(AM_V_at)$(MKDIR_P) $(dir $@)
1258 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1260 src/shared/errno-to-name.h: src/shared/errno-list.txt
1261 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1264 src/shared/af-list.txt:
1265 $(AM_V_at)$(MKDIR_P) $(dir $@)
1266 $(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; }' >$@
1268 src/shared/af-to-name.h: src/shared/af-list.txt
1269 $(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 "};"}' <$< >$@
1272 src/shared/arphrd-list.txt:
1273 $(AM_V_at)$(MKDIR_P) $(dir $@)
1274 $(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_//' >$@
1276 src/shared/arphrd-to-name.h: src/shared/arphrd-list.txt
1277 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1279 src/shared/arphrd-from-name.gperf: src/shared/arphrd-list.txt
1280 $(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 }' <$< >$@
1283 src/shared/cap-list.txt:
1284 $(AM_V_at)$(MKDIR_P) $(dir $@)
1285 $(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 >$@
1287 src/shared/cap-to-name.h: src/shared/cap-list.txt
1288 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const capability_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, tolower($$1) } END{print "};"}' <$< >$@
1290 src/shared/cap-from-name.gperf: src/shared/cap-list.txt
1291 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct capability_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1293 src/shared/cap-from-name.h: src/shared/cap-from-name.gperf
1294 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_capability -H hash_capability_name -p -C <$< >$@
1297 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1298 $(AM_V_at)$(MKDIR_P) $(dir $@)
1299 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1301 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1302 $(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 "\ndefault: return NULL;\n\t}\n}\n" }' <$< >$@
1304 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1305 $(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 }' <$< >$@
1307 # ------------------------------------------------------------------------------
1316 libsystemd-core.la \
1319 dist_pkgsysconf_DATA += \
1320 src/core/system.conf \
1323 dist_dbuspolicy_DATA += \
1324 src/core/org.freedesktop.systemd1.conf
1326 dist_dbussystemservice_DATA += \
1327 src/core/org.freedesktop.systemd1.service
1329 polkitpolicy_in_in_files += \
1330 src/core/org.freedesktop.systemd1.policy.in.in
1332 pkgconfiglib_DATA += \
1335 nodist_rpmmacros_DATA = \
1336 src/core/macros.systemd
1339 src/core/systemd.pc.in \
1340 src/core/macros.systemd.in
1343 src/core/macros.systemd \
1344 src/core/org.freedesktop.systemd1.policy.in
1346 # ------------------------------------------------------------------------------
1396 test-strip-tab-ansi \
1432 test/daughter.service \
1437 test/grandchild.service \
1439 test/hello-after-sleep.target \
1440 test/hello.service \
1442 test/parent-deep.slice \
1445 test/sched_idle_bad.service \
1446 test/sched_idle_ok.service \
1447 test/sched_rr_bad.service \
1448 test/sched_rr_change.service \
1449 test/sched_rr_ok.service \
1450 test/shutdown.target \
1451 test/sleep.service \
1452 test/sockets.target \
1454 test/sysinit.target \
1455 test/testsuite.target \
1456 test/timers.target \
1457 test/unstoppable.service \
1458 test/path-changed.service \
1459 test/path-directorynotempty.service \
1460 test/path-existsglob.service \
1461 test/path-exists.service \
1462 test/path-makedirectory.service \
1463 test/path-modified.service \
1464 test/path-mycustomunit.service \
1465 test/path-service.service \
1466 test/path-changed.path \
1467 test/path-directorynotempty.path \
1468 test/path-existsglob.path \
1469 test/path-exists.path \
1470 test/path-makedirectory.path \
1471 test/path-modified.path \
1472 test/path-unit.path \
1473 test/exec-environment-empty.service \
1474 test/exec-environment-multiple.service \
1475 test/exec-environment.service \
1476 test/exec-group.service \
1477 test/exec-ignoresigpipe-no.service \
1478 test/exec-ignoresigpipe-yes.service \
1479 test/exec-personality-x86-64.service \
1480 test/exec-personality-x86.service \
1481 test/exec-privatedevices-no.service \
1482 test/exec-privatedevices-yes.service \
1483 test/exec-privatetmp-no.service \
1484 test/exec-privatetmp-yes.service \
1485 test/exec-systemcallerrornumber.service \
1486 test/exec-systemcallfilter-failing2.service \
1487 test/exec-systemcallfilter-failing.service \
1488 test/exec-systemcallfilter-not-failing2.service \
1489 test/exec-systemcallfilter-not-failing.service \
1490 test/exec-user.service \
1491 test/exec-workingdirectory.service \
1492 test/exec-umask-0177.service \
1493 test/exec-umask-default.service \
1494 test/bus-policy/hello.conf \
1495 test/bus-policy/methods.conf \
1496 test/bus-policy/ownerships.conf \
1497 test/bus-policy/signals.conf \
1498 test/bus-policy/check-own-rules.conf \
1499 test/bus-policy/many-rules.conf \
1500 test/bus-policy/test.conf
1504 src/test/test-helper.h
1506 test_device_nodes_SOURCES = \
1507 src/test/test-device-nodes.c
1509 test_device_nodes_LDADD = \
1510 libsystemd-shared.la
1512 test_engine_SOURCES = \
1513 src/test/test-engine.c
1515 test_engine_CFLAGS = \
1519 test_engine_LDADD = \
1520 libsystemd-core.la \
1523 test_job_type_SOURCES = \
1524 src/test/test-job-type.c
1526 test_job_type_CFLAGS = \
1530 test_job_type_LDADD = \
1531 libsystemd-core.la \
1544 test_loopback_SOURCES = \
1545 src/test/test-loopback.c
1547 test_loopback_LDADD = \
1550 test_hostname_SOURCES = \
1551 src/test/test-hostname.c
1553 test_hostname_LDADD = \
1560 test_boot_timestamp_SOURCES = \
1561 src/test/test-boot-timestamps.c
1563 test_boot_timestamp_LDADD = \
1564 libsystemd-shared.la
1567 test_unit_name_SOURCES = \
1568 src/test/test-unit-name.c
1570 test_unit_name_CFLAGS = \
1574 test_unit_name_LDADD = \
1575 libsystemd-core.la \
1578 test_unit_file_SOURCES = \
1579 src/test/test-unit-file.c
1581 test_unit_file_CFLAGS = \
1585 test_unit_file_LDADD = \
1586 libsystemd-core.la \
1589 test_utf8_SOURCES = \
1590 src/test/test-utf8.c
1593 libsystemd-shared.la
1595 test_capability_SOURCES = \
1596 src/test/test-capability.c
1598 test_capability_LDADD = \
1599 libsystemd-shared.la
1601 test_async_SOURCES = \
1602 src/test/test-async.c
1604 test_async_LDADD = \
1605 libsystemd-shared.la
1607 test_locale_util_SOURCES = \
1608 src/test/test-locale-util.c
1610 test_locale_util_LDADD = \
1611 libsystemd-shared.la
1613 test_copy_SOURCES = \
1614 src/test/test-copy.c
1617 libsystemd-label.la \
1618 libsystemd-shared.la
1620 test_sigbus_SOURCES = \
1621 src/test/test-sigbus.c
1623 test_sigbus_LDADD = \
1624 libsystemd-shared.la
1626 test_condition_SOURCES = \
1627 src/test/test-condition.c
1629 test_condition_LDADD = \
1630 libsystemd-label.la \
1631 libsystemd-internal.la \
1632 libsystemd-shared.la
1634 test_fdset_SOURCES = \
1635 src/test/test-fdset.c
1637 test_fdset_LDADD = \
1638 libsystemd-shared.la \
1639 libsystemd-internal.la
1641 test_fstab_util_SOURCES = \
1642 src/test/test-fstab-util.c
1644 test_fstab_util_LDADD = \
1645 libsystemd-shared.la
1647 test_ratelimit_SOURCES = \
1648 src/test/test-ratelimit.c
1650 test_ratelimit_LDADD = \
1651 libsystemd-shared.la
1653 test_util_SOURCES = \
1654 src/test/test-util.c
1657 libsystemd-shared.la
1659 test_path_lookup_SOURCES = \
1660 src/test/test-path-lookup.c
1662 test_path_lookup_LDADD = \
1664 libsystemd-units.la \
1665 libsystemd-shared.la
1667 test_uid_range_SOURCES = \
1668 src/test/test-uid-range.c
1670 test_uid_range_LDADD = \
1671 libsystemd-shared.la
1673 test_cap_list_SOURCES = \
1674 src/test/test-cap-list.c
1676 test_cap_list_LDADD = \
1677 libsystemd-shared.la
1679 test_socket_util_SOURCES = \
1680 src/test/test-socket-util.c
1682 test_socket_util_LDADD = \
1683 libsystemd-shared.la
1685 test_ring_SOURCES = \
1686 src/test/test-ring.c
1689 libsystemd-shared.la
1691 test_barrier_SOURCES = \
1692 src/test/test-barrier.c
1694 test_barrier_LDADD = \
1695 libsystemd-shared.la
1697 test_pty_SOURCES = \
1703 test_tmpfiles_SOURCES = \
1704 src/test/test-tmpfiles.c
1706 test_tmpfiles_LDADD = \
1707 libsystemd-shared.la
1709 test_namespace_SOURCES = \
1710 src/test/test-namespace.c
1712 test_verbs_SOURCES = \
1713 src/test/test-verbs.c
1715 test_verbs_LDADD = \
1716 libsystemd-shared.la
1718 test_namespace_LDADD = \
1722 src/test/test-hashmap-ordered.c
1725 src/test/test-hashmap-ordered.c
1727 src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c
1728 $(AM_V_at)$(MKDIR_P) $(dir $@)
1729 $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \
1730 { if (!match($$0, "^#include")) \
1731 gsub(/hashmap/, "ordered_hashmap"); \
1732 gsub(/HASHMAP/, "ORDERED_HASHMAP"); \
1733 gsub(/Hashmap/, "OrderedHashmap"); \
1736 nodist_test_hashmap_SOURCES = \
1737 src/test/test-hashmap-ordered.c
1739 test_hashmap_SOURCES = \
1740 src/test/test-hashmap.c \
1741 src/test/test-hashmap-plain.c
1743 test_hashmap_LDADD = \
1744 libsystemd-shared.la
1746 test_set_SOURCES = \
1750 libsystemd-shared.la
1752 test_xml_SOURCES = \
1756 libsystemd-shared.la
1758 test_json_SOURCES = \
1759 src/test/test-json.c
1762 libsystemd-shared.la
1764 test_list_SOURCES = \
1765 src/test/test-list.c
1768 libsystemd-shared.la
1770 test_unaligned_LDADD = \
1771 libsystemd-shared.la
1773 test_unaligned_SOURCES = \
1774 src/test/test-unaligned.c
1776 test_tables_SOURCES = \
1777 src/test/test-tables.c \
1778 src/shared/test-tables.h \
1779 src/bus-proxyd/bus-xml-policy.c \
1780 src/bus-proxyd/bus-xml-policy.h \
1781 src/journal/journald-server.c \
1782 src/journal/journald-server.h
1784 test_tables_CPPFLAGS = \
1786 -I$(top_srcdir)/src/bus-proxyd
1788 test_tables_CFLAGS = \
1792 test_tables_LDADD = \
1793 libsystemd-logs.la \
1794 libsystemd-journal-internal.la \
1795 libsystemd-journal-core.la \
1796 libsystemd-core.la \
1800 test_prioq_SOURCES = \
1801 src/test/test-prioq.c
1803 test_prioq_LDADD = \
1804 libsystemd-shared.la
1806 test_fileio_SOURCES = \
1807 src/test/test-fileio.c
1809 test_fileio_LDADD = \
1810 libsystemd-shared.la
1812 test_time_SOURCES = \
1813 src/test/test-time.c
1816 libsystemd-shared.la
1818 test_architecture_SOURCES = \
1819 src/test/test-architecture.c
1821 test_architecture_LDADD = \
1822 libsystemd-shared.la
1824 test_log_SOURCES = \
1828 libsystemd-shared.la
1830 test_ipcrm_SOURCES = \
1831 src/test/test-ipcrm.c
1833 test_ipcrm_LDADD = \
1834 libsystemd-shared.la \
1837 test_btrfs_SOURCES = \
1838 src/test/test-btrfs.c
1840 test_btrfs_LDADD = \
1841 libsystemd-label.la \
1842 libsystemd-shared.la
1845 test_fw_util_SOURCES = \
1846 src/test/test-fw-util.c
1848 test_fw_util_CFLAGS = \
1852 test_fw_util_LDADD = \
1854 libsystemd-shared.la \
1858 test_rtnl_manual_SOURCES = \
1859 src/test/test-rtnl-manual.c
1861 test_rtnl_manual_CFLAGS = \
1865 test_rtnl_manual_LDADD = \
1866 libsystemd-internal.la \
1867 libsystemd-shared.la \
1870 test_ellipsize_SOURCES = \
1871 src/test/test-ellipsize.c
1873 test_ellipsize_LDADD = \
1874 libsystemd-shared.la
1876 test_date_SOURCES = \
1877 src/test/test-date.c
1880 libsystemd-shared.la
1882 test_sleep_SOURCES = \
1883 src/test/test-sleep.c
1885 test_sleep_LDADD = \
1888 test_replace_var_SOURCES = \
1889 src/test/test-replace-var.c
1891 test_replace_var_LDADD = \
1892 libsystemd-shared.la
1894 test_calendarspec_SOURCES = \
1895 src/test/test-calendarspec.c
1897 test_calendarspec_LDADD = \
1898 libsystemd-shared.la
1900 test_strip_tab_ansi_SOURCES = \
1901 src/test/test-strip-tab-ansi.c
1903 test_strip_tab_ansi_LDADD = \
1904 libsystemd-shared.la
1906 test_daemon_SOURCES = \
1907 src/test/test-daemon.c
1909 test_daemon_LDADD = \
1910 libsystemd-internal.la \
1911 libsystemd-shared.la
1913 test_cgroup_SOURCES = \
1914 src/test/test-cgroup.c
1916 test_cgroup_LDADD = \
1917 libsystemd-label.la \
1918 libsystemd-shared.la \
1919 libsystemd-internal.la
1921 test_cgroup_mask_SOURCES = \
1922 src/test/test-cgroup-mask.c
1924 test_cgroup_mask_CPPFLAGS = \
1927 test_cgroup_mask_CFLAGS = \
1931 test_cgroup_mask_LDADD = \
1932 libsystemd-core.la \
1935 test_cgroup_util_SOURCES = \
1936 src/test/test-cgroup-util.c
1938 test_cgroup_util_LDADD = \
1939 libsystemd-label.la \
1940 libsystemd-internal.la \
1941 libsystemd-shared.la
1943 test_env_replace_SOURCES = \
1944 src/test/test-env-replace.c
1946 test_env_replace_LDADD = \
1947 libsystemd-shared.la
1949 test_strbuf_SOURCES = \
1950 src/test/test-strbuf.c
1952 test_strbuf_LDADD = \
1953 libsystemd-shared.la
1955 test_strv_SOURCES = \
1956 src/test/test-strv.c
1959 libsystemd-units.la \
1960 libsystemd-internal.la \
1961 libsystemd-shared.la
1963 test_path_util_SOURCES = \
1964 src/test/test-path-util.c
1966 test_path_util_LDADD = \
1967 libsystemd-shared.la
1969 test_path_SOURCES = \
1970 src/test/test-path.c
1972 test_path_CFLAGS = \
1978 test_execute_SOURCES = \
1979 src/test/test-execute.c
1981 test_execute_CFLAGS = \
1984 test_execute_LDADD = \
1987 test_strxcpyx_SOURCES = \
1988 src/test/test-strxcpyx.c
1990 test_strxcpyx_LDADD = \
1991 libsystemd-shared.la
1993 test_install_SOURCES = \
1994 src/test/test-install.c
1996 test_install_LDADD = \
1997 libsystemd-units.la \
1998 libsystemd-label.la \
1999 libsystemd-shared.la \
2000 libsystemd-internal.la
2002 test_watchdog_SOURCES = \
2003 src/test/test-watchdog.c
2005 test_watchdog_LDADD = \
2006 libsystemd-shared.la
2008 test_sched_prio_SOURCES = \
2009 src/test/test-sched-prio.c
2011 test_sched_prio_CPPFLAGS = \
2014 test_sched_prio_CFLAGS = \
2018 test_sched_prio_LDADD = \
2019 libsystemd-core.la \
2022 test_conf_files_SOURCES = \
2023 src/test/test-conf-files.c
2025 test_conf_files_LDADD = \
2026 libsystemd-shared.la
2028 test_bus_policy_SOURCES = \
2029 src/bus-proxyd/test-bus-xml-policy.c
2031 test_bus_policy_LDADD = \
2032 libsystemd-proxy.la \
2033 libsystemd-internal.la \
2034 libsystemd-shared.la
2036 # ------------------------------------------------------------------------------
2037 ## .PHONY so it always rebuilds it
2038 .PHONY: coverage lcov-run lcov-report coverage-sync
2040 # run lcov from scratch, always
2045 coverage_dir = coverage
2046 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
2049 # reset run coverage tests
2051 @rm -rf $(coverage_dir)
2052 lcov $(coverage_opts) --zerocounters
2055 # generate report based on current coverage data
2057 $(MKDIR_P) $(coverage_dir)
2058 lcov $(coverage_opts) --compat-libtool --capture --no-external \
2059 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
2060 lcov --remove $(coverage_dir)/.lcov.info --output-file $(coverage_dir)/.lcov-clean.info 'test-*'
2061 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov-clean.info
2062 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
2064 # lcov doesn't work properly with vpath builds, make sure that bad
2065 # output is not uploaded by mistake.
2066 coverage-sync: coverage
2067 test "$(builddir)" = "$(srcdir)"
2068 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
2071 lcov-run lcov-report:
2072 echo "Need to reconfigure with --enable-coverage"
2075 # ------------------------------------------------------------------------------
2076 systemd_analyze_SOURCES = \
2077 src/analyze/analyze.c \
2078 src/analyze/analyze-verify.c \
2079 src/analyze/analyze-verify.h
2081 systemd_verify_CFLAGS = \
2085 systemd_analyze_LDADD = \
2086 libsystemd-core.la \
2087 libsystemd-internal.la \
2088 libsystemd-shared.la \
2091 # ------------------------------------------------------------------------------
2092 systemd_initctl_SOURCES = \
2093 src/initctl/initctl.c
2095 systemd_initctl_LDADD = \
2096 libsystemd-internal.la \
2097 libsystemd-shared.la
2099 # ------------------------------------------------------------------------------
2100 systemd_update_utmp_SOURCES = \
2101 src/update-utmp/update-utmp.c
2103 systemd_update_utmp_CFLAGS = \
2107 systemd_update_utmp_LDADD = \
2108 libsystemd-internal.la \
2109 libsystemd-shared.la \
2112 # ------------------------------------------------------------------------------
2113 systemd_update_done_SOURCES = \
2114 src/update-done/update-done.c
2116 systemd_update_done_LDADD = \
2117 libsystemd-internal.la \
2118 libsystemd-label.la \
2119 libsystemd-shared.la
2121 # ------------------------------------------------------------------------------
2122 systemd_shutdownd_SOURCES = \
2123 src/shutdownd/shutdownd.c
2125 systemd_shutdownd_LDADD = \
2126 libsystemd-label.la \
2127 libsystemd-internal.la \
2128 libsystemd-shared.la
2131 src/systemd/sd-shutdown.h
2133 # ------------------------------------------------------------------------------
2134 systemd_shutdown_SOURCES = \
2137 src/core/shutdown.c \
2138 src/core/mount-setup.c \
2139 src/core/mount-setup.h \
2140 src/core/killall.h \
2143 systemd_shutdown_LDADD = \
2144 libsystemd-label.la \
2145 libudev-internal.la \
2146 libsystemd-shared.la
2148 # ------------------------------------------------------------------------------
2150 systemd_modules_load_SOURCES = \
2151 src/modules-load/modules-load.c
2153 systemd_modules_load_CFLAGS = \
2157 systemd_modules_load_LDADD = \
2158 libsystemd-shared.la \
2161 rootlibexec_PROGRAMS += \
2162 systemd-modules-load
2164 nodist_systemunit_DATA += \
2165 units/systemd-modules-load.service
2167 SYSINIT_TARGET_WANTS += \
2168 systemd-modules-load.service
2171 nodist_systemunit_DATA += \
2172 units/kmod-static-nodes.service
2174 SYSINIT_TARGET_WANTS += \
2175 kmod-static-nodes.service
2180 units/systemd-modules-load.service.in \
2181 units/kmod-static-nodes.service.in
2183 # ------------------------------------------------------------------------------
2185 systemd_tmpfiles_SOURCES = \
2186 src/tmpfiles/tmpfiles.c
2188 systemd_tmpfiles_LDADD = \
2189 libsystemd-units.la \
2190 libsystemd-label.la \
2191 libsystemd-internal.la \
2192 libsystemd-shared.la
2194 rootbin_PROGRAMS += \
2197 dist_systemunit_DATA += \
2198 units/systemd-tmpfiles-clean.timer
2200 nodist_systemunit_DATA += \
2201 units/systemd-tmpfiles-setup-dev.service \
2202 units/systemd-tmpfiles-setup.service \
2203 units/systemd-tmpfiles-clean.service
2205 nodist_tmpfiles_DATA = \
2208 dist_tmpfiles_DATA = \
2209 tmpfiles.d/systemd.conf \
2210 tmpfiles.d/systemd-nologin.conf \
2211 tmpfiles.d/tmp.conf \
2212 tmpfiles.d/x11.conf \
2216 dist_tmpfiles_DATA += \
2217 tmpfiles.d/legacy.conf
2220 SYSINIT_TARGET_WANTS += \
2221 systemd-tmpfiles-setup-dev.service \
2222 systemd-tmpfiles-setup.service
2224 dist_zshcompletion_DATA += \
2225 shell-completion/zsh/_systemd-tmpfiles
2227 TIMERS_TARGET_WANTS += \
2228 systemd-tmpfiles-clean.timer
2232 $(sysconfdir)/tmpfiles.d
2236 tmpfiles.d/etc.conf.m4 \
2237 units/systemd-tmpfiles-setup-dev.service.in \
2238 units/systemd-tmpfiles-setup.service.in \
2239 units/systemd-tmpfiles-clean.service.in
2244 # ------------------------------------------------------------------------------
2246 systemd_sysusers_SOURCES = \
2247 src/sysusers/sysusers.c
2249 systemd_sysusers_LDADD = \
2250 libsystemd-units.la \
2251 libsystemd-label.la \
2252 libsystemd-internal.la \
2253 libsystemd-shared.la
2255 rootbin_PROGRAMS += \
2258 nodist_systemunit_DATA += \
2259 units/systemd-sysusers.service
2261 SYSINIT_TARGET_WANTS += \
2262 systemd-sysusers.service
2264 dist_sysusers_DATA = \
2265 sysusers.d/systemd.conf
2267 nodist_sysusers_DATA = \
2268 sysusers.d/basic.conf
2271 units/systemd-sysusers.service.in \
2272 sysusers.d/basic.conf.in
2275 sysusers.d/basic.conf
2281 # ------------------------------------------------------------------------------
2282 dist_factory_etc_DATA = \
2283 factory/etc/nsswitch.conf
2286 dist_factory_pam_DATA = \
2287 factory/etc/pam.d/system-auth \
2288 factory/etc/pam.d/other
2291 # ------------------------------------------------------------------------------
2293 systemd_firstboot_SOURCES = \
2294 src/firstboot/firstboot.c
2296 systemd_firstboot_LDADD = \
2297 libsystemd-units.la \
2298 libsystemd-label.la \
2299 libsystemd-internal.la \
2300 libsystemd-shared.la \
2303 rootbin_PROGRAMS += \
2306 nodist_systemunit_DATA += \
2307 units/systemd-firstboot.service
2310 units/systemd-firstboot.service.in
2312 SYSINIT_TARGET_WANTS += \
2313 systemd-firstboot.service
2316 # ------------------------------------------------------------------------------
2317 systemd_machine_id_setup_SOURCES = \
2318 src/machine-id-setup/machine-id-setup-main.c \
2319 src/core/machine-id-setup.c \
2320 src/core/machine-id-setup.h
2322 systemd_machine_id_setup_LDADD = \
2323 libsystemd-label.la \
2324 libsystemd-internal.la \
2325 libsystemd-shared.la
2327 # ------------------------------------------------------------------------------
2328 systemd_sysctl_SOURCES = \
2331 systemd_sysctl_LDADD = \
2332 libsystemd-shared.la
2334 # ------------------------------------------------------------------------------
2335 systemd_sleep_SOURCES = \
2338 systemd_sleep_LDADD = \
2339 libsystemd-shared.la
2341 # ------------------------------------------------------------------------------
2342 systemd_fsck_SOURCES = \
2345 systemd_fsck_LDADD = \
2346 libsystemd-internal.la \
2347 libudev-internal.la \
2348 libsystemd-shared.la
2350 # ------------------------------------------------------------------------------
2351 systemd_machine_id_commit_SOURCES = \
2352 src/machine-id-commit/machine-id-commit.c \
2353 src/core/machine-id-setup.c \
2354 src/core/machine-id-setup.h
2356 systemd_machine_id_commit_LDADD = \
2357 libsystemd-label.la \
2358 libsystemd-internal.la \
2359 libsystemd-shared.la
2361 SYSINIT_TARGET_WANTS += \
2362 systemd-machine-id-commit.service
2364 # ------------------------------------------------------------------------------
2365 systemd_ac_power_SOURCES = \
2366 src/ac-power/ac-power.c
2368 systemd_ac_power_LDADD = \
2369 libudev-internal.la \
2370 libsystemd-shared.la
2372 # ------------------------------------------------------------------------------
2373 systemd_detect_virt_SOURCES = \
2374 src/detect-virt/detect-virt.c
2376 systemd_detect_virt_LDADD = \
2377 libsystemd-shared.la
2379 INSTALL_EXEC_HOOKS += \
2380 systemd-detect-virt-install-hook
2382 # ------------------------------------------------------------------------------
2383 systemd_delta_SOURCES = \
2386 systemd_delta_LDADD = \
2387 libsystemd-shared.la
2389 # ------------------------------------------------------------------------------
2390 systemd_getty_generator_SOURCES = \
2391 src/getty-generator/getty-generator.c
2393 systemd_getty_generator_LDADD = \
2394 libsystemd-label.la \
2395 libsystemd-shared.la
2397 # ------------------------------------------------------------------------------
2398 systemd_debug_generator_SOURCES = \
2399 src/debug-generator/debug-generator.c
2401 systemd_debug_generator_LDADD = \
2402 libsystemd-label.la \
2403 libsystemd-shared.la
2405 # ------------------------------------------------------------------------------
2406 systemd_fstab_generator_SOURCES = \
2407 src/fstab-generator/fstab-generator.c \
2408 src/core/mount-setup.c
2410 systemd_fstab_generator_LDADD = \
2411 libsystemd-label.la \
2412 libsystemd-shared.la
2414 # ------------------------------------------------------------------------------
2415 systemd_system_update_generator_SOURCES = \
2416 src/system-update-generator/system-update-generator.c
2418 systemd_system_update_generator_LDADD = \
2419 libsystemd-label.la \
2420 libsystemd-shared.la
2422 # ------------------------------------------------------------------------------
2424 systemgenerator_PROGRAMS += \
2425 systemd-hibernate-resume-generator
2427 rootlibexec_PROGRAMS += \
2428 systemd-hibernate-resume
2430 systemd_hibernate_resume_SOURCES = \
2431 src/hibernate-resume/hibernate-resume.c
2433 systemd_hibernate_resume_LDADD = \
2434 libsystemd-internal.la \
2435 libsystemd-shared.la
2437 systemd_hibernate_resume_generator_SOURCES = \
2438 src/hibernate-resume/hibernate-resume-generator.c
2440 systemd_hibernate_resume_generator_LDADD = \
2441 libsystemd-label.la \
2442 libsystemd-shared.la
2445 units/systemd-hibernate.service.in \
2446 units/systemd-hibernate-resume@.service.in \
2447 units/systemd-hybrid-sleep.service.in
2449 dist_systemunit_DATA += \
2450 units/hibernate.target \
2451 units/hybrid-sleep.target
2453 nodist_systemunit_DATA += \
2454 units/systemd-hibernate.service \
2455 units/systemd-hibernate-resume@.service \
2456 units/systemd-hybrid-sleep.service
2459 # ------------------------------------------------------------------------------
2461 systemgenerator_PROGRAMS += \
2462 systemd-efi-boot-generator
2464 systemd_efi_boot_generator_SOURCES = \
2465 src/efi-boot-generator/efi-boot-generator.c
2467 systemd_efi_boot_generator_LDADD = \
2468 libsystemd-label.la \
2469 libsystemd-shared.la
2471 # ------------------------------------------------------------------------------
2474 src/boot/boot-loader.h \
2475 src/boot/bootctl.c \
2476 src/boot/boot-loader.c \
2480 libsystemd-shared.la \
2481 libsystemd-internal.la
2486 dist_bashcompletion_DATA += \
2487 shell-completion/bash/bootctl
2489 dist_zshcompletion_DATA += \
2490 shell-completion/zsh/_bootctl
2494 # ------------------------------------------------------------------------------
2496 systemgenerator_PROGRAMS += \
2497 systemd-gpt-auto-generator
2499 systemd_gpt_auto_generator_SOURCES = \
2500 src/gpt-auto-generator/gpt-auto-generator.c \
2501 src/shared/blkid-util.h
2503 systemd_gpt_auto_generator_LDADD = \
2504 libsystemd-label.la \
2505 libsystemd-internal.la \
2506 libudev-internal.la \
2507 libsystemd-shared.la \
2510 systemd_gpt_auto_generator_CFLAGS = \
2515 # ------------------------------------------------------------------------------
2517 systemgenerator_PROGRAMS += \
2518 systemd-dbus1-generator
2520 systemd_dbus1_generator_SOURCES = \
2521 src/dbus1-generator/dbus1-generator.c
2523 systemd_dbus1_generator_LDADD = \
2524 libsystemd-label.la \
2525 libsystemd-internal.la \
2526 libsystemd-shared.la
2528 dbus1-generator-install-hook:
2529 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2530 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2531 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2533 dbus1-generator-uninstall-hook:
2534 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2536 dist_xinitrc_SCRIPTS = \
2537 xorg/50-systemd-user.sh
2539 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2540 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2543 # ------------------------------------------------------------------------------
2544 systemd_sysv_generator_SOURCES = \
2545 src/sysv-generator/sysv-generator.c
2547 systemd_sysv_generator_LDADD = \
2548 libsystemd-core.la \
2549 libsystemd-label.la \
2550 libsystemd-shared.la
2552 # ------------------------------------------------------------------------------
2553 systemd_rc_local_generator_SOURCES = \
2554 src/rc-local-generator/rc-local-generator.c
2556 systemd_rc_local_generator_LDADD = \
2557 libsystemd-label.la \
2558 libsystemd-shared.la
2560 # ------------------------------------------------------------------------------
2561 systemd_remount_fs_SOURCES = \
2562 src/remount-fs/remount-fs.c \
2563 src/core/mount-setup.c \
2564 src/core/mount-setup.h
2566 systemd_remount_fs_LDADD = \
2567 libsystemd-label.la \
2568 libsystemd-shared.la
2570 # ------------------------------------------------------------------------------
2571 systemd_cgroups_agent_SOURCES = \
2572 src/cgroups-agent/cgroups-agent.c
2574 systemd_cgroups_agent_LDADD = \
2575 libsystemd-internal.la \
2576 libsystemd-shared.la
2578 # ------------------------------------------------------------------------------
2579 systemd_escape_SOURCES = \
2582 systemd_escape_LDADD = \
2583 libsystemd-shared.la
2585 # -----------------------------------------------------------------------------
2586 systemctl_SOURCES = \
2587 src/systemctl/systemctl.c
2590 libsystemd-units.la \
2591 libsystemd-label.la \
2592 libsystemd-internal.la \
2593 libsystemd-logs.la \
2594 libsystemd-journal-internal.la \
2595 libsystemd-shared.la
2597 # ------------------------------------------------------------------------------
2598 systemd_notify_SOURCES = \
2601 systemd_notify_LDADD = \
2602 libsystemd-internal.la \
2603 libsystemd-shared.la
2605 # ------------------------------------------------------------------------------
2606 systemd_path_SOURCES = \
2609 systemd_path_LDADD = \
2610 libsystemd-internal.la \
2611 libsystemd-shared.la
2613 # ------------------------------------------------------------------------------
2614 systemd_ask_password_SOURCES = \
2615 src/ask-password/ask-password.c
2617 systemd_ask_password_LDADD = \
2618 libsystemd-label.la \
2619 libsystemd-shared.la
2621 # ------------------------------------------------------------------------------
2622 systemd_reply_password_SOURCES = \
2623 src/reply-password/reply-password.c
2625 systemd_reply_password_LDADD = \
2626 libsystemd-shared.la
2628 # ------------------------------------------------------------------------------
2629 systemd_cgls_SOURCES = \
2632 systemd_cgls_LDADD = \
2633 libsystemd-internal.la \
2634 libsystemd-shared.la
2636 # ------------------------------------------------------------------------------
2637 systemd_cgtop_SOURCES = \
2640 systemd_cgtop_LDADD = \
2641 libsystemd-shared.la
2643 # ------------------------------------------------------------------------------
2644 systemd_nspawn_SOURCES = \
2645 src/nspawn/nspawn.c \
2646 src/core/mount-setup.c \
2647 src/core/mount-setup.h \
2648 src/core/loopback-setup.c \
2649 src/core/loopback-setup.h
2651 systemd_nspawn_CFLAGS = \
2656 systemd_nspawn_LDADD = \
2657 libsystemd-label.la \
2658 libsystemd-internal.la \
2659 libudev-internal.la \
2660 libsystemd-shared.la \
2664 systemd_nspawn_LDADD += \
2665 libsystemd-seccomp.la \
2670 systemd_nspawn_LDADD += \
2674 # ------------------------------------------------------------------------------
2675 systemd_run_SOURCES = \
2678 systemd_run_LDADD = \
2679 libsystemd-label.la \
2680 libsystemd-internal.la \
2681 libsystemd-shared.la
2683 # ------------------------------------------------------------------------------
2684 noinst_LTLIBRARIES += \
2687 libsystemd_proxy_la_SOURCES = \
2688 src/bus-proxyd/bus-xml-policy.c \
2689 src/bus-proxyd/bus-xml-policy.h \
2690 src/bus-proxyd/driver.c \
2691 src/bus-proxyd/driver.h \
2692 src/bus-proxyd/proxy.c \
2693 src/bus-proxyd/proxy.h \
2694 src/bus-proxyd/synthesize.c \
2695 src/bus-proxyd/synthesize.h
2697 libsystemd_proxy_la_CFLAGS = \
2701 libsystemd_proxy_la_LIBADD = \
2702 libsystemd-internal.la \
2703 libsystemd-shared.la
2705 systemd_bus_proxyd_SOURCES = \
2706 src/bus-proxyd/bus-proxyd.c
2708 systemd_bus_proxyd_CFLAGS = \
2712 systemd_bus_proxyd_LDADD = \
2713 libsystemd-proxy.la \
2714 libsystemd-internal.la \
2715 libsystemd-shared.la
2717 systemd_stdio_bridge_SOURCES = \
2718 src/bus-proxyd/stdio-bridge.c
2720 systemd_stdio_bridge_LDADD = \
2721 libsystemd-proxy.la \
2722 libsystemd-internal.la \
2723 libsystemd-shared.la
2726 nodist_systemunit_DATA += \
2727 units/systemd-bus-proxyd.service
2729 dist_systemunit_DATA += \
2730 units/systemd-bus-proxyd.socket
2732 nodist_userunit_DATA += \
2733 units/user/systemd-bus-proxyd.service
2735 dist_userunit_DATA += \
2736 units/user/systemd-bus-proxyd.socket
2740 units/systemd-bus-proxyd.service.m4.in \
2741 units/user/systemd-bus-proxyd.service.in
2744 units/systemd-bus-proxyd.service.m4
2747 bus-proxyd-set-cap-hook:
2748 -$(SETCAP) cap_mac_admin+ei $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd
2750 INSTALL_EXEC_HOOKS += bus-proxyd-set-cap-hook
2753 # ------------------------------------------------------------------------------
2754 systemd_tty_ask_password_agent_SOURCES = \
2755 src/tty-ask-password-agent/tty-ask-password-agent.c
2757 systemd_tty_ask_password_agent_LDADD = \
2758 libsystemd-label.la \
2759 libsystemd-shared.la
2761 # ------------------------------------------------------------------------------
2762 libsystemd_internal_la_SOURCES = \
2763 src/systemd/sd-bus.h \
2764 src/systemd/sd-bus-protocol.h \
2765 src/systemd/sd-bus-vtable.h \
2766 src/systemd/sd-utf8.h \
2767 src/systemd/sd-event.h \
2768 src/systemd/sd-rtnl.h \
2769 src/systemd/sd-resolve.h \
2770 src/systemd/sd-login.h \
2771 src/systemd/sd-id128.h \
2772 src/systemd/sd-daemon.h \
2773 src/systemd/sd-path.h \
2774 src/systemd/sd-network.h \
2775 src/systemd/sd-hwdb.h \
2776 src/libsystemd/sd-bus/sd-bus.c \
2777 src/libsystemd/sd-bus/bus-control.c \
2778 src/libsystemd/sd-bus/bus-control.h \
2779 src/libsystemd/sd-bus/bus-error.c \
2780 src/libsystemd/sd-bus/bus-error.h \
2781 src/libsystemd/sd-bus/bus-common-errors.h \
2782 src/libsystemd/sd-bus/bus-common-errors.c \
2783 src/libsystemd/sd-bus/bus-internal.c \
2784 src/libsystemd/sd-bus/bus-internal.h \
2785 src/libsystemd/sd-bus/bus-socket.c \
2786 src/libsystemd/sd-bus/bus-socket.h \
2787 src/libsystemd/sd-bus/bus-kernel.c \
2788 src/libsystemd/sd-bus/bus-kernel.h \
2789 src/libsystemd/sd-bus/bus-container.c \
2790 src/libsystemd/sd-bus/bus-container.h \
2791 src/libsystemd/sd-bus/bus-message.c \
2792 src/libsystemd/sd-bus/bus-message.h \
2793 src/libsystemd/sd-bus/bus-creds.c \
2794 src/libsystemd/sd-bus/bus-creds.h \
2795 src/libsystemd/sd-bus/bus-signature.c \
2796 src/libsystemd/sd-bus/bus-signature.h \
2797 src/libsystemd/sd-bus/bus-type.c \
2798 src/libsystemd/sd-bus/bus-type.h \
2799 src/libsystemd/sd-bus/bus-match.c \
2800 src/libsystemd/sd-bus/bus-match.h \
2801 src/libsystemd/sd-bus/bus-bloom.c \
2802 src/libsystemd/sd-bus/bus-bloom.h \
2803 src/libsystemd/sd-bus/bus-introspect.c \
2804 src/libsystemd/sd-bus/bus-introspect.h \
2805 src/libsystemd/sd-bus/bus-objects.c \
2806 src/libsystemd/sd-bus/bus-objects.h \
2807 src/libsystemd/sd-bus/bus-gvariant.c \
2808 src/libsystemd/sd-bus/bus-gvariant.h \
2809 src/libsystemd/sd-bus/bus-convenience.c \
2810 src/libsystemd/sd-bus/bus-track.c \
2811 src/libsystemd/sd-bus/bus-track.h \
2812 src/libsystemd/sd-bus/bus-util.c \
2813 src/libsystemd/sd-bus/bus-util.h \
2814 src/libsystemd/sd-bus/bus-slot.c \
2815 src/libsystemd/sd-bus/bus-slot.h \
2816 src/libsystemd/sd-bus/bus-protocol.h \
2817 src/libsystemd/sd-bus/kdbus.h \
2818 src/libsystemd/sd-utf8/sd-utf8.c \
2819 src/libsystemd/sd-event/sd-event.c \
2820 src/libsystemd/sd-event/event-util.h \
2821 src/libsystemd/sd-rtnl/sd-rtnl.c \
2822 src/libsystemd/sd-rtnl/rtnl-internal.h \
2823 src/libsystemd/sd-rtnl/rtnl-message.c \
2824 src/libsystemd/sd-rtnl/rtnl-types.h \
2825 src/libsystemd/sd-rtnl/rtnl-types.c \
2826 src/libsystemd/sd-rtnl/rtnl-util.h \
2827 src/libsystemd/sd-rtnl/rtnl-util.c \
2828 src/libsystemd/sd-rtnl/local-addresses.h \
2829 src/libsystemd/sd-rtnl/local-addresses.c \
2830 src/libsystemd/sd-id128/sd-id128.c \
2831 src/libsystemd/sd-daemon/sd-daemon.c \
2832 src/libsystemd/sd-login/sd-login.c \
2833 src/libsystemd/sd-path/sd-path.c \
2834 src/libsystemd/sd-network/sd-network.c \
2835 src/libsystemd/sd-network/network-util.h \
2836 src/libsystemd/sd-network/network-util.c \
2837 src/libsystemd/sd-hwdb/sd-hwdb.c \
2838 src/libsystemd/sd-hwdb/hwdb-util.h \
2839 src/libsystemd/sd-hwdb/hwdb-internal.h
2841 nodist_libsystemd_internal_la_SOURCES = \
2842 src/libsystemd/libsystemd.sym
2844 libsystemd_internal_la_CFLAGS = \
2848 libsystemd_internal_la_LIBADD = \
2851 libsystemd_resolve_la_SOURCES = \
2852 src/libsystemd/sd-resolve/sd-resolve.c \
2853 src/libsystemd/sd-resolve/resolve-util.h
2855 libsystemd_resolve_la_CFLAGS = \
2859 libsystemd_resolve_la_LIBADD = \
2862 noinst_LTLIBRARIES += \
2863 libsystemd-internal.la \
2864 libsystemd-resolve.la
2866 libsystemd_dump_la_SOURCES = \
2867 src/libsystemd/sd-bus/bus-dump.c \
2868 src/libsystemd/sd-bus/bus-dump.h
2870 noinst_LTLIBRARIES += \
2874 src/libsystemd/libsystemd.sym.m4 \
2875 src/libsystemd/libsystemd.pc.in \
2876 src/libsystemd/sd-bus/DIFFERENCES \
2877 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2880 src/libsystemd/libsystemd.sym
2883 src/libsystemd/libsystemd.sym
2885 libsystemd_la_SOURCES = \
2886 $(libsystemd_internal_la_SOURCES) \
2887 $(libsystemd_resolve_la_SOURCES) \
2888 $(libsystemd_journal_internal_la_SOURCES)
2890 nodist_libsystemd_la_SOURCES = \
2891 $(nodist_libsystemd_internal_la_SOURCES)
2893 libsystemd_la_CFLAGS = \
2894 $(libsystemd_internal_la_CFLAGS) \
2895 $(libsystemd_resolve_la_CFLAGS) \
2896 $(libsystemd_journal_internal_la_CFLAGS)
2898 libsystemd_la_LDFLAGS = \
2900 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2901 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2903 libsystemd_la_LIBADD = \
2904 libsystemd-shared.la \
2905 $(libsystemd_internal_la_LIBADD) \
2906 $(libsystemd_journal_internal_la_LIBADD) \
2907 $(libsystemd_resolve_la_LIBADD)
2909 libsystemd-install-hook:
2910 libname=libsystemd.so && $(move-to-rootlibdir)
2912 libsystemd-uninstall-hook:
2913 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2915 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2916 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2918 pkgconfiglib_DATA += \
2919 src/libsystemd/libsystemd.pc
2921 pkginclude_HEADERS += \
2922 src/systemd/sd-login.h \
2923 src/systemd/sd-id128.h \
2924 src/systemd/sd-daemon.h
2927 pkginclude_HEADERS += \
2928 src/systemd/sd-bus.h \
2929 src/systemd/sd-bus-protocol.h \
2930 src/systemd/sd-bus-vtable.h \
2931 src/systemd/sd-utf8.h \
2932 src/systemd/sd-event.h \
2933 src/systemd/sd-rtnl.h \
2934 src/systemd/sd-resolve.h \
2935 src/systemd/sd-path.h
2938 lib_LTLIBRARIES += \
2943 test-bus-signature \
2949 test-bus-kernel-bloom \
2950 test-bus-kernel-benchmark \
2951 test-bus-zero-copy \
2952 test-bus-introspect \
2959 test-local-addresses \
2965 test_bus_marshal_SOURCES = \
2966 src/libsystemd/sd-bus/test-bus-marshal.c
2968 test_bus_marshal_LDADD = \
2969 libsystemd-dump.la \
2970 libsystemd-internal.la \
2971 libsystemd-shared.la \
2975 test_bus_marshal_CFLAGS = \
2980 test_bus_signature_SOURCES = \
2981 src/libsystemd/sd-bus/test-bus-signature.c
2983 test_bus_signature_LDADD = \
2984 libsystemd-internal.la \
2985 libsystemd-shared.la
2987 test_bus_chat_SOURCES = \
2988 src/libsystemd/sd-bus/test-bus-chat.c
2990 test_bus_chat_CFLAGS = \
2994 test_bus_chat_LDADD = \
2995 libsystemd-internal.la \
2996 libsystemd-shared.la
2998 test_bus_cleanup_SOURCES = \
2999 src/libsystemd/sd-bus/test-bus-cleanup.c
3001 test_bus_cleanup_CFLAGS = \
3005 test_bus_cleanup_LDADD = \
3006 libsystemd-internal.la \
3007 libsystemd-shared.la
3009 test_bus_server_SOURCES = \
3010 src/libsystemd/sd-bus/test-bus-server.c
3012 test_bus_server_CFLAGS = \
3016 test_bus_server_LDADD = \
3017 libsystemd-internal.la \
3018 libsystemd-shared.la
3020 test_bus_objects_SOURCES = \
3021 src/libsystemd/sd-bus/test-bus-objects.c
3023 test_bus_objects_CFLAGS = \
3027 test_bus_objects_LDADD = \
3028 libsystemd-dump.la \
3029 libsystemd-internal.la \
3030 libsystemd-shared.la
3032 test_bus_error_SOURCES = \
3033 src/libsystemd/sd-bus/test-bus-error.c
3035 test_bus_error_LDADD = \
3036 libsystemd-internal.la \
3037 libsystemd-shared.la
3039 test_bus_gvariant_SOURCES = \
3040 src/libsystemd/sd-bus/test-bus-gvariant.c
3042 test_bus_gvariant_LDADD = \
3043 libsystemd-dump.la \
3044 libsystemd-internal.la \
3045 libsystemd-shared.la \
3048 test_bus_gvariant_CFLAGS = \
3052 test_bus_creds_SOURCES = \
3053 src/libsystemd/sd-bus/test-bus-creds.c
3055 test_bus_creds_LDADD = \
3056 libsystemd-dump.la \
3057 libsystemd-internal.la \
3058 libsystemd-shared.la
3060 test_bus_match_SOURCES = \
3061 src/libsystemd/sd-bus/test-bus-match.c
3063 test_bus_match_LDADD = \
3064 libsystemd-internal.la \
3065 libsystemd-shared.la
3067 test_bus_kernel_SOURCES = \
3068 src/libsystemd/sd-bus/test-bus-kernel.c
3070 test_bus_kernel_LDADD = \
3071 libsystemd-dump.la \
3072 libsystemd-internal.la \
3073 libsystemd-shared.la
3075 test_bus_kernel_bloom_SOURCES = \
3076 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
3078 test_bus_kernel_bloom_LDADD = \
3079 libsystemd-internal.la \
3080 libsystemd-shared.la
3082 test_bus_kernel_benchmark_SOURCES = \
3083 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
3085 test_bus_kernel_benchmark_LDADD = \
3086 libsystemd-internal.la \
3087 libsystemd-shared.la
3089 test_bus_zero_copy_SOURCES = \
3090 src/libsystemd/sd-bus/test-bus-zero-copy.c
3092 test_bus_zero_copy_LDADD = \
3093 libsystemd-dump.la \
3094 libsystemd-internal.la \
3095 libsystemd-shared.la
3097 test_bus_introspect_SOURCES = \
3098 src/libsystemd/sd-bus/test-bus-introspect.c
3100 test_bus_introspect_LDADD = \
3101 libsystemd-internal.la \
3102 libsystemd-shared.la
3104 test_event_SOURCES = \
3105 src/libsystemd/sd-event/test-event.c
3107 test_event_LDADD = \
3108 libsystemd-internal.la \
3109 libsystemd-shared.la
3111 test_rtnl_SOURCES = \
3112 src/libsystemd/sd-rtnl/test-rtnl.c
3115 libsystemd-internal.la \
3116 libsystemd-shared.la
3118 test_local_addresses_SOURCES = \
3119 src/libsystemd/sd-rtnl/test-local-addresses.c
3121 test_local_addresses_LDADD = \
3122 libsystemd-internal.la \
3123 libsystemd-shared.la
3125 test_resolve_SOURCES = \
3126 src/libsystemd/sd-resolve/test-resolve.c
3128 test_resolve_LDADD = \
3129 libsystemd-resolve.la \
3130 libsystemd-internal.la \
3131 libsystemd-shared.la
3133 test_resolve_CFLAGS = \
3138 src/libsystemd/sd-bus/busctl.c \
3139 src/libsystemd/sd-bus/busctl-introspect.c \
3140 src/libsystemd/sd-bus/busctl-introspect.h
3143 libsystemd-dump.la \
3144 libsystemd-internal.la \
3145 libsystemd-shared.la
3147 # ------------------------------------------------------------------------------
3148 noinst_LTLIBRARIES += \
3149 libsystemd-network.la
3151 libsystemd_network_la_CFLAGS = \
3155 libsystemd_network_la_SOURCES = \
3156 src/systemd/sd-dhcp-client.h \
3157 src/systemd/sd-dhcp-server.h \
3158 src/systemd/sd-dhcp-lease.h \
3159 src/systemd/sd-ipv4ll.h \
3160 src/systemd/sd-icmp6-nd.h \
3161 src/systemd/sd-dhcp6-client.h \
3162 src/systemd/sd-dhcp6-lease.h \
3163 src/systemd/sd-pppoe.h \
3164 src/systemd/sd-lldp.h \
3165 src/libsystemd-network/sd-dhcp-client.c \
3166 src/libsystemd-network/sd-dhcp-server.c \
3167 src/libsystemd-network/dhcp-network.c \
3168 src/libsystemd-network/dhcp-option.c \
3169 src/libsystemd-network/dhcp-packet.c \
3170 src/libsystemd-network/dhcp-internal.h \
3171 src/libsystemd-network/dhcp-server-internal.h \
3172 src/libsystemd-network/dhcp-protocol.h \
3173 src/libsystemd-network/dhcp-lease-internal.h \
3174 src/libsystemd-network/sd-dhcp-lease.c \
3175 src/libsystemd-network/sd-ipv4ll.c \
3176 src/libsystemd-network/ipv4ll-network.c \
3177 src/libsystemd-network/ipv4ll-packet.c \
3178 src/libsystemd-network/ipv4ll-internal.h \
3179 src/libsystemd-network/sd-pppoe.c \
3180 src/libsystemd-network/network-internal.c \
3181 src/libsystemd-network/network-internal.h \
3182 src/libsystemd-network/sd-icmp6-nd.c \
3183 src/libsystemd-network/sd-dhcp6-client.c \
3184 src/libsystemd-network/dhcp6-internal.h \
3185 src/libsystemd-network/dhcp6-protocol.h \
3186 src/libsystemd-network/dhcp6-network.c \
3187 src/libsystemd-network/dhcp6-option.c \
3188 src/libsystemd-network/dhcp6-lease-internal.h \
3189 src/libsystemd-network/sd-dhcp6-lease.c \
3190 src/libsystemd-network/lldp.h \
3191 src/libsystemd-network/lldp-tlv.h \
3192 src/libsystemd-network/lldp-tlv.c \
3193 src/libsystemd-network/lldp-network.h \
3194 src/libsystemd-network/lldp-network.c \
3195 src/libsystemd-network/lldp-port.h \
3196 src/libsystemd-network/lldp-port.c \
3197 src/libsystemd-network/lldp-internal.h \
3198 src/libsystemd-network/lldp-internal.c \
3199 src/libsystemd-network/lldp-util.h \
3200 src/libsystemd-network/sd-lldp.c
3202 libsystemd_network_la_LIBADD = \
3203 libudev-internal.la \
3204 libsystemd-label.la \
3205 libsystemd-internal.la \
3206 libsystemd-shared.la \
3209 test_dhcp_option_SOURCES = \
3210 src/libsystemd-network/dhcp-protocol.h \
3211 src/libsystemd-network/dhcp-internal.h \
3212 src/libsystemd-network/test-dhcp-option.c
3214 test_dhcp_option_LDADD = \
3215 libsystemd-network.la \
3216 libsystemd-internal.la \
3217 libsystemd-shared.la
3219 test_dhcp_client_SOURCES = \
3220 src/systemd/sd-dhcp-client.h \
3221 src/libsystemd-network/dhcp-protocol.h \
3222 src/libsystemd-network/dhcp-internal.h \
3223 src/libsystemd-network/test-dhcp-client.c
3225 test_dhcp_client_LDADD = \
3226 libsystemd-network.la \
3227 libsystemd-label.la \
3228 libsystemd-internal.la \
3229 libsystemd-shared.la
3231 test_dhcp_server_SOURCES = \
3232 src/libsystemd-network/test-dhcp-server.c
3234 test_dhcp_server_LDADD = \
3235 libsystemd-network.la \
3236 libsystemd-internal.la \
3237 libsystemd-shared.la
3239 test_ipv4ll_SOURCES = \
3240 src/systemd/sd-ipv4ll.h \
3241 src/libsystemd-network/ipv4ll-internal.h \
3242 src/libsystemd-network/test-ipv4ll.c
3244 test_ipv4ll_LDADD = \
3245 libsystemd-network.la \
3246 libsystemd-label.la \
3247 libsystemd-internal.la \
3248 libsystemd-shared.la
3250 test_pppoe_SOURCES = \
3251 src/systemd/sd-pppoe.h \
3252 src/libsystemd-network/test-pppoe.c
3254 test_pppoe_LDADD = \
3255 libsystemd-network.la \
3256 libsystemd-shared.la
3258 test_icmp6_rs_SOURCES = \
3259 src/systemd/sd-dhcp6-client.h \
3260 src/systemd/sd-icmp6-nd.h \
3261 src/libsystemd-network/dhcp6-internal.h \
3262 src/libsystemd-network/test-icmp6-rs.c
3264 test_icmp6_rs_LDADD = \
3265 libsystemd-network.la \
3266 libsystemd-internal.la \
3267 libsystemd-shared.la
3269 test_dhcp6_client_SOURCES = \
3270 src/systemd/sd-dhcp6-client.h \
3271 src/libsystemd-network/dhcp6-internal.h \
3272 src/libsystemd-network/test-dhcp6-client.c
3274 test_dhcp6_client_LDADD = \
3275 libsystemd-network.la \
3276 libsystemd-internal.la \
3277 libsystemd-shared.la
3279 test_lldp_SOURCES = \
3280 src/libsystemd-network/lldp.h \
3281 src/libsystemd-network/lldp-tlv.h \
3282 src/libsystemd-network/lldp-tlv.c \
3283 src/libsystemd-network/test-lldp.c
3286 libsystemd-network.la \
3287 libsystemd-internal.la \
3288 libsystemd-shared.la
3302 # ------------------------------------------------------------------------------
3304 noinst_LTLIBRARIES += \
3305 libsystemd-terminal.la
3307 rootlibexec_PROGRAMS += \
3310 noinst_PROGRAMS += \
3315 dist_pkgdata_DATA += \
3316 src/libsystemd-terminal/unifont-glyph-array.bin
3318 nodist_userunit_DATA += \
3319 units/user/systemd-consoled.service
3321 USER_DEFAULT_TARGET_WANTS += \
3322 systemd-consoled.service
3331 units/user/systemd-consoled.service.in
3333 libsystemd_terminal_la_CFLAGS = \
3337 libsystemd_terminal_la_SOURCES = \
3338 src/libsystemd-terminal/grdev.h \
3339 src/libsystemd-terminal/grdev-internal.h \
3340 src/libsystemd-terminal/grdev.c \
3341 src/libsystemd-terminal/grdev-drm.c \
3342 src/libsystemd-terminal/idev.h \
3343 src/libsystemd-terminal/idev-internal.h \
3344 src/libsystemd-terminal/idev.c \
3345 src/libsystemd-terminal/idev-evdev.c \
3346 src/libsystemd-terminal/idev-keyboard.c \
3347 src/libsystemd-terminal/sysview.h \
3348 src/libsystemd-terminal/sysview-internal.h \
3349 src/libsystemd-terminal/sysview.c \
3350 src/libsystemd-terminal/term.h \
3351 src/libsystemd-terminal/term-internal.h \
3352 src/libsystemd-terminal/term-charset.c \
3353 src/libsystemd-terminal/term-page.c \
3354 src/libsystemd-terminal/term-parser.c \
3355 src/libsystemd-terminal/term-screen.c \
3356 src/libsystemd-terminal/term-wcwidth.c \
3357 src/libsystemd-terminal/unifont.h \
3358 src/libsystemd-terminal/unifont-def.h \
3359 src/libsystemd-terminal/unifont.c
3361 libsystemd_terminal_la_LIBADD = \
3362 libudev-internal.la \
3363 libsystemd-internal.la \
3364 libsystemd-shared.la \
3367 systemd_consoled_CFLAGS = \
3371 systemd_consoled_SOURCES = \
3372 src/console/consoled.h \
3373 src/console/consoled.c \
3374 src/console/consoled-display.c \
3375 src/console/consoled-manager.c \
3376 src/console/consoled-session.c \
3377 src/console/consoled-terminal.c \
3378 src/console/consoled-workspace.c
3380 systemd_consoled_LDADD = \
3381 libsystemd-terminal.la \
3382 libsystemd-internal.la \
3383 libsystemd-shared.la \
3386 systemd_evcat_CFLAGS = \
3390 systemd_evcat_SOURCES = \
3391 src/libsystemd-terminal/evcat.c
3393 systemd_evcat_LDADD = \
3394 libsystemd-terminal.la \
3395 libsystemd-internal.la \
3396 libsystemd-shared.la \
3399 systemd_modeset_CFLAGS = \
3403 systemd_modeset_SOURCES = \
3404 src/libsystemd-terminal/modeset.c
3406 systemd_modeset_LDADD = \
3407 libsystemd-terminal.la \
3408 libsystemd-internal.la \
3409 libsystemd-shared.la \
3412 systemd_subterm_SOURCES = \
3413 src/libsystemd-terminal/subterm.c
3415 systemd_subterm_LDADD = \
3416 libsystemd-terminal.la \
3417 libsystemd-internal.la \
3418 libsystemd-shared.la
3420 test_term_page_SOURCES = \
3421 src/libsystemd-terminal/test-term-page.c
3423 test_term_page_LDADD = \
3424 libsystemd-terminal.la \
3425 libsystemd-internal.la \
3426 libsystemd-shared.la
3428 test_term_parser_SOURCES = \
3429 src/libsystemd-terminal/test-term-parser.c
3431 test_term_parser_LDADD = \
3432 libsystemd-terminal.la \
3433 libsystemd-internal.la \
3434 libsystemd-shared.la
3436 test_unifont_SOURCES = \
3437 src/libsystemd-terminal/test-unifont.c
3439 test_unifont_LDADD = \
3440 libsystemd-terminal.la \
3441 libsystemd-internal.la \
3442 libsystemd-shared.la
3444 .PHONY: update-unifont
3445 update-unifont: tools/compile-unifont.py
3446 $(AM_V_GEN)$(PYTHON) $< \
3447 <$(top_srcdir)/src/libsystemd-terminal/unifont.hex \
3448 >$(top_srcdir)/src/libsystemd-terminal/unifont-glyph-array.bin
3449 @echo "unifont-glyph-array.bin has been regenerated"
3451 # ------------------------------------------------------------------------------
3461 include_HEADERS += \
3462 src/libudev/libudev.h
3464 lib_LTLIBRARIES += \
3467 libudev_la_SOURCES =\
3468 src/libudev/libudev.sym \
3469 src/libudev/libudev-private.h \
3470 src/libudev/libudev.c \
3471 src/libudev/libudev-list.c \
3472 src/libudev/libudev-util.c \
3473 src/libudev/libudev-device.c \
3474 src/libudev/libudev-enumerate.c \
3475 src/libudev/libudev-monitor.c \
3476 src/libudev/libudev-queue.c \
3477 src/libudev/libudev-hwdb.c
3479 libudev_la_CFLAGS = \
3483 libudev_la_LDFLAGS = \
3485 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3486 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3488 libudev_la_LIBADD = \
3489 libsystemd-internal.la \
3490 libsystemd-shared.la
3492 pkgconfiglib_DATA += \
3493 src/libudev/libudev.pc
3496 src/libudev/libudev.pc.in
3499 src/libudev/libudev.pc \
3504 $(AM_V_at)$(MKDIR_P) $(dir $@)
3505 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
3508 $(AM_V_at)$(MKDIR_P) $(dir $@)
3509 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
3511 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3512 libudev-install-hook:
3513 libname=libudev.so && $(move-to-rootlibdir)
3515 libudev-uninstall-hook:
3516 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3518 INSTALL_EXEC_HOOKS += libudev-install-hook
3519 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3521 # ------------------------------------------------------------------------------
3522 noinst_LTLIBRARIES += \
3525 libudev_internal_la_SOURCES =\
3526 $(libudev_la_SOURCES) \
3527 src/libudev/libudev-device-private.c
3529 libudev_internal_la_CFLAGS = \
3531 -fvisibility=default
3533 # ------------------------------------------------------------------------------
3535 $(sysconfdir)/udev/rules.d
3537 dist_network_DATA = \
3538 network/99-default.link \
3539 network/80-container-host0.network \
3540 network/80-container-ve.network
3542 dist_udevrules_DATA += \
3543 rules/42-usb-hid-pm.rules \
3544 rules/50-udev-default.rules \
3545 rules/60-drm.rules \
3546 rules/60-keyboard.rules \
3547 rules/70-mouse.rules \
3548 rules/60-persistent-storage-tape.rules \
3549 rules/60-persistent-serial.rules \
3550 rules/60-persistent-input.rules \
3551 rules/60-persistent-alsa.rules \
3552 rules/60-persistent-storage.rules \
3553 rules/64-btrfs.rules \
3554 rules/75-net-description.rules \
3555 rules/75-tty-description.rules \
3556 rules/78-sound-card.rules \
3557 rules/80-net-setup-link.rules \
3558 rules/95-udev-late.rules
3560 nodist_udevrules_DATA += \
3561 rules/99-systemd.rules
3563 udevconfdir = $(sysconfdir)/udev
3564 dist_udevconf_DATA = \
3567 sharepkgconfigdir = $(datadir)/pkgconfig
3568 sharepkgconfig_DATA = \
3572 rules/99-systemd.rules.in \
3576 rules/99-systemd.rules \
3580 units/systemd-udevd.service.in \
3581 units/systemd-udev-trigger.service.in \
3582 units/systemd-udev-settle.service.in
3585 units/systemd-udevd.service \
3586 units/systemd-udev-trigger.service \
3587 units/systemd-udev-settle.service
3589 SOCKETS_TARGET_WANTS += \
3590 systemd-udevd-control.socket \
3591 systemd-udevd-kernel.socket
3593 SYSINIT_TARGET_WANTS += \
3594 systemd-udevd.service \
3595 systemd-udev-trigger.service
3597 rootbin_PROGRAMS += \
3600 rootlibexec_PROGRAMS += \
3603 noinst_LTLIBRARIES += \
3606 src/udev/keyboard-keys.txt:
3607 $(AM_V_at)$(MKDIR_P) $(dir $@)
3608 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include linux/input.h - < /dev/null | $(AWK) '/^#define[ \t]+KEY_[^ ]+[ \t]+[0-9]/ { if ($$2 != "KEY_MAX") { print $$2 } }' | sed 's/^KEY_COFFEE$$/KEY_SCREENLOCK/' > $@
3610 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
3611 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3613 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3614 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3616 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
3617 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
3619 libudev_core_la_SOURCES = \
3621 src/udev/udev-event.c \
3622 src/udev/udev-watch.c \
3623 src/udev/udev-node.c \
3624 src/udev/udev-rules.c \
3625 src/udev/udev-ctrl.c \
3626 src/udev/udev-builtin.c \
3627 src/udev/udev-builtin-btrfs.c \
3628 src/udev/udev-builtin-hwdb.c \
3629 src/udev/udev-builtin-input_id.c \
3630 src/udev/udev-builtin-keyboard.c \
3631 src/udev/udev-builtin-net_id.c \
3632 src/udev/udev-builtin-net_setup_link.c \
3633 src/udev/udev-builtin-path_id.c \
3634 src/udev/udev-builtin-usb_id.c \
3635 src/udev/net/link-config.h \
3636 src/udev/net/link-config.c \
3637 src/udev/net/ethtool-util.h \
3638 src/udev/net/ethtool-util.c
3640 nodist_libudev_core_la_SOURCES = \
3641 src/udev/keyboard-keys-from-name.h \
3642 src/udev/keyboard-keys-to-name.h \
3643 src/udev/net/link-config-gperf.c
3646 $(nodist_libudev_core_la_SOURCES)
3649 src/udev/keyboard-keys-from-name.gperf \
3650 src/udev/keyboard-keys.txt \
3651 src/udev/net/link-config-gperf.c
3654 src/udev/net/link-config-gperf.gperf
3656 libudev_core_la_CFLAGS = \
3661 libudev_core_la_LIBADD = \
3662 libudev-internal.la \
3663 libsystemd-label.la \
3664 libsystemd-internal.la \
3665 libsystemd-network.la \
3666 libsystemd-shared.la \
3671 libudev_core_la_SOURCES += \
3672 src/udev/udev-builtin-kmod.c
3674 dist_udevrules_DATA += \
3675 rules/80-drivers.rules
3679 libudev_core_la_SOURCES += \
3680 src/udev/udev-builtin-blkid.c
3684 libudev_core_la_SOURCES += \
3685 src/udev/udev-builtin-uaccess.c \
3686 src/login/logind-acl.c \
3687 src/libsystemd/sd-login/sd-login.c \
3688 src/systemd/sd-login.h
3690 libudev_core_la_LIBADD += \
3694 systemd_udevd_SOURCES = \
3697 systemd_udevd_LDADD = \
3701 src/udev/udevadm.c \
3702 src/udev/udevadm-info.c \
3703 src/udev/udevadm-control.c \
3704 src/udev/udevadm-monitor.c \
3705 src/udev/udevadm-hwdb.c \
3706 src/udev/udevadm-settle.c \
3707 src/udev/udevadm-trigger.c \
3708 src/udev/udevadm-test.c \
3709 src/udev/udevadm-test-builtin.c \
3710 src/udev/udevadm-util.c \
3711 src/udev/udevadm-util.h
3716 # ------------------------------------------------------------------------------
3719 $(sysconfdir)/udev/hwdb.d
3721 systemd_hwdb_SOURCES = \
3722 src/libsystemd/sd-hwdb/hwdb-internal.h \
3725 systemd_hwdb_LDADD = \
3726 libsystemd-shared.la \
3727 libsystemd-internal.la \
3730 rootbin_PROGRAMS += \
3733 dist_udevhwdb_DATA = \
3734 hwdb/20-pci-vendor-model.hwdb \
3735 hwdb/20-pci-classes.hwdb \
3736 hwdb/20-usb-vendor-model.hwdb \
3737 hwdb/20-usb-classes.hwdb \
3738 hwdb/20-sdio-vendor-model.hwdb \
3739 hwdb/20-sdio-classes.hwdb \
3740 hwdb/20-bluetooth-vendor-product.hwdb \
3741 hwdb/20-acpi-vendor.hwdb \
3743 hwdb/20-net-ifname.hwdb \
3744 hwdb/60-keyboard.hwdb \
3748 units/systemd-hwdb-update.service.in
3751 units/systemd-hwdb-update.service
3753 SYSINIT_TARGET_WANTS += \
3754 systemd-hwdb-update.service
3756 # Update hwdb on installation. Do not bother if installing
3757 # in DESTDIR, since this is likely for packaging purposes.
3759 -test -n "$(DESTDIR)" || $(rootbindir)/systemd-hwdb update
3761 INSTALL_DATA_HOOKS += \
3765 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3768 # ------------------------------------------------------------------------------
3775 test/rule-syntax-check.py \
3783 test_libudev_SOURCES = \
3784 src/test/test-libudev.c
3786 test_libudev_LDADD = \
3787 libsystemd-label.la \
3788 libudev-internal.la \
3789 libsystemd-shared.la \
3790 libsystemd-internal.la
3792 test_udev_SOURCES = \
3793 src/test/test-udev.c
3802 test_udev_LDADD += \
3809 # packed sysfs test tree
3811 $(AM_V_at)$(MKDIR_P) $(dir $@)
3812 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3816 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3821 test/rule-syntax-check.py
3823 # ------------------------------------------------------------------------------
3825 src/udev/ata_id/ata_id.c
3828 libudev-internal.la \
3829 libsystemd-shared.la
3831 udevlibexec_PROGRAMS += \
3834 # ------------------------------------------------------------------------------
3835 cdrom_id_SOURCES = \
3836 src/udev/cdrom_id/cdrom_id.c
3839 libudev-internal.la \
3840 libsystemd-shared.la
3842 udevlibexec_PROGRAMS += \
3845 dist_udevrules_DATA += \
3846 rules/60-cdrom_id.rules
3848 # ------------------------------------------------------------------------------
3850 src/udev/collect/collect.c
3853 libudev-internal.la \
3854 libsystemd-shared.la
3856 udevlibexec_PROGRAMS += \
3859 # ------------------------------------------------------------------------------
3861 src/udev/scsi_id/scsi_id.c \
3862 src/udev/scsi_id/scsi_serial.c \
3863 src/udev/scsi_id/scsi.h \
3864 src/udev/scsi_id/scsi_id.h
3867 libudev-internal.la \
3868 libsystemd-shared.la
3870 udevlibexec_PROGRAMS += \
3874 src/udev/scsi_id/README
3876 # ------------------------------------------------------------------------------
3878 src/udev/v4l_id/v4l_id.c
3881 libudev-internal.la \
3882 libsystemd-shared.la
3884 udevlibexec_PROGRAMS += \
3887 dist_udevrules_DATA += \
3888 rules/60-persistent-v4l.rules
3890 # ------------------------------------------------------------------------------
3891 accelerometer_SOURCES = \
3892 src/udev/accelerometer/accelerometer.c
3894 accelerometer_LDADD = \
3895 libudev-internal.la \
3896 libsystemd-shared.la
3898 udevlibexec_PROGRAMS += \
3901 dist_udevrules_DATA += \
3902 rules/61-accelerometer.rules
3904 # ------------------------------------------------------------------------------
3911 libgudev_includedir = \
3912 $(includedir)/gudev-1.0/gudev
3914 libgudev_include_HEADERS = \
3916 src/gudev/gudevenums.h \
3917 src/gudev/gudevenumtypes.h \
3918 src/gudev/gudevtypes.h \
3919 src/gudev/gudevclient.h \
3920 src/gudev/gudevdevice.h \
3921 src/gudev/gudevenumerator.h
3923 lib_LTLIBRARIES += libgudev-1.0.la
3925 pkgconfiglib_DATA += \
3926 src/gudev/gudev-1.0.pc
3929 src/gudev/gudev-1.0.pc
3931 libgudev_1_0_la_SOURCES = \
3932 src/gudev/libgudev-1.0.sym \
3933 src/gudev/gudevenums.h \
3934 src/gudev/gudevenumtypes.h \
3935 src/gudev/gudevenumtypes.h\
3936 src/gudev/gudevtypes.h \
3937 src/gudev/gudevclient.h \
3938 src/gudev/gudevclient.c \
3939 src/gudev/gudevdevice.h \
3940 src/gudev/gudevdevice.c \
3941 src/gudev/gudevenumerator.h \
3942 src/gudev/gudevenumerator.c \
3943 src/gudev/gudevprivate.h
3945 nodist_libgudev_1_0_la_SOURCES = \
3946 src/gudev/gudevmarshal.h \
3947 src/gudev/gudevmarshal.c \
3948 src/gudev/gudevenumtypes.h \
3949 src/gudev/gudevenumtypes.c
3952 $(nodist_libgudev_1_0_la_SOURCES)
3954 libgudev_1_0_la_CPPFLAGS = \
3956 -I$(top_builddir)/src\
3957 -I$(top_srcdir)/src\
3958 -I$(top_builddir)/src/gudev \
3959 -I$(top_srcdir)/src/gudev \
3960 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3961 -D_GUDEV_COMPILATION \
3962 -DG_LOG_DOMAIN=\"GUdev\"
3964 libgudev_1_0_la_CFLAGS = \
3966 -fvisibility=default \
3969 libgudev_1_0_la_LIBADD = \
3973 libgudev_1_0_la_LDFLAGS = \
3975 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3978 -Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym
3980 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3981 $(AM_V_at)$(MKDIR_P) $(dir $@)
3982 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3984 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3985 $(AM_V_at)$(MKDIR_P) $(dir $@)
3986 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3987 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3989 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3990 $(AM_V_at)$(MKDIR_P) $(dir $@)
3991 $(AM_V_GEN)glib-mkenums --template $^ > $@
3993 if HAVE_INTROSPECTION
3994 -include $(INTROSPECTION_MAKEFILE)
3996 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3998 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
4000 src_gudev_GUdev_1_0_gir_CFLAGS = \
4003 -D_GUDEV_COMPILATION \
4004 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
4005 -I$(top_srcdir)/src \
4006 -I$(top_builddir)/src \
4007 -I$(top_srcdir)/src/gudev \
4008 -I$(top_builddir)/src/gudev
4010 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
4012 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
4013 --pkg-export=gudev-1.0 \
4016 src_gudev_GUdev_1_0_gir_FILES = \
4018 src/gudev/gudevtypes.h \
4019 src/gudev/gudevenums.h \
4020 src/gudev/gudevenumtypes.h \
4021 src/gudev/gudevclient.h \
4022 src/gudev/gudevdevice.h \
4023 src/gudev/gudevenumerator.h \
4024 src/gudev/gudevclient.c \
4025 src/gudev/gudevdevice.c \
4026 src/gudev/gudevenumerator.c
4028 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
4029 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
4031 girdir = $(datadir)/gir-1.0
4033 src/gudev/GUdev-1.0.gir
4035 typelibsdir = $(libdir)/girepository-1.0
4037 src/gudev/GUdev-1.0.typelib
4039 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
4040 endif # HAVE_INTROSPECTION
4044 src/gudev/gudev-1.0.pc.in \
4045 src/gudev/gudevmarshal.list \
4046 src/gudev/gudevenumtypes.h.template \
4047 src/gudev/gudevenumtypes.c.template \
4048 src/gudev/gjs-example.js \
4049 src/gudev/seed-example-enum.js \
4050 src/gudev/seed-example.js
4052 # ------------------------------------------------------------------------------
4053 mtd_probe_SOURCES = \
4054 src/udev/mtd_probe/mtd_probe.c \
4055 src/udev/mtd_probe/mtd_probe.h \
4056 src/udev/mtd_probe/probe_smartmedia.c
4058 dist_udevrules_DATA += \
4059 rules/75-probe_mtd.rules
4061 udevlibexec_PROGRAMS += \
4064 # ------------------------------------------------------------------------------
4065 test_id128_SOURCES = \
4066 src/test/test-id128.c
4068 test_id128_LDADD = \
4069 libsystemd-internal.la \
4070 libsystemd-shared.la
4075 # ------------------------------------------------------------------------------
4077 rootlibexec_PROGRAMS += \
4080 systemd_activate_SOURCES = \
4081 src/activate/activate.c
4083 systemd_activate_LDADD = \
4084 libsystemd-label.la \
4085 libsystemd-internal.la \
4086 libsystemd-shared.la
4088 # ------------------------------------------------------------------------------
4089 systemd_journald_SOURCES = \
4090 src/journal/journald.c \
4091 src/journal/journald-server.h
4093 systemd_journald_LDADD = \
4094 libsystemd-journal-core.la \
4095 libsystemd-internal.la \
4096 libsystemd-shared.la
4098 systemd_cat_SOURCES = \
4101 systemd_cat_LDADD = \
4102 libsystemd-journal-core.la
4105 rootlibexec_PROGRAMS += \
4106 systemd-journal-remote
4108 systemd_journal_remote_SOURCES = \
4109 src/journal-remote/journal-remote-parse.h \
4110 src/journal-remote/journal-remote-parse.c \
4111 src/journal-remote/journal-remote-write.h \
4112 src/journal-remote/journal-remote-write.c \
4113 src/journal-remote/journal-remote.h \
4114 src/journal-remote/journal-remote.c
4116 systemd_journal_remote_LDADD = \
4117 libsystemd-internal.la \
4118 libsystemd-journal-core.la
4120 systemd_journal_remote_SOURCES += \
4121 src/journal-remote/microhttpd-util.h \
4122 src/journal-remote/microhttpd-util.c
4124 systemd_journal_remote_CFLAGS = \
4126 $(MICROHTTPD_CFLAGS)
4128 systemd_journal_remote_LDADD += \
4132 dist_sysusers_DATA += \
4133 sysusers.d/systemd-remote.conf
4137 dist_tmpfiles_DATA += \
4138 tmpfiles.d/systemd-remote.conf
4142 systemd_journal_remote_LDADD += \
4145 # systemd-journal-remote make sense mostly with full crypto stack
4146 dist_systemunit_DATA += \
4147 units/systemd-journal-remote.socket
4149 nodist_systemunit_DATA += \
4150 units/systemd-journal-remote.service
4153 units/systemd-journal-remote.service.in
4155 journal-remote-install-hook: journal-install-hook
4156 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
4157 -chown 0:0 $(DESTDIR)/var/log/journal/remote
4158 -chmod 755 $(DESTDIR)/var/log/journal/remote
4160 INSTALL_EXEC_HOOKS += journal-remote-install-hook
4164 nodist_pkgsysconf_DATA += \
4165 src/journal-remote/journal-remote.conf
4168 src/journal-remote/journal-remote.conf.in
4171 src/journal-remote/journal-remote.conf
4175 rootlibexec_PROGRAMS += \
4176 systemd-journal-upload
4178 systemd_journal_upload_SOURCES = \
4179 src/journal-remote/journal-upload.h \
4180 src/journal-remote/journal-upload.c \
4181 src/journal-remote/journal-upload-journal.c
4183 systemd_journal_upload_CFLAGS = \
4187 systemd_journal_upload_LDADD = \
4188 libsystemd-internal.la \
4189 libsystemd-journal-internal.la \
4190 libsystemd-shared.la \
4193 nodist_systemunit_DATA += \
4194 units/systemd-journal-upload.service
4197 units/systemd-journal-upload.service.in
4199 nodist_pkgsysconf_DATA += \
4200 src/journal-remote/journal-upload.conf
4203 src/journal-remote/journal-upload.conf.in
4206 src/journal-remote/journal-upload.conf
4209 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4210 journalctl_CFLAGS = \
4213 journalctl_SOURCES = \
4214 src/journal/journalctl.c
4216 journalctl_LDADD = \
4217 libsystemd-journal-internal.la \
4218 libsystemd-internal.la \
4219 libsystemd-logs.la \
4220 libsystemd-shared.la
4223 journalctl_LDADD += \
4228 journalctl_SOURCES += \
4229 src/journal/journal-qrcode.c \
4230 src/journal/journal-qrcode.h
4232 journalctl_CFLAGS += \
4235 journalctl_LDADD += \
4239 test_journal_SOURCES = \
4240 src/journal/test-journal.c
4242 test_journal_LDADD = \
4243 libsystemd-journal-core.la
4245 test_journal_send_SOURCES = \
4246 src/journal/test-journal-send.c
4248 test_journal_send_LDADD = \
4249 libsystemd-journal-core.la
4251 test_journal_syslog_SOURCES = \
4252 src/journal/test-journal-syslog.c
4254 test_journal_syslog_LDADD = \
4255 libsystemd-journal-core.la
4257 test_journal_match_SOURCES = \
4258 src/journal/test-journal-match.c
4260 test_journal_match_LDADD = \
4261 libsystemd-journal-core.la
4263 test_journal_enum_SOURCES = \
4264 src/journal/test-journal-enum.c
4266 test_journal_enum_LDADD = \
4267 libsystemd-journal-core.la
4269 test_journal_stream_SOURCES = \
4270 src/journal/test-journal-stream.c
4272 test_journal_stream_LDADD = \
4273 libsystemd-journal-core.la
4275 test_journal_flush_SOURCES = \
4276 src/journal/test-journal-flush.c
4278 test_journal_flush_LDADD = \
4279 libsystemd-journal-core.la
4281 test_journal_init_SOURCES = \
4282 src/journal/test-journal-init.c
4284 test_journal_init_LDADD = \
4285 libsystemd-journal-core.la
4287 test_journal_verify_SOURCES = \
4288 src/journal/test-journal-verify.c
4290 test_journal_verify_LDADD = \
4291 libsystemd-journal-core.la
4293 test_journal_interleaving_SOURCES = \
4294 src/journal/test-journal-interleaving.c
4296 test_journal_interleaving_LDADD = \
4297 libsystemd-journal-core.la
4299 test_mmap_cache_SOURCES = \
4300 src/journal/test-mmap-cache.c
4302 test_mmap_cache_LDADD = \
4303 libsystemd-journal-core.la
4305 test_catalog_SOURCES = \
4306 src/journal/test-catalog.c
4308 test_catalog_CPPFLAGS = \
4310 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
4312 test_catalog_LDADD = \
4313 libsystemd-journal-core.la
4315 test_compress_SOURCES = \
4316 src/journal/test-compress.c
4318 test_compress_LDADD = \
4319 libsystemd-journal-internal.la \
4320 libsystemd-shared.la
4322 test_compress_benchmark_SOURCES = \
4323 src/journal/test-compress-benchmark.c
4325 test_compress_benchmark_LDADD = \
4326 libsystemd-journal-internal.la \
4327 libsystemd-shared.la
4329 libsystemd_journal_core_la_SOURCES = \
4330 src/journal/journald-kmsg.c \
4331 src/journal/journald-kmsg.h \
4332 src/journal/journald-syslog.c \
4333 src/journal/journald-syslog.h \
4334 src/journal/journald-stream.c \
4335 src/journal/journald-stream.h \
4336 src/journal/journald-server.c \
4337 src/journal/journald-server.h \
4338 src/journal/journald-console.c \
4339 src/journal/journald-console.h \
4340 src/journal/journald-wall.c \
4341 src/journal/journald-wall.h \
4342 src/journal/journald-native.c \
4343 src/journal/journald-native.h \
4344 src/journal/journald-audit.c \
4345 src/journal/journald-audit.h \
4346 src/journal/journald-rate-limit.c \
4347 src/journal/journald-rate-limit.h \
4348 src/journal/journal-internal.h
4350 nodist_libsystemd_journal_core_la_SOURCES = \
4351 src/journal/journald-gperf.c
4353 libsystemd_journal_core_la_LIBADD = \
4354 libsystemd-journal-internal.la \
4355 libudev-internal.la \
4356 libsystemd-label.la \
4357 libsystemd-internal.la \
4358 libsystemd-shared.la
4361 libsystemd_journal_core_la_LIBADD += \
4365 noinst_LTLIBRARIES += \
4366 libsystemd-journal-core.la
4368 journal-install-hook:
4369 -$(MKDIR_P) $(DESTDIR)/var/log/journal
4370 -chown 0:0 $(DESTDIR)/var/log/journal
4371 -chmod 755 $(DESTDIR)/var/log/journal
4372 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4373 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4375 journal-uninstall-hook:
4376 -rmdir $(DESTDIR)/var/log/journal/remote
4377 -rmdir $(DESTDIR)/var/log/journal/
4379 INSTALL_EXEC_HOOKS += journal-install-hook
4380 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4382 # ------------------------------------------------------------------------------
4383 # Update catalog on installation. Do not bother if installing
4384 # in DESTDIR, since this is likely for packaging purposes.
4385 catalog-update-hook:
4386 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4388 INSTALL_DATA_HOOKS += \
4391 catalog-remove-hook:
4392 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4394 UNINSTALL_DATA_HOOKS += \
4403 test-journal-syslog \
4404 test-journal-match \
4405 test-journal-stream \
4407 test-journal-verify \
4408 test-journal-interleaving \
4409 test-journal-flush \
4416 test-compress-benchmark
4419 pkginclude_HEADERS += \
4420 src/systemd/sd-journal.h \
4421 src/systemd/sd-messages.h \
4422 src/systemd/_sd-common.h
4424 libsystemd_journal_internal_la_SOURCES = \
4425 src/journal/sd-journal.c \
4426 src/systemd/sd-journal.h \
4427 src/systemd/_sd-common.h \
4428 src/journal/journal-file.c \
4429 src/journal/journal-file.h \
4430 src/journal/journal-vacuum.c \
4431 src/journal/journal-vacuum.h \
4432 src/journal/journal-verify.c \
4433 src/journal/journal-verify.h \
4434 src/journal/lookup3.c \
4435 src/journal/lookup3.h \
4436 src/journal/journal-send.c \
4437 src/journal/journal-def.h \
4438 src/journal/compress.h \
4439 src/journal/catalog.c \
4440 src/journal/catalog.h \
4441 src/journal/mmap-cache.c \
4442 src/journal/mmap-cache.h \
4443 src/journal/compress.c
4445 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4446 libsystemd_journal_internal_la_CFLAGS = \
4449 libsystemd_journal_internal_la_LIBADD = \
4453 libsystemd_journal_internal_la_CFLAGS += \
4456 libsystemd_journal_internal_la_LIBADD += \
4461 libsystemd_journal_internal_la_LIBADD += \
4466 libsystemd_journal_internal_la_SOURCES += \
4467 src/journal/journal-authenticate.c \
4468 src/journal/journal-authenticate.h \
4469 src/journal/fsprg.c \
4472 libsystemd_journal_internal_la_LIBADD += \
4475 # fsprg.c is a drop-in file using void pointer arithmetic
4476 libsystemd_journal_internal_la_CFLAGS += \
4481 noinst_LTLIBRARIES += \
4482 libsystemd-journal-internal.la
4484 rootlibexec_PROGRAMS += \
4487 rootbin_PROGRAMS += \
4493 dist_systemunit_DATA += \
4494 units/systemd-journald.socket \
4495 units/systemd-journald-dev-log.socket \
4496 units/systemd-journald-audit.socket
4498 nodist_systemunit_DATA += \
4499 units/systemd-journald.service \
4500 units/systemd-journal-flush.service \
4501 units/systemd-journal-catalog-update.service
4503 dist_pkgsysconf_DATA += \
4504 src/journal/journald.conf
4506 dist_catalog_DATA = \
4507 catalog/systemd.fr.catalog \
4508 catalog/systemd.it.catalog \
4509 catalog/systemd.pl.catalog \
4510 catalog/systemd.pt_BR.catalog \
4511 catalog/systemd.ru.catalog \
4512 catalog/systemd.catalog
4514 SOCKETS_TARGET_WANTS += \
4515 systemd-journald.socket \
4516 systemd-journald-dev-log.socket \
4517 systemd-journald-audit.socket
4519 SYSINIT_TARGET_WANTS += \
4520 systemd-journald.service \
4521 systemd-journal-flush.service \
4522 systemd-journal-catalog-update.service
4525 units/systemd-journald.service.in \
4526 units/systemd-journal-flush.service.in \
4527 units/systemd-journal-catalog-update.service.in \
4528 src/journal/journald-gperf.gperf
4531 src/journal/journald-gperf.c
4533 # ------------------------------------------------------------------------------
4535 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4537 rootlibexec_PROGRAMS += \
4538 systemd-journal-gatewayd
4540 systemd_journal_gatewayd_SOURCES = \
4541 src/journal-remote/journal-gatewayd.c \
4542 src/journal-remote/microhttpd-util.h \
4543 src/journal-remote/microhttpd-util.c
4545 systemd_journal_gatewayd_LDADD = \
4546 libsystemd-logs.la \
4547 libsystemd-journal-internal.la \
4548 libsystemd-internal.la \
4549 libsystemd-shared.la \
4553 systemd_journal_gatewayd_LDADD += \
4557 systemd_journal_gatewayd_CFLAGS = \
4559 $(MICROHTTPD_CFLAGS)
4561 systemd_journal_gatewayd_CPPFLAGS = \
4563 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4565 dist_systemunit_DATA += \
4566 units/systemd-journal-gatewayd.socket
4568 nodist_systemunit_DATA += \
4569 units/systemd-journal-gatewayd.service
4571 dist_gatewayddocumentroot_DATA = \
4572 src/journal-remote/browse.html
4577 units/systemd-journal-gatewayd.service.in
4579 # ------------------------------------------------------------------------------
4581 systemd_socket_proxyd_SOURCES = \
4582 src/socket-proxy/socket-proxyd.c
4584 systemd_socket_proxyd_LDADD = \
4585 libsystemd-logs.la \
4586 libsystemd-internal.la \
4587 libsystemd-journal-internal.la \
4588 libsystemd-shared.la \
4589 libsystemd-resolve.la
4591 # ------------------------------------------------------------------------------
4593 systemd_coredump_SOURCES = \
4594 src/journal/coredump.c \
4595 src/journal/coredump-vacuum.c \
4596 src/journal/coredump-vacuum.h
4598 systemd_coredump_LDADD = \
4599 libsystemd-journal-internal.la \
4600 libsystemd-label.la \
4601 libsystemd-internal.la \
4602 libsystemd-shared.la
4605 systemd_coredump_SOURCES += \
4606 src/journal/stacktrace.c \
4607 src/journal/stacktrace.h
4609 systemd_coredump_LDADD += \
4613 rootlibexec_PROGRAMS += \
4616 dist_pkgsysconf_DATA += \
4617 src/journal/coredump.conf
4620 systemd_coredump_LDADD += \
4624 coredumpctl_SOURCES = \
4625 src/journal/coredumpctl.c
4627 coredumpctl_LDADD = \
4628 libsystemd-journal-internal.la \
4629 libsystemd-internal.la \
4630 libsystemd-shared.la
4636 test-coredump-vacuum
4638 test_coredump_vacuum_SOURCES = \
4639 src/journal/test-coredump-vacuum.c \
4640 src/journal/coredump-vacuum.c \
4641 src/journal/coredump-vacuum.h
4643 test_coredump_vacuum_LDADD = \
4644 libsystemd-internal.la \
4645 libsystemd-shared.la
4647 dist_bashcompletion_DATA += \
4648 shell-completion/bash/coredumpctl
4650 dist_zshcompletion_DATA += \
4651 shell-completion/zsh/_coredumpctl
4654 sysctl.d/50-coredump.conf
4657 sysctl.d/50-coredump.conf
4661 sysctl.d/50-coredump.conf.in
4663 # ------------------------------------------------------------------------------
4665 systemd_binfmt_SOURCES = \
4668 systemd_binfmt_LDADD = \
4669 libsystemd-shared.la
4671 rootlibexec_PROGRAMS += \
4674 dist_systemunit_DATA += \
4675 units/proc-sys-fs-binfmt_misc.automount \
4676 units/proc-sys-fs-binfmt_misc.mount
4678 nodist_systemunit_DATA += \
4679 units/systemd-binfmt.service
4682 $(prefix)/lib/binfmt.d \
4683 $(sysconfdir)/binfmt.d
4685 SYSINIT_TARGET_WANTS += \
4686 systemd-binfmt.service \
4687 proc-sys-fs-binfmt_misc.automount
4692 units/systemd-binfmt.service.in
4694 # ------------------------------------------------------------------------------
4696 systemd_vconsole_setup_SOURCES = \
4697 src/vconsole/vconsole-setup.c
4699 systemd_vconsole_setup_LDADD = \
4700 libsystemd-shared.la
4702 rootlibexec_PROGRAMS += \
4703 systemd-vconsole-setup
4705 nodist_systemunit_DATA += \
4706 units/systemd-vconsole-setup.service
4708 nodist_udevrules_DATA += \
4709 src/vconsole/90-vconsole.rules
4711 SYSINIT_TARGET_WANTS += \
4712 systemd-vconsole-setup.service
4715 src/vconsole/90-vconsole.rules
4719 src/vconsole/90-vconsole.rules.in \
4720 units/systemd-vconsole-setup.service.in
4722 # ------------------------------------------------------------------------------
4724 systemd_bootchart_SOURCES = \
4725 src/bootchart/bootchart.c \
4726 src/bootchart/bootchart.h \
4727 src/bootchart/store.c \
4728 src/bootchart/store.h \
4729 src/bootchart/svg.c \
4732 systemd_bootchart_LDADD = \
4733 libsystemd-journal-internal.la \
4734 libsystemd-shared.la
4736 rootlibexec_PROGRAMS += \
4739 dist_pkgsysconf_DATA += \
4740 src/bootchart/bootchart.conf
4742 nodist_systemunit_DATA += \
4743 units/systemd-bootchart.service
4746 units/systemd-bootchart.service.in
4749 units/systemd-bootchart.service
4752 # ------------------------------------------------------------------------------
4753 if ENABLE_QUOTACHECK
4754 rootlibexec_PROGRAMS += \
4757 nodist_systemunit_DATA += \
4758 units/systemd-quotacheck.service
4760 systemd_quotacheck_SOURCES = \
4761 src/quotacheck/quotacheck.c
4763 systemd_quotacheck_LDADD = \
4764 libsystemd-shared.la
4768 units/systemd-quotacheck.service.in
4770 nodist_systemunit_DATA += \
4771 units/quotaon.service
4773 # ------------------------------------------------------------------------------
4774 if ENABLE_RANDOMSEED
4775 rootlibexec_PROGRAMS += \
4778 nodist_systemunit_DATA += \
4779 units/systemd-random-seed.service
4781 systemd_random_seed_SOURCES = \
4782 src/random-seed/random-seed.c
4784 systemd_random_seed_LDADD = \
4785 libsystemd-label.la \
4786 libsystemd-shared.la
4788 SYSINIT_TARGET_WANTS += \
4789 systemd-random-seed.service
4794 units/systemd-random-seed.service.in
4796 # ------------------------------------------------------------------------------
4798 rootlibexec_PROGRAMS += \
4801 nodist_systemunit_DATA += \
4802 units/systemd-backlight@.service
4804 systemd_backlight_SOURCES = \
4805 src/backlight/backlight.c
4807 systemd_backlight_LDADD = \
4808 libsystemd-label.la \
4809 libudev-internal.la \
4810 libsystemd-shared.la
4814 units/systemd-backlight@.service.in
4816 # ------------------------------------------------------------------------------
4818 rootlibexec_PROGRAMS += \
4821 nodist_systemunit_DATA += \
4822 units/systemd-rfkill@.service
4824 systemd_rfkill_SOURCES = \
4827 systemd_rfkill_LDADD = \
4828 libsystemd-label.la \
4829 libudev-internal.la \
4830 libsystemd-shared.la
4834 units/systemd-rfkill@.service.in
4836 # ------------------------------------------------------------------------------
4837 if HAVE_LIBCRYPTSETUP
4838 rootlibexec_PROGRAMS += \
4841 systemgenerator_PROGRAMS += \
4842 systemd-cryptsetup-generator
4844 dist_systemunit_DATA += \
4845 units/cryptsetup.target \
4846 units/cryptsetup-pre.target
4848 systemd_cryptsetup_SOURCES = \
4849 src/cryptsetup/cryptsetup.c
4851 systemd_cryptsetup_CFLAGS = \
4853 $(LIBCRYPTSETUP_CFLAGS)
4855 systemd_cryptsetup_LDADD = \
4856 libsystemd-label.la \
4857 libudev-internal.la \
4858 libsystemd-shared.la \
4859 $(LIBCRYPTSETUP_LIBS)
4861 systemd_cryptsetup_generator_SOURCES = \
4862 src/cryptsetup/cryptsetup-generator.c
4864 systemd_cryptsetup_generator_LDADD = \
4865 libsystemd-label.la \
4866 libsystemd-shared.la
4868 SYSINIT_TARGET_WANTS += \
4873 # ------------------------------------------------------------------------------
4875 systemd_hostnamed_SOURCES = \
4876 src/hostname/hostnamed.c
4878 systemd_hostnamed_LDADD = \
4879 libsystemd-label.la \
4880 libsystemd-internal.la \
4881 libsystemd-shared.la
4883 rootlibexec_PROGRAMS += \
4886 nodist_systemunit_DATA += \
4887 units/systemd-hostnamed.service
4889 dist_systemunit_DATA_busnames += \
4890 units/org.freedesktop.hostname1.busname
4892 dist_dbuspolicy_DATA += \
4893 src/hostname/org.freedesktop.hostname1.conf
4895 dist_dbussystemservice_DATA += \
4896 src/hostname/org.freedesktop.hostname1.service
4898 polkitpolicy_files += \
4899 src/hostname/org.freedesktop.hostname1.policy
4901 SYSTEM_UNIT_ALIASES += \
4902 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4904 BUSNAMES_TARGET_WANTS += \
4905 org.freedesktop.hostname1.busname
4907 hostnamectl_SOURCES = \
4908 src/hostname/hostnamectl.c
4910 hostnamectl_LDADD = \
4911 libsystemd-internal.la \
4912 libsystemd-shared.la
4917 dist_bashcompletion_DATA += \
4918 shell-completion/bash/hostnamectl
4920 dist_zshcompletion_DATA += \
4921 shell-completion/zsh/_hostnamectl
4925 polkitpolicy_in_files += \
4926 src/hostname/org.freedesktop.hostname1.policy.in
4929 units/systemd-hostnamed.service.in
4931 # ------------------------------------------------------------------------------
4932 dist_systemunit_DATA_busnames += \
4933 units/org.freedesktop.systemd1.busname
4935 BUSNAMES_TARGET_WANTS += \
4936 org.freedesktop.systemd1.busname
4938 # ------------------------------------------------------------------------------
4940 systemd_localed_SOURCES = \
4941 src/locale/localed.c
4943 systemd_localed_LDADD = \
4944 libsystemd-label.la \
4945 libsystemd-internal.la \
4946 libsystemd-shared.la \
4949 systemd_localed_CFLAGS = \
4953 nodist_systemunit_DATA += \
4954 units/systemd-localed.service
4956 dist_systemunit_DATA_busnames += \
4957 units/org.freedesktop.locale1.busname
4959 rootlibexec_PROGRAMS += \
4962 dist_dbuspolicy_DATA += \
4963 src/locale/org.freedesktop.locale1.conf
4965 dist_dbussystemservice_DATA += \
4966 src/locale/org.freedesktop.locale1.service
4968 polkitpolicy_files += \
4969 src/locale/org.freedesktop.locale1.policy
4971 SYSTEM_UNIT_ALIASES += \
4972 systemd-localed.service dbus-org.freedesktop.locale1.service
4974 BUSNAMES_TARGET_WANTS += \
4975 org.freedesktop.locale1.busname
4977 dist_pkgdata_DATA += \
4978 src/locale/kbd-model-map
4980 dist_noinst_SCRIPT = \
4981 src/locale/generate-kbd-model-map
4983 localectl_SOURCES = \
4984 src/locale/localectl.c
4987 libsystemd-internal.la \
4988 libsystemd-shared.la
4993 dist_bashcompletion_DATA += \
4994 shell-completion/bash/localectl
4996 dist_zshcompletion_DATA += \
4997 shell-completion/zsh/_localectl
5001 .PHONY: update-kbd-model-map
5003 polkitpolicy_in_files += \
5004 src/locale/org.freedesktop.locale1.policy.in
5007 units/systemd-localed.service.in
5009 # ------------------------------------------------------------------------------
5011 systemd_timedated_SOURCES = \
5012 src/timedate/timedated.c
5014 systemd_timedated_LDADD = \
5015 libsystemd-label.la \
5016 libsystemd-internal.la \
5017 libsystemd-shared.la
5019 rootlibexec_PROGRAMS += \
5022 dist_dbussystemservice_DATA += \
5023 src/timedate/org.freedesktop.timedate1.service
5025 dist_dbuspolicy_DATA += \
5026 src/timedate/org.freedesktop.timedate1.conf
5028 nodist_systemunit_DATA += \
5029 units/systemd-timedated.service
5031 dist_systemunit_DATA_busnames += \
5032 units/org.freedesktop.timedate1.busname
5034 polkitpolicy_files += \
5035 src/timedate/org.freedesktop.timedate1.policy
5037 SYSTEM_UNIT_ALIASES += \
5038 systemd-timedated.service dbus-org.freedesktop.timedate1.service
5040 BUSNAMES_TARGET_WANTS += \
5041 org.freedesktop.timedate1.busname
5043 timedatectl_SOURCES = \
5044 src/timedate/timedatectl.c
5046 timedatectl_LDADD = \
5047 libsystemd-internal.la \
5048 libsystemd-shared.la
5053 dist_bashcompletion_DATA += \
5054 shell-completion/bash/timedatectl
5056 dist_zshcompletion_DATA += \
5057 shell-completion/zsh/_timedatectl
5060 polkitpolicy_in_files += \
5061 src/timedate/org.freedesktop.timedate1.policy.in
5064 units/systemd-timedated.service.in
5066 # ------------------------------------------------------------------------------
5068 systemd_timesyncd_SOURCES = \
5069 src/timesync/timesyncd.c \
5070 src/timesync/timesyncd-manager.c \
5071 src/timesync/timesyncd-manager.h \
5072 src/timesync/timesyncd-conf.c \
5073 src/timesync/timesyncd-conf.h \
5074 src/timesync/timesyncd-server.c \
5075 src/timesync/timesyncd-server.h
5077 nodist_systemd_timesyncd_SOURCES = \
5078 src/timesync/timesyncd-gperf.c
5081 src/timesync/timesyncd-gperf.gperf
5084 src/timesync/timesyncd-gperf.c
5086 systemd_timesyncd_LDADD = \
5087 libsystemd-resolve.la \
5088 libsystemd-network.la \
5089 libsystemd-label.la \
5090 libsystemd-internal.la \
5091 libsystemd-shared.la
5093 rootlibexec_PROGRAMS += \
5096 nodist_systemunit_DATA += \
5097 units/systemd-timesyncd.service
5099 GENERAL_ALIASES += \
5100 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
5103 units/systemd-timesyncd.service.in
5105 nodist_pkgsysconf_DATA += \
5106 src/timesync/timesyncd.conf
5109 src/timesync/timesyncd.conf.in
5112 src/timesync/timesyncd.conf
5115 # ------------------------------------------------------------------------------
5117 libnss_myhostname_la_SOURCES = \
5118 src/nss-myhostname/nss-myhostname.sym \
5119 src/nss-myhostname/nss-myhostname.c
5121 libnss_myhostname_la_LDFLAGS = \
5128 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
5130 libnss_myhostname_la_LIBADD = \
5131 libsystemd-shared.la \
5132 libsystemd-internal.la
5134 lib_LTLIBRARIES += \
5135 libnss_myhostname.la
5138 # ------------------------------------------------------------------------------
5140 systemd_machined_SOURCES = \
5141 src/machine/machined.c \
5142 src/machine/machined.h
5144 systemd_machined_LDADD = \
5145 libsystemd-machine-core.la
5147 rootlibexec_PROGRAMS += \
5150 libsystemd_machine_core_la_SOURCES = \
5151 src/machine/machine.c \
5152 src/machine/machine.h \
5153 src/machine/machined-dbus.c \
5154 src/machine/machine-dbus.c \
5155 src/machine/machine-dbus.h \
5156 src/machine/image-dbus.c \
5157 src/machine/image-dbus.h
5159 libsystemd_machine_core_la_LIBADD = \
5160 libsystemd-label.la \
5161 libsystemd-internal.la \
5162 libudev-internal.la \
5163 libsystemd-shared.la
5165 noinst_LTLIBRARIES += \
5166 libsystemd-machine-core.la
5168 machinectl_SOURCES = \
5169 src/machine/machinectl.c
5171 machinectl_LDADD = \
5172 libsystemd-internal.la \
5173 libsystemd-logs.la \
5174 libsystemd-journal-internal.la \
5175 libsystemd-shared.la
5177 rootbin_PROGRAMS += \
5180 dist_bashcompletion_DATA += \
5181 shell-completion/bash/machinectl
5183 test_machine_tables_SOURCES = \
5184 src/machine/test-machine-tables.c
5186 test_machine_tables_LDADD = \
5187 libsystemd-machine-core.la
5192 nodist_systemunit_DATA += \
5193 units/systemd-machined.service
5195 dist_systemunit_DATA += \
5198 dist_systemunit_DATA_busnames += \
5199 units/org.freedesktop.machine1.busname
5201 dist_dbussystemservice_DATA += \
5202 src/machine/org.freedesktop.machine1.service
5204 dist_dbuspolicy_DATA += \
5205 src/machine/org.freedesktop.machine1.conf
5207 polkitpolicy_files += \
5208 src/machine/org.freedesktop.machine1.policy
5210 polkitpolicy_in_files += \
5211 src/machine/org.freedesktop.machine1.policy.in
5213 dist_zshcompletion_DATA += \
5214 shell-completion/zsh/_machinectl \
5215 shell-completion/zsh/_sd_machines
5217 SYSTEM_UNIT_ALIASES += \
5218 systemd-machined.service dbus-org.freedesktop.machine1.service
5220 BUSNAMES_TARGET_WANTS += \
5221 org.freedesktop.machine1.busname
5224 units/systemd-machined.service.in
5226 libnss_mymachines_la_SOURCES = \
5227 src/nss-mymachines/nss-mymachines.sym \
5228 src/nss-mymachines/nss-mymachines.c
5230 libnss_mymachines_la_LDFLAGS = \
5237 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
5239 libnss_mymachines_la_LIBADD = \
5240 libsystemd-shared.la \
5241 libsystemd-internal.la
5243 lib_LTLIBRARIES += \
5244 libnss_mymachines.la
5254 systemd_import_SOURCES = \
5255 src/import/import.c \
5256 src/import/import-raw.c \
5257 src/import/import-raw.h \
5258 src/import/import-tar.c \
5259 src/import/import-tar.h \
5260 src/import/import-dkr.c \
5261 src/import/import-dkr.h \
5262 src/import/import-job.c \
5263 src/import/import-job.h \
5264 src/import/import-util.c \
5265 src/import/import-util.h \
5266 src/import/curl-util.c \
5267 src/import/curl-util.h \
5268 src/import/aufs-util.c \
5269 src/import/aufs-util.h \
5270 src/import/qcow2-util.c \
5271 src/import/qcow2-util.h
5273 systemd_import_CFLAGS = \
5279 -D VENDOR_KEYRING_PATH=\"$(rootlibexecdir)/import-pubring.gpg\" \
5280 -D USER_KEYRING_PATH=\"$(pkgsysconfdir)/import-pubring.gpg\"
5282 systemd_import_LDADD = \
5283 libsystemd-internal.la \
5284 libsystemd-label.la \
5285 libsystemd-shared.la \
5294 test_qcow2_SOURCES = \
5295 src/import/test-qcow2.c \
5296 src/import/qcow2-util.c \
5297 src/import/qcow2-util.h
5299 test_qcow2_CFLAGS = \
5303 test_qcow2_LDADD = \
5304 libsystemd-internal.la \
5305 libsystemd-label.la \
5306 libsystemd-shared.la \
5309 dist_rootlibexec_DATA = \
5310 src/import/import-pubring.gpg
5318 # ------------------------------------------------------------------------------
5320 systemd_resolved_SOURCES = \
5321 src/resolve/resolved.c \
5322 src/resolve/resolved-manager.c \
5323 src/resolve/resolved-manager.h \
5324 src/resolve/resolved-conf.c \
5325 src/resolve/resolved-conf.h \
5326 src/resolve/resolved-bus.c \
5327 src/resolve/resolved-bus.h \
5328 src/resolve/resolved-link.h \
5329 src/resolve/resolved-link.c \
5330 src/resolve/resolved-def.h \
5331 src/resolve/resolved-dns-domain.h \
5332 src/resolve/resolved-dns-domain.c \
5333 src/resolve/resolved-dns-rr.h \
5334 src/resolve/resolved-dns-rr.c \
5335 src/resolve/resolved-dns-question.h \
5336 src/resolve/resolved-dns-question.c \
5337 src/resolve/resolved-dns-answer.h \
5338 src/resolve/resolved-dns-answer.c \
5339 src/resolve/resolved-dns-packet.h \
5340 src/resolve/resolved-dns-packet.c \
5341 src/resolve/resolved-dns-query.h \
5342 src/resolve/resolved-dns-query.c \
5343 src/resolve/resolved-dns-transaction.h \
5344 src/resolve/resolved-dns-transaction.c \
5345 src/resolve/resolved-dns-scope.h \
5346 src/resolve/resolved-dns-scope.c \
5347 src/resolve/resolved-dns-server.h \
5348 src/resolve/resolved-dns-server.c \
5349 src/resolve/resolved-dns-cache.h \
5350 src/resolve/resolved-dns-cache.c \
5351 src/resolve/resolved-dns-zone.h \
5352 src/resolve/resolved-dns-zone.c \
5353 src/resolve/resolved-dns-stream.h \
5354 src/resolve/resolved-dns-stream.c \
5355 src/resolve/dns-type.c \
5356 src/resolve/dns-type.h \
5357 src/resolve/dns_type-from-name.h \
5358 src/resolve/dns_type-to-name.h
5360 nodist_systemd_resolved_SOURCES = \
5361 src/resolve/resolved-gperf.c
5364 src/resolve/resolved-gperf.gperf \
5365 src/resolve/dns_type-from-name.gperf
5368 src/resolve/resolved-gperf.c
5370 systemd_resolved_LDADD = \
5371 libsystemd-network.la \
5372 libsystemd-label.la \
5373 libsystemd-internal.la \
5374 libsystemd-shared.la \
5377 rootlibexec_PROGRAMS += \
5380 nodist_systemunit_DATA += \
5381 units/systemd-resolved.service
5383 dist_systemunit_DATA_busnames += \
5384 units/org.freedesktop.resolve1.busname
5386 dist_dbuspolicy_DATA += \
5387 src/resolve/org.freedesktop.resolve1.conf
5389 dist_dbussystemservice_DATA += \
5390 src/resolve/org.freedesktop.resolve1.service
5393 units/systemd-resolved.service.in
5395 SYSTEM_UNIT_ALIASES += \
5396 systemd-resolved.service dbus-org.freedesktop.resolve1.service
5398 BUSNAMES_TARGET_WANTS += \
5399 org.freedesktop.resolve1.busname
5401 GENERAL_ALIASES += \
5402 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
5404 nodist_pkgsysconf_DATA += \
5405 src/resolve/resolved.conf
5408 src/resolve/resolved.conf.in
5411 src/resolve/resolved.conf
5416 test_dns_domain_SOURCES = \
5417 src/resolve/resolved-dns-domain.h \
5418 src/resolve/resolved-dns-domain.c \
5419 src/resolve/test-dns-domain.c
5421 test_dns_domain_LDADD = \
5422 libsystemd-network.la \
5423 libsystemd-label.la \
5424 libsystemd-internal.la \
5425 libsystemd-shared.la \
5428 libnss_resolve_la_SOURCES = \
5429 src/nss-resolve/nss-resolve.sym \
5430 src/nss-resolve/nss-resolve.c
5432 libnss_resolve_la_LDFLAGS = \
5439 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
5441 libnss_resolve_la_LIBADD = \
5442 libsystemd-internal.la \
5443 libsystemd-shared.la
5445 lib_LTLIBRARIES += \
5448 systemd_resolve_host_SOURCES = \
5449 src/resolve-host/resolve-host.c \
5450 src/resolve/resolved-dns-packet.c \
5451 src/resolve/resolved-dns-packet.h \
5452 src/resolve/resolved-dns-rr.c \
5453 src/resolve/resolved-dns-rr.h \
5454 src/resolve/resolved-dns-answer.c \
5455 src/resolve/resolved-dns-answer.h \
5456 src/resolve/resolved-dns-question.c \
5457 src/resolve/resolved-dns-question.h \
5458 src/resolve/resolved-dns-domain.c \
5459 src/resolve/resolved-dns-domain.h \
5460 src/resolve/dns-type.c \
5461 src/resolve/dns-type.h \
5462 src/resolve/dns_type-from-name.h \
5463 src/resolve/dns_type-to-name.h
5465 systemd_resolve_host_LDADD = \
5466 libsystemd-internal.la \
5467 libsystemd-shared.la \
5470 rootlibexec_PROGRAMS += \
5471 systemd-resolve-host
5475 # ------------------------------------------------------------------------------
5477 rootlibexec_PROGRAMS += \
5480 systemd_networkd_SOURCES = \
5481 src/network/networkd.c
5483 systemd_networkd_LDADD = \
5484 libsystemd-networkd-core.la
5487 systemd_networkd_LDADD += \
5491 noinst_LTLIBRARIES += \
5492 libsystemd-networkd-core.la
5494 libsystemd_networkd_core_la_CFLAGS = \
5497 libsystemd_networkd_core_la_SOURCES = \
5498 src/libsystemd-network/network-internal.h \
5499 src/network/networkd.h \
5500 src/network/networkd-link.h \
5501 src/network/networkd-netdev.h \
5502 src/network/networkd-netdev-tunnel.h \
5503 src/network/networkd-netdev-veth.h \
5504 src/network/networkd-netdev-vxlan.h \
5505 src/network/networkd-netdev-vlan.h \
5506 src/network/networkd-netdev-macvlan.h \
5507 src/network/networkd-netdev-ipvlan.h \
5508 src/network/networkd-netdev-dummy.h \
5509 src/network/networkd-netdev-tuntap.h \
5510 src/network/networkd-netdev-bond.h \
5511 src/network/networkd-netdev-bridge.h \
5512 src/network/networkd-netdev.c \
5513 src/network/networkd-netdev-tunnel.c \
5514 src/network/networkd-netdev-veth.c \
5515 src/network/networkd-netdev-vxlan.c \
5516 src/network/networkd-netdev-vlan.c \
5517 src/network/networkd-netdev-macvlan.c \
5518 src/network/networkd-netdev-ipvlan.c \
5519 src/network/networkd-netdev-dummy.c \
5520 src/network/networkd-netdev-tuntap.c \
5521 src/network/networkd-netdev-bond.c \
5522 src/network/networkd-netdev-bridge.c \
5523 src/network/networkd-link.c \
5524 src/network/networkd-ipv4ll.c \
5525 src/network/networkd-dhcp4.c \
5526 src/network/networkd-dhcp6.c \
5527 src/network/networkd-network.c \
5528 src/network/networkd-address.c \
5529 src/network/networkd-route.c \
5530 src/network/networkd-manager.c \
5531 src/network/networkd-fdb.c \
5532 src/network/networkd-address-pool.c
5534 nodist_libsystemd_networkd_core_la_SOURCES = \
5535 src/network/networkd-network-gperf.c \
5536 src/network/networkd-netdev-gperf.c
5538 libsystemd_networkd_core_la_LIBADD = \
5539 libudev-internal.la \
5540 libsystemd-internal.la \
5541 libsystemd-network.la \
5542 libsystemd-label.la \
5543 libsystemd-shared.la
5545 rootlibexec_PROGRAMS += \
5546 systemd-networkd-wait-online
5548 systemd_networkd_wait_online_CFLAGS = \
5551 systemd_networkd_wait_online_SOURCES = \
5552 src/libsystemd-network/network-internal.h \
5553 src/network/networkd-wait-online.h \
5554 src/network/networkd-wait-online-link.h \
5555 src/network/networkd-wait-online.c \
5556 src/network/networkd-wait-online-manager.c \
5557 src/network/networkd-wait-online-link.c
5559 systemd_networkd_wait_online_LDADD = \
5560 libsystemd-network.la \
5561 libudev-internal.la \
5562 libsystemd-internal.la \
5563 libsystemd-shared.la
5565 rootbin_PROGRAMS += \
5568 networkctl_SOURCES = \
5569 src/network/networkctl.c
5571 networkctl_LDADD = \
5572 libsystemd-internal.la \
5573 libudev-internal.la \
5574 libsystemd-shared.la \
5575 libsystemd-network.la
5577 test_network_SOURCES = \
5578 src/network/test-network.c
5580 test_network_LDADD = \
5581 libsystemd-networkd-core.la
5584 test_network_LDADD += \
5588 test_network_tables_SOURCES = \
5589 src/network/test-network-tables.c \
5590 src/shared/test-tables.h
5592 test_network_tables_LDADD = \
5593 libsystemd-networkd-core.la \
5597 test_network_tables_LDADD += \
5605 nodist_systemunit_DATA += \
5606 units/systemd-networkd.service \
5607 units/systemd-networkd-wait-online.service
5609 GENERAL_ALIASES += \
5610 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5611 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5614 src/network/networkd-network-gperf.gperf \
5615 src/network/networkd-netdev-gperf.gperf \
5616 units/systemd-networkd.service.in \
5617 units/systemd-networkd-wait-online.service.in
5620 src/network/networkd-network-gperf.c \
5621 src/network/networkd-netdev-gperf.c
5624 # ------------------------------------------------------------------------------
5626 systemd_logind_SOURCES = \
5627 src/login/logind.c \
5630 nodist_systemd_logind_SOURCES = \
5631 src/login/logind-gperf.c
5633 systemd_logind_LDADD = \
5634 libsystemd-logind-core.la
5636 libsystemd_logind_core_la_SOURCES = \
5637 src/login/logind-core.c \
5638 src/login/logind-device.c \
5639 src/login/logind-device.h \
5640 src/login/logind-button.c \
5641 src/login/logind-button.h \
5642 src/login/logind-action.c \
5643 src/login/logind-action.h \
5644 src/login/logind-seat.c \
5645 src/login/logind-seat.h \
5646 src/login/logind-session.c \
5647 src/login/logind-session.h \
5648 src/login/logind-session-device.c \
5649 src/login/logind-session-device.h \
5650 src/login/logind-user.c \
5651 src/login/logind-user.h \
5652 src/login/logind-inhibit.c \
5653 src/login/logind-inhibit.h \
5654 src/login/logind-dbus.c \
5655 src/login/logind-session-dbus.c \
5656 src/login/logind-seat-dbus.c \
5657 src/login/logind-user-dbus.c \
5658 src/login/logind-acl.h
5660 libsystemd_logind_core_la_LIBADD = \
5661 libsystemd-label.la \
5662 libsystemd-internal.la \
5663 libudev-internal.la \
5664 libsystemd-shared.la
5667 libsystemd_logind_core_la_SOURCES += \
5668 src/login/logind-acl.c
5670 libsystemd_logind_core_la_LIBADD += \
5674 noinst_LTLIBRARIES += \
5675 libsystemd-logind-core.la
5677 systemd_user_sessions_SOURCES = \
5678 src/login/user-sessions.c
5680 systemd_user_sessions_LDADD = \
5681 libsystemd-shared.la
5683 rootlibexec_PROGRAMS += \
5685 systemd-user-sessions
5687 loginctl_SOURCES = \
5688 src/login/loginctl.c \
5689 src/login/sysfs-show.h \
5690 src/login/sysfs-show.c
5693 libsystemd-internal.la \
5694 libsystemd-logs.la \
5695 libsystemd-journal-internal.la \
5696 libudev-internal.la \
5697 libsystemd-shared.la
5699 rootbin_PROGRAMS += \
5702 dist_bashcompletion_DATA += \
5703 shell-completion/bash/loginctl
5705 dist_zshcompletion_DATA += \
5706 shell-completion/zsh/_loginctl \
5707 shell-completion/zsh/_systemd-inhibit
5709 systemd_inhibit_SOURCES = \
5712 systemd_inhibit_LDADD = \
5713 libsystemd-internal.la \
5714 libsystemd-shared.la
5716 rootbin_PROGRAMS += \
5719 test_login_SOURCES = \
5720 src/libsystemd/sd-login/test-login.c
5722 test_login_LDADD = \
5723 libsystemd-internal.la \
5724 libsystemd-shared.la
5726 test_login_shared_SOURCES = \
5727 src/login/test-login-shared.c
5729 test_login_shared_LDADD = \
5730 libsystemd-internal.la \
5731 libsystemd-shared.la
5733 test_inhibit_SOURCES = \
5734 src/login/test-inhibit.c
5736 test_inhibit_LDADD = \
5737 libsystemd-internal.la \
5738 libsystemd-shared.la
5740 test_login_tables_SOURCES = \
5741 src/login/test-login-tables.c
5743 test_login_tables_LDADD = \
5744 libsystemd-logind-core.la
5755 pam_systemd_la_SOURCES = \
5756 src/login/pam_systemd.sym \
5757 src/login/pam_systemd.c
5759 pam_systemd_la_CFLAGS = \
5764 pam_systemd_la_LDFLAGS = \
5770 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5772 pam_systemd_la_LIBADD = \
5773 libsystemd-internal.la \
5774 libsystemd-shared.la \
5777 pamlib_LTLIBRARIES = \
5780 dist_pamconf_DATA = \
5781 src/login/systemd-user
5784 nodist_systemunit_DATA += \
5785 units/systemd-logind.service \
5786 units/systemd-user-sessions.service
5788 dist_systemunit_DATA += \
5791 dist_systemunit_DATA_busnames += \
5792 units/org.freedesktop.login1.busname
5794 dist_dbussystemservice_DATA += \
5795 src/login/org.freedesktop.login1.service
5797 dist_dbuspolicy_DATA += \
5798 src/login/org.freedesktop.login1.conf
5800 dist_pkgsysconf_DATA += \
5801 src/login/logind.conf
5803 polkitpolicy_files += \
5804 src/login/org.freedesktop.login1.policy
5809 MULTI_USER_TARGET_WANTS += \
5810 systemd-logind.service \
5811 systemd-user-sessions.service
5813 SYSTEM_UNIT_ALIASES += \
5814 systemd-logind.service dbus-org.freedesktop.login1.service
5816 BUSNAMES_TARGET_WANTS += \
5817 org.freedesktop.login1.busname
5819 dist_udevrules_DATA += \
5820 src/login/70-uaccess.rules \
5821 src/login/70-power-switch.rules
5823 nodist_udevrules_DATA += \
5824 src/login/71-seat.rules \
5825 src/login/73-seat-late.rules
5828 src/login/logind-gperf.c \
5829 src/login/71-seat.rules \
5830 src/login/73-seat-late.rules
5833 polkitpolicy_in_files += \
5834 src/login/org.freedesktop.login1.policy.in
5837 src/login/logind-gperf.gperf \
5838 src/login/71-seat.rules.in \
5839 src/login/73-seat-late.rules.in \
5840 units/systemd-logind.service.in \
5841 units/systemd-user-sessions.service.in
5843 # ------------------------------------------------------------------------------
5844 if HAVE_PYTHON_DEVEL
5845 pkgpyexec_LTLIBRARIES = \
5852 _journal_la_SOURCES = \
5853 src/python-systemd/_journal.c
5855 _journal_la_CFLAGS = \
5857 -fvisibility=default \
5858 $(PYTHON_DEVEL_CFLAGS)
5860 _journal_la_LDFLAGS = \
5866 _journal_la_LIBADD = \
5867 $(PYTHON_DEVEL_LIBS) \
5870 id128_la_SOURCES = \
5871 src/python-systemd/id128.c \
5872 src/python-systemd/pyutil.c \
5873 src/python-systemd/pyutil.h
5875 nodist_id128_la_SOURCES = \
5876 src/python-systemd/id128-constants.h
5880 -fvisibility=default \
5881 $(PYTHON_DEVEL_CFLAGS) \
5882 -I$(top_builddir)/src/python-systemd
5884 id128_la_LDFLAGS = \
5891 $(PYTHON_DEVEL_LIBS) \
5892 libsystemd-shared.la \
5895 _daemon_la_SOURCES = \
5896 src/python-systemd/_daemon.c \
5897 src/python-systemd/pyutil.c \
5898 src/python-systemd/pyutil.h
5900 _daemon_la_CFLAGS = \
5902 -fvisibility=default \
5903 $(PYTHON_DEVEL_CFLAGS) \
5904 -I$(top_builddir)/src/python-systemd
5906 _daemon_la_LDFLAGS = \
5912 _daemon_la_LIBADD = \
5913 $(PYTHON_DEVEL_LIBS) \
5914 libsystemd-shared.la \
5917 _reader_la_SOURCES = \
5918 src/python-systemd/_reader.c \
5919 src/python-systemd/pyutil.c \
5920 src/python-systemd/pyutil.h
5922 _reader_la_CFLAGS = \
5924 -fvisibility=default \
5925 $(PYTHON_DEVEL_CFLAGS)
5927 _reader_la_LDFLAGS = \
5933 _reader_la_LIBADD = \
5934 $(PYTHON_DEVEL_LIBS) \
5935 libsystemd-shared.la \
5938 login_la_SOURCES = \
5939 src/python-systemd/login.c \
5940 src/python-systemd/pyutil.c \
5941 src/python-systemd/pyutil.h
5945 -fvisibility=default \
5946 $(PYTHON_DEVEL_CFLAGS)
5948 login_la_LDFLAGS = \
5955 $(PYTHON_DEVEL_LIBS) \
5956 libsystemd-shared.la \
5959 dist_pkgpyexec_PYTHON = \
5960 src/python-systemd/journal.py \
5961 src/python-systemd/daemon.py \
5962 src/python-systemd/__init__.py
5964 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
5965 $(AM_V_at)$(MKDIR_P) $(dir $@)
5966 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
5969 src/python-systemd/id128-constants.h
5971 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
5973 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
5974 $(AM_V_GEN)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(SPHINX_BUILD) -b $* $(SPHINXOPTS) $(top_srcdir)/src/python-systemd/docs $(top_builddir)/docs/html/python-systemd/
5975 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
5978 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
5979 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
5982 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
5983 $(MAKE) DESTDIR="$$dir" install && \
5984 $(MAKE) DESTDIR="$$dir" sphinx-html && \
5989 CLEAN_LOCAL_HOOKS += clean-sphinx
5991 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
5994 -rm -rf docs/html/python-systemd/
5996 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
5998 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
5999 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
6001 # ------------------------------------------------------------------------------
6002 if ENABLE_COMPAT_LIBS
6004 src/compat-libs/linkwarning.h
6006 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
6007 $(AM_V_at)$(MKDIR_P) $(dir $@)
6008 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
6011 libsystemd-journal.c \
6012 libsystemd-login.c \
6013 libsystemd-id128.c \
6016 libsystemd_journal_la_SOURCES = \
6017 libsystemd-journal.c \
6018 src/compat-libs/libsystemd-journal.sym
6020 libsystemd_journal_la_CPPFLAGS = \
6022 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
6024 libsystemd_journal_la_LDFLAGS = \
6026 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
6027 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
6029 libsystemd_journal_la_LIBADD = \
6030 libsystemd-journal-internal.la \
6031 libsystemd-internal.la \
6032 libsystemd-shared.la
6034 libsystemd_login_la_SOURCES = \
6035 libsystemd-login.c \
6036 src/compat-libs/libsystemd-login.sym
6038 libsystemd_login_la_CPPFLAGS = \
6040 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
6042 libsystemd_login_la_LDFLAGS = \
6044 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
6045 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
6047 libsystemd_login_la_LIBADD = \
6048 libsystemd-internal.la \
6049 libsystemd-shared.la
6051 libsystemd_id128_la_SOURCES = \
6052 libsystemd-id128.c \
6053 src/compat-libs/libsystemd-id128.sym
6055 libsystemd_id128_la_CPPFLAGS = \
6057 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
6059 libsystemd_id128_la_LDFLAGS = \
6061 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
6062 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
6064 libsystemd_id128_la_LIBADD = \
6065 libsystemd-internal.la \
6066 libsystemd-shared.la
6068 libsystemd_daemon_la_SOURCES = \
6069 libsystemd-daemon.c \
6070 src/compat-libs/libsystemd-daemon.sym
6072 libsystemd_daemon_la_CPPFLAGS = \
6074 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
6076 libsystemd_daemon_la_LDFLAGS = \
6078 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
6079 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
6081 libsystemd_daemon_la_LIBADD = \
6082 libsystemd-internal.la \
6083 libsystemd-shared.la
6085 lib_LTLIBRARIES += \
6086 libsystemd-journal.la \
6087 libsystemd-login.la \
6088 libsystemd-id128.la \
6089 libsystemd-daemon.la
6091 pkgconfiglib_DATA += \
6092 src/compat-libs/libsystemd-journal.pc \
6093 src/compat-libs/libsystemd-login.pc \
6094 src/compat-libs/libsystemd-id128.pc \
6095 src/compat-libs/libsystemd-daemon.pc
6097 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
6098 compat-lib-install-hook:
6099 libname=libsystemd-login.so && $(move-to-rootlibdir)
6100 libname=libsystemd-journal.so && $(move-to-rootlibdir)
6101 libname=libsystemd-id128.so && $(move-to-rootlibdir)
6102 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
6104 compat-lib-uninstall-hook:
6105 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
6106 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
6107 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
6108 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
6110 INSTALL_EXEC_HOOKS += compat-lib-install-hook
6111 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
6115 src/compat-libs/libsystemd-journal.pc.in \
6116 src/compat-libs/libsystemd-login.pc.in \
6117 src/compat-libs/libsystemd-id128.pc.in \
6118 src/compat-libs/libsystemd-daemon.pc.in
6120 # ------------------------------------------------------------------------------
6122 '|rootlibexecdir=$(rootlibexecdir)|' \
6123 '|rootbindir=$(rootbindir)|' \
6124 '|bindir=$(bindir)|' \
6125 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
6126 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
6127 '|pkgsysconfdir=$(pkgsysconfdir)|' \
6128 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
6129 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
6130 '|pkgdatadir=$(pkgdatadir)|' \
6131 '|systemunitdir=$(systemunitdir)|' \
6132 '|userunitdir=$(userunitdir)|' \
6133 '|systempresetdir=$(systempresetdir)|' \
6134 '|userpresetdir=$(userpresetdir)|' \
6135 '|udevhwdbdir=$(udevhwdbdir)|' \
6136 '|udevrulesdir=$(udevrulesdir)|' \
6137 '|catalogdir=$(catalogdir)|' \
6138 '|tmpfilesdir=$(tmpfilesdir)|' \
6139 '|sysusersdir=$(sysusersdir)|' \
6140 '|sysctldir=$(sysctldir)|' \
6141 '|systemgeneratordir=$(systemgeneratordir)|' \
6142 '|usergeneratordir=$(usergeneratordir)|' \
6143 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
6144 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
6145 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
6146 '|PACKAGE_URL=$(PACKAGE_URL)|' \
6147 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
6148 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
6149 '|prefix=$(prefix)|' \
6150 '|exec_prefix=$(exec_prefix)|' \
6151 '|libdir=$(libdir)|' \
6152 '|includedir=$(includedir)|' \
6153 '|VERSION=$(VERSION)|' \
6154 '|rootprefix=$(rootprefix)|' \
6155 '|udevlibexecdir=$(udevlibexecdir)|' \
6156 '|SUSHELL=$(SUSHELL)|' \
6157 '|DEBUGTTY=$(DEBUGTTY)|' \
6160 '|MKDIR_P=$(MKDIR_P)|' \
6161 '|QUOTAON=$(QUOTAON)|' \
6162 '|QUOTACHECK=$(QUOTACHECK)|' \
6163 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
6164 '|VARLOGDIR=$(varlogdir)|' \
6165 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
6166 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
6167 '|PYTHON=$(PYTHON)|' \
6168 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
6169 '|NTP_SERVERS=$(NTP_SERVERS)|' \
6170 '|DNS_SERVERS=$(DNS_SERVERS)|' \
6171 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
6172 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
6173 '|TTY_GID=$(TTY_GID)|' \
6174 '|systemsleepdir=$(systemsleepdir)|' \
6175 '|systemshutdowndir=$(systemshutdowndir)|' \
6176 '|binfmtdir=$(binfmtdir)|' \
6177 '|modulesloaddir=$(modulesloaddir)|'
6180 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
6181 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
6190 sysctl.d/%: sysctl.d/%.in
6199 src/core/macros.%: src/core/macros.%.in
6202 src/%.policy.in: src/%.policy.in.in
6205 shell-completion/%: shell-completion/%.in
6216 $(AM_V_GEN)chmod +x $@
6218 src/%.c: src/%.gperf
6219 $(AM_V_at)$(MKDIR_P) $(dir $@)
6220 $(AM_V_GPERF)$(GPERF) < $< > $@
6223 $(AM_V_at)$(MKDIR_P) $(dir $@)
6224 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6226 sysusers.d/%: sysusers.d/%.m4
6227 $(AM_V_at)$(MKDIR_P) $(dir $@)
6228 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6230 tmpfiles.d/%: tmpfiles.d/%.m4
6231 $(AM_V_at)$(MKDIR_P) $(dir $@)
6232 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6236 $(AM_V_at)$(MKDIR_P) $(dir $@)
6237 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
6239 units/user/%: units/user/%.m4
6240 $(AM_V_at)$(MKDIR_P) $(dir $@)
6241 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
6244 nodist_polkitpolicy_DATA = \
6245 $(polkitpolicy_files) \
6246 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
6250 $(polkitpolicy_in_files) \
6251 $(polkitpolicy_in_in_files)
6254 $(nodist_systemunit_DATA) \
6255 $(nodist_userunit_DATA) \
6256 $(pkgconfiglib_DATA) \
6257 $(nodist_polkitpolicy_DATA)
6259 # ------------------------------------------------------------------------------
6261 man/custom-entities.ent: configure.ac
6262 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
6263 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
6264 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
6268 man/custom-entities.ent
6273 --stringparam man.output.quietly 1 \
6274 --stringparam funcsynopsis.style ansi \
6275 --stringparam man.authors.section.enabled 0 \
6276 --stringparam man.copyright.section.enabled 0 \
6277 --stringparam systemd.version $(VERSION) \
6278 --path '$(builddir)/man:$(srcdir)/man'
6280 XSLTPROC_PROCESS_MAN = \
6281 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
6283 XSLTPROC_PROCESS_HTML = \
6284 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
6286 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
6287 $(XSLTPROC_PROCESS_MAN)
6289 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
6290 $(XSLTPROC_PROCESS_MAN)
6292 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
6293 $(XSLTPROC_PROCESS_MAN)
6295 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
6296 $(XSLTPROC_PROCESS_MAN)
6298 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
6299 $(XSLTPROC_PROCESS_MAN)
6301 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
6302 $(XSLTPROC_PROCESS_HTML)
6305 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
6311 man/custom-html.xsl \
6314 # ------------------------------------------------------------------------------
6317 docs/sysvinit/README
6322 docs/sysvinit/README: docs/sysvinit/README.in
6325 docs/var-log/README: docs/var-log/README.in
6329 docs/sysvinit/README \
6334 docs/sysvinit/README.in \
6335 docs/var-log/README.in
6337 SOCKETS_TARGET_WANTS += \
6338 systemd-initctl.socket \
6339 systemd-shutdownd.socket
6343 RUNLEVEL1_TARGET_WANTS += \
6344 systemd-update-utmp-runlevel.service
6345 RUNLEVEL2_TARGET_WANTS += \
6346 systemd-update-utmp-runlevel.service
6347 RUNLEVEL3_TARGET_WANTS += \
6348 systemd-update-utmp-runlevel.service
6349 RUNLEVEL4_TARGET_WANTS += \
6350 systemd-update-utmp-runlevel.service
6351 RUNLEVEL5_TARGET_WANTS += \
6352 systemd-update-utmp-runlevel.service
6355 SYSINIT_TARGET_WANTS += \
6356 systemd-update-utmp.service
6359 SYSINIT_TARGET_WANTS += \
6360 systemd-update-done.service
6362 LOCAL_FS_TARGET_WANTS += \
6363 systemd-remount-fs.service \
6366 MULTI_USER_TARGET_WANTS += \
6368 systemd-ask-password-wall.path
6370 SYSINIT_TARGET_WANTS += \
6371 dev-hugepages.mount \
6373 sys-kernel-config.mount \
6374 sys-kernel-debug.mount \
6375 sys-fs-fuse-connections.mount \
6376 systemd-sysctl.service \
6377 systemd-ask-password-console.path
6380 SYSTEM_UNIT_ALIASES += \
6381 poweroff.target runlevel0.target \
6382 rescue.target runlevel1.target \
6383 multi-user.target runlevel2.target \
6384 multi-user.target runlevel3.target \
6385 multi-user.target runlevel4.target \
6386 graphical.target runlevel5.target \
6387 reboot.target runlevel6.target
6390 SYSTEM_UNIT_ALIASES += \
6391 graphical.target default.target \
6392 reboot.target ctrl-alt-del.target \
6393 getty@.service autovt@.service
6395 USER_UNIT_ALIASES += \
6396 $(systemunitdir)/shutdown.target shutdown.target \
6397 $(systemunitdir)/sockets.target sockets.target \
6398 $(systemunitdir)/timers.target timers.target \
6399 $(systemunitdir)/paths.target paths.target \
6400 $(systemunitdir)/bluetooth.target bluetooth.target \
6401 $(systemunitdir)/printer.target printer.target \
6402 $(systemunitdir)/sound.target sound.target \
6403 $(systemunitdir)/smartcard.target smartcard.target
6406 USER_UNIT_ALIASES += \
6407 $(systemunitdir)/busnames.target busnames.target
6410 GENERAL_ALIASES += \
6411 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
6412 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
6413 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
6414 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
6418 $(systemunitdir)/runlevel1.target.wants \
6419 $(systemunitdir)/runlevel2.target.wants \
6420 $(systemunitdir)/runlevel3.target.wants \
6421 $(systemunitdir)/runlevel4.target.wants \
6422 $(systemunitdir)/runlevel5.target.wants
6426 $(prefix)/lib/modules-load.d \
6427 $(sysconfdir)/modules-load.d \
6428 $(prefix)/lib/systemd/network \
6429 $(sysconfdir)/systemd/network \
6430 $(prefix)/lib/sysctl.d \
6431 $(sysconfdir)/sysctl.d \
6432 $(prefix)/lib/kernel/install.d \
6433 $(sysconfdir)/kernel/install.d \
6434 $(systemshutdowndir) \
6436 $(systemgeneratordir) \
6437 $(usergeneratordir) \
6440 $(pkgsysconfdir)/system \
6441 $(pkgsysconfdir)/system/multi-user.target.wants \
6442 $(pkgsysconfdir)/system/getty.target.wants \
6443 $(pkgsysconfdir)/user \
6444 $(dbussessionservicedir) \
6445 $(sysconfdir)/xdg/systemd
6447 install-exec-hook: $(INSTALL_EXEC_HOOKS)
6449 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
6451 install-data-hook: $(INSTALL_DATA_HOOKS)
6453 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
6455 clean-local: $(CLEAN_LOCAL_HOOKS)
6456 rm -rf $(abs_srcdir)/install-tree
6457 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
6458 $(abs_srcdir)/hwdb/iab.txt
6460 DISTCHECK_CONFIGURE_FLAGS = \
6461 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
6462 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6463 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
6464 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
6465 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
6466 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
6467 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
6468 --with-rootprefix=$$dc_install_base \
6469 --disable-split-usr \
6471 --enable-compat-libs
6474 DISTCHECK_CONFIGURE_FLAGS += \
6475 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
6476 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
6478 DISTCHECK_CONFIGURE_FLAGS += \
6479 --with-sysvinit-path= \
6480 --with-sysvrcnd-path=
6484 DISTCHECK_CONFIGURE_FLAGS += \
6489 DISTCHECK_CONFIGURE_FLAGS += \
6494 # Require python when making dist
6496 .PHONY: dist-check-python
6499 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
6503 dist-check-compat-libs:
6504 if !ENABLE_COMPAT_LIBS
6505 @echo "*** compat-libs must be enabled in order to make dist"
6509 dist: dist-check-python dist-check-compat-libs
6511 # check "broken" platforms limited toolchains for link breakage before we release
6514 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
6518 ( cd $(top_srcdir)/hwdb && \
6519 wget -N http://www.linux-usb.org/usb.ids \
6520 http://pci-ids.ucw.cz/v2.2/pci.ids \
6521 http://standards.ieee.org/develop/regauth/oui/oui.txt \
6522 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
6525 .PHONY: kdbus-update
6527 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
6528 wget -N https://d-bus.googlecode.com/git/kdbus.h )
6532 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6534 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6536 upload: all check dist
6537 scp systemd-$(VERSION).tar.xz $(www_target)
6540 doc-sync: all destdir-sphinx
6541 gtkdoc-rebase --html-dir=docs/libudev/html --online
6542 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
6543 gtkdoc-rebase --html-dir=docs/gudev/html --online
6544 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
6545 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6546 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
6550 scp man/*.html gardel:public/systemd-man/
6552 .PHONY: lennart-fedora
6554 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
6556 .PHONY: install-tree
6558 rm -rf $(abs_srcdir)/install-tree
6559 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6560 tree $(abs_srcdir)/install-tree
6562 # Let's run all tests of the test suite, but under valgrind. Let's
6563 # exclude the one perl script we have in there
6564 .PHONY: valgrind-tests
6565 valgrind-tests: $(TESTS)
6566 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
6567 if file $$f | grep -q shell; then \
6568 echo -e "$${x}Skipping non-binary $$f"; else \
6569 echo -e "$${x}Running $$f"; \
6570 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6575 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6577 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6578 $(AM_V_GEN)cat $^ > $@
6580 .PHONY: check-api-docs
6581 check-api-docs: exported man
6582 $(AM_V_GEN)for symbol in `cat exported` ; do \
6583 if test -f $(builddir)/man/$$symbol.html ; then \
6584 echo " Symbol $$symbol() is documented." ; \
6586 echo "‣ Symbol $$symbol() lacks documentation." ; \
6590 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6591 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6593 undefined defined: $(ALL_OBJECTS)
6594 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6595 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6596 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6602 .PHONY: check-api-unused
6603 check-api-unused: defined undefined exported
6604 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6606 .PHONY: check-includes
6607 check-includes: $(top_srcdir)/tools/check-includes.pl
6608 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6609 | xargs $(top_srcdir)/tools/check-includes.pl
6612 $(top_srcdir)/tools/check-includes.pl
6614 # Stupid test that everything purported to be exported really is
6615 define generate-sym-test
6616 $(AM_V_at)$(MKDIR_P) $(dir $@)
6617 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6618 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6619 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6620 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6621 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6622 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6623 $(AM_V_at)printf 'return 0; }\n' >> $@
6626 test-libsystemd-sym.c: \
6627 $(top_builddir)/src/libsystemd/libsystemd.sym \
6628 src/systemd/sd-journal.h \
6629 src/systemd/sd-daemon.h \
6630 src/systemd/sd-login.h \
6631 src/systemd/sd-bus.h \
6632 src/systemd/sd-utf8.h \
6633 src/systemd/sd-resolve.h \
6634 src/systemd/sd-path.h
6635 $(generate-sym-test)
6637 test-libudev-sym.c: \
6638 src/libudev/libudev.sym \
6640 $(generate-sym-test)
6642 test_libsystemd_sym_SOURCES = \
6643 test-libsystemd-sym.c
6644 test_libsystemd_sym_LDADD = \
6647 test_libudev_sym_SOURCES = \
6649 test_libudev_sym_CFLAGS = \
6651 -Wno-deprecated-declarations
6652 test_libudev_sym_LDADD = \
6656 $(test_libsystemd_sym_SOURCES) \
6657 $(test_libudev_sym_SOURCES)
6660 test-libsystemd-sym \
6665 cppcheck --enable=all -q $(top_srcdir)
6667 # Used to extract compile flags for YCM.
6672 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u
6675 tools/gdb-sd_dump_hashmaps.py
6678 gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --list-keys
6681 gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --import -