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 =
153 noinst_PROGRAMS = $(manual_tests) $(tests)
159 udevlibexec_PROGRAMS =
161 .PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \
162 $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \
163 $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS)
166 -include $(top_builddir)/config.h \
167 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
168 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
169 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
170 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
171 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
172 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
173 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
174 -DCERTIFICATE_ROOT=\"$(CERTIFICATEROOT)\" \
175 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
176 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
177 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
178 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
179 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
180 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
181 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
182 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
183 -DROOTPREFIX=\"$(rootprefix)\" \
184 -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \
185 -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
186 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
187 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
188 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
189 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
190 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
191 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
192 -DX_SERVER=\"$(bindir)/X\" \
193 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
194 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
195 -DQUOTACHECK=\"$(QUOTACHECK)\" \
196 -DKEXEC=\"$(KEXEC)\" \
197 -DLIBDIR=\"$(libdir)\" \
198 -DROOTLIBDIR=\"$(rootlibdir)\" \
199 -DTEST_DIR=\"$(abs_top_srcdir)/test\" \
200 -I $(top_srcdir)/src \
201 -I $(top_builddir)/src/shared \
202 -I $(top_srcdir)/src/shared \
203 -I $(top_srcdir)/src/network \
204 -I $(top_srcdir)/src/login \
205 -I $(top_srcdir)/src/journal \
206 -I $(top_srcdir)/src/timedate \
207 -I $(top_srcdir)/src/timesync \
208 -I $(top_srcdir)/src/resolve \
209 -I $(top_builddir)/src/resolve \
210 -I $(top_srcdir)/src/systemd \
211 -I $(top_builddir)/src/core \
212 -I $(top_srcdir)/src/core \
213 -I $(top_srcdir)/src/libudev \
214 -I $(top_srcdir)/src/udev \
215 -I $(top_srcdir)/src/udev/net \
216 -I $(top_builddir)/src/udev \
217 -I $(top_srcdir)/src/libsystemd/sd-bus \
218 -I $(top_srcdir)/src/libsystemd/sd-event \
219 -I $(top_srcdir)/src/libsystemd/sd-rtnl \
220 -I $(top_srcdir)/src/libsystemd/sd-network \
221 -I $(top_srcdir)/src/libsystemd/sd-hwdb \
222 -I $(top_srcdir)/src/libsystemd-network \
223 -I $(top_srcdir)/src/libsystemd-terminal \
226 AM_CFLAGS = $(OUR_CFLAGS)
227 AM_LDFLAGS = $(OUR_LDFLAGS)
229 # ------------------------------------------------------------------------------
230 define move-to-rootlibdir
231 if test "$(libdir)" != "$(rootlibdir)"; then \
232 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
233 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
234 rm -f $(DESTDIR)$(libdir)/$$libname && \
235 $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
236 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
242 RUNLEVEL1_TARGET_WANTS =
243 RUNLEVEL2_TARGET_WANTS =
244 RUNLEVEL3_TARGET_WANTS =
245 RUNLEVEL4_TARGET_WANTS =
246 RUNLEVEL5_TARGET_WANTS =
247 SHUTDOWN_TARGET_WANTS =
248 LOCAL_FS_TARGET_WANTS =
249 MULTI_USER_TARGET_WANTS =
250 SYSINIT_TARGET_WANTS =
251 SOCKETS_TARGET_WANTS =
252 BUSNAMES_TARGET_WANTS =
253 TIMERS_TARGET_WANTS =
254 USER_SOCKETS_TARGET_WANTS =
255 USER_DEFAULT_TARGET_WANTS =
256 USER_BUSNAMES_TARGET_WANTS =
258 SYSTEM_UNIT_ALIASES =
262 install-target-wants-hook:
263 what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && dir=$(systemunitdir) && $(add-wants)
264 what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && dir=$(systemunitdir) && $(add-wants)
265 what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && dir=$(systemunitdir) && $(add-wants)
266 what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && dir=$(systemunitdir) && $(add-wants)
267 what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && dir=$(systemunitdir) && $(add-wants)
268 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
269 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
270 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
271 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
272 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
273 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
274 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
275 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
276 what="$(USER_DEFAULT_TARGET_WANTS)" && wants=default.target && dir=$(userunitdir) && $(add-wants)
278 install-busnames-target-wants-hook:
279 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
280 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
283 [ -z "$$what" ] || ( \
284 dir=$(DESTDIR)$$dir/$$wants.wants && \
285 $(MKDIR_P) -m 0755 $$dir && \
288 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
291 install-directories-hook:
292 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
294 install-aliases-hook:
295 set -- $(SYSTEM_UNIT_ALIASES) && \
296 dir=$(systemunitdir) && $(install-aliases)
297 set -- $(USER_UNIT_ALIASES) && \
298 dir=$(userunitdir) && $(install-relative-aliases)
299 set -- $(GENERAL_ALIASES) && \
300 dir= && $(install-relative-aliases)
302 define install-aliases
303 while [ -n "$$1" ]; do \
304 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
305 rm -f $(DESTDIR)$$dir/$$2 && \
306 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
307 shift 2 || exit $$?; \
311 define install-relative-aliases
312 while [ -n "$$1" ]; do \
313 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
314 rm -f $(DESTDIR)$$dir/$$2 && \
315 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
316 shift 2 || exit $$?; \
320 install-touch-usr-hook:
321 touch -c $(DESTDIR)/$(prefix)
323 INSTALL_EXEC_HOOKS += \
324 install-target-wants-hook \
325 install-directories-hook \
326 install-aliases-hook \
327 install-touch-usr-hook
330 INSTALL_EXEC_HOOKS += \
331 install-busnames-target-wants-hook
334 # ------------------------------------------------------------------------------
335 AM_V_M4 = $(AM_V_M4_$(V))
336 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
337 AM_V_M4_0 = @echo " M4 " $@;
339 AM_V_XSLT = $(AM_V_XSLT_$(V))
340 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
341 AM_V_XSLT_0 = @echo " XSLT " $@;
343 AM_V_GPERF = $(AM_V_GPERF_$(V))
344 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
345 AM_V_GPERF_0 = @echo " GPERF " $@;
347 AM_V_LN = $(AM_V_LN_$(V))
348 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
349 AM_V_LN_0 = @echo " LN " $@;
351 AM_V_RM = $(AM_V_RM_$(V))
352 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
353 AM_V_RM_0 = @echo " RM " $@;
355 # ------------------------------------------------------------------------------
359 systemd-ask-password \
360 systemd-tty-ask-password-agent \
361 systemd-machine-id-setup \
368 systemd-detect-virt \
372 systemd-stdio-bridge \
376 src/kernel-install/kernel-install
378 dist_kernelinstall_SCRIPTS = \
379 src/kernel-install/50-depmod.install \
380 src/kernel-install/90-loaderentry.install
382 rootlibexec_PROGRAMS = \
384 systemd-cgroups-agent \
389 systemd-reply-password \
391 systemd-machine-id-commit \
396 systemd-socket-proxyd \
400 rootlibexec_PROGRAMS += \
404 systemgenerator_PROGRAMS = \
405 systemd-getty-generator \
406 systemd-fstab-generator \
407 systemd-system-update-generator \
408 systemd-debug-generator
410 dist_bashcompletion_DATA = \
411 shell-completion/bash/busctl \
412 shell-completion/bash/journalctl \
413 shell-completion/bash/systemd-analyze \
414 shell-completion/bash/systemd-cat \
415 shell-completion/bash/systemd-cgls \
416 shell-completion/bash/systemd-cgtop \
417 shell-completion/bash/systemd-delta \
418 shell-completion/bash/systemd-detect-virt \
419 shell-completion/bash/systemd-nspawn \
420 shell-completion/bash/systemd-run \
421 shell-completion/bash/udevadm \
422 shell-completion/bash/kernel-install
424 nodist_bashcompletion_DATA = \
425 shell-completion/bash/systemctl
427 dist_zshcompletion_DATA = \
428 shell-completion/zsh/_journalctl \
429 shell-completion/zsh/_udevadm \
430 shell-completion/zsh/_kernel-install \
431 shell-completion/zsh/_systemd-nspawn \
432 shell-completion/zsh/_systemd-analyze \
433 shell-completion/zsh/_systemd-run \
434 shell-completion/zsh/_sd_hosts_or_user_at_host \
435 shell-completion/zsh/_sd_outputmodes \
436 shell-completion/zsh/_sd_unit_files \
437 shell-completion/zsh/_systemd-delta \
438 shell-completion/zsh/_systemd
440 nodist_zshcompletion_DATA = \
441 shell-completion/zsh/_systemctl
444 shell-completion/bash/systemctl.in \
445 shell-completion/zsh/_systemctl.in
448 $(nodist_bashcompletion_DATA) \
449 $(nodist_zshcompletion_DATA)
452 sysctl.d/50-default.conf
454 dist_systemunit_DATA = \
455 units/graphical.target \
456 units/multi-user.target \
457 units/emergency.target \
458 units/sysinit.target \
463 units/local-fs.target \
464 units/local-fs-pre.target \
465 units/initrd.target \
466 units/initrd-fs.target \
467 units/initrd-root-fs.target \
468 units/remote-fs.target \
469 units/remote-fs-pre.target \
470 units/network.target \
471 units/network-pre.target \
472 units/network-online.target \
473 units/nss-lookup.target \
474 units/nss-user-lookup.target \
475 units/poweroff.target \
476 units/reboot.target \
477 units/rescue.target \
478 units/rpcbind.target \
479 units/time-sync.target \
480 units/shutdown.target \
482 units/umount.target \
483 units/sigpwr.target \
485 units/sockets.target \
486 units/timers.target \
488 units/suspend.target \
490 units/slices.target \
493 units/systemd-initctl.socket \
494 units/systemd-shutdownd.socket \
495 units/syslog.socket \
496 units/dev-hugepages.mount \
497 units/dev-mqueue.mount \
498 units/sys-kernel-config.mount \
499 units/sys-kernel-debug.mount \
500 units/sys-fs-fuse-connections.mount \
502 units/printer.target \
504 units/bluetooth.target \
505 units/smartcard.target \
506 units/systemd-ask-password-wall.path \
507 units/systemd-ask-password-console.path \
508 units/systemd-udevd-control.socket \
509 units/systemd-udevd-kernel.socket \
510 units/system-update.target \
511 units/initrd-switch-root.target \
512 units/machines.target
515 dist_systemunit_DATA += \
516 $(dist_systemunit_DATA_busnames)
519 dist_systemunit_DATA_busnames += \
520 units/busnames.target
522 nodist_systemunit_DATA = \
523 units/getty@.service \
524 units/serial-getty@.service \
525 units/console-shell.service \
526 units/console-getty.service \
527 units/container-getty@.service \
528 units/systemd-initctl.service \
529 units/systemd-shutdownd.service \
530 units/systemd-remount-fs.service \
531 units/systemd-ask-password-wall.service \
532 units/systemd-ask-password-console.service \
533 units/systemd-sysctl.service \
534 units/emergency.service \
535 units/rescue.service \
536 units/user@.service \
537 units/systemd-suspend.service \
538 units/systemd-halt.service \
539 units/systemd-poweroff.service \
540 units/systemd-reboot.service \
541 units/systemd-kexec.service \
542 units/systemd-fsck@.service \
543 units/systemd-fsck-root.service \
544 units/systemd-machine-id-commit.service \
545 units/systemd-udevd.service \
546 units/systemd-udev-trigger.service \
547 units/systemd-udev-settle.service \
548 units/systemd-hwdb-update.service \
549 units/debug-shell.service \
550 units/initrd-parse-etc.service \
551 units/initrd-cleanup.service \
552 units/initrd-udevadm-cleanup-db.service \
553 units/initrd-switch-root.service \
554 units/systemd-nspawn@.service \
555 units/systemd-update-done.service
558 nodist_systemunit_DATA += \
559 units/systemd-update-utmp.service \
560 units/systemd-update-utmp-runlevel.service
563 dist_userunit_DATA = \
564 units/user/basic.target \
565 units/user/default.target \
566 units/user/exit.target
568 nodist_userunit_DATA = \
569 units/user/systemd-exit.service
571 dist_systempreset_DATA = \
572 system-preset/90-systemd.preset
575 units/getty@.service.m4 \
576 units/serial-getty@.service.m4 \
577 units/console-shell.service.m4.in \
578 units/console-getty.service.m4.in \
579 units/container-getty@.service.m4.in \
580 units/rescue.service.in \
581 units/systemd-initctl.service.in \
582 units/systemd-shutdownd.service.in \
583 units/systemd-remount-fs.service.in \
584 units/systemd-update-utmp.service.in \
585 units/systemd-update-utmp-runlevel.service.in \
586 units/systemd-ask-password-wall.service.in \
587 units/systemd-ask-password-console.service.in \
588 units/systemd-sysctl.service.in \
589 units/emergency.service.in \
590 units/systemd-halt.service.in \
591 units/systemd-poweroff.service.in \
592 units/systemd-reboot.service.in \
593 units/systemd-kexec.service.in \
594 units/user/systemd-exit.service.in \
595 units/systemd-fsck@.service.in \
596 units/systemd-fsck-root.service.in \
597 units/systemd-machine-id-commit.service.in \
598 units/user@.service.m4.in \
599 units/debug-shell.service.in \
600 units/systemd-suspend.service.in \
601 units/quotaon.service.in \
602 units/initrd-parse-etc.service.in \
603 units/initrd-cleanup.service.in \
604 units/initrd-udevadm-cleanup-db.service.in \
605 units/initrd-switch-root.service.in \
606 units/systemd-nspawn@.service.in \
607 units/systemd-update-done.service.in
610 units/console-shell.service.m4 \
611 units/console-getty.service.m4 \
612 units/container-getty@.service.m4 \
613 units/user@.service.m4
616 nodist_systemunit_DATA += \
617 units/rc-local.service \
618 units/halt-local.service
620 systemgenerator_PROGRAMS += \
621 systemd-sysv-generator \
622 systemd-rc-local-generator
626 units/rc-local.service.in \
627 units/halt-local.service.in
629 # automake is broken and can't handle files with a dash in front
630 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
632 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
634 units-uninstall-hook:
635 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
637 INSTALL_DATA_HOOKS += units-install-hook
638 UNINSTALL_DATA_HOOKS += units-uninstall-hook
647 src/libsystemd/sd-bus/PORTING-DBUS1 \
648 src/libsystemd/sd-bus/DIFFERENCES \
649 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
651 @INTLTOOL_POLICY_RULE@
653 # ------------------------------------------------------------------------------
658 include Makefile-man.am
660 .PHONY: man update-man-list
661 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
664 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
666 ${XML_FILES:.xml=.html}
668 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
685 $(AM_V_at)$(MKDIR_P) $(dir $@)
686 $(AM_V_LN)$(LN_S) -f ../../man $@
695 man/index.html: man/systemd.index.html
696 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
704 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
705 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
706 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
708 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB)
709 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
710 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
711 @echo "Makefile-man.am has been regenerated"
713 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
714 $(AM_V_at)$(MKDIR_P) $(dir $@)
715 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
717 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py $(SOURCE_XML_FILES)
718 $(AM_V_at)$(MKDIR_P) $(dir $@)
719 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
722 man/systemd.index.xml \
724 man/systemd.directives.xml \
725 man/glib-event-glue.c
728 man/systemd.index.xml \
729 man/systemd.directives.xml
740 tools/make-man-index.py \
741 tools/make-directive-index.py \
744 # ------------------------------------------------------------------------------
745 noinst_LTLIBRARIES += \
748 libsystemd_shared_la_SOURCES = \
749 src/shared/capability.c \
750 src/shared/capability.h \
751 src/shared/linux/auto_dev-ioctl.h \
752 src/shared/ioprio.h \
753 src/shared/missing.h \
754 src/shared/initreq.h \
755 src/shared/securebits.h \
756 src/shared/special.h \
758 src/shared/unaligned.h \
761 src/shared/sparse-endian.h \
762 src/shared/refcnt.h \
763 src/shared/udev-util.h \
764 src/shared/device-nodes.c \
765 src/shared/device-nodes.h \
770 src/shared/architecture.c \
771 src/shared/architecture.h \
772 src/shared/efivars.c \
773 src/shared/efivars.h \
774 src/shared/fstab-util.c \
775 src/shared/fstab-util.h \
776 src/shared/path-util.c \
777 src/shared/path-util.h \
778 src/shared/time-util.c \
779 src/shared/time-util.h \
780 src/shared/locale-util.c \
781 src/shared/locale-util.h \
782 src/shared/mempool.c \
783 src/shared/mempool.h \
784 src/shared/hashmap.c \
785 src/shared/hashmap.h \
786 src/shared/siphash24.c \
787 src/shared/siphash24.h \
793 src/shared/sleep-config.c \
794 src/shared/sleep-config.h \
797 src/shared/env-util.c \
798 src/shared/env-util.h \
799 src/shared/strbuf.c \
800 src/shared/strbuf.h \
801 src/shared/strxcpyx.c \
802 src/shared/strxcpyx.h \
803 src/shared/conf-parser.c \
804 src/shared/conf-parser.h \
807 src/shared/ratelimit.h \
808 src/shared/ratelimit.c \
809 src/shared/exit-status.c \
810 src/shared/exit-status.h \
813 src/shared/gunicode.c \
814 src/shared/gunicode.h \
817 src/shared/socket-util.c \
818 src/shared/socket-util.h \
819 src/shared/in-addr-util.c \
820 src/shared/in-addr-util.h \
821 src/shared/ether-addr-util.h \
822 src/shared/conf-files.c \
823 src/shared/conf-files.h \
824 src/shared/cgroup-util.c \
825 src/shared/cgroup-util.h \
826 src/shared/cgroup-show.c \
827 src/shared/cgroup-show.h \
828 src/shared/unit-name.c \
829 src/shared/unit-name.h \
830 src/shared/utmp-wtmp.h \
831 src/shared/watchdog.c \
832 src/shared/watchdog.h \
833 src/shared/spawn-ask-password-agent.c \
834 src/shared/spawn-ask-password-agent.h \
835 src/shared/replace-var.c \
836 src/shared/replace-var.h \
837 src/shared/spawn-polkit-agent.c \
838 src/shared/spawn-polkit-agent.h \
839 src/shared/clock-util.c \
840 src/shared/clock-util.h \
841 src/shared/time-dst.c \
842 src/shared/time-dst.h \
843 src/shared/calendarspec.c \
844 src/shared/calendarspec.h \
845 src/shared/fileio.c \
846 src/shared/fileio.h \
847 src/shared/output-mode.h \
848 src/shared/MurmurHash2.c \
849 src/shared/MurmurHash2.h \
850 src/shared/acpi-fpdt.h \
851 src/shared/acpi-fpdt.c \
852 src/shared/boot-timestamps.h \
853 src/shared/boot-timestamps.c \
856 src/shared/smack-util.c \
857 src/shared/smack-util.h \
858 src/shared/apparmor-util.c \
859 src/shared/apparmor-util.h \
860 src/shared/ima-util.c \
861 src/shared/ima-util.h \
862 src/shared/ptyfwd.c \
863 src/shared/ptyfwd.h \
864 src/shared/errno-list.c \
865 src/shared/errno-list.h \
866 src/shared/af-list.c \
867 src/shared/af-list.h \
868 src/shared/arphrd-list.c \
869 src/shared/arphrd-list.h \
870 src/shared/cap-list.c \
871 src/shared/cap-list.h \
878 src/shared/bus-label.c \
879 src/shared/bus-label.h \
881 src/shared/clean-ipc.h \
882 src/shared/clean-ipc.c \
883 src/shared/login-shared.c \
884 src/shared/login-shared.h \
887 src/shared/barrier.c \
888 src/shared/barrier.h \
893 src/shared/base-filesystem.c \
894 src/shared/base-filesystem.h \
895 src/shared/memfd-util.c \
896 src/shared/memfd-util.h \
897 src/shared/uid-range.c \
898 src/shared/uid-range.h \
899 src/shared/nss-util.h \
902 src/shared/sigbus.c \
903 src/shared/sigbus.h \
907 libsystemd_shared_la_SOURCES += \
908 src/shared/utmp-wtmp.c
911 nodist_libsystemd_shared_la_SOURCES = \
912 src/shared/errno-from-name.h \
913 src/shared/errno-to-name.h \
914 src/shared/af-from-name.h \
915 src/shared/af-to-name.h \
916 src/shared/arphrd-from-name.h \
917 src/shared/arphrd-to-name.h \
918 src/shared/cap-from-name.h \
919 src/shared/cap-to-name.h
921 libsystemd_shared_la_CFLAGS = \
927 libsystemd_shared_la_LIBADD = \
931 # ------------------------------------------------------------------------------
932 noinst_LTLIBRARIES += \
935 libsystemd_units_la_SOURCES = \
936 src/shared/install.c \
937 src/shared/install.h \
938 src/shared/install-printf.c \
939 src/shared/install-printf.h \
940 src/shared/path-lookup.c \
941 src/shared/path-lookup.h \
942 src/shared/specifier.c \
943 src/shared/specifier.h
945 # ------------------------------------------------------------------------------
946 noinst_LTLIBRARIES += \
949 libsystemd_label_la_SOURCES = \
950 src/shared/socket-label.c \
953 src/shared/selinux-util.c \
954 src/shared/selinux-util.h \
955 src/shared/mkdir-label.c \
956 src/shared/ask-password-api.c \
957 src/shared/ask-password-api.h \
958 src/shared/switch-root.h \
959 src/shared/switch-root.c \
960 src/shared/fileio-label.c \
961 src/shared/fileio-label.h \
962 src/shared/dev-setup.c \
963 src/shared/dev-setup.h \
964 src/shared/dropin.c \
965 src/shared/dropin.h \
966 src/shared/condition.c \
967 src/shared/condition.h \
968 src/shared/generator.h \
969 src/shared/generator.c \
970 src/shared/btrfs-util.c \
971 src/shared/btrfs-util.h \
972 src/shared/btrfs-ctree.h \
973 src/shared/machine-image.c \
974 src/shared/machine-image.h \
978 libsystemd_label_la_CFLAGS = \
982 libsystemd_label_la_LIBADD = \
985 # -----------------------------------------------------------------------------
988 noinst_LTLIBRARIES += \
991 libsystemd_fw_la_SOURCES = \
992 src/shared/fw-util.h \
995 libsystemd_fw_la_CFLAGS = \
999 libsystemd_fw_la_LIBADD = \
1003 # -----------------------------------------------------------------------------
1006 dist_systemunit_DATA += \
1007 units/ldconfig.service
1009 SYSINIT_TARGET_WANTS += \
1013 # ------------------------------------------------------------------------------
1016 noinst_LTLIBRARIES += \
1017 libsystemd-seccomp.la
1019 libsystemd_seccomp_la_SOURCES = \
1020 src/shared/seccomp-util.h \
1021 src/shared/seccomp-util.c
1023 libsystemd_seccomp_la_CFLAGS = \
1027 libsystemd_seccomp_la_LIBADD = \
1031 # ------------------------------------------------------------------------------
1032 noinst_LTLIBRARIES += \
1035 libsystemd_logs_la_SOURCES = \
1036 src/shared/logs-show.c \
1037 src/shared/logs-show.h
1039 # ------------------------------------------------------------------------------
1041 noinst_LTLIBRARIES += \
1044 libsystemd_acl_la_SOURCES = \
1045 src/shared/acl-util.c \
1046 src/shared/acl-util.h
1048 libsystemd_acl_la_CFLAGS = \
1052 libsystemd_acl_la_LIBADD = \
1056 # ------------------------------------------------------------------------------
1057 noinst_LTLIBRARIES += \
1060 libsystemd_core_la_SOURCES = \
1063 src/core/unit-printf.c \
1064 src/core/unit-printf.h \
1067 src/core/manager.c \
1068 src/core/manager.h \
1069 src/core/transaction.c \
1070 src/core/transaction.h \
1071 src/core/load-fragment.c \
1072 src/core/load-fragment.h \
1073 src/core/service.c \
1074 src/core/service.h \
1077 src/core/busname.c \
1078 src/core/busname.h \
1079 src/core/bus-endpoint.c \
1080 src/core/bus-endpoint.h \
1081 src/core/bus-policy.c \
1082 src/core/bus-policy.h \
1085 src/core/snapshot.c \
1086 src/core/snapshot.h \
1091 src/core/automount.c \
1092 src/core/automount.h \
1103 src/core/load-dropin.c \
1104 src/core/load-dropin.h \
1105 src/core/execute.c \
1106 src/core/execute.h \
1111 src/core/dbus-manager.c \
1112 src/core/dbus-manager.h \
1113 src/core/dbus-unit.c \
1114 src/core/dbus-unit.h \
1115 src/core/dbus-job.c \
1116 src/core/dbus-job.h \
1117 src/core/dbus-service.c \
1118 src/core/dbus-service.h \
1119 src/core/dbus-socket.c \
1120 src/core/dbus-socket.h \
1121 src/core/dbus-busname.c \
1122 src/core/dbus-busname.h \
1123 src/core/dbus-target.c \
1124 src/core/dbus-target.h \
1125 src/core/dbus-snapshot.c \
1126 src/core/dbus-snapshot.h \
1127 src/core/dbus-device.c \
1128 src/core/dbus-device.h \
1129 src/core/dbus-mount.c \
1130 src/core/dbus-mount.h \
1131 src/core/dbus-automount.c \
1132 src/core/dbus-automount.h \
1133 src/core/dbus-swap.c \
1134 src/core/dbus-swap.h \
1135 src/core/dbus-timer.c \
1136 src/core/dbus-timer.h \
1137 src/core/dbus-path.c \
1138 src/core/dbus-path.h \
1139 src/core/dbus-slice.c \
1140 src/core/dbus-slice.h \
1141 src/core/dbus-scope.c \
1142 src/core/dbus-scope.h \
1143 src/core/dbus-execute.c \
1144 src/core/dbus-execute.h \
1145 src/core/dbus-kill.c \
1146 src/core/dbus-kill.h \
1147 src/core/dbus-cgroup.c \
1148 src/core/dbus-cgroup.h \
1151 src/core/selinux-access.c \
1152 src/core/selinux-access.h \
1153 src/core/selinux-setup.c \
1154 src/core/selinux-setup.h \
1155 src/core/smack-setup.c \
1156 src/core/smack-setup.h \
1157 src/core/ima-setup.c \
1158 src/core/ima-setup.h \
1159 src/core/locale-setup.h \
1160 src/core/locale-setup.c \
1161 src/core/hostname-setup.c \
1162 src/core/hostname-setup.h \
1163 src/core/machine-id-setup.c \
1164 src/core/machine-id-setup.h \
1165 src/core/mount-setup.c \
1166 src/core/mount-setup.h \
1167 src/core/kmod-setup.c \
1168 src/core/kmod-setup.h \
1169 src/core/loopback-setup.h \
1170 src/core/loopback-setup.c \
1171 src/core/namespace.c \
1172 src/core/namespace.h \
1173 src/core/killall.h \
1174 src/core/killall.c \
1175 src/core/audit-fd.c \
1176 src/core/audit-fd.h \
1177 src/core/show-status.c \
1178 src/core/show-status.h \
1179 src/core/failure-action.c \
1180 src/core/failure-action.h
1182 nodist_libsystemd_core_la_SOURCES = \
1183 src/core/load-fragment-gperf.c \
1184 src/core/load-fragment-gperf-nulstr.c
1186 libsystemd_core_la_CFLAGS = \
1191 $(APPARMOR_CFLAGS) \
1196 libsystemd_core_la_LIBADD = \
1197 libsystemd-units.la \
1198 libsystemd-label.la \
1199 libudev-internal.la \
1200 libsystemd-shared.la \
1201 libsystemd-internal.la \
1210 libsystemd_core_la_LIBADD += \
1211 libsystemd-seccomp.la
1214 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1215 $(AM_V_at)$(MKDIR_P) $(dir $@)
1216 $(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 ";" }' < $< > $@
1219 src/core/load-fragment-gperf.gperf.m4
1222 src/core/load-fragment-gperf.gperf \
1223 src/core/load-fragment-gperf.c \
1224 src/core/load-fragment-gperf-nulstr.c \
1225 src/shared/errno-list.txt \
1226 src/shared/errno-from-name.gperf \
1227 src/shared/af-list.txt \
1228 src/shared/af-from-name.gperf \
1229 src/shared/arphrd-list.txt \
1230 src/shared/arphrd-from-name.gperf \
1231 src/shared/cap-list.txt \
1232 src/shared/cap-from-name.gperf \
1233 src/resolve/dns_type-list.txt \
1234 src/resolve/dns_type-from-name.gperf
1237 src/shared/errno-from-name.h \
1238 src/shared/errno-to-name.h \
1239 src/shared/af-from-name.h \
1240 src/shared/af-to-name.h \
1241 src/shared/arphrd-from-name.h \
1242 src/shared/arphrd-to-name.h \
1243 src/shared/cap-from-name.h \
1244 src/shared/cap-to-name.h \
1245 src/resolve/dns_type-from-name.h \
1246 src/resolve/dns_type-to-name.h
1248 %-from-name.gperf: %-list.txt
1249 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1251 %-from-name.h: %-from-name.gperf
1252 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1255 src/shared/errno-list.txt:
1256 $(AM_V_at)$(MKDIR_P) $(dir $@)
1257 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1259 src/shared/errno-to-name.h: src/shared/errno-list.txt
1260 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1263 src/shared/af-list.txt:
1264 $(AM_V_at)$(MKDIR_P) $(dir $@)
1265 $(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; }' >$@
1267 src/shared/af-to-name.h: src/shared/af-list.txt
1268 $(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 "};"}' <$< >$@
1271 src/shared/arphrd-list.txt:
1272 $(AM_V_at)$(MKDIR_P) $(dir $@)
1273 $(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_//' >$@
1275 src/shared/arphrd-to-name.h: src/shared/arphrd-list.txt
1276 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1278 src/shared/arphrd-from-name.gperf: src/shared/arphrd-list.txt
1279 $(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 }' <$< >$@
1282 src/shared/cap-list.txt:
1283 $(AM_V_at)$(MKDIR_P) $(dir $@)
1284 $(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 >$@
1286 src/shared/cap-to-name.h: src/shared/cap-list.txt
1287 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const capability_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, tolower($$1) } END{print "};"}' <$< >$@
1289 src/shared/cap-from-name.gperf: src/shared/cap-list.txt
1290 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct capability_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1292 src/shared/cap-from-name.h: src/shared/cap-from-name.gperf
1293 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_capability -H hash_capability_name -p -C <$< >$@
1296 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1297 $(AM_V_at)$(MKDIR_P) $(dir $@)
1298 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1300 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1301 $(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" }' <$< >$@
1303 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1304 $(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 }' <$< >$@
1306 # ------------------------------------------------------------------------------
1315 libsystemd-core.la \
1318 dist_pkgsysconf_DATA += \
1319 src/core/system.conf \
1322 dist_dbuspolicy_DATA += \
1323 src/core/org.freedesktop.systemd1.conf
1325 dist_dbussystemservice_DATA += \
1326 src/core/org.freedesktop.systemd1.service
1328 polkitpolicy_in_in_files += \
1329 src/core/org.freedesktop.systemd1.policy.in.in
1331 pkgconfiglib_DATA += \
1334 nodist_rpmmacros_DATA = \
1335 src/core/macros.systemd
1338 src/core/systemd.pc.in \
1339 src/core/macros.systemd.in
1342 src/core/macros.systemd \
1343 src/core/org.freedesktop.systemd1.policy.in
1345 # ------------------------------------------------------------------------------
1395 test-strip-tab-ansi \
1431 test/daughter.service \
1436 test/grandchild.service \
1438 test/hello-after-sleep.target \
1439 test/hello.service \
1441 test/parent-deep.slice \
1444 test/sched_idle_bad.service \
1445 test/sched_idle_ok.service \
1446 test/sched_rr_bad.service \
1447 test/sched_rr_change.service \
1448 test/sched_rr_ok.service \
1449 test/shutdown.target \
1450 test/sleep.service \
1451 test/sockets.target \
1453 test/sysinit.target \
1454 test/testsuite.target \
1455 test/timers.target \
1456 test/unstoppable.service \
1457 test/path-changed.service \
1458 test/path-directorynotempty.service \
1459 test/path-existsglob.service \
1460 test/path-exists.service \
1461 test/path-makedirectory.service \
1462 test/path-modified.service \
1463 test/path-mycustomunit.service \
1464 test/path-service.service \
1465 test/path-changed.path \
1466 test/path-directorynotempty.path \
1467 test/path-existsglob.path \
1468 test/path-exists.path \
1469 test/path-makedirectory.path \
1470 test/path-modified.path \
1471 test/path-unit.path \
1472 test/exec-environment-empty.service \
1473 test/exec-environment-multiple.service \
1474 test/exec-environment.service \
1475 test/exec-group.service \
1476 test/exec-ignoresigpipe-no.service \
1477 test/exec-ignoresigpipe-yes.service \
1478 test/exec-personality-x86-64.service \
1479 test/exec-personality-x86.service \
1480 test/exec-privatedevices-no.service \
1481 test/exec-privatedevices-yes.service \
1482 test/exec-privatetmp-no.service \
1483 test/exec-privatetmp-yes.service \
1484 test/exec-systemcallerrornumber.service \
1485 test/exec-systemcallfilter-failing2.service \
1486 test/exec-systemcallfilter-failing.service \
1487 test/exec-systemcallfilter-not-failing2.service \
1488 test/exec-systemcallfilter-not-failing.service \
1489 test/exec-user.service \
1490 test/exec-workingdirectory.service \
1491 test/exec-umask-0177.service \
1492 test/exec-umask-default.service \
1493 test/bus-policy/hello.conf \
1494 test/bus-policy/methods.conf \
1495 test/bus-policy/ownerships.conf \
1496 test/bus-policy/signals.conf \
1497 test/bus-policy/check-own-rules.conf \
1498 test/bus-policy/many-rules.conf \
1499 test/bus-policy/test.conf
1503 src/test/test-helper.h
1505 test_device_nodes_SOURCES = \
1506 src/test/test-device-nodes.c
1508 test_device_nodes_LDADD = \
1509 libsystemd-shared.la
1511 test_engine_SOURCES = \
1512 src/test/test-engine.c
1514 test_engine_CFLAGS = \
1518 test_engine_LDADD = \
1519 libsystemd-core.la \
1522 test_job_type_SOURCES = \
1523 src/test/test-job-type.c
1525 test_job_type_CFLAGS = \
1529 test_job_type_LDADD = \
1530 libsystemd-core.la \
1543 test_loopback_SOURCES = \
1544 src/test/test-loopback.c
1546 test_loopback_LDADD = \
1549 test_hostname_SOURCES = \
1550 src/test/test-hostname.c
1552 test_hostname_LDADD = \
1559 test_boot_timestamp_SOURCES = \
1560 src/test/test-boot-timestamps.c
1562 test_boot_timestamp_LDADD = \
1563 libsystemd-shared.la
1566 test_unit_name_SOURCES = \
1567 src/test/test-unit-name.c
1569 test_unit_name_CFLAGS = \
1573 test_unit_name_LDADD = \
1574 libsystemd-core.la \
1577 test_unit_file_SOURCES = \
1578 src/test/test-unit-file.c
1580 test_unit_file_CFLAGS = \
1584 test_unit_file_LDADD = \
1585 libsystemd-core.la \
1588 test_utf8_SOURCES = \
1589 src/test/test-utf8.c
1592 libsystemd-shared.la
1594 test_capability_SOURCES = \
1595 src/test/test-capability.c
1597 test_capability_LDADD = \
1598 libsystemd-shared.la
1600 test_async_SOURCES = \
1601 src/test/test-async.c
1603 test_async_LDADD = \
1604 libsystemd-shared.la
1606 test_locale_util_SOURCES = \
1607 src/test/test-locale-util.c
1609 test_locale_util_LDADD = \
1610 libsystemd-shared.la
1612 test_copy_SOURCES = \
1613 src/test/test-copy.c
1616 libsystemd-label.la \
1617 libsystemd-shared.la
1619 test_sigbus_SOURCES = \
1620 src/test/test-sigbus.c
1622 test_sigbus_LDADD = \
1623 libsystemd-shared.la
1625 test_condition_SOURCES = \
1626 src/test/test-condition.c
1628 test_condition_LDADD = \
1629 libsystemd-label.la \
1630 libsystemd-internal.la \
1631 libsystemd-shared.la
1633 test_fdset_SOURCES = \
1634 src/test/test-fdset.c
1636 test_fdset_LDADD = \
1637 libsystemd-shared.la \
1638 libsystemd-internal.la
1640 test_fstab_util_SOURCES = \
1641 src/test/test-fstab-util.c
1643 test_fstab_util_LDADD = \
1644 libsystemd-shared.la
1646 test_ratelimit_SOURCES = \
1647 src/test/test-ratelimit.c
1649 test_ratelimit_LDADD = \
1650 libsystemd-shared.la
1652 test_util_SOURCES = \
1653 src/test/test-util.c
1656 libsystemd-shared.la
1658 test_path_lookup_SOURCES = \
1659 src/test/test-path-lookup.c
1661 test_path_lookup_LDADD = \
1663 libsystemd-units.la \
1664 libsystemd-shared.la
1666 test_uid_range_SOURCES = \
1667 src/test/test-uid-range.c
1669 test_uid_range_LDADD = \
1670 libsystemd-shared.la
1672 test_cap_list_SOURCES = \
1673 src/test/test-cap-list.c
1675 test_cap_list_LDADD = \
1676 libsystemd-shared.la
1678 test_socket_util_SOURCES = \
1679 src/test/test-socket-util.c
1681 test_socket_util_LDADD = \
1682 libsystemd-shared.la
1684 test_ring_SOURCES = \
1685 src/test/test-ring.c
1688 libsystemd-shared.la
1690 test_barrier_SOURCES = \
1691 src/test/test-barrier.c
1693 test_barrier_LDADD = \
1694 libsystemd-shared.la
1696 test_pty_SOURCES = \
1702 test_tmpfiles_SOURCES = \
1703 src/test/test-tmpfiles.c
1705 test_tmpfiles_LDADD = \
1706 libsystemd-shared.la
1708 test_namespace_SOURCES = \
1709 src/test/test-namespace.c
1711 test_verbs_SOURCES = \
1712 src/test/test-verbs.c
1714 test_verbs_LDADD = \
1715 libsystemd-shared.la
1717 test_namespace_LDADD = \
1721 src/test/test-hashmap-ordered.c
1724 src/test/test-hashmap-ordered.c
1726 src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c
1727 $(AM_V_at)$(MKDIR_P) $(dir $@)
1728 $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \
1729 { if (!match($$0, "^#include")) \
1730 gsub(/hashmap/, "ordered_hashmap"); \
1731 gsub(/HASHMAP/, "ORDERED_HASHMAP"); \
1732 gsub(/Hashmap/, "OrderedHashmap"); \
1735 nodist_test_hashmap_SOURCES = \
1736 src/test/test-hashmap-ordered.c
1738 test_hashmap_SOURCES = \
1739 src/test/test-hashmap.c \
1740 src/test/test-hashmap-plain.c
1742 test_hashmap_LDADD = \
1743 libsystemd-shared.la
1745 test_set_SOURCES = \
1749 libsystemd-shared.la
1751 test_xml_SOURCES = \
1755 libsystemd-shared.la
1757 test_json_SOURCES = \
1758 src/test/test-json.c
1761 libsystemd-shared.la
1763 test_list_SOURCES = \
1764 src/test/test-list.c
1767 libsystemd-shared.la
1769 test_unaligned_LDADD = \
1770 libsystemd-shared.la
1772 test_unaligned_SOURCES = \
1773 src/test/test-unaligned.c
1775 test_tables_SOURCES = \
1776 src/test/test-tables.c \
1777 src/shared/test-tables.h \
1778 src/bus-proxyd/bus-xml-policy.c \
1779 src/bus-proxyd/bus-xml-policy.h \
1780 src/journal/journald-server.c \
1781 src/journal/journald-server.h
1783 test_tables_CPPFLAGS = \
1785 -I$(top_srcdir)/src/bus-proxyd
1787 test_tables_CFLAGS = \
1791 test_tables_LDADD = \
1792 libsystemd-logs.la \
1793 libsystemd-journal-internal.la \
1794 libsystemd-journal-core.la \
1795 libsystemd-core.la \
1799 test_prioq_SOURCES = \
1800 src/test/test-prioq.c
1802 test_prioq_LDADD = \
1803 libsystemd-shared.la
1805 test_fileio_SOURCES = \
1806 src/test/test-fileio.c
1808 test_fileio_LDADD = \
1809 libsystemd-shared.la
1811 test_time_SOURCES = \
1812 src/test/test-time.c
1815 libsystemd-shared.la
1817 test_architecture_SOURCES = \
1818 src/test/test-architecture.c
1820 test_architecture_LDADD = \
1821 libsystemd-shared.la
1823 test_log_SOURCES = \
1827 libsystemd-shared.la
1829 test_ipcrm_SOURCES = \
1830 src/test/test-ipcrm.c
1832 test_ipcrm_LDADD = \
1833 libsystemd-shared.la \
1836 test_btrfs_SOURCES = \
1837 src/test/test-btrfs.c
1839 test_btrfs_LDADD = \
1840 libsystemd-label.la \
1841 libsystemd-shared.la
1844 test_fw_util_SOURCES = \
1845 src/test/test-fw-util.c
1847 test_fw_util_CFLAGS = \
1851 test_fw_util_LDADD = \
1853 libsystemd-shared.la \
1857 test_rtnl_manual_SOURCES = \
1858 src/test/test-rtnl-manual.c
1860 test_rtnl_manual_CFLAGS = \
1864 test_rtnl_manual_LDADD = \
1865 libsystemd-internal.la \
1866 libsystemd-shared.la \
1869 test_ellipsize_SOURCES = \
1870 src/test/test-ellipsize.c
1872 test_ellipsize_LDADD = \
1873 libsystemd-shared.la
1875 test_date_SOURCES = \
1876 src/test/test-date.c
1879 libsystemd-shared.la
1881 test_sleep_SOURCES = \
1882 src/test/test-sleep.c
1884 test_sleep_LDADD = \
1887 test_replace_var_SOURCES = \
1888 src/test/test-replace-var.c
1890 test_replace_var_LDADD = \
1891 libsystemd-shared.la
1893 test_calendarspec_SOURCES = \
1894 src/test/test-calendarspec.c
1896 test_calendarspec_LDADD = \
1897 libsystemd-shared.la
1899 test_strip_tab_ansi_SOURCES = \
1900 src/test/test-strip-tab-ansi.c
1902 test_strip_tab_ansi_LDADD = \
1903 libsystemd-shared.la
1905 test_daemon_SOURCES = \
1906 src/test/test-daemon.c
1908 test_daemon_LDADD = \
1909 libsystemd-internal.la \
1910 libsystemd-shared.la
1912 test_cgroup_SOURCES = \
1913 src/test/test-cgroup.c
1915 test_cgroup_LDADD = \
1916 libsystemd-label.la \
1917 libsystemd-shared.la \
1918 libsystemd-internal.la
1920 test_cgroup_mask_SOURCES = \
1921 src/test/test-cgroup-mask.c
1923 test_cgroup_mask_CPPFLAGS = \
1926 test_cgroup_mask_CFLAGS = \
1930 test_cgroup_mask_LDADD = \
1931 libsystemd-core.la \
1934 test_cgroup_util_SOURCES = \
1935 src/test/test-cgroup-util.c
1937 test_cgroup_util_LDADD = \
1938 libsystemd-label.la \
1939 libsystemd-internal.la \
1940 libsystemd-shared.la
1942 test_env_replace_SOURCES = \
1943 src/test/test-env-replace.c
1945 test_env_replace_LDADD = \
1946 libsystemd-shared.la
1948 test_strbuf_SOURCES = \
1949 src/test/test-strbuf.c
1951 test_strbuf_LDADD = \
1952 libsystemd-shared.la
1954 test_strv_SOURCES = \
1955 src/test/test-strv.c
1958 libsystemd-units.la \
1959 libsystemd-internal.la \
1960 libsystemd-shared.la
1962 test_path_util_SOURCES = \
1963 src/test/test-path-util.c
1965 test_path_util_LDADD = \
1966 libsystemd-shared.la
1968 test_path_SOURCES = \
1969 src/test/test-path.c
1971 test_path_CFLAGS = \
1977 test_execute_SOURCES = \
1978 src/test/test-execute.c
1980 test_execute_CFLAGS = \
1983 test_execute_LDADD = \
1986 test_strxcpyx_SOURCES = \
1987 src/test/test-strxcpyx.c
1989 test_strxcpyx_LDADD = \
1990 libsystemd-shared.la
1992 test_install_SOURCES = \
1993 src/test/test-install.c
1995 test_install_LDADD = \
1996 libsystemd-units.la \
1997 libsystemd-label.la \
1998 libsystemd-shared.la \
1999 libsystemd-internal.la
2001 test_watchdog_SOURCES = \
2002 src/test/test-watchdog.c
2004 test_watchdog_LDADD = \
2005 libsystemd-shared.la
2007 test_sched_prio_SOURCES = \
2008 src/test/test-sched-prio.c
2010 test_sched_prio_CPPFLAGS = \
2013 test_sched_prio_CFLAGS = \
2017 test_sched_prio_LDADD = \
2018 libsystemd-core.la \
2021 test_conf_files_SOURCES = \
2022 src/test/test-conf-files.c
2024 test_conf_files_LDADD = \
2025 libsystemd-shared.la
2027 test_bus_policy_SOURCES = \
2028 src/bus-proxyd/test-bus-xml-policy.c
2030 test_bus_policy_LDADD = \
2031 libsystemd-proxy.la \
2032 libsystemd-internal.la \
2033 libsystemd-shared.la
2035 # ------------------------------------------------------------------------------
2036 ## .PHONY so it always rebuilds it
2037 .PHONY: coverage lcov-run lcov-report coverage-sync
2039 # run lcov from scratch, always
2044 coverage_dir = coverage
2045 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
2048 # reset run coverage tests
2050 @rm -rf $(coverage_dir)
2051 lcov $(coverage_opts) --zerocounters
2054 # generate report based on current coverage data
2056 $(MKDIR_P) $(coverage_dir)
2057 lcov $(coverage_opts) --compat-libtool --capture --no-external \
2058 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
2059 lcov --remove $(coverage_dir)/.lcov.info --output-file $(coverage_dir)/.lcov-clean.info 'test-*'
2060 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov-clean.info
2061 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
2063 # lcov doesn't work properly with vpath builds, make sure that bad
2064 # output is not uploaded by mistake.
2065 coverage-sync: coverage
2066 test "$(builddir)" = "$(srcdir)"
2067 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
2070 lcov-run lcov-report:
2071 echo "Need to reconfigure with --enable-coverage"
2074 # ------------------------------------------------------------------------------
2075 systemd_analyze_SOURCES = \
2076 src/analyze/analyze.c \
2077 src/analyze/analyze-verify.c \
2078 src/analyze/analyze-verify.h
2080 systemd_verify_CFLAGS = \
2084 systemd_analyze_LDADD = \
2085 libsystemd-core.la \
2086 libsystemd-internal.la \
2087 libsystemd-shared.la \
2090 # ------------------------------------------------------------------------------
2091 systemd_initctl_SOURCES = \
2092 src/initctl/initctl.c
2094 systemd_initctl_LDADD = \
2095 libsystemd-internal.la \
2096 libsystemd-shared.la
2098 # ------------------------------------------------------------------------------
2099 systemd_update_utmp_SOURCES = \
2100 src/update-utmp/update-utmp.c
2102 systemd_update_utmp_CFLAGS = \
2106 systemd_update_utmp_LDADD = \
2107 libsystemd-internal.la \
2108 libsystemd-shared.la \
2111 # ------------------------------------------------------------------------------
2112 systemd_update_done_SOURCES = \
2113 src/update-done/update-done.c
2115 systemd_update_done_LDADD = \
2116 libsystemd-internal.la \
2117 libsystemd-label.la \
2118 libsystemd-shared.la
2120 # ------------------------------------------------------------------------------
2121 systemd_shutdownd_SOURCES = \
2122 src/shutdownd/shutdownd.c
2124 systemd_shutdownd_LDADD = \
2125 libsystemd-label.la \
2126 libsystemd-internal.la \
2127 libsystemd-shared.la
2130 src/systemd/sd-shutdown.h
2132 # ------------------------------------------------------------------------------
2133 systemd_shutdown_SOURCES = \
2136 src/core/shutdown.c \
2137 src/core/mount-setup.c \
2138 src/core/mount-setup.h \
2139 src/core/killall.h \
2142 systemd_shutdown_LDADD = \
2143 libsystemd-label.la \
2144 libudev-internal.la \
2145 libsystemd-shared.la
2147 # ------------------------------------------------------------------------------
2149 systemd_modules_load_SOURCES = \
2150 src/modules-load/modules-load.c
2152 systemd_modules_load_CFLAGS = \
2156 systemd_modules_load_LDADD = \
2157 libsystemd-shared.la \
2160 rootlibexec_PROGRAMS += \
2161 systemd-modules-load
2163 nodist_systemunit_DATA += \
2164 units/systemd-modules-load.service
2166 SYSINIT_TARGET_WANTS += \
2167 systemd-modules-load.service
2170 nodist_systemunit_DATA += \
2171 units/kmod-static-nodes.service
2173 SYSINIT_TARGET_WANTS += \
2174 kmod-static-nodes.service
2179 units/systemd-modules-load.service.in \
2180 units/kmod-static-nodes.service.in
2182 # ------------------------------------------------------------------------------
2184 systemd_tmpfiles_SOURCES = \
2185 src/tmpfiles/tmpfiles.c
2187 systemd_tmpfiles_LDADD = \
2188 libsystemd-units.la \
2189 libsystemd-label.la \
2190 libsystemd-internal.la \
2191 libsystemd-shared.la
2193 rootbin_PROGRAMS += \
2196 dist_systemunit_DATA += \
2197 units/systemd-tmpfiles-clean.timer
2199 nodist_systemunit_DATA += \
2200 units/systemd-tmpfiles-setup-dev.service \
2201 units/systemd-tmpfiles-setup.service \
2202 units/systemd-tmpfiles-clean.service
2204 nodist_tmpfiles_DATA = \
2207 dist_tmpfiles_DATA = \
2208 tmpfiles.d/systemd.conf \
2209 tmpfiles.d/systemd-nologin.conf \
2210 tmpfiles.d/tmp.conf \
2211 tmpfiles.d/x11.conf \
2215 dist_tmpfiles_DATA += \
2216 tmpfiles.d/legacy.conf
2219 SYSINIT_TARGET_WANTS += \
2220 systemd-tmpfiles-setup-dev.service \
2221 systemd-tmpfiles-setup.service
2223 dist_zshcompletion_DATA += \
2224 shell-completion/zsh/_systemd-tmpfiles
2226 TIMERS_TARGET_WANTS += \
2227 systemd-tmpfiles-clean.timer
2231 $(sysconfdir)/tmpfiles.d
2235 tmpfiles.d/etc.conf.m4 \
2236 units/systemd-tmpfiles-setup-dev.service.in \
2237 units/systemd-tmpfiles-setup.service.in \
2238 units/systemd-tmpfiles-clean.service.in
2243 # ------------------------------------------------------------------------------
2245 systemd_sysusers_SOURCES = \
2246 src/sysusers/sysusers.c
2248 systemd_sysusers_LDADD = \
2249 libsystemd-units.la \
2250 libsystemd-label.la \
2251 libsystemd-internal.la \
2252 libsystemd-shared.la
2254 rootbin_PROGRAMS += \
2257 nodist_systemunit_DATA += \
2258 units/systemd-sysusers.service
2260 SYSINIT_TARGET_WANTS += \
2261 systemd-sysusers.service
2263 dist_sysusers_DATA = \
2264 sysusers.d/systemd.conf
2266 nodist_sysusers_DATA = \
2267 sysusers.d/basic.conf
2270 units/systemd-sysusers.service.in \
2271 sysusers.d/basic.conf.in
2274 sysusers.d/basic.conf
2280 # ------------------------------------------------------------------------------
2281 dist_factory_etc_DATA = \
2282 factory/etc/nsswitch.conf
2285 dist_factory_pam_DATA = \
2286 factory/etc/pam.d/system-auth \
2287 factory/etc/pam.d/other
2290 # ------------------------------------------------------------------------------
2292 systemd_firstboot_SOURCES = \
2293 src/firstboot/firstboot.c
2295 systemd_firstboot_LDADD = \
2296 libsystemd-units.la \
2297 libsystemd-label.la \
2298 libsystemd-internal.la \
2299 libsystemd-shared.la \
2302 rootbin_PROGRAMS += \
2305 nodist_systemunit_DATA += \
2306 units/systemd-firstboot.service
2309 units/systemd-firstboot.service.in
2311 SYSINIT_TARGET_WANTS += \
2312 systemd-firstboot.service
2315 # ------------------------------------------------------------------------------
2316 systemd_machine_id_setup_SOURCES = \
2317 src/machine-id-setup/machine-id-setup-main.c \
2318 src/core/machine-id-setup.c \
2319 src/core/machine-id-setup.h
2321 systemd_machine_id_setup_LDADD = \
2322 libsystemd-label.la \
2323 libsystemd-internal.la \
2324 libsystemd-shared.la
2326 # ------------------------------------------------------------------------------
2327 systemd_sysctl_SOURCES = \
2330 systemd_sysctl_LDADD = \
2331 libsystemd-shared.la
2333 # ------------------------------------------------------------------------------
2334 systemd_sleep_SOURCES = \
2337 systemd_sleep_LDADD = \
2338 libsystemd-shared.la
2340 # ------------------------------------------------------------------------------
2341 systemd_fsck_SOURCES = \
2344 systemd_fsck_LDADD = \
2345 libsystemd-internal.la \
2346 libudev-internal.la \
2347 libsystemd-shared.la
2349 # ------------------------------------------------------------------------------
2350 systemd_machine_id_commit_SOURCES = \
2351 src/machine-id-commit/machine-id-commit.c \
2352 src/core/machine-id-setup.c \
2353 src/core/machine-id-setup.h
2355 systemd_machine_id_commit_LDADD = \
2356 libsystemd-label.la \
2357 libsystemd-internal.la \
2358 libsystemd-shared.la
2360 SYSINIT_TARGET_WANTS += \
2361 systemd-machine-id-commit.service
2363 # ------------------------------------------------------------------------------
2364 systemd_ac_power_SOURCES = \
2365 src/ac-power/ac-power.c
2367 systemd_ac_power_LDADD = \
2368 libudev-internal.la \
2369 libsystemd-shared.la
2371 # ------------------------------------------------------------------------------
2372 systemd_detect_virt_SOURCES = \
2373 src/detect-virt/detect-virt.c
2375 systemd_detect_virt_LDADD = \
2376 libsystemd-shared.la
2378 INSTALL_EXEC_HOOKS += \
2379 systemd-detect-virt-install-hook
2381 # ------------------------------------------------------------------------------
2382 systemd_delta_SOURCES = \
2385 systemd_delta_LDADD = \
2386 libsystemd-shared.la
2388 # ------------------------------------------------------------------------------
2389 systemd_getty_generator_SOURCES = \
2390 src/getty-generator/getty-generator.c
2392 systemd_getty_generator_LDADD = \
2393 libsystemd-label.la \
2394 libsystemd-shared.la
2396 # ------------------------------------------------------------------------------
2397 systemd_debug_generator_SOURCES = \
2398 src/debug-generator/debug-generator.c
2400 systemd_debug_generator_LDADD = \
2401 libsystemd-label.la \
2402 libsystemd-shared.la
2404 # ------------------------------------------------------------------------------
2405 systemd_fstab_generator_SOURCES = \
2406 src/fstab-generator/fstab-generator.c \
2407 src/core/mount-setup.c
2409 systemd_fstab_generator_LDADD = \
2410 libsystemd-label.la \
2411 libsystemd-shared.la
2413 # ------------------------------------------------------------------------------
2414 systemd_system_update_generator_SOURCES = \
2415 src/system-update-generator/system-update-generator.c
2417 systemd_system_update_generator_LDADD = \
2418 libsystemd-label.la \
2419 libsystemd-shared.la
2421 # ------------------------------------------------------------------------------
2423 systemgenerator_PROGRAMS += \
2424 systemd-hibernate-resume-generator
2426 rootlibexec_PROGRAMS += \
2427 systemd-hibernate-resume
2429 systemd_hibernate_resume_SOURCES = \
2430 src/hibernate-resume/hibernate-resume.c
2432 systemd_hibernate_resume_LDADD = \
2433 libsystemd-internal.la \
2434 libsystemd-shared.la
2436 systemd_hibernate_resume_generator_SOURCES = \
2437 src/hibernate-resume/hibernate-resume-generator.c
2439 systemd_hibernate_resume_generator_LDADD = \
2440 libsystemd-label.la \
2441 libsystemd-shared.la
2444 units/systemd-hibernate.service.in \
2445 units/systemd-hibernate-resume@.service.in \
2446 units/systemd-hybrid-sleep.service.in
2448 dist_systemunit_DATA += \
2449 units/hibernate.target \
2450 units/hybrid-sleep.target
2452 nodist_systemunit_DATA += \
2453 units/systemd-hibernate.service \
2454 units/systemd-hibernate-resume@.service \
2455 units/systemd-hybrid-sleep.service
2458 # ------------------------------------------------------------------------------
2460 systemgenerator_PROGRAMS += \
2461 systemd-efi-boot-generator
2463 systemd_efi_boot_generator_SOURCES = \
2464 src/efi-boot-generator/efi-boot-generator.c
2466 systemd_efi_boot_generator_LDADD = \
2467 libsystemd-label.la \
2468 libsystemd-shared.la
2470 # ------------------------------------------------------------------------------
2473 src/boot/boot-loader.h \
2474 src/boot/bootctl.c \
2475 src/boot/boot-loader.c \
2479 libsystemd-shared.la \
2480 libsystemd-internal.la
2485 dist_bashcompletion_DATA += \
2486 shell-completion/bash/bootctl
2488 dist_zshcompletion_DATA += \
2489 shell-completion/zsh/_bootctl
2493 # ------------------------------------------------------------------------------
2495 systemgenerator_PROGRAMS += \
2496 systemd-gpt-auto-generator
2498 systemd_gpt_auto_generator_SOURCES = \
2499 src/gpt-auto-generator/gpt-auto-generator.c \
2500 src/shared/blkid-util.h
2502 systemd_gpt_auto_generator_LDADD = \
2503 libsystemd-label.la \
2504 libsystemd-internal.la \
2505 libudev-internal.la \
2506 libsystemd-shared.la \
2509 systemd_gpt_auto_generator_CFLAGS = \
2514 # ------------------------------------------------------------------------------
2516 systemgenerator_PROGRAMS += \
2517 systemd-dbus1-generator
2519 systemd_dbus1_generator_SOURCES = \
2520 src/dbus1-generator/dbus1-generator.c
2522 systemd_dbus1_generator_LDADD = \
2523 libsystemd-label.la \
2524 libsystemd-internal.la \
2525 libsystemd-shared.la
2527 dbus1-generator-install-hook:
2528 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2529 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2530 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2532 dbus1-generator-uninstall-hook:
2533 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2535 dist_xinitrc_SCRIPTS = \
2536 xorg/50-systemd-user.sh
2538 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2539 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2542 # ------------------------------------------------------------------------------
2543 systemd_sysv_generator_SOURCES = \
2544 src/sysv-generator/sysv-generator.c
2546 systemd_sysv_generator_LDADD = \
2547 libsystemd-core.la \
2548 libsystemd-label.la \
2549 libsystemd-shared.la
2551 # ------------------------------------------------------------------------------
2552 systemd_rc_local_generator_SOURCES = \
2553 src/rc-local-generator/rc-local-generator.c
2555 systemd_rc_local_generator_LDADD = \
2556 libsystemd-label.la \
2557 libsystemd-shared.la
2559 # ------------------------------------------------------------------------------
2560 systemd_remount_fs_SOURCES = \
2561 src/remount-fs/remount-fs.c \
2562 src/core/mount-setup.c \
2563 src/core/mount-setup.h
2565 systemd_remount_fs_LDADD = \
2566 libsystemd-label.la \
2567 libsystemd-shared.la
2569 # ------------------------------------------------------------------------------
2570 systemd_cgroups_agent_SOURCES = \
2571 src/cgroups-agent/cgroups-agent.c
2573 systemd_cgroups_agent_LDADD = \
2574 libsystemd-internal.la \
2575 libsystemd-shared.la
2577 # ------------------------------------------------------------------------------
2578 systemd_escape_SOURCES = \
2581 systemd_escape_LDADD = \
2582 libsystemd-shared.la
2584 # -----------------------------------------------------------------------------
2585 systemctl_SOURCES = \
2586 src/systemctl/systemctl.c
2589 libsystemd-units.la \
2590 libsystemd-label.la \
2591 libsystemd-internal.la \
2592 libsystemd-logs.la \
2593 libsystemd-journal-internal.la \
2594 libsystemd-shared.la
2596 # ------------------------------------------------------------------------------
2597 systemd_notify_SOURCES = \
2600 systemd_notify_LDADD = \
2601 libsystemd-internal.la \
2602 libsystemd-shared.la
2604 # ------------------------------------------------------------------------------
2605 systemd_path_SOURCES = \
2608 systemd_path_LDADD = \
2609 libsystemd-internal.la \
2610 libsystemd-shared.la
2612 # ------------------------------------------------------------------------------
2613 systemd_ask_password_SOURCES = \
2614 src/ask-password/ask-password.c
2616 systemd_ask_password_LDADD = \
2617 libsystemd-label.la \
2618 libsystemd-shared.la
2620 # ------------------------------------------------------------------------------
2621 systemd_reply_password_SOURCES = \
2622 src/reply-password/reply-password.c
2624 systemd_reply_password_LDADD = \
2625 libsystemd-shared.la
2627 # ------------------------------------------------------------------------------
2628 systemd_cgls_SOURCES = \
2631 systemd_cgls_LDADD = \
2632 libsystemd-internal.la \
2633 libsystemd-shared.la
2635 # ------------------------------------------------------------------------------
2636 systemd_cgtop_SOURCES = \
2639 systemd_cgtop_LDADD = \
2640 libsystemd-shared.la
2642 # ------------------------------------------------------------------------------
2643 systemd_nspawn_SOURCES = \
2644 src/nspawn/nspawn.c \
2645 src/core/mount-setup.c \
2646 src/core/mount-setup.h \
2647 src/core/loopback-setup.c \
2648 src/core/loopback-setup.h
2650 systemd_nspawn_CFLAGS = \
2655 systemd_nspawn_LDADD = \
2656 libsystemd-label.la \
2657 libsystemd-internal.la \
2658 libudev-internal.la \
2659 libsystemd-shared.la \
2663 systemd_nspawn_LDADD += \
2664 libsystemd-seccomp.la \
2669 systemd_nspawn_LDADD += \
2673 # ------------------------------------------------------------------------------
2674 systemd_run_SOURCES = \
2677 systemd_run_LDADD = \
2678 libsystemd-label.la \
2679 libsystemd-internal.la \
2680 libsystemd-shared.la
2682 # ------------------------------------------------------------------------------
2683 noinst_LTLIBRARIES += \
2686 libsystemd_proxy_la_SOURCES = \
2687 src/bus-proxyd/bus-xml-policy.c \
2688 src/bus-proxyd/bus-xml-policy.h \
2689 src/bus-proxyd/driver.c \
2690 src/bus-proxyd/driver.h \
2691 src/bus-proxyd/proxy.c \
2692 src/bus-proxyd/proxy.h \
2693 src/bus-proxyd/synthesize.c \
2694 src/bus-proxyd/synthesize.h
2696 libsystemd_proxy_la_CFLAGS = \
2700 libsystemd_proxy_la_LIBADD = \
2701 libsystemd-internal.la \
2702 libsystemd-shared.la
2704 systemd_bus_proxyd_SOURCES = \
2705 src/bus-proxyd/bus-proxyd.c
2707 systemd_bus_proxyd_CFLAGS = \
2711 systemd_bus_proxyd_LDADD = \
2712 libsystemd-proxy.la \
2713 libsystemd-internal.la \
2714 libsystemd-shared.la
2716 systemd_stdio_bridge_SOURCES = \
2717 src/bus-proxyd/stdio-bridge.c
2719 systemd_stdio_bridge_LDADD = \
2720 libsystemd-proxy.la \
2721 libsystemd-internal.la \
2722 libsystemd-shared.la
2725 nodist_systemunit_DATA += \
2726 units/systemd-bus-proxyd.service
2728 dist_systemunit_DATA += \
2729 units/systemd-bus-proxyd.socket
2731 nodist_userunit_DATA += \
2732 units/user/systemd-bus-proxyd.service
2734 dist_userunit_DATA += \
2735 units/user/systemd-bus-proxyd.socket
2739 units/systemd-bus-proxyd.service.m4.in \
2740 units/user/systemd-bus-proxyd.service.in
2743 units/systemd-bus-proxyd.service.m4
2746 bus-proxyd-set-cap-hook:
2747 -$(SETCAP) cap_mac_admin+ei $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd
2749 INSTALL_EXEC_HOOKS += bus-proxyd-set-cap-hook
2752 # ------------------------------------------------------------------------------
2753 systemd_tty_ask_password_agent_SOURCES = \
2754 src/tty-ask-password-agent/tty-ask-password-agent.c
2756 systemd_tty_ask_password_agent_LDADD = \
2757 libsystemd-label.la \
2758 libsystemd-shared.la
2760 # ------------------------------------------------------------------------------
2761 libsystemd_internal_la_SOURCES = \
2762 src/systemd/sd-bus.h \
2763 src/systemd/sd-bus-protocol.h \
2764 src/systemd/sd-bus-vtable.h \
2765 src/systemd/sd-utf8.h \
2766 src/systemd/sd-event.h \
2767 src/systemd/sd-rtnl.h \
2768 src/systemd/sd-resolve.h \
2769 src/systemd/sd-login.h \
2770 src/systemd/sd-id128.h \
2771 src/systemd/sd-daemon.h \
2772 src/systemd/sd-path.h \
2773 src/systemd/sd-network.h \
2774 src/systemd/sd-hwdb.h \
2775 src/libsystemd/sd-bus/sd-bus.c \
2776 src/libsystemd/sd-bus/bus-control.c \
2777 src/libsystemd/sd-bus/bus-control.h \
2778 src/libsystemd/sd-bus/bus-error.c \
2779 src/libsystemd/sd-bus/bus-error.h \
2780 src/libsystemd/sd-bus/bus-common-errors.h \
2781 src/libsystemd/sd-bus/bus-common-errors.c \
2782 src/libsystemd/sd-bus/bus-internal.c \
2783 src/libsystemd/sd-bus/bus-internal.h \
2784 src/libsystemd/sd-bus/bus-socket.c \
2785 src/libsystemd/sd-bus/bus-socket.h \
2786 src/libsystemd/sd-bus/bus-kernel.c \
2787 src/libsystemd/sd-bus/bus-kernel.h \
2788 src/libsystemd/sd-bus/bus-container.c \
2789 src/libsystemd/sd-bus/bus-container.h \
2790 src/libsystemd/sd-bus/bus-message.c \
2791 src/libsystemd/sd-bus/bus-message.h \
2792 src/libsystemd/sd-bus/bus-creds.c \
2793 src/libsystemd/sd-bus/bus-creds.h \
2794 src/libsystemd/sd-bus/bus-signature.c \
2795 src/libsystemd/sd-bus/bus-signature.h \
2796 src/libsystemd/sd-bus/bus-type.c \
2797 src/libsystemd/sd-bus/bus-type.h \
2798 src/libsystemd/sd-bus/bus-match.c \
2799 src/libsystemd/sd-bus/bus-match.h \
2800 src/libsystemd/sd-bus/bus-bloom.c \
2801 src/libsystemd/sd-bus/bus-bloom.h \
2802 src/libsystemd/sd-bus/bus-introspect.c \
2803 src/libsystemd/sd-bus/bus-introspect.h \
2804 src/libsystemd/sd-bus/bus-objects.c \
2805 src/libsystemd/sd-bus/bus-objects.h \
2806 src/libsystemd/sd-bus/bus-gvariant.c \
2807 src/libsystemd/sd-bus/bus-gvariant.h \
2808 src/libsystemd/sd-bus/bus-convenience.c \
2809 src/libsystemd/sd-bus/bus-track.c \
2810 src/libsystemd/sd-bus/bus-track.h \
2811 src/libsystemd/sd-bus/bus-util.c \
2812 src/libsystemd/sd-bus/bus-util.h \
2813 src/libsystemd/sd-bus/bus-slot.c \
2814 src/libsystemd/sd-bus/bus-slot.h \
2815 src/libsystemd/sd-bus/bus-protocol.h \
2816 src/libsystemd/sd-bus/kdbus.h \
2817 src/libsystemd/sd-utf8/sd-utf8.c \
2818 src/libsystemd/sd-event/sd-event.c \
2819 src/libsystemd/sd-event/event-util.h \
2820 src/libsystemd/sd-rtnl/sd-rtnl.c \
2821 src/libsystemd/sd-rtnl/rtnl-internal.h \
2822 src/libsystemd/sd-rtnl/rtnl-message.c \
2823 src/libsystemd/sd-rtnl/rtnl-types.h \
2824 src/libsystemd/sd-rtnl/rtnl-types.c \
2825 src/libsystemd/sd-rtnl/rtnl-util.h \
2826 src/libsystemd/sd-rtnl/rtnl-util.c \
2827 src/libsystemd/sd-rtnl/local-addresses.h \
2828 src/libsystemd/sd-rtnl/local-addresses.c \
2829 src/libsystemd/sd-id128/sd-id128.c \
2830 src/libsystemd/sd-daemon/sd-daemon.c \
2831 src/libsystemd/sd-login/sd-login.c \
2832 src/libsystemd/sd-path/sd-path.c \
2833 src/libsystemd/sd-network/sd-network.c \
2834 src/libsystemd/sd-network/network-util.h \
2835 src/libsystemd/sd-network/network-util.c \
2836 src/libsystemd/sd-hwdb/sd-hwdb.c \
2837 src/libsystemd/sd-hwdb/hwdb-util.h \
2838 src/libsystemd/sd-hwdb/hwdb-internal.h
2840 nodist_libsystemd_internal_la_SOURCES = \
2841 src/libsystemd/libsystemd.sym
2843 libsystemd_internal_la_CFLAGS = \
2847 libsystemd_internal_la_LIBADD = \
2850 libsystemd_resolve_la_SOURCES = \
2851 src/libsystemd/sd-resolve/sd-resolve.c \
2852 src/libsystemd/sd-resolve/resolve-util.h
2854 libsystemd_resolve_la_CFLAGS = \
2858 libsystemd_resolve_la_LIBADD = \
2861 noinst_LTLIBRARIES += \
2862 libsystemd-internal.la \
2863 libsystemd-resolve.la
2865 libsystemd_dump_la_SOURCES = \
2866 src/libsystemd/sd-bus/bus-dump.c \
2867 src/libsystemd/sd-bus/bus-dump.h
2869 noinst_LTLIBRARIES += \
2873 src/libsystemd/libsystemd.sym.m4 \
2874 src/libsystemd/libsystemd.pc.in \
2875 src/libsystemd/sd-bus/DIFFERENCES \
2876 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2879 src/libsystemd/libsystemd.sym
2882 src/libsystemd/libsystemd.sym
2884 libsystemd_la_SOURCES = \
2885 $(libsystemd_internal_la_SOURCES) \
2886 $(libsystemd_resolve_la_SOURCES) \
2887 $(libsystemd_journal_internal_la_SOURCES)
2889 nodist_libsystemd_la_SOURCES = \
2890 $(nodist_libsystemd_internal_la_SOURCES)
2892 libsystemd_la_CFLAGS = \
2893 $(libsystemd_internal_la_CFLAGS) \
2894 $(libsystemd_resolve_la_CFLAGS) \
2895 $(libsystemd_journal_internal_la_CFLAGS)
2897 libsystemd_la_LDFLAGS = \
2899 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2900 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2902 libsystemd_la_LIBADD = \
2903 libsystemd-shared.la \
2904 $(libsystemd_internal_la_LIBADD) \
2905 $(libsystemd_journal_internal_la_LIBADD) \
2906 $(libsystemd_resolve_la_LIBADD)
2908 libsystemd-install-hook:
2909 libname=libsystemd.so && $(move-to-rootlibdir)
2911 libsystemd-uninstall-hook:
2912 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2914 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2915 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2917 pkgconfiglib_DATA += \
2918 src/libsystemd/libsystemd.pc
2920 pkginclude_HEADERS += \
2921 src/systemd/sd-login.h \
2922 src/systemd/sd-id128.h \
2923 src/systemd/sd-daemon.h
2926 pkginclude_HEADERS += \
2927 src/systemd/sd-bus.h \
2928 src/systemd/sd-bus-protocol.h \
2929 src/systemd/sd-bus-vtable.h \
2930 src/systemd/sd-utf8.h \
2931 src/systemd/sd-event.h \
2932 src/systemd/sd-rtnl.h \
2933 src/systemd/sd-resolve.h \
2934 src/systemd/sd-path.h
2937 lib_LTLIBRARIES += \
2942 test-bus-signature \
2948 test-bus-kernel-bloom \
2949 test-bus-kernel-benchmark \
2950 test-bus-zero-copy \
2951 test-bus-introspect \
2958 test-local-addresses \
2964 test_bus_marshal_SOURCES = \
2965 src/libsystemd/sd-bus/test-bus-marshal.c
2967 test_bus_marshal_LDADD = \
2968 libsystemd-dump.la \
2969 libsystemd-internal.la \
2970 libsystemd-shared.la \
2974 test_bus_marshal_CFLAGS = \
2979 test_bus_signature_SOURCES = \
2980 src/libsystemd/sd-bus/test-bus-signature.c
2982 test_bus_signature_LDADD = \
2983 libsystemd-internal.la \
2984 libsystemd-shared.la
2986 test_bus_chat_SOURCES = \
2987 src/libsystemd/sd-bus/test-bus-chat.c
2989 test_bus_chat_CFLAGS = \
2993 test_bus_chat_LDADD = \
2994 libsystemd-internal.la \
2995 libsystemd-shared.la
2997 test_bus_cleanup_SOURCES = \
2998 src/libsystemd/sd-bus/test-bus-cleanup.c
3000 test_bus_cleanup_CFLAGS = \
3004 test_bus_cleanup_LDADD = \
3005 libsystemd-internal.la \
3006 libsystemd-shared.la
3008 test_bus_server_SOURCES = \
3009 src/libsystemd/sd-bus/test-bus-server.c
3011 test_bus_server_CFLAGS = \
3015 test_bus_server_LDADD = \
3016 libsystemd-internal.la \
3017 libsystemd-shared.la
3019 test_bus_objects_SOURCES = \
3020 src/libsystemd/sd-bus/test-bus-objects.c
3022 test_bus_objects_CFLAGS = \
3026 test_bus_objects_LDADD = \
3027 libsystemd-dump.la \
3028 libsystemd-internal.la \
3029 libsystemd-shared.la
3031 test_bus_error_SOURCES = \
3032 src/libsystemd/sd-bus/test-bus-error.c
3034 test_bus_error_LDADD = \
3035 libsystemd-internal.la \
3036 libsystemd-shared.la
3038 test_bus_gvariant_SOURCES = \
3039 src/libsystemd/sd-bus/test-bus-gvariant.c
3041 test_bus_gvariant_LDADD = \
3042 libsystemd-dump.la \
3043 libsystemd-internal.la \
3044 libsystemd-shared.la \
3047 test_bus_gvariant_CFLAGS = \
3051 test_bus_creds_SOURCES = \
3052 src/libsystemd/sd-bus/test-bus-creds.c
3054 test_bus_creds_LDADD = \
3055 libsystemd-dump.la \
3056 libsystemd-internal.la \
3057 libsystemd-shared.la
3059 test_bus_match_SOURCES = \
3060 src/libsystemd/sd-bus/test-bus-match.c
3062 test_bus_match_LDADD = \
3063 libsystemd-internal.la \
3064 libsystemd-shared.la
3066 test_bus_kernel_SOURCES = \
3067 src/libsystemd/sd-bus/test-bus-kernel.c
3069 test_bus_kernel_LDADD = \
3070 libsystemd-dump.la \
3071 libsystemd-internal.la \
3072 libsystemd-shared.la
3074 test_bus_kernel_bloom_SOURCES = \
3075 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
3077 test_bus_kernel_bloom_LDADD = \
3078 libsystemd-internal.la \
3079 libsystemd-shared.la
3081 test_bus_kernel_benchmark_SOURCES = \
3082 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
3084 test_bus_kernel_benchmark_LDADD = \
3085 libsystemd-internal.la \
3086 libsystemd-shared.la
3088 test_bus_zero_copy_SOURCES = \
3089 src/libsystemd/sd-bus/test-bus-zero-copy.c
3091 test_bus_zero_copy_LDADD = \
3092 libsystemd-dump.la \
3093 libsystemd-internal.la \
3094 libsystemd-shared.la
3096 test_bus_introspect_SOURCES = \
3097 src/libsystemd/sd-bus/test-bus-introspect.c
3099 test_bus_introspect_LDADD = \
3100 libsystemd-internal.la \
3101 libsystemd-shared.la
3103 test_event_SOURCES = \
3104 src/libsystemd/sd-event/test-event.c
3106 test_event_LDADD = \
3107 libsystemd-internal.la \
3108 libsystemd-shared.la
3110 test_rtnl_SOURCES = \
3111 src/libsystemd/sd-rtnl/test-rtnl.c
3114 libsystemd-internal.la \
3115 libsystemd-shared.la
3117 test_local_addresses_SOURCES = \
3118 src/libsystemd/sd-rtnl/test-local-addresses.c
3120 test_local_addresses_LDADD = \
3121 libsystemd-internal.la \
3122 libsystemd-shared.la
3124 test_resolve_SOURCES = \
3125 src/libsystemd/sd-resolve/test-resolve.c
3127 test_resolve_LDADD = \
3128 libsystemd-resolve.la \
3129 libsystemd-internal.la \
3130 libsystemd-shared.la
3132 test_resolve_CFLAGS = \
3137 src/libsystemd/sd-bus/busctl.c \
3138 src/libsystemd/sd-bus/busctl-introspect.c \
3139 src/libsystemd/sd-bus/busctl-introspect.h
3142 libsystemd-dump.la \
3143 libsystemd-internal.la \
3144 libsystemd-shared.la
3146 # ------------------------------------------------------------------------------
3147 noinst_LTLIBRARIES += \
3148 libsystemd-network.la
3150 libsystemd_network_la_CFLAGS = \
3154 libsystemd_network_la_SOURCES = \
3155 src/systemd/sd-dhcp-client.h \
3156 src/systemd/sd-dhcp-server.h \
3157 src/systemd/sd-dhcp-lease.h \
3158 src/systemd/sd-ipv4ll.h \
3159 src/systemd/sd-icmp6-nd.h \
3160 src/systemd/sd-dhcp6-client.h \
3161 src/systemd/sd-dhcp6-lease.h \
3162 src/systemd/sd-pppoe.h \
3163 src/systemd/sd-lldp.h \
3164 src/libsystemd-network/sd-dhcp-client.c \
3165 src/libsystemd-network/sd-dhcp-server.c \
3166 src/libsystemd-network/dhcp-network.c \
3167 src/libsystemd-network/dhcp-option.c \
3168 src/libsystemd-network/dhcp-packet.c \
3169 src/libsystemd-network/dhcp-internal.h \
3170 src/libsystemd-network/dhcp-server-internal.h \
3171 src/libsystemd-network/dhcp-protocol.h \
3172 src/libsystemd-network/dhcp-lease-internal.h \
3173 src/libsystemd-network/sd-dhcp-lease.c \
3174 src/libsystemd-network/sd-ipv4ll.c \
3175 src/libsystemd-network/ipv4ll-network.c \
3176 src/libsystemd-network/ipv4ll-packet.c \
3177 src/libsystemd-network/ipv4ll-internal.h \
3178 src/libsystemd-network/sd-pppoe.c \
3179 src/libsystemd-network/network-internal.c \
3180 src/libsystemd-network/network-internal.h \
3181 src/libsystemd-network/sd-icmp6-nd.c \
3182 src/libsystemd-network/sd-dhcp6-client.c \
3183 src/libsystemd-network/dhcp6-internal.h \
3184 src/libsystemd-network/dhcp6-protocol.h \
3185 src/libsystemd-network/dhcp6-network.c \
3186 src/libsystemd-network/dhcp6-option.c \
3187 src/libsystemd-network/dhcp6-lease-internal.h \
3188 src/libsystemd-network/sd-dhcp6-lease.c \
3189 src/libsystemd-network/lldp.h \
3190 src/libsystemd-network/lldp-tlv.h \
3191 src/libsystemd-network/lldp-tlv.c \
3192 src/libsystemd-network/lldp-network.h \
3193 src/libsystemd-network/lldp-network.c \
3194 src/libsystemd-network/lldp-port.h \
3195 src/libsystemd-network/lldp-port.c \
3196 src/libsystemd-network/lldp-internal.h \
3197 src/libsystemd-network/lldp-internal.c \
3198 src/libsystemd-network/lldp-util.h \
3199 src/libsystemd-network/sd-lldp.c
3201 libsystemd_network_la_LIBADD = \
3202 libudev-internal.la \
3203 libsystemd-label.la \
3204 libsystemd-internal.la \
3205 libsystemd-shared.la \
3208 test_dhcp_option_SOURCES = \
3209 src/libsystemd-network/dhcp-protocol.h \
3210 src/libsystemd-network/dhcp-internal.h \
3211 src/libsystemd-network/test-dhcp-option.c
3213 test_dhcp_option_LDADD = \
3214 libsystemd-network.la \
3215 libsystemd-internal.la \
3216 libsystemd-shared.la
3218 test_dhcp_client_SOURCES = \
3219 src/systemd/sd-dhcp-client.h \
3220 src/libsystemd-network/dhcp-protocol.h \
3221 src/libsystemd-network/dhcp-internal.h \
3222 src/libsystemd-network/test-dhcp-client.c
3224 test_dhcp_client_LDADD = \
3225 libsystemd-network.la \
3226 libsystemd-label.la \
3227 libsystemd-internal.la \
3228 libsystemd-shared.la
3230 test_dhcp_server_SOURCES = \
3231 src/libsystemd-network/test-dhcp-server.c
3233 test_dhcp_server_LDADD = \
3234 libsystemd-network.la \
3235 libsystemd-internal.la \
3236 libsystemd-shared.la
3238 test_ipv4ll_SOURCES = \
3239 src/systemd/sd-ipv4ll.h \
3240 src/libsystemd-network/ipv4ll-internal.h \
3241 src/libsystemd-network/test-ipv4ll.c
3243 test_ipv4ll_LDADD = \
3244 libsystemd-network.la \
3245 libsystemd-label.la \
3246 libsystemd-internal.la \
3247 libsystemd-shared.la
3249 test_pppoe_SOURCES = \
3250 src/systemd/sd-pppoe.h \
3251 src/libsystemd-network/test-pppoe.c
3253 test_pppoe_LDADD = \
3254 libsystemd-network.la \
3255 libsystemd-shared.la
3257 test_icmp6_rs_SOURCES = \
3258 src/systemd/sd-dhcp6-client.h \
3259 src/systemd/sd-icmp6-nd.h \
3260 src/libsystemd-network/dhcp6-internal.h \
3261 src/libsystemd-network/test-icmp6-rs.c
3263 test_icmp6_rs_LDADD = \
3264 libsystemd-network.la \
3265 libsystemd-internal.la \
3266 libsystemd-shared.la
3268 test_dhcp6_client_SOURCES = \
3269 src/systemd/sd-dhcp6-client.h \
3270 src/libsystemd-network/dhcp6-internal.h \
3271 src/libsystemd-network/test-dhcp6-client.c
3273 test_dhcp6_client_LDADD = \
3274 libsystemd-network.la \
3275 libsystemd-internal.la \
3276 libsystemd-shared.la
3278 test_lldp_SOURCES = \
3279 src/libsystemd-network/lldp.h \
3280 src/libsystemd-network/lldp-tlv.h \
3281 src/libsystemd-network/lldp-tlv.c \
3282 src/libsystemd-network/test-lldp.c
3285 libsystemd-network.la \
3286 libsystemd-internal.la \
3287 libsystemd-shared.la
3301 # ------------------------------------------------------------------------------
3303 noinst_LTLIBRARIES += \
3304 libsystemd-terminal.la
3306 rootlibexec_PROGRAMS += \
3309 noinst_PROGRAMS += \
3314 dist_pkgdata_DATA += \
3315 src/libsystemd-terminal/unifont-glyph-array.bin
3317 nodist_userunit_DATA += \
3318 units/user/systemd-consoled.service
3320 USER_DEFAULT_TARGET_WANTS += \
3321 systemd-consoled.service
3330 units/user/systemd-consoled.service.in
3332 libsystemd_terminal_la_CFLAGS = \
3336 libsystemd_terminal_la_SOURCES = \
3337 src/libsystemd-terminal/grdev.h \
3338 src/libsystemd-terminal/grdev-internal.h \
3339 src/libsystemd-terminal/grdev.c \
3340 src/libsystemd-terminal/grdev-drm.c \
3341 src/libsystemd-terminal/idev.h \
3342 src/libsystemd-terminal/idev-internal.h \
3343 src/libsystemd-terminal/idev.c \
3344 src/libsystemd-terminal/idev-evdev.c \
3345 src/libsystemd-terminal/idev-keyboard.c \
3346 src/libsystemd-terminal/sysview.h \
3347 src/libsystemd-terminal/sysview-internal.h \
3348 src/libsystemd-terminal/sysview.c \
3349 src/libsystemd-terminal/term.h \
3350 src/libsystemd-terminal/term-internal.h \
3351 src/libsystemd-terminal/term-charset.c \
3352 src/libsystemd-terminal/term-page.c \
3353 src/libsystemd-terminal/term-parser.c \
3354 src/libsystemd-terminal/term-screen.c \
3355 src/libsystemd-terminal/term-wcwidth.c \
3356 src/libsystemd-terminal/unifont.h \
3357 src/libsystemd-terminal/unifont-def.h \
3358 src/libsystemd-terminal/unifont.c
3360 libsystemd_terminal_la_LIBADD = \
3361 libudev-internal.la \
3362 libsystemd-internal.la \
3363 libsystemd-shared.la \
3366 systemd_consoled_CFLAGS = \
3370 systemd_consoled_SOURCES = \
3371 src/console/consoled.h \
3372 src/console/consoled.c \
3373 src/console/consoled-display.c \
3374 src/console/consoled-manager.c \
3375 src/console/consoled-session.c \
3376 src/console/consoled-terminal.c \
3377 src/console/consoled-workspace.c
3379 systemd_consoled_LDADD = \
3380 libsystemd-terminal.la \
3381 libsystemd-internal.la \
3382 libsystemd-shared.la \
3385 systemd_evcat_CFLAGS = \
3389 systemd_evcat_SOURCES = \
3390 src/libsystemd-terminal/evcat.c
3392 systemd_evcat_LDADD = \
3393 libsystemd-terminal.la \
3394 libsystemd-internal.la \
3395 libsystemd-shared.la \
3398 systemd_modeset_CFLAGS = \
3402 systemd_modeset_SOURCES = \
3403 src/libsystemd-terminal/modeset.c
3405 systemd_modeset_LDADD = \
3406 libsystemd-terminal.la \
3407 libsystemd-internal.la \
3408 libsystemd-shared.la \
3411 systemd_subterm_SOURCES = \
3412 src/libsystemd-terminal/subterm.c
3414 systemd_subterm_LDADD = \
3415 libsystemd-terminal.la \
3416 libsystemd-internal.la \
3417 libsystemd-shared.la
3419 test_term_page_SOURCES = \
3420 src/libsystemd-terminal/test-term-page.c
3422 test_term_page_LDADD = \
3423 libsystemd-terminal.la \
3424 libsystemd-internal.la \
3425 libsystemd-shared.la
3427 test_term_parser_SOURCES = \
3428 src/libsystemd-terminal/test-term-parser.c
3430 test_term_parser_LDADD = \
3431 libsystemd-terminal.la \
3432 libsystemd-internal.la \
3433 libsystemd-shared.la
3435 test_unifont_SOURCES = \
3436 src/libsystemd-terminal/test-unifont.c
3438 test_unifont_LDADD = \
3439 libsystemd-terminal.la \
3440 libsystemd-internal.la \
3441 libsystemd-shared.la
3443 .PHONY: update-unifont
3444 update-unifont: tools/compile-unifont.py
3445 $(AM_V_GEN)$(PYTHON) $< \
3446 <$(top_srcdir)/src/libsystemd-terminal/unifont.hex \
3447 >$(top_srcdir)/src/libsystemd-terminal/unifont-glyph-array.bin
3448 @echo "unifont-glyph-array.bin has been regenerated"
3450 # ------------------------------------------------------------------------------
3460 include_HEADERS += \
3461 src/libudev/libudev.h
3463 lib_LTLIBRARIES += \
3466 libudev_la_SOURCES =\
3467 src/libudev/libudev.sym \
3468 src/libudev/libudev-private.h \
3469 src/libudev/libudev.c \
3470 src/libudev/libudev-list.c \
3471 src/libudev/libudev-util.c \
3472 src/libudev/libudev-device.c \
3473 src/libudev/libudev-enumerate.c \
3474 src/libudev/libudev-monitor.c \
3475 src/libudev/libudev-queue.c \
3476 src/libudev/libudev-hwdb.c
3478 libudev_la_CFLAGS = \
3482 libudev_la_LDFLAGS = \
3484 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3485 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3487 libudev_la_LIBADD = \
3488 libsystemd-internal.la \
3489 libsystemd-shared.la
3491 pkgconfiglib_DATA += \
3492 src/libudev/libudev.pc
3495 src/libudev/libudev.pc.in
3498 src/libudev/libudev.pc \
3503 $(AM_V_at)$(MKDIR_P) $(dir $@)
3504 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
3507 $(AM_V_at)$(MKDIR_P) $(dir $@)
3508 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
3510 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3511 libudev-install-hook:
3512 libname=libudev.so && $(move-to-rootlibdir)
3514 libudev-uninstall-hook:
3515 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3517 INSTALL_EXEC_HOOKS += libudev-install-hook
3518 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3520 # ------------------------------------------------------------------------------
3521 noinst_LTLIBRARIES += \
3524 libudev_internal_la_SOURCES =\
3525 $(libudev_la_SOURCES) \
3526 src/libudev/libudev-device-private.c
3528 libudev_internal_la_CFLAGS = \
3530 -fvisibility=default
3532 # ------------------------------------------------------------------------------
3534 $(sysconfdir)/udev/rules.d
3536 dist_network_DATA = \
3537 network/99-default.link \
3538 network/80-container-host0.network \
3539 network/80-container-ve.network
3541 dist_udevrules_DATA += \
3542 rules/42-usb-hid-pm.rules \
3543 rules/50-udev-default.rules \
3544 rules/60-drm.rules \
3545 rules/60-keyboard.rules \
3546 rules/70-mouse.rules \
3547 rules/60-persistent-storage-tape.rules \
3548 rules/60-persistent-serial.rules \
3549 rules/60-persistent-input.rules \
3550 rules/60-persistent-alsa.rules \
3551 rules/60-persistent-storage.rules \
3552 rules/64-btrfs.rules \
3553 rules/75-net-description.rules \
3554 rules/75-tty-description.rules \
3555 rules/78-sound-card.rules \
3556 rules/80-net-setup-link.rules \
3557 rules/95-udev-late.rules
3559 nodist_udevrules_DATA += \
3560 rules/99-systemd.rules
3562 udevconfdir = $(sysconfdir)/udev
3563 dist_udevconf_DATA = \
3566 sharepkgconfigdir = $(datadir)/pkgconfig
3567 sharepkgconfig_DATA = \
3571 rules/99-systemd.rules.in \
3575 rules/99-systemd.rules \
3579 units/systemd-udevd.service.in \
3580 units/systemd-udev-trigger.service.in \
3581 units/systemd-udev-settle.service.in
3584 units/systemd-udevd.service \
3585 units/systemd-udev-trigger.service \
3586 units/systemd-udev-settle.service
3588 SOCKETS_TARGET_WANTS += \
3589 systemd-udevd-control.socket \
3590 systemd-udevd-kernel.socket
3592 SYSINIT_TARGET_WANTS += \
3593 systemd-udevd.service \
3594 systemd-udev-trigger.service
3596 rootbin_PROGRAMS += \
3599 rootlibexec_PROGRAMS += \
3602 noinst_LTLIBRARIES += \
3605 src/udev/keyboard-keys.txt:
3606 $(AM_V_at)$(MKDIR_P) $(dir $@)
3607 $(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/' > $@
3609 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
3610 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3612 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3613 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3615 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
3616 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
3618 libudev_core_la_SOURCES = \
3620 src/udev/udev-event.c \
3621 src/udev/udev-watch.c \
3622 src/udev/udev-node.c \
3623 src/udev/udev-rules.c \
3624 src/udev/udev-ctrl.c \
3625 src/udev/udev-builtin.c \
3626 src/udev/udev-builtin-btrfs.c \
3627 src/udev/udev-builtin-hwdb.c \
3628 src/udev/udev-builtin-input_id.c \
3629 src/udev/udev-builtin-keyboard.c \
3630 src/udev/udev-builtin-net_id.c \
3631 src/udev/udev-builtin-net_setup_link.c \
3632 src/udev/udev-builtin-path_id.c \
3633 src/udev/udev-builtin-usb_id.c \
3634 src/udev/net/link-config.h \
3635 src/udev/net/link-config.c \
3636 src/udev/net/ethtool-util.h \
3637 src/udev/net/ethtool-util.c
3639 nodist_libudev_core_la_SOURCES = \
3640 src/udev/keyboard-keys-from-name.h \
3641 src/udev/keyboard-keys-to-name.h \
3642 src/udev/net/link-config-gperf.c
3645 $(nodist_libudev_core_la_SOURCES)
3648 src/udev/keyboard-keys-from-name.gperf \
3649 src/udev/keyboard-keys.txt \
3650 src/udev/net/link-config-gperf.c
3653 src/udev/net/link-config-gperf.gperf
3655 libudev_core_la_CFLAGS = \
3660 libudev_core_la_LIBADD = \
3661 libudev-internal.la \
3662 libsystemd-label.la \
3663 libsystemd-internal.la \
3664 libsystemd-network.la \
3665 libsystemd-shared.la \
3670 libudev_core_la_SOURCES += \
3671 src/udev/udev-builtin-kmod.c
3673 dist_udevrules_DATA += \
3674 rules/80-drivers.rules
3678 libudev_core_la_SOURCES += \
3679 src/udev/udev-builtin-blkid.c
3683 libudev_core_la_SOURCES += \
3684 src/udev/udev-builtin-uaccess.c \
3685 src/login/logind-acl.c \
3686 src/libsystemd/sd-login/sd-login.c \
3687 src/systemd/sd-login.h
3689 libudev_core_la_LIBADD += \
3693 systemd_udevd_SOURCES = \
3696 systemd_udevd_LDADD = \
3700 src/udev/udevadm.c \
3701 src/udev/udevadm-info.c \
3702 src/udev/udevadm-control.c \
3703 src/udev/udevadm-monitor.c \
3704 src/udev/udevadm-hwdb.c \
3705 src/udev/udevadm-settle.c \
3706 src/udev/udevadm-trigger.c \
3707 src/udev/udevadm-test.c \
3708 src/udev/udevadm-test-builtin.c \
3709 src/udev/udevadm-util.c \
3710 src/udev/udevadm-util.h
3715 # ------------------------------------------------------------------------------
3718 $(sysconfdir)/udev/hwdb.d
3720 systemd_hwdb_SOURCES = \
3721 src/libsystemd/sd-hwdb/hwdb-internal.h \
3724 systemd_hwdb_LDADD = \
3725 libsystemd-shared.la \
3726 libsystemd-internal.la \
3729 rootbin_PROGRAMS += \
3732 dist_udevhwdb_DATA = \
3733 hwdb/20-pci-vendor-model.hwdb \
3734 hwdb/20-pci-classes.hwdb \
3735 hwdb/20-usb-vendor-model.hwdb \
3736 hwdb/20-usb-classes.hwdb \
3737 hwdb/20-sdio-vendor-model.hwdb \
3738 hwdb/20-sdio-classes.hwdb \
3739 hwdb/20-bluetooth-vendor-product.hwdb \
3740 hwdb/20-acpi-vendor.hwdb \
3742 hwdb/20-net-ifname.hwdb \
3743 hwdb/60-keyboard.hwdb \
3747 units/systemd-hwdb-update.service.in
3750 units/systemd-hwdb-update.service
3752 SYSINIT_TARGET_WANTS += \
3753 systemd-hwdb-update.service
3755 # Update hwdb on installation. Do not bother if installing
3756 # in DESTDIR, since this is likely for packaging purposes.
3758 -test -n "$(DESTDIR)" || $(rootbindir)/systemd-hwdb update
3760 INSTALL_DATA_HOOKS += \
3764 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3767 # ------------------------------------------------------------------------------
3776 test_libudev_SOURCES = \
3777 src/test/test-libudev.c
3779 test_libudev_LDADD = \
3780 libsystemd-label.la \
3781 libudev-internal.la \
3782 libsystemd-shared.la \
3783 libsystemd-internal.la
3785 test_udev_SOURCES = \
3786 src/test/test-udev.c
3795 test_udev_LDADD += \
3802 # packed sysfs test tree
3804 $(AM_V_at)$(MKDIR_P) $(dir $@)
3805 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3809 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3814 test/rules-test.sh \
3815 test/rule-syntax-check.py
3817 # ------------------------------------------------------------------------------
3819 src/udev/ata_id/ata_id.c
3822 libudev-internal.la \
3823 libsystemd-shared.la
3825 udevlibexec_PROGRAMS += \
3828 # ------------------------------------------------------------------------------
3829 cdrom_id_SOURCES = \
3830 src/udev/cdrom_id/cdrom_id.c
3833 libudev-internal.la \
3834 libsystemd-shared.la
3836 udevlibexec_PROGRAMS += \
3839 dist_udevrules_DATA += \
3840 rules/60-cdrom_id.rules
3842 # ------------------------------------------------------------------------------
3844 src/udev/collect/collect.c
3847 libudev-internal.la \
3848 libsystemd-shared.la
3850 udevlibexec_PROGRAMS += \
3853 # ------------------------------------------------------------------------------
3855 src/udev/scsi_id/scsi_id.c \
3856 src/udev/scsi_id/scsi_serial.c \
3857 src/udev/scsi_id/scsi.h \
3858 src/udev/scsi_id/scsi_id.h
3861 libudev-internal.la \
3862 libsystemd-shared.la
3864 udevlibexec_PROGRAMS += \
3868 src/udev/scsi_id/README
3870 # ------------------------------------------------------------------------------
3872 src/udev/v4l_id/v4l_id.c
3875 libudev-internal.la \
3876 libsystemd-shared.la
3878 udevlibexec_PROGRAMS += \
3881 dist_udevrules_DATA += \
3882 rules/60-persistent-v4l.rules
3884 # ------------------------------------------------------------------------------
3885 accelerometer_SOURCES = \
3886 src/udev/accelerometer/accelerometer.c
3888 accelerometer_LDADD = \
3889 libudev-internal.la \
3890 libsystemd-shared.la
3892 udevlibexec_PROGRAMS += \
3895 dist_udevrules_DATA += \
3896 rules/61-accelerometer.rules
3898 # ------------------------------------------------------------------------------
3905 libgudev_includedir = \
3906 $(includedir)/gudev-1.0/gudev
3908 libgudev_include_HEADERS = \
3910 src/gudev/gudevenums.h \
3911 src/gudev/gudevenumtypes.h \
3912 src/gudev/gudevtypes.h \
3913 src/gudev/gudevclient.h \
3914 src/gudev/gudevdevice.h \
3915 src/gudev/gudevenumerator.h
3917 lib_LTLIBRARIES += libgudev-1.0.la
3919 pkgconfiglib_DATA += \
3920 src/gudev/gudev-1.0.pc
3923 src/gudev/gudev-1.0.pc
3925 libgudev_1_0_la_SOURCES = \
3926 src/gudev/libgudev-1.0.sym \
3927 src/gudev/gudevenums.h \
3928 src/gudev/gudevenumtypes.h \
3929 src/gudev/gudevenumtypes.h\
3930 src/gudev/gudevtypes.h \
3931 src/gudev/gudevclient.h \
3932 src/gudev/gudevclient.c \
3933 src/gudev/gudevdevice.h \
3934 src/gudev/gudevdevice.c \
3935 src/gudev/gudevenumerator.h \
3936 src/gudev/gudevenumerator.c \
3937 src/gudev/gudevprivate.h
3939 nodist_libgudev_1_0_la_SOURCES = \
3940 src/gudev/gudevmarshal.h \
3941 src/gudev/gudevmarshal.c \
3942 src/gudev/gudevenumtypes.h \
3943 src/gudev/gudevenumtypes.c
3946 $(nodist_libgudev_1_0_la_SOURCES)
3948 libgudev_1_0_la_CPPFLAGS = \
3950 -I$(top_builddir)/src\
3951 -I$(top_srcdir)/src\
3952 -I$(top_builddir)/src/gudev \
3953 -I$(top_srcdir)/src/gudev \
3954 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3955 -D_GUDEV_COMPILATION \
3956 -DG_LOG_DOMAIN=\"GUdev\"
3958 libgudev_1_0_la_CFLAGS = \
3960 -fvisibility=default \
3963 libgudev_1_0_la_LIBADD = \
3967 libgudev_1_0_la_LDFLAGS = \
3969 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3972 -Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym
3974 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3975 $(AM_V_at)$(MKDIR_P) $(dir $@)
3976 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3978 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3979 $(AM_V_at)$(MKDIR_P) $(dir $@)
3980 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3981 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3983 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3984 $(AM_V_at)$(MKDIR_P) $(dir $@)
3985 $(AM_V_GEN)glib-mkenums --template $^ > $@
3987 if HAVE_INTROSPECTION
3988 -include $(INTROSPECTION_MAKEFILE)
3990 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3992 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3994 src_gudev_GUdev_1_0_gir_CFLAGS = \
3997 -D_GUDEV_COMPILATION \
3998 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3999 -I$(top_srcdir)/src \
4000 -I$(top_builddir)/src \
4001 -I$(top_srcdir)/src/gudev \
4002 -I$(top_builddir)/src/gudev
4004 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
4006 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
4007 --pkg-export=gudev-1.0 \
4010 src_gudev_GUdev_1_0_gir_FILES = \
4012 src/gudev/gudevtypes.h \
4013 src/gudev/gudevenums.h \
4014 src/gudev/gudevenumtypes.h \
4015 src/gudev/gudevclient.h \
4016 src/gudev/gudevdevice.h \
4017 src/gudev/gudevenumerator.h \
4018 src/gudev/gudevclient.c \
4019 src/gudev/gudevdevice.c \
4020 src/gudev/gudevenumerator.c
4022 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
4023 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
4025 girdir = $(datadir)/gir-1.0
4027 src/gudev/GUdev-1.0.gir
4029 typelibsdir = $(libdir)/girepository-1.0
4031 src/gudev/GUdev-1.0.typelib
4033 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
4034 endif # HAVE_INTROSPECTION
4038 src/gudev/gudev-1.0.pc.in \
4039 src/gudev/gudevmarshal.list \
4040 src/gudev/gudevenumtypes.h.template \
4041 src/gudev/gudevenumtypes.c.template \
4042 src/gudev/gjs-example.js \
4043 src/gudev/seed-example-enum.js \
4044 src/gudev/seed-example.js
4046 # ------------------------------------------------------------------------------
4047 mtd_probe_SOURCES = \
4048 src/udev/mtd_probe/mtd_probe.c \
4049 src/udev/mtd_probe/mtd_probe.h \
4050 src/udev/mtd_probe/probe_smartmedia.c
4052 dist_udevrules_DATA += \
4053 rules/75-probe_mtd.rules
4055 udevlibexec_PROGRAMS += \
4058 # ------------------------------------------------------------------------------
4059 test_id128_SOURCES = \
4060 src/test/test-id128.c
4062 test_id128_LDADD = \
4063 libsystemd-internal.la \
4064 libsystemd-shared.la
4069 # ------------------------------------------------------------------------------
4071 rootlibexec_PROGRAMS += \
4074 systemd_activate_SOURCES = \
4075 src/activate/activate.c
4077 systemd_activate_LDADD = \
4078 libsystemd-label.la \
4079 libsystemd-internal.la \
4080 libsystemd-shared.la
4082 # ------------------------------------------------------------------------------
4083 systemd_journald_SOURCES = \
4084 src/journal/journald.c \
4085 src/journal/journald-server.h
4087 systemd_journald_LDADD = \
4088 libsystemd-journal-core.la \
4089 libsystemd-internal.la \
4090 libsystemd-shared.la
4092 systemd_cat_SOURCES = \
4095 systemd_cat_LDADD = \
4096 libsystemd-journal-core.la
4099 rootlibexec_PROGRAMS += \
4100 systemd-journal-remote
4102 systemd_journal_remote_SOURCES = \
4103 src/journal-remote/journal-remote-parse.h \
4104 src/journal-remote/journal-remote-parse.c \
4105 src/journal-remote/journal-remote-write.h \
4106 src/journal-remote/journal-remote-write.c \
4107 src/journal-remote/journal-remote.h \
4108 src/journal-remote/journal-remote.c
4110 systemd_journal_remote_LDADD = \
4111 libsystemd-internal.la \
4112 libsystemd-journal-core.la
4114 systemd_journal_remote_SOURCES += \
4115 src/journal-remote/microhttpd-util.h \
4116 src/journal-remote/microhttpd-util.c
4118 systemd_journal_remote_CFLAGS = \
4120 $(MICROHTTPD_CFLAGS)
4122 systemd_journal_remote_LDADD += \
4126 dist_sysusers_DATA += \
4127 sysusers.d/systemd-remote.conf
4131 dist_tmpfiles_DATA += \
4132 tmpfiles.d/systemd-remote.conf
4136 systemd_journal_remote_LDADD += \
4139 # systemd-journal-remote make sense mostly with full crypto stack
4140 dist_systemunit_DATA += \
4141 units/systemd-journal-remote.socket
4143 nodist_systemunit_DATA += \
4144 units/systemd-journal-remote.service
4147 units/systemd-journal-remote.service.in
4149 journal-remote-install-hook: journal-install-hook
4150 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
4151 -chown 0:0 $(DESTDIR)/var/log/journal/remote
4152 -chmod 755 $(DESTDIR)/var/log/journal/remote
4154 INSTALL_EXEC_HOOKS += journal-remote-install-hook
4158 nodist_pkgsysconf_DATA += \
4159 src/journal-remote/journal-remote.conf
4162 src/journal-remote/journal-remote.conf.in
4165 src/journal-remote/journal-remote.conf
4169 rootlibexec_PROGRAMS += \
4170 systemd-journal-upload
4172 systemd_journal_upload_SOURCES = \
4173 src/journal-remote/journal-upload.h \
4174 src/journal-remote/journal-upload.c \
4175 src/journal-remote/journal-upload-journal.c
4177 systemd_journal_upload_CFLAGS = \
4181 systemd_journal_upload_LDADD = \
4182 libsystemd-internal.la \
4183 libsystemd-journal-internal.la \
4184 libsystemd-shared.la \
4187 nodist_systemunit_DATA += \
4188 units/systemd-journal-upload.service
4191 units/systemd-journal-upload.service.in
4193 nodist_pkgsysconf_DATA += \
4194 src/journal-remote/journal-upload.conf
4197 src/journal-remote/journal-upload.conf.in
4200 src/journal-remote/journal-upload.conf
4203 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4204 journalctl_CFLAGS = \
4207 journalctl_SOURCES = \
4208 src/journal/journalctl.c
4210 journalctl_LDADD = \
4211 libsystemd-journal-internal.la \
4212 libsystemd-internal.la \
4213 libsystemd-logs.la \
4214 libsystemd-shared.la
4217 journalctl_LDADD += \
4222 journalctl_SOURCES += \
4223 src/journal/journal-qrcode.c \
4224 src/journal/journal-qrcode.h
4226 journalctl_CFLAGS += \
4229 journalctl_LDADD += \
4233 test_journal_SOURCES = \
4234 src/journal/test-journal.c
4236 test_journal_LDADD = \
4237 libsystemd-journal-core.la
4239 test_journal_send_SOURCES = \
4240 src/journal/test-journal-send.c
4242 test_journal_send_LDADD = \
4243 libsystemd-journal-core.la
4245 test_journal_syslog_SOURCES = \
4246 src/journal/test-journal-syslog.c
4248 test_journal_syslog_LDADD = \
4249 libsystemd-journal-core.la
4251 test_journal_match_SOURCES = \
4252 src/journal/test-journal-match.c
4254 test_journal_match_LDADD = \
4255 libsystemd-journal-core.la
4257 test_journal_enum_SOURCES = \
4258 src/journal/test-journal-enum.c
4260 test_journal_enum_LDADD = \
4261 libsystemd-journal-core.la
4263 test_journal_stream_SOURCES = \
4264 src/journal/test-journal-stream.c
4266 test_journal_stream_LDADD = \
4267 libsystemd-journal-core.la
4269 test_journal_flush_SOURCES = \
4270 src/journal/test-journal-flush.c
4272 test_journal_flush_LDADD = \
4273 libsystemd-journal-core.la
4275 test_journal_init_SOURCES = \
4276 src/journal/test-journal-init.c
4278 test_journal_init_LDADD = \
4279 libsystemd-journal-core.la
4281 test_journal_verify_SOURCES = \
4282 src/journal/test-journal-verify.c
4284 test_journal_verify_LDADD = \
4285 libsystemd-journal-core.la
4287 test_journal_interleaving_SOURCES = \
4288 src/journal/test-journal-interleaving.c
4290 test_journal_interleaving_LDADD = \
4291 libsystemd-journal-core.la
4293 test_mmap_cache_SOURCES = \
4294 src/journal/test-mmap-cache.c
4296 test_mmap_cache_LDADD = \
4297 libsystemd-journal-core.la
4299 test_catalog_SOURCES = \
4300 src/journal/test-catalog.c
4302 test_catalog_CPPFLAGS = \
4304 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
4306 test_catalog_LDADD = \
4307 libsystemd-journal-core.la
4309 test_compress_SOURCES = \
4310 src/journal/test-compress.c
4312 test_compress_LDADD = \
4313 libsystemd-journal-internal.la \
4314 libsystemd-shared.la
4316 test_compress_benchmark_SOURCES = \
4317 src/journal/test-compress-benchmark.c
4319 test_compress_benchmark_LDADD = \
4320 libsystemd-journal-internal.la \
4321 libsystemd-shared.la
4323 libsystemd_journal_core_la_SOURCES = \
4324 src/journal/journald-kmsg.c \
4325 src/journal/journald-kmsg.h \
4326 src/journal/journald-syslog.c \
4327 src/journal/journald-syslog.h \
4328 src/journal/journald-stream.c \
4329 src/journal/journald-stream.h \
4330 src/journal/journald-server.c \
4331 src/journal/journald-server.h \
4332 src/journal/journald-console.c \
4333 src/journal/journald-console.h \
4334 src/journal/journald-wall.c \
4335 src/journal/journald-wall.h \
4336 src/journal/journald-native.c \
4337 src/journal/journald-native.h \
4338 src/journal/journald-audit.c \
4339 src/journal/journald-audit.h \
4340 src/journal/journald-rate-limit.c \
4341 src/journal/journald-rate-limit.h \
4342 src/journal/journal-internal.h
4344 nodist_libsystemd_journal_core_la_SOURCES = \
4345 src/journal/journald-gperf.c
4347 libsystemd_journal_core_la_LIBADD = \
4348 libsystemd-journal-internal.la \
4349 libudev-internal.la \
4350 libsystemd-label.la \
4351 libsystemd-internal.la \
4352 libsystemd-shared.la
4355 libsystemd_journal_core_la_LIBADD += \
4359 noinst_LTLIBRARIES += \
4360 libsystemd-journal-core.la
4362 journal-install-hook:
4363 -$(MKDIR_P) $(DESTDIR)/var/log/journal
4364 -chown 0:0 $(DESTDIR)/var/log/journal
4365 -chmod 755 $(DESTDIR)/var/log/journal
4366 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4367 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4369 journal-uninstall-hook:
4370 -rmdir $(DESTDIR)/var/log/journal/remote
4371 -rmdir $(DESTDIR)/var/log/journal/
4373 INSTALL_EXEC_HOOKS += journal-install-hook
4374 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4376 # ------------------------------------------------------------------------------
4377 # Update catalog on installation. Do not bother if installing
4378 # in DESTDIR, since this is likely for packaging purposes.
4379 catalog-update-hook:
4380 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4382 INSTALL_DATA_HOOKS += \
4385 catalog-remove-hook:
4386 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4388 UNINSTALL_DATA_HOOKS += \
4397 test-journal-syslog \
4398 test-journal-match \
4399 test-journal-stream \
4401 test-journal-verify \
4402 test-journal-interleaving \
4403 test-journal-flush \
4410 test-compress-benchmark
4413 pkginclude_HEADERS += \
4414 src/systemd/sd-journal.h \
4415 src/systemd/sd-messages.h \
4416 src/systemd/_sd-common.h
4418 libsystemd_journal_internal_la_SOURCES = \
4419 src/journal/sd-journal.c \
4420 src/systemd/sd-journal.h \
4421 src/systemd/_sd-common.h \
4422 src/journal/journal-file.c \
4423 src/journal/journal-file.h \
4424 src/journal/journal-vacuum.c \
4425 src/journal/journal-vacuum.h \
4426 src/journal/journal-verify.c \
4427 src/journal/journal-verify.h \
4428 src/journal/lookup3.c \
4429 src/journal/lookup3.h \
4430 src/journal/journal-send.c \
4431 src/journal/journal-def.h \
4432 src/journal/compress.h \
4433 src/journal/catalog.c \
4434 src/journal/catalog.h \
4435 src/journal/mmap-cache.c \
4436 src/journal/mmap-cache.h \
4437 src/journal/compress.c
4439 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4440 libsystemd_journal_internal_la_CFLAGS = \
4443 libsystemd_journal_internal_la_LIBADD = \
4447 libsystemd_journal_internal_la_CFLAGS += \
4450 libsystemd_journal_internal_la_LIBADD += \
4455 libsystemd_journal_internal_la_LIBADD += \
4460 libsystemd_journal_internal_la_SOURCES += \
4461 src/journal/journal-authenticate.c \
4462 src/journal/journal-authenticate.h \
4463 src/journal/fsprg.c \
4466 libsystemd_journal_internal_la_LIBADD += \
4469 # fsprg.c is a drop-in file using void pointer arithmetic
4470 libsystemd_journal_internal_la_CFLAGS += \
4475 noinst_LTLIBRARIES += \
4476 libsystemd-journal-internal.la
4478 rootlibexec_PROGRAMS += \
4481 rootbin_PROGRAMS += \
4487 dist_systemunit_DATA += \
4488 units/systemd-journald.socket \
4489 units/systemd-journald-dev-log.socket \
4490 units/systemd-journald-audit.socket
4492 nodist_systemunit_DATA += \
4493 units/systemd-journald.service \
4494 units/systemd-journal-flush.service \
4495 units/systemd-journal-catalog-update.service
4497 dist_pkgsysconf_DATA += \
4498 src/journal/journald.conf
4500 dist_catalog_DATA = \
4501 catalog/systemd.fr.catalog \
4502 catalog/systemd.it.catalog \
4503 catalog/systemd.pl.catalog \
4504 catalog/systemd.pt_BR.catalog \
4505 catalog/systemd.ru.catalog \
4506 catalog/systemd.catalog
4508 SOCKETS_TARGET_WANTS += \
4509 systemd-journald.socket \
4510 systemd-journald-dev-log.socket \
4511 systemd-journald-audit.socket
4513 SYSINIT_TARGET_WANTS += \
4514 systemd-journald.service \
4515 systemd-journal-flush.service \
4516 systemd-journal-catalog-update.service
4519 units/systemd-journald.service.in \
4520 units/systemd-journal-flush.service.in \
4521 units/systemd-journal-catalog-update.service.in \
4522 src/journal/journald-gperf.gperf
4525 src/journal/journald-gperf.c
4527 # ------------------------------------------------------------------------------
4529 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4531 rootlibexec_PROGRAMS += \
4532 systemd-journal-gatewayd
4534 systemd_journal_gatewayd_SOURCES = \
4535 src/journal-remote/journal-gatewayd.c \
4536 src/journal-remote/microhttpd-util.h \
4537 src/journal-remote/microhttpd-util.c
4539 systemd_journal_gatewayd_LDADD = \
4540 libsystemd-logs.la \
4541 libsystemd-journal-internal.la \
4542 libsystemd-internal.la \
4543 libsystemd-shared.la \
4547 systemd_journal_gatewayd_LDADD += \
4551 systemd_journal_gatewayd_CFLAGS = \
4553 $(MICROHTTPD_CFLAGS)
4555 systemd_journal_gatewayd_CPPFLAGS = \
4557 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4559 dist_systemunit_DATA += \
4560 units/systemd-journal-gatewayd.socket
4562 nodist_systemunit_DATA += \
4563 units/systemd-journal-gatewayd.service
4565 dist_gatewayddocumentroot_DATA = \
4566 src/journal-remote/browse.html
4571 units/systemd-journal-gatewayd.service.in
4573 # ------------------------------------------------------------------------------
4575 systemd_socket_proxyd_SOURCES = \
4576 src/socket-proxy/socket-proxyd.c
4578 systemd_socket_proxyd_LDADD = \
4579 libsystemd-logs.la \
4580 libsystemd-internal.la \
4581 libsystemd-journal-internal.la \
4582 libsystemd-shared.la \
4583 libsystemd-resolve.la
4585 # ------------------------------------------------------------------------------
4587 systemd_coredump_SOURCES = \
4588 src/journal/coredump.c \
4589 src/journal/coredump-vacuum.c \
4590 src/journal/coredump-vacuum.h
4592 systemd_coredump_LDADD = \
4593 libsystemd-journal-internal.la \
4594 libsystemd-label.la \
4595 libsystemd-internal.la \
4596 libsystemd-shared.la
4599 systemd_coredump_SOURCES += \
4600 src/journal/stacktrace.c \
4601 src/journal/stacktrace.h
4603 systemd_coredump_LDADD += \
4607 rootlibexec_PROGRAMS += \
4610 dist_pkgsysconf_DATA += \
4611 src/journal/coredump.conf
4614 systemd_coredump_LDADD += \
4618 coredumpctl_SOURCES = \
4619 src/journal/coredumpctl.c
4621 coredumpctl_LDADD = \
4622 libsystemd-journal-internal.la \
4623 libsystemd-internal.la \
4624 libsystemd-shared.la
4630 test-coredump-vacuum
4632 test_coredump_vacuum_SOURCES = \
4633 src/journal/test-coredump-vacuum.c \
4634 src/journal/coredump-vacuum.c \
4635 src/journal/coredump-vacuum.h
4637 test_coredump_vacuum_LDADD = \
4638 libsystemd-internal.la \
4639 libsystemd-shared.la
4641 dist_bashcompletion_DATA += \
4642 shell-completion/bash/coredumpctl
4644 dist_zshcompletion_DATA += \
4645 shell-completion/zsh/_coredumpctl
4648 sysctl.d/50-coredump.conf
4651 sysctl.d/50-coredump.conf
4655 sysctl.d/50-coredump.conf.in
4657 # ------------------------------------------------------------------------------
4659 systemd_binfmt_SOURCES = \
4662 systemd_binfmt_LDADD = \
4663 libsystemd-shared.la
4665 rootlibexec_PROGRAMS += \
4668 dist_systemunit_DATA += \
4669 units/proc-sys-fs-binfmt_misc.automount \
4670 units/proc-sys-fs-binfmt_misc.mount
4672 nodist_systemunit_DATA += \
4673 units/systemd-binfmt.service
4676 $(prefix)/lib/binfmt.d \
4677 $(sysconfdir)/binfmt.d
4679 SYSINIT_TARGET_WANTS += \
4680 systemd-binfmt.service \
4681 proc-sys-fs-binfmt_misc.automount
4686 units/systemd-binfmt.service.in
4688 # ------------------------------------------------------------------------------
4690 systemd_vconsole_setup_SOURCES = \
4691 src/vconsole/vconsole-setup.c
4693 systemd_vconsole_setup_LDADD = \
4694 libsystemd-shared.la
4696 rootlibexec_PROGRAMS += \
4697 systemd-vconsole-setup
4699 nodist_systemunit_DATA += \
4700 units/systemd-vconsole-setup.service
4702 nodist_udevrules_DATA += \
4703 src/vconsole/90-vconsole.rules
4705 SYSINIT_TARGET_WANTS += \
4706 systemd-vconsole-setup.service
4709 src/vconsole/90-vconsole.rules
4713 src/vconsole/90-vconsole.rules.in \
4714 units/systemd-vconsole-setup.service.in
4716 # ------------------------------------------------------------------------------
4718 systemd_bootchart_SOURCES = \
4719 src/bootchart/bootchart.c \
4720 src/bootchart/bootchart.h \
4721 src/bootchart/store.c \
4722 src/bootchart/store.h \
4723 src/bootchart/svg.c \
4726 systemd_bootchart_LDADD = \
4727 libsystemd-journal-internal.la \
4728 libsystemd-shared.la
4730 rootlibexec_PROGRAMS += \
4733 dist_pkgsysconf_DATA += \
4734 src/bootchart/bootchart.conf
4736 nodist_systemunit_DATA += \
4737 units/systemd-bootchart.service
4740 units/systemd-bootchart.service.in
4743 units/systemd-bootchart.service
4746 # ------------------------------------------------------------------------------
4747 if ENABLE_QUOTACHECK
4748 rootlibexec_PROGRAMS += \
4751 nodist_systemunit_DATA += \
4752 units/systemd-quotacheck.service
4754 systemd_quotacheck_SOURCES = \
4755 src/quotacheck/quotacheck.c
4757 systemd_quotacheck_LDADD = \
4758 libsystemd-shared.la
4762 units/systemd-quotacheck.service.in
4764 nodist_systemunit_DATA += \
4765 units/quotaon.service
4767 # ------------------------------------------------------------------------------
4768 if ENABLE_RANDOMSEED
4769 rootlibexec_PROGRAMS += \
4772 nodist_systemunit_DATA += \
4773 units/systemd-random-seed.service
4775 systemd_random_seed_SOURCES = \
4776 src/random-seed/random-seed.c
4778 systemd_random_seed_LDADD = \
4779 libsystemd-label.la \
4780 libsystemd-shared.la
4782 SYSINIT_TARGET_WANTS += \
4783 systemd-random-seed.service
4788 units/systemd-random-seed.service.in
4790 # ------------------------------------------------------------------------------
4792 rootlibexec_PROGRAMS += \
4795 nodist_systemunit_DATA += \
4796 units/systemd-backlight@.service
4798 systemd_backlight_SOURCES = \
4799 src/backlight/backlight.c
4801 systemd_backlight_LDADD = \
4802 libsystemd-label.la \
4803 libudev-internal.la \
4804 libsystemd-shared.la
4808 units/systemd-backlight@.service.in
4810 # ------------------------------------------------------------------------------
4812 rootlibexec_PROGRAMS += \
4815 nodist_systemunit_DATA += \
4816 units/systemd-rfkill@.service
4818 systemd_rfkill_SOURCES = \
4821 systemd_rfkill_LDADD = \
4822 libsystemd-label.la \
4823 libudev-internal.la \
4824 libsystemd-shared.la
4828 units/systemd-rfkill@.service.in
4830 # ------------------------------------------------------------------------------
4831 if HAVE_LIBCRYPTSETUP
4832 rootlibexec_PROGRAMS += \
4835 systemgenerator_PROGRAMS += \
4836 systemd-cryptsetup-generator
4838 dist_systemunit_DATA += \
4839 units/cryptsetup.target \
4840 units/cryptsetup-pre.target
4842 systemd_cryptsetup_SOURCES = \
4843 src/cryptsetup/cryptsetup.c
4845 systemd_cryptsetup_CFLAGS = \
4847 $(LIBCRYPTSETUP_CFLAGS)
4849 systemd_cryptsetup_LDADD = \
4850 libsystemd-label.la \
4851 libudev-internal.la \
4852 libsystemd-shared.la \
4853 $(LIBCRYPTSETUP_LIBS)
4855 systemd_cryptsetup_generator_SOURCES = \
4856 src/cryptsetup/cryptsetup-generator.c
4858 systemd_cryptsetup_generator_LDADD = \
4859 libsystemd-label.la \
4860 libsystemd-shared.la
4862 SYSINIT_TARGET_WANTS += \
4867 # ------------------------------------------------------------------------------
4869 systemd_hostnamed_SOURCES = \
4870 src/hostname/hostnamed.c
4872 systemd_hostnamed_LDADD = \
4873 libsystemd-label.la \
4874 libsystemd-internal.la \
4875 libsystemd-shared.la
4877 rootlibexec_PROGRAMS += \
4880 nodist_systemunit_DATA += \
4881 units/systemd-hostnamed.service
4883 dist_systemunit_DATA_busnames += \
4884 units/org.freedesktop.hostname1.busname
4886 dist_dbuspolicy_DATA += \
4887 src/hostname/org.freedesktop.hostname1.conf
4889 dist_dbussystemservice_DATA += \
4890 src/hostname/org.freedesktop.hostname1.service
4892 polkitpolicy_files += \
4893 src/hostname/org.freedesktop.hostname1.policy
4895 SYSTEM_UNIT_ALIASES += \
4896 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4898 BUSNAMES_TARGET_WANTS += \
4899 org.freedesktop.hostname1.busname
4901 hostnamectl_SOURCES = \
4902 src/hostname/hostnamectl.c
4904 hostnamectl_LDADD = \
4905 libsystemd-internal.la \
4906 libsystemd-shared.la
4911 dist_bashcompletion_DATA += \
4912 shell-completion/bash/hostnamectl
4914 dist_zshcompletion_DATA += \
4915 shell-completion/zsh/_hostnamectl
4919 polkitpolicy_in_files += \
4920 src/hostname/org.freedesktop.hostname1.policy.in
4923 units/systemd-hostnamed.service.in
4925 # ------------------------------------------------------------------------------
4926 dist_systemunit_DATA_busnames += \
4927 units/org.freedesktop.systemd1.busname
4929 BUSNAMES_TARGET_WANTS += \
4930 org.freedesktop.systemd1.busname
4932 # ------------------------------------------------------------------------------
4934 systemd_localed_SOURCES = \
4935 src/locale/localed.c
4937 systemd_localed_LDADD = \
4938 libsystemd-label.la \
4939 libsystemd-internal.la \
4940 libsystemd-shared.la \
4943 systemd_localed_CFLAGS = \
4947 nodist_systemunit_DATA += \
4948 units/systemd-localed.service
4950 dist_systemunit_DATA_busnames += \
4951 units/org.freedesktop.locale1.busname
4953 rootlibexec_PROGRAMS += \
4956 dist_dbuspolicy_DATA += \
4957 src/locale/org.freedesktop.locale1.conf
4959 dist_dbussystemservice_DATA += \
4960 src/locale/org.freedesktop.locale1.service
4962 polkitpolicy_files += \
4963 src/locale/org.freedesktop.locale1.policy
4965 SYSTEM_UNIT_ALIASES += \
4966 systemd-localed.service dbus-org.freedesktop.locale1.service
4968 BUSNAMES_TARGET_WANTS += \
4969 org.freedesktop.locale1.busname
4971 dist_pkgdata_DATA += \
4972 src/locale/kbd-model-map
4974 dist_noinst_SCRIPT = \
4975 src/locale/generate-kbd-model-map
4977 localectl_SOURCES = \
4978 src/locale/localectl.c
4981 libsystemd-internal.la \
4982 libsystemd-shared.la
4987 dist_bashcompletion_DATA += \
4988 shell-completion/bash/localectl
4990 dist_zshcompletion_DATA += \
4991 shell-completion/zsh/_localectl
4995 .PHONY: update-kbd-model-map
4997 polkitpolicy_in_files += \
4998 src/locale/org.freedesktop.locale1.policy.in
5001 units/systemd-localed.service.in
5003 # ------------------------------------------------------------------------------
5005 systemd_timedated_SOURCES = \
5006 src/timedate/timedated.c
5008 systemd_timedated_LDADD = \
5009 libsystemd-label.la \
5010 libsystemd-internal.la \
5011 libsystemd-shared.la
5013 rootlibexec_PROGRAMS += \
5016 dist_dbussystemservice_DATA += \
5017 src/timedate/org.freedesktop.timedate1.service
5019 dist_dbuspolicy_DATA += \
5020 src/timedate/org.freedesktop.timedate1.conf
5022 nodist_systemunit_DATA += \
5023 units/systemd-timedated.service
5025 dist_systemunit_DATA_busnames += \
5026 units/org.freedesktop.timedate1.busname
5028 polkitpolicy_files += \
5029 src/timedate/org.freedesktop.timedate1.policy
5031 SYSTEM_UNIT_ALIASES += \
5032 systemd-timedated.service dbus-org.freedesktop.timedate1.service
5034 BUSNAMES_TARGET_WANTS += \
5035 org.freedesktop.timedate1.busname
5037 timedatectl_SOURCES = \
5038 src/timedate/timedatectl.c
5040 timedatectl_LDADD = \
5041 libsystemd-internal.la \
5042 libsystemd-shared.la
5047 dist_bashcompletion_DATA += \
5048 shell-completion/bash/timedatectl
5050 dist_zshcompletion_DATA += \
5051 shell-completion/zsh/_timedatectl
5054 polkitpolicy_in_files += \
5055 src/timedate/org.freedesktop.timedate1.policy.in
5058 units/systemd-timedated.service.in
5060 # ------------------------------------------------------------------------------
5062 systemd_timesyncd_SOURCES = \
5063 src/timesync/timesyncd.c \
5064 src/timesync/timesyncd-manager.c \
5065 src/timesync/timesyncd-manager.h \
5066 src/timesync/timesyncd-conf.c \
5067 src/timesync/timesyncd-conf.h \
5068 src/timesync/timesyncd-server.c \
5069 src/timesync/timesyncd-server.h
5071 nodist_systemd_timesyncd_SOURCES = \
5072 src/timesync/timesyncd-gperf.c
5075 src/timesync/timesyncd-gperf.gperf
5078 src/timesync/timesyncd-gperf.c
5080 systemd_timesyncd_LDADD = \
5081 libsystemd-resolve.la \
5082 libsystemd-network.la \
5083 libsystemd-label.la \
5084 libsystemd-internal.la \
5085 libsystemd-shared.la
5087 rootlibexec_PROGRAMS += \
5090 nodist_systemunit_DATA += \
5091 units/systemd-timesyncd.service
5093 GENERAL_ALIASES += \
5094 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
5097 units/systemd-timesyncd.service.in
5099 nodist_pkgsysconf_DATA += \
5100 src/timesync/timesyncd.conf
5103 src/timesync/timesyncd.conf.in
5106 src/timesync/timesyncd.conf
5109 # ------------------------------------------------------------------------------
5111 libnss_myhostname_la_SOURCES = \
5112 src/nss-myhostname/nss-myhostname.sym \
5113 src/nss-myhostname/nss-myhostname.c
5115 libnss_myhostname_la_LDFLAGS = \
5122 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
5124 libnss_myhostname_la_LIBADD = \
5125 libsystemd-shared.la \
5126 libsystemd-internal.la
5128 lib_LTLIBRARIES += \
5129 libnss_myhostname.la
5132 # ------------------------------------------------------------------------------
5134 systemd_machined_SOURCES = \
5135 src/machine/machined.c \
5136 src/machine/machined.h
5138 systemd_machined_LDADD = \
5139 libsystemd-machine-core.la
5141 rootlibexec_PROGRAMS += \
5144 libsystemd_machine_core_la_SOURCES = \
5145 src/machine/machine.c \
5146 src/machine/machine.h \
5147 src/machine/machined-dbus.c \
5148 src/machine/machine-dbus.c \
5149 src/machine/machine-dbus.h \
5150 src/machine/image-dbus.c \
5151 src/machine/image-dbus.h
5153 libsystemd_machine_core_la_LIBADD = \
5154 libsystemd-label.la \
5155 libsystemd-internal.la \
5156 libudev-internal.la \
5157 libsystemd-shared.la
5159 noinst_LTLIBRARIES += \
5160 libsystemd-machine-core.la
5162 machinectl_SOURCES = \
5163 src/machine/machinectl.c
5165 machinectl_LDADD = \
5166 libsystemd-internal.la \
5167 libsystemd-logs.la \
5168 libsystemd-journal-internal.la \
5169 libsystemd-shared.la
5171 rootbin_PROGRAMS += \
5174 dist_bashcompletion_DATA += \
5175 shell-completion/bash/machinectl
5177 test_machine_tables_SOURCES = \
5178 src/machine/test-machine-tables.c
5180 test_machine_tables_LDADD = \
5181 libsystemd-machine-core.la
5186 nodist_systemunit_DATA += \
5187 units/systemd-machined.service
5189 dist_systemunit_DATA += \
5192 dist_systemunit_DATA_busnames += \
5193 units/org.freedesktop.machine1.busname
5195 dist_dbussystemservice_DATA += \
5196 src/machine/org.freedesktop.machine1.service
5198 dist_dbuspolicy_DATA += \
5199 src/machine/org.freedesktop.machine1.conf
5201 polkitpolicy_files += \
5202 src/machine/org.freedesktop.machine1.policy
5204 polkitpolicy_in_files += \
5205 src/machine/org.freedesktop.machine1.policy.in
5207 dist_zshcompletion_DATA += \
5208 shell-completion/zsh/_machinectl \
5209 shell-completion/zsh/_sd_machines
5211 SYSTEM_UNIT_ALIASES += \
5212 systemd-machined.service dbus-org.freedesktop.machine1.service
5214 BUSNAMES_TARGET_WANTS += \
5215 org.freedesktop.machine1.busname
5218 units/systemd-machined.service.in
5220 libnss_mymachines_la_SOURCES = \
5221 src/nss-mymachines/nss-mymachines.sym \
5222 src/nss-mymachines/nss-mymachines.c
5224 libnss_mymachines_la_LDFLAGS = \
5231 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
5233 libnss_mymachines_la_LIBADD = \
5234 libsystemd-shared.la \
5235 libsystemd-internal.la
5237 lib_LTLIBRARIES += \
5238 libnss_mymachines.la
5248 systemd_import_SOURCES = \
5249 src/import/import.c \
5250 src/import/import-raw.c \
5251 src/import/import-raw.h \
5252 src/import/import-tar.c \
5253 src/import/import-tar.h \
5254 src/import/import-dkr.c \
5255 src/import/import-dkr.h \
5256 src/import/import-job.c \
5257 src/import/import-job.h \
5258 src/import/import-util.c \
5259 src/import/import-util.h \
5260 src/import/curl-util.c \
5261 src/import/curl-util.h \
5262 src/import/aufs-util.c \
5263 src/import/aufs-util.h \
5264 src/import/qcow2-util.c \
5265 src/import/qcow2-util.h
5267 systemd_import_CFLAGS = \
5274 systemd_import_LDADD = \
5275 libsystemd-internal.la \
5276 libsystemd-label.la \
5277 libsystemd-shared.la \
5286 test_qcow2_SOURCES = \
5287 src/import/test-qcow2.c \
5288 src/import/qcow2-util.c \
5289 src/import/qcow2-util.h
5291 test_qcow2_CFLAGS = \
5295 test_qcow2_LDADD = \
5296 libsystemd-internal.la \
5297 libsystemd-label.la \
5298 libsystemd-shared.la \
5307 # ------------------------------------------------------------------------------
5309 systemd_resolved_SOURCES = \
5310 src/resolve/resolved.c \
5311 src/resolve/resolved-manager.c \
5312 src/resolve/resolved-manager.h \
5313 src/resolve/resolved-conf.c \
5314 src/resolve/resolved-conf.h \
5315 src/resolve/resolved-bus.c \
5316 src/resolve/resolved-bus.h \
5317 src/resolve/resolved-link.h \
5318 src/resolve/resolved-link.c \
5319 src/resolve/resolved-def.h \
5320 src/resolve/resolved-dns-domain.h \
5321 src/resolve/resolved-dns-domain.c \
5322 src/resolve/resolved-dns-rr.h \
5323 src/resolve/resolved-dns-rr.c \
5324 src/resolve/resolved-dns-question.h \
5325 src/resolve/resolved-dns-question.c \
5326 src/resolve/resolved-dns-answer.h \
5327 src/resolve/resolved-dns-answer.c \
5328 src/resolve/resolved-dns-packet.h \
5329 src/resolve/resolved-dns-packet.c \
5330 src/resolve/resolved-dns-query.h \
5331 src/resolve/resolved-dns-query.c \
5332 src/resolve/resolved-dns-transaction.h \
5333 src/resolve/resolved-dns-transaction.c \
5334 src/resolve/resolved-dns-scope.h \
5335 src/resolve/resolved-dns-scope.c \
5336 src/resolve/resolved-dns-server.h \
5337 src/resolve/resolved-dns-server.c \
5338 src/resolve/resolved-dns-cache.h \
5339 src/resolve/resolved-dns-cache.c \
5340 src/resolve/resolved-dns-zone.h \
5341 src/resolve/resolved-dns-zone.c \
5342 src/resolve/resolved-dns-stream.h \
5343 src/resolve/resolved-dns-stream.c \
5344 src/resolve/dns-type.c \
5345 src/resolve/dns-type.h \
5346 src/resolve/dns_type-from-name.h \
5347 src/resolve/dns_type-to-name.h
5349 nodist_systemd_resolved_SOURCES = \
5350 src/resolve/resolved-gperf.c
5353 src/resolve/resolved-gperf.gperf \
5354 src/resolve/dns_type-from-name.gperf
5357 src/resolve/resolved-gperf.c
5359 systemd_resolved_LDADD = \
5360 libsystemd-network.la \
5361 libsystemd-label.la \
5362 libsystemd-internal.la \
5363 libsystemd-shared.la \
5366 rootlibexec_PROGRAMS += \
5369 nodist_systemunit_DATA += \
5370 units/systemd-resolved.service
5372 dist_systemunit_DATA_busnames += \
5373 units/org.freedesktop.resolve1.busname
5375 dist_dbuspolicy_DATA += \
5376 src/resolve/org.freedesktop.resolve1.conf
5378 dist_dbussystemservice_DATA += \
5379 src/resolve/org.freedesktop.resolve1.service
5382 units/systemd-resolved.service.in
5384 SYSTEM_UNIT_ALIASES += \
5385 systemd-resolved.service dbus-org.freedesktop.resolve1.service
5387 BUSNAMES_TARGET_WANTS += \
5388 org.freedesktop.resolve1.busname
5390 GENERAL_ALIASES += \
5391 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
5393 nodist_pkgsysconf_DATA += \
5394 src/resolve/resolved.conf
5397 src/resolve/resolved.conf.in
5400 src/resolve/resolved.conf
5405 test_dns_domain_SOURCES = \
5406 src/resolve/resolved-dns-domain.h \
5407 src/resolve/resolved-dns-domain.c \
5408 src/resolve/test-dns-domain.c
5410 test_dns_domain_LDADD = \
5411 libsystemd-network.la \
5412 libsystemd-label.la \
5413 libsystemd-internal.la \
5414 libsystemd-shared.la \
5417 libnss_resolve_la_SOURCES = \
5418 src/nss-resolve/nss-resolve.sym \
5419 src/nss-resolve/nss-resolve.c
5421 libnss_resolve_la_LDFLAGS = \
5428 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
5430 libnss_resolve_la_LIBADD = \
5431 libsystemd-internal.la \
5432 libsystemd-shared.la
5434 lib_LTLIBRARIES += \
5437 systemd_resolve_host_SOURCES = \
5438 src/resolve-host/resolve-host.c \
5439 src/resolve/resolved-dns-packet.c \
5440 src/resolve/resolved-dns-packet.h \
5441 src/resolve/resolved-dns-rr.c \
5442 src/resolve/resolved-dns-rr.h \
5443 src/resolve/resolved-dns-answer.c \
5444 src/resolve/resolved-dns-answer.h \
5445 src/resolve/resolved-dns-question.c \
5446 src/resolve/resolved-dns-question.h \
5447 src/resolve/resolved-dns-domain.c \
5448 src/resolve/resolved-dns-domain.h \
5449 src/resolve/dns-type.c \
5450 src/resolve/dns-type.h \
5451 src/resolve/dns_type-from-name.h \
5452 src/resolve/dns_type-to-name.h
5454 systemd_resolve_host_LDADD = \
5455 libsystemd-internal.la \
5456 libsystemd-shared.la \
5459 rootlibexec_PROGRAMS += \
5460 systemd-resolve-host
5464 # ------------------------------------------------------------------------------
5466 rootlibexec_PROGRAMS += \
5469 systemd_networkd_SOURCES = \
5470 src/network/networkd.c
5472 systemd_networkd_LDADD = \
5473 libsystemd-networkd-core.la
5476 systemd_networkd_LDADD += \
5480 noinst_LTLIBRARIES += \
5481 libsystemd-networkd-core.la
5483 libsystemd_networkd_core_la_CFLAGS = \
5486 libsystemd_networkd_core_la_SOURCES = \
5487 src/libsystemd-network/network-internal.h \
5488 src/network/networkd.h \
5489 src/network/networkd-link.h \
5490 src/network/networkd-netdev.h \
5491 src/network/networkd-netdev-tunnel.h \
5492 src/network/networkd-netdev-veth.h \
5493 src/network/networkd-netdev-vxlan.h \
5494 src/network/networkd-netdev-vlan.h \
5495 src/network/networkd-netdev-macvlan.h \
5496 src/network/networkd-netdev-ipvlan.h \
5497 src/network/networkd-netdev-dummy.h \
5498 src/network/networkd-netdev-tuntap.h \
5499 src/network/networkd-netdev-bond.h \
5500 src/network/networkd-netdev-bridge.h \
5501 src/network/networkd-netdev.c \
5502 src/network/networkd-netdev-tunnel.c \
5503 src/network/networkd-netdev-veth.c \
5504 src/network/networkd-netdev-vxlan.c \
5505 src/network/networkd-netdev-vlan.c \
5506 src/network/networkd-netdev-macvlan.c \
5507 src/network/networkd-netdev-ipvlan.c \
5508 src/network/networkd-netdev-dummy.c \
5509 src/network/networkd-netdev-tuntap.c \
5510 src/network/networkd-netdev-bond.c \
5511 src/network/networkd-netdev-bridge.c \
5512 src/network/networkd-link.c \
5513 src/network/networkd-ipv4ll.c \
5514 src/network/networkd-dhcp4.c \
5515 src/network/networkd-dhcp6.c \
5516 src/network/networkd-network.c \
5517 src/network/networkd-address.c \
5518 src/network/networkd-route.c \
5519 src/network/networkd-manager.c \
5520 src/network/networkd-fdb.c \
5521 src/network/networkd-address-pool.c
5523 nodist_libsystemd_networkd_core_la_SOURCES = \
5524 src/network/networkd-network-gperf.c \
5525 src/network/networkd-netdev-gperf.c
5527 libsystemd_networkd_core_la_LIBADD = \
5528 libudev-internal.la \
5529 libsystemd-internal.la \
5530 libsystemd-network.la \
5531 libsystemd-label.la \
5532 libsystemd-shared.la
5534 rootlibexec_PROGRAMS += \
5535 systemd-networkd-wait-online
5537 systemd_networkd_wait_online_CFLAGS = \
5540 systemd_networkd_wait_online_SOURCES = \
5541 src/libsystemd-network/network-internal.h \
5542 src/network/networkd-wait-online.h \
5543 src/network/networkd-wait-online-link.h \
5544 src/network/networkd-wait-online.c \
5545 src/network/networkd-wait-online-manager.c \
5546 src/network/networkd-wait-online-link.c
5548 systemd_networkd_wait_online_LDADD = \
5549 libsystemd-network.la \
5550 libudev-internal.la \
5551 libsystemd-internal.la \
5552 libsystemd-shared.la
5554 rootbin_PROGRAMS += \
5557 networkctl_SOURCES = \
5558 src/network/networkctl.c
5560 networkctl_LDADD = \
5561 libsystemd-internal.la \
5562 libudev-internal.la \
5563 libsystemd-shared.la \
5564 libsystemd-network.la
5566 test_network_SOURCES = \
5567 src/network/test-network.c
5569 test_network_LDADD = \
5570 libsystemd-networkd-core.la
5573 test_network_LDADD += \
5577 test_network_tables_SOURCES = \
5578 src/network/test-network-tables.c \
5579 src/shared/test-tables.h
5581 test_network_tables_LDADD = \
5582 libsystemd-networkd-core.la \
5586 test_network_tables_LDADD += \
5594 nodist_systemunit_DATA += \
5595 units/systemd-networkd.service \
5596 units/systemd-networkd-wait-online.service
5598 GENERAL_ALIASES += \
5599 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5600 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5603 src/network/networkd-network-gperf.gperf \
5604 src/network/networkd-netdev-gperf.gperf \
5605 units/systemd-networkd.service.in \
5606 units/systemd-networkd-wait-online.service.in
5609 src/network/networkd-network-gperf.c \
5610 src/network/networkd-netdev-gperf.c
5613 # ------------------------------------------------------------------------------
5615 systemd_logind_SOURCES = \
5616 src/login/logind.c \
5619 nodist_systemd_logind_SOURCES = \
5620 src/login/logind-gperf.c
5622 systemd_logind_LDADD = \
5623 libsystemd-logind-core.la
5625 libsystemd_logind_core_la_SOURCES = \
5626 src/login/logind-core.c \
5627 src/login/logind-device.c \
5628 src/login/logind-device.h \
5629 src/login/logind-button.c \
5630 src/login/logind-button.h \
5631 src/login/logind-action.c \
5632 src/login/logind-action.h \
5633 src/login/logind-seat.c \
5634 src/login/logind-seat.h \
5635 src/login/logind-session.c \
5636 src/login/logind-session.h \
5637 src/login/logind-session-device.c \
5638 src/login/logind-session-device.h \
5639 src/login/logind-user.c \
5640 src/login/logind-user.h \
5641 src/login/logind-inhibit.c \
5642 src/login/logind-inhibit.h \
5643 src/login/logind-dbus.c \
5644 src/login/logind-session-dbus.c \
5645 src/login/logind-seat-dbus.c \
5646 src/login/logind-user-dbus.c \
5647 src/login/logind-acl.h
5649 libsystemd_logind_core_la_LIBADD = \
5650 libsystemd-label.la \
5651 libsystemd-internal.la \
5652 libudev-internal.la \
5653 libsystemd-shared.la
5656 libsystemd_logind_core_la_SOURCES += \
5657 src/login/logind-acl.c
5659 libsystemd_logind_core_la_LIBADD += \
5663 noinst_LTLIBRARIES += \
5664 libsystemd-logind-core.la
5666 systemd_user_sessions_SOURCES = \
5667 src/login/user-sessions.c
5669 systemd_user_sessions_LDADD = \
5670 libsystemd-shared.la
5672 rootlibexec_PROGRAMS += \
5674 systemd-user-sessions
5676 loginctl_SOURCES = \
5677 src/login/loginctl.c \
5678 src/login/sysfs-show.h \
5679 src/login/sysfs-show.c
5682 libsystemd-internal.la \
5683 libsystemd-logs.la \
5684 libsystemd-journal-internal.la \
5685 libudev-internal.la \
5686 libsystemd-shared.la
5688 rootbin_PROGRAMS += \
5691 dist_bashcompletion_DATA += \
5692 shell-completion/bash/loginctl
5694 dist_zshcompletion_DATA += \
5695 shell-completion/zsh/_loginctl \
5696 shell-completion/zsh/_systemd-inhibit
5698 systemd_inhibit_SOURCES = \
5701 systemd_inhibit_LDADD = \
5702 libsystemd-internal.la \
5703 libsystemd-shared.la
5705 rootbin_PROGRAMS += \
5708 test_login_SOURCES = \
5709 src/libsystemd/sd-login/test-login.c
5711 test_login_LDADD = \
5712 libsystemd-internal.la \
5713 libsystemd-shared.la
5715 test_login_shared_SOURCES = \
5716 src/login/test-login-shared.c
5718 test_login_shared_LDADD = \
5719 libsystemd-internal.la \
5720 libsystemd-shared.la
5722 test_inhibit_SOURCES = \
5723 src/login/test-inhibit.c
5725 test_inhibit_LDADD = \
5726 libsystemd-internal.la \
5727 libsystemd-shared.la
5729 test_login_tables_SOURCES = \
5730 src/login/test-login-tables.c
5732 test_login_tables_LDADD = \
5733 libsystemd-logind-core.la
5744 pam_systemd_la_SOURCES = \
5745 src/login/pam_systemd.sym \
5746 src/login/pam_systemd.c
5748 pam_systemd_la_CFLAGS = \
5753 pam_systemd_la_LDFLAGS = \
5759 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5761 pam_systemd_la_LIBADD = \
5762 libsystemd-internal.la \
5763 libsystemd-shared.la \
5766 pamlib_LTLIBRARIES = \
5769 dist_pamconf_DATA = \
5770 src/login/systemd-user
5773 nodist_systemunit_DATA += \
5774 units/systemd-logind.service \
5775 units/systemd-user-sessions.service
5777 dist_systemunit_DATA += \
5780 dist_systemunit_DATA_busnames += \
5781 units/org.freedesktop.login1.busname
5783 dist_dbussystemservice_DATA += \
5784 src/login/org.freedesktop.login1.service
5786 dist_dbuspolicy_DATA += \
5787 src/login/org.freedesktop.login1.conf
5789 dist_pkgsysconf_DATA += \
5790 src/login/logind.conf
5792 polkitpolicy_files += \
5793 src/login/org.freedesktop.login1.policy
5798 MULTI_USER_TARGET_WANTS += \
5799 systemd-logind.service \
5800 systemd-user-sessions.service
5802 SYSTEM_UNIT_ALIASES += \
5803 systemd-logind.service dbus-org.freedesktop.login1.service
5805 BUSNAMES_TARGET_WANTS += \
5806 org.freedesktop.login1.busname
5808 dist_udevrules_DATA += \
5809 src/login/70-uaccess.rules \
5810 src/login/70-power-switch.rules
5812 nodist_udevrules_DATA += \
5813 src/login/71-seat.rules \
5814 src/login/73-seat-late.rules
5817 src/login/logind-gperf.c \
5818 src/login/71-seat.rules \
5819 src/login/73-seat-late.rules
5822 polkitpolicy_in_files += \
5823 src/login/org.freedesktop.login1.policy.in
5826 src/login/logind-gperf.gperf \
5827 src/login/71-seat.rules.in \
5828 src/login/73-seat-late.rules.in \
5829 units/systemd-logind.service.in \
5830 units/systemd-user-sessions.service.in
5832 # ------------------------------------------------------------------------------
5833 if HAVE_PYTHON_DEVEL
5834 pkgpyexec_LTLIBRARIES = \
5841 _journal_la_SOURCES = \
5842 src/python-systemd/_journal.c
5844 _journal_la_CFLAGS = \
5846 -fvisibility=default \
5847 $(PYTHON_DEVEL_CFLAGS)
5849 _journal_la_LDFLAGS = \
5855 _journal_la_LIBADD = \
5856 $(PYTHON_DEVEL_LIBS) \
5859 id128_la_SOURCES = \
5860 src/python-systemd/id128.c \
5861 src/python-systemd/pyutil.c \
5862 src/python-systemd/pyutil.h
5864 nodist_id128_la_SOURCES = \
5865 src/python-systemd/id128-constants.h
5869 -fvisibility=default \
5870 $(PYTHON_DEVEL_CFLAGS) \
5871 -I$(top_builddir)/src/python-systemd
5873 id128_la_LDFLAGS = \
5880 $(PYTHON_DEVEL_LIBS) \
5881 libsystemd-shared.la \
5884 _daemon_la_SOURCES = \
5885 src/python-systemd/_daemon.c \
5886 src/python-systemd/pyutil.c \
5887 src/python-systemd/pyutil.h
5889 _daemon_la_CFLAGS = \
5891 -fvisibility=default \
5892 $(PYTHON_DEVEL_CFLAGS) \
5893 -I$(top_builddir)/src/python-systemd
5895 _daemon_la_LDFLAGS = \
5901 _daemon_la_LIBADD = \
5902 $(PYTHON_DEVEL_LIBS) \
5903 libsystemd-shared.la \
5906 _reader_la_SOURCES = \
5907 src/python-systemd/_reader.c \
5908 src/python-systemd/pyutil.c \
5909 src/python-systemd/pyutil.h
5911 _reader_la_CFLAGS = \
5913 -fvisibility=default \
5914 $(PYTHON_DEVEL_CFLAGS)
5916 _reader_la_LDFLAGS = \
5922 _reader_la_LIBADD = \
5923 $(PYTHON_DEVEL_LIBS) \
5924 libsystemd-shared.la \
5927 login_la_SOURCES = \
5928 src/python-systemd/login.c \
5929 src/python-systemd/pyutil.c \
5930 src/python-systemd/pyutil.h
5934 -fvisibility=default \
5935 $(PYTHON_DEVEL_CFLAGS)
5937 login_la_LDFLAGS = \
5944 $(PYTHON_DEVEL_LIBS) \
5945 libsystemd-shared.la \
5948 dist_pkgpyexec_PYTHON = \
5949 src/python-systemd/journal.py \
5950 src/python-systemd/daemon.py \
5951 src/python-systemd/__init__.py
5953 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
5954 $(AM_V_at)$(MKDIR_P) $(dir $@)
5955 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
5958 src/python-systemd/id128-constants.h
5960 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
5962 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
5963 $(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/
5964 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
5967 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
5968 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
5971 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
5972 $(MAKE) DESTDIR="$$dir" install && \
5973 $(MAKE) DESTDIR="$$dir" sphinx-html && \
5978 CLEAN_LOCAL_HOOKS += clean-sphinx
5980 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
5983 -rm -rf docs/html/python-systemd/
5985 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
5987 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
5988 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
5990 # ------------------------------------------------------------------------------
5991 if ENABLE_COMPAT_LIBS
5993 src/compat-libs/linkwarning.h
5995 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
5996 $(AM_V_at)$(MKDIR_P) $(dir $@)
5997 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
6000 libsystemd-journal.c \
6001 libsystemd-login.c \
6002 libsystemd-id128.c \
6005 libsystemd_journal_la_SOURCES = \
6006 libsystemd-journal.c \
6007 src/compat-libs/libsystemd-journal.sym
6009 libsystemd_journal_la_CPPFLAGS = \
6011 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
6013 libsystemd_journal_la_LDFLAGS = \
6015 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
6016 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
6018 libsystemd_journal_la_LIBADD = \
6019 libsystemd-journal-internal.la \
6020 libsystemd-internal.la \
6021 libsystemd-shared.la
6023 libsystemd_login_la_SOURCES = \
6024 libsystemd-login.c \
6025 src/compat-libs/libsystemd-login.sym
6027 libsystemd_login_la_CPPFLAGS = \
6029 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
6031 libsystemd_login_la_LDFLAGS = \
6033 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
6034 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
6036 libsystemd_login_la_LIBADD = \
6037 libsystemd-internal.la \
6038 libsystemd-shared.la
6040 libsystemd_id128_la_SOURCES = \
6041 libsystemd-id128.c \
6042 src/compat-libs/libsystemd-id128.sym
6044 libsystemd_id128_la_CPPFLAGS = \
6046 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
6048 libsystemd_id128_la_LDFLAGS = \
6050 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
6051 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
6053 libsystemd_id128_la_LIBADD = \
6054 libsystemd-internal.la \
6055 libsystemd-shared.la
6057 libsystemd_daemon_la_SOURCES = \
6058 libsystemd-daemon.c \
6059 src/compat-libs/libsystemd-daemon.sym
6061 libsystemd_daemon_la_CPPFLAGS = \
6063 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
6065 libsystemd_daemon_la_LDFLAGS = \
6067 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
6068 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
6070 libsystemd_daemon_la_LIBADD = \
6071 libsystemd-internal.la \
6072 libsystemd-shared.la
6074 lib_LTLIBRARIES += \
6075 libsystemd-journal.la \
6076 libsystemd-login.la \
6077 libsystemd-id128.la \
6078 libsystemd-daemon.la
6080 pkgconfiglib_DATA += \
6081 src/compat-libs/libsystemd-journal.pc \
6082 src/compat-libs/libsystemd-login.pc \
6083 src/compat-libs/libsystemd-id128.pc \
6084 src/compat-libs/libsystemd-daemon.pc
6086 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
6087 compat-lib-install-hook:
6088 libname=libsystemd-login.so && $(move-to-rootlibdir)
6089 libname=libsystemd-journal.so && $(move-to-rootlibdir)
6090 libname=libsystemd-id128.so && $(move-to-rootlibdir)
6091 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
6093 compat-lib-uninstall-hook:
6094 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
6095 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
6096 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
6097 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
6099 INSTALL_EXEC_HOOKS += compat-lib-install-hook
6100 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
6104 src/compat-libs/libsystemd-journal.pc.in \
6105 src/compat-libs/libsystemd-login.pc.in \
6106 src/compat-libs/libsystemd-id128.pc.in \
6107 src/compat-libs/libsystemd-daemon.pc.in
6109 # ------------------------------------------------------------------------------
6111 '|rootlibexecdir=$(rootlibexecdir)|' \
6112 '|rootbindir=$(rootbindir)|' \
6113 '|bindir=$(bindir)|' \
6114 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
6115 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
6116 '|pkgsysconfdir=$(pkgsysconfdir)|' \
6117 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
6118 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
6119 '|pkgdatadir=$(pkgdatadir)|' \
6120 '|systemunitdir=$(systemunitdir)|' \
6121 '|userunitdir=$(userunitdir)|' \
6122 '|systempresetdir=$(systempresetdir)|' \
6123 '|userpresetdir=$(userpresetdir)|' \
6124 '|udevhwdbdir=$(udevhwdbdir)|' \
6125 '|udevrulesdir=$(udevrulesdir)|' \
6126 '|catalogdir=$(catalogdir)|' \
6127 '|tmpfilesdir=$(tmpfilesdir)|' \
6128 '|sysusersdir=$(sysusersdir)|' \
6129 '|sysctldir=$(sysctldir)|' \
6130 '|systemgeneratordir=$(systemgeneratordir)|' \
6131 '|usergeneratordir=$(usergeneratordir)|' \
6132 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
6133 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
6134 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
6135 '|PACKAGE_URL=$(PACKAGE_URL)|' \
6136 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
6137 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
6138 '|prefix=$(prefix)|' \
6139 '|exec_prefix=$(exec_prefix)|' \
6140 '|libdir=$(libdir)|' \
6141 '|includedir=$(includedir)|' \
6142 '|VERSION=$(VERSION)|' \
6143 '|rootprefix=$(rootprefix)|' \
6144 '|udevlibexecdir=$(udevlibexecdir)|' \
6145 '|SUSHELL=$(SUSHELL)|' \
6146 '|DEBUGTTY=$(DEBUGTTY)|' \
6149 '|MKDIR_P=$(MKDIR_P)|' \
6150 '|QUOTAON=$(QUOTAON)|' \
6151 '|QUOTACHECK=$(QUOTACHECK)|' \
6152 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
6153 '|VARLOGDIR=$(varlogdir)|' \
6154 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
6155 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
6156 '|PYTHON=$(PYTHON)|' \
6157 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
6158 '|NTP_SERVERS=$(NTP_SERVERS)|' \
6159 '|DNS_SERVERS=$(DNS_SERVERS)|' \
6160 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
6161 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
6162 '|TTY_GID=$(TTY_GID)|' \
6163 '|systemsleepdir=$(systemsleepdir)|' \
6164 '|systemshutdowndir=$(systemshutdowndir)|' \
6165 '|binfmtdir=$(binfmtdir)|' \
6166 '|modulesloaddir=$(modulesloaddir)|'
6169 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
6170 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
6179 sysctl.d/%: sysctl.d/%.in
6188 src/core/macros.%: src/core/macros.%.in
6191 src/%.policy.in: src/%.policy.in.in
6194 shell-completion/%: shell-completion/%.in
6205 $(AM_V_GEN)chmod +x $@
6207 src/%.c: src/%.gperf
6208 $(AM_V_at)$(MKDIR_P) $(dir $@)
6209 $(AM_V_GPERF)$(GPERF) < $< > $@
6212 $(AM_V_at)$(MKDIR_P) $(dir $@)
6213 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6215 sysusers.d/%: sysusers.d/%.m4
6216 $(AM_V_at)$(MKDIR_P) $(dir $@)
6217 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6219 tmpfiles.d/%: tmpfiles.d/%.m4
6220 $(AM_V_at)$(MKDIR_P) $(dir $@)
6221 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6225 $(AM_V_at)$(MKDIR_P) $(dir $@)
6226 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
6228 units/user/%: units/user/%.m4
6229 $(AM_V_at)$(MKDIR_P) $(dir $@)
6230 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
6233 nodist_polkitpolicy_DATA = \
6234 $(polkitpolicy_files) \
6235 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
6239 $(polkitpolicy_in_files) \
6240 $(polkitpolicy_in_in_files)
6243 $(nodist_systemunit_DATA) \
6244 $(nodist_userunit_DATA) \
6245 $(pkgconfiglib_DATA) \
6246 $(nodist_polkitpolicy_DATA)
6248 # ------------------------------------------------------------------------------
6250 man/custom-entities.ent: configure.ac
6251 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
6252 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
6253 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
6257 man/custom-entities.ent
6262 --stringparam man.output.quietly 1 \
6263 --stringparam funcsynopsis.style ansi \
6264 --stringparam man.authors.section.enabled 0 \
6265 --stringparam man.copyright.section.enabled 0 \
6266 --stringparam systemd.version $(VERSION) \
6267 --path '$(builddir)/man:$(srcdir)/man'
6269 XSLTPROC_PROCESS_MAN = \
6270 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
6272 XSLTPROC_PROCESS_HTML = \
6273 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
6275 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
6276 $(XSLTPROC_PROCESS_MAN)
6278 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
6279 $(XSLTPROC_PROCESS_MAN)
6281 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
6282 $(XSLTPROC_PROCESS_MAN)
6284 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
6285 $(XSLTPROC_PROCESS_MAN)
6287 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
6288 $(XSLTPROC_PROCESS_MAN)
6290 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
6291 $(XSLTPROC_PROCESS_HTML)
6294 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
6300 man/custom-html.xsl \
6303 # ------------------------------------------------------------------------------
6306 docs/sysvinit/README
6311 docs/sysvinit/README: docs/sysvinit/README.in
6314 docs/var-log/README: docs/var-log/README.in
6318 docs/sysvinit/README \
6323 docs/sysvinit/README.in \
6324 docs/var-log/README.in
6326 SOCKETS_TARGET_WANTS += \
6327 systemd-initctl.socket \
6328 systemd-shutdownd.socket
6332 RUNLEVEL1_TARGET_WANTS += \
6333 systemd-update-utmp-runlevel.service
6334 RUNLEVEL2_TARGET_WANTS += \
6335 systemd-update-utmp-runlevel.service
6336 RUNLEVEL3_TARGET_WANTS += \
6337 systemd-update-utmp-runlevel.service
6338 RUNLEVEL4_TARGET_WANTS += \
6339 systemd-update-utmp-runlevel.service
6340 RUNLEVEL5_TARGET_WANTS += \
6341 systemd-update-utmp-runlevel.service
6344 SYSINIT_TARGET_WANTS += \
6345 systemd-update-utmp.service
6348 SYSINIT_TARGET_WANTS += \
6349 systemd-update-done.service
6351 LOCAL_FS_TARGET_WANTS += \
6352 systemd-remount-fs.service \
6355 MULTI_USER_TARGET_WANTS += \
6357 systemd-ask-password-wall.path
6359 SYSINIT_TARGET_WANTS += \
6360 dev-hugepages.mount \
6362 sys-kernel-config.mount \
6363 sys-kernel-debug.mount \
6364 sys-fs-fuse-connections.mount \
6365 systemd-sysctl.service \
6366 systemd-ask-password-console.path
6369 SYSTEM_UNIT_ALIASES += \
6370 poweroff.target runlevel0.target \
6371 rescue.target runlevel1.target \
6372 multi-user.target runlevel2.target \
6373 multi-user.target runlevel3.target \
6374 multi-user.target runlevel4.target \
6375 graphical.target runlevel5.target \
6376 reboot.target runlevel6.target
6379 SYSTEM_UNIT_ALIASES += \
6380 graphical.target default.target \
6381 reboot.target ctrl-alt-del.target \
6382 getty@.service autovt@.service
6384 USER_UNIT_ALIASES += \
6385 $(systemunitdir)/shutdown.target shutdown.target \
6386 $(systemunitdir)/sockets.target sockets.target \
6387 $(systemunitdir)/timers.target timers.target \
6388 $(systemunitdir)/paths.target paths.target \
6389 $(systemunitdir)/bluetooth.target bluetooth.target \
6390 $(systemunitdir)/printer.target printer.target \
6391 $(systemunitdir)/sound.target sound.target \
6392 $(systemunitdir)/smartcard.target smartcard.target
6395 USER_UNIT_ALIASES += \
6396 $(systemunitdir)/busnames.target busnames.target
6399 GENERAL_ALIASES += \
6400 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
6401 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
6402 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
6403 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
6407 $(systemunitdir)/runlevel1.target.wants \
6408 $(systemunitdir)/runlevel2.target.wants \
6409 $(systemunitdir)/runlevel3.target.wants \
6410 $(systemunitdir)/runlevel4.target.wants \
6411 $(systemunitdir)/runlevel5.target.wants
6415 $(prefix)/lib/modules-load.d \
6416 $(sysconfdir)/modules-load.d \
6417 $(prefix)/lib/systemd/network \
6418 $(sysconfdir)/systemd/network \
6419 $(prefix)/lib/sysctl.d \
6420 $(sysconfdir)/sysctl.d \
6421 $(prefix)/lib/kernel/install.d \
6422 $(sysconfdir)/kernel/install.d \
6423 $(systemshutdowndir) \
6425 $(systemgeneratordir) \
6426 $(usergeneratordir) \
6429 $(pkgsysconfdir)/system \
6430 $(pkgsysconfdir)/system/multi-user.target.wants \
6431 $(pkgsysconfdir)/system/getty.target.wants \
6432 $(pkgsysconfdir)/user \
6433 $(dbussessionservicedir) \
6434 $(sysconfdir)/xdg/systemd
6436 install-exec-hook: $(INSTALL_EXEC_HOOKS)
6438 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
6440 install-data-hook: $(INSTALL_DATA_HOOKS)
6442 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
6444 clean-local: $(CLEAN_LOCAL_HOOKS)
6445 rm -rf $(abs_srcdir)/install-tree
6446 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
6447 $(abs_srcdir)/hwdb/iab.txt
6449 DISTCHECK_CONFIGURE_FLAGS = \
6450 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
6451 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6452 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
6453 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
6454 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
6455 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
6456 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
6457 --with-rootprefix=$$dc_install_base \
6458 --disable-split-usr \
6460 --enable-compat-libs
6463 DISTCHECK_CONFIGURE_FLAGS += \
6464 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
6465 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
6467 DISTCHECK_CONFIGURE_FLAGS += \
6468 --with-sysvinit-path= \
6469 --with-sysvrcnd-path=
6473 DISTCHECK_CONFIGURE_FLAGS += \
6478 DISTCHECK_CONFIGURE_FLAGS += \
6483 # Require python when making dist
6485 .PHONY: dist-check-python
6488 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
6492 dist-check-compat-libs:
6493 if !ENABLE_COMPAT_LIBS
6494 @echo "*** compat-libs must be enabled in order to make dist"
6498 dist: dist-check-python dist-check-compat-libs
6500 # check "broken" platforms limited toolchains for link breakage before we release
6503 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
6507 ( cd $(top_srcdir)/hwdb && \
6508 wget -N http://www.linux-usb.org/usb.ids \
6509 http://pci-ids.ucw.cz/v2.2/pci.ids \
6510 http://standards.ieee.org/develop/regauth/oui/oui.txt \
6511 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
6514 .PHONY: kdbus-update
6516 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
6517 wget -N https://d-bus.googlecode.com/git/kdbus.h )
6521 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6523 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6525 upload: all check dist
6526 scp systemd-$(VERSION).tar.xz $(www_target)
6529 doc-sync: all destdir-sphinx
6530 gtkdoc-rebase --html-dir=docs/libudev/html --online
6531 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
6532 gtkdoc-rebase --html-dir=docs/gudev/html --online
6533 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
6534 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6535 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
6539 scp man/*.html gardel:public/systemd-man/
6541 .PHONY: lennart-fedora
6543 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
6545 .PHONY: install-tree
6547 rm -rf $(abs_srcdir)/install-tree
6548 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6549 tree $(abs_srcdir)/install-tree
6551 # Let's run all tests of the test suite, but under valgrind. Let's
6552 # exclude the one perl script we have in there
6553 .PHONY: valgrind-tests
6554 valgrind-tests: $(TESTS)
6555 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
6556 if file $$f | grep -q shell; then \
6557 echo -e "$${x}Skipping non-binary $$f"; else \
6558 echo -e "$${x}Running $$f"; \
6559 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6564 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6566 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6567 $(AM_V_GEN)cat $^ > $@
6569 .PHONY: check-api-docs
6570 check-api-docs: exported man
6571 $(AM_V_GEN)for symbol in `cat exported` ; do \
6572 if test -f $(builddir)/man/$$symbol.html ; then \
6573 echo " Symbol $$symbol() is documented." ; \
6575 echo "‣ Symbol $$symbol() lacks documentation." ; \
6579 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6580 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6582 undefined defined: $(ALL_OBJECTS)
6583 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6584 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6585 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6591 .PHONY: check-api-unused
6592 check-api-unused: defined undefined exported
6593 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6595 .PHONY: check-includes
6596 check-includes: $(top_srcdir)/tools/check-includes.pl
6597 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6598 | xargs $(top_srcdir)/tools/check-includes.pl
6601 $(top_srcdir)/tools/check-includes.pl
6603 # Stupid test that everything purported to be exported really is
6604 define generate-sym-test
6605 $(AM_V_at)$(MKDIR_P) $(dir $@)
6606 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6607 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6608 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6609 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6610 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6611 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6612 $(AM_V_at)printf 'return 0; }\n' >> $@
6615 test-libsystemd-sym.c: \
6616 $(top_builddir)/src/libsystemd/libsystemd.sym \
6617 src/systemd/sd-journal.h \
6618 src/systemd/sd-daemon.h \
6619 src/systemd/sd-login.h \
6620 src/systemd/sd-bus.h \
6621 src/systemd/sd-utf8.h \
6622 src/systemd/sd-resolve.h \
6623 src/systemd/sd-path.h
6624 $(generate-sym-test)
6626 test-libudev-sym.c: \
6627 src/libudev/libudev.sym \
6629 $(generate-sym-test)
6631 test_libsystemd_sym_SOURCES = \
6632 test-libsystemd-sym.c
6633 test_libsystemd_sym_LDADD = \
6636 test_libudev_sym_SOURCES = \
6638 test_libudev_sym_CFLAGS = \
6640 -Wno-deprecated-declarations
6641 test_libudev_sym_LDADD = \
6645 $(test_libsystemd_sym_SOURCES) \
6646 $(test_libudev_sym_SOURCES)
6649 test-libsystemd-sym \
6654 cppcheck --enable=all -q $(top_srcdir)
6656 # Used to extract compile flags for YCM.
6661 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u
6664 tools/gdb-sd_dump_hashmaps.py