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 \
1332 test/daughter.service \
1337 test/grandchild.service \
1339 test/hello-after-sleep.target \
1340 test/hello.service \
1342 test/parent-deep.slice \
1345 test/sched_idle_bad.service \
1346 test/sched_idle_ok.service \
1347 test/sched_rr_bad.service \
1348 test/sched_rr_change.service \
1349 test/sched_rr_ok.service \
1350 test/shutdown.target \
1351 test/sleep.service \
1352 test/sockets.target \
1354 test/sysinit.target \
1355 test/testsuite.target \
1356 test/timers.target \
1357 test/unstoppable.service
1360 src/test/test-helper.h
1362 test_device_nodes_SOURCES = \
1363 src/test/test-device-nodes.c
1365 test_device_nodes_LDADD = \
1366 libsystemd-shared.la
1368 test_engine_SOURCES = \
1369 src/test/test-engine.c
1371 test_engine_CFLAGS = \
1375 test_engine_LDADD = \
1376 libsystemd-core.la \
1379 test_job_type_SOURCES = \
1380 src/test/test-job-type.c
1382 test_job_type_CFLAGS = \
1386 test_job_type_LDADD = \
1387 libsystemd-core.la \
1400 test_loopback_SOURCES = \
1401 src/test/test-loopback.c
1403 test_loopback_LDADD = \
1406 test_hostname_SOURCES = \
1407 src/test/test-hostname.c
1409 test_hostname_LDADD = \
1416 test_boot_timestamp_SOURCES = \
1417 src/test/test-boot-timestamps.c
1419 test_boot_timestamp_LDADD = \
1420 libsystemd-shared.la
1423 test_unit_name_SOURCES = \
1424 src/test/test-unit-name.c
1426 test_unit_name_CFLAGS = \
1430 test_unit_name_LDADD = \
1431 libsystemd-core.la \
1434 test_unit_file_SOURCES = \
1435 src/test/test-unit-file.c
1437 test_unit_file_CFLAGS = \
1441 test_unit_file_LDADD = \
1442 libsystemd-core.la \
1445 test_utf8_SOURCES = \
1446 src/test/test-utf8.c
1449 libsystemd-shared.la
1451 test_capability_SOURCES = \
1452 src/test/test-capability.c
1454 test_capability_LDADD = \
1455 libsystemd-shared.la \
1456 libsystemd-capability.la
1458 test_async_SOURCES = \
1459 src/test/test-async.c
1461 test_async_LDADD = \
1462 libsystemd-shared.la
1464 test_condition_util_SOURCES = \
1465 src/test/test-condition-util.c
1467 test_condition_util_LDADD = \
1468 libsystemd-shared.la \
1469 libsystemd-internal.la
1472 test_fdset_SOURCES = \
1473 src/test/test-fdset.c
1475 test_fdset_LDADD = \
1478 test_ratelimit_SOURCES = \
1479 src/test/test-ratelimit.c
1481 test_ratelimit_LDADD = \
1482 libsystemd-shared.la
1484 test_util_SOURCES = \
1485 src/test/test-util.c
1490 test_socket_util_SOURCES = \
1491 src/test/test-socket-util.c
1493 test_socket_util_LDADD = \
1496 test_ring_SOURCES = \
1497 src/test/test-ring.c
1502 test_barrier_SOURCES = \
1503 src/test/test-barrier.c
1505 test_barrier_LDADD = \
1508 test_pty_SOURCES = \
1514 test_tmpfiles_SOURCES = \
1515 src/test/test-tmpfiles.c
1517 test_tmpfiles_LDADD = \
1518 libsystemd-shared.la
1520 test_namespace_SOURCES = \
1521 src/test/test-namespace.c
1523 test_namespace_LDADD = \
1526 test_hashmap_SOURCES = \
1527 src/test/test-hashmap.c
1529 test_hashmap_LDADD = \
1532 test_xml_SOURCES = \
1536 libsystemd-shared.la
1538 test_list_SOURCES = \
1539 src/test/test-list.c
1544 test_tables_SOURCES = \
1545 src/test/test-tables.c \
1546 src/shared/test-tables.h \
1547 src/bus-proxyd/bus-policy.c \
1548 src/bus-proxyd/bus-policy.h \
1549 src/journal/journald-server.c \
1550 src/journal/journald-server.h
1552 test_tables_CPPFLAGS = \
1554 -I$(top_srcdir)/src/bus-proxyd
1556 test_tables_CFLAGS = \
1560 test_tables_LDADD = \
1561 libsystemd-logs.la \
1562 libsystemd-journal-internal.la \
1563 libsystemd-journal-core.la \
1564 libsystemd-core.la \
1568 test_prioq_SOURCES = \
1569 src/test/test-prioq.c
1571 test_prioq_LDADD = \
1574 test_fileio_SOURCES = \
1575 src/test/test-fileio.c
1577 test_fileio_LDADD = \
1580 test_time_SOURCES = \
1581 src/test/test-time.c
1586 test_architecture_SOURCES = \
1587 src/test/test-architecture.c
1589 test_architecture_LDADD = \
1590 libsystemd-shared.la
1592 test_log_SOURCES = \
1598 test_ipcrm_SOURCES = \
1599 src/test/test-ipcrm.c
1601 test_ipcrm_LDADD = \
1602 libsystemd-shared.la \
1605 test_rtnl_manual_SOURCES = \
1606 src/test/test-rtnl-manual.c
1608 test_rtnl_manual_CFLAGS = \
1612 test_rtnl_manual_LDADD = \
1613 libsystemd-internal.la \
1614 libsystemd-shared.la \
1617 test_ellipsize_SOURCES = \
1618 src/test/test-ellipsize.c
1620 test_ellipsize_LDADD = \
1623 test_date_SOURCES = \
1624 src/test/test-date.c
1629 test_sleep_SOURCES = \
1630 src/test/test-sleep.c
1632 test_sleep_LDADD = \
1635 test_replace_var_SOURCES = \
1636 src/test/test-replace-var.c
1638 test_replace_var_LDADD = \
1639 libsystemd-shared.la
1641 test_calendarspec_SOURCES = \
1642 src/test/test-calendarspec.c
1644 test_calendarspec_LDADD = \
1645 libsystemd-shared.la
1647 test_strip_tab_ansi_SOURCES = \
1648 src/test/test-strip-tab-ansi.c
1650 test_strip_tab_ansi_LDADD = \
1651 libsystemd-shared.la
1653 test_daemon_SOURCES = \
1654 src/test/test-daemon.c
1656 test_daemon_LDADD = \
1657 libsystemd-internal.la \
1658 libsystemd-shared.la
1660 test_cgroup_SOURCES = \
1661 src/test/test-cgroup.c
1663 test_cgroup_LDADD = \
1664 libsystemd-label.la \
1665 libsystemd-shared.la \
1666 libsystemd-internal.la
1668 test_cgroup_mask_SOURCES = \
1669 src/test/test-cgroup-mask.c
1671 test_cgroup_mask_CPPFLAGS = \
1673 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1675 test_cgroup_mask_CFLAGS = \
1679 test_cgroup_mask_LDADD = \
1680 libsystemd-core.la \
1683 test_cgroup_util_SOURCES = \
1684 src/test/test-cgroup-util.c
1686 test_cgroup_util_LDADD = \
1687 libsystemd-label.la \
1688 libsystemd-internal.la \
1689 libsystemd-shared.la
1691 test_env_replace_SOURCES = \
1692 src/test/test-env-replace.c
1694 test_env_replace_LDADD = \
1695 libsystemd-shared.la
1697 test_strbuf_SOURCES = \
1698 src/test/test-strbuf.c
1700 test_strbuf_LDADD = \
1701 libsystemd-shared.la
1703 test_strv_SOURCES = \
1704 src/test/test-strv.c
1707 libsystemd-units.la \
1708 libsystemd-internal.la \
1709 libsystemd-shared.la
1711 test_path_util_SOURCES = \
1712 src/test/test-path-util.c
1714 test_path_util_LDADD = \
1715 libsystemd-shared.la
1717 test_strxcpyx_SOURCES = \
1718 src/test/test-strxcpyx.c
1720 test_strxcpyx_LDADD = \
1721 libsystemd-shared.la
1723 test_install_SOURCES = \
1724 src/test/test-install.c
1726 test_install_LDADD = \
1727 libsystemd-units.la \
1728 libsystemd-label.la \
1729 libsystemd-shared.la \
1730 libsystemd-internal.la
1732 test_watchdog_SOURCES = \
1733 src/test/test-watchdog.c
1735 test_watchdog_LDADD = \
1736 libsystemd-shared.la
1738 test_sched_prio_SOURCES = \
1739 src/test/test-sched-prio.c
1741 test_sched_prio_CPPFLAGS = \
1743 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1745 test_sched_prio_CFLAGS = \
1749 test_sched_prio_LDADD = \
1750 libsystemd-core.la \
1753 test_conf_files_SOURCES = \
1754 src/test/test-conf-files.c
1756 test_conf_files_LDADD = \
1757 libsystemd-shared.la
1759 # ------------------------------------------------------------------------------
1760 ## .PHONY so it always rebuilds it
1761 .PHONY: coverage lcov-run lcov-report coverage-sync
1763 # run lcov from scratch, always
1768 coverage_dir = coverage
1769 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1772 # reset run coverage tests
1774 @rm -rf $(coverage_dir)
1775 lcov $(coverage_opts) --zerocounters
1778 # generate report based on current coverage data
1780 $(MKDIR_P) $(coverage_dir)
1781 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1782 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1783 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1784 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1786 # lcov doesn't work properly with vpath builds, make sure that bad
1787 # output is not uploaded by mistake.
1788 coverage-sync: coverage
1789 test "$(builddir)" = "$(srcdir)"
1790 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1793 lcov-run lcov-report:
1794 echo "Need to reconfigure with --enable-coverage"
1797 # ------------------------------------------------------------------------------
1798 systemd_analyze_SOURCES = \
1799 src/analyze/analyze.c \
1800 src/analyze/analyze-verify.c \
1801 src/analyze/analyze-verify.h
1803 systemd_verify_CFLAGS = \
1807 systemd_analyze_LDADD = \
1808 libsystemd-core.la \
1809 libsystemd-internal.la \
1810 libsystemd-shared.la \
1813 # ------------------------------------------------------------------------------
1814 systemd_initctl_SOURCES = \
1815 src/initctl/initctl.c
1817 systemd_initctl_LDADD = \
1818 libsystemd-internal.la \
1819 libsystemd-shared.la
1821 # ------------------------------------------------------------------------------
1822 systemd_update_utmp_SOURCES = \
1823 src/update-utmp/update-utmp.c
1825 systemd_update_utmp_CFLAGS = \
1829 systemd_update_utmp_LDADD = \
1830 libsystemd-internal.la \
1831 libsystemd-shared.la \
1834 # ------------------------------------------------------------------------------
1835 systemd_update_done_SOURCES = \
1836 src/update-done/update-done.c
1838 systemd_update_done_LDADD = \
1839 libsystemd-internal.la \
1840 libsystemd-label.la \
1841 libsystemd-shared.la
1843 # ------------------------------------------------------------------------------
1844 systemd_shutdownd_SOURCES = \
1845 src/shutdownd/shutdownd.c
1847 systemd_shutdownd_LDADD = \
1848 libsystemd-label.la \
1849 libsystemd-internal.la \
1850 libsystemd-shared.la
1853 src/systemd/sd-shutdown.h
1855 # ------------------------------------------------------------------------------
1856 systemd_shutdown_SOURCES = \
1859 src/core/shutdown.c \
1860 src/core/mount-setup.c \
1861 src/core/mount-setup.h \
1862 src/core/killall.h \
1865 systemd_shutdown_LDADD = \
1866 libsystemd-label.la \
1867 libudev-internal.la \
1868 libsystemd-shared.la
1870 # ------------------------------------------------------------------------------
1872 systemd_modules_load_SOURCES = \
1873 src/modules-load/modules-load.c
1875 systemd_modules_load_CFLAGS = \
1879 systemd_modules_load_LDADD = \
1880 libsystemd-shared.la \
1883 rootlibexec_PROGRAMS += \
1884 systemd-modules-load
1886 nodist_systemunit_DATA += \
1887 units/systemd-modules-load.service
1889 SYSINIT_TARGET_WANTS += \
1890 systemd-modules-load.service
1893 nodist_systemunit_DATA += \
1894 units/kmod-static-nodes.service
1896 SYSINIT_TARGET_WANTS += \
1897 kmod-static-nodes.service
1902 units/systemd-modules-load.service.in \
1903 units/kmod-static-nodes.service.in
1905 # ------------------------------------------------------------------------------
1907 systemd_tmpfiles_SOURCES = \
1908 src/tmpfiles/tmpfiles.c
1910 systemd_tmpfiles_LDADD = \
1911 libsystemd-units.la \
1912 libsystemd-label.la \
1913 libsystemd-capability.la \
1914 libsystemd-internal.la \
1915 libsystemd-shared.la
1917 rootbin_PROGRAMS += \
1920 dist_systemunit_DATA += \
1921 units/systemd-tmpfiles-clean.timer
1923 nodist_systemunit_DATA += \
1924 units/systemd-tmpfiles-setup-dev.service \
1925 units/systemd-tmpfiles-setup.service \
1926 units/systemd-tmpfiles-clean.service
1928 dist_tmpfiles_DATA = \
1929 tmpfiles.d/systemd.conf \
1930 tmpfiles.d/systemd-nologin.conf \
1931 tmpfiles.d/systemd-remote.conf \
1932 tmpfiles.d/tmp.conf \
1933 tmpfiles.d/x11.conf \
1934 tmpfiles.d/var.conf \
1938 dist_tmpfiles_DATA += \
1939 tmpfiles.d/legacy.conf
1942 SYSINIT_TARGET_WANTS += \
1943 systemd-tmpfiles-setup-dev.service \
1944 systemd-tmpfiles-setup.service
1946 dist_zshcompletion_DATA += \
1947 shell-completion/zsh/_systemd-tmpfiles
1949 TIMERS_TARGET_WANTS += \
1950 systemd-tmpfiles-clean.timer
1954 $(sysconfdir)/tmpfiles.d
1958 units/systemd-tmpfiles-setup-dev.service.in \
1959 units/systemd-tmpfiles-setup.service.in \
1960 units/systemd-tmpfiles-clean.service.in
1962 # ------------------------------------------------------------------------------
1964 systemd_sysusers_SOURCES = \
1965 src/sysusers/sysusers.c
1967 systemd_sysusers_LDADD = \
1968 libsystemd-units.la \
1969 libsystemd-label.la \
1970 libsystemd-capability.la \
1971 libsystemd-internal.la \
1972 libsystemd-shared.la
1974 rootbin_PROGRAMS += \
1977 nodist_systemunit_DATA += \
1978 units/systemd-sysusers.service
1980 SYSINIT_TARGET_WANTS += \
1981 systemd-sysusers.service
1983 dist_sysusers_DATA = \
1984 sysusers.d/systemd.conf \
1985 sysusers.d/systemd-remote.conf
1987 nodist_sysusers_DATA = \
1988 sysusers.d/basic.conf
1991 units/systemd-sysusers.service.in \
1992 sysusers.d/basic.conf.in
1995 sysusers.d/basic.conf
2001 # ------------------------------------------------------------------------------
2002 dist_factory_etc_DATA = \
2003 factory/etc/nsswitch.conf
2005 dist_factory_pam_DATA = \
2006 factory/etc/pam.d/system-auth \
2007 factory/etc/pam.d/other
2009 # ------------------------------------------------------------------------------
2011 systemd_firstboot_SOURCES = \
2012 src/firstboot/firstboot.c
2014 systemd_firstboot_LDADD = \
2015 libsystemd-units.la \
2016 libsystemd-label.la \
2017 libsystemd-capability.la \
2018 libsystemd-internal.la \
2019 libsystemd-shared.la \
2022 rootbin_PROGRAMS += \
2025 nodist_systemunit_DATA += \
2026 units/systemd-firstboot.service
2029 units/systemd-firstboot.service.in
2031 SYSINIT_TARGET_WANTS += \
2032 systemd-firstboot.service
2035 # ------------------------------------------------------------------------------
2036 systemd_machine_id_setup_SOURCES = \
2037 src/machine-id-setup/machine-id-setup-main.c \
2038 src/core/machine-id-setup.c \
2039 src/core/machine-id-setup.h
2041 systemd_machine_id_setup_LDADD = \
2042 libsystemd-label.la \
2043 libsystemd-internal.la \
2044 libsystemd-shared.la
2046 # ------------------------------------------------------------------------------
2047 systemd_sysctl_SOURCES = \
2050 systemd_sysctl_LDADD = \
2051 libsystemd-shared.la
2053 # ------------------------------------------------------------------------------
2054 systemd_sleep_SOURCES = \
2057 systemd_sleep_LDADD = \
2058 libsystemd-shared.la
2060 # ------------------------------------------------------------------------------
2061 systemd_fsck_SOURCES = \
2064 systemd_fsck_LDADD = \
2065 libsystemd-internal.la \
2066 libudev-internal.la \
2067 libsystemd-shared.la
2069 # ------------------------------------------------------------------------------
2070 systemd_ac_power_SOURCES = \
2071 src/ac-power/ac-power.c
2073 systemd_ac_power_LDADD = \
2074 libudev-internal.la \
2075 libsystemd-shared.la
2077 # ------------------------------------------------------------------------------
2078 systemd_detect_virt_SOURCES = \
2079 src/detect-virt/detect-virt.c
2081 systemd_detect_virt_LDADD = \
2082 libsystemd-shared.la
2084 INSTALL_EXEC_HOOKS += \
2085 systemd-detect-virt-install-hook
2087 # ------------------------------------------------------------------------------
2088 systemd_delta_SOURCES = \
2091 systemd_delta_LDADD = \
2092 libsystemd-shared.la
2094 # ------------------------------------------------------------------------------
2095 systemd_getty_generator_SOURCES = \
2096 src/getty-generator/getty-generator.c
2098 systemd_getty_generator_LDADD = \
2099 libsystemd-label.la \
2100 libsystemd-shared.la
2102 # ------------------------------------------------------------------------------
2103 systemd_debug_generator_SOURCES = \
2104 src/debug-generator/debug-generator.c
2106 systemd_debug_generator_LDADD = \
2107 libsystemd-label.la \
2108 libsystemd-shared.la
2110 # ------------------------------------------------------------------------------
2111 systemd_fstab_generator_SOURCES = \
2112 src/fstab-generator/fstab-generator.c \
2113 src/core/mount-setup.c
2115 systemd_fstab_generator_LDADD = \
2116 libsystemd-label.la \
2117 libsystemd-shared.la
2119 # ------------------------------------------------------------------------------
2120 systemd_system_update_generator_SOURCES = \
2121 src/system-update-generator/system-update-generator.c
2123 systemd_system_update_generator_LDADD = \
2124 libsystemd-label.la \
2125 libsystemd-shared.la
2128 # ------------------------------------------------------------------------------
2129 systemgenerator_PROGRAMS += \
2130 systemd-efi-boot-generator
2132 systemd_efi_boot_generator_SOURCES = \
2133 src/efi-boot-generator/efi-boot-generator.c
2135 systemd_efi_boot_generator_LDADD = \
2136 libsystemd-label.la \
2137 libsystemd-shared.la
2139 # ------------------------------------------------------------------------------
2142 src/boot/boot-loader.h \
2143 src/boot/bootctl.c \
2144 src/boot/boot-loader.c \
2148 libsystemd-shared.la \
2149 libsystemd-internal.la
2154 dist_bashcompletion_DATA += \
2155 shell-completion/bash/bootctl
2157 dist_zshcompletion_DATA += \
2158 shell-completion/zsh/_bootctl
2162 # ------------------------------------------------------------------------------
2164 systemgenerator_PROGRAMS += \
2165 systemd-gpt-auto-generator
2167 systemd_gpt_auto_generator_SOURCES = \
2168 src/gpt-auto-generator/gpt-auto-generator.c \
2169 src/shared/blkid-util.h
2171 systemd_gpt_auto_generator_LDADD = \
2172 libsystemd-label.la \
2173 libsystemd-internal.la \
2174 libudev-internal.la \
2175 libsystemd-shared.la \
2178 systemd_gpt_auto_generator_CFLAGS = \
2183 # ------------------------------------------------------------------------------
2185 systemgenerator_PROGRAMS += \
2186 systemd-dbus1-generator
2188 systemd_dbus1_generator_SOURCES = \
2189 src/dbus1-generator/dbus1-generator.c
2191 systemd_dbus1_generator_LDADD = \
2192 libsystemd-label.la \
2193 libsystemd-shared.la \
2194 libsystemd-internal.la
2196 dbus1-generator-install-hook:
2197 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2198 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2199 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2201 dbus1-generator-uninstall-hook:
2202 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2204 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2205 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2208 # ------------------------------------------------------------------------------
2209 systemd_sysv_generator_SOURCES = \
2210 src/sysv-generator/sysv-generator.c
2212 systemd_sysv_generator_LDADD = \
2213 libsystemd-core.la \
2214 libsystemd-label.la \
2215 libsystemd-shared.la
2217 # ------------------------------------------------------------------------------
2218 systemd_rc_local_generator_SOURCES = \
2219 src/rc-local-generator/rc-local-generator.c
2221 systemd_rc_local_generator_LDADD = \
2222 libsystemd-label.la \
2223 libsystemd-shared.la
2225 # ------------------------------------------------------------------------------
2226 systemd_remount_fs_SOURCES = \
2227 src/remount-fs/remount-fs.c \
2228 src/core/mount-setup.c \
2229 src/core/mount-setup.h
2231 systemd_remount_fs_LDADD = \
2232 libsystemd-label.la \
2233 libsystemd-shared.la
2235 # ------------------------------------------------------------------------------
2236 systemd_cgroups_agent_SOURCES = \
2237 src/cgroups-agent/cgroups-agent.c
2239 systemd_cgroups_agent_LDADD = \
2240 libsystemd-internal.la \
2241 libsystemd-shared.la
2243 # ------------------------------------------------------------------------------
2244 systemd_escape_SOURCES = \
2247 systemd_escape_LDADD = \
2248 libsystemd-shared.la
2250 # -----------------------------------------------------------------------------
2251 systemctl_SOURCES = \
2252 src/systemctl/systemctl.c
2255 libsystemd-units.la \
2256 libsystemd-label.la \
2257 libsystemd-internal.la \
2258 libsystemd-logs.la \
2259 libsystemd-journal-internal.la \
2260 libsystemd-shared.la
2262 # ------------------------------------------------------------------------------
2263 systemd_notify_SOURCES = \
2264 src/notify/notify.c \
2265 src/readahead/sd-readahead.c
2267 systemd_notify_LDADD = \
2268 libsystemd-internal.la \
2269 libsystemd-shared.la
2271 # ------------------------------------------------------------------------------
2272 systemd_path_SOURCES = \
2275 systemd_path_LDADD = \
2276 libsystemd-internal.la \
2277 libsystemd-shared.la
2279 # ------------------------------------------------------------------------------
2280 systemd_ask_password_SOURCES = \
2281 src/ask-password/ask-password.c
2283 systemd_ask_password_LDADD = \
2284 libsystemd-label.la \
2285 libsystemd-shared.la
2287 # ------------------------------------------------------------------------------
2288 systemd_reply_password_SOURCES = \
2289 src/reply-password/reply-password.c
2291 systemd_reply_password_LDADD = \
2292 libsystemd-shared.la
2294 # ------------------------------------------------------------------------------
2295 systemd_cgls_SOURCES = \
2298 systemd_cgls_LDADD = \
2299 libsystemd-internal.la \
2300 libsystemd-shared.la
2302 # ------------------------------------------------------------------------------
2303 systemd_cgtop_SOURCES = \
2306 systemd_cgtop_LDADD = \
2307 libsystemd-shared.la
2309 # ------------------------------------------------------------------------------
2310 systemd_nspawn_SOURCES = \
2311 src/nspawn/nspawn.c \
2312 src/core/mount-setup.c \
2313 src/core/mount-setup.h \
2314 src/core/loopback-setup.c \
2315 src/core/loopback-setup.h
2317 systemd_nspawn_CFLAGS = \
2322 systemd_nspawn_LDADD = \
2323 libsystemd-label.la \
2324 libsystemd-capability.la \
2325 libsystemd-internal.la \
2326 libudev-internal.la \
2327 libsystemd-shared.la \
2331 systemd_nspawn_LDADD += \
2332 libsystemd-seccomp.la \
2336 # ------------------------------------------------------------------------------
2337 systemd_run_SOURCES = \
2340 systemd_run_LDADD = \
2341 libsystemd-label.la \
2342 libsystemd-capability.la \
2343 libsystemd-internal.la \
2344 libsystemd-shared.la
2346 # ------------------------------------------------------------------------------
2347 systemd_bus_proxyd_SOURCES = \
2348 src/bus-proxyd/bus-proxyd.c \
2349 src/bus-proxyd/bus-policy.c \
2350 src/bus-proxyd/bus-policy.h
2352 systemd_bus_proxyd_LDADD = \
2353 libsystemd-capability.la \
2354 libsystemd-internal.la \
2355 libsystemd-shared.la
2357 bus-proxyd-install-hook:
2358 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
2359 $(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2360 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
2362 bus-proxyd-uninstall-hook:
2363 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2365 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
2366 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
2369 nodist_systemunit_DATA += \
2370 units/systemd-bus-proxyd@.service
2372 dist_systemunit_DATA += \
2373 units/systemd-bus-proxyd.socket
2375 dist_userunit_DATA += \
2376 units/user/systemd-bus-proxyd.socket \
2377 units/user/systemd-bus-proxyd@.service
2381 units/systemd-bus-proxyd@.service.in
2383 # ------------------------------------------------------------------------------
2384 systemd_tty_ask_password_agent_SOURCES = \
2385 src/tty-ask-password-agent/tty-ask-password-agent.c
2387 systemd_tty_ask_password_agent_LDADD = \
2388 libsystemd-label.la \
2389 libsystemd-shared.la
2391 # ------------------------------------------------------------------------------
2392 libsystemd_internal_la_SOURCES = \
2393 src/systemd/sd-bus.h \
2394 src/systemd/sd-bus-protocol.h \
2395 src/systemd/sd-bus-vtable.h \
2396 src/systemd/sd-utf8.h \
2397 src/systemd/sd-event.h \
2398 src/systemd/sd-rtnl.h \
2399 src/systemd/sd-resolve.h \
2400 src/systemd/sd-login.h \
2401 src/systemd/sd-id128.h \
2402 src/systemd/sd-daemon.h \
2403 src/systemd/sd-path.h \
2404 src/systemd/sd-network.h \
2405 src/libsystemd/sd-bus/sd-bus.c \
2406 src/libsystemd/sd-bus/bus-control.c \
2407 src/libsystemd/sd-bus/bus-control.h \
2408 src/libsystemd/sd-bus/bus-error.c \
2409 src/libsystemd/sd-bus/bus-error.h \
2410 src/libsystemd/sd-bus/bus-internal.c \
2411 src/libsystemd/sd-bus/bus-internal.h \
2412 src/libsystemd/sd-bus/bus-socket.c \
2413 src/libsystemd/sd-bus/bus-socket.h \
2414 src/libsystemd/sd-bus/bus-kernel.c \
2415 src/libsystemd/sd-bus/bus-kernel.h \
2416 src/libsystemd/sd-bus/bus-container.c \
2417 src/libsystemd/sd-bus/bus-container.h \
2418 src/libsystemd/sd-bus/bus-message.c \
2419 src/libsystemd/sd-bus/bus-message.h \
2420 src/libsystemd/sd-bus/bus-creds.c \
2421 src/libsystemd/sd-bus/bus-creds.h \
2422 src/libsystemd/sd-bus/bus-signature.c \
2423 src/libsystemd/sd-bus/bus-signature.h \
2424 src/libsystemd/sd-bus/bus-type.c \
2425 src/libsystemd/sd-bus/bus-type.h \
2426 src/libsystemd/sd-bus/bus-match.c \
2427 src/libsystemd/sd-bus/bus-match.h \
2428 src/libsystemd/sd-bus/bus-bloom.c \
2429 src/libsystemd/sd-bus/bus-bloom.h \
2430 src/libsystemd/sd-bus/bus-introspect.c \
2431 src/libsystemd/sd-bus/bus-introspect.h \
2432 src/libsystemd/sd-bus/bus-objects.c \
2433 src/libsystemd/sd-bus/bus-objects.h \
2434 src/libsystemd/sd-bus/bus-gvariant.c \
2435 src/libsystemd/sd-bus/bus-gvariant.h \
2436 src/libsystemd/sd-bus/bus-convenience.c \
2437 src/libsystemd/sd-bus/bus-track.c \
2438 src/libsystemd/sd-bus/bus-track.h \
2439 src/libsystemd/sd-bus/bus-util.c \
2440 src/libsystemd/sd-bus/bus-util.h \
2441 src/libsystemd/sd-bus/bus-slot.c \
2442 src/libsystemd/sd-bus/bus-slot.h \
2443 src/libsystemd/sd-bus/bus-protocol.h \
2444 src/libsystemd/sd-bus/kdbus.h \
2445 src/libsystemd/sd-utf8/sd-utf8.c \
2446 src/libsystemd/sd-event/sd-event.c \
2447 src/libsystemd/sd-event/event-util.h \
2448 src/libsystemd/sd-rtnl/sd-rtnl.c \
2449 src/libsystemd/sd-rtnl/rtnl-internal.h \
2450 src/libsystemd/sd-rtnl/rtnl-message.c \
2451 src/libsystemd/sd-rtnl/rtnl-types.h \
2452 src/libsystemd/sd-rtnl/rtnl-types.c \
2453 src/libsystemd/sd-rtnl/rtnl-util.h \
2454 src/libsystemd/sd-rtnl/rtnl-util.c \
2455 src/libsystemd/sd-rtnl/local-addresses.h \
2456 src/libsystemd/sd-rtnl/local-addresses.c \
2457 src/libsystemd/sd-id128/sd-id128.c \
2458 src/libsystemd/sd-daemon/sd-daemon.c \
2459 src/libsystemd/sd-login/sd-login.c \
2460 src/libsystemd/sd-path/sd-path.c \
2461 src/libsystemd/sd-network/sd-network.c \
2462 src/libsystemd/sd-network/network-util.h \
2463 src/libsystemd/sd-network/network-util.c
2465 nodist_libsystemd_internal_la_SOURCES = \
2466 src/libsystemd/libsystemd.sym \
2467 src/libsystemd/sd-bus/bus-error-mapping.c
2469 libsystemd_internal_la_CFLAGS = \
2473 libsystemd_internal_la_LIBADD = \
2476 libsystemd_resolve_la_SOURCES = \
2477 src/libsystemd/sd-resolve/sd-resolve.c \
2478 src/libsystemd/sd-resolve/resolve-util.h
2480 libsystemd_resolve_la_CFLAGS = \
2484 libsystemd_resolve_la_LIBADD = \
2487 noinst_LTLIBRARIES += \
2488 libsystemd-internal.la \
2489 libsystemd-resolve.la
2491 libsystemd_dump_la_SOURCES = \
2492 src/libsystemd/sd-bus/bus-dump.c \
2493 src/libsystemd/sd-bus/bus-dump.h
2495 libsystemd_dump_la_CFLAGS = \
2499 noinst_LTLIBRARIES += \
2503 src/libsystemd/libsystemd.sym.m4 \
2504 src/libsystemd/libsystemd.pc.in \
2505 src/libsystemd/sd-bus/bus-error-mapping.gperf \
2506 src/libsystemd/sd-bus/DIFFERENCES \
2507 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2510 src/libsystemd/libsystemd.sym \
2511 src/libsystemd/sd-bus/bus-error-mapping.c
2514 src/libsystemd/libsystemd.sym
2516 libsystemd_la_SOURCES = \
2517 $(libsystemd_internal_la_SOURCES) \
2518 $(libsystemd_resolve_la_SOURCES) \
2519 $(libsystemd_journal_internal_la_SOURCES)
2521 nodist_libsystemd_la_SOURCES = \
2522 $(nodist_libsystemd_internal_la_SOURCES)
2524 libsystemd_la_CFLAGS = \
2525 $(libsystemd_internal_la_CFLAGS) \
2526 $(libsystemd_resolve_la_CFLAGS) \
2527 $(libsystemd_journal_internal_la_CFLAGS)
2529 libsystemd_la_LDFLAGS = \
2531 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2532 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2534 libsystemd_la_LIBADD = \
2535 libsystemd-shared.la \
2536 $(libsystemd_internal_la_LIBADD) \
2537 $(libsystemd_journal_internal_la_LIBADD) \
2538 $(libsystemd_resolve_la_LIBADD)
2540 libsystemd-install-hook:
2541 libname=libsystemd.so && $(move-to-rootlibdir)
2543 libsystemd-uninstall-hook:
2544 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2546 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2547 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2549 pkgconfiglib_DATA += \
2550 src/libsystemd/libsystemd.pc
2552 pkginclude_HEADERS += \
2553 src/systemd/sd-login.h \
2554 src/systemd/sd-id128.h \
2555 src/systemd/sd-daemon.h
2558 pkginclude_HEADERS += \
2559 src/systemd/sd-bus.h \
2560 src/systemd/sd-bus-protocol.h \
2561 src/systemd/sd-bus-vtable.h \
2562 src/systemd/sd-utf8.h \
2563 src/systemd/sd-event.h \
2564 src/systemd/sd-rtnl.h \
2565 src/systemd/sd-resolve.h \
2566 src/systemd/sd-path.h
2569 lib_LTLIBRARIES += \
2574 test-bus-signature \
2580 test-bus-kernel-bloom \
2581 test-bus-kernel-benchmark \
2582 test-bus-zero-copy \
2583 test-bus-introspect \
2595 test_bus_marshal_SOURCES = \
2596 src/libsystemd/sd-bus/test-bus-marshal.c
2598 test_bus_marshal_LDADD = \
2599 libsystemd-internal.la \
2600 libsystemd-shared.la \
2601 libsystemd-dump.la \
2602 libsystemd-capability.la \
2607 test_bus_marshal_CFLAGS = \
2613 test_bus_signature_SOURCES = \
2614 src/libsystemd/sd-bus/test-bus-signature.c
2616 test_bus_signature_LDADD = \
2617 libsystemd-shared.la \
2618 libsystemd-internal.la
2620 test_bus_chat_SOURCES = \
2621 src/libsystemd/sd-bus/test-bus-chat.c
2623 test_bus_chat_CFLAGS = \
2627 test_bus_chat_LDADD = \
2628 libsystemd-internal.la \
2629 libsystemd-shared.la
2631 test_bus_cleanup_SOURCES = \
2632 src/libsystemd/sd-bus/test-bus-cleanup.c
2634 test_bus_cleanup_CFLAGS = \
2638 test_bus_cleanup_LDADD = \
2639 libsystemd-internal.la \
2640 libsystemd-shared.la
2642 test_bus_server_SOURCES = \
2643 src/libsystemd/sd-bus/test-bus-server.c
2645 test_bus_server_CFLAGS = \
2649 test_bus_server_LDADD = \
2650 libsystemd-internal.la \
2651 libsystemd-shared.la
2653 test_bus_objects_SOURCES = \
2654 src/libsystemd/sd-bus/test-bus-objects.c
2656 test_bus_objects_CFLAGS = \
2661 test_bus_objects_LDADD = \
2662 libsystemd-internal.la \
2663 libsystemd-shared.la \
2664 libsystemd-dump.la \
2665 libsystemd-capability.la \
2668 test_bus_error_SOURCES = \
2669 src/libsystemd/sd-bus/test-bus-error.c
2671 test_bus_error_LDADD = \
2672 libsystemd-internal.la \
2673 libsystemd-shared.la
2675 test_bus_gvariant_SOURCES = \
2676 src/libsystemd/sd-bus/test-bus-gvariant.c
2678 test_bus_gvariant_LDADD = \
2679 libsystemd-internal.la \
2680 libsystemd-shared.la \
2681 libsystemd-dump.la \
2682 libsystemd-capability.la \
2686 test_bus_gvariant_CFLAGS = \
2691 test_bus_creds_SOURCES = \
2692 src/libsystemd/sd-bus/test-bus-creds.c
2694 test_bus_creds_LDADD = \
2695 libsystemd-internal.la \
2696 libsystemd-shared.la \
2697 libsystemd-dump.la \
2698 libsystemd-capability.la
2700 test_bus_match_SOURCES = \
2701 src/libsystemd/sd-bus/test-bus-match.c
2703 test_bus_match_LDADD = \
2704 libsystemd-internal.la \
2705 libsystemd-shared.la
2707 test_bus_kernel_SOURCES = \
2708 src/libsystemd/sd-bus/test-bus-kernel.c
2710 test_bus_kernel_LDADD = \
2711 libsystemd-internal.la \
2712 libsystemd-shared.la \
2713 libsystemd-dump.la \
2714 libsystemd-capability.la \
2717 test_bus_kernel_CFLAGS = \
2721 test_bus_kernel_bloom_SOURCES = \
2722 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
2724 test_bus_kernel_bloom_LDADD = \
2725 libsystemd-internal.la \
2726 libsystemd-shared.la
2728 test_bus_kernel_benchmark_SOURCES = \
2729 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
2731 test_bus_kernel_benchmark_LDADD = \
2732 libsystemd-internal.la \
2733 libsystemd-shared.la
2735 test_bus_zero_copy_SOURCES = \
2736 src/libsystemd/sd-bus/test-bus-zero-copy.c
2738 test_bus_zero_copy_LDADD = \
2739 libsystemd-internal.la \
2740 libsystemd-shared.la \
2741 libsystemd-dump.la \
2742 libsystemd-capability.la \
2745 test_bus_zero_copy_CFLAGS = \
2749 test_bus_introspect_SOURCES = \
2750 src/libsystemd/sd-bus/test-bus-introspect.c
2752 test_bus_introspect_LDADD = \
2753 libsystemd-internal.la \
2754 libsystemd-shared.la
2756 test_event_SOURCES = \
2757 src/libsystemd/sd-event/test-event.c
2759 test_event_LDADD = \
2760 libsystemd-internal.la \
2761 libsystemd-shared.la
2763 test_rtnl_SOURCES = \
2764 src/libsystemd/sd-rtnl/test-rtnl.c
2767 libsystemd-internal.la \
2768 libsystemd-shared.la
2770 test_resolve_SOURCES = \
2771 src/libsystemd/sd-resolve/test-resolve.c
2773 test_resolve_LDADD = \
2774 libsystemd-resolve.la \
2775 libsystemd-internal.la \
2776 libsystemd-shared.la
2778 test_resolve_CFLAGS = \
2783 src/libsystemd/sd-bus/busctl.c
2786 libsystemd-internal.la \
2787 libsystemd-shared.la \
2788 libsystemd-dump.la \
2789 libsystemd-capability.la \
2796 # ------------------------------------------------------------------------------
2797 noinst_LTLIBRARIES += \
2798 libsystemd-network.la
2800 libsystemd_network_la_CFLAGS = \
2804 libsystemd_network_la_SOURCES = \
2805 src/systemd/sd-dhcp-client.h \
2806 src/systemd/sd-dhcp-server.h \
2807 src/systemd/sd-dhcp-lease.h \
2808 src/systemd/sd-ipv4ll.h \
2809 src/systemd/sd-icmp6-nd.h \
2810 src/systemd/sd-dhcp6-client.h \
2811 src/systemd/sd-dhcp6-lease.h \
2812 src/libsystemd-network/sd-dhcp-client.c \
2813 src/libsystemd-network/sd-dhcp-server.c \
2814 src/libsystemd-network/dhcp-network.c \
2815 src/libsystemd-network/dhcp-option.c \
2816 src/libsystemd-network/dhcp-packet.c \
2817 src/libsystemd-network/dhcp-internal.h \
2818 src/libsystemd-network/dhcp-server-internal.h \
2819 src/libsystemd-network/dhcp-protocol.h \
2820 src/libsystemd-network/dhcp-lease-internal.h \
2821 src/libsystemd-network/sd-dhcp-lease.c \
2822 src/libsystemd-network/sd-ipv4ll.c \
2823 src/libsystemd-network/ipv4ll-network.c \
2824 src/libsystemd-network/ipv4ll-packet.c \
2825 src/libsystemd-network/ipv4ll-internal.h \
2826 src/libsystemd-network/network-internal.c \
2827 src/libsystemd-network/network-internal.h \
2828 src/libsystemd-network/sd-icmp6-nd.c \
2829 src/libsystemd-network/sd-dhcp6-client.c \
2830 src/libsystemd-network/dhcp6-internal.h \
2831 src/libsystemd-network/dhcp6-protocol.h \
2832 src/libsystemd-network/dhcp6-network.c \
2833 src/libsystemd-network/dhcp6-option.c \
2834 src/libsystemd-network/dhcp6-lease-internal.h \
2835 src/libsystemd-network/sd-dhcp6-lease.c
2837 libsystemd_network_la_LIBADD = \
2838 libudev-internal.la \
2839 libsystemd-label.la \
2840 libsystemd-internal.la \
2841 libsystemd-shared.la \
2844 test_dhcp_option_SOURCES = \
2845 src/libsystemd-network/dhcp-protocol.h \
2846 src/libsystemd-network/dhcp-internal.h \
2847 src/libsystemd-network/test-dhcp-option.c
2849 test_dhcp_option_LDADD = \
2850 libsystemd-network.la \
2851 libsystemd-internal.la \
2852 libsystemd-shared.la
2854 test_dhcp_client_SOURCES = \
2855 src/systemd/sd-dhcp-client.h \
2856 src/libsystemd-network/dhcp-protocol.h \
2857 src/libsystemd-network/dhcp-internal.h \
2858 src/libsystemd-network/test-dhcp-client.c
2860 test_dhcp_client_LDADD = \
2861 libsystemd-network.la \
2862 libsystemd-label.la \
2863 libsystemd-internal.la \
2864 libsystemd-shared.la
2866 test_dhcp_server_SOURCES = \
2867 src/libsystemd-network/test-dhcp-server.c
2869 test_dhcp_server_LDADD = \
2870 libsystemd-network.la \
2871 libsystemd-internal.la \
2872 libsystemd-shared.la
2874 test_ipv4ll_SOURCES = \
2875 src/systemd/sd-ipv4ll.h \
2876 src/libsystemd-network/ipv4ll-internal.h \
2877 src/libsystemd-network/test-ipv4ll.c
2879 test_ipv4ll_LDADD = \
2880 libsystemd-network.la \
2881 libsystemd-label.la \
2882 libsystemd-internal.la \
2883 libsystemd-shared.la
2885 test_icmp6_rs_SOURCES = \
2886 src/systemd/sd-dhcp6-client.h \
2887 src/systemd/sd-icmp6-nd.h \
2888 src/libsystemd-network/dhcp6-internal.h \
2889 src/libsystemd-network/test-icmp6-rs.c
2891 test_icmp6_rs_LDADD = \
2892 libsystemd-network.la \
2893 libsystemd-internal.la \
2894 libsystemd-shared.la
2896 test_dhcp6_client_SOURCES = \
2897 src/systemd/sd-dhcp6-client.h \
2898 src/libsystemd-network/dhcp6-internal.h \
2899 src/libsystemd-network/test-dhcp6-client.c
2901 test_dhcp6_client_LDADD = \
2902 libsystemd-network.la \
2903 libsystemd-internal.la \
2904 libsystemd-shared.la
2914 # ------------------------------------------------------------------------------
2916 noinst_LTLIBRARIES += \
2917 libsystemd-terminal.la
2919 noinst_PROGRAMS += \
2922 unifontdatadir=$(datadir)/unifont
2924 dist_unifontdata_DATA = \
2925 src/libsystemd-terminal/unifont-glyph-array.bin
2933 libsystemd_terminal_la_CFLAGS = \
2936 libsystemd_terminal_la_SOURCES = \
2937 src/libsystemd-terminal/term-internal.h \
2938 src/libsystemd-terminal/term-charset.c \
2939 src/libsystemd-terminal/term-page.c \
2940 src/libsystemd-terminal/term-parser.c \
2941 src/libsystemd-terminal/term-screen.c \
2942 src/libsystemd-terminal/term-wcwidth.c \
2943 src/libsystemd-terminal/unifont-internal.h \
2944 src/libsystemd-terminal/unifont.c
2946 libsystemd_terminal_la_LIBADD = \
2947 libsystemd-internal.la \
2948 libsystemd-shared.la
2950 systemd_subterm_SOURCES = \
2951 src/libsystemd-terminal/subterm.c
2953 systemd_subterm_LDADD = \
2954 libsystemd-terminal.la \
2955 libsystemd-internal.la \
2956 libsystemd-shared.la
2958 test_term_page_SOURCES = \
2959 src/libsystemd-terminal/test-term-page.c
2961 test_term_page_LDADD = \
2962 libsystemd-terminal.la \
2963 libsystemd-internal.la \
2964 libsystemd-shared.la
2966 test_term_parser_SOURCES = \
2967 src/libsystemd-terminal/test-term-parser.c
2969 test_term_parser_LDADD = \
2970 libsystemd-terminal.la \
2971 libsystemd-internal.la \
2972 libsystemd-shared.la
2974 test_unifont_SOURCES = \
2975 src/libsystemd-terminal/test-unifont.c
2977 test_unifont_LDADD = \
2978 libsystemd-terminal.la \
2979 libsystemd-internal.la \
2980 libsystemd-shared.la
2982 .PHONY: update-unifont
2983 update-unifont: tools/compile-unifont.py
2984 $(AM_V_GEN)$(PYTHON) $< \
2985 <$(top_srcdir)/src/libsystemd-terminal/unifont.hex \
2986 >$(top_srcdir)/src/libsystemd-terminal/unifont-glyph-array.bin
2987 @echo "unifont-glyph-array.bin has been regenerated"
2989 # ------------------------------------------------------------------------------
2999 include_HEADERS += \
3000 src/libudev/libudev.h
3002 lib_LTLIBRARIES += \
3005 libudev_la_SOURCES =\
3006 src/libudev/libudev.sym \
3007 src/libudev/libudev-private.h \
3008 src/libudev/libudev.c \
3009 src/libudev/libudev-list.c \
3010 src/libudev/libudev-util.c \
3011 src/libudev/libudev-device.c \
3012 src/libudev/libudev-enumerate.c \
3013 src/libudev/libudev-monitor.c \
3014 src/libudev/libudev-queue.c \
3015 src/libudev/libudev-hwdb-def.h \
3016 src/libudev/libudev-hwdb.c
3018 libudev_la_CFLAGS = \
3022 libudev_la_LDFLAGS = \
3024 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3025 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3027 libudev_la_LIBADD = \
3028 libsystemd-internal.la \
3029 libsystemd-shared.la
3031 pkgconfiglib_DATA += \
3032 src/libudev/libudev.pc
3035 src/libudev/libudev.pc.in
3038 src/libudev/libudev.pc \
3043 $(AM_V_at)$(MKDIR_P) $(dir $@)
3044 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
3047 $(AM_V_at)$(MKDIR_P) $(dir $@)
3048 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
3050 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3051 libudev-install-hook:
3052 libname=libudev.so && $(move-to-rootlibdir)
3054 libudev-uninstall-hook:
3055 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3057 INSTALL_EXEC_HOOKS += libudev-install-hook
3058 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3060 # ------------------------------------------------------------------------------
3061 noinst_LTLIBRARIES += \
3064 libudev_internal_la_SOURCES =\
3065 $(libudev_la_SOURCES) \
3066 src/libudev/libudev-device-private.c
3068 libudev_internal_la_CFLAGS = \
3070 -fvisibility=default
3072 # ------------------------------------------------------------------------------
3074 $(sysconfdir)/udev/rules.d \
3075 $(sysconfdir)/udev/hwdb.d
3077 dist_network_DATA = \
3078 network/99-default.link \
3079 network/80-container-host0.network \
3080 network/80-container-ve.network
3082 dist_udevrules_DATA += \
3083 rules/42-usb-hid-pm.rules \
3084 rules/50-udev-default.rules \
3085 rules/60-drm.rules \
3086 rules/60-keyboard.rules \
3087 rules/60-persistent-storage-tape.rules \
3088 rules/60-persistent-serial.rules \
3089 rules/60-persistent-input.rules \
3090 rules/60-persistent-alsa.rules \
3091 rules/60-persistent-storage.rules \
3092 rules/64-btrfs.rules \
3093 rules/75-net-description.rules \
3094 rules/75-tty-description.rules \
3095 rules/78-sound-card.rules \
3096 rules/80-net-setup-link.rules \
3097 rules/95-udev-late.rules
3099 nodist_udevrules_DATA += \
3100 rules/99-systemd.rules
3102 dist_udevhwdb_DATA = \
3103 hwdb/20-pci-vendor-model.hwdb \
3104 hwdb/20-pci-classes.hwdb \
3105 hwdb/20-usb-vendor-model.hwdb \
3106 hwdb/20-usb-classes.hwdb \
3107 hwdb/20-sdio-vendor-model.hwdb \
3108 hwdb/20-sdio-classes.hwdb \
3109 hwdb/20-bluetooth-vendor-product.hwdb \
3110 hwdb/20-acpi-vendor.hwdb \
3112 hwdb/20-net-ifname.hwdb \
3113 hwdb/60-keyboard.hwdb
3115 udevconfdir = $(sysconfdir)/udev
3116 dist_udevconf_DATA = \
3119 sharepkgconfigdir = $(datadir)/pkgconfig
3120 sharepkgconfig_DATA = \
3124 rules/99-systemd.rules.in \
3128 rules/99-systemd.rules \
3132 units/systemd-udevd.service.in \
3133 units/systemd-udev-trigger.service.in \
3134 units/systemd-udev-settle.service.in \
3135 units/systemd-udev-hwdb-update.service.in
3138 units/systemd-udevd.service \
3139 units/systemd-udev-trigger.service \
3140 units/systemd-udev-settle.service \
3141 units/systemd-udev-hwdb-update.service
3143 SOCKETS_TARGET_WANTS += \
3144 systemd-udevd-control.socket \
3145 systemd-udevd-kernel.socket
3147 SYSINIT_TARGET_WANTS += \
3148 systemd-udevd.service \
3149 systemd-udev-trigger.service \
3150 systemd-udev-hwdb-update.service
3152 rootbin_PROGRAMS += \
3155 rootlibexec_PROGRAMS += \
3158 noinst_LTLIBRARIES += \
3161 src/udev/keyboard-keys.txt:
3162 $(AM_V_at)$(MKDIR_P) $(dir $@)
3163 $(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/' > $@
3165 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
3166 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3168 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3169 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3171 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
3172 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
3174 libudev_core_la_SOURCES = \
3176 src/udev/udev-event.c \
3177 src/udev/udev-watch.c \
3178 src/udev/udev-node.c \
3179 src/udev/udev-rules.c \
3180 src/udev/udev-ctrl.c \
3181 src/udev/udev-builtin.c \
3182 src/udev/udev-builtin-btrfs.c \
3183 src/udev/udev-builtin-hwdb.c \
3184 src/udev/udev-builtin-input_id.c \
3185 src/udev/udev-builtin-keyboard.c \
3186 src/udev/udev-builtin-net_id.c \
3187 src/udev/udev-builtin-net_setup_link.c \
3188 src/udev/udev-builtin-path_id.c \
3189 src/udev/udev-builtin-usb_id.c \
3190 src/udev/net/link-config.h \
3191 src/udev/net/link-config.c \
3192 src/udev/net/ethtool-util.h \
3193 src/udev/net/ethtool-util.c
3195 nodist_libudev_core_la_SOURCES = \
3196 src/udev/keyboard-keys-from-name.h \
3197 src/udev/keyboard-keys-to-name.h \
3198 src/udev/net/link-config-gperf.c
3201 $(nodist_libudev_core_la_SOURCES)
3204 src/udev/keyboard-keys-from-name.gperf \
3205 src/udev/keyboard-keys.txt \
3206 src/udev/net/link-config-gperf.c
3209 src/udev/net/link-config-gperf.gperf
3211 libudev_core_la_CFLAGS = \
3216 libudev_core_la_LIBADD = \
3217 libudev-internal.la \
3218 libsystemd-label.la \
3219 libsystemd-internal.la \
3220 libsystemd-network.la \
3221 libsystemd-shared.la \
3225 libudev_core_la_CPPFLAGS = \
3227 -DFIRMWARE_PATH="$(FIRMWARE_PATH)"
3230 libudev_core_la_SOURCES += \
3231 src/udev/udev-builtin-firmware.c
3233 dist_udevrules_DATA += \
3234 rules/50-firmware.rules
3238 libudev_core_la_SOURCES += \
3239 src/udev/udev-builtin-kmod.c
3241 dist_udevrules_DATA += \
3242 rules/80-drivers.rules
3246 libudev_core_la_SOURCES += \
3247 src/udev/udev-builtin-blkid.c
3251 libudev_core_la_SOURCES += \
3252 src/udev/udev-builtin-uaccess.c \
3253 src/login/logind-acl.c \
3254 src/libsystemd/sd-login/sd-login.c \
3255 src/systemd/sd-login.h
3257 libudev_core_la_LIBADD += \
3261 systemd_udevd_SOURCES = \
3264 systemd_udevd_LDADD = \
3268 src/udev/udevadm.c \
3269 src/udev/udevadm-info.c \
3270 src/udev/udevadm-control.c \
3271 src/udev/udevadm-monitor.c \
3272 src/udev/udevadm-hwdb.c \
3273 src/udev/udevadm-settle.c \
3274 src/udev/udevadm-trigger.c \
3275 src/udev/udevadm-test.c \
3276 src/udev/udevadm-test-builtin.c
3281 # Update hwdb on installation. Do not bother if installing
3282 # in DESTDIR, since this is likely for packaging purposes.
3284 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
3286 INSTALL_DATA_HOOKS += \
3290 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3292 # ------------------------------------------------------------------------------
3301 test_libudev_SOURCES = \
3302 src/test/test-libudev.c
3304 test_libudev_LDADD = \
3305 libsystemd-label.la \
3306 libudev-internal.la \
3307 libsystemd-shared.la
3309 test_udev_SOURCES = \
3310 src/test/test-udev.c
3319 test_udev_LDADD += \
3326 # packed sysfs test tree
3328 $(AM_V_at)$(MKDIR_P) $(dir $@)
3329 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3333 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3338 test/rules-test.sh \
3339 test/rule-syntax-check.py
3341 # ------------------------------------------------------------------------------
3343 src/udev/ata_id/ata_id.c
3346 libudev-internal.la \
3347 libsystemd-shared.la
3349 udevlibexec_PROGRAMS += \
3352 # ------------------------------------------------------------------------------
3353 cdrom_id_SOURCES = \
3354 src/udev/cdrom_id/cdrom_id.c
3357 libudev-internal.la \
3358 libsystemd-shared.la
3360 udevlibexec_PROGRAMS += \
3363 dist_udevrules_DATA += \
3364 rules/60-cdrom_id.rules
3366 # ------------------------------------------------------------------------------
3368 src/udev/collect/collect.c
3371 libudev-internal.la \
3372 libsystemd-shared.la
3374 udevlibexec_PROGRAMS += \
3377 # ------------------------------------------------------------------------------
3379 src/udev/scsi_id/scsi_id.c \
3380 src/udev/scsi_id/scsi_serial.c \
3381 src/udev/scsi_id/scsi.h \
3382 src/udev/scsi_id/scsi_id.h
3385 libudev-internal.la \
3386 libsystemd-shared.la
3388 udevlibexec_PROGRAMS += \
3392 src/udev/scsi_id/README
3394 # ------------------------------------------------------------------------------
3396 src/udev/v4l_id/v4l_id.c
3401 udevlibexec_PROGRAMS += \
3404 dist_udevrules_DATA += \
3405 rules/60-persistent-v4l.rules
3407 # ------------------------------------------------------------------------------
3408 accelerometer_SOURCES = \
3409 src/udev/accelerometer/accelerometer.c
3411 accelerometer_LDADD = \
3412 libudev-internal.la -lm \
3413 libsystemd-shared.la
3415 udevlibexec_PROGRAMS += \
3418 dist_udevrules_DATA += \
3419 rules/61-accelerometer.rules
3421 # ------------------------------------------------------------------------------
3428 libgudev_includedir = \
3429 $(includedir)/gudev-1.0/gudev
3431 libgudev_include_HEADERS = \
3433 src/gudev/gudevenums.h \
3434 src/gudev/gudevenumtypes.h \
3435 src/gudev/gudevtypes.h \
3436 src/gudev/gudevclient.h \
3437 src/gudev/gudevdevice.h \
3438 src/gudev/gudevenumerator.h
3440 lib_LTLIBRARIES += libgudev-1.0.la
3442 pkgconfiglib_DATA += \
3443 src/gudev/gudev-1.0.pc
3446 src/gudev/gudev-1.0.pc
3448 libgudev_1_0_la_SOURCES = \
3449 src/gudev/libgudev-1.0.sym \
3450 src/gudev/gudevenums.h \
3451 src/gudev/gudevenumtypes.h \
3452 src/gudev/gudevenumtypes.h\
3453 src/gudev/gudevtypes.h \
3454 src/gudev/gudevclient.h \
3455 src/gudev/gudevclient.c \
3456 src/gudev/gudevdevice.h \
3457 src/gudev/gudevdevice.c \
3458 src/gudev/gudevenumerator.h \
3459 src/gudev/gudevenumerator.c \
3460 src/gudev/gudevprivate.h
3462 nodist_libgudev_1_0_la_SOURCES = \
3463 src/gudev/gudevmarshal.h \
3464 src/gudev/gudevmarshal.c \
3465 src/gudev/gudevenumtypes.h \
3466 src/gudev/gudevenumtypes.c
3469 $(nodist_libgudev_1_0_la_SOURCES)
3471 libgudev_1_0_la_CPPFLAGS = \
3473 -I$(top_builddir)/src\
3474 -I$(top_srcdir)/src\
3475 -I$(top_builddir)/src/gudev \
3476 -I$(top_srcdir)/src/gudev \
3477 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3478 -D_GUDEV_COMPILATION \
3479 -DG_LOG_DOMAIN=\"GUdev\"
3481 libgudev_1_0_la_CFLAGS = \
3483 -fvisibility=default \
3486 libgudev_1_0_la_LIBADD = \
3490 libgudev_1_0_la_LDFLAGS = \
3492 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3495 -Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym
3497 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3498 $(AM_V_at)$(MKDIR_P) $(dir $@)
3499 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3501 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3502 $(AM_V_at)$(MKDIR_P) $(dir $@)
3503 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3504 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3506 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3507 $(AM_V_at)$(MKDIR_P) $(dir $@)
3508 $(AM_V_GEN)glib-mkenums --template $^ > $@
3510 if HAVE_INTROSPECTION
3511 -include $(INTROSPECTION_MAKEFILE)
3513 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3515 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3517 src_gudev_GUdev_1_0_gir_CFLAGS = \
3520 -D_GUDEV_COMPILATION \
3521 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3522 -I$(top_srcdir)/src \
3523 -I$(top_builddir)/src \
3524 -I$(top_srcdir)/src/gudev \
3525 -I$(top_builddir)/src/gudev
3527 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
3529 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
3530 --pkg-export=gudev-1.0 \
3533 src_gudev_GUdev_1_0_gir_FILES = \
3535 src/gudev/gudevtypes.h \
3536 src/gudev/gudevenums.h \
3537 src/gudev/gudevenumtypes.h \
3538 src/gudev/gudevclient.h \
3539 src/gudev/gudevdevice.h \
3540 src/gudev/gudevenumerator.h \
3541 src/gudev/gudevclient.c \
3542 src/gudev/gudevdevice.c \
3543 src/gudev/gudevenumerator.c
3545 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
3546 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
3548 girdir = $(datadir)/gir-1.0
3550 src/gudev/GUdev-1.0.gir
3552 typelibsdir = $(libdir)/girepository-1.0
3554 src/gudev/GUdev-1.0.typelib
3556 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
3557 endif # HAVE_INTROSPECTION
3561 src/gudev/gudev-1.0.pc.in \
3562 src/gudev/gudevmarshal.list \
3563 src/gudev/gudevenumtypes.h.template \
3564 src/gudev/gudevenumtypes.c.template \
3565 src/gudev/gjs-example.js \
3566 src/gudev/seed-example-enum.js \
3567 src/gudev/seed-example.js
3569 # ------------------------------------------------------------------------------
3570 mtd_probe_SOURCES = \
3571 src/udev/mtd_probe/mtd_probe.c \
3572 src/udev/mtd_probe/mtd_probe.h \
3573 src/udev/mtd_probe/probe_smartmedia.c
3575 dist_udevrules_DATA += \
3576 rules/75-probe_mtd.rules
3578 udevlibexec_PROGRAMS += \
3581 # ------------------------------------------------------------------------------
3582 test_id128_SOURCES = \
3583 src/test/test-id128.c
3585 test_id128_LDADD = \
3586 libsystemd-internal.la \
3587 libsystemd-shared.la
3592 # ------------------------------------------------------------------------------
3594 rootlibexec_PROGRAMS += \
3597 systemd_activate_SOURCES = \
3598 src/activate/activate.c
3600 systemd_activate_LDADD = \
3601 libsystemd-label.la \
3602 libsystemd-internal.la \
3603 libsystemd-shared.la
3605 # ------------------------------------------------------------------------------
3606 systemd_journald_SOURCES = \
3607 src/journal/journald.c \
3608 src/journal/journald-server.h
3610 systemd_journald_LDADD = \
3611 libsystemd-journal-core.la \
3612 libsystemd-internal.la \
3613 libsystemd-shared.la
3615 systemd_cat_SOURCES = \
3618 systemd_cat_LDADD = \
3619 libsystemd-journal-core.la
3622 rootlibexec_PROGRAMS += \
3623 systemd-journal-remote
3625 systemd_journal_remote_SOURCES = \
3626 src/journal-remote/journal-remote-parse.h \
3627 src/journal-remote/journal-remote-parse.c \
3628 src/journal-remote/journal-remote-write.h \
3629 src/journal-remote/journal-remote-write.c \
3630 src/journal-remote/journal-remote.h \
3631 src/journal-remote/journal-remote.c
3633 systemd_journal_remote_LDADD = \
3634 libsystemd-internal.la \
3635 libsystemd-journal-core.la
3637 systemd_journal_remote_SOURCES += \
3638 src/journal-remote/microhttpd-util.h \
3639 src/journal-remote/microhttpd-util.c
3641 systemd_journal_remote_CFLAGS = \
3643 $(MICROHTTPD_CFLAGS)
3645 systemd_journal_remote_LDADD += \
3649 systemd_journal_remote_LDADD += \
3652 # systemd-journal-remote make sense mostly with full crypto stack
3653 dist_systemunit_DATA += \
3654 units/systemd-journal-remote.socket
3656 nodist_systemunit_DATA += \
3657 units/systemd-journal-remote.service
3660 units/systemd-journal-remote.service.in
3662 journal-remote-install-hook: journal-install-hook
3663 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
3664 -chown 0:0 $(DESTDIR)/var/log/journal/remote
3665 -chmod 755 $(DESTDIR)/var/log/journal/remote
3667 INSTALL_EXEC_HOOKS += journal-remote-install-hook
3671 nodist_pkgsysconf_DATA += \
3672 src/journal-remote/journal-remote.conf
3675 src/journal-remote/journal-remote.conf.in
3678 src/journal-remote/journal-remote.conf
3682 rootlibexec_PROGRAMS += \
3683 systemd-journal-upload
3685 systemd_journal_upload_SOURCES = \
3686 src/journal-remote/journal-upload.h \
3687 src/journal-remote/journal-upload.c \
3688 src/journal-remote/journal-upload-journal.c
3690 systemd_journal_upload_CFLAGS = \
3694 systemd_journal_upload_LDADD = \
3695 libsystemd-core.la \
3696 libsystemd-internal.la \
3697 libsystemd-journal-internal.la \
3698 libsystemd-shared.la \
3701 nodist_systemunit_DATA += \
3702 units/systemd-journal-upload.service
3705 units/systemd-journal-upload.service.in
3707 nodist_pkgsysconf_DATA += \
3708 src/journal-remote/journal-upload.conf
3711 src/journal-remote/journal-upload.conf.in
3714 src/journal-remote/journal-upload.conf
3717 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3718 journalctl_CFLAGS = \
3721 journalctl_SOURCES = \
3722 src/journal/journalctl.c
3724 journalctl_LDADD = \
3725 libsystemd-journal-internal.la \
3726 libsystemd-internal.la \
3727 libsystemd-logs.la \
3728 libsystemd-shared.la
3731 journalctl_LDADD += \
3736 journalctl_SOURCES += \
3737 src/journal/journal-qrcode.c \
3738 src/journal/journal-qrcode.h
3740 journalctl_CFLAGS += \
3743 journalctl_LDADD += \
3747 test_journal_SOURCES = \
3748 src/journal/test-journal.c
3750 test_journal_LDADD = \
3751 libsystemd-journal-core.la
3753 test_journal_send_SOURCES = \
3754 src/journal/test-journal-send.c
3756 test_journal_send_LDADD = \
3757 libsystemd-journal-core.la
3759 test_journal_syslog_SOURCES = \
3760 src/journal/test-journal-syslog.c
3762 test_journal_syslog_LDADD = \
3763 libsystemd-journal-core.la
3765 test_journal_match_SOURCES = \
3766 src/journal/test-journal-match.c
3768 test_journal_match_LDADD = \
3769 libsystemd-journal-core.la
3771 test_journal_enum_SOURCES = \
3772 src/journal/test-journal-enum.c
3774 test_journal_enum_LDADD = \
3775 libsystemd-journal-core.la
3777 test_journal_stream_SOURCES = \
3778 src/journal/test-journal-stream.c
3780 test_journal_stream_LDADD = \
3781 libsystemd-journal-core.la
3783 test_journal_flush_SOURCES = \
3784 src/journal/test-journal-flush.c
3786 test_journal_flush_LDADD = \
3787 libsystemd-journal-core.la
3789 test_journal_init_SOURCES = \
3790 src/journal/test-journal-init.c
3792 test_journal_init_LDADD = \
3793 libsystemd-journal-core.la
3795 test_journal_verify_SOURCES = \
3796 src/journal/test-journal-verify.c
3798 test_journal_verify_LDADD = \
3799 libsystemd-journal-core.la
3801 test_journal_interleaving_SOURCES = \
3802 src/journal/test-journal-interleaving.c
3804 test_journal_interleaving_LDADD = \
3805 libsystemd-journal-core.la
3807 test_mmap_cache_SOURCES = \
3808 src/journal/test-mmap-cache.c
3810 test_mmap_cache_LDADD = \
3811 libsystemd-journal-core.la
3813 test_catalog_SOURCES = \
3814 src/journal/test-catalog.c
3816 test_catalog_CPPFLAGS = \
3818 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
3820 test_catalog_LDADD = \
3821 libsystemd-journal-core.la
3823 test_compress_SOURCES = \
3824 src/journal/test-compress.c
3826 test_compress_LDADD = \
3827 libsystemd-journal-internal.la \
3828 libsystemd-shared.la
3830 test_compress_benchmark_SOURCES = \
3831 src/journal/test-compress-benchmark.c
3833 test_compress_benchmark_LDADD = \
3834 libsystemd-journal-internal.la \
3835 libsystemd-shared.la
3837 libsystemd_journal_core_la_SOURCES = \
3838 src/journal/journald-kmsg.c \
3839 src/journal/journald-kmsg.h \
3840 src/journal/journald-syslog.c \
3841 src/journal/journald-syslog.h \
3842 src/journal/journald-stream.c \
3843 src/journal/journald-stream.h \
3844 src/journal/journald-server.c \
3845 src/journal/journald-server.h \
3846 src/journal/journald-console.c \
3847 src/journal/journald-console.h \
3848 src/journal/journald-wall.c \
3849 src/journal/journald-wall.h \
3850 src/journal/journald-native.c \
3851 src/journal/journald-native.h \
3852 src/journal/journald-rate-limit.c \
3853 src/journal/journald-rate-limit.h \
3854 src/journal/journal-internal.h
3856 nodist_libsystemd_journal_core_la_SOURCES = \
3857 src/journal/journald-gperf.c
3859 libsystemd_journal_core_la_LIBADD = \
3860 libsystemd-journal-internal.la \
3861 libudev-internal.la \
3862 libsystemd-capability.la \
3863 libsystemd-label.la \
3864 libsystemd-internal.la \
3865 libsystemd-shared.la
3868 libsystemd_journal_core_la_LIBADD += \
3872 noinst_LTLIBRARIES += \
3873 libsystemd-journal-core.la
3875 journal-install-hook:
3876 -$(MKDIR_P) $(DESTDIR)/var/log/journal
3877 -chown 0:0 $(DESTDIR)/var/log/journal
3878 -chmod 755 $(DESTDIR)/var/log/journal
3879 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
3880 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
3882 journal-uninstall-hook:
3883 -rmdir $(DESTDIR)/var/log/journal/remote
3884 -rmdir $(DESTDIR)/var/log/journal/
3886 INSTALL_EXEC_HOOKS += journal-install-hook
3887 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
3889 # ------------------------------------------------------------------------------
3890 # Update catalog on installation. Do not bother if installing
3891 # in DESTDIR, since this is likely for packaging purposes.
3892 catalog-update-hook:
3893 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
3895 INSTALL_DATA_HOOKS += \
3898 catalog-remove-hook:
3899 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
3901 UNINSTALL_DATA_HOOKS += \
3910 test-journal-syslog \
3911 test-journal-match \
3912 test-journal-stream \
3914 test-journal-verify \
3915 test-journal-interleaving \
3916 test-journal-flush \
3923 test-compress-benchmark
3926 pkginclude_HEADERS += \
3927 src/systemd/sd-journal.h \
3928 src/systemd/sd-messages.h \
3929 src/systemd/_sd-common.h
3931 libsystemd_journal_internal_la_SOURCES = \
3932 src/journal/sd-journal.c \
3933 src/systemd/sd-journal.h \
3934 src/systemd/_sd-common.h \
3935 src/journal/journal-file.c \
3936 src/journal/journal-file.h \
3937 src/journal/journal-vacuum.c \
3938 src/journal/journal-vacuum.h \
3939 src/journal/journal-verify.c \
3940 src/journal/journal-verify.h \
3941 src/journal/lookup3.c \
3942 src/journal/lookup3.h \
3943 src/journal/journal-send.c \
3944 src/journal/journal-def.h \
3945 src/journal/compress.h \
3946 src/journal/catalog.c \
3947 src/journal/catalog.h \
3948 src/journal/mmap-cache.c \
3949 src/journal/mmap-cache.h
3951 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3952 libsystemd_journal_internal_la_CFLAGS = \
3955 libsystemd_journal_internal_la_LIBADD =
3957 libsystemd_journal_internal_la_SOURCES += \
3958 src/journal/compress.c
3961 libsystemd_journal_internal_la_CFLAGS += \
3964 libsystemd_journal_internal_la_LIBADD += \
3969 libsystemd_journal_internal_la_LIBADD += \
3974 libsystemd_journal_internal_la_SOURCES += \
3975 src/journal/journal-authenticate.c \
3976 src/journal/journal-authenticate.h \
3977 src/journal/fsprg.c \
3980 libsystemd_journal_internal_la_LIBADD += \
3983 # fsprg.c is a drop-in file using void pointer arithmetic
3984 libsystemd_journal_internal_la_CFLAGS += \
3989 noinst_LTLIBRARIES += \
3990 libsystemd-journal-internal.la
3992 rootlibexec_PROGRAMS += \
3995 rootbin_PROGRAMS += \
4001 dist_systemunit_DATA += \
4002 units/systemd-journald.socket \
4003 units/systemd-journald-dev-log.socket
4005 nodist_systemunit_DATA += \
4006 units/systemd-journald.service \
4007 units/systemd-journal-flush.service \
4008 units/systemd-journal-catalog-update.service
4010 dist_pkgsysconf_DATA += \
4011 src/journal/journald.conf
4013 dist_catalog_DATA = \
4014 catalog/systemd.fr.catalog \
4015 catalog/systemd.ru.catalog \
4016 catalog/systemd.it.catalog \
4017 catalog/systemd.catalog
4019 SOCKETS_TARGET_WANTS += \
4020 systemd-journald.socket \
4021 systemd-journald-dev-log.socket
4023 SYSINIT_TARGET_WANTS += \
4024 systemd-journald.service \
4025 systemd-journal-flush.service \
4026 systemd-journal-catalog-update.service
4029 units/systemd-journald.service.in \
4030 units/systemd-journal-flush.service.in \
4031 units/systemd-journal-catalog-update.service.in \
4032 src/journal/journald-gperf.gperf
4035 src/journal/journald-gperf.c
4037 # ------------------------------------------------------------------------------
4039 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4041 rootlibexec_PROGRAMS += \
4042 systemd-journal-gatewayd
4044 systemd_journal_gatewayd_SOURCES = \
4045 src/journal-remote/journal-gatewayd.c \
4046 src/journal-remote/microhttpd-util.h \
4047 src/journal-remote/microhttpd-util.c
4049 systemd_journal_gatewayd_LDADD = \
4050 libsystemd-logs.la \
4051 libsystemd-journal-internal.la \
4052 libsystemd-internal.la \
4053 libsystemd-shared.la \
4057 systemd_journal_gatewayd_LDADD += \
4061 systemd_journal_gatewayd_CFLAGS = \
4063 $(MICROHTTPD_CFLAGS)
4065 systemd_journal_gatewayd_CPPFLAGS = \
4067 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4069 dist_systemunit_DATA += \
4070 units/systemd-journal-gatewayd.socket
4072 nodist_systemunit_DATA += \
4073 units/systemd-journal-gatewayd.service
4075 dist_gatewayddocumentroot_DATA = \
4076 src/journal-remote/browse.html
4081 units/systemd-journal-gatewayd.service.in
4083 # ------------------------------------------------------------------------------
4085 systemd_socket_proxyd_SOURCES = \
4086 src/socket-proxy/socket-proxyd.c
4088 systemd_socket_proxyd_LDADD = \
4089 libsystemd-logs.la \
4090 libsystemd-internal.la \
4091 libsystemd-journal-internal.la \
4092 libsystemd-shared.la \
4093 libsystemd-resolve.la
4095 # ------------------------------------------------------------------------------
4097 systemd_coredump_SOURCES = \
4098 src/journal/coredump.c \
4099 src/journal/coredump-vacuum.c \
4100 src/journal/coredump-vacuum.h
4102 systemd_coredump_LDADD = \
4103 libsystemd-journal-internal.la \
4104 libsystemd-label.la \
4105 libsystemd-internal.la \
4106 libsystemd-shared.la
4109 systemd_coredump_SOURCES += \
4110 src/journal/stacktrace.c \
4111 src/journal/stacktrace.h
4113 systemd_coredump_LDADD += \
4117 rootlibexec_PROGRAMS += \
4120 dist_pkgsysconf_DATA += \
4121 src/journal/coredump.conf
4124 systemd_coredump_LDADD += \
4128 coredumpctl_SOURCES = \
4129 src/journal/coredumpctl.c
4131 coredumpctl_LDADD = \
4132 libsystemd-journal-internal.la \
4133 libsystemd-internal.la \
4134 libsystemd-shared.la
4140 test-coredump-vacuum
4142 test_coredump_vacuum_SOURCES = \
4143 src/journal/test-coredump-vacuum.c \
4144 src/journal/coredump-vacuum.c \
4145 src/journal/coredump-vacuum.h
4147 test_coredump_vacuum_LDADD = \
4148 libsystemd-internal.la \
4149 libsystemd-shared.la
4151 dist_bashcompletion_DATA += \
4152 shell-completion/bash/coredumpctl
4154 dist_zshcompletion_DATA += \
4155 shell-completion/zsh/_coredumpctl
4158 sysctl.d/50-coredump.conf
4161 sysctl.d/50-coredump.conf
4165 sysctl.d/50-coredump.conf.in
4167 # ------------------------------------------------------------------------------
4169 systemd_binfmt_SOURCES = \
4172 systemd_binfmt_LDADD = \
4173 libsystemd-shared.la
4175 rootlibexec_PROGRAMS += \
4178 dist_systemunit_DATA += \
4179 units/proc-sys-fs-binfmt_misc.automount \
4180 units/proc-sys-fs-binfmt_misc.mount
4182 nodist_systemunit_DATA += \
4183 units/systemd-binfmt.service
4186 $(prefix)/lib/binfmt.d \
4187 $(sysconfdir)/binfmt.d
4189 SYSINIT_TARGET_WANTS += \
4190 systemd-binfmt.service \
4191 proc-sys-fs-binfmt_misc.automount
4196 units/systemd-binfmt.service.in
4198 # ------------------------------------------------------------------------------
4200 systemd_vconsole_setup_SOURCES = \
4201 src/vconsole/vconsole-setup.c
4203 systemd_vconsole_setup_LDADD = \
4204 libsystemd-shared.la
4206 rootlibexec_PROGRAMS += \
4207 systemd-vconsole-setup
4209 nodist_systemunit_DATA += \
4210 units/systemd-vconsole-setup.service
4212 SYSINIT_TARGET_WANTS += \
4213 systemd-vconsole-setup.service
4217 units/systemd-vconsole-setup.service.in
4219 # ------------------------------------------------------------------------------
4221 systemd_readahead_SOURCES = \
4222 src/readahead/readahead.c \
4223 src/readahead/readahead-collect.c \
4224 src/readahead/readahead-replay.c \
4225 src/readahead/readahead-analyze.c \
4226 src/readahead/readahead-common.c \
4227 src/readahead/readahead-common.h
4229 systemd_readahead_LDADD = \
4230 libsystemd-internal.la \
4231 libudev-internal.la \
4232 libsystemd-shared.la
4235 src/readahead/sd-readahead.c \
4236 src/systemd/sd-readahead.h
4238 rootlibexec_PROGRAMS += \
4241 dist_systemunit_DATA += \
4242 units/systemd-readahead-drop.service \
4243 units/systemd-readahead-done.timer
4245 nodist_systemunit_DATA += \
4246 units/systemd-readahead-collect.service \
4247 units/systemd-readahead-replay.service \
4248 units/systemd-readahead-done.service
4253 test_ssd_SOURCES = \
4254 src/readahead/test-ssd.c \
4255 src/readahead/readahead-common.c \
4256 src/readahead/readahead-common.h
4259 libsystemd-internal.la \
4260 libudev-internal.la \
4261 libsystemd-shared.la
4266 units/systemd-readahead-collect.service.in \
4267 units/systemd-readahead-replay.service.in \
4268 units/systemd-readahead-done.service.in
4270 # ------------------------------------------------------------------------------
4272 systemd_bootchart_SOURCES = \
4273 src/bootchart/bootchart.c \
4274 src/bootchart/bootchart.h \
4275 src/bootchart/store.c \
4276 src/bootchart/store.h \
4277 src/bootchart/svg.c \
4280 systemd_bootchart_LDADD = \
4281 libsystemd-journal-internal.la \
4282 libsystemd-shared.la
4284 rootlibexec_PROGRAMS += \
4287 dist_pkgsysconf_DATA += \
4288 src/bootchart/bootchart.conf
4291 # ------------------------------------------------------------------------------
4292 if ENABLE_QUOTACHECK
4293 rootlibexec_PROGRAMS += \
4296 nodist_systemunit_DATA += \
4297 units/systemd-quotacheck.service
4299 systemd_quotacheck_SOURCES = \
4300 src/quotacheck/quotacheck.c
4302 systemd_quotacheck_LDADD = \
4303 libsystemd-shared.la
4307 units/systemd-quotacheck.service.in
4309 nodist_systemunit_DATA += \
4310 units/quotaon.service
4312 # ------------------------------------------------------------------------------
4313 if ENABLE_RANDOMSEED
4314 rootlibexec_PROGRAMS += \
4317 nodist_systemunit_DATA += \
4318 units/systemd-random-seed.service
4320 systemd_random_seed_SOURCES = \
4321 src/random-seed/random-seed.c
4323 systemd_random_seed_LDADD = \
4324 libsystemd-label.la \
4325 libsystemd-shared.la
4327 SYSINIT_TARGET_WANTS += \
4328 systemd-random-seed.service
4333 units/systemd-random-seed.service.in
4335 # ------------------------------------------------------------------------------
4337 rootlibexec_PROGRAMS += \
4340 nodist_systemunit_DATA += \
4341 units/systemd-backlight@.service
4343 systemd_backlight_SOURCES = \
4344 src/backlight/backlight.c
4346 systemd_backlight_LDADD = \
4347 libsystemd-label.la \
4348 libudev-internal.la \
4349 libsystemd-shared.la
4353 units/systemd-backlight@.service.in
4355 # ------------------------------------------------------------------------------
4357 rootlibexec_PROGRAMS += \
4360 nodist_systemunit_DATA += \
4361 units/systemd-rfkill@.service
4363 systemd_rfkill_SOURCES = \
4366 systemd_rfkill_LDADD = \
4367 libsystemd-label.la \
4368 libudev-internal.la \
4369 libsystemd-shared.la
4373 units/systemd-rfkill@.service.in
4375 # ------------------------------------------------------------------------------
4376 if HAVE_LIBCRYPTSETUP
4377 rootlibexec_PROGRAMS += \
4380 systemgenerator_PROGRAMS += \
4381 systemd-cryptsetup-generator
4383 dist_systemunit_DATA += \
4384 units/cryptsetup.target \
4385 units/cryptsetup-pre.target
4387 systemd_cryptsetup_SOURCES = \
4388 src/cryptsetup/cryptsetup.c
4390 systemd_cryptsetup_CFLAGS = \
4392 $(LIBCRYPTSETUP_CFLAGS)
4394 systemd_cryptsetup_LDADD = \
4395 libsystemd-label.la \
4396 libudev-internal.la \
4397 libsystemd-shared.la \
4398 $(LIBCRYPTSETUP_LIBS)
4400 systemd_cryptsetup_generator_SOURCES = \
4401 src/cryptsetup/cryptsetup-generator.c
4403 systemd_cryptsetup_generator_LDADD = \
4404 libsystemd-label.la \
4405 libsystemd-shared.la
4407 SYSINIT_TARGET_WANTS += \
4412 # ------------------------------------------------------------------------------
4414 systemd_hostnamed_SOURCES = \
4415 src/hostname/hostnamed.c
4417 systemd_hostnamed_LDADD = \
4418 libsystemd-label.la \
4419 libsystemd-internal.la \
4420 libsystemd-shared.la
4422 rootlibexec_PROGRAMS += \
4425 nodist_systemunit_DATA += \
4426 units/systemd-hostnamed.service
4428 dist_systemunit_DATA += \
4429 units/org.freedesktop.hostname1.busname
4431 dist_dbuspolicy_DATA += \
4432 src/hostname/org.freedesktop.hostname1.conf
4434 dist_dbussystemservice_DATA += \
4435 src/hostname/org.freedesktop.hostname1.service
4437 polkitpolicy_files += \
4438 src/hostname/org.freedesktop.hostname1.policy
4440 SYSTEM_UNIT_ALIASES += \
4441 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4443 BUSNAMES_TARGET_WANTS += \
4444 org.freedesktop.hostname1.busname
4446 hostnamectl_SOURCES = \
4447 src/hostname/hostnamectl.c
4449 hostnamectl_LDADD = \
4450 libsystemd-internal.la \
4451 libsystemd-shared.la
4456 dist_bashcompletion_DATA += \
4457 shell-completion/bash/hostnamectl
4459 dist_zshcompletion_DATA += \
4460 shell-completion/zsh/_hostnamectl
4464 polkitpolicy_in_files += \
4465 src/hostname/org.freedesktop.hostname1.policy.in
4468 units/systemd-hostnamed.service.in
4470 # ------------------------------------------------------------------------------
4472 dist_systemunit_DATA += \
4473 units/org.freedesktop.systemd1.busname
4475 BUSNAMES_TARGET_WANTS += \
4476 org.freedesktop.systemd1.busname
4479 # ------------------------------------------------------------------------------
4481 systemd_localed_SOURCES = \
4482 src/locale/localed.c
4484 systemd_localed_LDADD = \
4485 libsystemd-label.la \
4486 libsystemd-internal.la \
4487 libsystemd-shared.la
4489 nodist_systemunit_DATA += \
4490 units/systemd-localed.service
4492 dist_systemunit_DATA += \
4493 units/org.freedesktop.locale1.busname
4495 rootlibexec_PROGRAMS += \
4498 dist_dbuspolicy_DATA += \
4499 src/locale/org.freedesktop.locale1.conf
4501 dist_dbussystemservice_DATA += \
4502 src/locale/org.freedesktop.locale1.service
4504 polkitpolicy_files += \
4505 src/locale/org.freedesktop.locale1.policy
4507 SYSTEM_UNIT_ALIASES += \
4508 systemd-localed.service dbus-org.freedesktop.locale1.service
4510 BUSNAMES_TARGET_WANTS += \
4511 org.freedesktop.locale1.busname
4513 dist_pkgdata_DATA += \
4514 src/locale/kbd-model-map
4516 dist_noinst_SCRIPT = \
4517 src/locale/generate-kbd-model-map
4519 localectl_SOURCES = \
4520 src/locale/localectl.c
4523 libsystemd-internal.la \
4524 libsystemd-shared.la
4529 dist_bashcompletion_DATA += \
4530 shell-completion/bash/localectl
4532 dist_zshcompletion_DATA += \
4533 shell-completion/zsh/_localectl
4537 .PHONY: update-kbd-model-map
4539 polkitpolicy_in_files += \
4540 src/locale/org.freedesktop.locale1.policy.in
4543 units/systemd-localed.service.in
4545 # ------------------------------------------------------------------------------
4547 systemd_timedated_SOURCES = \
4548 src/timedate/timedated.c
4550 systemd_timedated_LDADD = \
4551 libsystemd-label.la \
4552 libsystemd-internal.la \
4553 libsystemd-shared.la
4555 rootlibexec_PROGRAMS += \
4558 dist_dbussystemservice_DATA += \
4559 src/timedate/org.freedesktop.timedate1.service
4561 dist_dbuspolicy_DATA += \
4562 src/timedate/org.freedesktop.timedate1.conf
4564 nodist_systemunit_DATA += \
4565 units/systemd-timedated.service
4567 dist_systemunit_DATA += \
4568 units/org.freedesktop.timedate1.busname
4570 polkitpolicy_files += \
4571 src/timedate/org.freedesktop.timedate1.policy
4573 SYSTEM_UNIT_ALIASES += \
4574 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4576 BUSNAMES_TARGET_WANTS += \
4577 org.freedesktop.timedate1.busname
4579 timedatectl_SOURCES = \
4580 src/timedate/timedatectl.c
4582 timedatectl_LDADD = \
4583 libsystemd-internal.la \
4584 libsystemd-shared.la
4589 dist_bashcompletion_DATA += \
4590 shell-completion/bash/timedatectl
4592 dist_zshcompletion_DATA += \
4593 shell-completion/zsh/_timedatectl
4596 polkitpolicy_in_files += \
4597 src/timedate/org.freedesktop.timedate1.policy.in
4600 units/systemd-timedated.service.in
4602 # ------------------------------------------------------------------------------
4604 systemd_timesyncd_SOURCES = \
4605 src/timesync/timesyncd.c \
4606 src/timesync/timesyncd-manager.c \
4607 src/timesync/timesyncd-manager.h \
4608 src/timesync/timesyncd-conf.c \
4609 src/timesync/timesyncd-conf.h \
4610 src/timesync/timesyncd-server.c \
4611 src/timesync/timesyncd-server.h
4613 nodist_systemd_timesyncd_SOURCES = \
4614 src/timesync/timesyncd-gperf.c
4617 src/timesync/timesyncd-gperf.gperf
4620 src/timesync/timesyncd-gperf.c
4622 systemd_timesyncd_LDADD = \
4623 libsystemd-resolve.la \
4624 libsystemd-network.la \
4625 libsystemd-label.la \
4626 libsystemd-capability.la \
4627 libsystemd-internal.la \
4628 libsystemd-shared.la \
4631 rootlibexec_PROGRAMS += \
4634 nodist_systemunit_DATA += \
4635 units/systemd-timesyncd.service
4637 GENERAL_ALIASES += \
4638 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
4641 units/systemd-timesyncd.service.in
4643 nodist_pkgsysconf_DATA += \
4644 src/timesync/timesyncd.conf
4647 src/timesync/timesyncd.conf.in
4650 src/timesync/timesyncd.conf
4653 # ------------------------------------------------------------------------------
4655 libnss_myhostname_la_SOURCES = \
4656 src/nss-myhostname/nss-myhostname.sym \
4657 src/nss-myhostname/nss-myhostname.c
4659 libnss_myhostname_la_LDFLAGS = \
4666 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
4668 libnss_myhostname_la_LIBADD = \
4669 libsystemd-shared.la \
4670 libsystemd-internal.la
4672 lib_LTLIBRARIES += \
4673 libnss_myhostname.la
4676 # ------------------------------------------------------------------------------
4678 systemd_machined_SOURCES = \
4679 src/machine/machined.c \
4680 src/machine/machined.h
4682 systemd_machined_LDADD = \
4683 libsystemd-machine-core.la
4685 rootlibexec_PROGRAMS += \
4688 libsystemd_machine_core_la_SOURCES = \
4689 src/machine/machined-dbus.c \
4690 src/machine/machine.c \
4691 src/machine/machine.h \
4692 src/machine/machine-dbus.c
4694 libsystemd_machine_core_la_LIBADD = \
4695 libsystemd-label.la \
4696 libsystemd-internal.la \
4697 libudev-internal.la \
4698 libsystemd-shared.la
4700 noinst_LTLIBRARIES += \
4701 libsystemd-machine-core.la
4703 machinectl_SOURCES = \
4704 src/machine/machinectl.c
4706 machinectl_LDADD = \
4707 libsystemd-internal.la \
4708 libsystemd-shared.la
4710 rootbin_PROGRAMS += \
4713 dist_bashcompletion_DATA += \
4714 shell-completion/bash/machinectl
4716 test_machine_tables_SOURCES = \
4717 src/machine/test-machine-tables.c
4719 test_machine_tables_LDADD = \
4720 libsystemd-machine-core.la
4725 nodist_systemunit_DATA += \
4726 units/systemd-machined.service
4728 dist_systemunit_DATA += \
4729 units/machine.slice \
4730 units/org.freedesktop.machine1.busname
4732 dist_dbussystemservice_DATA += \
4733 src/machine/org.freedesktop.machine1.service
4735 dist_dbuspolicy_DATA += \
4736 src/machine/org.freedesktop.machine1.conf
4738 dist_zshcompletion_DATA += \
4739 shell-completion/zsh/_machinectl \
4740 shell-completion/zsh/_sd_machines
4742 SYSTEM_UNIT_ALIASES += \
4743 systemd-machined.service dbus-org.freedesktop.machine1.service
4745 BUSNAMES_TARGET_WANTS += \
4746 org.freedesktop.machine1.busname
4749 units/systemd-machined.service.in
4751 libnss_mymachines_la_SOURCES = \
4752 src/nss-mymachines/nss-mymachines.sym \
4753 src/nss-mymachines/nss-mymachines.c
4755 libnss_mymachines_la_LDFLAGS = \
4762 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
4764 libnss_mymachines_la_LIBADD = \
4765 libsystemd-shared.la \
4766 libsystemd-internal.la
4768 lib_LTLIBRARIES += \
4769 libnss_mymachines.la
4772 # ------------------------------------------------------------------------------
4774 systemd_resolved_SOURCES = \
4775 src/resolve/resolved.c \
4776 src/resolve/resolved-manager.c \
4777 src/resolve/resolved-manager.h \
4778 src/resolve/resolved-conf.c \
4779 src/resolve/resolved-conf.h \
4780 src/resolve/resolved-bus.c \
4781 src/resolve/resolved-bus.h \
4782 src/resolve/resolved-link.h \
4783 src/resolve/resolved-link.c \
4784 src/resolve/resolved-def.h \
4785 src/resolve/resolved-dns-domain.h \
4786 src/resolve/resolved-dns-domain.c \
4787 src/resolve/resolved-dns-rr.h \
4788 src/resolve/resolved-dns-rr.c \
4789 src/resolve/resolved-dns-question.h \
4790 src/resolve/resolved-dns-question.c \
4791 src/resolve/resolved-dns-answer.h \
4792 src/resolve/resolved-dns-answer.c \
4793 src/resolve/resolved-dns-packet.h \
4794 src/resolve/resolved-dns-packet.c \
4795 src/resolve/resolved-dns-query.h \
4796 src/resolve/resolved-dns-query.c \
4797 src/resolve/resolved-dns-transaction.h \
4798 src/resolve/resolved-dns-transaction.c \
4799 src/resolve/resolved-dns-scope.h \
4800 src/resolve/resolved-dns-scope.c \
4801 src/resolve/resolved-dns-server.h \
4802 src/resolve/resolved-dns-server.c \
4803 src/resolve/resolved-dns-cache.h \
4804 src/resolve/resolved-dns-cache.c \
4805 src/resolve/resolved-dns-zone.h \
4806 src/resolve/resolved-dns-zone.c \
4807 src/resolve/resolved-dns-stream.h \
4808 src/resolve/resolved-dns-stream.c \
4809 src/resolve/dns-type.c \
4810 src/resolve/dns-type.h \
4811 src/resolve/dns_type-from-name.h \
4812 src/resolve/dns_type-to-name.h
4814 nodist_systemd_resolved_SOURCES = \
4815 src/resolve/resolved-gperf.c
4818 src/resolve/resolved-gperf.gperf \
4819 src/resolve/dns_type-from-name.gperf
4822 src/resolve/resolved-gperf.c
4824 systemd_resolved_LDADD = \
4825 libsystemd-capability.la \
4826 libsystemd-network.la \
4827 libsystemd-label.la \
4828 libsystemd-internal.la \
4829 libsystemd-shared.la \
4833 rootlibexec_PROGRAMS += \
4836 nodist_systemunit_DATA += \
4837 units/systemd-resolved.service
4839 dist_systemunit_DATA += \
4840 units/org.freedesktop.resolve1.busname
4842 dist_dbuspolicy_DATA += \
4843 src/resolve/org.freedesktop.resolve1.conf
4845 dist_dbussystemservice_DATA += \
4846 src/resolve/org.freedesktop.resolve1.service
4849 units/systemd-resolved.service.in
4851 SYSTEM_UNIT_ALIASES += \
4852 systemd-resolved.service dbus-org.freedesktop.resolve1.service
4854 BUSNAMES_TARGET_WANTS += \
4855 org.freedesktop.resolve1.busname
4857 GENERAL_ALIASES += \
4858 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
4860 nodist_pkgsysconf_DATA += \
4861 src/resolve/resolved.conf
4864 src/resolve/resolved.conf.in
4867 src/resolve/resolved.conf
4872 test_dns_domain_SOURCES = \
4873 src/resolve/resolved-dns-domain.h \
4874 src/resolve/resolved-dns-domain.c \
4875 src/resolve/test-dns-domain.c
4877 test_dns_domain_LDADD = \
4878 libsystemd-capability.la \
4879 libsystemd-network.la \
4880 libsystemd-label.la \
4881 libsystemd-internal.la \
4882 libsystemd-shared.la \
4885 libnss_resolve_la_SOURCES = \
4886 src/nss-resolve/nss-resolve.sym \
4887 src/nss-resolve/nss-resolve.c
4889 libnss_resolve_la_LDFLAGS = \
4896 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
4898 libnss_resolve_la_LIBADD = \
4899 libsystemd-shared.la \
4900 libsystemd-internal.la
4902 lib_LTLIBRARIES += \
4905 systemd_resolve_host_SOURCES = \
4906 src/resolve-host/resolve-host.c \
4907 src/resolve/resolved-dns-packet.c \
4908 src/resolve/resolved-dns-packet.h \
4909 src/resolve/resolved-dns-rr.c \
4910 src/resolve/resolved-dns-rr.h \
4911 src/resolve/resolved-dns-answer.c \
4912 src/resolve/resolved-dns-answer.h \
4913 src/resolve/resolved-dns-question.c \
4914 src/resolve/resolved-dns-question.h \
4915 src/resolve/resolved-dns-domain.c \
4916 src/resolve/resolved-dns-domain.h \
4917 src/resolve/dns-type.c \
4918 src/resolve/dns-type.h \
4919 src/resolve/dns_type-from-name.h \
4920 src/resolve/dns_type-to-name.h
4922 systemd_resolve_host_LDADD = \
4923 libsystemd-internal.la \
4924 libsystemd-shared.la \
4928 rootlibexec_PROGRAMS += \
4929 systemd-resolve-host
4933 # ------------------------------------------------------------------------------
4935 rootlibexec_PROGRAMS += \
4938 systemd_networkd_SOURCES = \
4939 src/network/networkd.c
4941 systemd_networkd_LDADD = \
4942 libsystemd-networkd-core.la \
4943 libsystemd-capability.la
4945 noinst_LTLIBRARIES += \
4946 libsystemd-networkd-core.la
4948 libsystemd_networkd_core_la_CFLAGS = \
4951 libsystemd_networkd_core_la_SOURCES = \
4952 src/libsystemd-network/network-internal.h \
4953 src/network/networkd.h \
4954 src/network/networkd-link.h \
4955 src/network/networkd-netdev.h \
4956 src/network/networkd-netdev-tunnel.h \
4957 src/network/networkd-netdev-veth.h \
4958 src/network/networkd-netdev-vxlan.h \
4959 src/network/networkd-netdev-vlan.h \
4960 src/network/networkd-netdev-macvlan.h \
4961 src/network/networkd-netdev-dummy.h \
4962 src/network/networkd-netdev-tuntap.h \
4963 src/network/networkd-netdev-bond.h \
4964 src/network/networkd-netdev-bridge.h \
4965 src/network/networkd-netdev.c \
4966 src/network/networkd-netdev-tunnel.c \
4967 src/network/networkd-netdev-veth.c \
4968 src/network/networkd-netdev-vxlan.c \
4969 src/network/networkd-netdev-vlan.c \
4970 src/network/networkd-netdev-macvlan.c \
4971 src/network/networkd-netdev-dummy.c \
4972 src/network/networkd-netdev-tuntap.c \
4973 src/network/networkd-netdev-bond.c \
4974 src/network/networkd-netdev-bridge.c \
4975 src/network/networkd-link.c \
4976 src/network/networkd-ipv4ll.c \
4977 src/network/networkd-dhcp4.c \
4978 src/network/networkd-network.c \
4979 src/network/networkd-address.c \
4980 src/network/networkd-route.c \
4981 src/network/networkd-manager.c \
4982 src/network/networkd-address-pool.c
4984 nodist_libsystemd_networkd_core_la_SOURCES = \
4985 src/network/networkd-network-gperf.c \
4986 src/network/networkd-netdev-gperf.c
4988 libsystemd_networkd_core_la_LIBADD = \
4989 libudev-internal.la \
4990 libsystemd-internal.la \
4991 libsystemd-network.la \
4992 libsystemd-label.la \
4993 libsystemd-shared.la
4995 rootlibexec_PROGRAMS += \
4996 systemd-networkd-wait-online
4998 systemd_networkd_wait_online_CFLAGS = \
5001 systemd_networkd_wait_online_SOURCES = \
5002 src/libsystemd-network/network-internal.h \
5003 src/network/networkd-wait-online.h \
5004 src/network/networkd-wait-online-link.h \
5005 src/network/networkd-wait-online.c \
5006 src/network/networkd-wait-online-manager.c \
5007 src/network/networkd-wait-online-link.c
5009 systemd_networkd_wait_online_LDADD = \
5010 libsystemd-network.la \
5011 libudev-internal.la \
5012 libsystemd-internal.la \
5013 libsystemd-shared.la
5015 rootbin_PROGRAMS += \
5018 networkctl_SOURCES = \
5019 src/network/networkctl.c
5021 networkctl_LDADD = \
5022 libsystemd-internal.la \
5023 libudev-internal.la \
5024 libsystemd-shared.la \
5025 libsystemd-network.la
5027 test_network_SOURCES = \
5028 src/network/test-network.c
5030 test_network_CFLAGS = \
5033 test_network_LDADD = \
5034 libsystemd-networkd-core.la
5036 test_network_tables_SOURCES = \
5037 src/network/test-network-tables.c \
5038 src/shared/test-tables.h
5040 test_network_tables_LDADD = \
5041 libsystemd-networkd-core.la \
5048 nodist_systemunit_DATA += \
5049 units/systemd-networkd.service \
5050 units/systemd-networkd-wait-online.service
5052 GENERAL_ALIASES += \
5053 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5054 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5057 src/network/networkd-network-gperf.gperf \
5058 src/network/networkd-netdev-gperf.gperf \
5059 units/systemd-networkd.service.in \
5060 units/systemd-networkd-wait-online.service.in
5063 src/network/networkd-network-gperf.c \
5064 src/network/networkd-netdev-gperf.c
5067 # ------------------------------------------------------------------------------
5069 systemd_logind_SOURCES = \
5070 src/login/logind.c \
5073 nodist_systemd_logind_SOURCES = \
5074 src/login/logind-gperf.c
5076 systemd_logind_LDADD = \
5077 libsystemd-logind-core.la
5079 libsystemd_logind_core_la_SOURCES = \
5080 src/login/logind-core.c \
5081 src/login/logind-device.c \
5082 src/login/logind-device.h \
5083 src/login/logind-button.c \
5084 src/login/logind-button.h \
5085 src/login/logind-action.c \
5086 src/login/logind-action.h \
5087 src/login/logind-seat.c \
5088 src/login/logind-seat.h \
5089 src/login/logind-session.c \
5090 src/login/logind-session.h \
5091 src/login/logind-session-device.c \
5092 src/login/logind-session-device.h \
5093 src/login/logind-user.c \
5094 src/login/logind-user.h \
5095 src/login/logind-inhibit.c \
5096 src/login/logind-inhibit.h \
5097 src/login/logind-dbus.c \
5098 src/login/logind-session-dbus.c \
5099 src/login/logind-seat-dbus.c \
5100 src/login/logind-user-dbus.c \
5101 src/login/logind-acl.h
5103 libsystemd_logind_core_la_LIBADD = \
5104 libsystemd-label.la \
5105 libsystemd-capability.la \
5106 libsystemd-internal.la \
5107 libudev-internal.la \
5108 libsystemd-shared.la
5111 libsystemd_logind_core_la_SOURCES += \
5112 src/login/logind-acl.c
5114 libsystemd_logind_core_la_LIBADD += \
5118 noinst_LTLIBRARIES += \
5119 libsystemd-logind-core.la
5121 systemd_user_sessions_SOURCES = \
5122 src/login/user-sessions.c
5124 systemd_user_sessions_LDADD = \
5125 libsystemd-shared.la
5127 rootlibexec_PROGRAMS += \
5129 systemd-user-sessions
5131 loginctl_SOURCES = \
5132 src/login/loginctl.c \
5133 src/login/sysfs-show.c
5136 libsystemd-internal.la \
5137 libudev-internal.la \
5138 libsystemd-shared.la
5140 rootbin_PROGRAMS += \
5143 dist_bashcompletion_DATA += \
5144 shell-completion/bash/loginctl
5146 dist_zshcompletion_DATA += \
5147 shell-completion/zsh/_loginctl \
5148 shell-completion/zsh/_systemd-inhibit
5150 systemd_inhibit_SOURCES = \
5153 systemd_inhibit_LDADD = \
5154 libsystemd-internal.la \
5155 libsystemd-shared.la
5157 rootbin_PROGRAMS += \
5160 test_login_SOURCES = \
5161 src/libsystemd/sd-login/test-login.c
5163 test_login_LDADD = \
5164 libsystemd-internal.la \
5165 libsystemd-shared.la
5167 test_login_shared_SOURCES = \
5168 src/login/test-login-shared.c
5170 test_login_shared_LDADD = \
5171 libsystemd-internal.la \
5172 libsystemd-shared.la
5174 test_inhibit_SOURCES = \
5175 src/login/test-inhibit.c
5177 test_inhibit_LDADD = \
5178 libsystemd-internal.la \
5179 libsystemd-shared.la
5181 test_login_tables_SOURCES = \
5182 src/login/test-login-tables.c
5184 test_login_tables_LDADD = \
5185 libsystemd-logind-core.la
5196 pam_systemd_la_SOURCES = \
5197 src/login/pam_systemd.sym \
5198 src/login/pam_systemd.c
5200 pam_systemd_la_CFLAGS = \
5205 pam_systemd_la_LDFLAGS = \
5211 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5213 pam_systemd_la_LIBADD = \
5214 libsystemd-capability.la \
5215 libsystemd-internal.la \
5216 libsystemd-shared.la \
5219 pamlib_LTLIBRARIES = \
5222 dist_pamconf_DATA = \
5223 src/login/systemd-user
5226 nodist_systemunit_DATA += \
5227 units/systemd-logind.service \
5228 units/systemd-user-sessions.service
5230 dist_systemunit_DATA += \
5232 units/org.freedesktop.login1.busname
5234 dist_dbussystemservice_DATA += \
5235 src/login/org.freedesktop.login1.service
5237 dist_dbuspolicy_DATA += \
5238 src/login/org.freedesktop.login1.conf
5240 dist_pkgsysconf_DATA += \
5241 src/login/logind.conf
5243 polkitpolicy_files += \
5244 src/login/org.freedesktop.login1.policy
5249 MULTI_USER_TARGET_WANTS += \
5250 systemd-logind.service \
5251 systemd-user-sessions.service
5253 SYSTEM_UNIT_ALIASES += \
5254 systemd-logind.service dbus-org.freedesktop.login1.service
5256 BUSNAMES_TARGET_WANTS += \
5257 org.freedesktop.login1.busname
5259 if ENABLE_MULTI_SEAT_X
5261 systemd_multi_seat_x_SOURCES = \
5262 src/login/multi-seat-x.c
5264 systemd_multi_seat_x_LDADD = \
5265 libsystemd-label.la \
5266 libsystemd-shared.la
5268 rootlibexec_PROGRAMS += \
5269 systemd-multi-seat-x
5273 dist_udevrules_DATA += \
5274 src/login/70-uaccess.rules \
5275 src/login/70-power-switch.rules
5277 nodist_udevrules_DATA += \
5278 src/login/71-seat.rules \
5279 src/login/73-seat-late.rules
5282 src/login/logind-gperf.c \
5283 src/login/71-seat.rules \
5284 src/login/73-seat-late.rules
5287 polkitpolicy_in_files += \
5288 src/login/org.freedesktop.login1.policy.in
5291 src/login/logind-gperf.gperf \
5292 src/login/71-seat.rules.in \
5293 src/login/73-seat-late.rules.in \
5294 units/systemd-logind.service.in \
5295 units/systemd-user-sessions.service.in
5297 # ------------------------------------------------------------------------------
5298 if HAVE_PYTHON_DEVEL
5299 pkgpyexec_LTLIBRARIES = \
5306 _journal_la_SOURCES = \
5307 src/python-systemd/_journal.c
5309 _journal_la_CFLAGS = \
5311 -fvisibility=default \
5312 $(PYTHON_DEVEL_CFLAGS)
5314 _journal_la_LDFLAGS = \
5320 _journal_la_LIBADD = \
5321 $(PYTHON_DEVEL_LIBS) \
5324 id128_la_SOURCES = \
5325 src/python-systemd/id128.c \
5326 src/python-systemd/pyutil.c \
5327 src/python-systemd/pyutil.h
5329 nodist_id128_la_SOURCES = \
5330 src/python-systemd/id128-constants.h
5334 -fvisibility=default \
5335 $(PYTHON_DEVEL_CFLAGS) \
5336 -I$(top_builddir)/src/python-systemd
5338 id128_la_LDFLAGS = \
5345 $(PYTHON_DEVEL_LIBS) \
5346 libsystemd-shared.la \
5349 _daemon_la_SOURCES = \
5350 src/python-systemd/_daemon.c \
5351 src/python-systemd/pyutil.c \
5352 src/python-systemd/pyutil.h
5354 _daemon_la_CFLAGS = \
5356 -fvisibility=default \
5357 $(PYTHON_DEVEL_CFLAGS) \
5358 -I$(top_builddir)/src/python-systemd
5360 _daemon_la_LDFLAGS = \
5366 _daemon_la_LIBADD = \
5367 $(PYTHON_DEVEL_LIBS) \
5368 libsystemd-shared.la \
5371 _reader_la_SOURCES = \
5372 src/python-systemd/_reader.c \
5373 src/python-systemd/pyutil.c \
5374 src/python-systemd/pyutil.h
5376 _reader_la_CFLAGS = \
5378 -fvisibility=default \
5379 $(PYTHON_DEVEL_CFLAGS)
5381 _reader_la_LDFLAGS = \
5387 _reader_la_LIBADD = \
5388 $(PYTHON_DEVEL_LIBS) \
5389 libsystemd-shared.la \
5392 login_la_SOURCES = \
5393 src/python-systemd/login.c \
5394 src/python-systemd/pyutil.c \
5395 src/python-systemd/pyutil.h
5399 -fvisibility=default \
5400 $(PYTHON_DEVEL_CFLAGS)
5402 login_la_LDFLAGS = \
5409 $(PYTHON_DEVEL_LIBS) \
5410 libsystemd-shared.la \
5413 dist_pkgpyexec_PYTHON = \
5414 src/python-systemd/journal.py \
5415 src/python-systemd/daemon.py \
5416 src/python-systemd/__init__.py
5418 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
5419 $(AM_V_at)$(MKDIR_P) $(dir $@)
5420 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
5423 src/python-systemd/id128-constants.h
5425 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
5427 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
5428 $(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/
5429 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
5432 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
5433 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
5436 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
5437 $(MAKE) DESTDIR="$$dir" install && \
5438 $(MAKE) DESTDIR="$$dir" sphinx-html && \
5443 CLEAN_LOCAL_HOOKS += clean-sphinx
5445 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
5448 -rm -rf docs/html/python-systemd/
5450 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
5452 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
5453 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
5455 # ------------------------------------------------------------------------------
5456 if ENABLE_COMPAT_LIBS
5458 src/compat-libs/linkwarning.h
5460 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
5461 $(AM_V_at)$(MKDIR_P) $(dir $@)
5462 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
5465 libsystemd-journal.c \
5466 libsystemd-login.c \
5467 libsystemd-id128.c \
5470 libsystemd_journal_la_SOURCES = \
5471 libsystemd-journal.c \
5472 src/compat-libs/libsystemd-journal.sym
5474 libsystemd_journal_la_CPPFLAGS = \
5476 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5478 libsystemd_journal_la_LDFLAGS = \
5480 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
5481 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
5483 libsystemd_journal_la_LIBADD = \
5484 libsystemd-journal-internal.la \
5485 libsystemd-internal.la \
5486 libsystemd-shared.la
5488 libsystemd_login_la_SOURCES = \
5489 libsystemd-login.c \
5490 src/compat-libs/libsystemd-login.sym
5492 libsystemd_login_la_CPPFLAGS = \
5494 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5496 libsystemd_login_la_LDFLAGS = \
5498 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
5499 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
5501 libsystemd_login_la_LIBADD = \
5502 libsystemd-internal.la \
5503 libsystemd-shared.la
5505 libsystemd_id128_la_SOURCES = \
5506 libsystemd-id128.c \
5507 src/compat-libs/libsystemd-id128.sym
5509 libsystemd_id128_la_CPPFLAGS = \
5511 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5513 libsystemd_id128_la_LDFLAGS = \
5515 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
5516 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
5518 libsystemd_id128_la_LIBADD = \
5519 libsystemd-internal.la \
5520 libsystemd-shared.la
5522 libsystemd_daemon_la_SOURCES = \
5523 libsystemd-daemon.c \
5524 src/compat-libs/libsystemd-daemon.sym
5526 libsystemd_daemon_la_CPPFLAGS = \
5528 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5530 libsystemd_daemon_la_LDFLAGS = \
5532 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
5533 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
5535 libsystemd_daemon_la_LIBADD = \
5536 libsystemd-internal.la \
5537 libsystemd-shared.la
5539 lib_LTLIBRARIES += \
5540 libsystemd-journal.la \
5541 libsystemd-login.la \
5542 libsystemd-id128.la \
5543 libsystemd-daemon.la
5545 pkgconfiglib_DATA += \
5546 src/compat-libs/libsystemd-journal.pc \
5547 src/compat-libs/libsystemd-login.pc \
5548 src/compat-libs/libsystemd-id128.pc \
5549 src/compat-libs/libsystemd-daemon.pc
5551 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
5552 compat-lib-install-hook:
5553 libname=libsystemd-login.so && $(move-to-rootlibdir)
5554 libname=libsystemd-journal.so && $(move-to-rootlibdir)
5555 libname=libsystemd-id128.so && $(move-to-rootlibdir)
5556 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
5558 compat-lib-uninstall-hook:
5559 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
5560 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
5561 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
5562 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
5564 INSTALL_EXEC_HOOKS += compat-lib-install-hook
5565 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
5569 src/compat-libs/libsystemd-journal.pc.in \
5570 src/compat-libs/libsystemd-login.pc.in \
5571 src/compat-libs/libsystemd-id128.pc.in \
5572 src/compat-libs/libsystemd-daemon.pc.in
5574 # ------------------------------------------------------------------------------
5576 '|rootlibexecdir=$(rootlibexecdir)|' \
5577 '|rootbindir=$(rootbindir)|' \
5578 '|bindir=$(bindir)|' \
5579 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5580 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5581 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5582 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5583 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
5584 '|pkgdatadir=$(pkgdatadir)|' \
5585 '|systemunitdir=$(systemunitdir)|' \
5586 '|userunitdir=$(userunitdir)|' \
5587 '|systempresetdir=$(systempresetdir)|' \
5588 '|userpresetdir=$(userpresetdir)|' \
5589 '|udevhwdbdir=$(udevhwdbdir)|' \
5590 '|udevrulesdir=$(udevrulesdir)|' \
5591 '|catalogdir=$(catalogdir)|' \
5592 '|tmpfilesdir=$(tmpfilesdir)|' \
5593 '|sysusersdir=$(sysusersdir)|' \
5594 '|sysctldir=$(sysctldir)|' \
5595 '|systemgeneratordir=$(systemgeneratordir)|' \
5596 '|usergeneratordir=$(usergeneratordir)|' \
5597 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
5598 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
5599 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
5600 '|PACKAGE_URL=$(PACKAGE_URL)|' \
5601 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
5602 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
5603 '|prefix=$(prefix)|' \
5604 '|exec_prefix=$(exec_prefix)|' \
5605 '|libdir=$(libdir)|' \
5606 '|includedir=$(includedir)|' \
5607 '|VERSION=$(VERSION)|' \
5608 '|rootprefix=$(rootprefix)|' \
5609 '|udevlibexecdir=$(udevlibexecdir)|' \
5610 '|SUSHELL=$(SUSHELL)|' \
5611 '|DEBUGTTY=$(DEBUGTTY)|' \
5614 '|MKDIR_P=$(MKDIR_P)|' \
5615 '|QUOTAON=$(QUOTAON)|' \
5616 '|QUOTACHECK=$(QUOTACHECK)|' \
5617 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
5618 '|VARLOGDIR=$(varlogdir)|' \
5619 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
5620 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
5621 '|PYTHON=$(PYTHON)|' \
5622 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
5623 '|NTP_SERVERS=$(NTP_SERVERS)|' \
5624 '|DNS_SERVERS=$(DNS_SERVERS)|' \
5625 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
5626 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
5627 '|TTY_GID=$(TTY_GID)|' \
5628 '|systemsleepdir=$(systemsleepdir)|' \
5629 '|systemshutdowndir=$(systemshutdowndir)|' \
5630 '|binfmtdir=$(binfmtdir)|' \
5631 '|modulesloaddir=$(modulesloaddir)|'
5634 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
5635 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
5644 sysctl.d/%: sysctl.d/%.in
5653 src/core/macros.%: src/core/macros.%.in
5656 src/%.policy.in: src/%.policy.in.in
5659 shell-completion/%: shell-completion/%.in
5670 $(AM_V_GEN)chmod +x $@
5672 src/%.c: src/%.gperf
5673 $(AM_V_at)$(MKDIR_P) $(dir $@)
5674 $(AM_V_GPERF)$(GPERF) < $< > $@
5677 $(AM_V_at)$(MKDIR_P) $(dir $@)
5678 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5681 $(AM_V_at)$(MKDIR_P) $(dir $@)
5682 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
5684 units/user/%: units/%.m4
5685 $(AM_V_at)$(MKDIR_P) $(dir $@)
5686 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
5689 nodist_polkitpolicy_DATA = \
5690 $(polkitpolicy_files) \
5691 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
5695 $(polkitpolicy_in_files) \
5696 $(polkitpolicy_in_in_files)
5699 $(nodist_systemunit_DATA) \
5700 $(nodist_userunit_DATA) \
5701 $(pkgconfigdata_DATA) \
5702 $(pkgconfiglib_DATA) \
5703 $(nodist_polkitpolicy_DATA)
5705 # ------------------------------------------------------------------------------
5707 man/custom-entities.ent: configure.ac
5708 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
5709 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
5710 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
5714 man/custom-entities.ent
5719 --stringparam man.output.quietly 1 \
5720 --stringparam funcsynopsis.style ansi \
5721 --stringparam man.authors.section.enabled 0 \
5722 --stringparam man.copyright.section.enabled 0 \
5723 --stringparam systemd.version $(VERSION) \
5724 --path '$(builddir)/man:$(srcdir)/man'
5726 XSLTPROC_PROCESS_MAN = \
5727 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
5729 XSLTPROC_PROCESS_HTML = \
5730 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
5732 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
5733 $(XSLTPROC_PROCESS_MAN)
5735 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
5736 $(XSLTPROC_PROCESS_MAN)
5738 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
5739 $(XSLTPROC_PROCESS_MAN)
5741 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
5742 $(XSLTPROC_PROCESS_MAN)
5744 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
5745 $(XSLTPROC_PROCESS_MAN)
5747 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
5748 $(XSLTPROC_PROCESS_HTML)
5751 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
5757 man/custom-html.xsl \
5760 # ------------------------------------------------------------------------------
5763 docs/sysvinit/README
5768 docs/sysvinit/README: docs/sysvinit/README.in
5771 docs/var-log/README: docs/var-log/README.in
5775 docs/sysvinit/README \
5780 docs/sysvinit/README.in \
5781 docs/var-log/README.in
5783 SOCKETS_TARGET_WANTS += \
5784 systemd-initctl.socket \
5785 systemd-shutdownd.socket
5788 RUNLEVEL1_TARGET_WANTS += \
5789 systemd-update-utmp-runlevel.service
5790 RUNLEVEL2_TARGET_WANTS += \
5791 systemd-update-utmp-runlevel.service
5792 RUNLEVEL3_TARGET_WANTS += \
5793 systemd-update-utmp-runlevel.service
5794 RUNLEVEL4_TARGET_WANTS += \
5795 systemd-update-utmp-runlevel.service
5796 RUNLEVEL5_TARGET_WANTS += \
5797 systemd-update-utmp-runlevel.service
5800 SYSINIT_TARGET_WANTS += \
5801 systemd-update-utmp.service \
5802 systemd-update-done.service
5804 LOCAL_FS_TARGET_WANTS += \
5805 systemd-remount-fs.service \
5808 MULTI_USER_TARGET_WANTS += \
5810 systemd-ask-password-wall.path
5812 SYSINIT_TARGET_WANTS += \
5813 dev-hugepages.mount \
5815 sys-kernel-config.mount \
5816 sys-kernel-debug.mount \
5817 sys-fs-fuse-connections.mount \
5818 systemd-sysctl.service \
5819 systemd-ask-password-console.path
5822 SYSTEM_UNIT_ALIASES += \
5823 poweroff.target runlevel0.target \
5824 rescue.target runlevel1.target \
5825 multi-user.target runlevel2.target \
5826 multi-user.target runlevel3.target \
5827 multi-user.target runlevel4.target \
5828 graphical.target runlevel5.target \
5829 reboot.target runlevel6.target
5832 SYSTEM_UNIT_ALIASES += \
5833 graphical.target default.target \
5834 reboot.target ctrl-alt-del.target \
5835 getty@.service autovt@.service
5837 USER_UNIT_ALIASES += \
5838 $(systemunitdir)/shutdown.target shutdown.target \
5839 $(systemunitdir)/sockets.target sockets.target \
5840 $(systemunitdir)/busnames.target busnames.target \
5841 $(systemunitdir)/timers.target timers.target \
5842 $(systemunitdir)/paths.target paths.target \
5843 $(systemunitdir)/bluetooth.target bluetooth.target \
5844 $(systemunitdir)/printer.target printer.target \
5845 $(systemunitdir)/sound.target sound.target \
5846 $(systemunitdir)/smartcard.target smartcard.target
5848 GENERAL_ALIASES += \
5849 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
5850 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
5851 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
5852 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
5856 $(systemunitdir)/runlevel1.target.wants \
5857 $(systemunitdir)/runlevel2.target.wants \
5858 $(systemunitdir)/runlevel3.target.wants \
5859 $(systemunitdir)/runlevel4.target.wants \
5860 $(systemunitdir)/runlevel5.target.wants
5864 $(prefix)/lib/modules-load.d \
5865 $(sysconfdir)/modules-load.d \
5866 $(prefix)/lib/systemd/network \
5867 $(sysconfdir)/systemd/network \
5868 $(prefix)/lib/sysctl.d \
5869 $(sysconfdir)/sysctl.d \
5870 $(prefix)/lib/kernel/install.d \
5871 $(sysconfdir)/kernel/install.d \
5872 $(systemshutdowndir) \
5874 $(systemgeneratordir) \
5875 $(usergeneratordir) \
5878 $(pkgsysconfdir)/system \
5879 $(pkgsysconfdir)/system/multi-user.target.wants \
5880 $(pkgsysconfdir)/system/getty.target.wants \
5881 $(pkgsysconfdir)/user \
5882 $(dbussessionservicedir) \
5883 $(sysconfdir)/xdg/systemd
5885 install-exec-hook: $(INSTALL_EXEC_HOOKS)
5887 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
5889 install-data-hook: $(INSTALL_DATA_HOOKS)
5891 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
5893 clean-local: $(CLEAN_LOCAL_HOOKS)
5894 rm -rf $(abs_srcdir)/install-tree
5895 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
5896 $(abs_srcdir)/hwdb/iab.txt
5898 DISTCHECK_CONFIGURE_FLAGS = \
5899 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
5900 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
5901 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
5902 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
5903 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
5904 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
5905 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
5906 --with-rootprefix=$$dc_install_base \
5907 --disable-split-usr \
5909 --enable-compat-libs
5912 DISTCHECK_CONFIGURE_FLAGS += \
5913 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
5914 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
5916 DISTCHECK_CONFIGURE_FLAGS += \
5917 --with-sysvinit-path= \
5918 --with-sysvrcnd-path=
5922 DISTCHECK_CONFIGURE_FLAGS += \
5927 DISTCHECK_CONFIGURE_FLAGS += \
5932 # Require python when making dist
5934 .PHONY: dist-check-python
5937 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
5941 dist-check-compat-libs:
5942 if !ENABLE_COMPAT_LIBS
5943 @echo "*** compat-libs must be enabled in order to make dist"
5947 dist: dist-check-python dist-check-compat-libs
5949 # check "broken" platforms limited toolchains for link breakage before we release
5952 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
5956 ( cd $(top_srcdir)/hwdb && \
5957 wget -N http://www.linux-usb.org/usb.ids \
5958 http://pci-ids.ucw.cz/v2.2/pci.ids \
5959 http://standards.ieee.org/develop/regauth/oui/oui.txt \
5960 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
5963 .PHONY: kdbus-update
5965 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
5966 wget -N https://d-bus.googlecode.com/git/kdbus.h )
5970 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
5972 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
5974 upload: all check dist
5975 scp systemd-$(VERSION).tar.xz $(www_target)
5978 doc-sync: all destdir-sphinx
5979 gtkdoc-rebase --html-dir=docs/libudev/html --online
5980 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
5981 gtkdoc-rebase --html-dir=docs/gudev/html --online
5982 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
5983 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
5984 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
5988 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
5989 scp man/*.html tango:public/systemd-man/
5991 .PHONY: install-tree
5993 rm -rf $(abs_srcdir)/install-tree
5994 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
5995 tree $(abs_srcdir)/install-tree
5997 # Let's run all tests of the test suite, but under valgrind. Let's
5998 # exclude the one perl script we have in there
5999 .PHONY: valgrind-tests
6000 valgrind-tests: $(TESTS)
6001 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
6002 if file $$f | grep -q shell; then \
6003 echo -e "$${x}Skipping non-binary $$f"; else \
6004 echo -e "$${x}Running $$f"; \
6005 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6010 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6012 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6013 $(AM_V_GEN)cat $^ > $@
6015 .PHONY: check-api-docs
6016 check-api-docs: exported man
6017 $(AM_V_GEN)for symbol in `cat exported` ; do \
6018 if test -f $(builddir)/man/$$symbol.html ; then \
6019 echo " Symbol $$symbol() is documented." ; \
6021 echo "‣ Symbol $$symbol() lacks documentation." ; \
6025 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6026 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6028 undefined defined: $(ALL_OBJECTS)
6029 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6030 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6031 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6037 .PHONY: check-api-unused
6038 check-api-unused: defined undefined exported
6039 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6041 .PHONY: check-includes
6042 check-includes: $(top_srcdir)/tools/check-includes.pl
6043 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6044 | xargs $(top_srcdir)/tools/check-includes.pl
6047 $(top_srcdir)/tools/check-includes.pl
6049 # Stupid test that everything purported to be exported really is
6050 define generate-sym-test
6051 $(AM_V_at)$(MKDIR_P) $(dir $@)
6052 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6053 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6054 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6055 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6056 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6057 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6058 $(AM_V_at)printf 'return 0; }\n' >> $@
6061 test-libsystemd-sym.c: \
6062 $(top_builddir)/src/libsystemd/libsystemd.sym \
6063 src/systemd/sd-journal.h \
6064 src/systemd/sd-daemon.h \
6065 src/systemd/sd-login.h \
6066 src/systemd/sd-bus.h \
6067 src/systemd/sd-utf8.h \
6068 src/systemd/sd-resolve.h \
6069 src/systemd/sd-path.h
6070 $(generate-sym-test)
6072 test-libudev-sym.c: \
6073 src/libudev/libudev.sym \
6075 $(generate-sym-test)
6077 test_libsystemd_sym_SOURCES = \
6078 test-libsystemd-sym.c
6079 test_libsystemd_sym_LDADD = \
6082 test_libudev_sym_SOURCES = \
6084 test_libudev_sym_CFLAGS = \
6086 -Wno-deprecated-declarations
6087 test_libudev_sym_LDADD = \
6091 $(test_libsystemd_sym_SOURCES) \
6092 $(test_libudev_sym_SOURCES)
6095 test-libsystemd-sym \
6100 cppcheck --enable=all -q $(top_srcdir)
6102 # Used to extract compile flags for YCM.
6107 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u