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 \
906 src/shared/import-util.c \
907 src/shared/import-util.h
910 libsystemd_shared_la_SOURCES += \
911 src/shared/utmp-wtmp.c
914 nodist_libsystemd_shared_la_SOURCES = \
915 src/shared/errno-from-name.h \
916 src/shared/errno-to-name.h \
917 src/shared/af-from-name.h \
918 src/shared/af-to-name.h \
919 src/shared/arphrd-from-name.h \
920 src/shared/arphrd-to-name.h \
921 src/shared/cap-from-name.h \
922 src/shared/cap-to-name.h
924 libsystemd_shared_la_CFLAGS = \
930 libsystemd_shared_la_LIBADD = \
934 # ------------------------------------------------------------------------------
935 noinst_LTLIBRARIES += \
938 libsystemd_units_la_SOURCES = \
939 src/shared/install.c \
940 src/shared/install.h \
941 src/shared/install-printf.c \
942 src/shared/install-printf.h \
943 src/shared/path-lookup.c \
944 src/shared/path-lookup.h \
945 src/shared/specifier.c \
946 src/shared/specifier.h
948 # ------------------------------------------------------------------------------
949 noinst_LTLIBRARIES += \
952 libsystemd_label_la_SOURCES = \
953 src/shared/socket-label.c \
956 src/shared/selinux-util.c \
957 src/shared/selinux-util.h \
958 src/shared/mkdir-label.c \
959 src/shared/ask-password-api.c \
960 src/shared/ask-password-api.h \
961 src/shared/switch-root.h \
962 src/shared/switch-root.c \
963 src/shared/fileio-label.c \
964 src/shared/fileio-label.h \
965 src/shared/dev-setup.c \
966 src/shared/dev-setup.h \
967 src/shared/dropin.c \
968 src/shared/dropin.h \
969 src/shared/condition.c \
970 src/shared/condition.h \
971 src/shared/generator.h \
972 src/shared/generator.c \
973 src/shared/btrfs-util.c \
974 src/shared/btrfs-util.h \
975 src/shared/btrfs-ctree.h \
976 src/shared/machine-image.c \
977 src/shared/machine-image.h \
981 libsystemd_label_la_CFLAGS = \
985 libsystemd_label_la_LIBADD = \
988 # -----------------------------------------------------------------------------
991 noinst_LTLIBRARIES += \
994 libsystemd_fw_la_SOURCES = \
995 src/shared/fw-util.h \
998 libsystemd_fw_la_CFLAGS = \
1002 libsystemd_fw_la_LIBADD = \
1006 # -----------------------------------------------------------------------------
1009 dist_systemunit_DATA += \
1010 units/ldconfig.service
1012 SYSINIT_TARGET_WANTS += \
1016 # ------------------------------------------------------------------------------
1019 noinst_LTLIBRARIES += \
1020 libsystemd-seccomp.la
1022 libsystemd_seccomp_la_SOURCES = \
1023 src/shared/seccomp-util.h \
1024 src/shared/seccomp-util.c
1026 libsystemd_seccomp_la_CFLAGS = \
1030 libsystemd_seccomp_la_LIBADD = \
1034 # ------------------------------------------------------------------------------
1035 noinst_LTLIBRARIES += \
1038 libsystemd_logs_la_SOURCES = \
1039 src/shared/logs-show.c \
1040 src/shared/logs-show.h
1042 # ------------------------------------------------------------------------------
1044 noinst_LTLIBRARIES += \
1047 libsystemd_acl_la_SOURCES = \
1048 src/shared/acl-util.c \
1049 src/shared/acl-util.h
1051 libsystemd_acl_la_CFLAGS = \
1055 libsystemd_acl_la_LIBADD = \
1059 # ------------------------------------------------------------------------------
1060 noinst_LTLIBRARIES += \
1063 libsystemd_core_la_SOURCES = \
1066 src/core/unit-printf.c \
1067 src/core/unit-printf.h \
1070 src/core/manager.c \
1071 src/core/manager.h \
1072 src/core/transaction.c \
1073 src/core/transaction.h \
1074 src/core/load-fragment.c \
1075 src/core/load-fragment.h \
1076 src/core/service.c \
1077 src/core/service.h \
1080 src/core/busname.c \
1081 src/core/busname.h \
1082 src/core/bus-endpoint.c \
1083 src/core/bus-endpoint.h \
1084 src/core/bus-policy.c \
1085 src/core/bus-policy.h \
1088 src/core/snapshot.c \
1089 src/core/snapshot.h \
1094 src/core/automount.c \
1095 src/core/automount.h \
1106 src/core/load-dropin.c \
1107 src/core/load-dropin.h \
1108 src/core/execute.c \
1109 src/core/execute.h \
1114 src/core/dbus-manager.c \
1115 src/core/dbus-manager.h \
1116 src/core/dbus-unit.c \
1117 src/core/dbus-unit.h \
1118 src/core/dbus-job.c \
1119 src/core/dbus-job.h \
1120 src/core/dbus-service.c \
1121 src/core/dbus-service.h \
1122 src/core/dbus-socket.c \
1123 src/core/dbus-socket.h \
1124 src/core/dbus-busname.c \
1125 src/core/dbus-busname.h \
1126 src/core/dbus-target.c \
1127 src/core/dbus-target.h \
1128 src/core/dbus-snapshot.c \
1129 src/core/dbus-snapshot.h \
1130 src/core/dbus-device.c \
1131 src/core/dbus-device.h \
1132 src/core/dbus-mount.c \
1133 src/core/dbus-mount.h \
1134 src/core/dbus-automount.c \
1135 src/core/dbus-automount.h \
1136 src/core/dbus-swap.c \
1137 src/core/dbus-swap.h \
1138 src/core/dbus-timer.c \
1139 src/core/dbus-timer.h \
1140 src/core/dbus-path.c \
1141 src/core/dbus-path.h \
1142 src/core/dbus-slice.c \
1143 src/core/dbus-slice.h \
1144 src/core/dbus-scope.c \
1145 src/core/dbus-scope.h \
1146 src/core/dbus-execute.c \
1147 src/core/dbus-execute.h \
1148 src/core/dbus-kill.c \
1149 src/core/dbus-kill.h \
1150 src/core/dbus-cgroup.c \
1151 src/core/dbus-cgroup.h \
1154 src/core/selinux-access.c \
1155 src/core/selinux-access.h \
1156 src/core/selinux-setup.c \
1157 src/core/selinux-setup.h \
1158 src/core/smack-setup.c \
1159 src/core/smack-setup.h \
1160 src/core/ima-setup.c \
1161 src/core/ima-setup.h \
1162 src/core/locale-setup.h \
1163 src/core/locale-setup.c \
1164 src/core/hostname-setup.c \
1165 src/core/hostname-setup.h \
1166 src/core/machine-id-setup.c \
1167 src/core/machine-id-setup.h \
1168 src/core/mount-setup.c \
1169 src/core/mount-setup.h \
1170 src/core/kmod-setup.c \
1171 src/core/kmod-setup.h \
1172 src/core/loopback-setup.h \
1173 src/core/loopback-setup.c \
1174 src/core/namespace.c \
1175 src/core/namespace.h \
1176 src/core/killall.h \
1177 src/core/killall.c \
1178 src/core/audit-fd.c \
1179 src/core/audit-fd.h \
1180 src/core/show-status.c \
1181 src/core/show-status.h \
1182 src/core/failure-action.c \
1183 src/core/failure-action.h
1185 nodist_libsystemd_core_la_SOURCES = \
1186 src/core/load-fragment-gperf.c \
1187 src/core/load-fragment-gperf-nulstr.c
1189 libsystemd_core_la_CFLAGS = \
1194 $(APPARMOR_CFLAGS) \
1199 libsystemd_core_la_LIBADD = \
1200 libsystemd-units.la \
1201 libsystemd-label.la \
1202 libudev-internal.la \
1203 libsystemd-shared.la \
1204 libsystemd-internal.la \
1213 libsystemd_core_la_LIBADD += \
1214 libsystemd-seccomp.la
1217 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1218 $(AM_V_at)$(MKDIR_P) $(dir $@)
1219 $(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 ";" }' < $< > $@
1222 src/core/load-fragment-gperf.gperf.m4
1225 src/core/load-fragment-gperf.gperf \
1226 src/core/load-fragment-gperf.c \
1227 src/core/load-fragment-gperf-nulstr.c \
1228 src/shared/errno-list.txt \
1229 src/shared/errno-from-name.gperf \
1230 src/shared/af-list.txt \
1231 src/shared/af-from-name.gperf \
1232 src/shared/arphrd-list.txt \
1233 src/shared/arphrd-from-name.gperf \
1234 src/shared/cap-list.txt \
1235 src/shared/cap-from-name.gperf \
1236 src/resolve/dns_type-list.txt \
1237 src/resolve/dns_type-from-name.gperf
1240 src/shared/errno-from-name.h \
1241 src/shared/errno-to-name.h \
1242 src/shared/af-from-name.h \
1243 src/shared/af-to-name.h \
1244 src/shared/arphrd-from-name.h \
1245 src/shared/arphrd-to-name.h \
1246 src/shared/cap-from-name.h \
1247 src/shared/cap-to-name.h \
1248 src/resolve/dns_type-from-name.h \
1249 src/resolve/dns_type-to-name.h
1251 %-from-name.gperf: %-list.txt
1252 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1254 %-from-name.h: %-from-name.gperf
1255 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1258 src/shared/errno-list.txt:
1259 $(AM_V_at)$(MKDIR_P) $(dir $@)
1260 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1262 src/shared/errno-to-name.h: src/shared/errno-list.txt
1263 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1266 src/shared/af-list.txt:
1267 $(AM_V_at)$(MKDIR_P) $(dir $@)
1268 $(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; }' >$@
1270 src/shared/af-to-name.h: src/shared/af-list.txt
1271 $(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 "};"}' <$< >$@
1274 src/shared/arphrd-list.txt:
1275 $(AM_V_at)$(MKDIR_P) $(dir $@)
1276 $(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_//' >$@
1278 src/shared/arphrd-to-name.h: src/shared/arphrd-list.txt
1279 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1281 src/shared/arphrd-from-name.gperf: src/shared/arphrd-list.txt
1282 $(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 }' <$< >$@
1285 src/shared/cap-list.txt:
1286 $(AM_V_at)$(MKDIR_P) $(dir $@)
1287 $(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 >$@
1289 src/shared/cap-to-name.h: src/shared/cap-list.txt
1290 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const capability_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, tolower($$1) } END{print "};"}' <$< >$@
1292 src/shared/cap-from-name.gperf: src/shared/cap-list.txt
1293 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct capability_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1295 src/shared/cap-from-name.h: src/shared/cap-from-name.gperf
1296 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_capability -H hash_capability_name -p -C <$< >$@
1299 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1300 $(AM_V_at)$(MKDIR_P) $(dir $@)
1301 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1303 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1304 $(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" }' <$< >$@
1306 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1307 $(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 }' <$< >$@
1309 # ------------------------------------------------------------------------------
1318 libsystemd-core.la \
1321 dist_pkgsysconf_DATA += \
1322 src/core/system.conf \
1325 dist_dbuspolicy_DATA += \
1326 src/core/org.freedesktop.systemd1.conf
1328 dist_dbussystemservice_DATA += \
1329 src/core/org.freedesktop.systemd1.service
1331 polkitpolicy_in_in_files += \
1332 src/core/org.freedesktop.systemd1.policy.in.in
1334 pkgconfiglib_DATA += \
1337 nodist_rpmmacros_DATA = \
1338 src/core/macros.systemd
1341 src/core/systemd.pc.in \
1342 src/core/macros.systemd.in
1345 src/core/macros.systemd \
1346 src/core/org.freedesktop.systemd1.policy.in
1348 # ------------------------------------------------------------------------------
1398 test-strip-tab-ansi \
1434 test/daughter.service \
1439 test/grandchild.service \
1441 test/hello-after-sleep.target \
1442 test/hello.service \
1444 test/parent-deep.slice \
1447 test/sched_idle_bad.service \
1448 test/sched_idle_ok.service \
1449 test/sched_rr_bad.service \
1450 test/sched_rr_change.service \
1451 test/sched_rr_ok.service \
1452 test/shutdown.target \
1453 test/sleep.service \
1454 test/sockets.target \
1456 test/sysinit.target \
1457 test/testsuite.target \
1458 test/timers.target \
1459 test/unstoppable.service \
1460 test/path-changed.service \
1461 test/path-directorynotempty.service \
1462 test/path-existsglob.service \
1463 test/path-exists.service \
1464 test/path-makedirectory.service \
1465 test/path-modified.service \
1466 test/path-mycustomunit.service \
1467 test/path-service.service \
1468 test/path-changed.path \
1469 test/path-directorynotempty.path \
1470 test/path-existsglob.path \
1471 test/path-exists.path \
1472 test/path-makedirectory.path \
1473 test/path-modified.path \
1474 test/path-unit.path \
1475 test/exec-environment-empty.service \
1476 test/exec-environment-multiple.service \
1477 test/exec-environment.service \
1478 test/exec-group.service \
1479 test/exec-ignoresigpipe-no.service \
1480 test/exec-ignoresigpipe-yes.service \
1481 test/exec-personality-x86-64.service \
1482 test/exec-personality-x86.service \
1483 test/exec-privatedevices-no.service \
1484 test/exec-privatedevices-yes.service \
1485 test/exec-privatetmp-no.service \
1486 test/exec-privatetmp-yes.service \
1487 test/exec-systemcallerrornumber.service \
1488 test/exec-systemcallfilter-failing2.service \
1489 test/exec-systemcallfilter-failing.service \
1490 test/exec-systemcallfilter-not-failing2.service \
1491 test/exec-systemcallfilter-not-failing.service \
1492 test/exec-user.service \
1493 test/exec-workingdirectory.service \
1494 test/exec-umask-0177.service \
1495 test/exec-umask-default.service \
1496 test/bus-policy/hello.conf \
1497 test/bus-policy/methods.conf \
1498 test/bus-policy/ownerships.conf \
1499 test/bus-policy/signals.conf \
1500 test/bus-policy/check-own-rules.conf \
1501 test/bus-policy/many-rules.conf \
1502 test/bus-policy/test.conf
1506 src/test/test-helper.h
1508 test_device_nodes_SOURCES = \
1509 src/test/test-device-nodes.c
1511 test_device_nodes_LDADD = \
1512 libsystemd-shared.la
1514 test_engine_SOURCES = \
1515 src/test/test-engine.c
1517 test_engine_CFLAGS = \
1521 test_engine_LDADD = \
1522 libsystemd-core.la \
1525 test_job_type_SOURCES = \
1526 src/test/test-job-type.c
1528 test_job_type_CFLAGS = \
1532 test_job_type_LDADD = \
1533 libsystemd-core.la \
1546 test_loopback_SOURCES = \
1547 src/test/test-loopback.c
1549 test_loopback_LDADD = \
1552 test_hostname_SOURCES = \
1553 src/test/test-hostname.c
1555 test_hostname_LDADD = \
1562 test_boot_timestamp_SOURCES = \
1563 src/test/test-boot-timestamps.c
1565 test_boot_timestamp_LDADD = \
1566 libsystemd-shared.la
1569 test_unit_name_SOURCES = \
1570 src/test/test-unit-name.c
1572 test_unit_name_CFLAGS = \
1576 test_unit_name_LDADD = \
1577 libsystemd-core.la \
1580 test_unit_file_SOURCES = \
1581 src/test/test-unit-file.c
1583 test_unit_file_CFLAGS = \
1587 test_unit_file_LDADD = \
1588 libsystemd-core.la \
1591 test_utf8_SOURCES = \
1592 src/test/test-utf8.c
1595 libsystemd-shared.la
1597 test_capability_SOURCES = \
1598 src/test/test-capability.c
1600 test_capability_LDADD = \
1601 libsystemd-shared.la
1603 test_async_SOURCES = \
1604 src/test/test-async.c
1606 test_async_LDADD = \
1607 libsystemd-shared.la
1609 test_locale_util_SOURCES = \
1610 src/test/test-locale-util.c
1612 test_locale_util_LDADD = \
1613 libsystemd-shared.la
1615 test_copy_SOURCES = \
1616 src/test/test-copy.c
1619 libsystemd-label.la \
1620 libsystemd-shared.la
1622 test_sigbus_SOURCES = \
1623 src/test/test-sigbus.c
1625 test_sigbus_LDADD = \
1626 libsystemd-shared.la
1628 test_condition_SOURCES = \
1629 src/test/test-condition.c
1631 test_condition_LDADD = \
1632 libsystemd-label.la \
1633 libsystemd-internal.la \
1634 libsystemd-shared.la
1636 test_fdset_SOURCES = \
1637 src/test/test-fdset.c
1639 test_fdset_LDADD = \
1640 libsystemd-shared.la \
1641 libsystemd-internal.la
1643 test_fstab_util_SOURCES = \
1644 src/test/test-fstab-util.c
1646 test_fstab_util_LDADD = \
1647 libsystemd-shared.la
1649 test_ratelimit_SOURCES = \
1650 src/test/test-ratelimit.c
1652 test_ratelimit_LDADD = \
1653 libsystemd-shared.la
1655 test_util_SOURCES = \
1656 src/test/test-util.c
1659 libsystemd-shared.la
1661 test_path_lookup_SOURCES = \
1662 src/test/test-path-lookup.c
1664 test_path_lookup_LDADD = \
1666 libsystemd-units.la \
1667 libsystemd-shared.la
1669 test_uid_range_SOURCES = \
1670 src/test/test-uid-range.c
1672 test_uid_range_LDADD = \
1673 libsystemd-shared.la
1675 test_cap_list_SOURCES = \
1676 src/test/test-cap-list.c
1678 test_cap_list_LDADD = \
1679 libsystemd-shared.la
1681 test_socket_util_SOURCES = \
1682 src/test/test-socket-util.c
1684 test_socket_util_LDADD = \
1685 libsystemd-shared.la
1687 test_ring_SOURCES = \
1688 src/test/test-ring.c
1691 libsystemd-shared.la
1693 test_barrier_SOURCES = \
1694 src/test/test-barrier.c
1696 test_barrier_LDADD = \
1697 libsystemd-shared.la
1699 test_pty_SOURCES = \
1705 test_tmpfiles_SOURCES = \
1706 src/test/test-tmpfiles.c
1708 test_tmpfiles_LDADD = \
1709 libsystemd-shared.la
1711 test_namespace_SOURCES = \
1712 src/test/test-namespace.c
1714 test_verbs_SOURCES = \
1715 src/test/test-verbs.c
1717 test_verbs_LDADD = \
1718 libsystemd-shared.la
1720 test_namespace_LDADD = \
1724 src/test/test-hashmap-ordered.c
1727 src/test/test-hashmap-ordered.c
1729 src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c
1730 $(AM_V_at)$(MKDIR_P) $(dir $@)
1731 $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \
1732 { if (!match($$0, "^#include")) \
1733 gsub(/hashmap/, "ordered_hashmap"); \
1734 gsub(/HASHMAP/, "ORDERED_HASHMAP"); \
1735 gsub(/Hashmap/, "OrderedHashmap"); \
1738 nodist_test_hashmap_SOURCES = \
1739 src/test/test-hashmap-ordered.c
1741 test_hashmap_SOURCES = \
1742 src/test/test-hashmap.c \
1743 src/test/test-hashmap-plain.c
1745 test_hashmap_LDADD = \
1746 libsystemd-shared.la
1748 test_set_SOURCES = \
1752 libsystemd-shared.la
1754 test_xml_SOURCES = \
1758 libsystemd-shared.la
1760 test_json_SOURCES = \
1761 src/test/test-json.c
1764 libsystemd-shared.la
1766 test_list_SOURCES = \
1767 src/test/test-list.c
1770 libsystemd-shared.la
1772 test_unaligned_LDADD = \
1773 libsystemd-shared.la
1775 test_unaligned_SOURCES = \
1776 src/test/test-unaligned.c
1778 test_tables_SOURCES = \
1779 src/test/test-tables.c \
1780 src/shared/test-tables.h \
1781 src/bus-proxyd/bus-xml-policy.c \
1782 src/bus-proxyd/bus-xml-policy.h \
1783 src/journal/journald-server.c \
1784 src/journal/journald-server.h
1786 test_tables_CPPFLAGS = \
1788 -I$(top_srcdir)/src/bus-proxyd
1790 test_tables_CFLAGS = \
1794 test_tables_LDADD = \
1795 libsystemd-logs.la \
1796 libsystemd-journal-internal.la \
1797 libsystemd-journal-core.la \
1798 libsystemd-core.la \
1802 test_prioq_SOURCES = \
1803 src/test/test-prioq.c
1805 test_prioq_LDADD = \
1806 libsystemd-shared.la
1808 test_fileio_SOURCES = \
1809 src/test/test-fileio.c
1811 test_fileio_LDADD = \
1812 libsystemd-shared.la
1814 test_time_SOURCES = \
1815 src/test/test-time.c
1818 libsystemd-shared.la
1820 test_architecture_SOURCES = \
1821 src/test/test-architecture.c
1823 test_architecture_LDADD = \
1824 libsystemd-shared.la
1826 test_log_SOURCES = \
1830 libsystemd-shared.la
1832 test_ipcrm_SOURCES = \
1833 src/test/test-ipcrm.c
1835 test_ipcrm_LDADD = \
1836 libsystemd-shared.la \
1839 test_btrfs_SOURCES = \
1840 src/test/test-btrfs.c
1842 test_btrfs_LDADD = \
1843 libsystemd-label.la \
1844 libsystemd-shared.la
1847 test_fw_util_SOURCES = \
1848 src/test/test-fw-util.c
1850 test_fw_util_CFLAGS = \
1854 test_fw_util_LDADD = \
1856 libsystemd-shared.la \
1860 test_rtnl_manual_SOURCES = \
1861 src/test/test-rtnl-manual.c
1863 test_rtnl_manual_CFLAGS = \
1867 test_rtnl_manual_LDADD = \
1868 libsystemd-internal.la \
1869 libsystemd-shared.la \
1872 test_ellipsize_SOURCES = \
1873 src/test/test-ellipsize.c
1875 test_ellipsize_LDADD = \
1876 libsystemd-shared.la
1878 test_date_SOURCES = \
1879 src/test/test-date.c
1882 libsystemd-shared.la
1884 test_sleep_SOURCES = \
1885 src/test/test-sleep.c
1887 test_sleep_LDADD = \
1890 test_replace_var_SOURCES = \
1891 src/test/test-replace-var.c
1893 test_replace_var_LDADD = \
1894 libsystemd-shared.la
1896 test_calendarspec_SOURCES = \
1897 src/test/test-calendarspec.c
1899 test_calendarspec_LDADD = \
1900 libsystemd-shared.la
1902 test_strip_tab_ansi_SOURCES = \
1903 src/test/test-strip-tab-ansi.c
1905 test_strip_tab_ansi_LDADD = \
1906 libsystemd-shared.la
1908 test_daemon_SOURCES = \
1909 src/test/test-daemon.c
1911 test_daemon_LDADD = \
1912 libsystemd-internal.la \
1913 libsystemd-shared.la
1915 test_cgroup_SOURCES = \
1916 src/test/test-cgroup.c
1918 test_cgroup_LDADD = \
1919 libsystemd-label.la \
1920 libsystemd-shared.la \
1921 libsystemd-internal.la
1923 test_cgroup_mask_SOURCES = \
1924 src/test/test-cgroup-mask.c
1926 test_cgroup_mask_CPPFLAGS = \
1929 test_cgroup_mask_CFLAGS = \
1933 test_cgroup_mask_LDADD = \
1934 libsystemd-core.la \
1937 test_cgroup_util_SOURCES = \
1938 src/test/test-cgroup-util.c
1940 test_cgroup_util_LDADD = \
1941 libsystemd-label.la \
1942 libsystemd-internal.la \
1943 libsystemd-shared.la
1945 test_env_replace_SOURCES = \
1946 src/test/test-env-replace.c
1948 test_env_replace_LDADD = \
1949 libsystemd-shared.la
1951 test_strbuf_SOURCES = \
1952 src/test/test-strbuf.c
1954 test_strbuf_LDADD = \
1955 libsystemd-shared.la
1957 test_strv_SOURCES = \
1958 src/test/test-strv.c
1961 libsystemd-units.la \
1962 libsystemd-internal.la \
1963 libsystemd-shared.la
1965 test_path_util_SOURCES = \
1966 src/test/test-path-util.c
1968 test_path_util_LDADD = \
1969 libsystemd-shared.la
1971 test_path_SOURCES = \
1972 src/test/test-path.c
1974 test_path_CFLAGS = \
1980 test_execute_SOURCES = \
1981 src/test/test-execute.c
1983 test_execute_CFLAGS = \
1986 test_execute_LDADD = \
1989 test_strxcpyx_SOURCES = \
1990 src/test/test-strxcpyx.c
1992 test_strxcpyx_LDADD = \
1993 libsystemd-shared.la
1995 test_install_SOURCES = \
1996 src/test/test-install.c
1998 test_install_LDADD = \
1999 libsystemd-units.la \
2000 libsystemd-label.la \
2001 libsystemd-shared.la \
2002 libsystemd-internal.la
2004 test_watchdog_SOURCES = \
2005 src/test/test-watchdog.c
2007 test_watchdog_LDADD = \
2008 libsystemd-shared.la
2010 test_sched_prio_SOURCES = \
2011 src/test/test-sched-prio.c
2013 test_sched_prio_CPPFLAGS = \
2016 test_sched_prio_CFLAGS = \
2020 test_sched_prio_LDADD = \
2021 libsystemd-core.la \
2024 test_conf_files_SOURCES = \
2025 src/test/test-conf-files.c
2027 test_conf_files_LDADD = \
2028 libsystemd-shared.la
2030 test_bus_policy_SOURCES = \
2031 src/bus-proxyd/test-bus-xml-policy.c
2033 test_bus_policy_LDADD = \
2034 libsystemd-proxy.la \
2035 libsystemd-internal.la \
2036 libsystemd-shared.la
2038 # ------------------------------------------------------------------------------
2039 ## .PHONY so it always rebuilds it
2040 .PHONY: coverage lcov-run lcov-report coverage-sync
2042 # run lcov from scratch, always
2047 coverage_dir = coverage
2048 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
2051 # reset run coverage tests
2053 @rm -rf $(coverage_dir)
2054 lcov $(coverage_opts) --zerocounters
2057 # generate report based on current coverage data
2059 $(MKDIR_P) $(coverage_dir)
2060 lcov $(coverage_opts) --compat-libtool --capture --no-external \
2061 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
2062 lcov --remove $(coverage_dir)/.lcov.info --output-file $(coverage_dir)/.lcov-clean.info 'test-*'
2063 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov-clean.info
2064 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
2066 # lcov doesn't work properly with vpath builds, make sure that bad
2067 # output is not uploaded by mistake.
2068 coverage-sync: coverage
2069 test "$(builddir)" = "$(srcdir)"
2070 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
2073 lcov-run lcov-report:
2074 echo "Need to reconfigure with --enable-coverage"
2077 # ------------------------------------------------------------------------------
2078 systemd_analyze_SOURCES = \
2079 src/analyze/analyze.c \
2080 src/analyze/analyze-verify.c \
2081 src/analyze/analyze-verify.h
2083 systemd_verify_CFLAGS = \
2087 systemd_analyze_LDADD = \
2088 libsystemd-core.la \
2089 libsystemd-internal.la \
2090 libsystemd-shared.la \
2093 # ------------------------------------------------------------------------------
2094 systemd_initctl_SOURCES = \
2095 src/initctl/initctl.c
2097 systemd_initctl_LDADD = \
2098 libsystemd-internal.la \
2099 libsystemd-shared.la
2101 # ------------------------------------------------------------------------------
2102 systemd_update_utmp_SOURCES = \
2103 src/update-utmp/update-utmp.c
2105 systemd_update_utmp_CFLAGS = \
2109 systemd_update_utmp_LDADD = \
2110 libsystemd-internal.la \
2111 libsystemd-shared.la \
2114 # ------------------------------------------------------------------------------
2115 systemd_update_done_SOURCES = \
2116 src/update-done/update-done.c
2118 systemd_update_done_LDADD = \
2119 libsystemd-internal.la \
2120 libsystemd-label.la \
2121 libsystemd-shared.la
2123 # ------------------------------------------------------------------------------
2124 systemd_shutdownd_SOURCES = \
2125 src/shutdownd/shutdownd.c
2127 systemd_shutdownd_LDADD = \
2128 libsystemd-label.la \
2129 libsystemd-internal.la \
2130 libsystemd-shared.la
2133 src/systemd/sd-shutdown.h
2135 # ------------------------------------------------------------------------------
2136 systemd_shutdown_SOURCES = \
2139 src/core/shutdown.c \
2140 src/core/mount-setup.c \
2141 src/core/mount-setup.h \
2142 src/core/killall.h \
2145 systemd_shutdown_LDADD = \
2146 libsystemd-label.la \
2147 libudev-internal.la \
2148 libsystemd-shared.la
2150 # ------------------------------------------------------------------------------
2152 systemd_modules_load_SOURCES = \
2153 src/modules-load/modules-load.c
2155 systemd_modules_load_CFLAGS = \
2159 systemd_modules_load_LDADD = \
2160 libsystemd-shared.la \
2163 rootlibexec_PROGRAMS += \
2164 systemd-modules-load
2166 nodist_systemunit_DATA += \
2167 units/systemd-modules-load.service
2169 SYSINIT_TARGET_WANTS += \
2170 systemd-modules-load.service
2173 nodist_systemunit_DATA += \
2174 units/kmod-static-nodes.service
2176 SYSINIT_TARGET_WANTS += \
2177 kmod-static-nodes.service
2182 units/systemd-modules-load.service.in \
2183 units/kmod-static-nodes.service.in
2185 # ------------------------------------------------------------------------------
2187 systemd_tmpfiles_SOURCES = \
2188 src/tmpfiles/tmpfiles.c
2190 systemd_tmpfiles_LDADD = \
2191 libsystemd-units.la \
2192 libsystemd-label.la \
2193 libsystemd-internal.la \
2194 libsystemd-shared.la
2196 rootbin_PROGRAMS += \
2199 dist_systemunit_DATA += \
2200 units/systemd-tmpfiles-clean.timer
2202 nodist_systemunit_DATA += \
2203 units/systemd-tmpfiles-setup-dev.service \
2204 units/systemd-tmpfiles-setup.service \
2205 units/systemd-tmpfiles-clean.service
2207 nodist_tmpfiles_DATA = \
2210 dist_tmpfiles_DATA = \
2211 tmpfiles.d/systemd.conf \
2212 tmpfiles.d/systemd-nologin.conf \
2213 tmpfiles.d/tmp.conf \
2214 tmpfiles.d/x11.conf \
2218 dist_tmpfiles_DATA += \
2219 tmpfiles.d/legacy.conf
2222 SYSINIT_TARGET_WANTS += \
2223 systemd-tmpfiles-setup-dev.service \
2224 systemd-tmpfiles-setup.service
2226 dist_zshcompletion_DATA += \
2227 shell-completion/zsh/_systemd-tmpfiles
2229 TIMERS_TARGET_WANTS += \
2230 systemd-tmpfiles-clean.timer
2234 $(sysconfdir)/tmpfiles.d
2238 tmpfiles.d/etc.conf.m4 \
2239 units/systemd-tmpfiles-setup-dev.service.in \
2240 units/systemd-tmpfiles-setup.service.in \
2241 units/systemd-tmpfiles-clean.service.in
2246 # ------------------------------------------------------------------------------
2248 systemd_sysusers_SOURCES = \
2249 src/sysusers/sysusers.c
2251 systemd_sysusers_LDADD = \
2252 libsystemd-units.la \
2253 libsystemd-label.la \
2254 libsystemd-internal.la \
2255 libsystemd-shared.la
2257 rootbin_PROGRAMS += \
2260 nodist_systemunit_DATA += \
2261 units/systemd-sysusers.service
2263 SYSINIT_TARGET_WANTS += \
2264 systemd-sysusers.service
2266 dist_sysusers_DATA = \
2267 sysusers.d/systemd.conf
2269 nodist_sysusers_DATA = \
2270 sysusers.d/basic.conf
2273 units/systemd-sysusers.service.in \
2274 sysusers.d/basic.conf.in
2277 sysusers.d/basic.conf
2283 # ------------------------------------------------------------------------------
2284 dist_factory_etc_DATA = \
2285 factory/etc/nsswitch.conf
2288 dist_factory_pam_DATA = \
2289 factory/etc/pam.d/system-auth \
2290 factory/etc/pam.d/other
2293 # ------------------------------------------------------------------------------
2295 systemd_firstboot_SOURCES = \
2296 src/firstboot/firstboot.c
2298 systemd_firstboot_LDADD = \
2299 libsystemd-units.la \
2300 libsystemd-label.la \
2301 libsystemd-internal.la \
2302 libsystemd-shared.la \
2305 rootbin_PROGRAMS += \
2308 nodist_systemunit_DATA += \
2309 units/systemd-firstboot.service
2312 units/systemd-firstboot.service.in
2314 SYSINIT_TARGET_WANTS += \
2315 systemd-firstboot.service
2318 # ------------------------------------------------------------------------------
2319 systemd_machine_id_setup_SOURCES = \
2320 src/machine-id-setup/machine-id-setup-main.c \
2321 src/core/machine-id-setup.c \
2322 src/core/machine-id-setup.h
2324 systemd_machine_id_setup_LDADD = \
2325 libsystemd-label.la \
2326 libsystemd-internal.la \
2327 libsystemd-shared.la
2329 # ------------------------------------------------------------------------------
2330 systemd_sysctl_SOURCES = \
2333 systemd_sysctl_LDADD = \
2334 libsystemd-shared.la
2336 # ------------------------------------------------------------------------------
2337 systemd_sleep_SOURCES = \
2340 systemd_sleep_LDADD = \
2341 libsystemd-shared.la
2343 # ------------------------------------------------------------------------------
2344 systemd_fsck_SOURCES = \
2347 systemd_fsck_LDADD = \
2348 libsystemd-internal.la \
2349 libudev-internal.la \
2350 libsystemd-shared.la
2352 # ------------------------------------------------------------------------------
2353 systemd_machine_id_commit_SOURCES = \
2354 src/machine-id-commit/machine-id-commit.c \
2355 src/core/machine-id-setup.c \
2356 src/core/machine-id-setup.h
2358 systemd_machine_id_commit_LDADD = \
2359 libsystemd-label.la \
2360 libsystemd-internal.la \
2361 libsystemd-shared.la
2363 SYSINIT_TARGET_WANTS += \
2364 systemd-machine-id-commit.service
2366 # ------------------------------------------------------------------------------
2367 systemd_ac_power_SOURCES = \
2368 src/ac-power/ac-power.c
2370 systemd_ac_power_LDADD = \
2371 libudev-internal.la \
2372 libsystemd-shared.la
2374 # ------------------------------------------------------------------------------
2375 systemd_detect_virt_SOURCES = \
2376 src/detect-virt/detect-virt.c
2378 systemd_detect_virt_LDADD = \
2379 libsystemd-shared.la
2381 INSTALL_EXEC_HOOKS += \
2382 systemd-detect-virt-install-hook
2384 # ------------------------------------------------------------------------------
2385 systemd_delta_SOURCES = \
2388 systemd_delta_LDADD = \
2389 libsystemd-shared.la
2391 # ------------------------------------------------------------------------------
2392 systemd_getty_generator_SOURCES = \
2393 src/getty-generator/getty-generator.c
2395 systemd_getty_generator_LDADD = \
2396 libsystemd-label.la \
2397 libsystemd-shared.la
2399 # ------------------------------------------------------------------------------
2400 systemd_debug_generator_SOURCES = \
2401 src/debug-generator/debug-generator.c
2403 systemd_debug_generator_LDADD = \
2404 libsystemd-label.la \
2405 libsystemd-shared.la
2407 # ------------------------------------------------------------------------------
2408 systemd_fstab_generator_SOURCES = \
2409 src/fstab-generator/fstab-generator.c \
2410 src/core/mount-setup.c
2412 systemd_fstab_generator_LDADD = \
2413 libsystemd-label.la \
2414 libsystemd-shared.la
2416 # ------------------------------------------------------------------------------
2417 systemd_system_update_generator_SOURCES = \
2418 src/system-update-generator/system-update-generator.c
2420 systemd_system_update_generator_LDADD = \
2421 libsystemd-label.la \
2422 libsystemd-shared.la
2424 # ------------------------------------------------------------------------------
2426 systemgenerator_PROGRAMS += \
2427 systemd-hibernate-resume-generator
2429 rootlibexec_PROGRAMS += \
2430 systemd-hibernate-resume
2432 systemd_hibernate_resume_SOURCES = \
2433 src/hibernate-resume/hibernate-resume.c
2435 systemd_hibernate_resume_LDADD = \
2436 libsystemd-internal.la \
2437 libsystemd-shared.la
2439 systemd_hibernate_resume_generator_SOURCES = \
2440 src/hibernate-resume/hibernate-resume-generator.c
2442 systemd_hibernate_resume_generator_LDADD = \
2443 libsystemd-label.la \
2444 libsystemd-shared.la
2447 units/systemd-hibernate.service.in \
2448 units/systemd-hibernate-resume@.service.in \
2449 units/systemd-hybrid-sleep.service.in
2451 dist_systemunit_DATA += \
2452 units/hibernate.target \
2453 units/hybrid-sleep.target
2455 nodist_systemunit_DATA += \
2456 units/systemd-hibernate.service \
2457 units/systemd-hibernate-resume@.service \
2458 units/systemd-hybrid-sleep.service
2461 # ------------------------------------------------------------------------------
2463 systemgenerator_PROGRAMS += \
2464 systemd-efi-boot-generator
2466 systemd_efi_boot_generator_SOURCES = \
2467 src/efi-boot-generator/efi-boot-generator.c
2469 systemd_efi_boot_generator_LDADD = \
2470 libsystemd-label.la \
2471 libsystemd-shared.la
2473 # ------------------------------------------------------------------------------
2476 src/boot/boot-loader.h \
2477 src/boot/bootctl.c \
2478 src/boot/boot-loader.c \
2482 libsystemd-shared.la \
2483 libsystemd-internal.la
2488 dist_bashcompletion_DATA += \
2489 shell-completion/bash/bootctl
2491 dist_zshcompletion_DATA += \
2492 shell-completion/zsh/_bootctl
2496 # ------------------------------------------------------------------------------
2498 systemgenerator_PROGRAMS += \
2499 systemd-gpt-auto-generator
2501 systemd_gpt_auto_generator_SOURCES = \
2502 src/gpt-auto-generator/gpt-auto-generator.c \
2503 src/shared/blkid-util.h
2505 systemd_gpt_auto_generator_LDADD = \
2506 libsystemd-label.la \
2507 libsystemd-internal.la \
2508 libudev-internal.la \
2509 libsystemd-shared.la \
2512 systemd_gpt_auto_generator_CFLAGS = \
2517 # ------------------------------------------------------------------------------
2519 systemgenerator_PROGRAMS += \
2520 systemd-dbus1-generator
2522 systemd_dbus1_generator_SOURCES = \
2523 src/dbus1-generator/dbus1-generator.c
2525 systemd_dbus1_generator_LDADD = \
2526 libsystemd-label.la \
2527 libsystemd-internal.la \
2528 libsystemd-shared.la
2530 dbus1-generator-install-hook:
2531 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2532 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2533 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2535 dbus1-generator-uninstall-hook:
2536 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2538 dist_xinitrc_SCRIPTS = \
2539 xorg/50-systemd-user.sh
2541 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2542 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2545 # ------------------------------------------------------------------------------
2546 systemd_sysv_generator_SOURCES = \
2547 src/sysv-generator/sysv-generator.c
2549 systemd_sysv_generator_LDADD = \
2550 libsystemd-core.la \
2551 libsystemd-label.la \
2552 libsystemd-shared.la
2554 # ------------------------------------------------------------------------------
2555 systemd_rc_local_generator_SOURCES = \
2556 src/rc-local-generator/rc-local-generator.c
2558 systemd_rc_local_generator_LDADD = \
2559 libsystemd-label.la \
2560 libsystemd-shared.la
2562 # ------------------------------------------------------------------------------
2563 systemd_remount_fs_SOURCES = \
2564 src/remount-fs/remount-fs.c \
2565 src/core/mount-setup.c \
2566 src/core/mount-setup.h
2568 systemd_remount_fs_LDADD = \
2569 libsystemd-label.la \
2570 libsystemd-shared.la
2572 # ------------------------------------------------------------------------------
2573 systemd_cgroups_agent_SOURCES = \
2574 src/cgroups-agent/cgroups-agent.c
2576 systemd_cgroups_agent_LDADD = \
2577 libsystemd-internal.la \
2578 libsystemd-shared.la
2580 # ------------------------------------------------------------------------------
2581 systemd_escape_SOURCES = \
2584 systemd_escape_LDADD = \
2585 libsystemd-shared.la
2587 # -----------------------------------------------------------------------------
2588 systemctl_SOURCES = \
2589 src/systemctl/systemctl.c
2592 libsystemd-units.la \
2593 libsystemd-label.la \
2594 libsystemd-internal.la \
2595 libsystemd-logs.la \
2596 libsystemd-journal-internal.la \
2597 libsystemd-shared.la
2599 # ------------------------------------------------------------------------------
2600 systemd_notify_SOURCES = \
2603 systemd_notify_LDADD = \
2604 libsystemd-internal.la \
2605 libsystemd-shared.la
2607 # ------------------------------------------------------------------------------
2608 systemd_path_SOURCES = \
2611 systemd_path_LDADD = \
2612 libsystemd-internal.la \
2613 libsystemd-shared.la
2615 # ------------------------------------------------------------------------------
2616 systemd_ask_password_SOURCES = \
2617 src/ask-password/ask-password.c
2619 systemd_ask_password_LDADD = \
2620 libsystemd-label.la \
2621 libsystemd-shared.la
2623 # ------------------------------------------------------------------------------
2624 systemd_reply_password_SOURCES = \
2625 src/reply-password/reply-password.c
2627 systemd_reply_password_LDADD = \
2628 libsystemd-shared.la
2630 # ------------------------------------------------------------------------------
2631 systemd_cgls_SOURCES = \
2634 systemd_cgls_LDADD = \
2635 libsystemd-internal.la \
2636 libsystemd-shared.la
2638 # ------------------------------------------------------------------------------
2639 systemd_cgtop_SOURCES = \
2642 systemd_cgtop_LDADD = \
2643 libsystemd-shared.la
2645 # ------------------------------------------------------------------------------
2646 systemd_nspawn_SOURCES = \
2647 src/nspawn/nspawn.c \
2648 src/core/mount-setup.c \
2649 src/core/mount-setup.h \
2650 src/core/loopback-setup.c \
2651 src/core/loopback-setup.h
2653 systemd_nspawn_CFLAGS = \
2658 systemd_nspawn_LDADD = \
2659 libsystemd-label.la \
2660 libsystemd-internal.la \
2661 libudev-internal.la \
2662 libsystemd-shared.la \
2666 systemd_nspawn_LDADD += \
2667 libsystemd-seccomp.la \
2672 systemd_nspawn_LDADD += \
2676 # ------------------------------------------------------------------------------
2677 systemd_run_SOURCES = \
2680 systemd_run_LDADD = \
2681 libsystemd-label.la \
2682 libsystemd-internal.la \
2683 libsystemd-shared.la
2685 # ------------------------------------------------------------------------------
2686 noinst_LTLIBRARIES += \
2689 libsystemd_proxy_la_SOURCES = \
2690 src/bus-proxyd/bus-xml-policy.c \
2691 src/bus-proxyd/bus-xml-policy.h \
2692 src/bus-proxyd/driver.c \
2693 src/bus-proxyd/driver.h \
2694 src/bus-proxyd/proxy.c \
2695 src/bus-proxyd/proxy.h \
2696 src/bus-proxyd/synthesize.c \
2697 src/bus-proxyd/synthesize.h
2699 libsystemd_proxy_la_CFLAGS = \
2703 libsystemd_proxy_la_LIBADD = \
2704 libsystemd-internal.la \
2705 libsystemd-shared.la
2707 systemd_bus_proxyd_SOURCES = \
2708 src/bus-proxyd/bus-proxyd.c
2710 systemd_bus_proxyd_CFLAGS = \
2714 systemd_bus_proxyd_LDADD = \
2715 libsystemd-proxy.la \
2716 libsystemd-internal.la \
2717 libsystemd-shared.la
2719 systemd_stdio_bridge_SOURCES = \
2720 src/bus-proxyd/stdio-bridge.c
2722 systemd_stdio_bridge_LDADD = \
2723 libsystemd-proxy.la \
2724 libsystemd-internal.la \
2725 libsystemd-shared.la
2728 nodist_systemunit_DATA += \
2729 units/systemd-bus-proxyd.service
2731 dist_systemunit_DATA += \
2732 units/systemd-bus-proxyd.socket
2734 nodist_userunit_DATA += \
2735 units/user/systemd-bus-proxyd.service
2737 dist_userunit_DATA += \
2738 units/user/systemd-bus-proxyd.socket
2742 units/systemd-bus-proxyd.service.m4.in \
2743 units/user/systemd-bus-proxyd.service.in
2746 units/systemd-bus-proxyd.service.m4
2749 bus-proxyd-set-cap-hook:
2750 -$(SETCAP) cap_mac_admin+ei $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd
2752 INSTALL_EXEC_HOOKS += bus-proxyd-set-cap-hook
2755 # ------------------------------------------------------------------------------
2756 systemd_tty_ask_password_agent_SOURCES = \
2757 src/tty-ask-password-agent/tty-ask-password-agent.c
2759 systemd_tty_ask_password_agent_LDADD = \
2760 libsystemd-label.la \
2761 libsystemd-shared.la
2763 # ------------------------------------------------------------------------------
2764 libsystemd_internal_la_SOURCES = \
2765 src/systemd/sd-bus.h \
2766 src/systemd/sd-bus-protocol.h \
2767 src/systemd/sd-bus-vtable.h \
2768 src/systemd/sd-utf8.h \
2769 src/systemd/sd-event.h \
2770 src/systemd/sd-rtnl.h \
2771 src/systemd/sd-resolve.h \
2772 src/systemd/sd-login.h \
2773 src/systemd/sd-id128.h \
2774 src/systemd/sd-daemon.h \
2775 src/systemd/sd-path.h \
2776 src/systemd/sd-network.h \
2777 src/systemd/sd-hwdb.h \
2778 src/libsystemd/sd-bus/sd-bus.c \
2779 src/libsystemd/sd-bus/bus-control.c \
2780 src/libsystemd/sd-bus/bus-control.h \
2781 src/libsystemd/sd-bus/bus-error.c \
2782 src/libsystemd/sd-bus/bus-error.h \
2783 src/libsystemd/sd-bus/bus-common-errors.h \
2784 src/libsystemd/sd-bus/bus-common-errors.c \
2785 src/libsystemd/sd-bus/bus-internal.c \
2786 src/libsystemd/sd-bus/bus-internal.h \
2787 src/libsystemd/sd-bus/bus-socket.c \
2788 src/libsystemd/sd-bus/bus-socket.h \
2789 src/libsystemd/sd-bus/bus-kernel.c \
2790 src/libsystemd/sd-bus/bus-kernel.h \
2791 src/libsystemd/sd-bus/bus-container.c \
2792 src/libsystemd/sd-bus/bus-container.h \
2793 src/libsystemd/sd-bus/bus-message.c \
2794 src/libsystemd/sd-bus/bus-message.h \
2795 src/libsystemd/sd-bus/bus-creds.c \
2796 src/libsystemd/sd-bus/bus-creds.h \
2797 src/libsystemd/sd-bus/bus-signature.c \
2798 src/libsystemd/sd-bus/bus-signature.h \
2799 src/libsystemd/sd-bus/bus-type.c \
2800 src/libsystemd/sd-bus/bus-type.h \
2801 src/libsystemd/sd-bus/bus-match.c \
2802 src/libsystemd/sd-bus/bus-match.h \
2803 src/libsystemd/sd-bus/bus-bloom.c \
2804 src/libsystemd/sd-bus/bus-bloom.h \
2805 src/libsystemd/sd-bus/bus-introspect.c \
2806 src/libsystemd/sd-bus/bus-introspect.h \
2807 src/libsystemd/sd-bus/bus-objects.c \
2808 src/libsystemd/sd-bus/bus-objects.h \
2809 src/libsystemd/sd-bus/bus-gvariant.c \
2810 src/libsystemd/sd-bus/bus-gvariant.h \
2811 src/libsystemd/sd-bus/bus-convenience.c \
2812 src/libsystemd/sd-bus/bus-track.c \
2813 src/libsystemd/sd-bus/bus-track.h \
2814 src/libsystemd/sd-bus/bus-util.c \
2815 src/libsystemd/sd-bus/bus-util.h \
2816 src/libsystemd/sd-bus/bus-slot.c \
2817 src/libsystemd/sd-bus/bus-slot.h \
2818 src/libsystemd/sd-bus/bus-protocol.h \
2819 src/libsystemd/sd-bus/kdbus.h \
2820 src/libsystemd/sd-utf8/sd-utf8.c \
2821 src/libsystemd/sd-event/sd-event.c \
2822 src/libsystemd/sd-event/event-util.h \
2823 src/libsystemd/sd-rtnl/sd-rtnl.c \
2824 src/libsystemd/sd-rtnl/rtnl-internal.h \
2825 src/libsystemd/sd-rtnl/rtnl-message.c \
2826 src/libsystemd/sd-rtnl/rtnl-types.h \
2827 src/libsystemd/sd-rtnl/rtnl-types.c \
2828 src/libsystemd/sd-rtnl/rtnl-util.h \
2829 src/libsystemd/sd-rtnl/rtnl-util.c \
2830 src/libsystemd/sd-rtnl/local-addresses.h \
2831 src/libsystemd/sd-rtnl/local-addresses.c \
2832 src/libsystemd/sd-id128/sd-id128.c \
2833 src/libsystemd/sd-daemon/sd-daemon.c \
2834 src/libsystemd/sd-login/sd-login.c \
2835 src/libsystemd/sd-path/sd-path.c \
2836 src/libsystemd/sd-network/sd-network.c \
2837 src/libsystemd/sd-network/network-util.h \
2838 src/libsystemd/sd-network/network-util.c \
2839 src/libsystemd/sd-hwdb/sd-hwdb.c \
2840 src/libsystemd/sd-hwdb/hwdb-util.h \
2841 src/libsystemd/sd-hwdb/hwdb-internal.h
2843 nodist_libsystemd_internal_la_SOURCES = \
2844 src/libsystemd/libsystemd.sym
2846 libsystemd_internal_la_CFLAGS = \
2850 libsystemd_internal_la_LIBADD = \
2853 libsystemd_resolve_la_SOURCES = \
2854 src/libsystemd/sd-resolve/sd-resolve.c \
2855 src/libsystemd/sd-resolve/resolve-util.h
2857 libsystemd_resolve_la_CFLAGS = \
2861 libsystemd_resolve_la_LIBADD = \
2864 noinst_LTLIBRARIES += \
2865 libsystemd-internal.la \
2866 libsystemd-resolve.la
2868 libsystemd_dump_la_SOURCES = \
2869 src/libsystemd/sd-bus/bus-dump.c \
2870 src/libsystemd/sd-bus/bus-dump.h
2872 noinst_LTLIBRARIES += \
2876 src/libsystemd/libsystemd.sym.m4 \
2877 src/libsystemd/libsystemd.pc.in \
2878 src/libsystemd/sd-bus/DIFFERENCES \
2879 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2882 src/libsystemd/libsystemd.sym
2885 src/libsystemd/libsystemd.sym
2887 libsystemd_la_SOURCES = \
2888 $(libsystemd_internal_la_SOURCES) \
2889 $(libsystemd_resolve_la_SOURCES) \
2890 $(libsystemd_journal_internal_la_SOURCES)
2892 nodist_libsystemd_la_SOURCES = \
2893 $(nodist_libsystemd_internal_la_SOURCES)
2895 libsystemd_la_CFLAGS = \
2896 $(libsystemd_internal_la_CFLAGS) \
2897 $(libsystemd_resolve_la_CFLAGS) \
2898 $(libsystemd_journal_internal_la_CFLAGS)
2900 libsystemd_la_LDFLAGS = \
2902 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2903 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2905 libsystemd_la_LIBADD = \
2906 libsystemd-shared.la \
2907 $(libsystemd_internal_la_LIBADD) \
2908 $(libsystemd_journal_internal_la_LIBADD) \
2909 $(libsystemd_resolve_la_LIBADD)
2911 libsystemd-install-hook:
2912 libname=libsystemd.so && $(move-to-rootlibdir)
2914 libsystemd-uninstall-hook:
2915 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2917 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2918 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2920 pkgconfiglib_DATA += \
2921 src/libsystemd/libsystemd.pc
2923 pkginclude_HEADERS += \
2924 src/systemd/sd-login.h \
2925 src/systemd/sd-id128.h \
2926 src/systemd/sd-daemon.h
2929 pkginclude_HEADERS += \
2930 src/systemd/sd-bus.h \
2931 src/systemd/sd-bus-protocol.h \
2932 src/systemd/sd-bus-vtable.h \
2933 src/systemd/sd-utf8.h \
2934 src/systemd/sd-event.h \
2935 src/systemd/sd-rtnl.h \
2936 src/systemd/sd-resolve.h \
2937 src/systemd/sd-path.h
2940 lib_LTLIBRARIES += \
2945 test-bus-signature \
2951 test-bus-kernel-bloom \
2952 test-bus-kernel-benchmark \
2953 test-bus-zero-copy \
2954 test-bus-introspect \
2961 test-local-addresses \
2967 test_bus_marshal_SOURCES = \
2968 src/libsystemd/sd-bus/test-bus-marshal.c
2970 test_bus_marshal_LDADD = \
2971 libsystemd-dump.la \
2972 libsystemd-internal.la \
2973 libsystemd-shared.la \
2977 test_bus_marshal_CFLAGS = \
2982 test_bus_signature_SOURCES = \
2983 src/libsystemd/sd-bus/test-bus-signature.c
2985 test_bus_signature_LDADD = \
2986 libsystemd-internal.la \
2987 libsystemd-shared.la
2989 test_bus_chat_SOURCES = \
2990 src/libsystemd/sd-bus/test-bus-chat.c
2992 test_bus_chat_CFLAGS = \
2996 test_bus_chat_LDADD = \
2997 libsystemd-internal.la \
2998 libsystemd-shared.la
3000 test_bus_cleanup_SOURCES = \
3001 src/libsystemd/sd-bus/test-bus-cleanup.c
3003 test_bus_cleanup_CFLAGS = \
3007 test_bus_cleanup_LDADD = \
3008 libsystemd-internal.la \
3009 libsystemd-shared.la
3011 test_bus_server_SOURCES = \
3012 src/libsystemd/sd-bus/test-bus-server.c
3014 test_bus_server_CFLAGS = \
3018 test_bus_server_LDADD = \
3019 libsystemd-internal.la \
3020 libsystemd-shared.la
3022 test_bus_objects_SOURCES = \
3023 src/libsystemd/sd-bus/test-bus-objects.c
3025 test_bus_objects_CFLAGS = \
3029 test_bus_objects_LDADD = \
3030 libsystemd-dump.la \
3031 libsystemd-internal.la \
3032 libsystemd-shared.la
3034 test_bus_error_SOURCES = \
3035 src/libsystemd/sd-bus/test-bus-error.c
3037 test_bus_error_LDADD = \
3038 libsystemd-internal.la \
3039 libsystemd-shared.la
3041 test_bus_gvariant_SOURCES = \
3042 src/libsystemd/sd-bus/test-bus-gvariant.c
3044 test_bus_gvariant_LDADD = \
3045 libsystemd-dump.la \
3046 libsystemd-internal.la \
3047 libsystemd-shared.la \
3050 test_bus_gvariant_CFLAGS = \
3054 test_bus_creds_SOURCES = \
3055 src/libsystemd/sd-bus/test-bus-creds.c
3057 test_bus_creds_LDADD = \
3058 libsystemd-dump.la \
3059 libsystemd-internal.la \
3060 libsystemd-shared.la
3062 test_bus_match_SOURCES = \
3063 src/libsystemd/sd-bus/test-bus-match.c
3065 test_bus_match_LDADD = \
3066 libsystemd-internal.la \
3067 libsystemd-shared.la
3069 test_bus_kernel_SOURCES = \
3070 src/libsystemd/sd-bus/test-bus-kernel.c
3072 test_bus_kernel_LDADD = \
3073 libsystemd-dump.la \
3074 libsystemd-internal.la \
3075 libsystemd-shared.la
3077 test_bus_kernel_bloom_SOURCES = \
3078 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
3080 test_bus_kernel_bloom_LDADD = \
3081 libsystemd-internal.la \
3082 libsystemd-shared.la
3084 test_bus_kernel_benchmark_SOURCES = \
3085 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
3087 test_bus_kernel_benchmark_LDADD = \
3088 libsystemd-internal.la \
3089 libsystemd-shared.la
3091 test_bus_zero_copy_SOURCES = \
3092 src/libsystemd/sd-bus/test-bus-zero-copy.c
3094 test_bus_zero_copy_LDADD = \
3095 libsystemd-dump.la \
3096 libsystemd-internal.la \
3097 libsystemd-shared.la
3099 test_bus_introspect_SOURCES = \
3100 src/libsystemd/sd-bus/test-bus-introspect.c
3102 test_bus_introspect_LDADD = \
3103 libsystemd-internal.la \
3104 libsystemd-shared.la
3106 test_event_SOURCES = \
3107 src/libsystemd/sd-event/test-event.c
3109 test_event_LDADD = \
3110 libsystemd-internal.la \
3111 libsystemd-shared.la
3113 test_rtnl_SOURCES = \
3114 src/libsystemd/sd-rtnl/test-rtnl.c
3117 libsystemd-internal.la \
3118 libsystemd-shared.la
3120 test_local_addresses_SOURCES = \
3121 src/libsystemd/sd-rtnl/test-local-addresses.c
3123 test_local_addresses_LDADD = \
3124 libsystemd-internal.la \
3125 libsystemd-shared.la
3127 test_resolve_SOURCES = \
3128 src/libsystemd/sd-resolve/test-resolve.c
3130 test_resolve_LDADD = \
3131 libsystemd-resolve.la \
3132 libsystemd-internal.la \
3133 libsystemd-shared.la
3135 test_resolve_CFLAGS = \
3140 src/libsystemd/sd-bus/busctl.c \
3141 src/libsystemd/sd-bus/busctl-introspect.c \
3142 src/libsystemd/sd-bus/busctl-introspect.h
3145 libsystemd-dump.la \
3146 libsystemd-internal.la \
3147 libsystemd-shared.la
3149 # ------------------------------------------------------------------------------
3150 noinst_LTLIBRARIES += \
3151 libsystemd-network.la
3153 libsystemd_network_la_CFLAGS = \
3157 libsystemd_network_la_SOURCES = \
3158 src/systemd/sd-dhcp-client.h \
3159 src/systemd/sd-dhcp-server.h \
3160 src/systemd/sd-dhcp-lease.h \
3161 src/systemd/sd-ipv4ll.h \
3162 src/systemd/sd-icmp6-nd.h \
3163 src/systemd/sd-dhcp6-client.h \
3164 src/systemd/sd-dhcp6-lease.h \
3165 src/systemd/sd-pppoe.h \
3166 src/systemd/sd-lldp.h \
3167 src/libsystemd-network/sd-dhcp-client.c \
3168 src/libsystemd-network/sd-dhcp-server.c \
3169 src/libsystemd-network/dhcp-network.c \
3170 src/libsystemd-network/dhcp-option.c \
3171 src/libsystemd-network/dhcp-packet.c \
3172 src/libsystemd-network/dhcp-internal.h \
3173 src/libsystemd-network/dhcp-server-internal.h \
3174 src/libsystemd-network/dhcp-protocol.h \
3175 src/libsystemd-network/dhcp-lease-internal.h \
3176 src/libsystemd-network/sd-dhcp-lease.c \
3177 src/libsystemd-network/sd-ipv4ll.c \
3178 src/libsystemd-network/ipv4ll-network.c \
3179 src/libsystemd-network/ipv4ll-packet.c \
3180 src/libsystemd-network/ipv4ll-internal.h \
3181 src/libsystemd-network/sd-pppoe.c \
3182 src/libsystemd-network/network-internal.c \
3183 src/libsystemd-network/network-internal.h \
3184 src/libsystemd-network/sd-icmp6-nd.c \
3185 src/libsystemd-network/sd-dhcp6-client.c \
3186 src/libsystemd-network/dhcp6-internal.h \
3187 src/libsystemd-network/dhcp6-protocol.h \
3188 src/libsystemd-network/dhcp6-network.c \
3189 src/libsystemd-network/dhcp6-option.c \
3190 src/libsystemd-network/dhcp6-lease-internal.h \
3191 src/libsystemd-network/sd-dhcp6-lease.c \
3192 src/libsystemd-network/dhcp-identifier.h \
3193 src/libsystemd-network/dhcp-identifier.c \
3194 src/libsystemd-network/lldp.h \
3195 src/libsystemd-network/lldp-tlv.h \
3196 src/libsystemd-network/lldp-tlv.c \
3197 src/libsystemd-network/lldp-network.h \
3198 src/libsystemd-network/lldp-network.c \
3199 src/libsystemd-network/lldp-port.h \
3200 src/libsystemd-network/lldp-port.c \
3201 src/libsystemd-network/lldp-internal.h \
3202 src/libsystemd-network/lldp-internal.c \
3203 src/libsystemd-network/lldp-util.h \
3204 src/libsystemd-network/sd-lldp.c
3206 libsystemd_network_la_LIBADD = \
3207 libudev-internal.la \
3208 libsystemd-label.la \
3209 libsystemd-internal.la \
3210 libsystemd-shared.la \
3213 test_dhcp_option_SOURCES = \
3214 src/libsystemd-network/dhcp-protocol.h \
3215 src/libsystemd-network/dhcp-internal.h \
3216 src/libsystemd-network/test-dhcp-option.c
3218 test_dhcp_option_LDADD = \
3219 libsystemd-network.la \
3220 libsystemd-internal.la \
3221 libsystemd-shared.la
3223 test_dhcp_client_SOURCES = \
3224 src/systemd/sd-dhcp-client.h \
3225 src/libsystemd-network/dhcp-protocol.h \
3226 src/libsystemd-network/dhcp-internal.h \
3227 src/libsystemd-network/test-dhcp-client.c
3229 test_dhcp_client_LDADD = \
3230 libsystemd-network.la \
3231 libsystemd-label.la \
3232 libsystemd-internal.la \
3233 libsystemd-shared.la
3235 test_dhcp_server_SOURCES = \
3236 src/libsystemd-network/test-dhcp-server.c
3238 test_dhcp_server_LDADD = \
3239 libsystemd-network.la \
3240 libsystemd-internal.la \
3241 libsystemd-shared.la
3243 test_ipv4ll_SOURCES = \
3244 src/systemd/sd-ipv4ll.h \
3245 src/libsystemd-network/ipv4ll-internal.h \
3246 src/libsystemd-network/test-ipv4ll.c
3248 test_ipv4ll_LDADD = \
3249 libsystemd-network.la \
3250 libsystemd-label.la \
3251 libsystemd-internal.la \
3252 libsystemd-shared.la
3254 test_pppoe_SOURCES = \
3255 src/systemd/sd-pppoe.h \
3256 src/libsystemd-network/test-pppoe.c
3258 test_pppoe_LDADD = \
3259 libsystemd-network.la \
3260 libsystemd-shared.la
3262 test_icmp6_rs_SOURCES = \
3263 src/systemd/sd-dhcp6-client.h \
3264 src/systemd/sd-icmp6-nd.h \
3265 src/libsystemd-network/dhcp6-internal.h \
3266 src/libsystemd-network/test-icmp6-rs.c \
3267 src/libsystemd-network/dhcp-identifier.h \
3268 src/libsystemd-network/dhcp-identifier.c
3270 test_icmp6_rs_LDADD = \
3271 libsystemd-network.la \
3272 libsystemd-internal.la \
3273 libsystemd-shared.la
3275 test_dhcp6_client_SOURCES = \
3276 src/systemd/sd-dhcp6-client.h \
3277 src/libsystemd-network/dhcp6-internal.h \
3278 src/libsystemd-network/test-dhcp6-client.c \
3279 src/libsystemd-network/dhcp-identifier.h \
3280 src/libsystemd-network/dhcp-identifier.c
3282 test_dhcp6_client_LDADD = \
3283 libsystemd-network.la \
3284 libsystemd-internal.la \
3285 libsystemd-shared.la
3287 test_lldp_SOURCES = \
3288 src/libsystemd-network/lldp.h \
3289 src/libsystemd-network/lldp-tlv.h \
3290 src/libsystemd-network/lldp-tlv.c \
3291 src/libsystemd-network/test-lldp.c
3294 libsystemd-network.la \
3295 libsystemd-internal.la \
3296 libsystemd-shared.la
3310 # ------------------------------------------------------------------------------
3312 noinst_LTLIBRARIES += \
3313 libsystemd-terminal.la
3315 rootlibexec_PROGRAMS += \
3318 noinst_PROGRAMS += \
3323 dist_pkgdata_DATA += \
3324 src/libsystemd-terminal/unifont-glyph-array.bin
3326 nodist_userunit_DATA += \
3327 units/user/systemd-consoled.service
3329 USER_DEFAULT_TARGET_WANTS += \
3330 systemd-consoled.service
3339 units/user/systemd-consoled.service.in
3341 libsystemd_terminal_la_CFLAGS = \
3345 libsystemd_terminal_la_SOURCES = \
3346 src/libsystemd-terminal/grdev.h \
3347 src/libsystemd-terminal/grdev-internal.h \
3348 src/libsystemd-terminal/grdev.c \
3349 src/libsystemd-terminal/grdev-drm.c \
3350 src/libsystemd-terminal/idev.h \
3351 src/libsystemd-terminal/idev-internal.h \
3352 src/libsystemd-terminal/idev.c \
3353 src/libsystemd-terminal/idev-evdev.c \
3354 src/libsystemd-terminal/idev-keyboard.c \
3355 src/libsystemd-terminal/sysview.h \
3356 src/libsystemd-terminal/sysview-internal.h \
3357 src/libsystemd-terminal/sysview.c \
3358 src/libsystemd-terminal/term.h \
3359 src/libsystemd-terminal/term-internal.h \
3360 src/libsystemd-terminal/term-charset.c \
3361 src/libsystemd-terminal/term-page.c \
3362 src/libsystemd-terminal/term-parser.c \
3363 src/libsystemd-terminal/term-screen.c \
3364 src/libsystemd-terminal/term-wcwidth.c \
3365 src/libsystemd-terminal/unifont.h \
3366 src/libsystemd-terminal/unifont-def.h \
3367 src/libsystemd-terminal/unifont.c
3369 libsystemd_terminal_la_LIBADD = \
3370 libudev-internal.la \
3371 libsystemd-internal.la \
3372 libsystemd-shared.la \
3375 systemd_consoled_CFLAGS = \
3379 systemd_consoled_SOURCES = \
3380 src/console/consoled.h \
3381 src/console/consoled.c \
3382 src/console/consoled-display.c \
3383 src/console/consoled-manager.c \
3384 src/console/consoled-session.c \
3385 src/console/consoled-terminal.c \
3386 src/console/consoled-workspace.c
3388 systemd_consoled_LDADD = \
3389 libsystemd-terminal.la \
3390 libsystemd-internal.la \
3391 libsystemd-shared.la \
3394 systemd_evcat_CFLAGS = \
3398 systemd_evcat_SOURCES = \
3399 src/libsystemd-terminal/evcat.c
3401 systemd_evcat_LDADD = \
3402 libsystemd-terminal.la \
3403 libsystemd-internal.la \
3404 libsystemd-shared.la \
3407 systemd_modeset_CFLAGS = \
3411 systemd_modeset_SOURCES = \
3412 src/libsystemd-terminal/modeset.c
3414 systemd_modeset_LDADD = \
3415 libsystemd-terminal.la \
3416 libsystemd-internal.la \
3417 libsystemd-shared.la \
3420 systemd_subterm_SOURCES = \
3421 src/libsystemd-terminal/subterm.c
3423 systemd_subterm_LDADD = \
3424 libsystemd-terminal.la \
3425 libsystemd-internal.la \
3426 libsystemd-shared.la
3428 test_term_page_SOURCES = \
3429 src/libsystemd-terminal/test-term-page.c
3431 test_term_page_LDADD = \
3432 libsystemd-terminal.la \
3433 libsystemd-internal.la \
3434 libsystemd-shared.la
3436 test_term_parser_SOURCES = \
3437 src/libsystemd-terminal/test-term-parser.c
3439 test_term_parser_LDADD = \
3440 libsystemd-terminal.la \
3441 libsystemd-internal.la \
3442 libsystemd-shared.la
3444 test_unifont_SOURCES = \
3445 src/libsystemd-terminal/test-unifont.c
3447 test_unifont_LDADD = \
3448 libsystemd-terminal.la \
3449 libsystemd-internal.la \
3450 libsystemd-shared.la
3452 .PHONY: update-unifont
3453 update-unifont: tools/compile-unifont.py
3454 $(AM_V_GEN)$(PYTHON) $< \
3455 <$(top_srcdir)/src/libsystemd-terminal/unifont.hex \
3456 >$(top_srcdir)/src/libsystemd-terminal/unifont-glyph-array.bin
3457 @echo "unifont-glyph-array.bin has been regenerated"
3459 # ------------------------------------------------------------------------------
3469 include_HEADERS += \
3470 src/libudev/libudev.h
3472 lib_LTLIBRARIES += \
3475 libudev_la_SOURCES =\
3476 src/libudev/libudev.sym \
3477 src/libudev/libudev-private.h \
3478 src/libudev/libudev.c \
3479 src/libudev/libudev-list.c \
3480 src/libudev/libudev-util.c \
3481 src/libudev/libudev-device.c \
3482 src/libudev/libudev-enumerate.c \
3483 src/libudev/libudev-monitor.c \
3484 src/libudev/libudev-queue.c \
3485 src/libudev/libudev-hwdb.c
3487 libudev_la_CFLAGS = \
3491 libudev_la_LDFLAGS = \
3493 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3494 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3496 libudev_la_LIBADD = \
3497 libsystemd-internal.la \
3498 libsystemd-shared.la
3500 pkgconfiglib_DATA += \
3501 src/libudev/libudev.pc
3504 src/libudev/libudev.pc.in
3507 src/libudev/libudev.pc \
3512 $(AM_V_at)$(MKDIR_P) $(dir $@)
3513 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
3516 $(AM_V_at)$(MKDIR_P) $(dir $@)
3517 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
3519 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3520 libudev-install-hook:
3521 libname=libudev.so && $(move-to-rootlibdir)
3523 libudev-uninstall-hook:
3524 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3526 INSTALL_EXEC_HOOKS += libudev-install-hook
3527 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3529 # ------------------------------------------------------------------------------
3530 noinst_LTLIBRARIES += \
3533 libudev_internal_la_SOURCES =\
3534 $(libudev_la_SOURCES) \
3535 src/libudev/libudev-device-private.c
3537 libudev_internal_la_CFLAGS = \
3539 -fvisibility=default
3541 # ------------------------------------------------------------------------------
3543 $(sysconfdir)/udev/rules.d
3545 dist_network_DATA = \
3546 network/99-default.link \
3547 network/80-container-host0.network \
3548 network/80-container-ve.network
3550 dist_udevrules_DATA += \
3551 rules/42-usb-hid-pm.rules \
3552 rules/50-udev-default.rules \
3553 rules/60-drm.rules \
3554 rules/60-keyboard.rules \
3555 rules/70-mouse.rules \
3556 rules/60-persistent-storage-tape.rules \
3557 rules/60-persistent-serial.rules \
3558 rules/60-persistent-input.rules \
3559 rules/60-persistent-alsa.rules \
3560 rules/60-persistent-storage.rules \
3561 rules/64-btrfs.rules \
3562 rules/75-net-description.rules \
3563 rules/75-tty-description.rules \
3564 rules/78-sound-card.rules \
3565 rules/80-net-setup-link.rules \
3566 rules/95-udev-late.rules
3568 nodist_udevrules_DATA += \
3569 rules/99-systemd.rules
3571 udevconfdir = $(sysconfdir)/udev
3572 dist_udevconf_DATA = \
3575 sharepkgconfigdir = $(datadir)/pkgconfig
3576 sharepkgconfig_DATA = \
3580 rules/99-systemd.rules.in \
3584 rules/99-systemd.rules \
3588 units/systemd-udevd.service.in \
3589 units/systemd-udev-trigger.service.in \
3590 units/systemd-udev-settle.service.in
3593 units/systemd-udevd.service \
3594 units/systemd-udev-trigger.service \
3595 units/systemd-udev-settle.service
3597 SOCKETS_TARGET_WANTS += \
3598 systemd-udevd-control.socket \
3599 systemd-udevd-kernel.socket
3601 SYSINIT_TARGET_WANTS += \
3602 systemd-udevd.service \
3603 systemd-udev-trigger.service
3605 rootbin_PROGRAMS += \
3608 rootlibexec_PROGRAMS += \
3611 noinst_LTLIBRARIES += \
3614 src/udev/keyboard-keys.txt:
3615 $(AM_V_at)$(MKDIR_P) $(dir $@)
3616 $(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/' > $@
3618 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
3619 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3621 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3622 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3624 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
3625 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
3627 libudev_core_la_SOURCES = \
3629 src/udev/udev-event.c \
3630 src/udev/udev-watch.c \
3631 src/udev/udev-node.c \
3632 src/udev/udev-rules.c \
3633 src/udev/udev-ctrl.c \
3634 src/udev/udev-builtin.c \
3635 src/udev/udev-builtin-btrfs.c \
3636 src/udev/udev-builtin-hwdb.c \
3637 src/udev/udev-builtin-input_id.c \
3638 src/udev/udev-builtin-keyboard.c \
3639 src/udev/udev-builtin-net_id.c \
3640 src/udev/udev-builtin-net_setup_link.c \
3641 src/udev/udev-builtin-path_id.c \
3642 src/udev/udev-builtin-usb_id.c \
3643 src/udev/net/link-config.h \
3644 src/udev/net/link-config.c \
3645 src/udev/net/ethtool-util.h \
3646 src/udev/net/ethtool-util.c
3648 nodist_libudev_core_la_SOURCES = \
3649 src/udev/keyboard-keys-from-name.h \
3650 src/udev/keyboard-keys-to-name.h \
3651 src/udev/net/link-config-gperf.c
3654 $(nodist_libudev_core_la_SOURCES)
3657 src/udev/keyboard-keys-from-name.gperf \
3658 src/udev/keyboard-keys.txt \
3659 src/udev/net/link-config-gperf.c
3662 src/udev/net/link-config-gperf.gperf
3664 libudev_core_la_CFLAGS = \
3669 libudev_core_la_LIBADD = \
3670 libudev-internal.la \
3671 libsystemd-label.la \
3672 libsystemd-internal.la \
3673 libsystemd-network.la \
3674 libsystemd-shared.la \
3679 libudev_core_la_SOURCES += \
3680 src/udev/udev-builtin-kmod.c
3682 dist_udevrules_DATA += \
3683 rules/80-drivers.rules
3687 libudev_core_la_SOURCES += \
3688 src/udev/udev-builtin-blkid.c
3692 libudev_core_la_SOURCES += \
3693 src/udev/udev-builtin-uaccess.c \
3694 src/login/logind-acl.c \
3695 src/libsystemd/sd-login/sd-login.c \
3696 src/systemd/sd-login.h
3698 libudev_core_la_LIBADD += \
3702 systemd_udevd_SOURCES = \
3705 systemd_udevd_LDADD = \
3709 src/udev/udevadm.c \
3710 src/udev/udevadm-info.c \
3711 src/udev/udevadm-control.c \
3712 src/udev/udevadm-monitor.c \
3713 src/udev/udevadm-hwdb.c \
3714 src/udev/udevadm-settle.c \
3715 src/udev/udevadm-trigger.c \
3716 src/udev/udevadm-test.c \
3717 src/udev/udevadm-test-builtin.c \
3718 src/udev/udevadm-util.c \
3719 src/udev/udevadm-util.h
3724 # ------------------------------------------------------------------------------
3727 $(sysconfdir)/udev/hwdb.d
3729 systemd_hwdb_SOURCES = \
3730 src/libsystemd/sd-hwdb/hwdb-internal.h \
3733 systemd_hwdb_LDADD = \
3734 libsystemd-shared.la \
3735 libsystemd-internal.la \
3738 rootbin_PROGRAMS += \
3741 dist_udevhwdb_DATA = \
3742 hwdb/20-pci-vendor-model.hwdb \
3743 hwdb/20-pci-classes.hwdb \
3744 hwdb/20-usb-vendor-model.hwdb \
3745 hwdb/20-usb-classes.hwdb \
3746 hwdb/20-sdio-vendor-model.hwdb \
3747 hwdb/20-sdio-classes.hwdb \
3748 hwdb/20-bluetooth-vendor-product.hwdb \
3749 hwdb/20-acpi-vendor.hwdb \
3751 hwdb/20-net-ifname.hwdb \
3752 hwdb/60-keyboard.hwdb \
3756 units/systemd-hwdb-update.service.in
3759 units/systemd-hwdb-update.service
3761 SYSINIT_TARGET_WANTS += \
3762 systemd-hwdb-update.service
3764 # Update hwdb on installation. Do not bother if installing
3765 # in DESTDIR, since this is likely for packaging purposes.
3767 -test -n "$(DESTDIR)" || $(rootbindir)/systemd-hwdb update
3769 INSTALL_DATA_HOOKS += \
3773 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3776 # ------------------------------------------------------------------------------
3783 test/rule-syntax-check.py \
3784 test/sysv-generator-test.py \
3792 test_libudev_SOURCES = \
3793 src/test/test-libudev.c
3795 test_libudev_LDADD = \
3796 libsystemd-label.la \
3797 libudev-internal.la \
3798 libsystemd-shared.la \
3799 libsystemd-internal.la
3801 test_udev_SOURCES = \
3802 src/test/test-udev.c
3811 test_udev_LDADD += \
3818 # packed sysfs test tree
3820 $(AM_V_at)$(MKDIR_P) $(dir $@)
3821 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3825 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3830 test/rule-syntax-check.py \
3831 test/sysv-generator-test.py \
3835 # ------------------------------------------------------------------------------
3837 src/udev/ata_id/ata_id.c
3840 libudev-internal.la \
3841 libsystemd-shared.la
3843 udevlibexec_PROGRAMS += \
3846 # ------------------------------------------------------------------------------
3847 cdrom_id_SOURCES = \
3848 src/udev/cdrom_id/cdrom_id.c
3851 libudev-internal.la \
3852 libsystemd-shared.la
3854 udevlibexec_PROGRAMS += \
3857 dist_udevrules_DATA += \
3858 rules/60-cdrom_id.rules
3860 # ------------------------------------------------------------------------------
3862 src/udev/collect/collect.c
3865 libudev-internal.la \
3866 libsystemd-shared.la
3868 udevlibexec_PROGRAMS += \
3871 # ------------------------------------------------------------------------------
3873 src/udev/scsi_id/scsi_id.c \
3874 src/udev/scsi_id/scsi_serial.c \
3875 src/udev/scsi_id/scsi.h \
3876 src/udev/scsi_id/scsi_id.h
3879 libudev-internal.la \
3880 libsystemd-shared.la
3882 udevlibexec_PROGRAMS += \
3886 src/udev/scsi_id/README
3888 # ------------------------------------------------------------------------------
3890 src/udev/v4l_id/v4l_id.c
3893 libudev-internal.la \
3894 libsystemd-shared.la
3896 udevlibexec_PROGRAMS += \
3899 dist_udevrules_DATA += \
3900 rules/60-persistent-v4l.rules
3902 # ------------------------------------------------------------------------------
3903 accelerometer_SOURCES = \
3904 src/udev/accelerometer/accelerometer.c
3906 accelerometer_LDADD = \
3907 libudev-internal.la \
3908 libsystemd-shared.la
3910 udevlibexec_PROGRAMS += \
3913 dist_udevrules_DATA += \
3914 rules/61-accelerometer.rules
3916 # ------------------------------------------------------------------------------
3923 libgudev_includedir = \
3924 $(includedir)/gudev-1.0/gudev
3926 libgudev_include_HEADERS = \
3928 src/gudev/gudevenums.h \
3929 src/gudev/gudevenumtypes.h \
3930 src/gudev/gudevtypes.h \
3931 src/gudev/gudevclient.h \
3932 src/gudev/gudevdevice.h \
3933 src/gudev/gudevenumerator.h
3935 lib_LTLIBRARIES += libgudev-1.0.la
3937 pkgconfiglib_DATA += \
3938 src/gudev/gudev-1.0.pc
3941 src/gudev/gudev-1.0.pc
3943 libgudev_1_0_la_SOURCES = \
3944 src/gudev/libgudev-1.0.sym \
3945 src/gudev/gudevenums.h \
3946 src/gudev/gudevenumtypes.h \
3947 src/gudev/gudevenumtypes.h\
3948 src/gudev/gudevtypes.h \
3949 src/gudev/gudevclient.h \
3950 src/gudev/gudevclient.c \
3951 src/gudev/gudevdevice.h \
3952 src/gudev/gudevdevice.c \
3953 src/gudev/gudevenumerator.h \
3954 src/gudev/gudevenumerator.c \
3955 src/gudev/gudevprivate.h
3957 nodist_libgudev_1_0_la_SOURCES = \
3958 src/gudev/gudevmarshal.h \
3959 src/gudev/gudevmarshal.c \
3960 src/gudev/gudevenumtypes.h \
3961 src/gudev/gudevenumtypes.c
3964 $(nodist_libgudev_1_0_la_SOURCES)
3966 libgudev_1_0_la_CPPFLAGS = \
3968 -I$(top_builddir)/src\
3969 -I$(top_srcdir)/src\
3970 -I$(top_builddir)/src/gudev \
3971 -I$(top_srcdir)/src/gudev \
3972 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3973 -D_GUDEV_COMPILATION \
3974 -DG_LOG_DOMAIN=\"GUdev\"
3976 libgudev_1_0_la_CFLAGS = \
3978 -fvisibility=default \
3981 libgudev_1_0_la_LIBADD = \
3985 libgudev_1_0_la_LDFLAGS = \
3987 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3990 -Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym
3992 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3993 $(AM_V_at)$(MKDIR_P) $(dir $@)
3994 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3996 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3997 $(AM_V_at)$(MKDIR_P) $(dir $@)
3998 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3999 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
4001 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
4002 $(AM_V_at)$(MKDIR_P) $(dir $@)
4003 $(AM_V_GEN)glib-mkenums --template $^ > $@
4005 if HAVE_INTROSPECTION
4006 -include $(INTROSPECTION_MAKEFILE)
4008 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
4010 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
4012 src_gudev_GUdev_1_0_gir_CFLAGS = \
4015 -D_GUDEV_COMPILATION \
4016 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
4017 -I$(top_srcdir)/src \
4018 -I$(top_builddir)/src \
4019 -I$(top_srcdir)/src/gudev \
4020 -I$(top_builddir)/src/gudev
4022 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
4024 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
4025 --pkg-export=gudev-1.0 \
4028 src_gudev_GUdev_1_0_gir_FILES = \
4030 src/gudev/gudevtypes.h \
4031 src/gudev/gudevenums.h \
4032 src/gudev/gudevenumtypes.h \
4033 src/gudev/gudevclient.h \
4034 src/gudev/gudevdevice.h \
4035 src/gudev/gudevenumerator.h \
4036 src/gudev/gudevclient.c \
4037 src/gudev/gudevdevice.c \
4038 src/gudev/gudevenumerator.c
4040 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
4041 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
4043 girdir = $(datadir)/gir-1.0
4045 src/gudev/GUdev-1.0.gir
4047 typelibsdir = $(libdir)/girepository-1.0
4049 src/gudev/GUdev-1.0.typelib
4051 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
4052 endif # HAVE_INTROSPECTION
4056 src/gudev/gudev-1.0.pc.in \
4057 src/gudev/gudevmarshal.list \
4058 src/gudev/gudevenumtypes.h.template \
4059 src/gudev/gudevenumtypes.c.template \
4060 src/gudev/gjs-example.js \
4061 src/gudev/seed-example-enum.js \
4062 src/gudev/seed-example.js
4064 # ------------------------------------------------------------------------------
4065 mtd_probe_SOURCES = \
4066 src/udev/mtd_probe/mtd_probe.c \
4067 src/udev/mtd_probe/mtd_probe.h \
4068 src/udev/mtd_probe/probe_smartmedia.c
4070 dist_udevrules_DATA += \
4071 rules/75-probe_mtd.rules
4073 udevlibexec_PROGRAMS += \
4076 # ------------------------------------------------------------------------------
4077 test_id128_SOURCES = \
4078 src/test/test-id128.c
4080 test_id128_LDADD = \
4081 libsystemd-internal.la \
4082 libsystemd-shared.la
4087 # ------------------------------------------------------------------------------
4089 rootlibexec_PROGRAMS += \
4092 systemd_activate_SOURCES = \
4093 src/activate/activate.c
4095 systemd_activate_LDADD = \
4096 libsystemd-label.la \
4097 libsystemd-internal.la \
4098 libsystemd-shared.la
4100 # ------------------------------------------------------------------------------
4101 systemd_journald_SOURCES = \
4102 src/journal/journald.c \
4103 src/journal/journald-server.h
4105 systemd_journald_LDADD = \
4106 libsystemd-journal-core.la \
4107 libsystemd-internal.la \
4108 libsystemd-shared.la
4110 systemd_cat_SOURCES = \
4113 systemd_cat_LDADD = \
4114 libsystemd-journal-core.la
4117 rootlibexec_PROGRAMS += \
4118 systemd-journal-remote
4120 systemd_journal_remote_SOURCES = \
4121 src/journal-remote/journal-remote-parse.h \
4122 src/journal-remote/journal-remote-parse.c \
4123 src/journal-remote/journal-remote-write.h \
4124 src/journal-remote/journal-remote-write.c \
4125 src/journal-remote/journal-remote.h \
4126 src/journal-remote/journal-remote.c
4128 systemd_journal_remote_LDADD = \
4129 libsystemd-internal.la \
4130 libsystemd-journal-core.la
4132 systemd_journal_remote_SOURCES += \
4133 src/journal-remote/microhttpd-util.h \
4134 src/journal-remote/microhttpd-util.c
4136 systemd_journal_remote_CFLAGS = \
4138 $(MICROHTTPD_CFLAGS)
4140 systemd_journal_remote_LDADD += \
4144 dist_sysusers_DATA += \
4145 sysusers.d/systemd-remote.conf
4149 dist_tmpfiles_DATA += \
4150 tmpfiles.d/systemd-remote.conf
4154 systemd_journal_remote_LDADD += \
4157 # systemd-journal-remote make sense mostly with full crypto stack
4158 dist_systemunit_DATA += \
4159 units/systemd-journal-remote.socket
4161 nodist_systemunit_DATA += \
4162 units/systemd-journal-remote.service
4165 units/systemd-journal-remote.service.in
4167 journal-remote-install-hook: journal-install-hook
4168 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
4169 -chown 0:0 $(DESTDIR)/var/log/journal/remote
4170 -chmod 755 $(DESTDIR)/var/log/journal/remote
4172 INSTALL_EXEC_HOOKS += journal-remote-install-hook
4176 nodist_pkgsysconf_DATA += \
4177 src/journal-remote/journal-remote.conf
4180 src/journal-remote/journal-remote.conf.in
4183 src/journal-remote/journal-remote.conf
4187 rootlibexec_PROGRAMS += \
4188 systemd-journal-upload
4190 systemd_journal_upload_SOURCES = \
4191 src/journal-remote/journal-upload.h \
4192 src/journal-remote/journal-upload.c \
4193 src/journal-remote/journal-upload-journal.c
4195 systemd_journal_upload_CFLAGS = \
4199 systemd_journal_upload_LDADD = \
4200 libsystemd-internal.la \
4201 libsystemd-journal-internal.la \
4202 libsystemd-shared.la \
4205 nodist_systemunit_DATA += \
4206 units/systemd-journal-upload.service
4209 units/systemd-journal-upload.service.in
4211 nodist_pkgsysconf_DATA += \
4212 src/journal-remote/journal-upload.conf
4215 src/journal-remote/journal-upload.conf.in
4218 src/journal-remote/journal-upload.conf
4221 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4222 journalctl_CFLAGS = \
4225 journalctl_SOURCES = \
4226 src/journal/journalctl.c
4228 journalctl_LDADD = \
4229 libsystemd-journal-internal.la \
4230 libsystemd-internal.la \
4231 libsystemd-logs.la \
4232 libsystemd-shared.la
4235 journalctl_LDADD += \
4240 journalctl_SOURCES += \
4241 src/journal/journal-qrcode.c \
4242 src/journal/journal-qrcode.h
4244 journalctl_CFLAGS += \
4247 journalctl_LDADD += \
4251 test_journal_SOURCES = \
4252 src/journal/test-journal.c
4254 test_journal_LDADD = \
4255 libsystemd-journal-core.la
4257 test_journal_send_SOURCES = \
4258 src/journal/test-journal-send.c
4260 test_journal_send_LDADD = \
4261 libsystemd-journal-core.la
4263 test_journal_syslog_SOURCES = \
4264 src/journal/test-journal-syslog.c
4266 test_journal_syslog_LDADD = \
4267 libsystemd-journal-core.la
4269 test_journal_match_SOURCES = \
4270 src/journal/test-journal-match.c
4272 test_journal_match_LDADD = \
4273 libsystemd-journal-core.la
4275 test_journal_enum_SOURCES = \
4276 src/journal/test-journal-enum.c
4278 test_journal_enum_LDADD = \
4279 libsystemd-journal-core.la
4281 test_journal_stream_SOURCES = \
4282 src/journal/test-journal-stream.c
4284 test_journal_stream_LDADD = \
4285 libsystemd-journal-core.la
4287 test_journal_flush_SOURCES = \
4288 src/journal/test-journal-flush.c
4290 test_journal_flush_LDADD = \
4291 libsystemd-journal-core.la
4293 test_journal_init_SOURCES = \
4294 src/journal/test-journal-init.c
4296 test_journal_init_LDADD = \
4297 libsystemd-journal-core.la
4299 test_journal_verify_SOURCES = \
4300 src/journal/test-journal-verify.c
4302 test_journal_verify_LDADD = \
4303 libsystemd-journal-core.la
4305 test_journal_interleaving_SOURCES = \
4306 src/journal/test-journal-interleaving.c
4308 test_journal_interleaving_LDADD = \
4309 libsystemd-journal-core.la
4311 test_mmap_cache_SOURCES = \
4312 src/journal/test-mmap-cache.c
4314 test_mmap_cache_LDADD = \
4315 libsystemd-journal-core.la
4317 test_catalog_SOURCES = \
4318 src/journal/test-catalog.c
4320 test_catalog_CPPFLAGS = \
4322 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
4324 test_catalog_LDADD = \
4325 libsystemd-journal-core.la
4327 test_compress_SOURCES = \
4328 src/journal/test-compress.c
4330 test_compress_LDADD = \
4331 libsystemd-journal-internal.la \
4332 libsystemd-shared.la
4334 test_compress_benchmark_SOURCES = \
4335 src/journal/test-compress-benchmark.c
4337 test_compress_benchmark_LDADD = \
4338 libsystemd-journal-internal.la \
4339 libsystemd-shared.la
4341 libsystemd_journal_core_la_SOURCES = \
4342 src/journal/journald-kmsg.c \
4343 src/journal/journald-kmsg.h \
4344 src/journal/journald-syslog.c \
4345 src/journal/journald-syslog.h \
4346 src/journal/journald-stream.c \
4347 src/journal/journald-stream.h \
4348 src/journal/journald-server.c \
4349 src/journal/journald-server.h \
4350 src/journal/journald-console.c \
4351 src/journal/journald-console.h \
4352 src/journal/journald-wall.c \
4353 src/journal/journald-wall.h \
4354 src/journal/journald-native.c \
4355 src/journal/journald-native.h \
4356 src/journal/journald-audit.c \
4357 src/journal/journald-audit.h \
4358 src/journal/journald-rate-limit.c \
4359 src/journal/journald-rate-limit.h \
4360 src/journal/journal-internal.h
4362 nodist_libsystemd_journal_core_la_SOURCES = \
4363 src/journal/journald-gperf.c
4365 libsystemd_journal_core_la_LIBADD = \
4366 libsystemd-journal-internal.la \
4367 libudev-internal.la \
4368 libsystemd-label.la \
4369 libsystemd-internal.la \
4370 libsystemd-shared.la
4373 libsystemd_journal_core_la_LIBADD += \
4377 noinst_LTLIBRARIES += \
4378 libsystemd-journal-core.la
4380 journal-install-hook:
4381 -$(MKDIR_P) $(DESTDIR)/var/log/journal
4382 -chown 0:0 $(DESTDIR)/var/log/journal
4383 -chmod 755 $(DESTDIR)/var/log/journal
4384 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4385 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4387 journal-uninstall-hook:
4388 -rmdir $(DESTDIR)/var/log/journal/remote
4389 -rmdir $(DESTDIR)/var/log/journal/
4391 INSTALL_EXEC_HOOKS += journal-install-hook
4392 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4394 # ------------------------------------------------------------------------------
4395 # Update catalog on installation. Do not bother if installing
4396 # in DESTDIR, since this is likely for packaging purposes.
4397 catalog-update-hook:
4398 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4400 INSTALL_DATA_HOOKS += \
4403 catalog-remove-hook:
4404 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4406 UNINSTALL_DATA_HOOKS += \
4415 test-journal-syslog \
4416 test-journal-match \
4417 test-journal-stream \
4419 test-journal-verify \
4420 test-journal-interleaving \
4421 test-journal-flush \
4428 test-compress-benchmark
4431 pkginclude_HEADERS += \
4432 src/systemd/sd-journal.h \
4433 src/systemd/sd-messages.h \
4434 src/systemd/_sd-common.h
4436 libsystemd_journal_internal_la_SOURCES = \
4437 src/journal/sd-journal.c \
4438 src/systemd/sd-journal.h \
4439 src/systemd/_sd-common.h \
4440 src/journal/journal-file.c \
4441 src/journal/journal-file.h \
4442 src/journal/journal-vacuum.c \
4443 src/journal/journal-vacuum.h \
4444 src/journal/journal-verify.c \
4445 src/journal/journal-verify.h \
4446 src/journal/lookup3.c \
4447 src/journal/lookup3.h \
4448 src/journal/journal-send.c \
4449 src/journal/journal-def.h \
4450 src/journal/compress.h \
4451 src/journal/catalog.c \
4452 src/journal/catalog.h \
4453 src/journal/mmap-cache.c \
4454 src/journal/mmap-cache.h \
4455 src/journal/compress.c
4457 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4458 libsystemd_journal_internal_la_CFLAGS = \
4461 libsystemd_journal_internal_la_LIBADD = \
4465 libsystemd_journal_internal_la_CFLAGS += \
4468 libsystemd_journal_internal_la_LIBADD += \
4473 libsystemd_journal_internal_la_LIBADD += \
4478 libsystemd_journal_internal_la_SOURCES += \
4479 src/journal/journal-authenticate.c \
4480 src/journal/journal-authenticate.h \
4481 src/journal/fsprg.c \
4484 libsystemd_journal_internal_la_LIBADD += \
4487 # fsprg.c is a drop-in file using void pointer arithmetic
4488 libsystemd_journal_internal_la_CFLAGS += \
4493 noinst_LTLIBRARIES += \
4494 libsystemd-journal-internal.la
4496 rootlibexec_PROGRAMS += \
4499 rootbin_PROGRAMS += \
4505 dist_systemunit_DATA += \
4506 units/systemd-journald.socket \
4507 units/systemd-journald-dev-log.socket \
4508 units/systemd-journald-audit.socket
4510 nodist_systemunit_DATA += \
4511 units/systemd-journald.service \
4512 units/systemd-journal-flush.service \
4513 units/systemd-journal-catalog-update.service
4515 dist_pkgsysconf_DATA += \
4516 src/journal/journald.conf
4518 dist_catalog_DATA = \
4519 catalog/systemd.fr.catalog \
4520 catalog/systemd.it.catalog \
4521 catalog/systemd.pl.catalog \
4522 catalog/systemd.pt_BR.catalog \
4523 catalog/systemd.ru.catalog \
4524 catalog/systemd.catalog
4526 SOCKETS_TARGET_WANTS += \
4527 systemd-journald.socket \
4528 systemd-journald-dev-log.socket \
4529 systemd-journald-audit.socket
4531 SYSINIT_TARGET_WANTS += \
4532 systemd-journald.service \
4533 systemd-journal-flush.service \
4534 systemd-journal-catalog-update.service
4537 units/systemd-journald.service.in \
4538 units/systemd-journal-flush.service.in \
4539 units/systemd-journal-catalog-update.service.in \
4540 src/journal/journald-gperf.gperf
4543 src/journal/journald-gperf.c
4545 # ------------------------------------------------------------------------------
4547 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4549 rootlibexec_PROGRAMS += \
4550 systemd-journal-gatewayd
4552 systemd_journal_gatewayd_SOURCES = \
4553 src/journal-remote/journal-gatewayd.c \
4554 src/journal-remote/microhttpd-util.h \
4555 src/journal-remote/microhttpd-util.c
4557 systemd_journal_gatewayd_LDADD = \
4558 libsystemd-logs.la \
4559 libsystemd-journal-internal.la \
4560 libsystemd-internal.la \
4561 libsystemd-shared.la \
4565 systemd_journal_gatewayd_LDADD += \
4569 systemd_journal_gatewayd_CFLAGS = \
4571 $(MICROHTTPD_CFLAGS)
4573 systemd_journal_gatewayd_CPPFLAGS = \
4575 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4577 dist_systemunit_DATA += \
4578 units/systemd-journal-gatewayd.socket
4580 nodist_systemunit_DATA += \
4581 units/systemd-journal-gatewayd.service
4583 dist_gatewayddocumentroot_DATA = \
4584 src/journal-remote/browse.html
4589 units/systemd-journal-gatewayd.service.in
4591 # ------------------------------------------------------------------------------
4593 systemd_socket_proxyd_SOURCES = \
4594 src/socket-proxy/socket-proxyd.c
4596 systemd_socket_proxyd_LDADD = \
4597 libsystemd-logs.la \
4598 libsystemd-internal.la \
4599 libsystemd-journal-internal.la \
4600 libsystemd-shared.la \
4601 libsystemd-resolve.la
4603 # ------------------------------------------------------------------------------
4605 systemd_coredump_SOURCES = \
4606 src/journal/coredump.c \
4607 src/journal/coredump-vacuum.c \
4608 src/journal/coredump-vacuum.h
4610 systemd_coredump_LDADD = \
4611 libsystemd-journal-internal.la \
4612 libsystemd-label.la \
4613 libsystemd-internal.la \
4614 libsystemd-shared.la
4617 systemd_coredump_SOURCES += \
4618 src/journal/stacktrace.c \
4619 src/journal/stacktrace.h
4621 systemd_coredump_LDADD += \
4625 rootlibexec_PROGRAMS += \
4628 dist_pkgsysconf_DATA += \
4629 src/journal/coredump.conf
4632 systemd_coredump_LDADD += \
4636 coredumpctl_SOURCES = \
4637 src/journal/coredumpctl.c
4639 coredumpctl_LDADD = \
4640 libsystemd-journal-internal.la \
4641 libsystemd-internal.la \
4642 libsystemd-shared.la
4648 test-coredump-vacuum
4650 test_coredump_vacuum_SOURCES = \
4651 src/journal/test-coredump-vacuum.c \
4652 src/journal/coredump-vacuum.c \
4653 src/journal/coredump-vacuum.h
4655 test_coredump_vacuum_LDADD = \
4656 libsystemd-internal.la \
4657 libsystemd-shared.la
4659 dist_bashcompletion_DATA += \
4660 shell-completion/bash/coredumpctl
4662 dist_zshcompletion_DATA += \
4663 shell-completion/zsh/_coredumpctl
4666 sysctl.d/50-coredump.conf
4669 sysctl.d/50-coredump.conf
4673 sysctl.d/50-coredump.conf.in
4675 # ------------------------------------------------------------------------------
4677 systemd_binfmt_SOURCES = \
4680 systemd_binfmt_LDADD = \
4681 libsystemd-shared.la
4683 rootlibexec_PROGRAMS += \
4686 dist_systemunit_DATA += \
4687 units/proc-sys-fs-binfmt_misc.automount \
4688 units/proc-sys-fs-binfmt_misc.mount
4690 nodist_systemunit_DATA += \
4691 units/systemd-binfmt.service
4694 $(prefix)/lib/binfmt.d \
4695 $(sysconfdir)/binfmt.d
4697 SYSINIT_TARGET_WANTS += \
4698 systemd-binfmt.service \
4699 proc-sys-fs-binfmt_misc.automount
4704 units/systemd-binfmt.service.in
4706 # ------------------------------------------------------------------------------
4708 systemd_vconsole_setup_SOURCES = \
4709 src/vconsole/vconsole-setup.c
4711 systemd_vconsole_setup_LDADD = \
4712 libsystemd-shared.la
4714 rootlibexec_PROGRAMS += \
4715 systemd-vconsole-setup
4717 nodist_systemunit_DATA += \
4718 units/systemd-vconsole-setup.service
4720 nodist_udevrules_DATA += \
4721 src/vconsole/90-vconsole.rules
4723 SYSINIT_TARGET_WANTS += \
4724 systemd-vconsole-setup.service
4727 src/vconsole/90-vconsole.rules
4731 src/vconsole/90-vconsole.rules.in \
4732 units/systemd-vconsole-setup.service.in
4734 # ------------------------------------------------------------------------------
4736 systemd_bootchart_SOURCES = \
4737 src/bootchart/bootchart.c \
4738 src/bootchart/bootchart.h \
4739 src/bootchart/store.c \
4740 src/bootchart/store.h \
4741 src/bootchart/svg.c \
4744 systemd_bootchart_LDADD = \
4745 libsystemd-journal-internal.la \
4746 libsystemd-shared.la
4748 rootlibexec_PROGRAMS += \
4751 dist_pkgsysconf_DATA += \
4752 src/bootchart/bootchart.conf
4754 nodist_systemunit_DATA += \
4755 units/systemd-bootchart.service
4758 units/systemd-bootchart.service.in
4761 units/systemd-bootchart.service
4764 # ------------------------------------------------------------------------------
4765 if ENABLE_QUOTACHECK
4766 rootlibexec_PROGRAMS += \
4769 nodist_systemunit_DATA += \
4770 units/systemd-quotacheck.service
4772 systemd_quotacheck_SOURCES = \
4773 src/quotacheck/quotacheck.c
4775 systemd_quotacheck_LDADD = \
4776 libsystemd-shared.la
4780 units/systemd-quotacheck.service.in
4782 nodist_systemunit_DATA += \
4783 units/quotaon.service
4785 # ------------------------------------------------------------------------------
4786 if ENABLE_RANDOMSEED
4787 rootlibexec_PROGRAMS += \
4790 nodist_systemunit_DATA += \
4791 units/systemd-random-seed.service
4793 systemd_random_seed_SOURCES = \
4794 src/random-seed/random-seed.c
4796 systemd_random_seed_LDADD = \
4797 libsystemd-label.la \
4798 libsystemd-shared.la
4800 SYSINIT_TARGET_WANTS += \
4801 systemd-random-seed.service
4806 units/systemd-random-seed.service.in
4808 # ------------------------------------------------------------------------------
4810 rootlibexec_PROGRAMS += \
4813 nodist_systemunit_DATA += \
4814 units/systemd-backlight@.service
4816 systemd_backlight_SOURCES = \
4817 src/backlight/backlight.c
4819 systemd_backlight_LDADD = \
4820 libsystemd-label.la \
4821 libudev-internal.la \
4822 libsystemd-shared.la
4826 units/systemd-backlight@.service.in
4828 # ------------------------------------------------------------------------------
4830 rootlibexec_PROGRAMS += \
4833 nodist_systemunit_DATA += \
4834 units/systemd-rfkill@.service
4836 systemd_rfkill_SOURCES = \
4839 systemd_rfkill_LDADD = \
4840 libsystemd-label.la \
4841 libudev-internal.la \
4842 libsystemd-shared.la
4846 units/systemd-rfkill@.service.in
4848 # ------------------------------------------------------------------------------
4849 if HAVE_LIBCRYPTSETUP
4850 rootlibexec_PROGRAMS += \
4853 systemgenerator_PROGRAMS += \
4854 systemd-cryptsetup-generator
4856 dist_systemunit_DATA += \
4857 units/cryptsetup.target \
4858 units/cryptsetup-pre.target
4860 systemd_cryptsetup_SOURCES = \
4861 src/cryptsetup/cryptsetup.c
4863 systemd_cryptsetup_CFLAGS = \
4865 $(LIBCRYPTSETUP_CFLAGS)
4867 systemd_cryptsetup_LDADD = \
4868 libsystemd-label.la \
4869 libudev-internal.la \
4870 libsystemd-shared.la \
4871 $(LIBCRYPTSETUP_LIBS)
4873 systemd_cryptsetup_generator_SOURCES = \
4874 src/cryptsetup/cryptsetup-generator.c
4876 systemd_cryptsetup_generator_LDADD = \
4877 libsystemd-label.la \
4878 libsystemd-shared.la
4880 SYSINIT_TARGET_WANTS += \
4885 # ------------------------------------------------------------------------------
4887 systemd_hostnamed_SOURCES = \
4888 src/hostname/hostnamed.c
4890 systemd_hostnamed_LDADD = \
4891 libsystemd-label.la \
4892 libsystemd-internal.la \
4893 libsystemd-shared.la
4895 rootlibexec_PROGRAMS += \
4898 nodist_systemunit_DATA += \
4899 units/systemd-hostnamed.service
4901 dist_systemunit_DATA_busnames += \
4902 units/org.freedesktop.hostname1.busname
4904 dist_dbuspolicy_DATA += \
4905 src/hostname/org.freedesktop.hostname1.conf
4907 dist_dbussystemservice_DATA += \
4908 src/hostname/org.freedesktop.hostname1.service
4910 polkitpolicy_files += \
4911 src/hostname/org.freedesktop.hostname1.policy
4913 SYSTEM_UNIT_ALIASES += \
4914 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4916 BUSNAMES_TARGET_WANTS += \
4917 org.freedesktop.hostname1.busname
4919 hostnamectl_SOURCES = \
4920 src/hostname/hostnamectl.c
4922 hostnamectl_LDADD = \
4923 libsystemd-internal.la \
4924 libsystemd-shared.la
4929 dist_bashcompletion_DATA += \
4930 shell-completion/bash/hostnamectl
4932 dist_zshcompletion_DATA += \
4933 shell-completion/zsh/_hostnamectl
4937 polkitpolicy_in_files += \
4938 src/hostname/org.freedesktop.hostname1.policy.in
4941 units/systemd-hostnamed.service.in
4943 # ------------------------------------------------------------------------------
4944 dist_systemunit_DATA_busnames += \
4945 units/org.freedesktop.systemd1.busname
4947 BUSNAMES_TARGET_WANTS += \
4948 org.freedesktop.systemd1.busname
4950 # ------------------------------------------------------------------------------
4952 systemd_localed_SOURCES = \
4953 src/locale/localed.c
4955 systemd_localed_LDADD = \
4956 libsystemd-label.la \
4957 libsystemd-internal.la \
4958 libsystemd-shared.la \
4961 systemd_localed_CFLAGS = \
4965 nodist_systemunit_DATA += \
4966 units/systemd-localed.service
4968 dist_systemunit_DATA_busnames += \
4969 units/org.freedesktop.locale1.busname
4971 rootlibexec_PROGRAMS += \
4974 dist_dbuspolicy_DATA += \
4975 src/locale/org.freedesktop.locale1.conf
4977 dist_dbussystemservice_DATA += \
4978 src/locale/org.freedesktop.locale1.service
4980 polkitpolicy_files += \
4981 src/locale/org.freedesktop.locale1.policy
4983 SYSTEM_UNIT_ALIASES += \
4984 systemd-localed.service dbus-org.freedesktop.locale1.service
4986 BUSNAMES_TARGET_WANTS += \
4987 org.freedesktop.locale1.busname
4989 dist_pkgdata_DATA += \
4990 src/locale/kbd-model-map
4992 dist_noinst_SCRIPT = \
4993 src/locale/generate-kbd-model-map
4995 localectl_SOURCES = \
4996 src/locale/localectl.c
4999 libsystemd-internal.la \
5000 libsystemd-shared.la
5005 dist_bashcompletion_DATA += \
5006 shell-completion/bash/localectl
5008 dist_zshcompletion_DATA += \
5009 shell-completion/zsh/_localectl
5013 .PHONY: update-kbd-model-map
5015 polkitpolicy_in_files += \
5016 src/locale/org.freedesktop.locale1.policy.in
5019 units/systemd-localed.service.in
5021 # ------------------------------------------------------------------------------
5023 systemd_timedated_SOURCES = \
5024 src/timedate/timedated.c
5026 systemd_timedated_LDADD = \
5027 libsystemd-label.la \
5028 libsystemd-internal.la \
5029 libsystemd-shared.la
5031 rootlibexec_PROGRAMS += \
5034 dist_dbussystemservice_DATA += \
5035 src/timedate/org.freedesktop.timedate1.service
5037 dist_dbuspolicy_DATA += \
5038 src/timedate/org.freedesktop.timedate1.conf
5040 nodist_systemunit_DATA += \
5041 units/systemd-timedated.service
5043 dist_systemunit_DATA_busnames += \
5044 units/org.freedesktop.timedate1.busname
5046 polkitpolicy_files += \
5047 src/timedate/org.freedesktop.timedate1.policy
5049 SYSTEM_UNIT_ALIASES += \
5050 systemd-timedated.service dbus-org.freedesktop.timedate1.service
5052 BUSNAMES_TARGET_WANTS += \
5053 org.freedesktop.timedate1.busname
5055 timedatectl_SOURCES = \
5056 src/timedate/timedatectl.c
5058 timedatectl_LDADD = \
5059 libsystemd-internal.la \
5060 libsystemd-shared.la
5065 dist_bashcompletion_DATA += \
5066 shell-completion/bash/timedatectl
5068 dist_zshcompletion_DATA += \
5069 shell-completion/zsh/_timedatectl
5072 polkitpolicy_in_files += \
5073 src/timedate/org.freedesktop.timedate1.policy.in
5076 units/systemd-timedated.service.in
5078 # ------------------------------------------------------------------------------
5080 systemd_timesyncd_SOURCES = \
5081 src/timesync/timesyncd.c \
5082 src/timesync/timesyncd-manager.c \
5083 src/timesync/timesyncd-manager.h \
5084 src/timesync/timesyncd-conf.c \
5085 src/timesync/timesyncd-conf.h \
5086 src/timesync/timesyncd-server.c \
5087 src/timesync/timesyncd-server.h
5089 nodist_systemd_timesyncd_SOURCES = \
5090 src/timesync/timesyncd-gperf.c
5093 src/timesync/timesyncd-gperf.gperf
5096 src/timesync/timesyncd-gperf.c
5098 systemd_timesyncd_LDADD = \
5099 libsystemd-resolve.la \
5100 libsystemd-network.la \
5101 libsystemd-label.la \
5102 libsystemd-internal.la \
5103 libsystemd-shared.la
5105 rootlibexec_PROGRAMS += \
5108 nodist_systemunit_DATA += \
5109 units/systemd-timesyncd.service
5111 GENERAL_ALIASES += \
5112 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
5115 units/systemd-timesyncd.service.in
5117 nodist_pkgsysconf_DATA += \
5118 src/timesync/timesyncd.conf
5121 src/timesync/timesyncd.conf.in
5124 src/timesync/timesyncd.conf
5127 # ------------------------------------------------------------------------------
5129 libnss_myhostname_la_SOURCES = \
5130 src/nss-myhostname/nss-myhostname.sym \
5131 src/nss-myhostname/nss-myhostname.c
5133 libnss_myhostname_la_LDFLAGS = \
5140 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
5142 libnss_myhostname_la_LIBADD = \
5143 libsystemd-shared.la \
5144 libsystemd-internal.la
5146 lib_LTLIBRARIES += \
5147 libnss_myhostname.la
5150 # ------------------------------------------------------------------------------
5152 systemd_machined_SOURCES = \
5153 src/machine/machined.c \
5154 src/machine/machined.h
5156 systemd_machined_LDADD = \
5157 libsystemd-machine-core.la
5159 rootlibexec_PROGRAMS += \
5162 libsystemd_machine_core_la_SOURCES = \
5163 src/machine/machine.c \
5164 src/machine/machine.h \
5165 src/machine/machined-dbus.c \
5166 src/machine/machine-dbus.c \
5167 src/machine/machine-dbus.h \
5168 src/machine/image-dbus.c \
5169 src/machine/image-dbus.h
5171 libsystemd_machine_core_la_LIBADD = \
5172 libsystemd-label.la \
5173 libsystemd-internal.la \
5174 libudev-internal.la \
5175 libsystemd-shared.la
5177 noinst_LTLIBRARIES += \
5178 libsystemd-machine-core.la
5180 machinectl_SOURCES = \
5181 src/machine/machinectl.c
5183 machinectl_LDADD = \
5184 libsystemd-internal.la \
5185 libsystemd-logs.la \
5186 libsystemd-journal-internal.la \
5187 libsystemd-shared.la
5189 rootbin_PROGRAMS += \
5192 dist_bashcompletion_DATA += \
5193 shell-completion/bash/machinectl
5195 test_machine_tables_SOURCES = \
5196 src/machine/test-machine-tables.c
5198 test_machine_tables_LDADD = \
5199 libsystemd-machine-core.la
5204 nodist_systemunit_DATA += \
5205 units/systemd-machined.service
5207 dist_systemunit_DATA += \
5210 dist_systemunit_DATA_busnames += \
5211 units/org.freedesktop.machine1.busname
5213 dist_dbussystemservice_DATA += \
5214 src/machine/org.freedesktop.machine1.service
5216 dist_dbuspolicy_DATA += \
5217 src/machine/org.freedesktop.machine1.conf
5219 polkitpolicy_files += \
5220 src/machine/org.freedesktop.machine1.policy
5222 polkitpolicy_in_files += \
5223 src/machine/org.freedesktop.machine1.policy.in
5225 dist_zshcompletion_DATA += \
5226 shell-completion/zsh/_machinectl \
5227 shell-completion/zsh/_sd_machines
5229 SYSTEM_UNIT_ALIASES += \
5230 systemd-machined.service dbus-org.freedesktop.machine1.service
5232 BUSNAMES_TARGET_WANTS += \
5233 org.freedesktop.machine1.busname
5236 units/systemd-machined.service.in
5238 libnss_mymachines_la_SOURCES = \
5239 src/nss-mymachines/nss-mymachines.sym \
5240 src/nss-mymachines/nss-mymachines.c
5242 libnss_mymachines_la_LDFLAGS = \
5249 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
5251 libnss_mymachines_la_LIBADD = \
5252 libsystemd-shared.la \
5253 libsystemd-internal.la
5255 lib_LTLIBRARIES += \
5256 libnss_mymachines.la
5260 # ------------------------------------------------------------------------------
5269 rootlibexec_PROGRAMS += \
5273 systemd_importd_SOURCES = \
5274 src/import/importd.c \
5275 src/import/importd.h
5277 systemd_importd_CFLAGS = \
5279 -D SYSTEMD_IMPORT_PATH=\"$(rootlibexecdir)/systemd-import\" \
5280 -D VENDOR_KEYRING_PATH=\"$(rootlibexecdir)/import-pubring.gpg\" \
5281 -D USER_KEYRING_PATH=\"$(pkgsysconfdir)/import-pubring.gpg\"
5283 systemd_importd_LDADD = \
5284 libsystemd-internal.la \
5285 libsystemd-shared.la
5287 systemd_import_SOURCES = \
5288 src/import/import.c \
5289 src/import/import-raw.c \
5290 src/import/import-raw.h \
5291 src/import/import-tar.c \
5292 src/import/import-tar.h \
5293 src/import/import-dkr.c \
5294 src/import/import-dkr.h \
5295 src/import/import-job.c \
5296 src/import/import-job.h \
5297 src/import/import-common.c \
5298 src/import/import-common.h \
5299 src/import/curl-util.c \
5300 src/import/curl-util.h \
5301 src/import/aufs-util.c \
5302 src/import/aufs-util.h \
5303 src/import/qcow2-util.c \
5304 src/import/qcow2-util.h
5306 systemd_import_CFLAGS = \
5312 -D VENDOR_KEYRING_PATH=\"$(rootlibexecdir)/import-pubring.gpg\" \
5313 -D USER_KEYRING_PATH=\"$(pkgsysconfdir)/import-pubring.gpg\"
5315 systemd_import_LDADD = \
5316 libsystemd-internal.la \
5317 libsystemd-label.la \
5318 libsystemd-shared.la \
5325 dist_rootlibexec_DATA = \
5326 src/import/import-pubring.gpg
5328 nodist_systemunit_DATA += \
5329 units/systemd-importd.service
5332 units/systemd-importd.service.in
5334 dist_systemunit_DATA_busnames += \
5335 units/org.freedesktop.import1.busname
5337 BUSNAMES_TARGET_WANTS += \
5338 org.freedesktop.import1.busname
5340 SYSTEM_UNIT_ALIASES += \
5341 systemd-importd.service dbus-org.freedesktop.import1.service
5343 dist_dbussystemservice_DATA += \
5344 src/import/org.freedesktop.import1.service
5346 dist_dbuspolicy_DATA += \
5347 src/import/org.freedesktop.import1.conf
5349 polkitpolicy_files += \
5350 src/import/org.freedesktop.import1.policy
5352 polkitpolicy_in_files += \
5353 src/import/org.freedesktop.import1.policy.in
5358 test_qcow2_SOURCES = \
5359 src/import/test-qcow2.c \
5360 src/import/qcow2-util.c \
5361 src/import/qcow2-util.h
5363 test_qcow2_CFLAGS = \
5367 test_qcow2_LDADD = \
5368 libsystemd-internal.la \
5369 libsystemd-label.la \
5370 libsystemd-shared.la \
5381 # ------------------------------------------------------------------------------
5383 systemd_resolved_SOURCES = \
5384 src/resolve/resolved.c \
5385 src/resolve/resolved-manager.c \
5386 src/resolve/resolved-manager.h \
5387 src/resolve/resolved-conf.c \
5388 src/resolve/resolved-conf.h \
5389 src/resolve/resolved-bus.c \
5390 src/resolve/resolved-bus.h \
5391 src/resolve/resolved-link.h \
5392 src/resolve/resolved-link.c \
5393 src/resolve/resolved-def.h \
5394 src/resolve/resolved-dns-domain.h \
5395 src/resolve/resolved-dns-domain.c \
5396 src/resolve/resolved-dns-rr.h \
5397 src/resolve/resolved-dns-rr.c \
5398 src/resolve/resolved-dns-question.h \
5399 src/resolve/resolved-dns-question.c \
5400 src/resolve/resolved-dns-answer.h \
5401 src/resolve/resolved-dns-answer.c \
5402 src/resolve/resolved-dns-packet.h \
5403 src/resolve/resolved-dns-packet.c \
5404 src/resolve/resolved-dns-query.h \
5405 src/resolve/resolved-dns-query.c \
5406 src/resolve/resolved-dns-transaction.h \
5407 src/resolve/resolved-dns-transaction.c \
5408 src/resolve/resolved-dns-scope.h \
5409 src/resolve/resolved-dns-scope.c \
5410 src/resolve/resolved-dns-server.h \
5411 src/resolve/resolved-dns-server.c \
5412 src/resolve/resolved-dns-cache.h \
5413 src/resolve/resolved-dns-cache.c \
5414 src/resolve/resolved-dns-zone.h \
5415 src/resolve/resolved-dns-zone.c \
5416 src/resolve/resolved-dns-stream.h \
5417 src/resolve/resolved-dns-stream.c \
5418 src/resolve/dns-type.c \
5419 src/resolve/dns-type.h \
5420 src/resolve/dns_type-from-name.h \
5421 src/resolve/dns_type-to-name.h
5423 nodist_systemd_resolved_SOURCES = \
5424 src/resolve/resolved-gperf.c
5427 src/resolve/resolved-gperf.gperf \
5428 src/resolve/dns_type-from-name.gperf
5431 src/resolve/resolved-gperf.c
5433 systemd_resolved_LDADD = \
5434 libsystemd-network.la \
5435 libsystemd-label.la \
5436 libsystemd-internal.la \
5437 libsystemd-shared.la \
5440 rootlibexec_PROGRAMS += \
5443 nodist_systemunit_DATA += \
5444 units/systemd-resolved.service
5446 dist_systemunit_DATA_busnames += \
5447 units/org.freedesktop.resolve1.busname
5449 dist_dbuspolicy_DATA += \
5450 src/resolve/org.freedesktop.resolve1.conf
5452 dist_dbussystemservice_DATA += \
5453 src/resolve/org.freedesktop.resolve1.service
5456 units/systemd-resolved.service.in
5458 SYSTEM_UNIT_ALIASES += \
5459 systemd-resolved.service dbus-org.freedesktop.resolve1.service
5461 BUSNAMES_TARGET_WANTS += \
5462 org.freedesktop.resolve1.busname
5464 GENERAL_ALIASES += \
5465 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
5467 nodist_pkgsysconf_DATA += \
5468 src/resolve/resolved.conf
5471 src/resolve/resolved.conf.in
5474 src/resolve/resolved.conf
5479 test_dns_domain_SOURCES = \
5480 src/resolve/resolved-dns-domain.h \
5481 src/resolve/resolved-dns-domain.c \
5482 src/resolve/test-dns-domain.c
5484 test_dns_domain_LDADD = \
5485 libsystemd-network.la \
5486 libsystemd-label.la \
5487 libsystemd-internal.la \
5488 libsystemd-shared.la \
5491 libnss_resolve_la_SOURCES = \
5492 src/nss-resolve/nss-resolve.sym \
5493 src/nss-resolve/nss-resolve.c
5495 libnss_resolve_la_LDFLAGS = \
5502 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
5504 libnss_resolve_la_LIBADD = \
5505 libsystemd-internal.la \
5506 libsystemd-shared.la
5508 lib_LTLIBRARIES += \
5511 systemd_resolve_host_SOURCES = \
5512 src/resolve-host/resolve-host.c \
5513 src/resolve/resolved-dns-packet.c \
5514 src/resolve/resolved-dns-packet.h \
5515 src/resolve/resolved-dns-rr.c \
5516 src/resolve/resolved-dns-rr.h \
5517 src/resolve/resolved-dns-answer.c \
5518 src/resolve/resolved-dns-answer.h \
5519 src/resolve/resolved-dns-question.c \
5520 src/resolve/resolved-dns-question.h \
5521 src/resolve/resolved-dns-domain.c \
5522 src/resolve/resolved-dns-domain.h \
5523 src/resolve/dns-type.c \
5524 src/resolve/dns-type.h \
5525 src/resolve/dns_type-from-name.h \
5526 src/resolve/dns_type-to-name.h
5528 systemd_resolve_host_LDADD = \
5529 libsystemd-internal.la \
5530 libsystemd-shared.la \
5533 rootlibexec_PROGRAMS += \
5534 systemd-resolve-host
5538 # ------------------------------------------------------------------------------
5540 rootlibexec_PROGRAMS += \
5543 systemd_networkd_SOURCES = \
5544 src/network/networkd.c
5546 systemd_networkd_LDADD = \
5547 libsystemd-networkd-core.la
5550 systemd_networkd_LDADD += \
5554 noinst_LTLIBRARIES += \
5555 libsystemd-networkd-core.la
5557 libsystemd_networkd_core_la_CFLAGS = \
5560 libsystemd_networkd_core_la_SOURCES = \
5561 src/libsystemd-network/network-internal.h \
5562 src/network/networkd.h \
5563 src/network/networkd-link.h \
5564 src/network/networkd-netdev.h \
5565 src/network/networkd-netdev-tunnel.h \
5566 src/network/networkd-netdev-veth.h \
5567 src/network/networkd-netdev-vxlan.h \
5568 src/network/networkd-netdev-vlan.h \
5569 src/network/networkd-netdev-macvlan.h \
5570 src/network/networkd-netdev-ipvlan.h \
5571 src/network/networkd-netdev-dummy.h \
5572 src/network/networkd-netdev-tuntap.h \
5573 src/network/networkd-netdev-bond.h \
5574 src/network/networkd-netdev-bridge.h \
5575 src/network/networkd-netdev.c \
5576 src/network/networkd-netdev-tunnel.c \
5577 src/network/networkd-netdev-veth.c \
5578 src/network/networkd-netdev-vxlan.c \
5579 src/network/networkd-netdev-vlan.c \
5580 src/network/networkd-netdev-macvlan.c \
5581 src/network/networkd-netdev-ipvlan.c \
5582 src/network/networkd-netdev-dummy.c \
5583 src/network/networkd-netdev-tuntap.c \
5584 src/network/networkd-netdev-bond.c \
5585 src/network/networkd-netdev-bridge.c \
5586 src/network/networkd-link.c \
5587 src/network/networkd-ipv4ll.c \
5588 src/network/networkd-dhcp4.c \
5589 src/network/networkd-dhcp6.c \
5590 src/network/networkd-network.c \
5591 src/network/networkd-address.c \
5592 src/network/networkd-route.c \
5593 src/network/networkd-manager.c \
5594 src/network/networkd-fdb.c \
5595 src/network/networkd-address-pool.c
5597 nodist_libsystemd_networkd_core_la_SOURCES = \
5598 src/network/networkd-network-gperf.c \
5599 src/network/networkd-netdev-gperf.c
5601 libsystemd_networkd_core_la_LIBADD = \
5602 libudev-internal.la \
5603 libsystemd-internal.la \
5604 libsystemd-network.la \
5605 libsystemd-label.la \
5606 libsystemd-shared.la
5608 rootlibexec_PROGRAMS += \
5609 systemd-networkd-wait-online
5611 systemd_networkd_wait_online_CFLAGS = \
5614 systemd_networkd_wait_online_SOURCES = \
5615 src/libsystemd-network/network-internal.h \
5616 src/network/networkd-wait-online.h \
5617 src/network/networkd-wait-online-link.h \
5618 src/network/networkd-wait-online.c \
5619 src/network/networkd-wait-online-manager.c \
5620 src/network/networkd-wait-online-link.c
5622 systemd_networkd_wait_online_LDADD = \
5623 libsystemd-network.la \
5624 libudev-internal.la \
5625 libsystemd-internal.la \
5626 libsystemd-shared.la
5628 rootbin_PROGRAMS += \
5631 networkctl_SOURCES = \
5632 src/network/networkctl.c
5634 networkctl_LDADD = \
5635 libsystemd-internal.la \
5636 libudev-internal.la \
5637 libsystemd-shared.la \
5638 libsystemd-network.la
5640 test_network_SOURCES = \
5641 src/network/test-network.c
5643 test_network_LDADD = \
5644 libsystemd-networkd-core.la
5647 test_network_LDADD += \
5651 test_network_tables_SOURCES = \
5652 src/network/test-network-tables.c \
5653 src/shared/test-tables.h
5655 test_network_tables_LDADD = \
5656 libsystemd-networkd-core.la \
5660 test_network_tables_LDADD += \
5668 nodist_systemunit_DATA += \
5669 units/systemd-networkd.service \
5670 units/systemd-networkd-wait-online.service
5672 GENERAL_ALIASES += \
5673 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5674 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5677 src/network/networkd-network-gperf.gperf \
5678 src/network/networkd-netdev-gperf.gperf \
5679 units/systemd-networkd.service.in \
5680 units/systemd-networkd-wait-online.service.in
5683 src/network/networkd-network-gperf.c \
5684 src/network/networkd-netdev-gperf.c
5687 # ------------------------------------------------------------------------------
5689 systemd_logind_SOURCES = \
5690 src/login/logind.c \
5693 nodist_systemd_logind_SOURCES = \
5694 src/login/logind-gperf.c
5696 systemd_logind_LDADD = \
5697 libsystemd-logind-core.la
5699 libsystemd_logind_core_la_SOURCES = \
5700 src/login/logind-core.c \
5701 src/login/logind-device.c \
5702 src/login/logind-device.h \
5703 src/login/logind-button.c \
5704 src/login/logind-button.h \
5705 src/login/logind-action.c \
5706 src/login/logind-action.h \
5707 src/login/logind-seat.c \
5708 src/login/logind-seat.h \
5709 src/login/logind-session.c \
5710 src/login/logind-session.h \
5711 src/login/logind-session-device.c \
5712 src/login/logind-session-device.h \
5713 src/login/logind-user.c \
5714 src/login/logind-user.h \
5715 src/login/logind-inhibit.c \
5716 src/login/logind-inhibit.h \
5717 src/login/logind-dbus.c \
5718 src/login/logind-session-dbus.c \
5719 src/login/logind-seat-dbus.c \
5720 src/login/logind-user-dbus.c \
5721 src/login/logind-acl.h
5723 libsystemd_logind_core_la_LIBADD = \
5724 libsystemd-label.la \
5725 libsystemd-internal.la \
5726 libudev-internal.la \
5727 libsystemd-shared.la
5730 libsystemd_logind_core_la_SOURCES += \
5731 src/login/logind-acl.c
5733 libsystemd_logind_core_la_LIBADD += \
5737 noinst_LTLIBRARIES += \
5738 libsystemd-logind-core.la
5740 systemd_user_sessions_SOURCES = \
5741 src/login/user-sessions.c
5743 systemd_user_sessions_LDADD = \
5744 libsystemd-shared.la
5746 rootlibexec_PROGRAMS += \
5748 systemd-user-sessions
5750 loginctl_SOURCES = \
5751 src/login/loginctl.c \
5752 src/login/sysfs-show.h \
5753 src/login/sysfs-show.c
5756 libsystemd-internal.la \
5757 libsystemd-logs.la \
5758 libsystemd-journal-internal.la \
5759 libudev-internal.la \
5760 libsystemd-shared.la
5762 rootbin_PROGRAMS += \
5765 dist_bashcompletion_DATA += \
5766 shell-completion/bash/loginctl
5768 dist_zshcompletion_DATA += \
5769 shell-completion/zsh/_loginctl \
5770 shell-completion/zsh/_systemd-inhibit
5772 systemd_inhibit_SOURCES = \
5775 systemd_inhibit_LDADD = \
5776 libsystemd-internal.la \
5777 libsystemd-shared.la
5779 rootbin_PROGRAMS += \
5782 test_login_SOURCES = \
5783 src/libsystemd/sd-login/test-login.c
5785 test_login_LDADD = \
5786 libsystemd-internal.la \
5787 libsystemd-shared.la
5789 test_login_shared_SOURCES = \
5790 src/login/test-login-shared.c
5792 test_login_shared_LDADD = \
5793 libsystemd-internal.la \
5794 libsystemd-shared.la
5796 test_inhibit_SOURCES = \
5797 src/login/test-inhibit.c
5799 test_inhibit_LDADD = \
5800 libsystemd-internal.la \
5801 libsystemd-shared.la
5803 test_login_tables_SOURCES = \
5804 src/login/test-login-tables.c
5806 test_login_tables_LDADD = \
5807 libsystemd-logind-core.la
5818 pam_systemd_la_SOURCES = \
5819 src/login/pam_systemd.sym \
5820 src/login/pam_systemd.c
5822 pam_systemd_la_CFLAGS = \
5827 pam_systemd_la_LDFLAGS = \
5833 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5835 pam_systemd_la_LIBADD = \
5836 libsystemd-internal.la \
5837 libsystemd-shared.la \
5840 pamlib_LTLIBRARIES = \
5843 dist_pamconf_DATA = \
5844 src/login/systemd-user
5847 nodist_systemunit_DATA += \
5848 units/systemd-logind.service \
5849 units/systemd-user-sessions.service
5851 dist_systemunit_DATA += \
5854 dist_systemunit_DATA_busnames += \
5855 units/org.freedesktop.login1.busname
5857 dist_dbussystemservice_DATA += \
5858 src/login/org.freedesktop.login1.service
5860 dist_dbuspolicy_DATA += \
5861 src/login/org.freedesktop.login1.conf
5863 dist_pkgsysconf_DATA += \
5864 src/login/logind.conf
5866 polkitpolicy_files += \
5867 src/login/org.freedesktop.login1.policy
5872 MULTI_USER_TARGET_WANTS += \
5873 systemd-logind.service \
5874 systemd-user-sessions.service
5876 SYSTEM_UNIT_ALIASES += \
5877 systemd-logind.service dbus-org.freedesktop.login1.service
5879 BUSNAMES_TARGET_WANTS += \
5880 org.freedesktop.login1.busname
5882 dist_udevrules_DATA += \
5883 src/login/70-uaccess.rules \
5884 src/login/70-power-switch.rules
5886 nodist_udevrules_DATA += \
5887 src/login/71-seat.rules \
5888 src/login/73-seat-late.rules
5891 src/login/logind-gperf.c \
5892 src/login/71-seat.rules \
5893 src/login/73-seat-late.rules
5896 polkitpolicy_in_files += \
5897 src/login/org.freedesktop.login1.policy.in
5900 src/login/logind-gperf.gperf \
5901 src/login/71-seat.rules.in \
5902 src/login/73-seat-late.rules.in \
5903 units/systemd-logind.service.in \
5904 units/systemd-user-sessions.service.in
5906 # ------------------------------------------------------------------------------
5907 if HAVE_PYTHON_DEVEL
5908 pkgpyexec_LTLIBRARIES = \
5915 _journal_la_SOURCES = \
5916 src/python-systemd/_journal.c
5918 _journal_la_CFLAGS = \
5920 -fvisibility=default \
5921 $(PYTHON_DEVEL_CFLAGS)
5923 _journal_la_LDFLAGS = \
5929 _journal_la_LIBADD = \
5930 $(PYTHON_DEVEL_LIBS) \
5933 id128_la_SOURCES = \
5934 src/python-systemd/id128.c \
5935 src/python-systemd/pyutil.c \
5936 src/python-systemd/pyutil.h
5938 nodist_id128_la_SOURCES = \
5939 src/python-systemd/id128-constants.h
5943 -fvisibility=default \
5944 $(PYTHON_DEVEL_CFLAGS) \
5945 -I$(top_builddir)/src/python-systemd
5947 id128_la_LDFLAGS = \
5954 $(PYTHON_DEVEL_LIBS) \
5955 libsystemd-shared.la \
5958 _daemon_la_SOURCES = \
5959 src/python-systemd/_daemon.c \
5960 src/python-systemd/pyutil.c \
5961 src/python-systemd/pyutil.h
5963 _daemon_la_CFLAGS = \
5965 -fvisibility=default \
5966 $(PYTHON_DEVEL_CFLAGS) \
5967 -I$(top_builddir)/src/python-systemd
5969 _daemon_la_LDFLAGS = \
5975 _daemon_la_LIBADD = \
5976 $(PYTHON_DEVEL_LIBS) \
5977 libsystemd-shared.la \
5980 _reader_la_SOURCES = \
5981 src/python-systemd/_reader.c \
5982 src/python-systemd/pyutil.c \
5983 src/python-systemd/pyutil.h
5985 _reader_la_CFLAGS = \
5987 -fvisibility=default \
5988 $(PYTHON_DEVEL_CFLAGS)
5990 _reader_la_LDFLAGS = \
5996 _reader_la_LIBADD = \
5997 $(PYTHON_DEVEL_LIBS) \
5998 libsystemd-shared.la \
6001 login_la_SOURCES = \
6002 src/python-systemd/login.c \
6003 src/python-systemd/pyutil.c \
6004 src/python-systemd/pyutil.h
6008 -fvisibility=default \
6009 $(PYTHON_DEVEL_CFLAGS)
6011 login_la_LDFLAGS = \
6018 $(PYTHON_DEVEL_LIBS) \
6019 libsystemd-shared.la \
6022 dist_pkgpyexec_PYTHON = \
6023 src/python-systemd/journal.py \
6024 src/python-systemd/daemon.py \
6025 src/python-systemd/__init__.py
6027 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
6028 $(AM_V_at)$(MKDIR_P) $(dir $@)
6029 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
6032 src/python-systemd/id128-constants.h
6034 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
6036 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
6037 $(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/
6038 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
6041 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
6042 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
6045 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
6046 $(MAKE) DESTDIR="$$dir" install && \
6047 $(MAKE) DESTDIR="$$dir" sphinx-html && \
6052 CLEAN_LOCAL_HOOKS += clean-sphinx
6054 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
6057 -rm -rf docs/html/python-systemd/
6059 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
6061 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
6062 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
6064 # ------------------------------------------------------------------------------
6065 if ENABLE_COMPAT_LIBS
6067 src/compat-libs/linkwarning.h
6069 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
6070 $(AM_V_at)$(MKDIR_P) $(dir $@)
6071 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
6074 libsystemd-journal.c \
6075 libsystemd-login.c \
6076 libsystemd-id128.c \
6079 libsystemd_journal_la_SOURCES = \
6080 libsystemd-journal.c \
6081 src/compat-libs/libsystemd-journal.sym
6083 libsystemd_journal_la_CPPFLAGS = \
6085 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
6087 libsystemd_journal_la_LDFLAGS = \
6089 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
6090 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
6092 libsystemd_journal_la_LIBADD = \
6093 libsystemd-journal-internal.la \
6094 libsystemd-internal.la \
6095 libsystemd-shared.la
6097 libsystemd_login_la_SOURCES = \
6098 libsystemd-login.c \
6099 src/compat-libs/libsystemd-login.sym
6101 libsystemd_login_la_CPPFLAGS = \
6103 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
6105 libsystemd_login_la_LDFLAGS = \
6107 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
6108 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
6110 libsystemd_login_la_LIBADD = \
6111 libsystemd-internal.la \
6112 libsystemd-shared.la
6114 libsystemd_id128_la_SOURCES = \
6115 libsystemd-id128.c \
6116 src/compat-libs/libsystemd-id128.sym
6118 libsystemd_id128_la_CPPFLAGS = \
6120 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
6122 libsystemd_id128_la_LDFLAGS = \
6124 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
6125 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
6127 libsystemd_id128_la_LIBADD = \
6128 libsystemd-internal.la \
6129 libsystemd-shared.la
6131 libsystemd_daemon_la_SOURCES = \
6132 libsystemd-daemon.c \
6133 src/compat-libs/libsystemd-daemon.sym
6135 libsystemd_daemon_la_CPPFLAGS = \
6137 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
6139 libsystemd_daemon_la_LDFLAGS = \
6141 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
6142 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
6144 libsystemd_daemon_la_LIBADD = \
6145 libsystemd-internal.la \
6146 libsystemd-shared.la
6148 lib_LTLIBRARIES += \
6149 libsystemd-journal.la \
6150 libsystemd-login.la \
6151 libsystemd-id128.la \
6152 libsystemd-daemon.la
6154 pkgconfiglib_DATA += \
6155 src/compat-libs/libsystemd-journal.pc \
6156 src/compat-libs/libsystemd-login.pc \
6157 src/compat-libs/libsystemd-id128.pc \
6158 src/compat-libs/libsystemd-daemon.pc
6160 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
6161 compat-lib-install-hook:
6162 libname=libsystemd-login.so && $(move-to-rootlibdir)
6163 libname=libsystemd-journal.so && $(move-to-rootlibdir)
6164 libname=libsystemd-id128.so && $(move-to-rootlibdir)
6165 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
6167 compat-lib-uninstall-hook:
6168 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
6169 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
6170 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
6171 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
6173 INSTALL_EXEC_HOOKS += compat-lib-install-hook
6174 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
6178 src/compat-libs/libsystemd-journal.pc.in \
6179 src/compat-libs/libsystemd-login.pc.in \
6180 src/compat-libs/libsystemd-id128.pc.in \
6181 src/compat-libs/libsystemd-daemon.pc.in
6183 # ------------------------------------------------------------------------------
6185 '|rootlibexecdir=$(rootlibexecdir)|' \
6186 '|rootbindir=$(rootbindir)|' \
6187 '|bindir=$(bindir)|' \
6188 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
6189 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
6190 '|pkgsysconfdir=$(pkgsysconfdir)|' \
6191 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
6192 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
6193 '|pkgdatadir=$(pkgdatadir)|' \
6194 '|systemunitdir=$(systemunitdir)|' \
6195 '|userunitdir=$(userunitdir)|' \
6196 '|systempresetdir=$(systempresetdir)|' \
6197 '|userpresetdir=$(userpresetdir)|' \
6198 '|udevhwdbdir=$(udevhwdbdir)|' \
6199 '|udevrulesdir=$(udevrulesdir)|' \
6200 '|catalogdir=$(catalogdir)|' \
6201 '|tmpfilesdir=$(tmpfilesdir)|' \
6202 '|sysusersdir=$(sysusersdir)|' \
6203 '|sysctldir=$(sysctldir)|' \
6204 '|systemgeneratordir=$(systemgeneratordir)|' \
6205 '|usergeneratordir=$(usergeneratordir)|' \
6206 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
6207 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
6208 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
6209 '|PACKAGE_URL=$(PACKAGE_URL)|' \
6210 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
6211 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
6212 '|prefix=$(prefix)|' \
6213 '|exec_prefix=$(exec_prefix)|' \
6214 '|libdir=$(libdir)|' \
6215 '|includedir=$(includedir)|' \
6216 '|VERSION=$(VERSION)|' \
6217 '|rootprefix=$(rootprefix)|' \
6218 '|udevlibexecdir=$(udevlibexecdir)|' \
6219 '|SUSHELL=$(SUSHELL)|' \
6220 '|DEBUGTTY=$(DEBUGTTY)|' \
6223 '|MKDIR_P=$(MKDIR_P)|' \
6224 '|QUOTAON=$(QUOTAON)|' \
6225 '|QUOTACHECK=$(QUOTACHECK)|' \
6226 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
6227 '|VARLOGDIR=$(varlogdir)|' \
6228 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
6229 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
6230 '|PYTHON=$(PYTHON)|' \
6231 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
6232 '|NTP_SERVERS=$(NTP_SERVERS)|' \
6233 '|DNS_SERVERS=$(DNS_SERVERS)|' \
6234 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
6235 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
6236 '|TTY_GID=$(TTY_GID)|' \
6237 '|systemsleepdir=$(systemsleepdir)|' \
6238 '|systemshutdowndir=$(systemshutdowndir)|' \
6239 '|binfmtdir=$(binfmtdir)|' \
6240 '|modulesloaddir=$(modulesloaddir)|'
6243 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
6244 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
6253 sysctl.d/%: sysctl.d/%.in
6262 src/core/macros.%: src/core/macros.%.in
6265 src/%.policy.in: src/%.policy.in.in
6268 shell-completion/%: shell-completion/%.in
6279 $(AM_V_GEN)chmod +x $@
6281 src/%.c: src/%.gperf
6282 $(AM_V_at)$(MKDIR_P) $(dir $@)
6283 $(AM_V_GPERF)$(GPERF) < $< > $@
6286 $(AM_V_at)$(MKDIR_P) $(dir $@)
6287 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6289 sysusers.d/%: sysusers.d/%.m4
6290 $(AM_V_at)$(MKDIR_P) $(dir $@)
6291 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6293 tmpfiles.d/%: tmpfiles.d/%.m4
6294 $(AM_V_at)$(MKDIR_P) $(dir $@)
6295 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6299 $(AM_V_at)$(MKDIR_P) $(dir $@)
6300 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
6302 units/user/%: units/user/%.m4
6303 $(AM_V_at)$(MKDIR_P) $(dir $@)
6304 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
6307 nodist_polkitpolicy_DATA = \
6308 $(polkitpolicy_files) \
6309 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
6313 $(polkitpolicy_in_files) \
6314 $(polkitpolicy_in_in_files)
6317 $(nodist_systemunit_DATA) \
6318 $(nodist_userunit_DATA) \
6319 $(pkgconfiglib_DATA) \
6320 $(nodist_polkitpolicy_DATA)
6322 # ------------------------------------------------------------------------------
6324 man/custom-entities.ent: configure.ac
6325 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
6326 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
6327 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
6331 man/custom-entities.ent
6336 --stringparam man.output.quietly 1 \
6337 --stringparam funcsynopsis.style ansi \
6338 --stringparam man.authors.section.enabled 0 \
6339 --stringparam man.copyright.section.enabled 0 \
6340 --stringparam systemd.version $(VERSION) \
6341 --path '$(builddir)/man:$(srcdir)/man'
6343 XSLTPROC_PROCESS_MAN = \
6344 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
6346 XSLTPROC_PROCESS_HTML = \
6347 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
6349 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
6350 $(XSLTPROC_PROCESS_MAN)
6352 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
6353 $(XSLTPROC_PROCESS_MAN)
6355 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
6356 $(XSLTPROC_PROCESS_MAN)
6358 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
6359 $(XSLTPROC_PROCESS_MAN)
6361 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
6362 $(XSLTPROC_PROCESS_MAN)
6364 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
6365 $(XSLTPROC_PROCESS_HTML)
6368 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
6374 man/custom-html.xsl \
6377 # ------------------------------------------------------------------------------
6380 docs/sysvinit/README
6385 docs/sysvinit/README: docs/sysvinit/README.in
6388 docs/var-log/README: docs/var-log/README.in
6392 docs/sysvinit/README \
6397 docs/sysvinit/README.in \
6398 docs/var-log/README.in
6400 SOCKETS_TARGET_WANTS += \
6401 systemd-initctl.socket \
6402 systemd-shutdownd.socket
6406 RUNLEVEL1_TARGET_WANTS += \
6407 systemd-update-utmp-runlevel.service
6408 RUNLEVEL2_TARGET_WANTS += \
6409 systemd-update-utmp-runlevel.service
6410 RUNLEVEL3_TARGET_WANTS += \
6411 systemd-update-utmp-runlevel.service
6412 RUNLEVEL4_TARGET_WANTS += \
6413 systemd-update-utmp-runlevel.service
6414 RUNLEVEL5_TARGET_WANTS += \
6415 systemd-update-utmp-runlevel.service
6418 SYSINIT_TARGET_WANTS += \
6419 systemd-update-utmp.service
6422 SYSINIT_TARGET_WANTS += \
6423 systemd-update-done.service
6425 LOCAL_FS_TARGET_WANTS += \
6426 systemd-remount-fs.service \
6429 MULTI_USER_TARGET_WANTS += \
6431 systemd-ask-password-wall.path
6433 SYSINIT_TARGET_WANTS += \
6434 dev-hugepages.mount \
6436 sys-kernel-config.mount \
6437 sys-kernel-debug.mount \
6438 sys-fs-fuse-connections.mount \
6439 systemd-sysctl.service \
6440 systemd-ask-password-console.path
6443 SYSTEM_UNIT_ALIASES += \
6444 poweroff.target runlevel0.target \
6445 rescue.target runlevel1.target \
6446 multi-user.target runlevel2.target \
6447 multi-user.target runlevel3.target \
6448 multi-user.target runlevel4.target \
6449 graphical.target runlevel5.target \
6450 reboot.target runlevel6.target
6453 SYSTEM_UNIT_ALIASES += \
6454 graphical.target default.target \
6455 reboot.target ctrl-alt-del.target \
6456 getty@.service autovt@.service
6458 USER_UNIT_ALIASES += \
6459 $(systemunitdir)/shutdown.target shutdown.target \
6460 $(systemunitdir)/sockets.target sockets.target \
6461 $(systemunitdir)/timers.target timers.target \
6462 $(systemunitdir)/paths.target paths.target \
6463 $(systemunitdir)/bluetooth.target bluetooth.target \
6464 $(systemunitdir)/printer.target printer.target \
6465 $(systemunitdir)/sound.target sound.target \
6466 $(systemunitdir)/smartcard.target smartcard.target
6469 USER_UNIT_ALIASES += \
6470 $(systemunitdir)/busnames.target busnames.target
6473 GENERAL_ALIASES += \
6474 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
6475 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
6476 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
6477 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
6481 $(systemunitdir)/runlevel1.target.wants \
6482 $(systemunitdir)/runlevel2.target.wants \
6483 $(systemunitdir)/runlevel3.target.wants \
6484 $(systemunitdir)/runlevel4.target.wants \
6485 $(systemunitdir)/runlevel5.target.wants
6489 $(prefix)/lib/modules-load.d \
6490 $(sysconfdir)/modules-load.d \
6491 $(prefix)/lib/systemd/network \
6492 $(sysconfdir)/systemd/network \
6493 $(prefix)/lib/sysctl.d \
6494 $(sysconfdir)/sysctl.d \
6495 $(prefix)/lib/kernel/install.d \
6496 $(sysconfdir)/kernel/install.d \
6497 $(systemshutdowndir) \
6499 $(systemgeneratordir) \
6500 $(usergeneratordir) \
6503 $(pkgsysconfdir)/system \
6504 $(pkgsysconfdir)/system/multi-user.target.wants \
6505 $(pkgsysconfdir)/system/getty.target.wants \
6506 $(pkgsysconfdir)/user \
6507 $(dbussessionservicedir) \
6508 $(sysconfdir)/xdg/systemd
6510 install-exec-hook: $(INSTALL_EXEC_HOOKS)
6512 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
6514 install-data-hook: $(INSTALL_DATA_HOOKS)
6516 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
6518 clean-local: $(CLEAN_LOCAL_HOOKS)
6519 rm -rf $(abs_srcdir)/install-tree
6520 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
6521 $(abs_srcdir)/hwdb/iab.txt
6523 DISTCHECK_CONFIGURE_FLAGS = \
6524 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
6525 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6526 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
6527 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
6528 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
6529 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
6530 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
6531 --with-rootprefix=$$dc_install_base \
6532 --disable-split-usr \
6534 --enable-compat-libs
6537 DISTCHECK_CONFIGURE_FLAGS += \
6538 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
6539 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
6541 DISTCHECK_CONFIGURE_FLAGS += \
6542 --with-sysvinit-path= \
6543 --with-sysvrcnd-path=
6547 DISTCHECK_CONFIGURE_FLAGS += \
6552 DISTCHECK_CONFIGURE_FLAGS += \
6557 # Require python when making dist
6559 .PHONY: dist-check-python
6562 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
6566 dist-check-compat-libs:
6567 if !ENABLE_COMPAT_LIBS
6568 @echo "*** compat-libs must be enabled in order to make dist"
6572 dist: dist-check-python dist-check-compat-libs
6574 # check "broken" platforms limited toolchains for link breakage before we release
6577 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
6581 ( cd $(top_srcdir)/hwdb && \
6582 wget -N http://www.linux-usb.org/usb.ids \
6583 http://pci-ids.ucw.cz/v2.2/pci.ids \
6584 http://standards.ieee.org/develop/regauth/oui/oui.txt \
6585 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
6588 .PHONY: kdbus-update
6590 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
6591 wget -N https://d-bus.googlecode.com/git/kdbus.h )
6595 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6597 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6599 upload: all check dist
6600 scp systemd-$(VERSION).tar.xz $(www_target)
6603 doc-sync: all destdir-sphinx
6604 gtkdoc-rebase --html-dir=docs/libudev/html --online
6605 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
6606 gtkdoc-rebase --html-dir=docs/gudev/html --online
6607 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
6608 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6609 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
6613 scp man/*.html gardel:public/systemd-man/
6615 .PHONY: lennart-fedora
6617 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
6619 .PHONY: install-tree
6621 rm -rf $(abs_srcdir)/install-tree
6622 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6623 tree $(abs_srcdir)/install-tree
6625 # Let's run all tests of the test suite, but under valgrind. Let's
6626 # exclude the one perl script we have in there
6627 .PHONY: valgrind-tests
6628 valgrind-tests: $(TESTS)
6629 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
6630 if file $$f | grep -q shell; then \
6631 echo -e "$${x}Skipping non-binary $$f"; else \
6632 echo -e "$${x}Running $$f"; \
6633 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6638 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6640 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6641 $(AM_V_GEN)cat $^ > $@
6643 .PHONY: check-api-docs
6644 check-api-docs: exported man
6645 $(AM_V_GEN)for symbol in `cat exported` ; do \
6646 if test -f $(builddir)/man/$$symbol.html ; then \
6647 echo " Symbol $$symbol() is documented." ; \
6649 echo "‣ Symbol $$symbol() lacks documentation." ; \
6653 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6654 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6656 undefined defined: $(ALL_OBJECTS)
6657 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6658 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6659 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6665 .PHONY: check-api-unused
6666 check-api-unused: defined undefined exported
6667 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6669 .PHONY: check-includes
6670 check-includes: $(top_srcdir)/tools/check-includes.pl
6671 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6672 | xargs $(top_srcdir)/tools/check-includes.pl
6675 $(top_srcdir)/tools/check-includes.pl
6677 # Stupid test that everything purported to be exported really is
6678 define generate-sym-test
6679 $(AM_V_at)$(MKDIR_P) $(dir $@)
6680 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6681 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6682 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6683 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6684 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6685 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6686 $(AM_V_at)printf 'return 0; }\n' >> $@
6689 test-libsystemd-sym.c: \
6690 $(top_builddir)/src/libsystemd/libsystemd.sym \
6691 src/systemd/sd-journal.h \
6692 src/systemd/sd-daemon.h \
6693 src/systemd/sd-login.h \
6694 src/systemd/sd-bus.h \
6695 src/systemd/sd-utf8.h \
6696 src/systemd/sd-resolve.h \
6697 src/systemd/sd-path.h
6698 $(generate-sym-test)
6700 test-libudev-sym.c: \
6701 src/libudev/libudev.sym \
6703 $(generate-sym-test)
6705 test_libsystemd_sym_SOURCES = \
6706 test-libsystemd-sym.c
6707 test_libsystemd_sym_LDADD = \
6710 test_libudev_sym_SOURCES = \
6712 test_libudev_sym_CFLAGS = \
6714 -Wno-deprecated-declarations
6715 test_libudev_sym_LDADD = \
6719 $(test_libsystemd_sym_SOURCES) \
6720 $(test_libudev_sym_SOURCES)
6723 test-libsystemd-sym \
6728 cppcheck --enable=all -q $(top_srcdir)
6730 # Used to extract compile flags for YCM.
6735 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u
6738 tools/gdb-sd_dump_hashmaps.py
6741 gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --list-keys
6744 gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --import -