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
29 # remove targets if the command fails
32 # keep intermediate files
35 # Keep the test-suite.log
36 .PRECIOUS: $(TEST_SUITE_LOG) Makefile
50 # The following four libraries only exist for compatibility reasons,
51 # their version info should not be bumped anymore
52 LIBSYSTEMD_LOGIN_CURRENT=9
53 LIBSYSTEMD_LOGIN_REVISION=3
54 LIBSYSTEMD_LOGIN_AGE=9
56 LIBSYSTEMD_DAEMON_CURRENT=0
57 LIBSYSTEMD_DAEMON_REVISION=12
58 LIBSYSTEMD_DAEMON_AGE=0
60 LIBSYSTEMD_ID128_CURRENT=0
61 LIBSYSTEMD_ID128_REVISION=28
62 LIBSYSTEMD_ID128_AGE=0
64 LIBSYSTEMD_JOURNAL_CURRENT=11
65 LIBSYSTEMD_JOURNAL_REVISION=5
66 LIBSYSTEMD_JOURNAL_AGE=11
68 # Dirs of external packages
69 dbuspolicydir=@dbuspolicydir@
70 dbussessionservicedir=@dbussessionservicedir@
71 dbussystemservicedir=@dbussystemservicedir@
73 pamconfdir=@pamconfdir@
74 pkgconfigdatadir=$(datadir)/pkgconfig
75 pkgconfiglibdir=$(libdir)/pkgconfig
76 polkitpolicydir=$(datadir)/polkit-1/actions
77 bashcompletiondir=@bashcompletiondir@
78 zshcompletiondir=@zshcompletiondir@
79 rpmmacrosdir=$(prefix)/lib/rpm/macros.d
80 sysvinitdir=$(SYSTEM_SYSVINIT_PATH)
81 sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
82 varlogdir=$(localstatedir)/log
83 systemdstatedir=$(localstatedir)/lib/systemd
84 catalogstatedir=$(systemdstatedir)/catalog
86 # Our own, non-special dirs
87 pkgsysconfdir=$(sysconfdir)/systemd
88 userunitdir=$(prefix)/lib/systemd/user
89 userpresetdir=$(prefix)/lib/systemd/user-preset
90 tmpfilesdir=$(prefix)/lib/tmpfiles.d
91 sysusersdir=$(prefix)/lib/sysusers.d
92 sysctldir=$(prefix)/lib/sysctl.d
93 binfmtdir=$(prefix)/lib/binfmt.d
94 modulesloaddir=$(prefix)/lib/modules-load.d
95 networkdir=$(rootprefix)/lib/systemd/network
96 pkgincludedir=$(includedir)/systemd
97 systemgeneratordir=$(rootlibexecdir)/system-generators
98 usergeneratordir=$(prefix)/lib/systemd/user-generators
99 systemshutdowndir=$(rootlibexecdir)/system-shutdown
100 systemsleepdir=$(rootlibexecdir)/system-sleep
101 systemunitdir=$(rootprefix)/lib/systemd/system
102 systempresetdir=$(rootprefix)/lib/systemd/system-preset
103 udevlibexecdir=$(rootprefix)/lib/udev
104 udevhomedir=$(udevlibexecdir)
105 udevrulesdir=$(udevlibexecdir)/rules.d
106 udevhwdbdir=$(udevlibexecdir)/hwdb.d
107 catalogdir=$(prefix)/lib/systemd/catalog
108 kernelinstalldir = $(prefix)/lib/kernel/install.d
109 factory_etcdir = $(prefix)/share/factory/etc
110 factory_pamdir = $(prefix)/share/factory/etc/pam.d
112 # And these are the special ones for /
113 rootprefix=@rootprefix@
114 rootbindir=$(rootprefix)/bin
115 rootlibexecdir=$(rootprefix)/lib/systemd
117 CLEANFILES = $(BUILT_SOURCES)
122 UNINSTALL_EXEC_HOOKS =
124 UNINSTALL_DATA_HOOKS =
125 DISTCLEAN_LOCAL_HOOKS =
133 polkitpolicy_in_in_files =
134 polkitpolicy_in_files =
136 dist_udevrules_DATA =
137 nodist_udevrules_DATA =
138 dist_pkgsysconf_DATA =
139 nodist_pkgsysconf_DATA =
141 dist_dbuspolicy_DATA =
142 dist_dbussystemservice_DATA =
148 noinst_PROGRAMS = $(manual_tests) $(tests)
154 udevlibexec_PROGRAMS =
156 .PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \
157 $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \
158 $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS)
161 -include $(top_builddir)/config.h \
162 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
163 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
164 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
165 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
166 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
167 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
168 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
169 -DCERTIFICATE_ROOT=\"$(CERTIFICATEROOT)\" \
170 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
171 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
172 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
173 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
174 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
175 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
176 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
177 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
178 -DROOTPREFIX=\"$(rootprefix)\" \
179 -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \
180 -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
181 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
182 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
183 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
184 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
185 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
186 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
187 -DX_SERVER=\"$(bindir)/X\" \
188 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
189 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
190 -DQUOTACHECK=\"$(QUOTACHECK)\" \
191 -DKEXEC=\"$(KEXEC)\" \
192 -DLIBDIR=\"$(libdir)\" \
193 -DROOTLIBDIR=\"$(rootlibdir)\" \
194 -DTEST_DIR=\"$(abs_top_srcdir)/test\" \
195 -I $(top_srcdir)/src \
196 -I $(top_builddir)/src/shared \
197 -I $(top_srcdir)/src/shared \
198 -I $(top_srcdir)/src/network \
199 -I $(top_srcdir)/src/login \
200 -I $(top_srcdir)/src/journal \
201 -I $(top_srcdir)/src/timedate \
202 -I $(top_srcdir)/src/timesync \
203 -I $(top_srcdir)/src/resolve \
204 -I $(top_builddir)/src/resolve \
205 -I $(top_srcdir)/src/systemd \
206 -I $(top_builddir)/src/core \
207 -I $(top_srcdir)/src/core \
208 -I $(top_srcdir)/src/libudev \
209 -I $(top_srcdir)/src/udev \
210 -I $(top_srcdir)/src/udev/net \
211 -I $(top_builddir)/src/udev \
212 -I $(top_srcdir)/src/libsystemd/sd-bus \
213 -I $(top_srcdir)/src/libsystemd/sd-event \
214 -I $(top_srcdir)/src/libsystemd/sd-rtnl \
215 -I $(top_srcdir)/src/libsystemd/sd-network \
216 -I $(top_srcdir)/src/libsystemd-network \
217 -I $(top_srcdir)/src/libsystemd-terminal \
220 AM_CFLAGS = $(OUR_CFLAGS)
221 AM_LDFLAGS = $(OUR_LDFLAGS)
223 # ------------------------------------------------------------------------------
224 define move-to-rootlibdir
225 if test "$(libdir)" != "$(rootlibdir)"; then \
226 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
227 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
228 rm -f $(DESTDIR)$(libdir)/$$libname && \
229 $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
230 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
236 RUNLEVEL1_TARGET_WANTS =
237 RUNLEVEL2_TARGET_WANTS =
238 RUNLEVEL3_TARGET_WANTS =
239 RUNLEVEL4_TARGET_WANTS =
240 RUNLEVEL5_TARGET_WANTS =
241 SHUTDOWN_TARGET_WANTS =
242 LOCAL_FS_TARGET_WANTS =
243 MULTI_USER_TARGET_WANTS =
244 SYSINIT_TARGET_WANTS =
245 SOCKETS_TARGET_WANTS =
246 BUSNAMES_TARGET_WANTS =
247 TIMERS_TARGET_WANTS =
248 USER_SOCKETS_TARGET_WANTS =
249 USER_BUSNAMES_TARGET_WANTS =
251 SYSTEM_UNIT_ALIASES =
255 install-target-wants-hook:
256 what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && dir=$(systemunitdir) && $(add-wants)
257 what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && dir=$(systemunitdir) && $(add-wants)
258 what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && dir=$(systemunitdir) && $(add-wants)
259 what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && dir=$(systemunitdir) && $(add-wants)
260 what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && dir=$(systemunitdir) && $(add-wants)
261 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
262 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
263 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
264 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
265 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
266 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
267 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
268 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
269 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
270 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
273 [ -z "$$what" ] || ( \
274 dir=$(DESTDIR)$$dir/$$wants.wants && \
275 $(MKDIR_P) -m 0755 $$dir && \
278 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
281 install-directories-hook:
282 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
284 install-aliases-hook:
285 set -- $(SYSTEM_UNIT_ALIASES) && \
286 dir=$(systemunitdir) && $(install-aliases)
287 set -- $(USER_UNIT_ALIASES) && \
288 dir=$(userunitdir) && $(install-relative-aliases)
289 set -- $(GENERAL_ALIASES) && \
290 dir= && $(install-relative-aliases)
292 define install-aliases
293 while [ -n "$$1" ]; do \
294 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
295 rm -f $(DESTDIR)$$dir/$$2 && \
296 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
297 shift 2 || exit $$?; \
301 define install-relative-aliases
302 while [ -n "$$1" ]; do \
303 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
304 rm -f $(DESTDIR)$$dir/$$2 && \
305 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
306 shift 2 || exit $$?; \
310 install-touch-usr-hook:
311 touch -c $(DESTDIR)/$(prefix)
313 INSTALL_EXEC_HOOKS += \
314 install-target-wants-hook \
315 install-directories-hook \
316 install-aliases-hook \
317 install-touch-usr-hook
319 # ------------------------------------------------------------------------------
320 AM_V_M4 = $(AM_V_M4_$(V))
321 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
322 AM_V_M4_0 = @echo " M4 " $@;
324 AM_V_XSLT = $(AM_V_XSLT_$(V))
325 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
326 AM_V_XSLT_0 = @echo " XSLT " $@;
328 AM_V_GPERF = $(AM_V_GPERF_$(V))
329 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
330 AM_V_GPERF_0 = @echo " GPERF " $@;
332 AM_V_LN = $(AM_V_LN_$(V))
333 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
334 AM_V_LN_0 = @echo " LN " $@;
336 AM_V_RM = $(AM_V_RM_$(V))
337 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
338 AM_V_RM_0 = @echo " RM " $@;
340 # ------------------------------------------------------------------------------
344 systemd-ask-password \
345 systemd-tty-ask-password-agent \
346 systemd-machine-id-setup \
353 systemd-detect-virt \
360 src/kernel-install/kernel-install
362 dist_kernelinstall_SCRIPTS = \
363 src/kernel-install/50-depmod.install \
364 src/kernel-install/90-loaderentry.install
366 rootlibexec_PROGRAMS = \
368 systemd-cgroups-agent \
370 systemd-update-utmp \
374 systemd-reply-password \
380 systemd-socket-proxyd \
383 systemgenerator_PROGRAMS = \
384 systemd-getty-generator \
385 systemd-fstab-generator \
386 systemd-system-update-generator \
387 systemd-debug-generator
389 dist_bashcompletion_DATA = \
390 shell-completion/bash/busctl \
391 shell-completion/bash/journalctl \
392 shell-completion/bash/systemd-analyze \
393 shell-completion/bash/systemd-cat \
394 shell-completion/bash/systemd-cgls \
395 shell-completion/bash/systemd-cgtop \
396 shell-completion/bash/systemd-delta \
397 shell-completion/bash/systemd-detect-virt \
398 shell-completion/bash/systemd-nspawn \
399 shell-completion/bash/systemd-run \
400 shell-completion/bash/udevadm \
401 shell-completion/bash/kernel-install
403 nodist_bashcompletion_DATA = \
404 shell-completion/bash/systemctl
406 dist_zshcompletion_DATA = \
407 shell-completion/zsh/_journalctl \
408 shell-completion/zsh/_udevadm \
409 shell-completion/zsh/_kernel-install \
410 shell-completion/zsh/_systemd-nspawn \
411 shell-completion/zsh/_systemd-analyze \
412 shell-completion/zsh/_systemd-run \
413 shell-completion/zsh/_sd_hosts_or_user_at_host \
414 shell-completion/zsh/_sd_outputmodes \
415 shell-completion/zsh/_sd_unit_files \
416 shell-completion/zsh/_systemd-delta \
417 shell-completion/zsh/_systemd
419 nodist_zshcompletion_DATA = \
420 shell-completion/zsh/_systemctl
423 shell-completion/bash/systemctl.in \
424 shell-completion/zsh/_systemctl.in
427 $(nodist_bashcompletion_DATA) \
428 $(nodist_zshcompletion_DATA)
431 sysctl.d/50-default.conf
433 dist_systemunit_DATA = \
434 units/graphical.target \
435 units/multi-user.target \
436 units/emergency.target \
437 units/sysinit.target \
442 units/local-fs.target \
443 units/local-fs-pre.target \
444 units/initrd.target \
445 units/initrd-fs.target \
446 units/initrd-root-fs.target \
447 units/remote-fs.target \
448 units/remote-fs-pre.target \
449 units/network.target \
450 units/network-pre.target \
451 units/network-online.target \
452 units/nss-lookup.target \
453 units/nss-user-lookup.target \
454 units/hibernate.target \
455 units/hybrid-sleep.target \
456 units/poweroff.target \
457 units/reboot.target \
458 units/rescue.target \
459 units/rpcbind.target \
460 units/time-sync.target \
461 units/shutdown.target \
463 units/umount.target \
464 units/sigpwr.target \
466 units/sockets.target \
467 units/busnames.target \
468 units/timers.target \
470 units/suspend.target \
472 units/slices.target \
475 units/systemd-initctl.socket \
476 units/systemd-shutdownd.socket \
477 units/syslog.socket \
478 units/dev-hugepages.mount \
479 units/dev-mqueue.mount \
480 units/sys-kernel-config.mount \
481 units/sys-kernel-debug.mount \
482 units/sys-fs-fuse-connections.mount \
484 units/printer.target \
486 units/bluetooth.target \
487 units/smartcard.target \
488 units/systemd-ask-password-wall.path \
489 units/systemd-ask-password-console.path \
490 units/systemd-udevd-control.socket \
491 units/systemd-udevd-kernel.socket \
492 units/system-update.target \
493 units/initrd-switch-root.target
495 nodist_systemunit_DATA = \
496 units/getty@.service \
497 units/serial-getty@.service \
498 units/console-shell.service \
499 units/console-getty.service \
500 units/container-getty@.service \
501 units/systemd-initctl.service \
502 units/systemd-shutdownd.service \
503 units/systemd-remount-fs.service \
504 units/systemd-update-utmp.service \
505 units/systemd-update-utmp-runlevel.service \
506 units/systemd-ask-password-wall.service \
507 units/systemd-ask-password-console.service \
508 units/systemd-sysctl.service \
509 units/emergency.service \
510 units/rescue.service \
511 units/user@.service \
512 units/systemd-hibernate.service \
513 units/systemd-hybrid-sleep.service \
514 units/systemd-suspend.service \
515 units/systemd-halt.service \
516 units/systemd-poweroff.service \
517 units/systemd-reboot.service \
518 units/systemd-kexec.service \
519 units/systemd-fsck@.service \
520 units/systemd-fsck-root.service \
521 units/systemd-udevd.service \
522 units/systemd-udev-trigger.service \
523 units/systemd-udev-settle.service \
524 units/systemd-udev-hwdb-update.service \
525 units/debug-shell.service \
526 units/initrd-parse-etc.service \
527 units/initrd-cleanup.service \
528 units/initrd-udevadm-cleanup-db.service \
529 units/initrd-switch-root.service \
530 units/systemd-nspawn@.service \
531 units/systemd-update-done.service
533 dist_userunit_DATA = \
534 units/user/basic.target \
535 units/user/default.target \
536 units/user/exit.target
538 nodist_userunit_DATA = \
539 units/user/systemd-exit.service
541 dist_systempreset_DATA = \
542 system-preset/90-systemd.preset
545 units/getty@.service.m4 \
546 units/serial-getty@.service.m4 \
547 units/console-shell.service.m4.in \
548 units/console-getty.service.m4.in \
549 units/container-getty@.service.m4.in \
550 units/rescue.service.m4.in \
551 units/systemd-initctl.service.in \
552 units/systemd-shutdownd.service.in \
553 units/systemd-remount-fs.service.in \
554 units/systemd-update-utmp.service.in \
555 units/systemd-update-utmp-runlevel.service.in \
556 units/systemd-ask-password-wall.service.in \
557 units/systemd-ask-password-console.service.in \
558 units/systemd-sysctl.service.in \
559 units/emergency.service.in \
560 units/systemd-halt.service.in \
561 units/systemd-poweroff.service.in \
562 units/systemd-reboot.service.in \
563 units/systemd-kexec.service.in \
564 units/user/systemd-exit.service.in \
565 units/systemd-fsck@.service.in \
566 units/systemd-fsck-root.service.in \
567 units/user@.service.in \
568 units/debug-shell.service.in \
569 units/systemd-hibernate.service.in \
570 units/systemd-hybrid-sleep.service.in \
571 units/systemd-suspend.service.in \
572 units/quotaon.service.in \
573 units/initrd-parse-etc.service.in \
574 units/initrd-cleanup.service.in \
575 units/initrd-udevadm-cleanup-db.service.in \
576 units/initrd-switch-root.service.in \
577 units/systemd-nspawn@.service.in \
578 units/systemd-update-done.service.in
581 units/console-shell.service.m4 \
582 units/console-getty.service.m4 \
583 units/container-getty@.service.m4 \
584 units/rescue.service.m4 \
585 units/user@.service.m4
588 nodist_systemunit_DATA += \
589 units/rc-local.service \
590 units/halt-local.service
592 systemgenerator_PROGRAMS += \
593 systemd-sysv-generator \
594 systemd-rc-local-generator
598 units/rc-local.service.in \
599 units/halt-local.service.in
601 # automake is broken and can't handle files with a dash in front
602 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
604 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
606 units-uninstall-hook:
607 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
609 INSTALL_DATA_HOOKS += units-install-hook
610 UNINSTALL_DATA_HOOKS += units-uninstall-hook
619 src/libsystemd/sd-bus/PORTING-DBUS1 \
620 src/libsystemd/sd-bus/DIFFERENCES \
621 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
623 @INTLTOOL_POLICY_RULE@
625 # ------------------------------------------------------------------------------
630 include Makefile-man.am
632 .PHONY: man update-man-list
633 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
636 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
638 ${XML_FILES:.xml=.html}
640 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
657 $(AM_V_at)$(MKDIR_P) $(dir $@)
658 $(AM_V_LN)$(LN_S) -f ../../man $@
667 man/index.html: man/systemd.index.html
668 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
676 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
677 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
678 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
680 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB)
681 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
682 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
683 @echo "Makefile-man.am has been regenerated"
685 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
686 $(AM_V_at)$(MKDIR_P) $(dir $@)
687 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
689 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py $(SOURCE_XML_FILES)
690 $(AM_V_at)$(MKDIR_P) $(dir $@)
691 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
694 man/systemd.index.xml \
696 man/systemd.directives.xml
699 man/systemd.index.xml \
700 man/systemd.directives.xml
711 tools/make-man-index.py \
712 tools/make-directive-index.py \
713 tools/make-man-rules.py \
716 # ------------------------------------------------------------------------------
717 noinst_LTLIBRARIES += \
720 libsystemd_shared_la_SOURCES = \
721 src/shared/linux/auto_dev-ioctl.h \
722 src/shared/linux/fanotify.h \
723 src/shared/ioprio.h \
724 src/shared/missing.h \
725 src/shared/initreq.h \
726 src/shared/securebits.h \
727 src/shared/special.h \
731 src/shared/sparse-endian.h \
732 src/shared/refcnt.h \
733 src/shared/udev-util.h \
734 src/shared/bus-errors.h \
735 src/shared/device-nodes.c \
736 src/shared/device-nodes.h \
741 src/shared/architecture.c \
742 src/shared/architecture.h \
743 src/shared/efivars.c \
744 src/shared/efivars.h \
745 src/shared/path-util.c \
746 src/shared/path-util.h \
747 src/shared/time-util.c \
748 src/shared/time-util.h \
749 src/shared/locale-util.c \
750 src/shared/locale-util.h \
751 src/shared/hashmap.c \
752 src/shared/hashmap.h \
753 src/shared/siphash24.c \
754 src/shared/siphash24.h \
761 src/shared/sleep-config.c \
762 src/shared/sleep-config.h \
765 src/shared/env-util.c \
766 src/shared/env-util.h \
767 src/shared/strbuf.c \
768 src/shared/strbuf.h \
769 src/shared/strxcpyx.c \
770 src/shared/strxcpyx.h \
771 src/shared/conf-parser.c \
772 src/shared/conf-parser.h \
775 src/shared/ratelimit.h \
776 src/shared/ratelimit.c \
777 src/shared/exit-status.c \
778 src/shared/exit-status.h \
781 src/shared/gunicode.c \
782 src/shared/gunicode.h \
785 src/shared/socket-util.c \
786 src/shared/socket-util.h \
787 src/shared/in-addr-util.c \
788 src/shared/in-addr-util.h \
789 src/shared/conf-files.c \
790 src/shared/conf-files.h \
791 src/shared/cgroup-util.c \
792 src/shared/cgroup-util.h \
793 src/shared/cgroup-show.c \
794 src/shared/cgroup-show.h \
795 src/shared/unit-name.c \
796 src/shared/unit-name.h \
797 src/shared/utmp-wtmp.c \
798 src/shared/utmp-wtmp.h \
799 src/shared/watchdog.c \
800 src/shared/watchdog.h \
801 src/shared/spawn-ask-password-agent.c \
802 src/shared/spawn-ask-password-agent.h \
803 src/shared/replace-var.c \
804 src/shared/replace-var.h \
805 src/shared/spawn-polkit-agent.c \
806 src/shared/spawn-polkit-agent.h \
807 src/shared/clock-util.c \
808 src/shared/clock-util.h \
809 src/shared/time-dst.c \
810 src/shared/time-dst.h \
811 src/shared/calendarspec.c \
812 src/shared/calendarspec.h \
813 src/shared/fileio.c \
814 src/shared/fileio.h \
815 src/shared/output-mode.h \
816 src/shared/MurmurHash2.c \
817 src/shared/MurmurHash2.h \
818 src/shared/acpi-fpdt.h \
819 src/shared/acpi-fpdt.c \
820 src/shared/boot-timestamps.h \
821 src/shared/boot-timestamps.c \
824 src/shared/smack-util.c \
825 src/shared/smack-util.h \
826 src/shared/apparmor-util.c \
827 src/shared/apparmor-util.h \
828 src/shared/ima-util.c \
829 src/shared/ima-util.h \
830 src/shared/ptyfwd.c \
831 src/shared/ptyfwd.h \
832 src/shared/errno-list.c \
833 src/shared/errno-list.h \
834 src/shared/af-list.c \
835 src/shared/af-list.h \
836 src/shared/arphrd-list.c \
837 src/shared/arphrd-list.h \
842 src/shared/condition-util.c \
843 src/shared/condition-util.h \
844 src/shared/bus-label.c \
845 src/shared/bus-label.h \
847 src/shared/clean-ipc.h \
848 src/shared/clean-ipc.c \
849 src/shared/login-shared.c \
850 src/shared/login-shared.h \
853 src/shared/barrier.c \
854 src/shared/barrier.h \
861 src/shared/base-filesystem.c \
862 src/shared/base-filesystem.h \
865 src/shared/nss-util.h
867 nodist_libsystemd_shared_la_SOURCES = \
868 src/shared/errno-from-name.h \
869 src/shared/errno-to-name.h \
870 src/shared/af-from-name.h \
871 src/shared/af-to-name.h \
872 src/shared/arphrd-from-name.h \
873 src/shared/arphrd-to-name.h
875 libsystemd_shared_la_CFLAGS = \
880 # ------------------------------------------------------------------------------
881 noinst_LTLIBRARIES += \
884 libsystemd_units_la_SOURCES = \
885 src/shared/install.c \
886 src/shared/install.h \
887 src/shared/install-printf.c \
888 src/shared/install-printf.h \
889 src/shared/path-lookup.c \
890 src/shared/path-lookup.h \
891 src/shared/specifier.c \
892 src/shared/specifier.h
894 # ------------------------------------------------------------------------------
895 noinst_LTLIBRARIES += \
898 libsystemd_label_la_SOURCES = \
899 src/shared/socket-label.c \
902 src/shared/selinux-util.c \
903 src/shared/selinux-util.h \
904 src/shared/mkdir-label.c \
905 src/shared/ask-password-api.c \
906 src/shared/ask-password-api.h \
907 src/shared/fileio-label.c \
908 src/shared/fileio-label.h \
909 src/shared/dev-setup.c \
910 src/shared/dev-setup.h \
911 src/shared/dropin.c \
912 src/shared/dropin.h \
913 src/shared/generator.h \
914 src/shared/generator.c
916 libsystemd_label_la_CFLAGS = \
920 libsystemd_label_la_LIBADD = \
923 # -----------------------------------------------------------------------------
926 dist_systemunit_DATA += \
927 units/ldconfig.service
929 SYSINIT_TARGET_WANTS += \
933 # ------------------------------------------------------------------------------
936 noinst_LTLIBRARIES += \
937 libsystemd-seccomp.la
939 libsystemd_seccomp_la_SOURCES = \
940 src/shared/seccomp-util.h \
941 src/shared/seccomp-util.c
943 libsystemd_seccomp_la_CFLAGS = \
947 libsystemd_seccomp_la_LIBADD = \
951 # ------------------------------------------------------------------------------
952 noinst_LTLIBRARIES += \
955 libsystemd_logs_la_SOURCES = \
956 src/shared/logs-show.c \
957 src/shared/logs-show.h
959 # ------------------------------------------------------------------------------
960 noinst_LTLIBRARIES += \
961 libsystemd-capability.la
963 libsystemd_capability_la_SOURCES = \
964 src/shared/capability.c \
965 src/shared/capability.h
967 libsystemd_capability_la_CFLAGS = \
971 libsystemd_capability_la_LIBADD = \
974 # ------------------------------------------------------------------------------
976 noinst_LTLIBRARIES += \
979 libsystemd_acl_la_SOURCES = \
980 src/shared/acl-util.c \
981 src/shared/acl-util.h
983 libsystemd_acl_la_CFLAGS = \
987 libsystemd_acl_la_LIBADD = \
991 # ------------------------------------------------------------------------------
992 noinst_LTLIBRARIES += \
995 libsystemd_core_la_SOURCES = \
998 src/core/unit-printf.c \
999 src/core/unit-printf.h \
1002 src/core/manager.c \
1003 src/core/manager.h \
1004 src/core/transaction.c \
1005 src/core/transaction.h \
1006 src/core/load-fragment.c \
1007 src/core/load-fragment.h \
1008 src/core/service.c \
1009 src/core/service.h \
1012 src/core/busname.c \
1013 src/core/busname.h \
1016 src/core/snapshot.c \
1017 src/core/snapshot.h \
1022 src/core/automount.c \
1023 src/core/automount.h \
1034 src/core/load-dropin.c \
1035 src/core/load-dropin.h \
1036 src/core/execute.c \
1037 src/core/execute.h \
1042 src/core/dbus-manager.c \
1043 src/core/dbus-manager.h \
1044 src/core/dbus-unit.c \
1045 src/core/dbus-unit.h \
1046 src/core/dbus-job.c \
1047 src/core/dbus-job.h \
1048 src/core/dbus-service.c \
1049 src/core/dbus-service.h \
1050 src/core/dbus-socket.c \
1051 src/core/dbus-socket.h \
1052 src/core/dbus-busname.c \
1053 src/core/dbus-busname.h \
1054 src/core/dbus-target.c \
1055 src/core/dbus-target.h \
1056 src/core/dbus-snapshot.c \
1057 src/core/dbus-snapshot.h \
1058 src/core/dbus-device.c \
1059 src/core/dbus-device.h \
1060 src/core/dbus-mount.c \
1061 src/core/dbus-mount.h \
1062 src/core/dbus-automount.c \
1063 src/core/dbus-automount.h \
1064 src/core/dbus-swap.c \
1065 src/core/dbus-swap.h \
1066 src/core/dbus-timer.c \
1067 src/core/dbus-timer.h \
1068 src/core/dbus-path.c \
1069 src/core/dbus-path.h \
1070 src/core/dbus-slice.c \
1071 src/core/dbus-slice.h \
1072 src/core/dbus-scope.c \
1073 src/core/dbus-scope.h \
1074 src/core/dbus-execute.c \
1075 src/core/dbus-execute.h \
1076 src/core/dbus-kill.c \
1077 src/core/dbus-kill.h \
1078 src/core/dbus-cgroup.c \
1079 src/core/dbus-cgroup.h \
1082 src/core/selinux-access.c \
1083 src/core/selinux-access.h \
1084 src/core/selinux-setup.c \
1085 src/core/selinux-setup.h \
1086 src/core/smack-setup.c \
1087 src/core/smack-setup.h \
1088 src/core/ima-setup.c \
1089 src/core/ima-setup.h \
1090 src/core/locale-setup.h \
1091 src/core/locale-setup.c \
1092 src/core/hostname-setup.c \
1093 src/core/hostname-setup.h \
1094 src/core/machine-id-setup.c \
1095 src/core/machine-id-setup.h \
1096 src/core/mount-setup.c \
1097 src/core/mount-setup.h \
1098 src/core/loopback-setup.h \
1099 src/core/loopback-setup.c \
1100 src/core/condition.c \
1101 src/core/condition.h \
1102 src/core/namespace.c \
1103 src/core/namespace.h \
1105 src/core/sysfs-show.h \
1106 src/core/switch-root.h \
1107 src/core/switch-root.c \
1108 src/core/killall.h \
1109 src/core/killall.c \
1110 src/core/audit-fd.c \
1111 src/core/audit-fd.h \
1112 src/core/show-status.c \
1113 src/core/show-status.h
1116 libsystemd_core_la_SOURCES += \
1117 src/core/kmod-setup.c \
1118 src/core/kmod-setup.h
1121 nodist_libsystemd_core_la_SOURCES = \
1122 src/core/load-fragment-gperf.c \
1123 src/core/load-fragment-gperf-nulstr.c
1125 libsystemd_core_la_CFLAGS = \
1131 $(APPARMOR_CFLAGS) \
1135 libsystemd_core_la_LIBADD = \
1136 libsystemd-capability.la \
1137 libsystemd-units.la \
1138 libsystemd-label.la \
1139 libudev-internal.la \
1140 libsystemd-shared.la \
1141 libsystemd-internal.la \
1150 libsystemd_core_la_LIBADD += \
1151 libsystemd-seccomp.la
1154 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1155 $(AM_V_at)$(MKDIR_P) $(dir $@)
1156 $(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 ";" }' < $< > $@
1159 src/core/load-fragment-gperf.gperf.m4
1162 src/core/load-fragment-gperf.gperf \
1163 src/core/load-fragment-gperf.c \
1164 src/core/load-fragment-gperf-nulstr.c \
1165 src/shared/errno-list.txt \
1166 src/shared/errno-from-name.gperf \
1167 src/shared/af-list.txt \
1168 src/shared/af-from-name.gperf \
1169 src/shared/arphrd-list.txt \
1170 src/shared/arphrd-from-name.gperf \
1171 src/shared/dns_type-list.txt \
1172 src/shared/dns_type-from-name.gperf
1175 src/shared/errno-from-name.h \
1176 src/shared/errno-to-name.h \
1177 src/shared/af-from-name.h \
1178 src/shared/af-to-name.h \
1179 src/shared/arphrd-from-name.h \
1180 src/shared/arphrd-to-name.h \
1181 src/resolve/dns_type-from-name.h \
1182 src/resolve/dns_type-to-name.h
1184 %-from-name.gperf: %-list.txt
1185 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1187 %-from-name.h: %-from-name.gperf
1188 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1191 src/shared/errno-list.txt:
1192 $(AM_V_at)$(MKDIR_P) $(dir $@)
1193 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1195 src/shared/errno-to-name.h: src/shared/errno-list.txt
1196 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1199 src/shared/af-list.txt:
1200 $(AM_V_at)$(MKDIR_P) $(dir $@)
1201 $(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; }' >$@
1203 src/shared/af-to-name.h: src/shared/af-list.txt
1204 $(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 "};"}' <$< >$@
1206 src/shared/arphrd-list.txt:
1207 $(AM_V_at)$(MKDIR_P) $(dir $@)
1208 $(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_//' >$@
1210 src/shared/arphrd-to-name.h: src/shared/arphrd-list.txt
1211 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1213 src/shared/arphrd-from-name.gperf: src/shared/arphrd-list.txt
1214 $(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 }' <$< >$@
1217 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1218 $(AM_V_at)$(MKDIR_P) $(dir $@)
1219 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1221 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1222 $(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" }' <$< >$@
1224 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1225 $(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 }' <$< >$@
1227 # ------------------------------------------------------------------------------
1236 libsystemd-core.la \
1239 dist_pkgsysconf_DATA += \
1240 src/core/system.conf \
1243 dist_dbuspolicy_DATA += \
1244 src/core/org.freedesktop.systemd1.conf
1246 dist_dbussystemservice_DATA += \
1247 src/core/org.freedesktop.systemd1.service
1249 polkitpolicy_in_in_files += \
1250 src/core/org.freedesktop.systemd1.policy.in.in
1252 pkgconfigdata_DATA = \
1255 nodist_rpmmacros_DATA = \
1256 src/core/macros.systemd
1259 src/core/systemd.pc.in \
1260 src/core/macros.systemd.in
1263 src/core/macros.systemd \
1264 src/core/org.freedesktop.systemd1.policy.in
1266 # ------------------------------------------------------------------------------
1308 test-strip-tab-ansi \
1331 test/daughter.service \
1336 test/grandchild.service \
1338 test/hello-after-sleep.target \
1339 test/hello.service \
1341 test/parent-deep.slice \
1344 test/sched_idle_bad.service \
1345 test/sched_idle_ok.service \
1346 test/sched_rr_bad.service \
1347 test/sched_rr_change.service \
1348 test/sched_rr_ok.service \
1349 test/shutdown.target \
1350 test/sleep.service \
1351 test/sockets.target \
1353 test/sysinit.target \
1354 test/testsuite.target \
1355 test/timers.target \
1356 test/unstoppable.service
1359 src/test/test-helper.h
1361 test_device_nodes_SOURCES = \
1362 src/test/test-device-nodes.c
1364 test_device_nodes_LDADD = \
1365 libsystemd-shared.la
1367 test_engine_SOURCES = \
1368 src/test/test-engine.c
1370 test_engine_CFLAGS = \
1374 test_engine_LDADD = \
1375 libsystemd-core.la \
1378 test_job_type_SOURCES = \
1379 src/test/test-job-type.c
1381 test_job_type_CFLAGS = \
1385 test_job_type_LDADD = \
1386 libsystemd-core.la \
1399 test_loopback_SOURCES = \
1400 src/test/test-loopback.c
1402 test_loopback_LDADD = \
1405 test_hostname_SOURCES = \
1406 src/test/test-hostname.c
1408 test_hostname_LDADD = \
1415 test_boot_timestamp_SOURCES = \
1416 src/test/test-boot-timestamps.c
1418 test_boot_timestamp_LDADD = \
1419 libsystemd-shared.la
1422 test_unit_name_SOURCES = \
1423 src/test/test-unit-name.c
1425 test_unit_name_CFLAGS = \
1429 test_unit_name_LDADD = \
1430 libsystemd-core.la \
1433 test_unit_file_SOURCES = \
1434 src/test/test-unit-file.c
1436 test_unit_file_CFLAGS = \
1440 test_unit_file_LDADD = \
1441 libsystemd-core.la \
1444 test_utf8_SOURCES = \
1445 src/test/test-utf8.c
1448 libsystemd-shared.la
1450 test_capability_SOURCES = \
1451 src/test/test-capability.c
1453 test_capability_LDADD = \
1454 libsystemd-shared.la \
1455 libsystemd-capability.la
1457 test_async_SOURCES = \
1458 src/test/test-async.c
1460 test_async_LDADD = \
1461 libsystemd-shared.la
1463 test_fdset_SOURCES = \
1464 src/test/test-fdset.c
1466 test_fdset_LDADD = \
1469 test_ratelimit_SOURCES = \
1470 src/test/test-ratelimit.c
1472 test_ratelimit_LDADD = \
1473 libsystemd-shared.la
1475 test_util_SOURCES = \
1476 src/test/test-util.c
1481 test_socket_util_SOURCES = \
1482 src/test/test-socket-util.c
1484 test_socket_util_LDADD = \
1487 test_ring_SOURCES = \
1488 src/test/test-ring.c
1493 test_barrier_SOURCES = \
1494 src/test/test-barrier.c
1496 test_barrier_LDADD = \
1499 test_pty_SOURCES = \
1505 test_tmpfiles_SOURCES = \
1506 src/test/test-tmpfiles.c
1508 test_tmpfiles_LDADD = \
1509 libsystemd-shared.la
1511 test_namespace_SOURCES = \
1512 src/test/test-namespace.c
1514 test_namespace_LDADD = \
1517 test_hashmap_SOURCES = \
1518 src/test/test-hashmap.c
1520 test_hashmap_LDADD = \
1523 test_xml_SOURCES = \
1527 libsystemd-shared.la
1529 test_list_SOURCES = \
1530 src/test/test-list.c
1535 test_tables_SOURCES = \
1536 src/test/test-tables.c \
1537 src/shared/test-tables.h \
1538 src/bus-proxyd/bus-policy.c \
1539 src/bus-proxyd/bus-policy.h \
1540 src/journal/journald-server.c \
1541 src/journal/journald-server.h
1543 test_tables_CPPFLAGS = \
1545 -I$(top_srcdir)/src/bus-proxyd
1547 test_tables_CFLAGS = \
1551 test_tables_LDADD = \
1552 libsystemd-logs.la \
1553 libsystemd-journal-internal.la \
1554 libsystemd-journal-core.la \
1555 libsystemd-core.la \
1559 test_prioq_SOURCES = \
1560 src/test/test-prioq.c
1562 test_prioq_LDADD = \
1565 test_fileio_SOURCES = \
1566 src/test/test-fileio.c
1568 test_fileio_LDADD = \
1571 test_time_SOURCES = \
1572 src/test/test-time.c
1577 test_architecture_SOURCES = \
1578 src/test/test-architecture.c
1580 test_architecture_LDADD = \
1581 libsystemd-shared.la
1583 test_log_SOURCES = \
1589 test_ipcrm_SOURCES = \
1590 src/test/test-ipcrm.c
1592 test_ipcrm_LDADD = \
1593 libsystemd-shared.la \
1596 test_rtnl_manual_SOURCES = \
1597 src/test/test-rtnl-manual.c
1599 test_rtnl_manual_CFLAGS = \
1603 test_rtnl_manual_LDADD = \
1604 libsystemd-internal.la \
1605 libsystemd-shared.la \
1608 test_ellipsize_SOURCES = \
1609 src/test/test-ellipsize.c
1611 test_ellipsize_LDADD = \
1614 test_date_SOURCES = \
1615 src/test/test-date.c
1620 test_sleep_SOURCES = \
1621 src/test/test-sleep.c
1623 test_sleep_LDADD = \
1626 test_replace_var_SOURCES = \
1627 src/test/test-replace-var.c
1629 test_replace_var_LDADD = \
1630 libsystemd-shared.la
1632 test_calendarspec_SOURCES = \
1633 src/test/test-calendarspec.c
1635 test_calendarspec_LDADD = \
1636 libsystemd-shared.la
1638 test_strip_tab_ansi_SOURCES = \
1639 src/test/test-strip-tab-ansi.c
1641 test_strip_tab_ansi_LDADD = \
1642 libsystemd-shared.la
1644 test_daemon_SOURCES = \
1645 src/test/test-daemon.c
1647 test_daemon_LDADD = \
1648 libsystemd-internal.la \
1649 libsystemd-shared.la
1651 test_cgroup_SOURCES = \
1652 src/test/test-cgroup.c
1654 test_cgroup_LDADD = \
1655 libsystemd-label.la \
1656 libsystemd-shared.la \
1657 libsystemd-internal.la
1659 test_cgroup_mask_SOURCES = \
1660 src/test/test-cgroup-mask.c
1662 test_cgroup_mask_CPPFLAGS = \
1664 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1666 test_cgroup_mask_CFLAGS = \
1670 test_cgroup_mask_LDADD = \
1671 libsystemd-core.la \
1674 test_cgroup_util_SOURCES = \
1675 src/test/test-cgroup-util.c
1677 test_cgroup_util_LDADD = \
1678 libsystemd-label.la \
1679 libsystemd-internal.la \
1680 libsystemd-shared.la
1682 test_env_replace_SOURCES = \
1683 src/test/test-env-replace.c
1685 test_env_replace_LDADD = \
1686 libsystemd-shared.la
1688 test_strbuf_SOURCES = \
1689 src/test/test-strbuf.c
1691 test_strbuf_LDADD = \
1692 libsystemd-shared.la
1694 test_strv_SOURCES = \
1695 src/test/test-strv.c
1698 libsystemd-units.la \
1699 libsystemd-internal.la \
1700 libsystemd-shared.la
1702 test_path_util_SOURCES = \
1703 src/test/test-path-util.c
1705 test_path_util_LDADD = \
1706 libsystemd-shared.la
1708 test_strxcpyx_SOURCES = \
1709 src/test/test-strxcpyx.c
1711 test_strxcpyx_LDADD = \
1712 libsystemd-shared.la
1714 test_install_SOURCES = \
1715 src/test/test-install.c
1717 test_install_LDADD = \
1718 libsystemd-units.la \
1719 libsystemd-label.la \
1720 libsystemd-shared.la \
1721 libsystemd-internal.la
1723 test_watchdog_SOURCES = \
1724 src/test/test-watchdog.c
1726 test_watchdog_LDADD = \
1727 libsystemd-shared.la
1729 test_sched_prio_SOURCES = \
1730 src/test/test-sched-prio.c
1732 test_sched_prio_CPPFLAGS = \
1734 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1736 test_sched_prio_CFLAGS = \
1740 test_sched_prio_LDADD = \
1741 libsystemd-core.la \
1744 test_conf_files_SOURCES = \
1745 src/test/test-conf-files.c
1747 test_conf_files_LDADD = \
1748 libsystemd-shared.la
1750 # ------------------------------------------------------------------------------
1751 ## .PHONY so it always rebuilds it
1752 .PHONY: coverage lcov-run lcov-report coverage-sync
1754 # run lcov from scratch, always
1759 coverage_dir = coverage
1760 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1763 # reset run coverage tests
1765 @rm -rf $(coverage_dir)
1766 lcov $(coverage_opts) --zerocounters
1769 # generate report based on current coverage data
1771 $(MKDIR_P) $(coverage_dir)
1772 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1773 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1774 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1775 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1777 # lcov doesn't work properly with vpath builds, make sure that bad
1778 # output is not uploaded by mistake.
1779 coverage-sync: coverage
1780 test "$(builddir)" = "$(srcdir)"
1781 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1784 lcov-run lcov-report:
1785 echo "Need to reconfigure with --enable-coverage"
1788 # ------------------------------------------------------------------------------
1789 systemd_analyze_SOURCES = \
1790 src/analyze/analyze.c \
1791 src/analyze/analyze-verify.c \
1792 src/analyze/analyze-verify.h
1794 systemd_verify_CFLAGS = \
1798 systemd_analyze_LDADD = \
1799 libsystemd-core.la \
1800 libsystemd-internal.la \
1801 libsystemd-shared.la \
1804 # ------------------------------------------------------------------------------
1805 systemd_initctl_SOURCES = \
1806 src/initctl/initctl.c
1808 systemd_initctl_LDADD = \
1809 libsystemd-internal.la \
1810 libsystemd-shared.la
1812 # ------------------------------------------------------------------------------
1813 systemd_update_utmp_SOURCES = \
1814 src/update-utmp/update-utmp.c
1816 systemd_update_utmp_CFLAGS = \
1820 systemd_update_utmp_LDADD = \
1821 libsystemd-internal.la \
1822 libsystemd-shared.la \
1825 # ------------------------------------------------------------------------------
1826 systemd_update_done_SOURCES = \
1827 src/update-done/update-done.c
1829 systemd_update_done_LDADD = \
1830 libsystemd-internal.la \
1831 libsystemd-label.la \
1832 libsystemd-shared.la
1834 # ------------------------------------------------------------------------------
1835 systemd_shutdownd_SOURCES = \
1836 src/shutdownd/shutdownd.c
1838 systemd_shutdownd_LDADD = \
1839 libsystemd-label.la \
1840 libsystemd-internal.la \
1841 libsystemd-shared.la
1844 src/systemd/sd-shutdown.h
1846 # ------------------------------------------------------------------------------
1847 systemd_shutdown_SOURCES = \
1850 src/core/shutdown.c \
1851 src/core/mount-setup.c \
1852 src/core/mount-setup.h \
1853 src/core/killall.h \
1856 systemd_shutdown_LDADD = \
1857 libsystemd-label.la \
1858 libudev-internal.la \
1859 libsystemd-shared.la
1861 # ------------------------------------------------------------------------------
1863 systemd_modules_load_SOURCES = \
1864 src/modules-load/modules-load.c
1866 systemd_modules_load_CFLAGS = \
1870 systemd_modules_load_LDADD = \
1871 libsystemd-shared.la \
1874 rootlibexec_PROGRAMS += \
1875 systemd-modules-load
1877 nodist_systemunit_DATA += \
1878 units/systemd-modules-load.service
1880 SYSINIT_TARGET_WANTS += \
1881 systemd-modules-load.service
1884 nodist_systemunit_DATA += \
1885 units/kmod-static-nodes.service
1887 SYSINIT_TARGET_WANTS += \
1888 kmod-static-nodes.service
1893 units/systemd-modules-load.service.in \
1894 units/kmod-static-nodes.service.in
1896 # ------------------------------------------------------------------------------
1898 systemd_tmpfiles_SOURCES = \
1899 src/tmpfiles/tmpfiles.c
1901 systemd_tmpfiles_LDADD = \
1902 libsystemd-units.la \
1903 libsystemd-label.la \
1904 libsystemd-capability.la \
1905 libsystemd-internal.la \
1906 libsystemd-shared.la
1908 rootbin_PROGRAMS += \
1911 dist_systemunit_DATA += \
1912 units/systemd-tmpfiles-clean.timer
1914 nodist_systemunit_DATA += \
1915 units/systemd-tmpfiles-setup-dev.service \
1916 units/systemd-tmpfiles-setup.service \
1917 units/systemd-tmpfiles-clean.service
1919 dist_tmpfiles_DATA = \
1920 tmpfiles.d/systemd.conf \
1921 tmpfiles.d/systemd-nologin.conf \
1922 tmpfiles.d/systemd-remote.conf \
1923 tmpfiles.d/tmp.conf \
1924 tmpfiles.d/x11.conf \
1925 tmpfiles.d/var.conf \
1929 dist_tmpfiles_DATA += \
1930 tmpfiles.d/legacy.conf
1933 SYSINIT_TARGET_WANTS += \
1934 systemd-tmpfiles-setup-dev.service \
1935 systemd-tmpfiles-setup.service
1937 dist_zshcompletion_DATA += \
1938 shell-completion/zsh/_systemd-tmpfiles
1940 TIMERS_TARGET_WANTS += \
1941 systemd-tmpfiles-clean.timer
1945 $(sysconfdir)/tmpfiles.d
1949 units/systemd-tmpfiles-setup-dev.service.in \
1950 units/systemd-tmpfiles-setup.service.in \
1951 units/systemd-tmpfiles-clean.service.in
1953 # ------------------------------------------------------------------------------
1955 systemd_sysusers_SOURCES = \
1956 src/sysusers/sysusers.c
1958 systemd_sysusers_LDADD = \
1959 libsystemd-units.la \
1960 libsystemd-label.la \
1961 libsystemd-capability.la \
1962 libsystemd-internal.la \
1963 libsystemd-shared.la
1965 rootbin_PROGRAMS += \
1968 nodist_systemunit_DATA += \
1969 units/systemd-sysusers.service
1971 SYSINIT_TARGET_WANTS += \
1972 systemd-sysusers.service
1974 dist_sysusers_DATA = \
1975 sysusers.d/systemd.conf \
1976 sysusers.d/systemd-remote.conf
1978 nodist_sysusers_DATA = \
1979 sysusers.d/basic.conf
1982 units/systemd-sysusers.service.in \
1983 sysusers.d/basic.conf.in
1986 sysusers.d/basic.conf
1992 # ------------------------------------------------------------------------------
1993 dist_factory_etc_DATA = \
1994 factory/etc/nsswitch.conf
1996 dist_factory_pam_DATA = \
1997 factory/etc/pam.d/system-auth \
1998 factory/etc/pam.d/other
2000 # ------------------------------------------------------------------------------
2002 systemd_firstboot_SOURCES = \
2003 src/firstboot/firstboot.c
2005 systemd_firstboot_LDADD = \
2006 libsystemd-units.la \
2007 libsystemd-label.la \
2008 libsystemd-capability.la \
2009 libsystemd-internal.la \
2010 libsystemd-shared.la \
2013 rootbin_PROGRAMS += \
2016 nodist_systemunit_DATA += \
2017 units/systemd-firstboot.service
2020 units/systemd-firstboot.service.in
2022 SYSINIT_TARGET_WANTS += \
2023 systemd-firstboot.service
2026 # ------------------------------------------------------------------------------
2027 systemd_machine_id_setup_SOURCES = \
2028 src/machine-id-setup/machine-id-setup-main.c \
2029 src/core/machine-id-setup.c \
2030 src/core/machine-id-setup.h
2032 systemd_machine_id_setup_LDADD = \
2033 libsystemd-label.la \
2034 libsystemd-internal.la \
2035 libsystemd-shared.la
2037 # ------------------------------------------------------------------------------
2038 systemd_sysctl_SOURCES = \
2041 systemd_sysctl_LDADD = \
2042 libsystemd-shared.la
2044 # ------------------------------------------------------------------------------
2045 systemd_sleep_SOURCES = \
2048 systemd_sleep_LDADD = \
2049 libsystemd-shared.la
2051 # ------------------------------------------------------------------------------
2052 systemd_fsck_SOURCES = \
2055 systemd_fsck_LDADD = \
2056 libsystemd-internal.la \
2057 libudev-internal.la \
2058 libsystemd-shared.la
2060 # ------------------------------------------------------------------------------
2061 systemd_ac_power_SOURCES = \
2062 src/ac-power/ac-power.c
2064 systemd_ac_power_LDADD = \
2065 libudev-internal.la \
2066 libsystemd-shared.la
2068 # ------------------------------------------------------------------------------
2069 systemd_detect_virt_SOURCES = \
2070 src/detect-virt/detect-virt.c
2072 systemd_detect_virt_LDADD = \
2073 libsystemd-shared.la
2075 INSTALL_EXEC_HOOKS += \
2076 systemd-detect-virt-install-hook
2078 # ------------------------------------------------------------------------------
2079 systemd_delta_SOURCES = \
2082 systemd_delta_LDADD = \
2083 libsystemd-shared.la
2085 # ------------------------------------------------------------------------------
2086 systemd_getty_generator_SOURCES = \
2087 src/getty-generator/getty-generator.c
2089 systemd_getty_generator_LDADD = \
2090 libsystemd-label.la \
2091 libsystemd-shared.la
2093 # ------------------------------------------------------------------------------
2094 systemd_debug_generator_SOURCES = \
2095 src/debug-generator/debug-generator.c
2097 systemd_debug_generator_LDADD = \
2098 libsystemd-label.la \
2099 libsystemd-shared.la
2101 # ------------------------------------------------------------------------------
2102 systemd_fstab_generator_SOURCES = \
2103 src/fstab-generator/fstab-generator.c \
2104 src/core/mount-setup.c
2106 systemd_fstab_generator_LDADD = \
2107 libsystemd-label.la \
2108 libsystemd-shared.la
2110 # ------------------------------------------------------------------------------
2111 systemd_system_update_generator_SOURCES = \
2112 src/system-update-generator/system-update-generator.c
2114 systemd_system_update_generator_LDADD = \
2115 libsystemd-label.la \
2116 libsystemd-shared.la
2119 # ------------------------------------------------------------------------------
2120 systemgenerator_PROGRAMS += \
2121 systemd-efi-boot-generator
2123 systemd_efi_boot_generator_SOURCES = \
2124 src/efi-boot-generator/efi-boot-generator.c
2126 systemd_efi_boot_generator_LDADD = \
2127 libsystemd-label.la \
2128 libsystemd-shared.la
2130 # ------------------------------------------------------------------------------
2133 src/boot/boot-loader.h \
2134 src/boot/bootctl.c \
2135 src/boot/boot-loader.c \
2139 libsystemd-shared.la \
2140 libsystemd-internal.la
2145 dist_bashcompletion_DATA += \
2146 shell-completion/bash/bootctl
2148 dist_zshcompletion_DATA += \
2149 shell-completion/zsh/_bootctl
2153 # ------------------------------------------------------------------------------
2155 systemgenerator_PROGRAMS += \
2156 systemd-gpt-auto-generator
2158 systemd_gpt_auto_generator_SOURCES = \
2159 src/gpt-auto-generator/gpt-auto-generator.c \
2160 src/shared/blkid-util.h
2162 systemd_gpt_auto_generator_LDADD = \
2163 libsystemd-label.la \
2164 libsystemd-internal.la \
2165 libudev-internal.la \
2166 libsystemd-shared.la \
2169 systemd_gpt_auto_generator_CFLAGS = \
2174 # ------------------------------------------------------------------------------
2176 systemgenerator_PROGRAMS += \
2177 systemd-dbus1-generator
2179 systemd_dbus1_generator_SOURCES = \
2180 src/dbus1-generator/dbus1-generator.c
2182 systemd_dbus1_generator_LDADD = \
2183 libsystemd-label.la \
2184 libsystemd-shared.la \
2185 libsystemd-internal.la
2187 dbus1-generator-install-hook:
2188 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2189 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2190 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2192 dbus1-generator-uninstall-hook:
2193 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2195 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2196 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2199 # ------------------------------------------------------------------------------
2200 systemd_sysv_generator_SOURCES = \
2201 src/sysv-generator/sysv-generator.c
2203 systemd_sysv_generator_LDADD = \
2204 libsystemd-core.la \
2205 libsystemd-label.la \
2206 libsystemd-shared.la
2208 # ------------------------------------------------------------------------------
2209 systemd_rc_local_generator_SOURCES = \
2210 src/rc-local-generator/rc-local-generator.c
2212 systemd_rc_local_generator_LDADD = \
2213 libsystemd-label.la \
2214 libsystemd-shared.la
2216 # ------------------------------------------------------------------------------
2217 systemd_remount_fs_SOURCES = \
2218 src/remount-fs/remount-fs.c \
2219 src/core/mount-setup.c \
2220 src/core/mount-setup.h
2222 systemd_remount_fs_LDADD = \
2223 libsystemd-label.la \
2224 libsystemd-shared.la
2226 # ------------------------------------------------------------------------------
2227 systemd_cgroups_agent_SOURCES = \
2228 src/cgroups-agent/cgroups-agent.c
2230 systemd_cgroups_agent_LDADD = \
2231 libsystemd-internal.la \
2232 libsystemd-shared.la
2234 # ------------------------------------------------------------------------------
2235 systemd_escape_SOURCES = \
2238 systemd_escape_LDADD = \
2239 libsystemd-shared.la
2241 # -----------------------------------------------------------------------------
2242 systemctl_SOURCES = \
2243 src/systemctl/systemctl.c
2246 libsystemd-units.la \
2247 libsystemd-label.la \
2248 libsystemd-internal.la \
2249 libsystemd-logs.la \
2250 libsystemd-journal-internal.la \
2251 libsystemd-shared.la
2253 # ------------------------------------------------------------------------------
2254 systemd_notify_SOURCES = \
2255 src/notify/notify.c \
2256 src/readahead/sd-readahead.c
2258 systemd_notify_LDADD = \
2259 libsystemd-internal.la \
2260 libsystemd-shared.la
2262 # ------------------------------------------------------------------------------
2263 systemd_path_SOURCES = \
2266 systemd_path_LDADD = \
2267 libsystemd-internal.la \
2268 libsystemd-shared.la
2270 # ------------------------------------------------------------------------------
2271 systemd_ask_password_SOURCES = \
2272 src/ask-password/ask-password.c
2274 systemd_ask_password_LDADD = \
2275 libsystemd-label.la \
2276 libsystemd-shared.la
2278 # ------------------------------------------------------------------------------
2279 systemd_reply_password_SOURCES = \
2280 src/reply-password/reply-password.c
2282 systemd_reply_password_LDADD = \
2283 libsystemd-shared.la
2285 # ------------------------------------------------------------------------------
2286 systemd_cgls_SOURCES = \
2289 systemd_cgls_LDADD = \
2290 libsystemd-internal.la \
2291 libsystemd-shared.la
2293 # ------------------------------------------------------------------------------
2294 systemd_cgtop_SOURCES = \
2297 systemd_cgtop_LDADD = \
2298 libsystemd-shared.la
2300 # ------------------------------------------------------------------------------
2301 systemd_nspawn_SOURCES = \
2302 src/nspawn/nspawn.c \
2303 src/core/mount-setup.c \
2304 src/core/mount-setup.h \
2305 src/core/loopback-setup.c \
2306 src/core/loopback-setup.h
2308 systemd_nspawn_CFLAGS = \
2313 systemd_nspawn_LDADD = \
2314 libsystemd-label.la \
2315 libsystemd-capability.la \
2316 libsystemd-internal.la \
2317 libudev-internal.la \
2318 libsystemd-shared.la \
2322 systemd_nspawn_LDADD += \
2323 libsystemd-seccomp.la \
2327 # ------------------------------------------------------------------------------
2328 systemd_run_SOURCES = \
2331 systemd_run_LDADD = \
2332 libsystemd-label.la \
2333 libsystemd-capability.la \
2334 libsystemd-internal.la \
2335 libsystemd-shared.la
2337 # ------------------------------------------------------------------------------
2338 systemd_bus_proxyd_SOURCES = \
2339 src/bus-proxyd/bus-proxyd.c \
2340 src/bus-proxyd/bus-policy.c \
2341 src/bus-proxyd/bus-policy.h
2343 systemd_bus_proxyd_LDADD = \
2344 libsystemd-capability.la \
2345 libsystemd-internal.la \
2346 libsystemd-shared.la
2348 bus-proxyd-install-hook:
2349 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
2350 $(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2351 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
2353 bus-proxyd-uninstall-hook:
2354 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2356 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
2357 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
2360 nodist_systemunit_DATA += \
2361 units/systemd-bus-proxyd@.service
2363 dist_systemunit_DATA += \
2364 units/systemd-bus-proxyd.socket
2366 dist_userunit_DATA += \
2367 units/user/systemd-bus-proxyd.socket \
2368 units/user/systemd-bus-proxyd@.service
2372 units/systemd-bus-proxyd@.service.in
2374 # ------------------------------------------------------------------------------
2375 systemd_tty_ask_password_agent_SOURCES = \
2376 src/tty-ask-password-agent/tty-ask-password-agent.c
2378 systemd_tty_ask_password_agent_LDADD = \
2379 libsystemd-label.la \
2380 libsystemd-shared.la
2382 # ------------------------------------------------------------------------------
2383 libsystemd_internal_la_SOURCES = \
2384 src/systemd/sd-bus.h \
2385 src/systemd/sd-bus-protocol.h \
2386 src/systemd/sd-bus-vtable.h \
2387 src/systemd/sd-utf8.h \
2388 src/systemd/sd-event.h \
2389 src/systemd/sd-rtnl.h \
2390 src/systemd/sd-resolve.h \
2391 src/systemd/sd-login.h \
2392 src/systemd/sd-id128.h \
2393 src/systemd/sd-daemon.h \
2394 src/systemd/sd-path.h \
2395 src/systemd/sd-network.h \
2396 src/libsystemd/sd-bus/sd-bus.c \
2397 src/libsystemd/sd-bus/bus-control.c \
2398 src/libsystemd/sd-bus/bus-control.h \
2399 src/libsystemd/sd-bus/bus-error.c \
2400 src/libsystemd/sd-bus/bus-error.h \
2401 src/libsystemd/sd-bus/bus-internal.c \
2402 src/libsystemd/sd-bus/bus-internal.h \
2403 src/libsystemd/sd-bus/bus-socket.c \
2404 src/libsystemd/sd-bus/bus-socket.h \
2405 src/libsystemd/sd-bus/bus-kernel.c \
2406 src/libsystemd/sd-bus/bus-kernel.h \
2407 src/libsystemd/sd-bus/bus-container.c \
2408 src/libsystemd/sd-bus/bus-container.h \
2409 src/libsystemd/sd-bus/bus-message.c \
2410 src/libsystemd/sd-bus/bus-message.h \
2411 src/libsystemd/sd-bus/bus-creds.c \
2412 src/libsystemd/sd-bus/bus-creds.h \
2413 src/libsystemd/sd-bus/bus-signature.c \
2414 src/libsystemd/sd-bus/bus-signature.h \
2415 src/libsystemd/sd-bus/bus-type.c \
2416 src/libsystemd/sd-bus/bus-type.h \
2417 src/libsystemd/sd-bus/bus-match.c \
2418 src/libsystemd/sd-bus/bus-match.h \
2419 src/libsystemd/sd-bus/bus-bloom.c \
2420 src/libsystemd/sd-bus/bus-bloom.h \
2421 src/libsystemd/sd-bus/bus-introspect.c \
2422 src/libsystemd/sd-bus/bus-introspect.h \
2423 src/libsystemd/sd-bus/bus-objects.c \
2424 src/libsystemd/sd-bus/bus-objects.h \
2425 src/libsystemd/sd-bus/bus-gvariant.c \
2426 src/libsystemd/sd-bus/bus-gvariant.h \
2427 src/libsystemd/sd-bus/bus-convenience.c \
2428 src/libsystemd/sd-bus/bus-track.c \
2429 src/libsystemd/sd-bus/bus-track.h \
2430 src/libsystemd/sd-bus/bus-util.c \
2431 src/libsystemd/sd-bus/bus-util.h \
2432 src/libsystemd/sd-bus/bus-slot.c \
2433 src/libsystemd/sd-bus/bus-slot.h \
2434 src/libsystemd/sd-bus/bus-protocol.h \
2435 src/libsystemd/sd-bus/kdbus.h \
2436 src/libsystemd/sd-utf8/sd-utf8.c \
2437 src/libsystemd/sd-event/sd-event.c \
2438 src/libsystemd/sd-event/event-util.h \
2439 src/libsystemd/sd-rtnl/sd-rtnl.c \
2440 src/libsystemd/sd-rtnl/rtnl-internal.h \
2441 src/libsystemd/sd-rtnl/rtnl-message.c \
2442 src/libsystemd/sd-rtnl/rtnl-types.h \
2443 src/libsystemd/sd-rtnl/rtnl-types.c \
2444 src/libsystemd/sd-rtnl/rtnl-util.h \
2445 src/libsystemd/sd-rtnl/rtnl-util.c \
2446 src/libsystemd/sd-rtnl/local-addresses.h \
2447 src/libsystemd/sd-rtnl/local-addresses.c \
2448 src/libsystemd/sd-id128/sd-id128.c \
2449 src/libsystemd/sd-daemon/sd-daemon.c \
2450 src/libsystemd/sd-login/sd-login.c \
2451 src/libsystemd/sd-path/sd-path.c \
2452 src/libsystemd/sd-network/sd-network.c \
2453 src/libsystemd/sd-network/network-util.h \
2454 src/libsystemd/sd-network/network-util.c
2456 nodist_libsystemd_internal_la_SOURCES = \
2457 src/libsystemd/libsystemd.sym \
2458 src/libsystemd/sd-bus/bus-error-mapping.c
2460 libsystemd_internal_la_CFLAGS = \
2464 libsystemd_internal_la_LIBADD = \
2467 libsystemd_resolve_la_SOURCES = \
2468 src/libsystemd/sd-resolve/sd-resolve.c \
2469 src/libsystemd/sd-resolve/resolve-util.h
2471 libsystemd_resolve_la_CFLAGS = \
2475 libsystemd_resolve_la_LIBADD = \
2478 noinst_LTLIBRARIES += \
2479 libsystemd-internal.la \
2480 libsystemd-resolve.la
2482 libsystemd_dump_la_SOURCES = \
2483 src/libsystemd/sd-bus/bus-dump.c \
2484 src/libsystemd/sd-bus/bus-dump.h
2486 libsystemd_dump_la_CFLAGS = \
2490 noinst_LTLIBRARIES += \
2494 src/libsystemd/libsystemd.sym.m4 \
2495 src/libsystemd/libsystemd.pc.in \
2496 src/libsystemd/sd-bus/bus-error-mapping.gperf \
2497 src/libsystemd/sd-bus/DIFFERENCES \
2498 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2501 src/libsystemd/libsystemd.sym \
2502 src/libsystemd/sd-bus/bus-error-mapping.c
2505 src/libsystemd/libsystemd.sym
2507 libsystemd_la_SOURCES = \
2508 $(libsystemd_internal_la_SOURCES) \
2509 $(libsystemd_resolve_la_SOURCES) \
2510 $(libsystemd_journal_internal_la_SOURCES)
2512 nodist_libsystemd_la_SOURCES = \
2513 $(nodist_libsystemd_internal_la_SOURCES)
2515 libsystemd_la_CFLAGS = \
2516 $(libsystemd_internal_la_CFLAGS) \
2517 $(libsystemd_resolve_la_CFLAGS) \
2518 $(libsystemd_journal_internal_la_CFLAGS)
2520 libsystemd_la_LDFLAGS = \
2522 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2523 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2525 libsystemd_la_LIBADD = \
2526 libsystemd-shared.la \
2527 $(libsystemd_internal_la_LIBADD) \
2528 $(libsystemd_journal_internal_la_LIBADD) \
2529 $(libsystemd_resolve_la_LIBADD)
2531 libsystemd-install-hook:
2532 libname=libsystemd.so && $(move-to-rootlibdir)
2534 libsystemd-uninstall-hook:
2535 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2537 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2538 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2540 pkgconfiglib_DATA += \
2541 src/libsystemd/libsystemd.pc
2543 pkginclude_HEADERS += \
2544 src/systemd/sd-login.h \
2545 src/systemd/sd-id128.h \
2546 src/systemd/sd-daemon.h
2549 pkginclude_HEADERS += \
2550 src/systemd/sd-bus.h \
2551 src/systemd/sd-bus-protocol.h \
2552 src/systemd/sd-bus-vtable.h \
2553 src/systemd/sd-utf8.h \
2554 src/systemd/sd-event.h \
2555 src/systemd/sd-rtnl.h \
2556 src/systemd/sd-resolve.h \
2557 src/systemd/sd-path.h
2560 lib_LTLIBRARIES += \
2565 test-bus-signature \
2571 test-bus-kernel-bloom \
2572 test-bus-kernel-benchmark \
2573 test-bus-zero-copy \
2574 test-bus-introspect \
2586 test_bus_marshal_SOURCES = \
2587 src/libsystemd/sd-bus/test-bus-marshal.c
2589 test_bus_marshal_LDADD = \
2590 libsystemd-internal.la \
2591 libsystemd-shared.la \
2592 libsystemd-dump.la \
2593 libsystemd-capability.la \
2598 test_bus_marshal_CFLAGS = \
2604 test_bus_signature_SOURCES = \
2605 src/libsystemd/sd-bus/test-bus-signature.c
2607 test_bus_signature_LDADD = \
2608 libsystemd-shared.la \
2609 libsystemd-internal.la
2611 test_bus_chat_SOURCES = \
2612 src/libsystemd/sd-bus/test-bus-chat.c
2614 test_bus_chat_CFLAGS = \
2618 test_bus_chat_LDADD = \
2619 libsystemd-internal.la \
2620 libsystemd-shared.la
2622 test_bus_cleanup_SOURCES = \
2623 src/libsystemd/sd-bus/test-bus-cleanup.c
2625 test_bus_cleanup_CFLAGS = \
2629 test_bus_cleanup_LDADD = \
2630 libsystemd-internal.la \
2631 libsystemd-shared.la
2633 test_bus_server_SOURCES = \
2634 src/libsystemd/sd-bus/test-bus-server.c
2636 test_bus_server_CFLAGS = \
2640 test_bus_server_LDADD = \
2641 libsystemd-internal.la \
2642 libsystemd-shared.la
2644 test_bus_objects_SOURCES = \
2645 src/libsystemd/sd-bus/test-bus-objects.c
2647 test_bus_objects_CFLAGS = \
2652 test_bus_objects_LDADD = \
2653 libsystemd-internal.la \
2654 libsystemd-shared.la \
2655 libsystemd-dump.la \
2656 libsystemd-capability.la \
2659 test_bus_error_SOURCES = \
2660 src/libsystemd/sd-bus/test-bus-error.c
2662 test_bus_error_LDADD = \
2663 libsystemd-internal.la \
2664 libsystemd-shared.la
2666 test_bus_gvariant_SOURCES = \
2667 src/libsystemd/sd-bus/test-bus-gvariant.c
2669 test_bus_gvariant_LDADD = \
2670 libsystemd-internal.la \
2671 libsystemd-shared.la \
2672 libsystemd-dump.la \
2673 libsystemd-capability.la \
2677 test_bus_gvariant_CFLAGS = \
2682 test_bus_creds_SOURCES = \
2683 src/libsystemd/sd-bus/test-bus-creds.c
2685 test_bus_creds_LDADD = \
2686 libsystemd-internal.la \
2687 libsystemd-shared.la \
2688 libsystemd-dump.la \
2689 libsystemd-capability.la
2691 test_bus_match_SOURCES = \
2692 src/libsystemd/sd-bus/test-bus-match.c
2694 test_bus_match_LDADD = \
2695 libsystemd-internal.la \
2696 libsystemd-shared.la
2698 test_bus_kernel_SOURCES = \
2699 src/libsystemd/sd-bus/test-bus-kernel.c
2701 test_bus_kernel_LDADD = \
2702 libsystemd-internal.la \
2703 libsystemd-shared.la \
2704 libsystemd-dump.la \
2705 libsystemd-capability.la \
2708 test_bus_kernel_CFLAGS = \
2712 test_bus_kernel_bloom_SOURCES = \
2713 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
2715 test_bus_kernel_bloom_LDADD = \
2716 libsystemd-internal.la \
2717 libsystemd-shared.la
2719 test_bus_kernel_benchmark_SOURCES = \
2720 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
2722 test_bus_kernel_benchmark_LDADD = \
2723 libsystemd-internal.la \
2724 libsystemd-shared.la
2726 test_bus_zero_copy_SOURCES = \
2727 src/libsystemd/sd-bus/test-bus-zero-copy.c
2729 test_bus_zero_copy_LDADD = \
2730 libsystemd-internal.la \
2731 libsystemd-shared.la \
2732 libsystemd-dump.la \
2733 libsystemd-capability.la \
2736 test_bus_zero_copy_CFLAGS = \
2740 test_bus_introspect_SOURCES = \
2741 src/libsystemd/sd-bus/test-bus-introspect.c
2743 test_bus_introspect_LDADD = \
2744 libsystemd-internal.la \
2745 libsystemd-shared.la
2747 test_event_SOURCES = \
2748 src/libsystemd/sd-event/test-event.c
2750 test_event_LDADD = \
2751 libsystemd-internal.la \
2752 libsystemd-shared.la
2754 test_rtnl_SOURCES = \
2755 src/libsystemd/sd-rtnl/test-rtnl.c
2758 libsystemd-internal.la \
2759 libsystemd-shared.la
2761 test_resolve_SOURCES = \
2762 src/libsystemd/sd-resolve/test-resolve.c
2764 test_resolve_LDADD = \
2765 libsystemd-resolve.la \
2766 libsystemd-internal.la \
2767 libsystemd-shared.la
2769 test_resolve_CFLAGS = \
2774 src/libsystemd/sd-bus/busctl.c
2777 libsystemd-internal.la \
2778 libsystemd-shared.la \
2779 libsystemd-dump.la \
2780 libsystemd-capability.la \
2787 # ------------------------------------------------------------------------------
2788 noinst_LTLIBRARIES += \
2789 libsystemd-network.la
2791 libsystemd_network_la_CFLAGS = \
2795 libsystemd_network_la_SOURCES = \
2796 src/systemd/sd-dhcp-client.h \
2797 src/systemd/sd-dhcp-server.h \
2798 src/systemd/sd-dhcp-lease.h \
2799 src/systemd/sd-ipv4ll.h \
2800 src/systemd/sd-icmp6-nd.h \
2801 src/systemd/sd-dhcp6-client.h \
2802 src/systemd/sd-dhcp6-lease.h \
2803 src/libsystemd-network/sd-dhcp-client.c \
2804 src/libsystemd-network/sd-dhcp-server.c \
2805 src/libsystemd-network/dhcp-network.c \
2806 src/libsystemd-network/dhcp-option.c \
2807 src/libsystemd-network/dhcp-packet.c \
2808 src/libsystemd-network/dhcp-internal.h \
2809 src/libsystemd-network/dhcp-server-internal.h \
2810 src/libsystemd-network/dhcp-protocol.h \
2811 src/libsystemd-network/dhcp-lease-internal.h \
2812 src/libsystemd-network/sd-dhcp-lease.c \
2813 src/libsystemd-network/sd-ipv4ll.c \
2814 src/libsystemd-network/ipv4ll-network.c \
2815 src/libsystemd-network/ipv4ll-packet.c \
2816 src/libsystemd-network/ipv4ll-internal.h \
2817 src/libsystemd-network/network-internal.c \
2818 src/libsystemd-network/network-internal.h \
2819 src/libsystemd-network/sd-icmp6-nd.c \
2820 src/libsystemd-network/sd-dhcp6-client.c \
2821 src/libsystemd-network/dhcp6-internal.h \
2822 src/libsystemd-network/dhcp6-protocol.h \
2823 src/libsystemd-network/dhcp6-network.c \
2824 src/libsystemd-network/dhcp6-option.c \
2825 src/libsystemd-network/dhcp6-lease-internal.h \
2826 src/libsystemd-network/sd-dhcp6-lease.c
2828 libsystemd_network_la_LIBADD = \
2829 libudev-internal.la \
2830 libsystemd-label.la \
2831 libsystemd-internal.la \
2832 libsystemd-shared.la \
2835 test_dhcp_option_SOURCES = \
2836 src/libsystemd-network/dhcp-protocol.h \
2837 src/libsystemd-network/dhcp-internal.h \
2838 src/libsystemd-network/test-dhcp-option.c
2840 test_dhcp_option_LDADD = \
2841 libsystemd-network.la \
2842 libsystemd-internal.la \
2843 libsystemd-shared.la
2845 test_dhcp_client_SOURCES = \
2846 src/systemd/sd-dhcp-client.h \
2847 src/libsystemd-network/dhcp-protocol.h \
2848 src/libsystemd-network/dhcp-internal.h \
2849 src/libsystemd-network/test-dhcp-client.c
2851 test_dhcp_client_LDADD = \
2852 libsystemd-network.la \
2853 libsystemd-label.la \
2854 libsystemd-internal.la \
2855 libsystemd-shared.la
2857 test_dhcp_server_SOURCES = \
2858 src/libsystemd-network/test-dhcp-server.c
2860 test_dhcp_server_LDADD = \
2861 libsystemd-network.la \
2862 libsystemd-internal.la \
2863 libsystemd-shared.la
2865 test_ipv4ll_SOURCES = \
2866 src/systemd/sd-ipv4ll.h \
2867 src/libsystemd-network/ipv4ll-internal.h \
2868 src/libsystemd-network/test-ipv4ll.c
2870 test_ipv4ll_LDADD = \
2871 libsystemd-network.la \
2872 libsystemd-label.la \
2873 libsystemd-internal.la \
2874 libsystemd-shared.la
2876 test_icmp6_rs_SOURCES = \
2877 src/systemd/sd-dhcp6-client.h \
2878 src/systemd/sd-icmp6-nd.h \
2879 src/libsystemd-network/dhcp6-internal.h \
2880 src/libsystemd-network/test-icmp6-rs.c
2882 test_icmp6_rs_LDADD = \
2883 libsystemd-network.la \
2884 libsystemd-internal.la \
2885 libsystemd-shared.la
2887 test_dhcp6_client_SOURCES = \
2888 src/systemd/sd-dhcp6-client.h \
2889 src/libsystemd-network/dhcp6-internal.h \
2890 src/libsystemd-network/test-dhcp6-client.c
2892 test_dhcp6_client_LDADD = \
2893 libsystemd-network.la \
2894 libsystemd-internal.la \
2895 libsystemd-shared.la
2905 # ------------------------------------------------------------------------------
2907 noinst_LTLIBRARIES += \
2908 libsystemd-terminal.la
2910 noinst_PROGRAMS += \
2913 unifontdatadir=$(datadir)/unifont
2915 dist_unifontdata_DATA = \
2916 src/libsystemd-terminal/unifont-glyph-array.bin
2924 libsystemd_terminal_la_CFLAGS = \
2927 libsystemd_terminal_la_SOURCES = \
2928 src/libsystemd-terminal/term-internal.h \
2929 src/libsystemd-terminal/term-charset.c \
2930 src/libsystemd-terminal/term-page.c \
2931 src/libsystemd-terminal/term-parser.c \
2932 src/libsystemd-terminal/term-screen.c \
2933 src/libsystemd-terminal/term-wcwidth.c \
2934 src/libsystemd-terminal/unifont-internal.h \
2935 src/libsystemd-terminal/unifont.c
2937 libsystemd_terminal_la_LIBADD = \
2938 libsystemd-internal.la \
2939 libsystemd-shared.la
2941 systemd_subterm_SOURCES = \
2942 src/libsystemd-terminal/subterm.c
2944 systemd_subterm_LDADD = \
2945 libsystemd-terminal.la \
2946 libsystemd-internal.la \
2947 libsystemd-shared.la
2949 test_term_page_SOURCES = \
2950 src/libsystemd-terminal/test-term-page.c
2952 test_term_page_LDADD = \
2953 libsystemd-terminal.la \
2954 libsystemd-internal.la \
2955 libsystemd-shared.la
2957 test_term_parser_SOURCES = \
2958 src/libsystemd-terminal/test-term-parser.c
2960 test_term_parser_LDADD = \
2961 libsystemd-terminal.la \
2962 libsystemd-internal.la \
2963 libsystemd-shared.la
2965 test_unifont_SOURCES = \
2966 src/libsystemd-terminal/test-unifont.c
2968 test_unifont_LDADD = \
2969 libsystemd-terminal.la \
2970 libsystemd-internal.la \
2971 libsystemd-shared.la
2973 .PHONY: update-unifont
2974 update-unifont: tools/compile-unifont.py
2975 $(AM_V_GEN)$(PYTHON) $< \
2976 <$(top_srcdir)/src/libsystemd-terminal/unifont.hex \
2977 >$(top_srcdir)/src/libsystemd-terminal/unifont-glyph-array.bin
2978 @echo "unifont-glyph-array.bin has been regenerated"
2980 # ------------------------------------------------------------------------------
2990 include_HEADERS += \
2991 src/libudev/libudev.h
2993 lib_LTLIBRARIES += \
2996 libudev_la_SOURCES =\
2997 src/libudev/libudev.sym \
2998 src/libudev/libudev-private.h \
2999 src/libudev/libudev.c \
3000 src/libudev/libudev-list.c \
3001 src/libudev/libudev-util.c \
3002 src/libudev/libudev-device.c \
3003 src/libudev/libudev-enumerate.c \
3004 src/libudev/libudev-monitor.c \
3005 src/libudev/libudev-queue.c \
3006 src/libudev/libudev-hwdb-def.h \
3007 src/libudev/libudev-hwdb.c
3009 libudev_la_CFLAGS = \
3013 libudev_la_LDFLAGS = \
3015 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3016 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3018 libudev_la_LIBADD = \
3019 libsystemd-internal.la \
3020 libsystemd-shared.la
3022 pkgconfiglib_DATA += \
3023 src/libudev/libudev.pc
3026 src/libudev/libudev.pc.in
3029 src/libudev/libudev.pc \
3034 $(AM_V_at)$(MKDIR_P) $(dir $@)
3035 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
3038 $(AM_V_at)$(MKDIR_P) $(dir $@)
3039 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
3041 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3042 libudev-install-hook:
3043 libname=libudev.so && $(move-to-rootlibdir)
3045 libudev-uninstall-hook:
3046 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3048 INSTALL_EXEC_HOOKS += libudev-install-hook
3049 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3051 # ------------------------------------------------------------------------------
3052 noinst_LTLIBRARIES += \
3055 libudev_internal_la_SOURCES =\
3056 $(libudev_la_SOURCES) \
3057 src/libudev/libudev-device-private.c
3059 libudev_internal_la_CFLAGS = \
3061 -fvisibility=default
3063 # ------------------------------------------------------------------------------
3065 $(sysconfdir)/udev/rules.d \
3066 $(sysconfdir)/udev/hwdb.d
3068 dist_network_DATA = \
3069 network/99-default.link \
3070 network/80-container-host0.network \
3071 network/80-container-ve.network
3073 dist_udevrules_DATA += \
3074 rules/42-usb-hid-pm.rules \
3075 rules/50-udev-default.rules \
3076 rules/60-drm.rules \
3077 rules/60-keyboard.rules \
3078 rules/60-persistent-storage-tape.rules \
3079 rules/60-persistent-serial.rules \
3080 rules/60-persistent-input.rules \
3081 rules/60-persistent-alsa.rules \
3082 rules/60-persistent-storage.rules \
3083 rules/64-btrfs.rules \
3084 rules/75-net-description.rules \
3085 rules/75-tty-description.rules \
3086 rules/78-sound-card.rules \
3087 rules/80-net-setup-link.rules \
3088 rules/95-udev-late.rules
3090 nodist_udevrules_DATA += \
3091 rules/99-systemd.rules
3093 dist_udevhwdb_DATA = \
3094 hwdb/20-pci-vendor-model.hwdb \
3095 hwdb/20-pci-classes.hwdb \
3096 hwdb/20-usb-vendor-model.hwdb \
3097 hwdb/20-usb-classes.hwdb \
3098 hwdb/20-sdio-vendor-model.hwdb \
3099 hwdb/20-sdio-classes.hwdb \
3100 hwdb/20-bluetooth-vendor-product.hwdb \
3101 hwdb/20-acpi-vendor.hwdb \
3103 hwdb/20-net-ifname.hwdb \
3104 hwdb/60-keyboard.hwdb
3106 udevconfdir = $(sysconfdir)/udev
3107 dist_udevconf_DATA = \
3110 sharepkgconfigdir = $(datadir)/pkgconfig
3111 sharepkgconfig_DATA = \
3115 rules/99-systemd.rules.in \
3119 rules/99-systemd.rules \
3123 units/systemd-udevd.service.in \
3124 units/systemd-udev-trigger.service.in \
3125 units/systemd-udev-settle.service.in \
3126 units/systemd-udev-hwdb-update.service.in
3129 units/systemd-udevd.service \
3130 units/systemd-udev-trigger.service \
3131 units/systemd-udev-settle.service \
3132 units/systemd-udev-hwdb-update.service
3134 SOCKETS_TARGET_WANTS += \
3135 systemd-udevd-control.socket \
3136 systemd-udevd-kernel.socket
3138 SYSINIT_TARGET_WANTS += \
3139 systemd-udevd.service \
3140 systemd-udev-trigger.service \
3141 systemd-udev-hwdb-update.service
3143 rootbin_PROGRAMS += \
3146 rootlibexec_PROGRAMS += \
3149 noinst_LTLIBRARIES += \
3152 src/udev/keyboard-keys.txt:
3153 $(AM_V_at)$(MKDIR_P) $(dir $@)
3154 $(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/' > $@
3156 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
3157 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3159 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3160 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3162 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
3163 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
3165 libudev_core_la_SOURCES = \
3167 src/udev/udev-event.c \
3168 src/udev/udev-watch.c \
3169 src/udev/udev-node.c \
3170 src/udev/udev-rules.c \
3171 src/udev/udev-ctrl.c \
3172 src/udev/udev-builtin.c \
3173 src/udev/udev-builtin-btrfs.c \
3174 src/udev/udev-builtin-hwdb.c \
3175 src/udev/udev-builtin-input_id.c \
3176 src/udev/udev-builtin-keyboard.c \
3177 src/udev/udev-builtin-net_id.c \
3178 src/udev/udev-builtin-net_setup_link.c \
3179 src/udev/udev-builtin-path_id.c \
3180 src/udev/udev-builtin-usb_id.c \
3181 src/udev/net/link-config.h \
3182 src/udev/net/link-config.c \
3183 src/udev/net/ethtool-util.h \
3184 src/udev/net/ethtool-util.c
3186 nodist_libudev_core_la_SOURCES = \
3187 src/udev/keyboard-keys-from-name.h \
3188 src/udev/keyboard-keys-to-name.h \
3189 src/udev/net/link-config-gperf.c
3192 $(nodist_libudev_core_la_SOURCES)
3195 src/udev/keyboard-keys-from-name.gperf \
3196 src/udev/keyboard-keys.txt \
3197 src/udev/net/link-config-gperf.c
3200 src/udev/net/link-config-gperf.gperf
3202 libudev_core_la_CFLAGS = \
3207 libudev_core_la_LIBADD = \
3208 libudev-internal.la \
3209 libsystemd-label.la \
3210 libsystemd-internal.la \
3211 libsystemd-network.la \
3212 libsystemd-shared.la \
3216 libudev_core_la_CPPFLAGS = \
3218 -DFIRMWARE_PATH="$(FIRMWARE_PATH)"
3221 libudev_core_la_SOURCES += \
3222 src/udev/udev-builtin-firmware.c
3224 dist_udevrules_DATA += \
3225 rules/50-firmware.rules
3229 libudev_core_la_SOURCES += \
3230 src/udev/udev-builtin-kmod.c
3232 dist_udevrules_DATA += \
3233 rules/80-drivers.rules
3237 libudev_core_la_SOURCES += \
3238 src/udev/udev-builtin-blkid.c
3242 libudev_core_la_SOURCES += \
3243 src/udev/udev-builtin-uaccess.c \
3244 src/login/logind-acl.c \
3245 src/libsystemd/sd-login/sd-login.c \
3246 src/systemd/sd-login.h
3248 libudev_core_la_LIBADD += \
3252 systemd_udevd_SOURCES = \
3255 systemd_udevd_LDADD = \
3259 src/udev/udevadm.c \
3260 src/udev/udevadm-info.c \
3261 src/udev/udevadm-control.c \
3262 src/udev/udevadm-monitor.c \
3263 src/udev/udevadm-hwdb.c \
3264 src/udev/udevadm-settle.c \
3265 src/udev/udevadm-trigger.c \
3266 src/udev/udevadm-test.c \
3267 src/udev/udevadm-test-builtin.c
3272 # Update hwdb on installation. Do not bother if installing
3273 # in DESTDIR, since this is likely for packaging purposes.
3275 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
3277 INSTALL_DATA_HOOKS += \
3281 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3283 # ------------------------------------------------------------------------------
3292 test_libudev_SOURCES = \
3293 src/test/test-libudev.c
3295 test_libudev_LDADD = \
3296 libsystemd-label.la \
3297 libudev-internal.la \
3298 libsystemd-shared.la
3300 test_udev_SOURCES = \
3301 src/test/test-udev.c
3310 test_udev_LDADD += \
3317 # packed sysfs test tree
3319 $(AM_V_at)$(MKDIR_P) $(dir $@)
3320 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3324 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3329 test/rules-test.sh \
3330 test/rule-syntax-check.py
3332 # ------------------------------------------------------------------------------
3334 src/udev/ata_id/ata_id.c
3337 libudev-internal.la \
3338 libsystemd-shared.la
3340 udevlibexec_PROGRAMS += \
3343 # ------------------------------------------------------------------------------
3344 cdrom_id_SOURCES = \
3345 src/udev/cdrom_id/cdrom_id.c
3348 libudev-internal.la \
3349 libsystemd-shared.la
3351 udevlibexec_PROGRAMS += \
3354 dist_udevrules_DATA += \
3355 rules/60-cdrom_id.rules
3357 # ------------------------------------------------------------------------------
3359 src/udev/collect/collect.c
3362 libudev-internal.la \
3363 libsystemd-shared.la
3365 udevlibexec_PROGRAMS += \
3368 # ------------------------------------------------------------------------------
3370 src/udev/scsi_id/scsi_id.c \
3371 src/udev/scsi_id/scsi_serial.c \
3372 src/udev/scsi_id/scsi.h \
3373 src/udev/scsi_id/scsi_id.h
3376 libudev-internal.la \
3377 libsystemd-shared.la
3379 udevlibexec_PROGRAMS += \
3383 src/udev/scsi_id/README
3385 # ------------------------------------------------------------------------------
3387 src/udev/v4l_id/v4l_id.c
3392 udevlibexec_PROGRAMS += \
3395 dist_udevrules_DATA += \
3396 rules/60-persistent-v4l.rules
3398 # ------------------------------------------------------------------------------
3399 accelerometer_SOURCES = \
3400 src/udev/accelerometer/accelerometer.c
3402 accelerometer_LDADD = \
3403 libudev-internal.la -lm \
3404 libsystemd-shared.la
3406 udevlibexec_PROGRAMS += \
3409 dist_udevrules_DATA += \
3410 rules/61-accelerometer.rules
3412 # ------------------------------------------------------------------------------
3419 libgudev_includedir = \
3420 $(includedir)/gudev-1.0/gudev
3422 libgudev_include_HEADERS = \
3424 src/gudev/gudevenums.h \
3425 src/gudev/gudevenumtypes.h \
3426 src/gudev/gudevtypes.h \
3427 src/gudev/gudevclient.h \
3428 src/gudev/gudevdevice.h \
3429 src/gudev/gudevenumerator.h
3431 lib_LTLIBRARIES += libgudev-1.0.la
3433 pkgconfiglib_DATA += \
3434 src/gudev/gudev-1.0.pc
3437 src/gudev/gudev-1.0.pc
3439 libgudev_1_0_la_SOURCES = \
3440 src/gudev/libgudev-1.0.sym \
3441 src/gudev/gudevenums.h \
3442 src/gudev/gudevenumtypes.h \
3443 src/gudev/gudevenumtypes.h\
3444 src/gudev/gudevtypes.h \
3445 src/gudev/gudevclient.h \
3446 src/gudev/gudevclient.c \
3447 src/gudev/gudevdevice.h \
3448 src/gudev/gudevdevice.c \
3449 src/gudev/gudevenumerator.h \
3450 src/gudev/gudevenumerator.c \
3451 src/gudev/gudevprivate.h
3453 nodist_libgudev_1_0_la_SOURCES = \
3454 src/gudev/gudevmarshal.h \
3455 src/gudev/gudevmarshal.c \
3456 src/gudev/gudevenumtypes.h \
3457 src/gudev/gudevenumtypes.c
3460 $(nodist_libgudev_1_0_la_SOURCES)
3462 libgudev_1_0_la_CPPFLAGS = \
3464 -I$(top_builddir)/src\
3465 -I$(top_srcdir)/src\
3466 -I$(top_builddir)/src/gudev \
3467 -I$(top_srcdir)/src/gudev \
3468 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3469 -D_GUDEV_COMPILATION \
3470 -DG_LOG_DOMAIN=\"GUdev\"
3472 libgudev_1_0_la_CFLAGS = \
3474 -fvisibility=default \
3477 libgudev_1_0_la_LIBADD = \
3481 libgudev_1_0_la_LDFLAGS = \
3483 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3486 -Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym
3488 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3489 $(AM_V_at)$(MKDIR_P) $(dir $@)
3490 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3492 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3493 $(AM_V_at)$(MKDIR_P) $(dir $@)
3494 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3495 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3497 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3498 $(AM_V_at)$(MKDIR_P) $(dir $@)
3499 $(AM_V_GEN)glib-mkenums --template $^ > $@
3501 if HAVE_INTROSPECTION
3502 -include $(INTROSPECTION_MAKEFILE)
3504 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3506 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3508 src_gudev_GUdev_1_0_gir_CFLAGS = \
3511 -D_GUDEV_COMPILATION \
3512 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3513 -I$(top_srcdir)/src \
3514 -I$(top_builddir)/src \
3515 -I$(top_srcdir)/src/gudev \
3516 -I$(top_builddir)/src/gudev
3518 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
3520 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
3521 --pkg-export=gudev-1.0 \
3524 src_gudev_GUdev_1_0_gir_FILES = \
3526 src/gudev/gudevtypes.h \
3527 src/gudev/gudevenums.h \
3528 src/gudev/gudevenumtypes.h \
3529 src/gudev/gudevclient.h \
3530 src/gudev/gudevdevice.h \
3531 src/gudev/gudevenumerator.h \
3532 src/gudev/gudevclient.c \
3533 src/gudev/gudevdevice.c \
3534 src/gudev/gudevenumerator.c
3536 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
3537 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
3539 girdir = $(datadir)/gir-1.0
3541 src/gudev/GUdev-1.0.gir
3543 typelibsdir = $(libdir)/girepository-1.0
3545 src/gudev/GUdev-1.0.typelib
3547 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
3548 endif # HAVE_INTROSPECTION
3552 src/gudev/gudev-1.0.pc.in \
3553 src/gudev/gudevmarshal.list \
3554 src/gudev/gudevenumtypes.h.template \
3555 src/gudev/gudevenumtypes.c.template \
3556 src/gudev/gjs-example.js \
3557 src/gudev/seed-example-enum.js \
3558 src/gudev/seed-example.js
3560 # ------------------------------------------------------------------------------
3561 mtd_probe_SOURCES = \
3562 src/udev/mtd_probe/mtd_probe.c \
3563 src/udev/mtd_probe/mtd_probe.h \
3564 src/udev/mtd_probe/probe_smartmedia.c
3566 dist_udevrules_DATA += \
3567 rules/75-probe_mtd.rules
3569 udevlibexec_PROGRAMS += \
3572 # ------------------------------------------------------------------------------
3573 test_id128_SOURCES = \
3574 src/test/test-id128.c
3576 test_id128_LDADD = \
3577 libsystemd-internal.la \
3578 libsystemd-shared.la
3583 # ------------------------------------------------------------------------------
3585 rootlibexec_PROGRAMS += \
3588 systemd_activate_SOURCES = \
3589 src/activate/activate.c
3591 systemd_activate_LDADD = \
3592 libsystemd-label.la \
3593 libsystemd-internal.la \
3594 libsystemd-shared.la
3596 # ------------------------------------------------------------------------------
3597 systemd_journald_SOURCES = \
3598 src/journal/journald.c \
3599 src/journal/journald-server.h
3601 systemd_journald_LDADD = \
3602 libsystemd-journal-core.la \
3603 libsystemd-internal.la \
3604 libsystemd-shared.la
3606 systemd_cat_SOURCES = \
3609 systemd_cat_LDADD = \
3610 libsystemd-journal-core.la
3613 rootlibexec_PROGRAMS += \
3614 systemd-journal-remote
3616 systemd_journal_remote_SOURCES = \
3617 src/journal-remote/journal-remote-parse.h \
3618 src/journal-remote/journal-remote-parse.c \
3619 src/journal-remote/journal-remote-write.h \
3620 src/journal-remote/journal-remote-write.c \
3621 src/journal-remote/journal-remote.h \
3622 src/journal-remote/journal-remote.c
3624 systemd_journal_remote_LDADD = \
3625 libsystemd-internal.la \
3626 libsystemd-journal-core.la
3628 systemd_journal_remote_SOURCES += \
3629 src/journal-remote/microhttpd-util.h \
3630 src/journal-remote/microhttpd-util.c
3632 systemd_journal_remote_CFLAGS = \
3634 $(MICROHTTPD_CFLAGS)
3636 systemd_journal_remote_LDADD += \
3640 systemd_journal_remote_LDADD += \
3643 # systemd-journal-remote make sense mostly with full crypto stack
3644 dist_systemunit_DATA += \
3645 units/systemd-journal-remote.socket
3647 nodist_systemunit_DATA += \
3648 units/systemd-journal-remote.service
3651 units/systemd-journal-remote.service.in
3653 journal-remote-install-hook: journal-install-hook
3654 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
3655 -chown 0:0 $(DESTDIR)/var/log/journal/remote
3656 -chmod 755 $(DESTDIR)/var/log/journal/remote
3658 INSTALL_EXEC_HOOKS += journal-remote-install-hook
3662 nodist_pkgsysconf_DATA += \
3663 src/journal-remote/journal-remote.conf
3666 src/journal-remote/journal-remote.conf.in
3669 src/journal-remote/journal-remote.conf
3673 rootlibexec_PROGRAMS += \
3674 systemd-journal-upload
3676 systemd_journal_upload_SOURCES = \
3677 src/journal-remote/journal-upload.h \
3678 src/journal-remote/journal-upload.c \
3679 src/journal-remote/journal-upload-journal.c
3681 systemd_journal_upload_CFLAGS = \
3685 systemd_journal_upload_LDADD = \
3686 libsystemd-core.la \
3687 libsystemd-internal.la \
3688 libsystemd-journal-internal.la \
3689 libsystemd-shared.la \
3692 nodist_systemunit_DATA += \
3693 units/systemd-journal-upload.service
3696 units/systemd-journal-upload.service.in
3698 nodist_pkgsysconf_DATA += \
3699 src/journal-remote/journal-upload.conf
3702 src/journal-remote/journal-upload.conf.in
3705 src/journal-remote/journal-upload.conf
3708 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3709 journalctl_CFLAGS = \
3712 journalctl_SOURCES = \
3713 src/journal/journalctl.c
3715 journalctl_LDADD = \
3716 libsystemd-journal-internal.la \
3717 libsystemd-internal.la \
3718 libsystemd-logs.la \
3719 libsystemd-shared.la
3722 journalctl_LDADD += \
3727 journalctl_SOURCES += \
3728 src/journal/journal-qrcode.c \
3729 src/journal/journal-qrcode.h
3731 journalctl_CFLAGS += \
3734 journalctl_LDADD += \
3738 test_journal_SOURCES = \
3739 src/journal/test-journal.c
3741 test_journal_LDADD = \
3742 libsystemd-journal-core.la
3744 test_journal_send_SOURCES = \
3745 src/journal/test-journal-send.c
3747 test_journal_send_LDADD = \
3748 libsystemd-journal-core.la
3750 test_journal_syslog_SOURCES = \
3751 src/journal/test-journal-syslog.c
3753 test_journal_syslog_LDADD = \
3754 libsystemd-journal-core.la
3756 test_journal_match_SOURCES = \
3757 src/journal/test-journal-match.c
3759 test_journal_match_LDADD = \
3760 libsystemd-journal-core.la
3762 test_journal_enum_SOURCES = \
3763 src/journal/test-journal-enum.c
3765 test_journal_enum_LDADD = \
3766 libsystemd-journal-core.la
3768 test_journal_stream_SOURCES = \
3769 src/journal/test-journal-stream.c
3771 test_journal_stream_LDADD = \
3772 libsystemd-journal-core.la
3774 test_journal_flush_SOURCES = \
3775 src/journal/test-journal-flush.c
3777 test_journal_flush_LDADD = \
3778 libsystemd-journal-core.la
3780 test_journal_init_SOURCES = \
3781 src/journal/test-journal-init.c
3783 test_journal_init_LDADD = \
3784 libsystemd-journal-core.la
3786 test_journal_verify_SOURCES = \
3787 src/journal/test-journal-verify.c
3789 test_journal_verify_LDADD = \
3790 libsystemd-journal-core.la
3792 test_journal_interleaving_SOURCES = \
3793 src/journal/test-journal-interleaving.c
3795 test_journal_interleaving_LDADD = \
3796 libsystemd-journal-core.la
3798 test_mmap_cache_SOURCES = \
3799 src/journal/test-mmap-cache.c
3801 test_mmap_cache_LDADD = \
3802 libsystemd-journal-core.la
3804 test_catalog_SOURCES = \
3805 src/journal/test-catalog.c
3807 test_catalog_CPPFLAGS = \
3809 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
3811 test_catalog_LDADD = \
3812 libsystemd-journal-core.la
3814 test_compress_SOURCES = \
3815 src/journal/test-compress.c
3817 test_compress_LDADD = \
3818 libsystemd-journal-internal.la \
3819 libsystemd-shared.la
3821 test_compress_benchmark_SOURCES = \
3822 src/journal/test-compress-benchmark.c
3824 test_compress_benchmark_LDADD = \
3825 libsystemd-journal-internal.la \
3826 libsystemd-shared.la
3828 libsystemd_journal_core_la_SOURCES = \
3829 src/journal/journald-kmsg.c \
3830 src/journal/journald-kmsg.h \
3831 src/journal/journald-syslog.c \
3832 src/journal/journald-syslog.h \
3833 src/journal/journald-stream.c \
3834 src/journal/journald-stream.h \
3835 src/journal/journald-server.c \
3836 src/journal/journald-server.h \
3837 src/journal/journald-console.c \
3838 src/journal/journald-console.h \
3839 src/journal/journald-wall.c \
3840 src/journal/journald-wall.h \
3841 src/journal/journald-native.c \
3842 src/journal/journald-native.h \
3843 src/journal/journald-rate-limit.c \
3844 src/journal/journald-rate-limit.h \
3845 src/journal/journal-internal.h
3847 nodist_libsystemd_journal_core_la_SOURCES = \
3848 src/journal/journald-gperf.c
3850 libsystemd_journal_core_la_LIBADD = \
3851 libsystemd-journal-internal.la \
3852 libudev-internal.la \
3853 libsystemd-capability.la \
3854 libsystemd-label.la \
3855 libsystemd-internal.la \
3856 libsystemd-shared.la
3859 libsystemd_journal_core_la_LIBADD += \
3863 noinst_LTLIBRARIES += \
3864 libsystemd-journal-core.la
3866 journal-install-hook:
3867 -$(MKDIR_P) $(DESTDIR)/var/log/journal
3868 -chown 0:0 $(DESTDIR)/var/log/journal
3869 -chmod 755 $(DESTDIR)/var/log/journal
3870 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
3871 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
3873 journal-uninstall-hook:
3874 -rmdir $(DESTDIR)/var/log/journal/remote
3875 -rmdir $(DESTDIR)/var/log/journal/
3877 INSTALL_EXEC_HOOKS += journal-install-hook
3878 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
3880 # ------------------------------------------------------------------------------
3881 # Update catalog on installation. Do not bother if installing
3882 # in DESTDIR, since this is likely for packaging purposes.
3883 catalog-update-hook:
3884 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
3886 INSTALL_DATA_HOOKS += \
3889 catalog-remove-hook:
3890 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
3892 UNINSTALL_DATA_HOOKS += \
3901 test-journal-syslog \
3902 test-journal-match \
3903 test-journal-stream \
3905 test-journal-verify \
3906 test-journal-interleaving \
3907 test-journal-flush \
3914 test-compress-benchmark
3917 pkginclude_HEADERS += \
3918 src/systemd/sd-journal.h \
3919 src/systemd/sd-messages.h \
3920 src/systemd/_sd-common.h
3922 libsystemd_journal_internal_la_SOURCES = \
3923 src/journal/sd-journal.c \
3924 src/systemd/sd-journal.h \
3925 src/systemd/_sd-common.h \
3926 src/journal/journal-file.c \
3927 src/journal/journal-file.h \
3928 src/journal/journal-vacuum.c \
3929 src/journal/journal-vacuum.h \
3930 src/journal/journal-verify.c \
3931 src/journal/journal-verify.h \
3932 src/journal/lookup3.c \
3933 src/journal/lookup3.h \
3934 src/journal/journal-send.c \
3935 src/journal/journal-def.h \
3936 src/journal/compress.h \
3937 src/journal/catalog.c \
3938 src/journal/catalog.h \
3939 src/journal/mmap-cache.c \
3940 src/journal/mmap-cache.h
3942 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3943 libsystemd_journal_internal_la_CFLAGS = \
3946 libsystemd_journal_internal_la_LIBADD =
3948 libsystemd_journal_internal_la_SOURCES += \
3949 src/journal/compress.c
3952 libsystemd_journal_internal_la_CFLAGS += \
3955 libsystemd_journal_internal_la_LIBADD += \
3960 libsystemd_journal_internal_la_LIBADD += \
3965 libsystemd_journal_internal_la_SOURCES += \
3966 src/journal/journal-authenticate.c \
3967 src/journal/journal-authenticate.h \
3968 src/journal/fsprg.c \
3971 libsystemd_journal_internal_la_LIBADD += \
3974 # fsprg.c is a drop-in file using void pointer arithmetic
3975 libsystemd_journal_internal_la_CFLAGS += \
3980 noinst_LTLIBRARIES += \
3981 libsystemd-journal-internal.la
3983 rootlibexec_PROGRAMS += \
3986 rootbin_PROGRAMS += \
3992 dist_systemunit_DATA += \
3993 units/systemd-journald.socket \
3994 units/systemd-journald-dev-log.socket
3996 nodist_systemunit_DATA += \
3997 units/systemd-journald.service \
3998 units/systemd-journal-flush.service \
3999 units/systemd-journal-catalog-update.service
4001 dist_pkgsysconf_DATA += \
4002 src/journal/journald.conf
4004 dist_catalog_DATA = \
4005 catalog/systemd.fr.catalog \
4006 catalog/systemd.ru.catalog \
4007 catalog/systemd.it.catalog \
4008 catalog/systemd.catalog
4010 SOCKETS_TARGET_WANTS += \
4011 systemd-journald.socket \
4012 systemd-journald-dev-log.socket
4014 SYSINIT_TARGET_WANTS += \
4015 systemd-journald.service \
4016 systemd-journal-flush.service \
4017 systemd-journal-catalog-update.service
4020 units/systemd-journald.service.in \
4021 units/systemd-journal-flush.service.in \
4022 units/systemd-journal-catalog-update.service.in \
4023 src/journal/journald-gperf.gperf
4026 src/journal/journald-gperf.c
4028 # ------------------------------------------------------------------------------
4030 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4032 rootlibexec_PROGRAMS += \
4033 systemd-journal-gatewayd
4035 systemd_journal_gatewayd_SOURCES = \
4036 src/journal-remote/journal-gatewayd.c \
4037 src/journal-remote/microhttpd-util.h \
4038 src/journal-remote/microhttpd-util.c
4040 systemd_journal_gatewayd_LDADD = \
4041 libsystemd-logs.la \
4042 libsystemd-journal-internal.la \
4043 libsystemd-internal.la \
4044 libsystemd-shared.la \
4048 systemd_journal_gatewayd_LDADD += \
4052 systemd_journal_gatewayd_CFLAGS = \
4054 $(MICROHTTPD_CFLAGS)
4056 systemd_journal_gatewayd_CPPFLAGS = \
4058 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4060 dist_systemunit_DATA += \
4061 units/systemd-journal-gatewayd.socket
4063 nodist_systemunit_DATA += \
4064 units/systemd-journal-gatewayd.service
4066 dist_gatewayddocumentroot_DATA = \
4067 src/journal-remote/browse.html
4072 units/systemd-journal-gatewayd.service.in
4074 # ------------------------------------------------------------------------------
4076 systemd_socket_proxyd_SOURCES = \
4077 src/socket-proxy/socket-proxyd.c
4079 systemd_socket_proxyd_LDADD = \
4080 libsystemd-logs.la \
4081 libsystemd-internal.la \
4082 libsystemd-journal-internal.la \
4083 libsystemd-shared.la \
4084 libsystemd-resolve.la
4086 # ------------------------------------------------------------------------------
4088 systemd_coredump_SOURCES = \
4089 src/journal/coredump.c \
4090 src/journal/coredump-vacuum.c \
4091 src/journal/coredump-vacuum.h
4093 systemd_coredump_LDADD = \
4094 libsystemd-journal-internal.la \
4095 libsystemd-label.la \
4096 libsystemd-internal.la \
4097 libsystemd-shared.la
4100 systemd_coredump_SOURCES += \
4101 src/journal/stacktrace.c \
4102 src/journal/stacktrace.h
4104 systemd_coredump_LDADD += \
4108 rootlibexec_PROGRAMS += \
4111 dist_pkgsysconf_DATA += \
4112 src/journal/coredump.conf
4115 systemd_coredump_LDADD += \
4119 coredumpctl_SOURCES = \
4120 src/journal/coredumpctl.c
4122 coredumpctl_LDADD = \
4123 libsystemd-journal-internal.la \
4124 libsystemd-internal.la \
4125 libsystemd-shared.la
4131 test-coredump-vacuum
4133 test_coredump_vacuum_SOURCES = \
4134 src/journal/test-coredump-vacuum.c \
4135 src/journal/coredump-vacuum.c \
4136 src/journal/coredump-vacuum.h
4138 test_coredump_vacuum_LDADD = \
4139 libsystemd-internal.la \
4140 libsystemd-shared.la
4142 dist_bashcompletion_DATA += \
4143 shell-completion/bash/coredumpctl
4145 dist_zshcompletion_DATA += \
4146 shell-completion/zsh/_coredumpctl
4149 sysctl.d/50-coredump.conf
4152 sysctl.d/50-coredump.conf
4156 sysctl.d/50-coredump.conf.in
4158 # ------------------------------------------------------------------------------
4160 systemd_binfmt_SOURCES = \
4163 systemd_binfmt_LDADD = \
4164 libsystemd-shared.la
4166 rootlibexec_PROGRAMS += \
4169 dist_systemunit_DATA += \
4170 units/proc-sys-fs-binfmt_misc.automount \
4171 units/proc-sys-fs-binfmt_misc.mount
4173 nodist_systemunit_DATA += \
4174 units/systemd-binfmt.service
4177 $(prefix)/lib/binfmt.d \
4178 $(sysconfdir)/binfmt.d
4180 SYSINIT_TARGET_WANTS += \
4181 systemd-binfmt.service \
4182 proc-sys-fs-binfmt_misc.automount
4187 units/systemd-binfmt.service.in
4189 # ------------------------------------------------------------------------------
4191 systemd_vconsole_setup_SOURCES = \
4192 src/vconsole/vconsole-setup.c
4194 systemd_vconsole_setup_LDADD = \
4195 libsystemd-shared.la
4197 rootlibexec_PROGRAMS += \
4198 systemd-vconsole-setup
4200 nodist_systemunit_DATA += \
4201 units/systemd-vconsole-setup.service
4203 SYSINIT_TARGET_WANTS += \
4204 systemd-vconsole-setup.service
4208 units/systemd-vconsole-setup.service.in
4210 # ------------------------------------------------------------------------------
4212 systemd_readahead_SOURCES = \
4213 src/readahead/readahead.c \
4214 src/readahead/readahead-collect.c \
4215 src/readahead/readahead-replay.c \
4216 src/readahead/readahead-analyze.c \
4217 src/readahead/readahead-common.c \
4218 src/readahead/readahead-common.h
4220 systemd_readahead_LDADD = \
4221 libsystemd-internal.la \
4222 libudev-internal.la \
4223 libsystemd-shared.la
4226 src/readahead/sd-readahead.c \
4227 src/systemd/sd-readahead.h
4229 rootlibexec_PROGRAMS += \
4232 dist_systemunit_DATA += \
4233 units/systemd-readahead-drop.service \
4234 units/systemd-readahead-done.timer
4236 nodist_systemunit_DATA += \
4237 units/systemd-readahead-collect.service \
4238 units/systemd-readahead-replay.service \
4239 units/systemd-readahead-done.service
4244 test_ssd_SOURCES = \
4245 src/readahead/test-ssd.c \
4246 src/readahead/readahead-common.c \
4247 src/readahead/readahead-common.h
4250 libsystemd-internal.la \
4251 libudev-internal.la \
4252 libsystemd-shared.la
4257 units/systemd-readahead-collect.service.in \
4258 units/systemd-readahead-replay.service.in \
4259 units/systemd-readahead-done.service.in
4261 # ------------------------------------------------------------------------------
4263 systemd_bootchart_SOURCES = \
4264 src/bootchart/bootchart.c \
4265 src/bootchart/bootchart.h \
4266 src/bootchart/store.c \
4267 src/bootchart/store.h \
4268 src/bootchart/svg.c \
4271 systemd_bootchart_LDADD = \
4272 libsystemd-journal-internal.la \
4273 libsystemd-shared.la
4275 rootlibexec_PROGRAMS += \
4278 dist_pkgsysconf_DATA += \
4279 src/bootchart/bootchart.conf
4282 # ------------------------------------------------------------------------------
4283 if ENABLE_QUOTACHECK
4284 rootlibexec_PROGRAMS += \
4287 nodist_systemunit_DATA += \
4288 units/systemd-quotacheck.service
4290 systemd_quotacheck_SOURCES = \
4291 src/quotacheck/quotacheck.c
4293 systemd_quotacheck_LDADD = \
4294 libsystemd-shared.la
4298 units/systemd-quotacheck.service.in
4300 nodist_systemunit_DATA += \
4301 units/quotaon.service
4303 # ------------------------------------------------------------------------------
4304 if ENABLE_RANDOMSEED
4305 rootlibexec_PROGRAMS += \
4308 nodist_systemunit_DATA += \
4309 units/systemd-random-seed.service
4311 systemd_random_seed_SOURCES = \
4312 src/random-seed/random-seed.c
4314 systemd_random_seed_LDADD = \
4315 libsystemd-label.la \
4316 libsystemd-shared.la
4318 SYSINIT_TARGET_WANTS += \
4319 systemd-random-seed.service
4324 units/systemd-random-seed.service.in
4326 # ------------------------------------------------------------------------------
4328 rootlibexec_PROGRAMS += \
4331 nodist_systemunit_DATA += \
4332 units/systemd-backlight@.service
4334 systemd_backlight_SOURCES = \
4335 src/backlight/backlight.c
4337 systemd_backlight_LDADD = \
4338 libsystemd-label.la \
4339 libudev-internal.la \
4340 libsystemd-shared.la
4344 units/systemd-backlight@.service.in
4346 # ------------------------------------------------------------------------------
4348 rootlibexec_PROGRAMS += \
4351 nodist_systemunit_DATA += \
4352 units/systemd-rfkill@.service
4354 systemd_rfkill_SOURCES = \
4357 systemd_rfkill_LDADD = \
4358 libsystemd-label.la \
4359 libudev-internal.la \
4360 libsystemd-shared.la
4364 units/systemd-rfkill@.service.in
4366 # ------------------------------------------------------------------------------
4367 if HAVE_LIBCRYPTSETUP
4368 rootlibexec_PROGRAMS += \
4371 systemgenerator_PROGRAMS += \
4372 systemd-cryptsetup-generator
4374 dist_systemunit_DATA += \
4375 units/cryptsetup.target \
4376 units/cryptsetup-pre.target
4378 systemd_cryptsetup_SOURCES = \
4379 src/cryptsetup/cryptsetup.c
4381 systemd_cryptsetup_CFLAGS = \
4383 $(LIBCRYPTSETUP_CFLAGS)
4385 systemd_cryptsetup_LDADD = \
4386 libsystemd-label.la \
4387 libudev-internal.la \
4388 libsystemd-shared.la \
4389 $(LIBCRYPTSETUP_LIBS)
4391 systemd_cryptsetup_generator_SOURCES = \
4392 src/cryptsetup/cryptsetup-generator.c
4394 systemd_cryptsetup_generator_LDADD = \
4395 libsystemd-label.la \
4396 libsystemd-shared.la
4398 SYSINIT_TARGET_WANTS += \
4403 # ------------------------------------------------------------------------------
4405 systemd_hostnamed_SOURCES = \
4406 src/hostname/hostnamed.c
4408 systemd_hostnamed_LDADD = \
4409 libsystemd-label.la \
4410 libsystemd-internal.la \
4411 libsystemd-shared.la
4413 rootlibexec_PROGRAMS += \
4416 nodist_systemunit_DATA += \
4417 units/systemd-hostnamed.service
4419 dist_systemunit_DATA += \
4420 units/org.freedesktop.hostname1.busname
4422 dist_dbuspolicy_DATA += \
4423 src/hostname/org.freedesktop.hostname1.conf
4425 dist_dbussystemservice_DATA += \
4426 src/hostname/org.freedesktop.hostname1.service
4428 polkitpolicy_files += \
4429 src/hostname/org.freedesktop.hostname1.policy
4431 SYSTEM_UNIT_ALIASES += \
4432 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4434 BUSNAMES_TARGET_WANTS += \
4435 org.freedesktop.hostname1.busname
4437 hostnamectl_SOURCES = \
4438 src/hostname/hostnamectl.c
4440 hostnamectl_LDADD = \
4441 libsystemd-internal.la \
4442 libsystemd-shared.la
4447 dist_bashcompletion_DATA += \
4448 shell-completion/bash/hostnamectl
4450 dist_zshcompletion_DATA += \
4451 shell-completion/zsh/_hostnamectl
4455 polkitpolicy_in_files += \
4456 src/hostname/org.freedesktop.hostname1.policy.in
4459 units/systemd-hostnamed.service.in
4461 # ------------------------------------------------------------------------------
4463 dist_systemunit_DATA += \
4464 units/org.freedesktop.systemd1.busname
4466 BUSNAMES_TARGET_WANTS += \
4467 org.freedesktop.systemd1.busname
4470 # ------------------------------------------------------------------------------
4472 systemd_localed_SOURCES = \
4473 src/locale/localed.c
4475 systemd_localed_LDADD = \
4476 libsystemd-label.la \
4477 libsystemd-internal.la \
4478 libsystemd-shared.la
4480 nodist_systemunit_DATA += \
4481 units/systemd-localed.service
4483 dist_systemunit_DATA += \
4484 units/org.freedesktop.locale1.busname
4486 rootlibexec_PROGRAMS += \
4489 dist_dbuspolicy_DATA += \
4490 src/locale/org.freedesktop.locale1.conf
4492 dist_dbussystemservice_DATA += \
4493 src/locale/org.freedesktop.locale1.service
4495 polkitpolicy_files += \
4496 src/locale/org.freedesktop.locale1.policy
4498 SYSTEM_UNIT_ALIASES += \
4499 systemd-localed.service dbus-org.freedesktop.locale1.service
4501 BUSNAMES_TARGET_WANTS += \
4502 org.freedesktop.locale1.busname
4504 dist_pkgdata_DATA += \
4505 src/locale/kbd-model-map
4507 dist_noinst_SCRIPT = \
4508 src/locale/generate-kbd-model-map
4510 localectl_SOURCES = \
4511 src/locale/localectl.c
4514 libsystemd-internal.la \
4515 libsystemd-shared.la
4520 dist_bashcompletion_DATA += \
4521 shell-completion/bash/localectl
4523 dist_zshcompletion_DATA += \
4524 shell-completion/zsh/_localectl
4528 .PHONY: update-kbd-model-map
4530 polkitpolicy_in_files += \
4531 src/locale/org.freedesktop.locale1.policy.in
4534 units/systemd-localed.service.in
4536 # ------------------------------------------------------------------------------
4538 systemd_timedated_SOURCES = \
4539 src/timedate/timedated.c
4541 systemd_timedated_LDADD = \
4542 libsystemd-label.la \
4543 libsystemd-internal.la \
4544 libsystemd-shared.la
4546 rootlibexec_PROGRAMS += \
4549 dist_dbussystemservice_DATA += \
4550 src/timedate/org.freedesktop.timedate1.service
4552 dist_dbuspolicy_DATA += \
4553 src/timedate/org.freedesktop.timedate1.conf
4555 nodist_systemunit_DATA += \
4556 units/systemd-timedated.service
4558 dist_systemunit_DATA += \
4559 units/org.freedesktop.timedate1.busname
4561 polkitpolicy_files += \
4562 src/timedate/org.freedesktop.timedate1.policy
4564 SYSTEM_UNIT_ALIASES += \
4565 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4567 BUSNAMES_TARGET_WANTS += \
4568 org.freedesktop.timedate1.busname
4570 timedatectl_SOURCES = \
4571 src/timedate/timedatectl.c
4573 timedatectl_LDADD = \
4574 libsystemd-internal.la \
4575 libsystemd-shared.la
4580 dist_bashcompletion_DATA += \
4581 shell-completion/bash/timedatectl
4583 dist_zshcompletion_DATA += \
4584 shell-completion/zsh/_timedatectl
4587 polkitpolicy_in_files += \
4588 src/timedate/org.freedesktop.timedate1.policy.in
4591 units/systemd-timedated.service.in
4593 # ------------------------------------------------------------------------------
4595 systemd_timesyncd_SOURCES = \
4596 src/timesync/timesyncd.c \
4597 src/timesync/timesyncd-manager.c \
4598 src/timesync/timesyncd-manager.h \
4599 src/timesync/timesyncd-conf.c \
4600 src/timesync/timesyncd-conf.h \
4601 src/timesync/timesyncd-server.c \
4602 src/timesync/timesyncd-server.h
4604 nodist_systemd_timesyncd_SOURCES = \
4605 src/timesync/timesyncd-gperf.c
4608 src/timesync/timesyncd-gperf.gperf
4611 src/timesync/timesyncd-gperf.c
4613 systemd_timesyncd_LDADD = \
4614 libsystemd-resolve.la \
4615 libsystemd-network.la \
4616 libsystemd-label.la \
4617 libsystemd-capability.la \
4618 libsystemd-internal.la \
4619 libsystemd-shared.la \
4622 rootlibexec_PROGRAMS += \
4625 nodist_systemunit_DATA += \
4626 units/systemd-timesyncd.service
4628 GENERAL_ALIASES += \
4629 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
4632 units/systemd-timesyncd.service.in
4634 nodist_pkgsysconf_DATA += \
4635 src/timesync/timesyncd.conf
4638 src/timesync/timesyncd.conf.in
4641 src/timesync/timesyncd.conf
4644 # ------------------------------------------------------------------------------
4646 libnss_myhostname_la_SOURCES = \
4647 src/nss-myhostname/nss-myhostname.sym \
4648 src/nss-myhostname/nss-myhostname.c
4650 libnss_myhostname_la_LDFLAGS = \
4657 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
4659 libnss_myhostname_la_LIBADD = \
4660 libsystemd-shared.la \
4661 libsystemd-internal.la
4663 lib_LTLIBRARIES += \
4664 libnss_myhostname.la
4667 # ------------------------------------------------------------------------------
4669 systemd_machined_SOURCES = \
4670 src/machine/machined.c \
4671 src/machine/machined.h
4673 systemd_machined_LDADD = \
4674 libsystemd-machine-core.la
4676 rootlibexec_PROGRAMS += \
4679 libsystemd_machine_core_la_SOURCES = \
4680 src/machine/machined-dbus.c \
4681 src/machine/machine.c \
4682 src/machine/machine.h \
4683 src/machine/machine-dbus.c
4685 libsystemd_machine_core_la_LIBADD = \
4686 libsystemd-label.la \
4687 libsystemd-internal.la \
4688 libudev-internal.la \
4689 libsystemd-shared.la
4691 noinst_LTLIBRARIES += \
4692 libsystemd-machine-core.la
4694 machinectl_SOURCES = \
4695 src/machine/machinectl.c
4697 machinectl_LDADD = \
4698 libsystemd-internal.la \
4699 libsystemd-shared.la
4701 rootbin_PROGRAMS += \
4704 dist_bashcompletion_DATA += \
4705 shell-completion/bash/machinectl
4707 test_machine_tables_SOURCES = \
4708 src/machine/test-machine-tables.c
4710 test_machine_tables_LDADD = \
4711 libsystemd-machine-core.la
4716 nodist_systemunit_DATA += \
4717 units/systemd-machined.service
4719 dist_systemunit_DATA += \
4720 units/machine.slice \
4721 units/org.freedesktop.machine1.busname
4723 dist_dbussystemservice_DATA += \
4724 src/machine/org.freedesktop.machine1.service
4726 dist_dbuspolicy_DATA += \
4727 src/machine/org.freedesktop.machine1.conf
4729 dist_zshcompletion_DATA += \
4730 shell-completion/zsh/_machinectl \
4731 shell-completion/zsh/_sd_machines
4733 SYSTEM_UNIT_ALIASES += \
4734 systemd-machined.service dbus-org.freedesktop.machine1.service
4736 BUSNAMES_TARGET_WANTS += \
4737 org.freedesktop.machine1.busname
4740 units/systemd-machined.service.in
4742 libnss_mymachines_la_SOURCES = \
4743 src/nss-mymachines/nss-mymachines.sym \
4744 src/nss-mymachines/nss-mymachines.c
4746 libnss_mymachines_la_LDFLAGS = \
4753 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
4755 libnss_mymachines_la_LIBADD = \
4756 libsystemd-shared.la \
4757 libsystemd-internal.la
4759 lib_LTLIBRARIES += \
4760 libnss_mymachines.la
4763 # ------------------------------------------------------------------------------
4765 systemd_resolved_SOURCES = \
4766 src/resolve/resolved.c \
4767 src/resolve/resolved-manager.c \
4768 src/resolve/resolved-manager.h \
4769 src/resolve/resolved-conf.c \
4770 src/resolve/resolved-conf.h \
4771 src/resolve/resolved-bus.c \
4772 src/resolve/resolved-bus.h \
4773 src/resolve/resolved-link.h \
4774 src/resolve/resolved-link.c \
4775 src/resolve/resolved-def.h \
4776 src/resolve/resolved-dns-domain.h \
4777 src/resolve/resolved-dns-domain.c \
4778 src/resolve/resolved-dns-rr.h \
4779 src/resolve/resolved-dns-rr.c \
4780 src/resolve/resolved-dns-question.h \
4781 src/resolve/resolved-dns-question.c \
4782 src/resolve/resolved-dns-answer.h \
4783 src/resolve/resolved-dns-answer.c \
4784 src/resolve/resolved-dns-packet.h \
4785 src/resolve/resolved-dns-packet.c \
4786 src/resolve/resolved-dns-query.h \
4787 src/resolve/resolved-dns-query.c \
4788 src/resolve/resolved-dns-transaction.h \
4789 src/resolve/resolved-dns-transaction.c \
4790 src/resolve/resolved-dns-scope.h \
4791 src/resolve/resolved-dns-scope.c \
4792 src/resolve/resolved-dns-server.h \
4793 src/resolve/resolved-dns-server.c \
4794 src/resolve/resolved-dns-cache.h \
4795 src/resolve/resolved-dns-cache.c \
4796 src/resolve/resolved-dns-zone.h \
4797 src/resolve/resolved-dns-zone.c \
4798 src/resolve/resolved-dns-stream.h \
4799 src/resolve/resolved-dns-stream.c \
4800 src/resolve/dns-type.c \
4801 src/resolve/dns-type.h \
4802 src/resolve/dns_type-from-name.h \
4803 src/resolve/dns_type-to-name.h
4805 nodist_systemd_resolved_SOURCES = \
4806 src/resolve/resolved-gperf.c
4809 src/resolve/resolved-gperf.gperf \
4810 src/resolve/dns_type-from-name.gperf
4813 src/resolve/resolved-gperf.c
4815 systemd_resolved_LDADD = \
4816 libsystemd-capability.la \
4817 libsystemd-network.la \
4818 libsystemd-label.la \
4819 libsystemd-internal.la \
4820 libsystemd-shared.la \
4824 rootlibexec_PROGRAMS += \
4827 nodist_systemunit_DATA += \
4828 units/systemd-resolved.service
4830 dist_systemunit_DATA += \
4831 units/org.freedesktop.resolve1.busname
4833 dist_dbuspolicy_DATA += \
4834 src/resolve/org.freedesktop.resolve1.conf
4836 dist_dbussystemservice_DATA += \
4837 src/resolve/org.freedesktop.resolve1.service
4840 units/systemd-resolved.service.in
4842 SYSTEM_UNIT_ALIASES += \
4843 systemd-resolved.service dbus-org.freedesktop.resolve1.service
4845 BUSNAMES_TARGET_WANTS += \
4846 org.freedesktop.resolve1.busname
4848 GENERAL_ALIASES += \
4849 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
4851 nodist_pkgsysconf_DATA += \
4852 src/resolve/resolved.conf
4855 src/resolve/resolved.conf.in
4858 src/resolve/resolved.conf
4863 test_dns_domain_SOURCES = \
4864 src/resolve/resolved-dns-domain.h \
4865 src/resolve/resolved-dns-domain.c \
4866 src/resolve/test-dns-domain.c
4868 test_dns_domain_LDADD = \
4869 libsystemd-capability.la \
4870 libsystemd-network.la \
4871 libsystemd-label.la \
4872 libsystemd-internal.la \
4873 libsystemd-shared.la \
4876 libnss_resolve_la_SOURCES = \
4877 src/nss-resolve/nss-resolve.sym \
4878 src/nss-resolve/nss-resolve.c
4880 libnss_resolve_la_LDFLAGS = \
4887 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
4889 libnss_resolve_la_LIBADD = \
4890 libsystemd-shared.la \
4891 libsystemd-internal.la
4893 lib_LTLIBRARIES += \
4896 systemd_resolve_host_SOURCES = \
4897 src/resolve-host/resolve-host.c \
4898 src/resolve/resolved-dns-packet.c \
4899 src/resolve/resolved-dns-packet.h \
4900 src/resolve/resolved-dns-rr.c \
4901 src/resolve/resolved-dns-rr.h \
4902 src/resolve/resolved-dns-answer.c \
4903 src/resolve/resolved-dns-answer.h \
4904 src/resolve/resolved-dns-question.c \
4905 src/resolve/resolved-dns-question.h \
4906 src/resolve/resolved-dns-domain.c \
4907 src/resolve/resolved-dns-domain.h \
4908 src/resolve/dns-type.c \
4909 src/resolve/dns-type.h \
4910 src/resolve/dns_type-from-name.h \
4911 src/resolve/dns_type-to-name.h
4913 systemd_resolve_host_LDADD = \
4914 libsystemd-internal.la \
4915 libsystemd-shared.la \
4919 rootlibexec_PROGRAMS += \
4920 systemd-resolve-host
4924 # ------------------------------------------------------------------------------
4926 rootlibexec_PROGRAMS += \
4929 systemd_networkd_SOURCES = \
4930 src/network/networkd.c
4932 systemd_networkd_LDADD = \
4933 libsystemd-networkd-core.la \
4934 libsystemd-capability.la
4936 noinst_LTLIBRARIES += \
4937 libsystemd-networkd-core.la
4939 libsystemd_networkd_core_la_CFLAGS = \
4942 libsystemd_networkd_core_la_SOURCES = \
4943 src/libsystemd-network/network-internal.h \
4944 src/network/networkd.h \
4945 src/network/networkd-link.h \
4946 src/network/networkd-netdev.h \
4947 src/network/networkd-netdev-tunnel.h \
4948 src/network/networkd-netdev-veth.h \
4949 src/network/networkd-netdev-vxlan.h \
4950 src/network/networkd-netdev-vlan.h \
4951 src/network/networkd-netdev-macvlan.h \
4952 src/network/networkd-netdev-dummy.h \
4953 src/network/networkd-netdev-tuntap.h \
4954 src/network/networkd-netdev-bond.h \
4955 src/network/networkd-netdev-bridge.h \
4956 src/network/networkd-netdev.c \
4957 src/network/networkd-netdev-tunnel.c \
4958 src/network/networkd-netdev-veth.c \
4959 src/network/networkd-netdev-vxlan.c \
4960 src/network/networkd-netdev-vlan.c \
4961 src/network/networkd-netdev-macvlan.c \
4962 src/network/networkd-netdev-dummy.c \
4963 src/network/networkd-netdev-tuntap.c \
4964 src/network/networkd-netdev-bond.c \
4965 src/network/networkd-netdev-bridge.c \
4966 src/network/networkd-link.c \
4967 src/network/networkd-ipv4ll.c \
4968 src/network/networkd-dhcp4.c \
4969 src/network/networkd-network.c \
4970 src/network/networkd-address.c \
4971 src/network/networkd-route.c \
4972 src/network/networkd-manager.c \
4973 src/network/networkd-address-pool.c
4975 nodist_libsystemd_networkd_core_la_SOURCES = \
4976 src/network/networkd-network-gperf.c \
4977 src/network/networkd-netdev-gperf.c
4979 libsystemd_networkd_core_la_LIBADD = \
4980 libudev-internal.la \
4981 libsystemd-internal.la \
4982 libsystemd-network.la \
4983 libsystemd-label.la \
4984 libsystemd-shared.la
4986 rootlibexec_PROGRAMS += \
4987 systemd-networkd-wait-online
4989 systemd_networkd_wait_online_CFLAGS = \
4992 systemd_networkd_wait_online_SOURCES = \
4993 src/libsystemd-network/network-internal.h \
4994 src/network/networkd-wait-online.h \
4995 src/network/networkd-wait-online-link.h \
4996 src/network/networkd-wait-online.c \
4997 src/network/networkd-wait-online-manager.c \
4998 src/network/networkd-wait-online-link.c
5000 systemd_networkd_wait_online_LDADD = \
5001 libsystemd-network.la \
5002 libudev-internal.la \
5003 libsystemd-internal.la \
5004 libsystemd-shared.la
5006 rootbin_PROGRAMS += \
5009 networkctl_SOURCES = \
5010 src/network/networkctl.c
5012 networkctl_LDADD = \
5013 libsystemd-internal.la \
5014 libudev-internal.la \
5015 libsystemd-shared.la \
5016 libsystemd-network.la
5018 test_network_SOURCES = \
5019 src/network/test-network.c
5021 test_network_CFLAGS = \
5024 test_network_LDADD = \
5025 libsystemd-networkd-core.la
5027 test_network_tables_SOURCES = \
5028 src/network/test-network-tables.c \
5029 src/shared/test-tables.h
5031 test_network_tables_LDADD = \
5032 libsystemd-networkd-core.la \
5039 nodist_systemunit_DATA += \
5040 units/systemd-networkd.service \
5041 units/systemd-networkd-wait-online.service
5043 GENERAL_ALIASES += \
5044 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5045 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5048 src/network/networkd-network-gperf.gperf \
5049 src/network/networkd-netdev-gperf.gperf \
5050 units/systemd-networkd.service.in \
5051 units/systemd-networkd-wait-online.service.in
5054 src/network/networkd-network-gperf.c \
5055 src/network/networkd-netdev-gperf.c
5058 # ------------------------------------------------------------------------------
5060 systemd_logind_SOURCES = \
5061 src/login/logind.c \
5064 nodist_systemd_logind_SOURCES = \
5065 src/login/logind-gperf.c
5067 systemd_logind_LDADD = \
5068 libsystemd-logind-core.la
5070 libsystemd_logind_core_la_SOURCES = \
5071 src/login/logind-core.c \
5072 src/login/logind-device.c \
5073 src/login/logind-device.h \
5074 src/login/logind-button.c \
5075 src/login/logind-button.h \
5076 src/login/logind-action.c \
5077 src/login/logind-action.h \
5078 src/login/logind-seat.c \
5079 src/login/logind-seat.h \
5080 src/login/logind-session.c \
5081 src/login/logind-session.h \
5082 src/login/logind-session-device.c \
5083 src/login/logind-session-device.h \
5084 src/login/logind-user.c \
5085 src/login/logind-user.h \
5086 src/login/logind-inhibit.c \
5087 src/login/logind-inhibit.h \
5088 src/login/logind-dbus.c \
5089 src/login/logind-session-dbus.c \
5090 src/login/logind-seat-dbus.c \
5091 src/login/logind-user-dbus.c \
5092 src/login/logind-acl.h
5094 libsystemd_logind_core_la_LIBADD = \
5095 libsystemd-label.la \
5096 libsystemd-capability.la \
5097 libsystemd-internal.la \
5098 libudev-internal.la \
5099 libsystemd-shared.la
5102 libsystemd_logind_core_la_SOURCES += \
5103 src/login/logind-acl.c
5105 libsystemd_logind_core_la_LIBADD += \
5109 noinst_LTLIBRARIES += \
5110 libsystemd-logind-core.la
5112 systemd_user_sessions_SOURCES = \
5113 src/login/user-sessions.c
5115 systemd_user_sessions_LDADD = \
5116 libsystemd-shared.la
5118 rootlibexec_PROGRAMS += \
5120 systemd-user-sessions
5122 loginctl_SOURCES = \
5123 src/login/loginctl.c \
5124 src/login/sysfs-show.c
5127 libsystemd-internal.la \
5128 libudev-internal.la \
5129 libsystemd-shared.la
5131 rootbin_PROGRAMS += \
5134 dist_bashcompletion_DATA += \
5135 shell-completion/bash/loginctl
5137 dist_zshcompletion_DATA += \
5138 shell-completion/zsh/_loginctl \
5139 shell-completion/zsh/_systemd-inhibit
5141 systemd_inhibit_SOURCES = \
5144 systemd_inhibit_LDADD = \
5145 libsystemd-internal.la \
5146 libsystemd-shared.la
5148 rootbin_PROGRAMS += \
5151 test_login_SOURCES = \
5152 src/libsystemd/sd-login/test-login.c
5154 test_login_LDADD = \
5155 libsystemd-internal.la \
5156 libsystemd-shared.la
5158 test_login_shared_SOURCES = \
5159 src/login/test-login-shared.c
5161 test_login_shared_LDADD = \
5162 libsystemd-internal.la \
5163 libsystemd-shared.la
5165 test_inhibit_SOURCES = \
5166 src/login/test-inhibit.c
5168 test_inhibit_LDADD = \
5169 libsystemd-internal.la \
5170 libsystemd-shared.la
5172 test_login_tables_SOURCES = \
5173 src/login/test-login-tables.c
5175 test_login_tables_LDADD = \
5176 libsystemd-logind-core.la
5187 pam_systemd_la_SOURCES = \
5188 src/login/pam_systemd.sym \
5189 src/login/pam_systemd.c
5191 pam_systemd_la_CFLAGS = \
5196 pam_systemd_la_LDFLAGS = \
5202 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5204 pam_systemd_la_LIBADD = \
5205 libsystemd-capability.la \
5206 libsystemd-internal.la \
5207 libsystemd-shared.la \
5210 pamlib_LTLIBRARIES = \
5213 dist_pamconf_DATA = \
5214 src/login/systemd-user
5217 nodist_systemunit_DATA += \
5218 units/systemd-logind.service \
5219 units/systemd-user-sessions.service
5221 dist_systemunit_DATA += \
5223 units/org.freedesktop.login1.busname
5225 dist_dbussystemservice_DATA += \
5226 src/login/org.freedesktop.login1.service
5228 dist_dbuspolicy_DATA += \
5229 src/login/org.freedesktop.login1.conf
5231 dist_pkgsysconf_DATA += \
5232 src/login/logind.conf
5234 polkitpolicy_files += \
5235 src/login/org.freedesktop.login1.policy
5240 MULTI_USER_TARGET_WANTS += \
5241 systemd-logind.service \
5242 systemd-user-sessions.service
5244 SYSTEM_UNIT_ALIASES += \
5245 systemd-logind.service dbus-org.freedesktop.login1.service
5247 BUSNAMES_TARGET_WANTS += \
5248 org.freedesktop.login1.busname
5250 if ENABLE_MULTI_SEAT_X
5252 systemd_multi_seat_x_SOURCES = \
5253 src/login/multi-seat-x.c
5255 systemd_multi_seat_x_LDADD = \
5256 libsystemd-label.la \
5257 libsystemd-shared.la
5259 rootlibexec_PROGRAMS += \
5260 systemd-multi-seat-x
5264 dist_udevrules_DATA += \
5265 src/login/70-uaccess.rules \
5266 src/login/70-power-switch.rules
5268 nodist_udevrules_DATA += \
5269 src/login/71-seat.rules \
5270 src/login/73-seat-late.rules
5273 src/login/logind-gperf.c \
5274 src/login/71-seat.rules \
5275 src/login/73-seat-late.rules
5278 polkitpolicy_in_files += \
5279 src/login/org.freedesktop.login1.policy.in
5282 src/login/logind-gperf.gperf \
5283 src/login/71-seat.rules.in \
5284 src/login/73-seat-late.rules.in \
5285 units/systemd-logind.service.in \
5286 units/systemd-user-sessions.service.in
5288 # ------------------------------------------------------------------------------
5289 if HAVE_PYTHON_DEVEL
5290 pkgpyexec_LTLIBRARIES = \
5297 _journal_la_SOURCES = \
5298 src/python-systemd/_journal.c
5300 _journal_la_CFLAGS = \
5302 -fvisibility=default \
5303 $(PYTHON_DEVEL_CFLAGS)
5305 _journal_la_LDFLAGS = \
5311 _journal_la_LIBADD = \
5312 $(PYTHON_DEVEL_LIBS) \
5315 id128_la_SOURCES = \
5316 src/python-systemd/id128.c \
5317 src/python-systemd/pyutil.c \
5318 src/python-systemd/pyutil.h
5320 nodist_id128_la_SOURCES = \
5321 src/python-systemd/id128-constants.h
5325 -fvisibility=default \
5326 $(PYTHON_DEVEL_CFLAGS) \
5327 -I$(top_builddir)/src/python-systemd
5329 id128_la_LDFLAGS = \
5336 $(PYTHON_DEVEL_LIBS) \
5337 libsystemd-shared.la \
5340 _daemon_la_SOURCES = \
5341 src/python-systemd/_daemon.c \
5342 src/python-systemd/pyutil.c \
5343 src/python-systemd/pyutil.h
5345 _daemon_la_CFLAGS = \
5347 -fvisibility=default \
5348 $(PYTHON_DEVEL_CFLAGS) \
5349 -I$(top_builddir)/src/python-systemd
5351 _daemon_la_LDFLAGS = \
5357 _daemon_la_LIBADD = \
5358 $(PYTHON_DEVEL_LIBS) \
5359 libsystemd-shared.la \
5362 _reader_la_SOURCES = \
5363 src/python-systemd/_reader.c \
5364 src/python-systemd/pyutil.c \
5365 src/python-systemd/pyutil.h
5367 _reader_la_CFLAGS = \
5369 -fvisibility=default \
5370 $(PYTHON_DEVEL_CFLAGS)
5372 _reader_la_LDFLAGS = \
5378 _reader_la_LIBADD = \
5379 $(PYTHON_DEVEL_LIBS) \
5380 libsystemd-shared.la \
5383 login_la_SOURCES = \
5384 src/python-systemd/login.c \
5385 src/python-systemd/pyutil.c \
5386 src/python-systemd/pyutil.h
5390 -fvisibility=default \
5391 $(PYTHON_DEVEL_CFLAGS)
5393 login_la_LDFLAGS = \
5400 $(PYTHON_DEVEL_LIBS) \
5401 libsystemd-shared.la \
5404 dist_pkgpyexec_PYTHON = \
5405 src/python-systemd/journal.py \
5406 src/python-systemd/daemon.py \
5407 src/python-systemd/__init__.py
5409 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
5410 $(AM_V_at)$(MKDIR_P) $(dir $@)
5411 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
5414 src/python-systemd/id128-constants.h
5416 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
5418 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
5419 $(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/
5420 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
5423 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
5424 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
5427 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
5428 $(MAKE) DESTDIR="$$dir" install && \
5429 $(MAKE) DESTDIR="$$dir" sphinx-html && \
5434 CLEAN_LOCAL_HOOKS += clean-sphinx
5436 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
5439 -rm -rf docs/html/python-systemd/
5441 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
5443 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
5444 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
5446 # ------------------------------------------------------------------------------
5447 if ENABLE_COMPAT_LIBS
5449 src/compat-libs/linkwarning.h
5451 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
5452 $(AM_V_at)$(MKDIR_P) $(dir $@)
5453 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
5456 libsystemd-journal.c \
5457 libsystemd-login.c \
5458 libsystemd-id128.c \
5461 libsystemd_journal_la_SOURCES = \
5462 libsystemd-journal.c \
5463 src/compat-libs/libsystemd-journal.sym
5465 libsystemd_journal_la_CPPFLAGS = \
5467 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5469 libsystemd_journal_la_LDFLAGS = \
5471 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
5472 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
5474 libsystemd_journal_la_LIBADD = \
5475 libsystemd-journal-internal.la \
5476 libsystemd-internal.la \
5477 libsystemd-shared.la
5479 libsystemd_login_la_SOURCES = \
5480 libsystemd-login.c \
5481 src/compat-libs/libsystemd-login.sym
5483 libsystemd_login_la_CPPFLAGS = \
5485 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5487 libsystemd_login_la_LDFLAGS = \
5489 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
5490 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
5492 libsystemd_login_la_LIBADD = \
5493 libsystemd-internal.la \
5494 libsystemd-shared.la
5496 libsystemd_id128_la_SOURCES = \
5497 libsystemd-id128.c \
5498 src/compat-libs/libsystemd-id128.sym
5500 libsystemd_id128_la_CPPFLAGS = \
5502 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5504 libsystemd_id128_la_LDFLAGS = \
5506 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
5507 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
5509 libsystemd_id128_la_LIBADD = \
5510 libsystemd-internal.la \
5511 libsystemd-shared.la
5513 libsystemd_daemon_la_SOURCES = \
5514 libsystemd-daemon.c \
5515 src/compat-libs/libsystemd-daemon.sym
5517 libsystemd_daemon_la_CPPFLAGS = \
5519 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5521 libsystemd_daemon_la_LDFLAGS = \
5523 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
5524 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
5526 libsystemd_daemon_la_LIBADD = \
5527 libsystemd-internal.la \
5528 libsystemd-shared.la
5530 lib_LTLIBRARIES += \
5531 libsystemd-journal.la \
5532 libsystemd-login.la \
5533 libsystemd-id128.la \
5534 libsystemd-daemon.la
5536 pkgconfiglib_DATA += \
5537 src/compat-libs/libsystemd-journal.pc \
5538 src/compat-libs/libsystemd-login.pc \
5539 src/compat-libs/libsystemd-id128.pc \
5540 src/compat-libs/libsystemd-daemon.pc
5542 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
5543 compat-lib-install-hook:
5544 libname=libsystemd-login.so && $(move-to-rootlibdir)
5545 libname=libsystemd-journal.so && $(move-to-rootlibdir)
5546 libname=libsystemd-id128.so && $(move-to-rootlibdir)
5547 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
5549 compat-lib-uninstall-hook:
5550 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
5551 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
5552 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
5553 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
5555 INSTALL_EXEC_HOOKS += compat-lib-install-hook
5556 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
5560 src/compat-libs/libsystemd-journal.pc.in \
5561 src/compat-libs/libsystemd-login.pc.in \
5562 src/compat-libs/libsystemd-id128.pc.in \
5563 src/compat-libs/libsystemd-daemon.pc.in
5565 # ------------------------------------------------------------------------------
5567 '|rootlibexecdir=$(rootlibexecdir)|' \
5568 '|rootbindir=$(rootbindir)|' \
5569 '|bindir=$(bindir)|' \
5570 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5571 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5572 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5573 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5574 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
5575 '|pkgdatadir=$(pkgdatadir)|' \
5576 '|systemunitdir=$(systemunitdir)|' \
5577 '|userunitdir=$(userunitdir)|' \
5578 '|systempresetdir=$(systempresetdir)|' \
5579 '|userpresetdir=$(userpresetdir)|' \
5580 '|udevhwdbdir=$(udevhwdbdir)|' \
5581 '|udevrulesdir=$(udevrulesdir)|' \
5582 '|catalogdir=$(catalogdir)|' \
5583 '|tmpfilesdir=$(tmpfilesdir)|' \
5584 '|sysusersdir=$(sysusersdir)|' \
5585 '|sysctldir=$(sysctldir)|' \
5586 '|systemgeneratordir=$(systemgeneratordir)|' \
5587 '|usergeneratordir=$(usergeneratordir)|' \
5588 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
5589 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
5590 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
5591 '|PACKAGE_URL=$(PACKAGE_URL)|' \
5592 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
5593 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
5594 '|prefix=$(prefix)|' \
5595 '|exec_prefix=$(exec_prefix)|' \
5596 '|libdir=$(libdir)|' \
5597 '|includedir=$(includedir)|' \
5598 '|VERSION=$(VERSION)|' \
5599 '|rootprefix=$(rootprefix)|' \
5600 '|udevlibexecdir=$(udevlibexecdir)|' \
5601 '|SUSHELL=$(SUSHELL)|' \
5602 '|DEBUGTTY=$(DEBUGTTY)|' \
5605 '|MKDIR_P=$(MKDIR_P)|' \
5606 '|QUOTAON=$(QUOTAON)|' \
5607 '|QUOTACHECK=$(QUOTACHECK)|' \
5608 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
5609 '|VARLOGDIR=$(varlogdir)|' \
5610 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
5611 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
5612 '|PYTHON=$(PYTHON)|' \
5613 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
5614 '|NTP_SERVERS=$(NTP_SERVERS)|' \
5615 '|DNS_SERVERS=$(DNS_SERVERS)|' \
5616 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
5617 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
5618 '|TTY_GID=$(TTY_GID)|' \
5619 '|systemsleepdir=$(systemsleepdir)|' \
5620 '|systemshutdowndir=$(systemshutdowndir)|' \
5621 '|binfmtdir=$(binfmtdir)|' \
5622 '|modulesloaddir=$(modulesloaddir)|'
5625 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
5626 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
5635 sysctl.d/%: sysctl.d/%.in
5644 src/core/macros.%: src/core/macros.%.in
5647 src/%.policy.in: src/%.policy.in.in
5650 shell-completion/%: shell-completion/%.in
5661 $(AM_V_GEN)chmod +x $@
5663 src/%.c: src/%.gperf
5664 $(AM_V_at)$(MKDIR_P) $(dir $@)
5665 $(AM_V_GPERF)$(GPERF) < $< > $@
5668 $(AM_V_at)$(MKDIR_P) $(dir $@)
5669 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5672 $(AM_V_at)$(MKDIR_P) $(dir $@)
5673 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
5675 units/user/%: units/%.m4
5676 $(AM_V_at)$(MKDIR_P) $(dir $@)
5677 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
5680 nodist_polkitpolicy_DATA = \
5681 $(polkitpolicy_files) \
5682 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
5686 $(polkitpolicy_in_files) \
5687 $(polkitpolicy_in_in_files)
5690 $(nodist_systemunit_DATA) \
5691 $(nodist_userunit_DATA) \
5692 $(pkgconfigdata_DATA) \
5693 $(pkgconfiglib_DATA) \
5694 $(nodist_polkitpolicy_DATA)
5696 # ------------------------------------------------------------------------------
5698 man/custom-entities.ent: configure.ac
5699 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
5700 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
5701 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
5705 man/custom-entities.ent
5710 --stringparam man.output.quietly 1 \
5711 --stringparam funcsynopsis.style ansi \
5712 --stringparam man.authors.section.enabled 0 \
5713 --stringparam man.copyright.section.enabled 0 \
5714 --stringparam systemd.version $(VERSION) \
5715 --path '$(builddir)/man:$(srcdir)/man'
5717 XSLTPROC_PROCESS_MAN = \
5718 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
5720 XSLTPROC_PROCESS_HTML = \
5721 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
5723 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
5724 $(XSLTPROC_PROCESS_MAN)
5726 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
5727 $(XSLTPROC_PROCESS_MAN)
5729 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
5730 $(XSLTPROC_PROCESS_MAN)
5732 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
5733 $(XSLTPROC_PROCESS_MAN)
5735 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
5736 $(XSLTPROC_PROCESS_MAN)
5738 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
5739 $(XSLTPROC_PROCESS_HTML)
5742 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
5748 man/custom-html.xsl \
5751 # ------------------------------------------------------------------------------
5754 docs/sysvinit/README
5759 docs/sysvinit/README: docs/sysvinit/README.in
5762 docs/var-log/README: docs/var-log/README.in
5766 docs/sysvinit/README \
5771 docs/sysvinit/README.in \
5772 docs/var-log/README.in
5774 SOCKETS_TARGET_WANTS += \
5775 systemd-initctl.socket \
5776 systemd-shutdownd.socket
5779 RUNLEVEL1_TARGET_WANTS += \
5780 systemd-update-utmp-runlevel.service
5781 RUNLEVEL2_TARGET_WANTS += \
5782 systemd-update-utmp-runlevel.service
5783 RUNLEVEL3_TARGET_WANTS += \
5784 systemd-update-utmp-runlevel.service
5785 RUNLEVEL4_TARGET_WANTS += \
5786 systemd-update-utmp-runlevel.service
5787 RUNLEVEL5_TARGET_WANTS += \
5788 systemd-update-utmp-runlevel.service
5791 SYSINIT_TARGET_WANTS += \
5792 systemd-update-utmp.service \
5793 systemd-update-done.service
5795 LOCAL_FS_TARGET_WANTS += \
5796 systemd-remount-fs.service \
5799 MULTI_USER_TARGET_WANTS += \
5801 systemd-ask-password-wall.path
5803 SYSINIT_TARGET_WANTS += \
5804 dev-hugepages.mount \
5806 sys-kernel-config.mount \
5807 sys-kernel-debug.mount \
5808 sys-fs-fuse-connections.mount \
5809 systemd-sysctl.service \
5810 systemd-ask-password-console.path
5813 SYSTEM_UNIT_ALIASES += \
5814 poweroff.target runlevel0.target \
5815 rescue.target runlevel1.target \
5816 multi-user.target runlevel2.target \
5817 multi-user.target runlevel3.target \
5818 multi-user.target runlevel4.target \
5819 graphical.target runlevel5.target \
5820 reboot.target runlevel6.target
5823 SYSTEM_UNIT_ALIASES += \
5824 graphical.target default.target \
5825 reboot.target ctrl-alt-del.target \
5826 getty@.service autovt@.service
5828 USER_UNIT_ALIASES += \
5829 $(systemunitdir)/shutdown.target shutdown.target \
5830 $(systemunitdir)/sockets.target sockets.target \
5831 $(systemunitdir)/busnames.target busnames.target \
5832 $(systemunitdir)/timers.target timers.target \
5833 $(systemunitdir)/paths.target paths.target \
5834 $(systemunitdir)/bluetooth.target bluetooth.target \
5835 $(systemunitdir)/printer.target printer.target \
5836 $(systemunitdir)/sound.target sound.target \
5837 $(systemunitdir)/smartcard.target smartcard.target
5839 GENERAL_ALIASES += \
5840 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
5841 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
5842 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
5843 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
5847 $(systemunitdir)/runlevel1.target.wants \
5848 $(systemunitdir)/runlevel2.target.wants \
5849 $(systemunitdir)/runlevel3.target.wants \
5850 $(systemunitdir)/runlevel4.target.wants \
5851 $(systemunitdir)/runlevel5.target.wants
5855 $(prefix)/lib/modules-load.d \
5856 $(sysconfdir)/modules-load.d \
5857 $(prefix)/lib/systemd/network \
5858 $(sysconfdir)/systemd/network \
5859 $(prefix)/lib/sysctl.d \
5860 $(sysconfdir)/sysctl.d \
5861 $(prefix)/lib/kernel/install.d \
5862 $(sysconfdir)/kernel/install.d \
5863 $(systemshutdowndir) \
5865 $(systemgeneratordir) \
5866 $(usergeneratordir) \
5869 $(pkgsysconfdir)/system \
5870 $(pkgsysconfdir)/system/multi-user.target.wants \
5871 $(pkgsysconfdir)/system/getty.target.wants \
5872 $(pkgsysconfdir)/user \
5873 $(dbussessionservicedir) \
5874 $(sysconfdir)/xdg/systemd
5876 install-exec-hook: $(INSTALL_EXEC_HOOKS)
5878 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
5880 install-data-hook: $(INSTALL_DATA_HOOKS)
5882 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
5884 clean-local: $(CLEAN_LOCAL_HOOKS)
5885 rm -rf $(abs_srcdir)/install-tree
5886 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
5887 $(abs_srcdir)/hwdb/iab.txt
5889 DISTCHECK_CONFIGURE_FLAGS = \
5890 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
5891 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
5892 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
5893 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
5894 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
5895 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
5896 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
5897 --with-rootprefix=$$dc_install_base \
5898 --disable-split-usr \
5900 --enable-compat-libs
5903 DISTCHECK_CONFIGURE_FLAGS += \
5904 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
5905 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
5907 DISTCHECK_CONFIGURE_FLAGS += \
5908 --with-sysvinit-path= \
5909 --with-sysvrcnd-path=
5913 DISTCHECK_CONFIGURE_FLAGS += \
5918 DISTCHECK_CONFIGURE_FLAGS += \
5923 # Require python when making dist
5925 .PHONY: dist-check-python
5928 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
5932 dist-check-compat-libs:
5933 if !ENABLE_COMPAT_LIBS
5934 @echo "*** compat-libs must be enabled in order to make dist"
5938 dist: dist-check-python dist-check-compat-libs
5940 # check "broken" platforms limited toolchains for link breakage before we release
5943 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
5947 ( cd $(top_srcdir)/hwdb && \
5948 wget -N http://www.linux-usb.org/usb.ids \
5949 http://pci-ids.ucw.cz/v2.2/pci.ids \
5950 http://standards.ieee.org/develop/regauth/oui/oui.txt \
5951 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
5954 .PHONY: kdbus-update
5956 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
5957 wget -N https://d-bus.googlecode.com/git/kdbus.h )
5961 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
5963 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
5965 upload: all check dist
5966 scp systemd-$(VERSION).tar.xz $(www_target)
5969 doc-sync: all destdir-sphinx
5970 gtkdoc-rebase --html-dir=docs/libudev/html --online
5971 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
5972 gtkdoc-rebase --html-dir=docs/gudev/html --online
5973 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
5974 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
5975 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
5979 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
5980 scp man/*.html tango:public/systemd-man/
5982 .PHONY: install-tree
5984 rm -rf $(abs_srcdir)/install-tree
5985 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
5986 tree $(abs_srcdir)/install-tree
5988 # Let's run all tests of the test suite, but under valgrind. Let's
5989 # exclude the one perl script we have in there
5990 .PHONY: valgrind-tests
5991 valgrind-tests: $(TESTS)
5992 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
5993 if file $$f | grep -q shell; then \
5994 echo -e "$${x}Skipping non-binary $$f"; else \
5995 echo -e "$${x}Running $$f"; \
5996 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6001 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6003 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6004 $(AM_V_GEN)cat $^ > $@
6006 .PHONY: check-api-docs
6007 check-api-docs: exported man
6008 $(AM_V_GEN)for symbol in `cat exported` ; do \
6009 if test -f $(builddir)/man/$$symbol.html ; then \
6010 echo " Symbol $$symbol() is documented." ; \
6012 echo "‣ Symbol $$symbol() lacks documentation." ; \
6016 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6017 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6019 undefined defined: $(ALL_OBJECTS)
6020 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6021 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6022 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6028 .PHONY: check-api-unused
6029 check-api-unused: defined undefined exported
6030 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6032 .PHONY: check-includes
6033 check-includes: $(top_srcdir)/tools/check-includes.pl
6034 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6035 | xargs $(top_srcdir)/tools/check-includes.pl
6038 $(top_srcdir)/tools/check-includes.pl
6040 # Stupid test that everything purported to be exported really is
6041 define generate-sym-test
6042 $(AM_V_at)$(MKDIR_P) $(dir $@)
6043 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6044 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6045 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6046 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6047 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6048 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6049 $(AM_V_at)printf 'return 0; }\n' >> $@
6052 test-libsystemd-sym.c: \
6053 $(top_builddir)/src/libsystemd/libsystemd.sym \
6054 src/systemd/sd-journal.h \
6055 src/systemd/sd-daemon.h \
6056 src/systemd/sd-login.h \
6057 src/systemd/sd-bus.h \
6058 src/systemd/sd-utf8.h \
6059 src/systemd/sd-resolve.h \
6060 src/systemd/sd-path.h
6061 $(generate-sym-test)
6063 test-libudev-sym.c: \
6064 src/libudev/libudev.sym \
6066 $(generate-sym-test)
6068 test_libsystemd_sym_SOURCES = \
6069 test-libsystemd-sym.c
6070 test_libsystemd_sym_LDADD = \
6073 test_libudev_sym_SOURCES = \
6075 test_libudev_sym_CFLAGS = \
6077 -Wno-deprecated-declarations
6078 test_libudev_sym_LDADD = \
6082 $(test_libsystemd_sym_SOURCES) \
6083 $(test_libudev_sym_SOURCES)
6086 test-libsystemd-sym \
6091 cppcheck --enable=all -q $(top_srcdir)
6093 # Used to extract compile flags for YCM.
6098 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u