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 \
863 src/shared/nss-util.h
865 nodist_libsystemd_shared_la_SOURCES = \
866 src/shared/errno-from-name.h \
867 src/shared/errno-to-name.h \
868 src/shared/af-from-name.h \
869 src/shared/af-to-name.h \
870 src/shared/arphrd-from-name.h \
871 src/shared/arphrd-to-name.h
873 libsystemd_shared_la_CFLAGS = \
878 # ------------------------------------------------------------------------------
879 noinst_LTLIBRARIES += \
882 libsystemd_units_la_SOURCES = \
883 src/shared/install.c \
884 src/shared/install.h \
885 src/shared/install-printf.c \
886 src/shared/install-printf.h \
887 src/shared/path-lookup.c \
888 src/shared/path-lookup.h \
889 src/shared/specifier.c \
890 src/shared/specifier.h
892 # ------------------------------------------------------------------------------
893 noinst_LTLIBRARIES += \
896 libsystemd_label_la_SOURCES = \
897 src/shared/socket-label.c \
900 src/shared/selinux-util.c \
901 src/shared/selinux-util.h \
902 src/shared/mkdir-label.c \
903 src/shared/ask-password-api.c \
904 src/shared/ask-password-api.h \
905 src/shared/fileio-label.c \
906 src/shared/fileio-label.h \
907 src/shared/dev-setup.c \
908 src/shared/dev-setup.h \
909 src/shared/dropin.c \
910 src/shared/dropin.h \
911 src/shared/generator.h \
912 src/shared/generator.c
914 libsystemd_label_la_CFLAGS = \
918 libsystemd_label_la_LIBADD = \
921 # -----------------------------------------------------------------------------
924 dist_systemunit_DATA += \
925 units/ldconfig.service
927 SYSINIT_TARGET_WANTS += \
931 # ------------------------------------------------------------------------------
934 noinst_LTLIBRARIES += \
935 libsystemd-seccomp.la
937 libsystemd_seccomp_la_SOURCES = \
938 src/shared/seccomp-util.h \
939 src/shared/seccomp-util.c
941 libsystemd_seccomp_la_CFLAGS = \
945 libsystemd_seccomp_la_LIBADD = \
949 # ------------------------------------------------------------------------------
950 noinst_LTLIBRARIES += \
953 libsystemd_logs_la_SOURCES = \
954 src/shared/logs-show.c \
955 src/shared/logs-show.h
957 # ------------------------------------------------------------------------------
958 noinst_LTLIBRARIES += \
959 libsystemd-capability.la
961 libsystemd_capability_la_SOURCES = \
962 src/shared/capability.c \
963 src/shared/capability.h
965 libsystemd_capability_la_CFLAGS = \
969 libsystemd_capability_la_LIBADD = \
972 # ------------------------------------------------------------------------------
974 noinst_LTLIBRARIES += \
977 libsystemd_acl_la_SOURCES = \
978 src/shared/acl-util.c \
979 src/shared/acl-util.h
981 libsystemd_acl_la_CFLAGS = \
985 libsystemd_acl_la_LIBADD = \
989 # ------------------------------------------------------------------------------
990 noinst_LTLIBRARIES += \
993 libsystemd_core_la_SOURCES = \
996 src/core/unit-printf.c \
997 src/core/unit-printf.h \
1000 src/core/manager.c \
1001 src/core/manager.h \
1002 src/core/transaction.c \
1003 src/core/transaction.h \
1004 src/core/load-fragment.c \
1005 src/core/load-fragment.h \
1006 src/core/service.c \
1007 src/core/service.h \
1010 src/core/busname.c \
1011 src/core/busname.h \
1014 src/core/snapshot.c \
1015 src/core/snapshot.h \
1020 src/core/automount.c \
1021 src/core/automount.h \
1032 src/core/load-dropin.c \
1033 src/core/load-dropin.h \
1034 src/core/execute.c \
1035 src/core/execute.h \
1040 src/core/dbus-manager.c \
1041 src/core/dbus-manager.h \
1042 src/core/dbus-unit.c \
1043 src/core/dbus-unit.h \
1044 src/core/dbus-job.c \
1045 src/core/dbus-job.h \
1046 src/core/dbus-service.c \
1047 src/core/dbus-service.h \
1048 src/core/dbus-socket.c \
1049 src/core/dbus-socket.h \
1050 src/core/dbus-busname.c \
1051 src/core/dbus-busname.h \
1052 src/core/dbus-target.c \
1053 src/core/dbus-target.h \
1054 src/core/dbus-snapshot.c \
1055 src/core/dbus-snapshot.h \
1056 src/core/dbus-device.c \
1057 src/core/dbus-device.h \
1058 src/core/dbus-mount.c \
1059 src/core/dbus-mount.h \
1060 src/core/dbus-automount.c \
1061 src/core/dbus-automount.h \
1062 src/core/dbus-swap.c \
1063 src/core/dbus-swap.h \
1064 src/core/dbus-timer.c \
1065 src/core/dbus-timer.h \
1066 src/core/dbus-path.c \
1067 src/core/dbus-path.h \
1068 src/core/dbus-slice.c \
1069 src/core/dbus-slice.h \
1070 src/core/dbus-scope.c \
1071 src/core/dbus-scope.h \
1072 src/core/dbus-execute.c \
1073 src/core/dbus-execute.h \
1074 src/core/dbus-kill.c \
1075 src/core/dbus-kill.h \
1076 src/core/dbus-cgroup.c \
1077 src/core/dbus-cgroup.h \
1080 src/core/selinux-access.c \
1081 src/core/selinux-access.h \
1082 src/core/selinux-setup.c \
1083 src/core/selinux-setup.h \
1084 src/core/smack-setup.c \
1085 src/core/smack-setup.h \
1086 src/core/ima-setup.c \
1087 src/core/ima-setup.h \
1088 src/core/locale-setup.h \
1089 src/core/locale-setup.c \
1090 src/core/hostname-setup.c \
1091 src/core/hostname-setup.h \
1092 src/core/machine-id-setup.c \
1093 src/core/machine-id-setup.h \
1094 src/core/mount-setup.c \
1095 src/core/mount-setup.h \
1096 src/core/loopback-setup.h \
1097 src/core/loopback-setup.c \
1098 src/core/condition.c \
1099 src/core/condition.h \
1100 src/core/namespace.c \
1101 src/core/namespace.h \
1103 src/core/sysfs-show.h \
1104 src/core/switch-root.h \
1105 src/core/switch-root.c \
1106 src/core/killall.h \
1107 src/core/killall.c \
1108 src/core/audit-fd.c \
1109 src/core/audit-fd.h \
1110 src/core/show-status.c \
1111 src/core/show-status.h
1114 libsystemd_core_la_SOURCES += \
1115 src/core/kmod-setup.c \
1116 src/core/kmod-setup.h
1119 nodist_libsystemd_core_la_SOURCES = \
1120 src/core/load-fragment-gperf.c \
1121 src/core/load-fragment-gperf-nulstr.c
1123 libsystemd_core_la_CFLAGS = \
1129 $(APPARMOR_CFLAGS) \
1133 libsystemd_core_la_LIBADD = \
1134 libsystemd-capability.la \
1135 libsystemd-units.la \
1136 libsystemd-label.la \
1137 libudev-internal.la \
1138 libsystemd-shared.la \
1139 libsystemd-internal.la \
1148 libsystemd_core_la_LIBADD += \
1149 libsystemd-seccomp.la
1152 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1153 $(AM_V_at)$(MKDIR_P) $(dir $@)
1154 $(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 ";" }' < $< > $@
1157 src/core/load-fragment-gperf.gperf.m4
1160 src/core/load-fragment-gperf.gperf \
1161 src/core/load-fragment-gperf.c \
1162 src/core/load-fragment-gperf-nulstr.c \
1163 src/shared/errno-list.txt \
1164 src/shared/errno-from-name.gperf \
1165 src/shared/af-list.txt \
1166 src/shared/af-from-name.gperf \
1167 src/shared/arphrd-list.txt \
1168 src/shared/arphrd-from-name.gperf \
1169 src/shared/dns_type-list.txt \
1170 src/shared/dns_type-from-name.gperf
1173 src/shared/errno-from-name.h \
1174 src/shared/errno-to-name.h \
1175 src/shared/af-from-name.h \
1176 src/shared/af-to-name.h \
1177 src/shared/arphrd-from-name.h \
1178 src/shared/arphrd-to-name.h \
1179 src/resolve/dns_type-from-name.h \
1180 src/resolve/dns_type-to-name.h
1182 %-from-name.gperf: %-list.txt
1183 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1185 %-from-name.h: %-from-name.gperf
1186 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1189 src/shared/errno-list.txt:
1190 $(AM_V_at)$(MKDIR_P) $(dir $@)
1191 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1193 src/shared/errno-to-name.h: src/shared/errno-list.txt
1194 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1197 src/shared/af-list.txt:
1198 $(AM_V_at)$(MKDIR_P) $(dir $@)
1199 $(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; }' >$@
1201 src/shared/af-to-name.h: src/shared/af-list.txt
1202 $(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 "};"}' <$< >$@
1204 src/shared/arphrd-list.txt:
1205 $(AM_V_at)$(MKDIR_P) $(dir $@)
1206 $(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_//' >$@
1208 src/shared/arphrd-to-name.h: src/shared/arphrd-list.txt
1209 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1211 src/shared/arphrd-from-name.gperf: src/shared/arphrd-list.txt
1212 $(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 }' <$< >$@
1215 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1216 $(AM_V_at)$(MKDIR_P) $(dir $@)
1217 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1219 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1220 $(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" }' <$< >$@
1222 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1223 $(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 }' <$< >$@
1225 # ------------------------------------------------------------------------------
1234 libsystemd-core.la \
1237 dist_pkgsysconf_DATA += \
1238 src/core/system.conf \
1241 dist_dbuspolicy_DATA += \
1242 src/core/org.freedesktop.systemd1.conf
1244 dist_dbussystemservice_DATA += \
1245 src/core/org.freedesktop.systemd1.service
1247 polkitpolicy_in_in_files += \
1248 src/core/org.freedesktop.systemd1.policy.in.in
1250 pkgconfigdata_DATA = \
1253 nodist_rpmmacros_DATA = \
1254 src/core/macros.systemd
1257 src/core/systemd.pc.in \
1258 src/core/macros.systemd.in
1261 src/core/macros.systemd \
1262 src/core/org.freedesktop.systemd1.policy.in
1264 # ------------------------------------------------------------------------------
1306 test-strip-tab-ansi \
1329 test/daughter.service \
1334 test/grandchild.service \
1336 test/hello-after-sleep.target \
1337 test/hello.service \
1339 test/parent-deep.slice \
1342 test/sched_idle_bad.service \
1343 test/sched_idle_ok.service \
1344 test/sched_rr_bad.service \
1345 test/sched_rr_change.service \
1346 test/sched_rr_ok.service \
1347 test/shutdown.target \
1348 test/sleep.service \
1349 test/sockets.target \
1351 test/sysinit.target \
1352 test/testsuite.target \
1353 test/timers.target \
1354 test/unstoppable.service
1357 src/test/test-helper.h
1359 test_device_nodes_SOURCES = \
1360 src/test/test-device-nodes.c
1362 test_device_nodes_LDADD = \
1363 libsystemd-shared.la
1365 test_engine_SOURCES = \
1366 src/test/test-engine.c
1368 test_engine_CFLAGS = \
1372 test_engine_LDADD = \
1373 libsystemd-core.la \
1376 test_job_type_SOURCES = \
1377 src/test/test-job-type.c
1379 test_job_type_CFLAGS = \
1383 test_job_type_LDADD = \
1384 libsystemd-core.la \
1397 test_loopback_SOURCES = \
1398 src/test/test-loopback.c
1400 test_loopback_LDADD = \
1403 test_hostname_SOURCES = \
1404 src/test/test-hostname.c
1406 test_hostname_LDADD = \
1413 test_boot_timestamp_SOURCES = \
1414 src/test/test-boot-timestamps.c
1416 test_boot_timestamp_LDADD = \
1417 libsystemd-shared.la
1420 test_unit_name_SOURCES = \
1421 src/test/test-unit-name.c
1423 test_unit_name_CFLAGS = \
1427 test_unit_name_LDADD = \
1428 libsystemd-core.la \
1431 test_unit_file_SOURCES = \
1432 src/test/test-unit-file.c
1434 test_unit_file_CFLAGS = \
1438 test_unit_file_LDADD = \
1439 libsystemd-core.la \
1442 test_utf8_SOURCES = \
1443 src/test/test-utf8.c
1446 libsystemd-shared.la
1448 test_capability_SOURCES = \
1449 src/test/test-capability.c
1451 test_capability_LDADD = \
1452 libsystemd-shared.la \
1453 libsystemd-capability.la
1455 test_async_SOURCES = \
1456 src/test/test-async.c
1458 test_async_LDADD = \
1459 libsystemd-shared.la
1461 test_fdset_SOURCES = \
1462 src/test/test-fdset.c
1464 test_fdset_LDADD = \
1467 test_ratelimit_SOURCES = \
1468 src/test/test-ratelimit.c
1470 test_ratelimit_LDADD = \
1471 libsystemd-shared.la
1473 test_util_SOURCES = \
1474 src/test/test-util.c
1479 test_socket_util_SOURCES = \
1480 src/test/test-socket-util.c
1482 test_socket_util_LDADD = \
1485 test_ring_SOURCES = \
1486 src/test/test-ring.c
1491 test_barrier_SOURCES = \
1492 src/test/test-barrier.c
1494 test_barrier_LDADD = \
1497 test_pty_SOURCES = \
1503 test_tmpfiles_SOURCES = \
1504 src/test/test-tmpfiles.c
1506 test_tmpfiles_LDADD = \
1507 libsystemd-shared.la
1509 test_namespace_SOURCES = \
1510 src/test/test-namespace.c
1512 test_namespace_LDADD = \
1515 test_hashmap_SOURCES = \
1516 src/test/test-hashmap.c
1518 test_hashmap_LDADD = \
1521 test_xml_SOURCES = \
1525 libsystemd-shared.la
1527 test_list_SOURCES = \
1528 src/test/test-list.c
1533 test_tables_SOURCES = \
1534 src/test/test-tables.c \
1535 src/shared/test-tables.h \
1536 src/bus-proxyd/bus-policy.c \
1537 src/bus-proxyd/bus-policy.h \
1538 src/journal/journald-server.c \
1539 src/journal/journald-server.h
1541 test_tables_CPPFLAGS = \
1543 -I$(top_srcdir)/src/bus-proxyd
1545 test_tables_CFLAGS = \
1549 test_tables_LDADD = \
1550 libsystemd-logs.la \
1551 libsystemd-journal-internal.la \
1552 libsystemd-journal-core.la \
1553 libsystemd-core.la \
1557 test_prioq_SOURCES = \
1558 src/test/test-prioq.c
1560 test_prioq_LDADD = \
1563 test_fileio_SOURCES = \
1564 src/test/test-fileio.c
1566 test_fileio_LDADD = \
1569 test_time_SOURCES = \
1570 src/test/test-time.c
1575 test_architecture_SOURCES = \
1576 src/test/test-architecture.c
1578 test_architecture_LDADD = \
1579 libsystemd-shared.la
1581 test_log_SOURCES = \
1587 test_ipcrm_SOURCES = \
1588 src/test/test-ipcrm.c
1590 test_ipcrm_LDADD = \
1591 libsystemd-shared.la \
1594 test_rtnl_manual_SOURCES = \
1595 src/test/test-rtnl-manual.c
1597 test_rtnl_manual_CFLAGS = \
1601 test_rtnl_manual_LDADD = \
1602 libsystemd-internal.la \
1603 libsystemd-shared.la \
1606 test_ellipsize_SOURCES = \
1607 src/test/test-ellipsize.c
1609 test_ellipsize_LDADD = \
1612 test_date_SOURCES = \
1613 src/test/test-date.c
1618 test_sleep_SOURCES = \
1619 src/test/test-sleep.c
1621 test_sleep_LDADD = \
1624 test_replace_var_SOURCES = \
1625 src/test/test-replace-var.c
1627 test_replace_var_LDADD = \
1628 libsystemd-shared.la
1630 test_calendarspec_SOURCES = \
1631 src/test/test-calendarspec.c
1633 test_calendarspec_LDADD = \
1634 libsystemd-shared.la
1636 test_strip_tab_ansi_SOURCES = \
1637 src/test/test-strip-tab-ansi.c
1639 test_strip_tab_ansi_LDADD = \
1640 libsystemd-shared.la
1642 test_daemon_SOURCES = \
1643 src/test/test-daemon.c
1645 test_daemon_LDADD = \
1646 libsystemd-internal.la \
1647 libsystemd-shared.la
1649 test_cgroup_SOURCES = \
1650 src/test/test-cgroup.c
1652 test_cgroup_LDADD = \
1653 libsystemd-label.la \
1654 libsystemd-shared.la \
1655 libsystemd-internal.la
1657 test_cgroup_mask_SOURCES = \
1658 src/test/test-cgroup-mask.c
1660 test_cgroup_mask_CPPFLAGS = \
1662 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1664 test_cgroup_mask_CFLAGS = \
1668 test_cgroup_mask_LDADD = \
1669 libsystemd-core.la \
1672 test_cgroup_util_SOURCES = \
1673 src/test/test-cgroup-util.c
1675 test_cgroup_util_LDADD = \
1676 libsystemd-label.la \
1677 libsystemd-internal.la \
1678 libsystemd-shared.la
1680 test_env_replace_SOURCES = \
1681 src/test/test-env-replace.c
1683 test_env_replace_LDADD = \
1684 libsystemd-shared.la
1686 test_strbuf_SOURCES = \
1687 src/test/test-strbuf.c
1689 test_strbuf_LDADD = \
1690 libsystemd-shared.la
1692 test_strv_SOURCES = \
1693 src/test/test-strv.c
1696 libsystemd-units.la \
1697 libsystemd-internal.la \
1698 libsystemd-shared.la
1700 test_path_util_SOURCES = \
1701 src/test/test-path-util.c
1703 test_path_util_LDADD = \
1704 libsystemd-shared.la
1706 test_strxcpyx_SOURCES = \
1707 src/test/test-strxcpyx.c
1709 test_strxcpyx_LDADD = \
1710 libsystemd-shared.la
1712 test_install_SOURCES = \
1713 src/test/test-install.c
1715 test_install_LDADD = \
1716 libsystemd-units.la \
1717 libsystemd-label.la \
1718 libsystemd-shared.la \
1719 libsystemd-internal.la
1721 test_watchdog_SOURCES = \
1722 src/test/test-watchdog.c
1724 test_watchdog_LDADD = \
1725 libsystemd-shared.la
1727 test_sched_prio_SOURCES = \
1728 src/test/test-sched-prio.c
1730 test_sched_prio_CPPFLAGS = \
1732 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1734 test_sched_prio_CFLAGS = \
1738 test_sched_prio_LDADD = \
1739 libsystemd-core.la \
1742 test_conf_files_SOURCES = \
1743 src/test/test-conf-files.c
1745 test_conf_files_LDADD = \
1746 libsystemd-shared.la
1748 # ------------------------------------------------------------------------------
1749 ## .PHONY so it always rebuilds it
1750 .PHONY: coverage lcov-run lcov-report coverage-sync
1752 # run lcov from scratch, always
1757 coverage_dir = coverage
1758 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1761 # reset run coverage tests
1763 @rm -rf $(coverage_dir)
1764 lcov $(coverage_opts) --zerocounters
1767 # generate report based on current coverage data
1769 $(MKDIR_P) $(coverage_dir)
1770 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1771 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1772 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1773 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1775 # lcov doesn't work properly with vpath builds, make sure that bad
1776 # output is not uploaded by mistake.
1777 coverage-sync: coverage
1778 test "$(builddir)" = "$(srcdir)"
1779 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1782 lcov-run lcov-report:
1783 echo "Need to reconfigure with --enable-coverage"
1786 # ------------------------------------------------------------------------------
1787 systemd_analyze_SOURCES = \
1788 src/analyze/analyze.c \
1789 src/analyze/analyze-verify.c \
1790 src/analyze/analyze-verify.h
1792 systemd_verify_CFLAGS = \
1796 systemd_analyze_LDADD = \
1797 libsystemd-core.la \
1798 libsystemd-internal.la \
1799 libsystemd-shared.la \
1802 # ------------------------------------------------------------------------------
1803 systemd_initctl_SOURCES = \
1804 src/initctl/initctl.c
1806 systemd_initctl_LDADD = \
1807 libsystemd-internal.la \
1808 libsystemd-shared.la
1810 # ------------------------------------------------------------------------------
1811 systemd_update_utmp_SOURCES = \
1812 src/update-utmp/update-utmp.c
1814 systemd_update_utmp_CFLAGS = \
1818 systemd_update_utmp_LDADD = \
1819 libsystemd-internal.la \
1820 libsystemd-shared.la \
1823 # ------------------------------------------------------------------------------
1824 systemd_update_done_SOURCES = \
1825 src/update-done/update-done.c
1827 systemd_update_done_LDADD = \
1828 libsystemd-internal.la \
1829 libsystemd-label.la \
1830 libsystemd-shared.la
1832 # ------------------------------------------------------------------------------
1833 systemd_shutdownd_SOURCES = \
1834 src/shutdownd/shutdownd.c
1836 systemd_shutdownd_LDADD = \
1837 libsystemd-label.la \
1838 libsystemd-internal.la \
1839 libsystemd-shared.la
1842 src/systemd/sd-shutdown.h
1844 # ------------------------------------------------------------------------------
1845 systemd_shutdown_SOURCES = \
1848 src/core/shutdown.c \
1849 src/core/mount-setup.c \
1850 src/core/mount-setup.h \
1851 src/core/killall.h \
1854 systemd_shutdown_LDADD = \
1855 libsystemd-label.la \
1856 libudev-internal.la \
1857 libsystemd-shared.la
1859 # ------------------------------------------------------------------------------
1861 systemd_modules_load_SOURCES = \
1862 src/modules-load/modules-load.c
1864 systemd_modules_load_CFLAGS = \
1868 systemd_modules_load_LDADD = \
1869 libsystemd-shared.la \
1872 rootlibexec_PROGRAMS += \
1873 systemd-modules-load
1875 nodist_systemunit_DATA += \
1876 units/systemd-modules-load.service
1878 SYSINIT_TARGET_WANTS += \
1879 systemd-modules-load.service
1882 nodist_systemunit_DATA += \
1883 units/kmod-static-nodes.service
1885 SYSINIT_TARGET_WANTS += \
1886 kmod-static-nodes.service
1891 units/systemd-modules-load.service.in \
1892 units/kmod-static-nodes.service.in
1894 # ------------------------------------------------------------------------------
1896 systemd_tmpfiles_SOURCES = \
1897 src/tmpfiles/tmpfiles.c
1899 systemd_tmpfiles_LDADD = \
1900 libsystemd-units.la \
1901 libsystemd-label.la \
1902 libsystemd-capability.la \
1903 libsystemd-internal.la \
1904 libsystemd-shared.la
1906 rootbin_PROGRAMS += \
1909 dist_systemunit_DATA += \
1910 units/systemd-tmpfiles-clean.timer
1912 nodist_systemunit_DATA += \
1913 units/systemd-tmpfiles-setup-dev.service \
1914 units/systemd-tmpfiles-setup.service \
1915 units/systemd-tmpfiles-clean.service
1917 dist_tmpfiles_DATA = \
1918 tmpfiles.d/systemd.conf \
1919 tmpfiles.d/systemd-nologin.conf \
1920 tmpfiles.d/systemd-remote.conf \
1921 tmpfiles.d/tmp.conf \
1922 tmpfiles.d/x11.conf \
1923 tmpfiles.d/var.conf \
1927 dist_tmpfiles_DATA += \
1928 tmpfiles.d/legacy.conf
1931 SYSINIT_TARGET_WANTS += \
1932 systemd-tmpfiles-setup-dev.service \
1933 systemd-tmpfiles-setup.service
1935 dist_zshcompletion_DATA += \
1936 shell-completion/zsh/_systemd-tmpfiles
1938 TIMERS_TARGET_WANTS += \
1939 systemd-tmpfiles-clean.timer
1943 $(sysconfdir)/tmpfiles.d
1947 units/systemd-tmpfiles-setup-dev.service.in \
1948 units/systemd-tmpfiles-setup.service.in \
1949 units/systemd-tmpfiles-clean.service.in
1951 # ------------------------------------------------------------------------------
1953 systemd_sysusers_SOURCES = \
1954 src/sysusers/sysusers.c
1956 systemd_sysusers_LDADD = \
1957 libsystemd-units.la \
1958 libsystemd-label.la \
1959 libsystemd-capability.la \
1960 libsystemd-internal.la \
1961 libsystemd-shared.la
1963 rootbin_PROGRAMS += \
1966 nodist_systemunit_DATA += \
1967 units/systemd-sysusers.service
1969 SYSINIT_TARGET_WANTS += \
1970 systemd-sysusers.service
1972 dist_sysusers_DATA = \
1973 sysusers.d/systemd.conf \
1974 sysusers.d/systemd-remote.conf
1976 nodist_sysusers_DATA = \
1977 sysusers.d/basic.conf
1980 units/systemd-sysusers.service.in \
1981 sysusers.d/basic.conf.in
1984 sysusers.d/basic.conf
1990 # ------------------------------------------------------------------------------
1991 dist_factory_etc_DATA = \
1992 factory/etc/nsswitch.conf
1994 dist_factory_pam_DATA = \
1995 factory/etc/pam.d/system-auth \
1996 factory/etc/pam.d/other
1998 # ------------------------------------------------------------------------------
2000 systemd_firstboot_SOURCES = \
2001 src/firstboot/firstboot.c
2003 systemd_firstboot_LDADD = \
2004 libsystemd-units.la \
2005 libsystemd-label.la \
2006 libsystemd-capability.la \
2007 libsystemd-internal.la \
2008 libsystemd-shared.la \
2011 rootbin_PROGRAMS += \
2014 nodist_systemunit_DATA += \
2015 units/systemd-firstboot.service
2018 units/systemd-firstboot.service.in
2020 SYSINIT_TARGET_WANTS += \
2021 systemd-firstboot.service
2024 # ------------------------------------------------------------------------------
2025 systemd_machine_id_setup_SOURCES = \
2026 src/machine-id-setup/machine-id-setup-main.c \
2027 src/core/machine-id-setup.c \
2028 src/core/machine-id-setup.h
2030 systemd_machine_id_setup_LDADD = \
2031 libsystemd-label.la \
2032 libsystemd-internal.la \
2033 libsystemd-shared.la
2035 # ------------------------------------------------------------------------------
2036 systemd_sysctl_SOURCES = \
2039 systemd_sysctl_LDADD = \
2040 libsystemd-shared.la
2042 # ------------------------------------------------------------------------------
2043 systemd_sleep_SOURCES = \
2046 systemd_sleep_LDADD = \
2047 libsystemd-shared.la
2049 # ------------------------------------------------------------------------------
2050 systemd_fsck_SOURCES = \
2053 systemd_fsck_LDADD = \
2054 libsystemd-internal.la \
2055 libudev-internal.la \
2056 libsystemd-shared.la
2058 # ------------------------------------------------------------------------------
2059 systemd_ac_power_SOURCES = \
2060 src/ac-power/ac-power.c
2062 systemd_ac_power_LDADD = \
2063 libudev-internal.la \
2064 libsystemd-shared.la
2066 # ------------------------------------------------------------------------------
2067 systemd_detect_virt_SOURCES = \
2068 src/detect-virt/detect-virt.c
2070 systemd_detect_virt_LDADD = \
2071 libsystemd-shared.la
2073 INSTALL_EXEC_HOOKS += \
2074 systemd-detect-virt-install-hook
2076 # ------------------------------------------------------------------------------
2077 systemd_delta_SOURCES = \
2080 systemd_delta_LDADD = \
2081 libsystemd-shared.la
2083 # ------------------------------------------------------------------------------
2084 systemd_getty_generator_SOURCES = \
2085 src/getty-generator/getty-generator.c
2087 systemd_getty_generator_LDADD = \
2088 libsystemd-label.la \
2089 libsystemd-shared.la
2091 # ------------------------------------------------------------------------------
2092 systemd_debug_generator_SOURCES = \
2093 src/debug-generator/debug-generator.c
2095 systemd_debug_generator_LDADD = \
2096 libsystemd-label.la \
2097 libsystemd-shared.la
2099 # ------------------------------------------------------------------------------
2100 systemd_fstab_generator_SOURCES = \
2101 src/fstab-generator/fstab-generator.c \
2102 src/core/mount-setup.c
2104 systemd_fstab_generator_LDADD = \
2105 libsystemd-label.la \
2106 libsystemd-shared.la
2108 # ------------------------------------------------------------------------------
2109 systemd_system_update_generator_SOURCES = \
2110 src/system-update-generator/system-update-generator.c
2112 systemd_system_update_generator_LDADD = \
2113 libsystemd-label.la \
2114 libsystemd-shared.la
2117 # ------------------------------------------------------------------------------
2118 systemgenerator_PROGRAMS += \
2119 systemd-efi-boot-generator
2121 systemd_efi_boot_generator_SOURCES = \
2122 src/efi-boot-generator/efi-boot-generator.c
2124 systemd_efi_boot_generator_LDADD = \
2125 libsystemd-label.la \
2126 libsystemd-shared.la
2128 # ------------------------------------------------------------------------------
2131 src/boot/boot-loader.h \
2132 src/boot/bootctl.c \
2133 src/boot/boot-loader.c \
2137 libsystemd-shared.la \
2138 libsystemd-internal.la
2143 dist_bashcompletion_DATA += \
2144 shell-completion/bash/bootctl
2146 dist_zshcompletion_DATA += \
2147 shell-completion/zsh/_bootctl
2151 # ------------------------------------------------------------------------------
2153 systemgenerator_PROGRAMS += \
2154 systemd-gpt-auto-generator
2156 systemd_gpt_auto_generator_SOURCES = \
2157 src/gpt-auto-generator/gpt-auto-generator.c \
2158 src/shared/blkid-util.h
2160 systemd_gpt_auto_generator_LDADD = \
2161 libsystemd-label.la \
2162 libsystemd-internal.la \
2163 libudev-internal.la \
2164 libsystemd-shared.la \
2167 systemd_gpt_auto_generator_CFLAGS = \
2172 # ------------------------------------------------------------------------------
2174 systemgenerator_PROGRAMS += \
2175 systemd-dbus1-generator
2177 systemd_dbus1_generator_SOURCES = \
2178 src/dbus1-generator/dbus1-generator.c
2180 systemd_dbus1_generator_LDADD = \
2181 libsystemd-label.la \
2182 libsystemd-shared.la \
2183 libsystemd-internal.la
2185 dbus1-generator-install-hook:
2186 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2187 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2188 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2190 dbus1-generator-uninstall-hook:
2191 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2193 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2194 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2197 # ------------------------------------------------------------------------------
2198 systemd_sysv_generator_SOURCES = \
2199 src/sysv-generator/sysv-generator.c
2201 systemd_sysv_generator_LDADD = \
2202 libsystemd-core.la \
2203 libsystemd-label.la \
2204 libsystemd-shared.la
2206 # ------------------------------------------------------------------------------
2207 systemd_rc_local_generator_SOURCES = \
2208 src/rc-local-generator/rc-local-generator.c
2210 systemd_rc_local_generator_LDADD = \
2211 libsystemd-label.la \
2212 libsystemd-shared.la
2214 # ------------------------------------------------------------------------------
2215 systemd_remount_fs_SOURCES = \
2216 src/remount-fs/remount-fs.c \
2217 src/core/mount-setup.c \
2218 src/core/mount-setup.h
2220 systemd_remount_fs_LDADD = \
2221 libsystemd-label.la \
2222 libsystemd-shared.la
2224 # ------------------------------------------------------------------------------
2225 systemd_cgroups_agent_SOURCES = \
2226 src/cgroups-agent/cgroups-agent.c
2228 systemd_cgroups_agent_LDADD = \
2229 libsystemd-internal.la \
2230 libsystemd-shared.la
2232 # ------------------------------------------------------------------------------
2233 systemd_escape_SOURCES = \
2236 systemd_escape_LDADD = \
2237 libsystemd-shared.la
2239 # -----------------------------------------------------------------------------
2240 systemctl_SOURCES = \
2241 src/systemctl/systemctl.c
2244 libsystemd-units.la \
2245 libsystemd-label.la \
2246 libsystemd-internal.la \
2247 libsystemd-logs.la \
2248 libsystemd-journal-internal.la \
2249 libsystemd-shared.la
2251 # ------------------------------------------------------------------------------
2252 systemd_notify_SOURCES = \
2253 src/notify/notify.c \
2254 src/readahead/sd-readahead.c
2256 systemd_notify_LDADD = \
2257 libsystemd-internal.la \
2258 libsystemd-shared.la
2260 # ------------------------------------------------------------------------------
2261 systemd_path_SOURCES = \
2264 systemd_path_LDADD = \
2265 libsystemd-internal.la \
2266 libsystemd-shared.la
2268 # ------------------------------------------------------------------------------
2269 systemd_ask_password_SOURCES = \
2270 src/ask-password/ask-password.c
2272 systemd_ask_password_LDADD = \
2273 libsystemd-label.la \
2274 libsystemd-shared.la
2276 # ------------------------------------------------------------------------------
2277 systemd_reply_password_SOURCES = \
2278 src/reply-password/reply-password.c
2280 systemd_reply_password_LDADD = \
2281 libsystemd-shared.la
2283 # ------------------------------------------------------------------------------
2284 systemd_cgls_SOURCES = \
2287 systemd_cgls_LDADD = \
2288 libsystemd-internal.la \
2289 libsystemd-shared.la
2291 # ------------------------------------------------------------------------------
2292 systemd_cgtop_SOURCES = \
2295 systemd_cgtop_LDADD = \
2296 libsystemd-shared.la
2298 # ------------------------------------------------------------------------------
2299 systemd_nspawn_SOURCES = \
2300 src/nspawn/nspawn.c \
2301 src/core/mount-setup.c \
2302 src/core/mount-setup.h \
2303 src/core/loopback-setup.c \
2304 src/core/loopback-setup.h
2306 systemd_nspawn_CFLAGS = \
2311 systemd_nspawn_LDADD = \
2312 libsystemd-label.la \
2313 libsystemd-capability.la \
2314 libsystemd-internal.la \
2315 libudev-internal.la \
2316 libsystemd-shared.la \
2320 systemd_nspawn_LDADD += \
2321 libsystemd-seccomp.la \
2325 # ------------------------------------------------------------------------------
2326 systemd_run_SOURCES = \
2329 systemd_run_LDADD = \
2330 libsystemd-label.la \
2331 libsystemd-capability.la \
2332 libsystemd-internal.la \
2333 libsystemd-shared.la
2335 # ------------------------------------------------------------------------------
2336 systemd_bus_proxyd_SOURCES = \
2337 src/bus-proxyd/bus-proxyd.c \
2338 src/bus-proxyd/bus-policy.c \
2339 src/bus-proxyd/bus-policy.h
2341 systemd_bus_proxyd_LDADD = \
2342 libsystemd-capability.la \
2343 libsystemd-internal.la \
2344 libsystemd-shared.la
2346 bus-proxyd-install-hook:
2347 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
2348 $(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2349 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
2351 bus-proxyd-uninstall-hook:
2352 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2354 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
2355 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
2358 nodist_systemunit_DATA += \
2359 units/systemd-bus-proxyd@.service
2361 dist_systemunit_DATA += \
2362 units/systemd-bus-proxyd.socket
2364 dist_userunit_DATA += \
2365 units/user/systemd-bus-proxyd.socket \
2366 units/user/systemd-bus-proxyd@.service
2370 units/systemd-bus-proxyd@.service.in
2372 # ------------------------------------------------------------------------------
2373 systemd_tty_ask_password_agent_SOURCES = \
2374 src/tty-ask-password-agent/tty-ask-password-agent.c
2376 systemd_tty_ask_password_agent_LDADD = \
2377 libsystemd-label.la \
2378 libsystemd-shared.la
2380 # ------------------------------------------------------------------------------
2381 libsystemd_internal_la_SOURCES = \
2382 src/systemd/sd-bus.h \
2383 src/systemd/sd-bus-protocol.h \
2384 src/systemd/sd-bus-vtable.h \
2385 src/systemd/sd-memfd.h \
2386 src/systemd/sd-utf8.h \
2387 src/systemd/sd-event.h \
2388 src/systemd/sd-rtnl.h \
2389 src/systemd/sd-resolve.h \
2390 src/systemd/sd-login.h \
2391 src/systemd/sd-id128.h \
2392 src/systemd/sd-daemon.h \
2393 src/systemd/sd-path.h \
2394 src/systemd/sd-network.h \
2395 src/libsystemd/sd-bus/sd-bus.c \
2396 src/libsystemd/sd-bus/bus-control.c \
2397 src/libsystemd/sd-bus/bus-control.h \
2398 src/libsystemd/sd-bus/bus-error.c \
2399 src/libsystemd/sd-bus/bus-error.h \
2400 src/libsystemd/sd-bus/bus-internal.c \
2401 src/libsystemd/sd-bus/bus-internal.h \
2402 src/libsystemd/sd-bus/bus-socket.c \
2403 src/libsystemd/sd-bus/bus-socket.h \
2404 src/libsystemd/sd-bus/bus-kernel.c \
2405 src/libsystemd/sd-bus/bus-kernel.h \
2406 src/libsystemd/sd-bus/bus-container.c \
2407 src/libsystemd/sd-bus/bus-container.h \
2408 src/libsystemd/sd-bus/bus-message.c \
2409 src/libsystemd/sd-bus/bus-message.h \
2410 src/libsystemd/sd-bus/bus-creds.c \
2411 src/libsystemd/sd-bus/bus-creds.h \
2412 src/libsystemd/sd-bus/bus-signature.c \
2413 src/libsystemd/sd-bus/bus-signature.h \
2414 src/libsystemd/sd-bus/bus-type.c \
2415 src/libsystemd/sd-bus/bus-type.h \
2416 src/libsystemd/sd-bus/bus-match.c \
2417 src/libsystemd/sd-bus/bus-match.h \
2418 src/libsystemd/sd-bus/bus-bloom.c \
2419 src/libsystemd/sd-bus/bus-bloom.h \
2420 src/libsystemd/sd-bus/bus-introspect.c \
2421 src/libsystemd/sd-bus/bus-introspect.h \
2422 src/libsystemd/sd-bus/bus-objects.c \
2423 src/libsystemd/sd-bus/bus-objects.h \
2424 src/libsystemd/sd-bus/bus-gvariant.c \
2425 src/libsystemd/sd-bus/bus-gvariant.h \
2426 src/libsystemd/sd-bus/bus-convenience.c \
2427 src/libsystemd/sd-bus/bus-track.c \
2428 src/libsystemd/sd-bus/bus-track.h \
2429 src/libsystemd/sd-bus/bus-util.c \
2430 src/libsystemd/sd-bus/bus-util.h \
2431 src/libsystemd/sd-bus/bus-slot.c \
2432 src/libsystemd/sd-bus/bus-slot.h \
2433 src/libsystemd/sd-bus/bus-protocol.h \
2434 src/libsystemd/sd-bus/kdbus.h \
2435 src/libsystemd/sd-bus/sd-memfd.c \
2436 src/libsystemd/sd-utf8/sd-utf8.c \
2437 src/libsystemd/sd-event/sd-event.c \
2438 src/libsystemd/sd-event/event-util.h \
2439 src/libsystemd/sd-rtnl/sd-rtnl.c \
2440 src/libsystemd/sd-rtnl/rtnl-internal.h \
2441 src/libsystemd/sd-rtnl/rtnl-message.c \
2442 src/libsystemd/sd-rtnl/rtnl-types.h \
2443 src/libsystemd/sd-rtnl/rtnl-types.c \
2444 src/libsystemd/sd-rtnl/rtnl-util.h \
2445 src/libsystemd/sd-rtnl/rtnl-util.c \
2446 src/libsystemd/sd-rtnl/local-addresses.h \
2447 src/libsystemd/sd-rtnl/local-addresses.c \
2448 src/libsystemd/sd-id128/sd-id128.c \
2449 src/libsystemd/sd-daemon/sd-daemon.c \
2450 src/libsystemd/sd-login/sd-login.c \
2451 src/libsystemd/sd-path/sd-path.c \
2452 src/libsystemd/sd-network/sd-network.c \
2453 src/libsystemd/sd-network/network-util.h \
2454 src/libsystemd/sd-network/network-util.c
2456 nodist_libsystemd_internal_la_SOURCES = \
2457 src/libsystemd/libsystemd.sym \
2458 src/libsystemd/sd-bus/bus-error-mapping.c
2460 libsystemd_internal_la_CFLAGS = \
2464 libsystemd_internal_la_LIBADD = \
2467 libsystemd_resolve_la_SOURCES = \
2468 src/libsystemd/sd-resolve/sd-resolve.c \
2469 src/libsystemd/sd-resolve/resolve-util.h
2471 libsystemd_resolve_la_CFLAGS = \
2475 libsystemd_resolve_la_LIBADD = \
2478 noinst_LTLIBRARIES += \
2479 libsystemd-internal.la \
2480 libsystemd-resolve.la
2482 libsystemd_dump_la_SOURCES = \
2483 src/libsystemd/sd-bus/bus-dump.c \
2484 src/libsystemd/sd-bus/bus-dump.h
2486 libsystemd_dump_la_CFLAGS = \
2490 noinst_LTLIBRARIES += \
2494 src/libsystemd/libsystemd.sym.m4 \
2495 src/libsystemd/libsystemd.pc.in \
2496 src/libsystemd/sd-bus/bus-error-mapping.gperf \
2497 src/libsystemd/sd-bus/DIFFERENCES \
2498 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2501 src/libsystemd/libsystemd.sym \
2502 src/libsystemd/sd-bus/bus-error-mapping.c
2505 src/libsystemd/libsystemd.sym
2507 libsystemd_la_SOURCES = \
2508 $(libsystemd_internal_la_SOURCES) \
2509 $(libsystemd_resolve_la_SOURCES) \
2510 $(libsystemd_journal_internal_la_SOURCES)
2512 nodist_libsystemd_la_SOURCES = \
2513 $(nodist_libsystemd_internal_la_SOURCES)
2515 libsystemd_la_CFLAGS = \
2516 $(libsystemd_internal_la_CFLAGS) \
2517 $(libsystemd_resolve_la_CFLAGS) \
2518 $(libsystemd_journal_internal_la_CFLAGS)
2520 libsystemd_la_LDFLAGS = \
2522 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2523 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2525 libsystemd_la_LIBADD = \
2526 libsystemd-shared.la \
2527 $(libsystemd_internal_la_LIBADD) \
2528 $(libsystemd_journal_internal_la_LIBADD) \
2529 $(libsystemd_resolve_la_LIBADD)
2531 libsystemd-install-hook:
2532 libname=libsystemd.so && $(move-to-rootlibdir)
2534 libsystemd-uninstall-hook:
2535 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2537 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2538 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2540 pkgconfiglib_DATA += \
2541 src/libsystemd/libsystemd.pc
2543 pkginclude_HEADERS += \
2544 src/systemd/sd-login.h \
2545 src/systemd/sd-id128.h \
2546 src/systemd/sd-daemon.h
2549 pkginclude_HEADERS += \
2550 src/systemd/sd-bus.h \
2551 src/systemd/sd-bus-protocol.h \
2552 src/systemd/sd-bus-vtable.h \
2553 src/systemd/sd-memfd.h \
2554 src/systemd/sd-utf8.h \
2555 src/systemd/sd-event.h \
2556 src/systemd/sd-rtnl.h \
2557 src/systemd/sd-resolve.h \
2558 src/systemd/sd-path.h
2561 lib_LTLIBRARIES += \
2566 test-bus-signature \
2572 test-bus-kernel-bloom \
2573 test-bus-kernel-benchmark \
2574 test-bus-zero-copy \
2575 test-bus-introspect \
2587 test_bus_marshal_SOURCES = \
2588 src/libsystemd/sd-bus/test-bus-marshal.c
2590 test_bus_marshal_LDADD = \
2591 libsystemd-internal.la \
2592 libsystemd-shared.la \
2593 libsystemd-dump.la \
2594 libsystemd-capability.la \
2599 test_bus_marshal_CFLAGS = \
2605 test_bus_signature_SOURCES = \
2606 src/libsystemd/sd-bus/test-bus-signature.c
2608 test_bus_signature_LDADD = \
2609 libsystemd-shared.la \
2610 libsystemd-internal.la
2612 test_bus_chat_SOURCES = \
2613 src/libsystemd/sd-bus/test-bus-chat.c
2615 test_bus_chat_CFLAGS = \
2619 test_bus_chat_LDADD = \
2620 libsystemd-internal.la \
2621 libsystemd-shared.la
2623 test_bus_cleanup_SOURCES = \
2624 src/libsystemd/sd-bus/test-bus-cleanup.c
2626 test_bus_cleanup_CFLAGS = \
2630 test_bus_cleanup_LDADD = \
2631 libsystemd-internal.la \
2632 libsystemd-shared.la
2634 test_bus_server_SOURCES = \
2635 src/libsystemd/sd-bus/test-bus-server.c
2637 test_bus_server_CFLAGS = \
2641 test_bus_server_LDADD = \
2642 libsystemd-internal.la \
2643 libsystemd-shared.la
2645 test_bus_objects_SOURCES = \
2646 src/libsystemd/sd-bus/test-bus-objects.c
2648 test_bus_objects_CFLAGS = \
2653 test_bus_objects_LDADD = \
2654 libsystemd-internal.la \
2655 libsystemd-shared.la \
2656 libsystemd-dump.la \
2657 libsystemd-capability.la \
2660 test_bus_error_SOURCES = \
2661 src/libsystemd/sd-bus/test-bus-error.c
2663 test_bus_error_LDADD = \
2664 libsystemd-internal.la \
2665 libsystemd-shared.la
2667 test_bus_gvariant_SOURCES = \
2668 src/libsystemd/sd-bus/test-bus-gvariant.c
2670 test_bus_gvariant_LDADD = \
2671 libsystemd-internal.la \
2672 libsystemd-shared.la \
2673 libsystemd-dump.la \
2674 libsystemd-capability.la \
2678 test_bus_gvariant_CFLAGS = \
2683 test_bus_creds_SOURCES = \
2684 src/libsystemd/sd-bus/test-bus-creds.c
2686 test_bus_creds_LDADD = \
2687 libsystemd-internal.la \
2688 libsystemd-shared.la \
2689 libsystemd-dump.la \
2690 libsystemd-capability.la
2692 test_bus_match_SOURCES = \
2693 src/libsystemd/sd-bus/test-bus-match.c
2695 test_bus_match_LDADD = \
2696 libsystemd-internal.la \
2697 libsystemd-shared.la
2699 test_bus_kernel_SOURCES = \
2700 src/libsystemd/sd-bus/test-bus-kernel.c
2702 test_bus_kernel_LDADD = \
2703 libsystemd-internal.la \
2704 libsystemd-shared.la \
2705 libsystemd-dump.la \
2706 libsystemd-capability.la \
2709 test_bus_kernel_CFLAGS = \
2713 test_bus_kernel_bloom_SOURCES = \
2714 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
2716 test_bus_kernel_bloom_LDADD = \
2717 libsystemd-internal.la \
2718 libsystemd-shared.la
2720 test_bus_kernel_benchmark_SOURCES = \
2721 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
2723 test_bus_kernel_benchmark_LDADD = \
2724 libsystemd-internal.la \
2725 libsystemd-shared.la
2727 test_bus_memfd_LDADD = \
2728 libsystemd-internal.la \
2729 libsystemd-shared.la
2731 test_bus_zero_copy_SOURCES = \
2732 src/libsystemd/sd-bus/test-bus-zero-copy.c
2734 test_bus_zero_copy_LDADD = \
2735 libsystemd-internal.la \
2736 libsystemd-shared.la \
2737 libsystemd-dump.la \
2738 libsystemd-capability.la \
2741 test_bus_zero_copy_CFLAGS = \
2745 test_bus_introspect_SOURCES = \
2746 src/libsystemd/sd-bus/test-bus-introspect.c
2748 test_bus_introspect_LDADD = \
2749 libsystemd-internal.la \
2750 libsystemd-shared.la
2752 test_event_SOURCES = \
2753 src/libsystemd/sd-event/test-event.c
2755 test_event_LDADD = \
2756 libsystemd-internal.la \
2757 libsystemd-shared.la
2759 test_rtnl_SOURCES = \
2760 src/libsystemd/sd-rtnl/test-rtnl.c
2763 libsystemd-internal.la \
2764 libsystemd-shared.la
2766 test_resolve_SOURCES = \
2767 src/libsystemd/sd-resolve/test-resolve.c
2769 test_resolve_LDADD = \
2770 libsystemd-resolve.la \
2771 libsystemd-internal.la \
2772 libsystemd-shared.la
2774 test_resolve_CFLAGS = \
2779 src/libsystemd/sd-bus/busctl.c
2782 libsystemd-internal.la \
2783 libsystemd-shared.la \
2784 libsystemd-dump.la \
2785 libsystemd-capability.la \
2792 # ------------------------------------------------------------------------------
2793 noinst_LTLIBRARIES += \
2794 libsystemd-network.la
2796 libsystemd_network_la_CFLAGS = \
2800 libsystemd_network_la_SOURCES = \
2801 src/systemd/sd-dhcp-client.h \
2802 src/systemd/sd-dhcp-server.h \
2803 src/systemd/sd-dhcp-lease.h \
2804 src/systemd/sd-ipv4ll.h \
2805 src/systemd/sd-icmp6-nd.h \
2806 src/systemd/sd-dhcp6-client.h \
2807 src/systemd/sd-dhcp6-lease.h \
2808 src/libsystemd-network/sd-dhcp-client.c \
2809 src/libsystemd-network/sd-dhcp-server.c \
2810 src/libsystemd-network/dhcp-network.c \
2811 src/libsystemd-network/dhcp-option.c \
2812 src/libsystemd-network/dhcp-packet.c \
2813 src/libsystemd-network/dhcp-internal.h \
2814 src/libsystemd-network/dhcp-server-internal.h \
2815 src/libsystemd-network/dhcp-protocol.h \
2816 src/libsystemd-network/dhcp-lease-internal.h \
2817 src/libsystemd-network/sd-dhcp-lease.c \
2818 src/libsystemd-network/sd-ipv4ll.c \
2819 src/libsystemd-network/ipv4ll-network.c \
2820 src/libsystemd-network/ipv4ll-packet.c \
2821 src/libsystemd-network/ipv4ll-internal.h \
2822 src/libsystemd-network/network-internal.c \
2823 src/libsystemd-network/network-internal.h \
2824 src/libsystemd-network/sd-icmp6-nd.c \
2825 src/libsystemd-network/sd-dhcp6-client.c \
2826 src/libsystemd-network/dhcp6-internal.h \
2827 src/libsystemd-network/dhcp6-protocol.h \
2828 src/libsystemd-network/dhcp6-network.c \
2829 src/libsystemd-network/dhcp6-option.c \
2830 src/libsystemd-network/dhcp6-lease-internal.h \
2831 src/libsystemd-network/sd-dhcp6-lease.c
2833 libsystemd_network_la_LIBADD = \
2834 libudev-internal.la \
2835 libsystemd-label.la \
2836 libsystemd-internal.la \
2837 libsystemd-shared.la \
2840 test_dhcp_option_SOURCES = \
2841 src/libsystemd-network/dhcp-protocol.h \
2842 src/libsystemd-network/dhcp-internal.h \
2843 src/libsystemd-network/test-dhcp-option.c
2845 test_dhcp_option_LDADD = \
2846 libsystemd-network.la \
2847 libsystemd-internal.la \
2848 libsystemd-shared.la
2850 test_dhcp_client_SOURCES = \
2851 src/systemd/sd-dhcp-client.h \
2852 src/libsystemd-network/dhcp-protocol.h \
2853 src/libsystemd-network/dhcp-internal.h \
2854 src/libsystemd-network/test-dhcp-client.c
2856 test_dhcp_client_LDADD = \
2857 libsystemd-network.la \
2858 libsystemd-label.la \
2859 libsystemd-internal.la \
2860 libsystemd-shared.la
2862 test_dhcp_server_SOURCES = \
2863 src/libsystemd-network/test-dhcp-server.c
2865 test_dhcp_server_LDADD = \
2866 libsystemd-network.la \
2867 libsystemd-internal.la \
2868 libsystemd-shared.la
2870 test_ipv4ll_SOURCES = \
2871 src/systemd/sd-ipv4ll.h \
2872 src/libsystemd-network/ipv4ll-internal.h \
2873 src/libsystemd-network/test-ipv4ll.c
2875 test_ipv4ll_LDADD = \
2876 libsystemd-network.la \
2877 libsystemd-label.la \
2878 libsystemd-internal.la \
2879 libsystemd-shared.la
2881 test_icmp6_rs_SOURCES = \
2882 src/systemd/sd-dhcp6-client.h \
2883 src/systemd/sd-icmp6-nd.h \
2884 src/libsystemd-network/dhcp6-internal.h \
2885 src/libsystemd-network/test-icmp6-rs.c
2887 test_icmp6_rs_LDADD = \
2888 libsystemd-network.la \
2889 libsystemd-internal.la \
2890 libsystemd-shared.la
2892 test_dhcp6_client_SOURCES = \
2893 src/systemd/sd-dhcp6-client.h \
2894 src/libsystemd-network/dhcp6-internal.h \
2895 src/libsystemd-network/test-dhcp6-client.c
2897 test_dhcp6_client_LDADD = \
2898 libsystemd-network.la \
2899 libsystemd-internal.la \
2900 libsystemd-shared.la
2910 # ------------------------------------------------------------------------------
2912 noinst_LTLIBRARIES += \
2913 libsystemd-terminal.la
2915 noinst_PROGRAMS += \
2918 unifontdatadir=$(datadir)/unifont
2920 dist_unifontdata_DATA = \
2921 src/libsystemd-terminal/unifont-glyph-array.bin
2929 libsystemd_terminal_la_CFLAGS = \
2932 libsystemd_terminal_la_SOURCES = \
2933 src/libsystemd-terminal/term-internal.h \
2934 src/libsystemd-terminal/term-charset.c \
2935 src/libsystemd-terminal/term-page.c \
2936 src/libsystemd-terminal/term-parser.c \
2937 src/libsystemd-terminal/term-screen.c \
2938 src/libsystemd-terminal/term-wcwidth.c \
2939 src/libsystemd-terminal/unifont-internal.h \
2940 src/libsystemd-terminal/unifont.c
2942 libsystemd_terminal_la_LIBADD = \
2943 libsystemd-internal.la \
2944 libsystemd-shared.la
2946 systemd_subterm_SOURCES = \
2947 src/libsystemd-terminal/subterm.c
2949 systemd_subterm_LDADD = \
2950 libsystemd-terminal.la \
2951 libsystemd-internal.la \
2952 libsystemd-shared.la
2954 test_term_page_SOURCES = \
2955 src/libsystemd-terminal/test-term-page.c
2957 test_term_page_LDADD = \
2958 libsystemd-terminal.la \
2959 libsystemd-internal.la \
2960 libsystemd-shared.la
2962 test_term_parser_SOURCES = \
2963 src/libsystemd-terminal/test-term-parser.c
2965 test_term_parser_LDADD = \
2966 libsystemd-terminal.la \
2967 libsystemd-internal.la \
2968 libsystemd-shared.la
2970 test_unifont_SOURCES = \
2971 src/libsystemd-terminal/test-unifont.c
2973 test_unifont_LDADD = \
2974 libsystemd-terminal.la \
2975 libsystemd-internal.la \
2976 libsystemd-shared.la
2978 .PHONY: update-unifont
2979 update-unifont: tools/compile-unifont.py
2980 $(AM_V_GEN)$(PYTHON) $< \
2981 <$(top_srcdir)/src/libsystemd-terminal/unifont.hex \
2982 >$(top_srcdir)/src/libsystemd-terminal/unifont-glyph-array.bin
2983 @echo "unifont-glyph-array.bin has been regenerated"
2985 # ------------------------------------------------------------------------------
2995 include_HEADERS += \
2996 src/libudev/libudev.h
2998 lib_LTLIBRARIES += \
3001 libudev_la_SOURCES =\
3002 src/libudev/libudev.sym \
3003 src/libudev/libudev-private.h \
3004 src/libudev/libudev.c \
3005 src/libudev/libudev-list.c \
3006 src/libudev/libudev-util.c \
3007 src/libudev/libudev-device.c \
3008 src/libudev/libudev-enumerate.c \
3009 src/libudev/libudev-monitor.c \
3010 src/libudev/libudev-queue.c \
3011 src/libudev/libudev-hwdb-def.h \
3012 src/libudev/libudev-hwdb.c
3014 libudev_la_CFLAGS = \
3018 libudev_la_LDFLAGS = \
3020 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3021 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3023 libudev_la_LIBADD = \
3024 libsystemd-internal.la \
3025 libsystemd-shared.la
3027 pkgconfiglib_DATA += \
3028 src/libudev/libudev.pc
3031 src/libudev/libudev.pc.in
3034 src/libudev/libudev.pc \
3039 $(AM_V_at)$(MKDIR_P) $(dir $@)
3040 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
3043 $(AM_V_at)$(MKDIR_P) $(dir $@)
3044 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
3046 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3047 libudev-install-hook:
3048 libname=libudev.so && $(move-to-rootlibdir)
3050 libudev-uninstall-hook:
3051 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3053 INSTALL_EXEC_HOOKS += libudev-install-hook
3054 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3056 # ------------------------------------------------------------------------------
3057 noinst_LTLIBRARIES += \
3060 libudev_internal_la_SOURCES =\
3061 $(libudev_la_SOURCES) \
3062 src/libudev/libudev-device-private.c
3064 libudev_internal_la_CFLAGS = \
3066 -fvisibility=default
3068 # ------------------------------------------------------------------------------
3070 $(sysconfdir)/udev/rules.d \
3071 $(sysconfdir)/udev/hwdb.d
3073 dist_network_DATA = \
3074 network/99-default.link \
3075 network/80-container-host0.network \
3076 network/80-container-ve.network
3078 dist_udevrules_DATA += \
3079 rules/42-usb-hid-pm.rules \
3080 rules/50-udev-default.rules \
3081 rules/60-drm.rules \
3082 rules/60-keyboard.rules \
3083 rules/60-persistent-storage-tape.rules \
3084 rules/60-persistent-serial.rules \
3085 rules/60-persistent-input.rules \
3086 rules/60-persistent-alsa.rules \
3087 rules/60-persistent-storage.rules \
3088 rules/64-btrfs.rules \
3089 rules/75-net-description.rules \
3090 rules/75-tty-description.rules \
3091 rules/78-sound-card.rules \
3092 rules/80-net-setup-link.rules \
3093 rules/95-udev-late.rules
3095 nodist_udevrules_DATA += \
3096 rules/99-systemd.rules
3098 dist_udevhwdb_DATA = \
3099 hwdb/20-pci-vendor-model.hwdb \
3100 hwdb/20-pci-classes.hwdb \
3101 hwdb/20-usb-vendor-model.hwdb \
3102 hwdb/20-usb-classes.hwdb \
3103 hwdb/20-sdio-vendor-model.hwdb \
3104 hwdb/20-sdio-classes.hwdb \
3105 hwdb/20-bluetooth-vendor-product.hwdb \
3106 hwdb/20-acpi-vendor.hwdb \
3108 hwdb/20-net-ifname.hwdb \
3109 hwdb/60-keyboard.hwdb
3111 udevconfdir = $(sysconfdir)/udev
3112 dist_udevconf_DATA = \
3115 sharepkgconfigdir = $(datadir)/pkgconfig
3116 sharepkgconfig_DATA = \
3120 rules/99-systemd.rules.in \
3124 rules/99-systemd.rules \
3128 units/systemd-udevd.service.in \
3129 units/systemd-udev-trigger.service.in \
3130 units/systemd-udev-settle.service.in \
3131 units/systemd-udev-hwdb-update.service.in
3134 units/systemd-udevd.service \
3135 units/systemd-udev-trigger.service \
3136 units/systemd-udev-settle.service \
3137 units/systemd-udev-hwdb-update.service
3139 SOCKETS_TARGET_WANTS += \
3140 systemd-udevd-control.socket \
3141 systemd-udevd-kernel.socket
3143 SYSINIT_TARGET_WANTS += \
3144 systemd-udevd.service \
3145 systemd-udev-trigger.service \
3146 systemd-udev-hwdb-update.service
3148 rootbin_PROGRAMS += \
3151 rootlibexec_PROGRAMS += \
3154 noinst_LTLIBRARIES += \
3157 src/udev/keyboard-keys.txt:
3158 $(AM_V_at)$(MKDIR_P) $(dir $@)
3159 $(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/' > $@
3161 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
3162 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3164 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3165 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3167 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
3168 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
3170 libudev_core_la_SOURCES = \
3172 src/udev/udev-event.c \
3173 src/udev/udev-watch.c \
3174 src/udev/udev-node.c \
3175 src/udev/udev-rules.c \
3176 src/udev/udev-ctrl.c \
3177 src/udev/udev-builtin.c \
3178 src/udev/udev-builtin-btrfs.c \
3179 src/udev/udev-builtin-hwdb.c \
3180 src/udev/udev-builtin-input_id.c \
3181 src/udev/udev-builtin-keyboard.c \
3182 src/udev/udev-builtin-net_id.c \
3183 src/udev/udev-builtin-net_setup_link.c \
3184 src/udev/udev-builtin-path_id.c \
3185 src/udev/udev-builtin-usb_id.c \
3186 src/udev/net/link-config.h \
3187 src/udev/net/link-config.c \
3188 src/udev/net/ethtool-util.h \
3189 src/udev/net/ethtool-util.c
3191 nodist_libudev_core_la_SOURCES = \
3192 src/udev/keyboard-keys-from-name.h \
3193 src/udev/keyboard-keys-to-name.h \
3194 src/udev/net/link-config-gperf.c
3197 $(nodist_libudev_core_la_SOURCES)
3200 src/udev/keyboard-keys-from-name.gperf \
3201 src/udev/keyboard-keys.txt \
3202 src/udev/net/link-config-gperf.c
3205 src/udev/net/link-config-gperf.gperf
3207 libudev_core_la_CFLAGS = \
3212 libudev_core_la_LIBADD = \
3213 libudev-internal.la \
3214 libsystemd-label.la \
3215 libsystemd-internal.la \
3216 libsystemd-network.la \
3217 libsystemd-shared.la \
3221 libudev_core_la_CPPFLAGS = \
3223 -DFIRMWARE_PATH="$(FIRMWARE_PATH)"
3226 libudev_core_la_SOURCES += \
3227 src/udev/udev-builtin-firmware.c
3229 dist_udevrules_DATA += \
3230 rules/50-firmware.rules
3234 libudev_core_la_SOURCES += \
3235 src/udev/udev-builtin-kmod.c
3237 dist_udevrules_DATA += \
3238 rules/80-drivers.rules
3242 libudev_core_la_SOURCES += \
3243 src/udev/udev-builtin-blkid.c
3247 libudev_core_la_SOURCES += \
3248 src/udev/udev-builtin-uaccess.c \
3249 src/login/logind-acl.c \
3250 src/libsystemd/sd-login/sd-login.c \
3251 src/systemd/sd-login.h
3253 libudev_core_la_LIBADD += \
3257 systemd_udevd_SOURCES = \
3260 systemd_udevd_LDADD = \
3264 src/udev/udevadm.c \
3265 src/udev/udevadm-info.c \
3266 src/udev/udevadm-control.c \
3267 src/udev/udevadm-monitor.c \
3268 src/udev/udevadm-hwdb.c \
3269 src/udev/udevadm-settle.c \
3270 src/udev/udevadm-trigger.c \
3271 src/udev/udevadm-test.c \
3272 src/udev/udevadm-test-builtin.c
3277 # Update hwdb on installation. Do not bother if installing
3278 # in DESTDIR, since this is likely for packaging purposes.
3280 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
3282 INSTALL_DATA_HOOKS += \
3286 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3288 # ------------------------------------------------------------------------------
3297 test_libudev_SOURCES = \
3298 src/test/test-libudev.c
3300 test_libudev_LDADD = \
3301 libsystemd-label.la \
3302 libudev-internal.la \
3303 libsystemd-shared.la
3305 test_udev_SOURCES = \
3306 src/test/test-udev.c
3315 test_udev_LDADD += \
3322 # packed sysfs test tree
3324 $(AM_V_at)$(MKDIR_P) $(dir $@)
3325 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3329 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3334 test/rules-test.sh \
3335 test/rule-syntax-check.py
3337 # ------------------------------------------------------------------------------
3339 src/udev/ata_id/ata_id.c
3342 libudev-internal.la \
3343 libsystemd-shared.la
3345 udevlibexec_PROGRAMS += \
3348 # ------------------------------------------------------------------------------
3349 cdrom_id_SOURCES = \
3350 src/udev/cdrom_id/cdrom_id.c
3353 libudev-internal.la \
3354 libsystemd-shared.la
3356 udevlibexec_PROGRAMS += \
3359 dist_udevrules_DATA += \
3360 rules/60-cdrom_id.rules
3362 # ------------------------------------------------------------------------------
3364 src/udev/collect/collect.c
3367 libudev-internal.la \
3368 libsystemd-shared.la
3370 udevlibexec_PROGRAMS += \
3373 # ------------------------------------------------------------------------------
3375 src/udev/scsi_id/scsi_id.c \
3376 src/udev/scsi_id/scsi_serial.c \
3377 src/udev/scsi_id/scsi.h \
3378 src/udev/scsi_id/scsi_id.h
3381 libudev-internal.la \
3382 libsystemd-shared.la
3384 udevlibexec_PROGRAMS += \
3388 src/udev/scsi_id/README
3390 # ------------------------------------------------------------------------------
3392 src/udev/v4l_id/v4l_id.c
3397 udevlibexec_PROGRAMS += \
3400 dist_udevrules_DATA += \
3401 rules/60-persistent-v4l.rules
3403 # ------------------------------------------------------------------------------
3404 accelerometer_SOURCES = \
3405 src/udev/accelerometer/accelerometer.c
3407 accelerometer_LDADD = \
3408 libudev-internal.la -lm \
3409 libsystemd-shared.la
3411 udevlibexec_PROGRAMS += \
3414 dist_udevrules_DATA += \
3415 rules/61-accelerometer.rules
3417 # ------------------------------------------------------------------------------
3424 libgudev_includedir = \
3425 $(includedir)/gudev-1.0/gudev
3427 libgudev_include_HEADERS = \
3429 src/gudev/gudevenums.h \
3430 src/gudev/gudevenumtypes.h \
3431 src/gudev/gudevtypes.h \
3432 src/gudev/gudevclient.h \
3433 src/gudev/gudevdevice.h \
3434 src/gudev/gudevenumerator.h
3436 lib_LTLIBRARIES += libgudev-1.0.la
3438 pkgconfiglib_DATA += \
3439 src/gudev/gudev-1.0.pc
3442 src/gudev/gudev-1.0.pc
3444 libgudev_1_0_la_SOURCES = \
3445 src/gudev/libgudev-1.0.sym \
3446 src/gudev/gudevenums.h \
3447 src/gudev/gudevenumtypes.h \
3448 src/gudev/gudevenumtypes.h\
3449 src/gudev/gudevtypes.h \
3450 src/gudev/gudevclient.h \
3451 src/gudev/gudevclient.c \
3452 src/gudev/gudevdevice.h \
3453 src/gudev/gudevdevice.c \
3454 src/gudev/gudevenumerator.h \
3455 src/gudev/gudevenumerator.c \
3456 src/gudev/gudevprivate.h
3458 nodist_libgudev_1_0_la_SOURCES = \
3459 src/gudev/gudevmarshal.h \
3460 src/gudev/gudevmarshal.c \
3461 src/gudev/gudevenumtypes.h \
3462 src/gudev/gudevenumtypes.c
3465 $(nodist_libgudev_1_0_la_SOURCES)
3467 libgudev_1_0_la_CPPFLAGS = \
3469 -I$(top_builddir)/src\
3470 -I$(top_srcdir)/src\
3471 -I$(top_builddir)/src/gudev \
3472 -I$(top_srcdir)/src/gudev \
3473 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3474 -D_GUDEV_COMPILATION \
3475 -DG_LOG_DOMAIN=\"GUdev\"
3477 libgudev_1_0_la_CFLAGS = \
3479 -fvisibility=default \
3482 libgudev_1_0_la_LIBADD = \
3486 libgudev_1_0_la_LDFLAGS = \
3488 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3491 -Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym
3493 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3494 $(AM_V_at)$(MKDIR_P) $(dir $@)
3495 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3497 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3498 $(AM_V_at)$(MKDIR_P) $(dir $@)
3499 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3500 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3502 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3503 $(AM_V_at)$(MKDIR_P) $(dir $@)
3504 $(AM_V_GEN)glib-mkenums --template $^ > $@
3506 if HAVE_INTROSPECTION
3507 -include $(INTROSPECTION_MAKEFILE)
3509 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3511 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3513 src_gudev_GUdev_1_0_gir_CFLAGS = \
3516 -D_GUDEV_COMPILATION \
3517 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3518 -I$(top_srcdir)/src \
3519 -I$(top_builddir)/src \
3520 -I$(top_srcdir)/src/gudev \
3521 -I$(top_builddir)/src/gudev
3523 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
3525 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
3526 --pkg-export=gudev-1.0 \
3529 src_gudev_GUdev_1_0_gir_FILES = \
3531 src/gudev/gudevtypes.h \
3532 src/gudev/gudevenums.h \
3533 src/gudev/gudevenumtypes.h \
3534 src/gudev/gudevclient.h \
3535 src/gudev/gudevdevice.h \
3536 src/gudev/gudevenumerator.h \
3537 src/gudev/gudevclient.c \
3538 src/gudev/gudevdevice.c \
3539 src/gudev/gudevenumerator.c
3541 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
3542 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
3544 girdir = $(datadir)/gir-1.0
3546 src/gudev/GUdev-1.0.gir
3548 typelibsdir = $(libdir)/girepository-1.0
3550 src/gudev/GUdev-1.0.typelib
3552 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
3553 endif # HAVE_INTROSPECTION
3557 src/gudev/gudev-1.0.pc.in \
3558 src/gudev/gudevmarshal.list \
3559 src/gudev/gudevenumtypes.h.template \
3560 src/gudev/gudevenumtypes.c.template \
3561 src/gudev/gjs-example.js \
3562 src/gudev/seed-example-enum.js \
3563 src/gudev/seed-example.js
3565 # ------------------------------------------------------------------------------
3566 mtd_probe_SOURCES = \
3567 src/udev/mtd_probe/mtd_probe.c \
3568 src/udev/mtd_probe/mtd_probe.h \
3569 src/udev/mtd_probe/probe_smartmedia.c
3571 dist_udevrules_DATA += \
3572 rules/75-probe_mtd.rules
3574 udevlibexec_PROGRAMS += \
3577 # ------------------------------------------------------------------------------
3578 test_id128_SOURCES = \
3579 src/test/test-id128.c
3581 test_id128_LDADD = \
3582 libsystemd-internal.la \
3583 libsystemd-shared.la
3588 # ------------------------------------------------------------------------------
3590 rootlibexec_PROGRAMS += \
3593 systemd_activate_SOURCES = \
3594 src/activate/activate.c
3596 systemd_activate_LDADD = \
3597 libsystemd-label.la \
3598 libsystemd-internal.la \
3599 libsystemd-shared.la
3601 # ------------------------------------------------------------------------------
3602 systemd_journald_SOURCES = \
3603 src/journal/journald.c \
3604 src/journal/journald-server.h
3606 systemd_journald_LDADD = \
3607 libsystemd-journal-core.la \
3608 libsystemd-internal.la \
3609 libsystemd-shared.la
3611 systemd_cat_SOURCES = \
3614 systemd_cat_LDADD = \
3615 libsystemd-journal-core.la
3618 rootlibexec_PROGRAMS += \
3619 systemd-journal-remote
3621 systemd_journal_remote_SOURCES = \
3622 src/journal-remote/journal-remote-parse.h \
3623 src/journal-remote/journal-remote-parse.c \
3624 src/journal-remote/journal-remote-write.h \
3625 src/journal-remote/journal-remote-write.c \
3626 src/journal-remote/journal-remote.h \
3627 src/journal-remote/journal-remote.c
3629 systemd_journal_remote_LDADD = \
3630 libsystemd-internal.la \
3631 libsystemd-journal-core.la
3633 systemd_journal_remote_SOURCES += \
3634 src/journal-remote/microhttpd-util.h \
3635 src/journal-remote/microhttpd-util.c
3637 systemd_journal_remote_CFLAGS = \
3639 $(MICROHTTPD_CFLAGS)
3641 systemd_journal_remote_LDADD += \
3645 systemd_journal_remote_LDADD += \
3648 # systemd-journal-remote make sense mostly with full crypto stack
3649 dist_systemunit_DATA += \
3650 units/systemd-journal-remote.socket
3652 nodist_systemunit_DATA += \
3653 units/systemd-journal-remote.service
3656 units/systemd-journal-remote.service.in
3658 journal-remote-install-hook: journal-install-hook
3659 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
3660 -chown 0:0 $(DESTDIR)/var/log/journal/remote
3661 -chmod 755 $(DESTDIR)/var/log/journal/remote
3663 INSTALL_EXEC_HOOKS += journal-remote-install-hook
3667 nodist_pkgsysconf_DATA += \
3668 src/journal-remote/journal-remote.conf
3671 src/journal-remote/journal-remote.conf.in
3674 src/journal-remote/journal-remote.conf
3678 rootlibexec_PROGRAMS += \
3679 systemd-journal-upload
3681 systemd_journal_upload_SOURCES = \
3682 src/journal-remote/journal-upload.h \
3683 src/journal-remote/journal-upload.c \
3684 src/journal-remote/journal-upload-journal.c
3686 systemd_journal_upload_CFLAGS = \
3690 systemd_journal_upload_LDADD = \
3691 libsystemd-core.la \
3692 libsystemd-internal.la \
3693 libsystemd-journal-internal.la \
3694 libsystemd-shared.la \
3697 nodist_systemunit_DATA += \
3698 units/systemd-journal-upload.service
3701 units/systemd-journal-upload.service.in
3703 nodist_pkgsysconf_DATA += \
3704 src/journal-remote/journal-upload.conf
3707 src/journal-remote/journal-upload.conf.in
3710 src/journal-remote/journal-upload.conf
3713 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3714 journalctl_CFLAGS = \
3717 journalctl_SOURCES = \
3718 src/journal/journalctl.c
3720 journalctl_LDADD = \
3721 libsystemd-journal-internal.la \
3722 libsystemd-internal.la \
3723 libsystemd-logs.la \
3724 libsystemd-shared.la
3727 journalctl_LDADD += \
3732 journalctl_SOURCES += \
3733 src/journal/journal-qrcode.c \
3734 src/journal/journal-qrcode.h
3736 journalctl_CFLAGS += \
3739 journalctl_LDADD += \
3743 test_journal_SOURCES = \
3744 src/journal/test-journal.c
3746 test_journal_LDADD = \
3747 libsystemd-journal-core.la
3749 test_journal_send_SOURCES = \
3750 src/journal/test-journal-send.c
3752 test_journal_send_LDADD = \
3753 libsystemd-journal-core.la
3755 test_journal_syslog_SOURCES = \
3756 src/journal/test-journal-syslog.c
3758 test_journal_syslog_LDADD = \
3759 libsystemd-journal-core.la
3761 test_journal_match_SOURCES = \
3762 src/journal/test-journal-match.c
3764 test_journal_match_LDADD = \
3765 libsystemd-journal-core.la
3767 test_journal_enum_SOURCES = \
3768 src/journal/test-journal-enum.c
3770 test_journal_enum_LDADD = \
3771 libsystemd-journal-core.la
3773 test_journal_stream_SOURCES = \
3774 src/journal/test-journal-stream.c
3776 test_journal_stream_LDADD = \
3777 libsystemd-journal-core.la
3779 test_journal_flush_SOURCES = \
3780 src/journal/test-journal-flush.c
3782 test_journal_flush_LDADD = \
3783 libsystemd-journal-core.la
3785 test_journal_init_SOURCES = \
3786 src/journal/test-journal-init.c
3788 test_journal_init_LDADD = \
3789 libsystemd-journal-core.la
3791 test_journal_verify_SOURCES = \
3792 src/journal/test-journal-verify.c
3794 test_journal_verify_LDADD = \
3795 libsystemd-journal-core.la
3797 test_journal_interleaving_SOURCES = \
3798 src/journal/test-journal-interleaving.c
3800 test_journal_interleaving_LDADD = \
3801 libsystemd-journal-core.la
3803 test_mmap_cache_SOURCES = \
3804 src/journal/test-mmap-cache.c
3806 test_mmap_cache_LDADD = \
3807 libsystemd-journal-core.la
3809 test_catalog_SOURCES = \
3810 src/journal/test-catalog.c
3812 test_catalog_CPPFLAGS = \
3814 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
3816 test_catalog_LDADD = \
3817 libsystemd-journal-core.la
3819 test_compress_SOURCES = \
3820 src/journal/test-compress.c
3822 test_compress_LDADD = \
3823 libsystemd-journal-internal.la \
3824 libsystemd-shared.la
3826 test_compress_benchmark_SOURCES = \
3827 src/journal/test-compress-benchmark.c
3829 test_compress_benchmark_LDADD = \
3830 libsystemd-journal-internal.la \
3831 libsystemd-shared.la
3833 libsystemd_journal_core_la_SOURCES = \
3834 src/journal/journald-kmsg.c \
3835 src/journal/journald-kmsg.h \
3836 src/journal/journald-syslog.c \
3837 src/journal/journald-syslog.h \
3838 src/journal/journald-stream.c \
3839 src/journal/journald-stream.h \
3840 src/journal/journald-server.c \
3841 src/journal/journald-server.h \
3842 src/journal/journald-console.c \
3843 src/journal/journald-console.h \
3844 src/journal/journald-wall.c \
3845 src/journal/journald-wall.h \
3846 src/journal/journald-native.c \
3847 src/journal/journald-native.h \
3848 src/journal/journald-rate-limit.c \
3849 src/journal/journald-rate-limit.h \
3850 src/journal/journal-internal.h
3852 nodist_libsystemd_journal_core_la_SOURCES = \
3853 src/journal/journald-gperf.c
3855 libsystemd_journal_core_la_LIBADD = \
3856 libsystemd-journal-internal.la \
3857 libudev-internal.la \
3858 libsystemd-capability.la \
3859 libsystemd-label.la \
3860 libsystemd-internal.la \
3861 libsystemd-shared.la
3864 libsystemd_journal_core_la_LIBADD += \
3868 noinst_LTLIBRARIES += \
3869 libsystemd-journal-core.la
3871 journal-install-hook:
3872 -$(MKDIR_P) $(DESTDIR)/var/log/journal
3873 -chown 0:0 $(DESTDIR)/var/log/journal
3874 -chmod 755 $(DESTDIR)/var/log/journal
3875 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
3876 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
3878 journal-uninstall-hook:
3879 -rmdir $(DESTDIR)/var/log/journal/remote
3880 -rmdir $(DESTDIR)/var/log/journal/
3882 INSTALL_EXEC_HOOKS += journal-install-hook
3883 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
3885 # ------------------------------------------------------------------------------
3886 # Update catalog on installation. Do not bother if installing
3887 # in DESTDIR, since this is likely for packaging purposes.
3888 catalog-update-hook:
3889 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
3891 INSTALL_DATA_HOOKS += \
3894 catalog-remove-hook:
3895 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
3897 UNINSTALL_DATA_HOOKS += \
3906 test-journal-syslog \
3907 test-journal-match \
3908 test-journal-stream \
3910 test-journal-verify \
3911 test-journal-interleaving \
3912 test-journal-flush \
3919 test-compress-benchmark
3922 pkginclude_HEADERS += \
3923 src/systemd/sd-journal.h \
3924 src/systemd/sd-messages.h \
3925 src/systemd/_sd-common.h
3927 libsystemd_journal_internal_la_SOURCES = \
3928 src/journal/sd-journal.c \
3929 src/systemd/sd-journal.h \
3930 src/systemd/_sd-common.h \
3931 src/journal/journal-file.c \
3932 src/journal/journal-file.h \
3933 src/journal/journal-vacuum.c \
3934 src/journal/journal-vacuum.h \
3935 src/journal/journal-verify.c \
3936 src/journal/journal-verify.h \
3937 src/journal/lookup3.c \
3938 src/journal/lookup3.h \
3939 src/journal/journal-send.c \
3940 src/journal/journal-def.h \
3941 src/journal/compress.h \
3942 src/journal/catalog.c \
3943 src/journal/catalog.h \
3944 src/journal/mmap-cache.c \
3945 src/journal/mmap-cache.h
3947 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3948 libsystemd_journal_internal_la_CFLAGS = \
3951 libsystemd_journal_internal_la_LIBADD =
3953 libsystemd_journal_internal_la_SOURCES += \
3954 src/journal/compress.c
3957 libsystemd_journal_internal_la_CFLAGS += \
3960 libsystemd_journal_internal_la_LIBADD += \
3965 libsystemd_journal_internal_la_LIBADD += \
3970 libsystemd_journal_internal_la_SOURCES += \
3971 src/journal/journal-authenticate.c \
3972 src/journal/journal-authenticate.h \
3973 src/journal/fsprg.c \
3976 libsystemd_journal_internal_la_LIBADD += \
3979 # fsprg.c is a drop-in file using void pointer arithmetic
3980 libsystemd_journal_internal_la_CFLAGS += \
3985 noinst_LTLIBRARIES += \
3986 libsystemd-journal-internal.la
3988 rootlibexec_PROGRAMS += \
3991 rootbin_PROGRAMS += \
3997 dist_systemunit_DATA += \
3998 units/systemd-journald.socket \
3999 units/systemd-journald-dev-log.socket
4001 nodist_systemunit_DATA += \
4002 units/systemd-journald.service \
4003 units/systemd-journal-flush.service \
4004 units/systemd-journal-catalog-update.service
4006 dist_pkgsysconf_DATA += \
4007 src/journal/journald.conf
4009 dist_catalog_DATA = \
4010 catalog/systemd.fr.catalog \
4011 catalog/systemd.ru.catalog \
4012 catalog/systemd.it.catalog \
4013 catalog/systemd.catalog
4015 SOCKETS_TARGET_WANTS += \
4016 systemd-journald.socket \
4017 systemd-journald-dev-log.socket
4019 SYSINIT_TARGET_WANTS += \
4020 systemd-journald.service \
4021 systemd-journal-flush.service \
4022 systemd-journal-catalog-update.service
4025 units/systemd-journald.service.in \
4026 units/systemd-journal-flush.service.in \
4027 units/systemd-journal-catalog-update.service.in \
4028 src/journal/journald-gperf.gperf
4031 src/journal/journald-gperf.c
4033 # ------------------------------------------------------------------------------
4035 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4037 rootlibexec_PROGRAMS += \
4038 systemd-journal-gatewayd
4040 systemd_journal_gatewayd_SOURCES = \
4041 src/journal-remote/journal-gatewayd.c \
4042 src/journal-remote/microhttpd-util.h \
4043 src/journal-remote/microhttpd-util.c
4045 systemd_journal_gatewayd_LDADD = \
4046 libsystemd-logs.la \
4047 libsystemd-journal-internal.la \
4048 libsystemd-internal.la \
4049 libsystemd-shared.la \
4053 systemd_journal_gatewayd_LDADD += \
4057 systemd_journal_gatewayd_CFLAGS = \
4059 $(MICROHTTPD_CFLAGS)
4061 systemd_journal_gatewayd_CPPFLAGS = \
4063 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4065 dist_systemunit_DATA += \
4066 units/systemd-journal-gatewayd.socket
4068 nodist_systemunit_DATA += \
4069 units/systemd-journal-gatewayd.service
4071 dist_gatewayddocumentroot_DATA = \
4072 src/journal-remote/browse.html
4077 units/systemd-journal-gatewayd.service.in
4079 # ------------------------------------------------------------------------------
4081 systemd_socket_proxyd_SOURCES = \
4082 src/socket-proxy/socket-proxyd.c
4084 systemd_socket_proxyd_LDADD = \
4085 libsystemd-logs.la \
4086 libsystemd-internal.la \
4087 libsystemd-journal-internal.la \
4088 libsystemd-shared.la \
4089 libsystemd-resolve.la
4091 # ------------------------------------------------------------------------------
4093 systemd_coredump_SOURCES = \
4094 src/journal/coredump.c \
4095 src/journal/coredump-vacuum.c \
4096 src/journal/coredump-vacuum.h
4098 systemd_coredump_LDADD = \
4099 libsystemd-journal-internal.la \
4100 libsystemd-label.la \
4101 libsystemd-internal.la \
4102 libsystemd-shared.la
4105 systemd_coredump_SOURCES += \
4106 src/journal/stacktrace.c \
4107 src/journal/stacktrace.h
4109 systemd_coredump_LDADD += \
4113 rootlibexec_PROGRAMS += \
4116 dist_pkgsysconf_DATA += \
4117 src/journal/coredump.conf
4120 systemd_coredump_LDADD += \
4124 coredumpctl_SOURCES = \
4125 src/journal/coredumpctl.c
4127 coredumpctl_LDADD = \
4128 libsystemd-journal-internal.la \
4129 libsystemd-internal.la \
4130 libsystemd-shared.la
4136 test-coredump-vacuum
4138 test_coredump_vacuum_SOURCES = \
4139 src/journal/test-coredump-vacuum.c \
4140 src/journal/coredump-vacuum.c \
4141 src/journal/coredump-vacuum.h
4143 test_coredump_vacuum_LDADD = \
4144 libsystemd-internal.la \
4145 libsystemd-shared.la
4147 dist_bashcompletion_DATA += \
4148 shell-completion/bash/coredumpctl
4150 dist_zshcompletion_DATA += \
4151 shell-completion/zsh/_coredumpctl
4154 sysctl.d/50-coredump.conf
4157 sysctl.d/50-coredump.conf
4161 sysctl.d/50-coredump.conf.in
4163 # ------------------------------------------------------------------------------
4165 systemd_binfmt_SOURCES = \
4168 systemd_binfmt_LDADD = \
4169 libsystemd-shared.la
4171 rootlibexec_PROGRAMS += \
4174 dist_systemunit_DATA += \
4175 units/proc-sys-fs-binfmt_misc.automount \
4176 units/proc-sys-fs-binfmt_misc.mount
4178 nodist_systemunit_DATA += \
4179 units/systemd-binfmt.service
4182 $(prefix)/lib/binfmt.d \
4183 $(sysconfdir)/binfmt.d
4185 SYSINIT_TARGET_WANTS += \
4186 systemd-binfmt.service \
4187 proc-sys-fs-binfmt_misc.automount
4192 units/systemd-binfmt.service.in
4194 # ------------------------------------------------------------------------------
4196 systemd_vconsole_setup_SOURCES = \
4197 src/vconsole/vconsole-setup.c
4199 systemd_vconsole_setup_LDADD = \
4200 libsystemd-shared.la
4202 rootlibexec_PROGRAMS += \
4203 systemd-vconsole-setup
4205 nodist_systemunit_DATA += \
4206 units/systemd-vconsole-setup.service
4208 SYSINIT_TARGET_WANTS += \
4209 systemd-vconsole-setup.service
4213 units/systemd-vconsole-setup.service.in
4215 # ------------------------------------------------------------------------------
4217 systemd_readahead_SOURCES = \
4218 src/readahead/readahead.c \
4219 src/readahead/readahead-collect.c \
4220 src/readahead/readahead-replay.c \
4221 src/readahead/readahead-analyze.c \
4222 src/readahead/readahead-common.c \
4223 src/readahead/readahead-common.h
4225 systemd_readahead_LDADD = \
4226 libsystemd-internal.la \
4227 libudev-internal.la \
4228 libsystemd-shared.la
4231 src/readahead/sd-readahead.c \
4232 src/systemd/sd-readahead.h
4234 rootlibexec_PROGRAMS += \
4237 dist_systemunit_DATA += \
4238 units/systemd-readahead-drop.service \
4239 units/systemd-readahead-done.timer
4241 nodist_systemunit_DATA += \
4242 units/systemd-readahead-collect.service \
4243 units/systemd-readahead-replay.service \
4244 units/systemd-readahead-done.service
4249 test_ssd_SOURCES = \
4250 src/readahead/test-ssd.c \
4251 src/readahead/readahead-common.c \
4252 src/readahead/readahead-common.h
4255 libsystemd-internal.la \
4256 libudev-internal.la \
4257 libsystemd-shared.la
4262 units/systemd-readahead-collect.service.in \
4263 units/systemd-readahead-replay.service.in \
4264 units/systemd-readahead-done.service.in
4266 # ------------------------------------------------------------------------------
4268 systemd_bootchart_SOURCES = \
4269 src/bootchart/bootchart.c \
4270 src/bootchart/bootchart.h \
4271 src/bootchart/store.c \
4272 src/bootchart/store.h \
4273 src/bootchart/svg.c \
4276 systemd_bootchart_LDADD = \
4277 libsystemd-journal-internal.la \
4278 libsystemd-shared.la
4280 rootlibexec_PROGRAMS += \
4283 dist_pkgsysconf_DATA += \
4284 src/bootchart/bootchart.conf
4287 # ------------------------------------------------------------------------------
4288 if ENABLE_QUOTACHECK
4289 rootlibexec_PROGRAMS += \
4292 nodist_systemunit_DATA += \
4293 units/systemd-quotacheck.service
4295 systemd_quotacheck_SOURCES = \
4296 src/quotacheck/quotacheck.c
4298 systemd_quotacheck_LDADD = \
4299 libsystemd-shared.la
4303 units/systemd-quotacheck.service.in
4305 nodist_systemunit_DATA += \
4306 units/quotaon.service
4308 # ------------------------------------------------------------------------------
4309 if ENABLE_RANDOMSEED
4310 rootlibexec_PROGRAMS += \
4313 nodist_systemunit_DATA += \
4314 units/systemd-random-seed.service
4316 systemd_random_seed_SOURCES = \
4317 src/random-seed/random-seed.c
4319 systemd_random_seed_LDADD = \
4320 libsystemd-label.la \
4321 libsystemd-shared.la
4323 SYSINIT_TARGET_WANTS += \
4324 systemd-random-seed.service
4329 units/systemd-random-seed.service.in
4331 # ------------------------------------------------------------------------------
4333 rootlibexec_PROGRAMS += \
4336 nodist_systemunit_DATA += \
4337 units/systemd-backlight@.service
4339 systemd_backlight_SOURCES = \
4340 src/backlight/backlight.c
4342 systemd_backlight_LDADD = \
4343 libsystemd-label.la \
4344 libudev-internal.la \
4345 libsystemd-shared.la
4349 units/systemd-backlight@.service.in
4351 # ------------------------------------------------------------------------------
4353 rootlibexec_PROGRAMS += \
4356 nodist_systemunit_DATA += \
4357 units/systemd-rfkill@.service
4359 systemd_rfkill_SOURCES = \
4362 systemd_rfkill_LDADD = \
4363 libsystemd-label.la \
4364 libudev-internal.la \
4365 libsystemd-shared.la
4369 units/systemd-rfkill@.service.in
4371 # ------------------------------------------------------------------------------
4372 if HAVE_LIBCRYPTSETUP
4373 rootlibexec_PROGRAMS += \
4376 systemgenerator_PROGRAMS += \
4377 systemd-cryptsetup-generator
4379 dist_systemunit_DATA += \
4380 units/cryptsetup.target \
4381 units/cryptsetup-pre.target
4383 systemd_cryptsetup_SOURCES = \
4384 src/cryptsetup/cryptsetup.c
4386 systemd_cryptsetup_CFLAGS = \
4388 $(LIBCRYPTSETUP_CFLAGS)
4390 systemd_cryptsetup_LDADD = \
4391 libsystemd-label.la \
4392 libudev-internal.la \
4393 libsystemd-shared.la \
4394 $(LIBCRYPTSETUP_LIBS)
4396 systemd_cryptsetup_generator_SOURCES = \
4397 src/cryptsetup/cryptsetup-generator.c
4399 systemd_cryptsetup_generator_LDADD = \
4400 libsystemd-label.la \
4401 libsystemd-shared.la
4403 SYSINIT_TARGET_WANTS += \
4408 # ------------------------------------------------------------------------------
4410 systemd_hostnamed_SOURCES = \
4411 src/hostname/hostnamed.c
4413 systemd_hostnamed_LDADD = \
4414 libsystemd-label.la \
4415 libsystemd-internal.la \
4416 libsystemd-shared.la
4418 rootlibexec_PROGRAMS += \
4421 nodist_systemunit_DATA += \
4422 units/systemd-hostnamed.service
4424 dist_systemunit_DATA += \
4425 units/org.freedesktop.hostname1.busname
4427 dist_dbuspolicy_DATA += \
4428 src/hostname/org.freedesktop.hostname1.conf
4430 dist_dbussystemservice_DATA += \
4431 src/hostname/org.freedesktop.hostname1.service
4433 polkitpolicy_files += \
4434 src/hostname/org.freedesktop.hostname1.policy
4436 SYSTEM_UNIT_ALIASES += \
4437 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4439 BUSNAMES_TARGET_WANTS += \
4440 org.freedesktop.hostname1.busname
4442 hostnamectl_SOURCES = \
4443 src/hostname/hostnamectl.c
4445 hostnamectl_LDADD = \
4446 libsystemd-internal.la \
4447 libsystemd-shared.la
4452 dist_bashcompletion_DATA += \
4453 shell-completion/bash/hostnamectl
4455 dist_zshcompletion_DATA += \
4456 shell-completion/zsh/_hostnamectl
4460 polkitpolicy_in_files += \
4461 src/hostname/org.freedesktop.hostname1.policy.in
4464 units/systemd-hostnamed.service.in
4466 # ------------------------------------------------------------------------------
4468 dist_systemunit_DATA += \
4469 units/org.freedesktop.systemd1.busname
4471 BUSNAMES_TARGET_WANTS += \
4472 org.freedesktop.systemd1.busname
4475 # ------------------------------------------------------------------------------
4477 systemd_localed_SOURCES = \
4478 src/locale/localed.c
4480 systemd_localed_LDADD = \
4481 libsystemd-label.la \
4482 libsystemd-internal.la \
4483 libsystemd-shared.la
4485 nodist_systemunit_DATA += \
4486 units/systemd-localed.service
4488 dist_systemunit_DATA += \
4489 units/org.freedesktop.locale1.busname
4491 rootlibexec_PROGRAMS += \
4494 dist_dbuspolicy_DATA += \
4495 src/locale/org.freedesktop.locale1.conf
4497 dist_dbussystemservice_DATA += \
4498 src/locale/org.freedesktop.locale1.service
4500 polkitpolicy_files += \
4501 src/locale/org.freedesktop.locale1.policy
4503 SYSTEM_UNIT_ALIASES += \
4504 systemd-localed.service dbus-org.freedesktop.locale1.service
4506 BUSNAMES_TARGET_WANTS += \
4507 org.freedesktop.locale1.busname
4509 dist_pkgdata_DATA += \
4510 src/locale/kbd-model-map
4512 dist_noinst_SCRIPT = \
4513 src/locale/generate-kbd-model-map
4515 localectl_SOURCES = \
4516 src/locale/localectl.c
4519 libsystemd-internal.la \
4520 libsystemd-shared.la
4525 dist_bashcompletion_DATA += \
4526 shell-completion/bash/localectl
4528 dist_zshcompletion_DATA += \
4529 shell-completion/zsh/_localectl
4533 .PHONY: update-kbd-model-map
4535 polkitpolicy_in_files += \
4536 src/locale/org.freedesktop.locale1.policy.in
4539 units/systemd-localed.service.in
4541 # ------------------------------------------------------------------------------
4543 systemd_timedated_SOURCES = \
4544 src/timedate/timedated.c
4546 systemd_timedated_LDADD = \
4547 libsystemd-label.la \
4548 libsystemd-internal.la \
4549 libsystemd-shared.la
4551 rootlibexec_PROGRAMS += \
4554 dist_dbussystemservice_DATA += \
4555 src/timedate/org.freedesktop.timedate1.service
4557 dist_dbuspolicy_DATA += \
4558 src/timedate/org.freedesktop.timedate1.conf
4560 nodist_systemunit_DATA += \
4561 units/systemd-timedated.service
4563 dist_systemunit_DATA += \
4564 units/org.freedesktop.timedate1.busname
4566 polkitpolicy_files += \
4567 src/timedate/org.freedesktop.timedate1.policy
4569 SYSTEM_UNIT_ALIASES += \
4570 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4572 BUSNAMES_TARGET_WANTS += \
4573 org.freedesktop.timedate1.busname
4575 timedatectl_SOURCES = \
4576 src/timedate/timedatectl.c
4578 timedatectl_LDADD = \
4579 libsystemd-internal.la \
4580 libsystemd-shared.la
4585 dist_bashcompletion_DATA += \
4586 shell-completion/bash/timedatectl
4588 dist_zshcompletion_DATA += \
4589 shell-completion/zsh/_timedatectl
4592 polkitpolicy_in_files += \
4593 src/timedate/org.freedesktop.timedate1.policy.in
4596 units/systemd-timedated.service.in
4598 # ------------------------------------------------------------------------------
4600 systemd_timesyncd_SOURCES = \
4601 src/timesync/timesyncd.c \
4602 src/timesync/timesyncd-manager.c \
4603 src/timesync/timesyncd-manager.h \
4604 src/timesync/timesyncd-conf.c \
4605 src/timesync/timesyncd-conf.h \
4606 src/timesync/timesyncd-server.c \
4607 src/timesync/timesyncd-server.h
4609 nodist_systemd_timesyncd_SOURCES = \
4610 src/timesync/timesyncd-gperf.c
4613 src/timesync/timesyncd-gperf.gperf
4616 src/timesync/timesyncd-gperf.c
4618 systemd_timesyncd_LDADD = \
4619 libsystemd-resolve.la \
4620 libsystemd-network.la \
4621 libsystemd-label.la \
4622 libsystemd-capability.la \
4623 libsystemd-internal.la \
4624 libsystemd-shared.la \
4627 rootlibexec_PROGRAMS += \
4630 nodist_systemunit_DATA += \
4631 units/systemd-timesyncd.service
4633 GENERAL_ALIASES += \
4634 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
4637 units/systemd-timesyncd.service.in
4639 nodist_pkgsysconf_DATA += \
4640 src/timesync/timesyncd.conf
4643 src/timesync/timesyncd.conf.in
4646 src/timesync/timesyncd.conf
4649 # ------------------------------------------------------------------------------
4651 libnss_myhostname_la_SOURCES = \
4652 src/nss-myhostname/nss-myhostname.sym \
4653 src/nss-myhostname/nss-myhostname.c
4655 libnss_myhostname_la_LDFLAGS = \
4662 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
4664 libnss_myhostname_la_LIBADD = \
4665 libsystemd-shared.la \
4666 libsystemd-internal.la
4668 lib_LTLIBRARIES += \
4669 libnss_myhostname.la
4672 # ------------------------------------------------------------------------------
4674 systemd_machined_SOURCES = \
4675 src/machine/machined.c \
4676 src/machine/machined.h
4678 systemd_machined_LDADD = \
4679 libsystemd-machine-core.la
4681 rootlibexec_PROGRAMS += \
4684 libsystemd_machine_core_la_SOURCES = \
4685 src/machine/machined-dbus.c \
4686 src/machine/machine.c \
4687 src/machine/machine.h \
4688 src/machine/machine-dbus.c
4690 libsystemd_machine_core_la_LIBADD = \
4691 libsystemd-label.la \
4692 libsystemd-internal.la \
4693 libudev-internal.la \
4694 libsystemd-shared.la
4696 noinst_LTLIBRARIES += \
4697 libsystemd-machine-core.la
4699 machinectl_SOURCES = \
4700 src/machine/machinectl.c
4702 machinectl_LDADD = \
4703 libsystemd-internal.la \
4704 libsystemd-shared.la
4706 rootbin_PROGRAMS += \
4709 dist_bashcompletion_DATA += \
4710 shell-completion/bash/machinectl
4712 test_machine_tables_SOURCES = \
4713 src/machine/test-machine-tables.c
4715 test_machine_tables_LDADD = \
4716 libsystemd-machine-core.la
4721 nodist_systemunit_DATA += \
4722 units/systemd-machined.service
4724 dist_systemunit_DATA += \
4725 units/machine.slice \
4726 units/org.freedesktop.machine1.busname
4728 dist_dbussystemservice_DATA += \
4729 src/machine/org.freedesktop.machine1.service
4731 dist_dbuspolicy_DATA += \
4732 src/machine/org.freedesktop.machine1.conf
4734 dist_zshcompletion_DATA += \
4735 shell-completion/zsh/_machinectl \
4736 shell-completion/zsh/_sd_machines
4738 SYSTEM_UNIT_ALIASES += \
4739 systemd-machined.service dbus-org.freedesktop.machine1.service
4741 BUSNAMES_TARGET_WANTS += \
4742 org.freedesktop.machine1.busname
4745 units/systemd-machined.service.in
4747 libnss_mymachines_la_SOURCES = \
4748 src/nss-mymachines/nss-mymachines.sym \
4749 src/nss-mymachines/nss-mymachines.c
4751 libnss_mymachines_la_LDFLAGS = \
4758 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
4760 libnss_mymachines_la_LIBADD = \
4761 libsystemd-shared.la \
4762 libsystemd-internal.la
4764 lib_LTLIBRARIES += \
4765 libnss_mymachines.la
4768 # ------------------------------------------------------------------------------
4770 systemd_resolved_SOURCES = \
4771 src/resolve/resolved.c \
4772 src/resolve/resolved-manager.c \
4773 src/resolve/resolved-manager.h \
4774 src/resolve/resolved-conf.c \
4775 src/resolve/resolved-conf.h \
4776 src/resolve/resolved-bus.c \
4777 src/resolve/resolved-bus.h \
4778 src/resolve/resolved-link.h \
4779 src/resolve/resolved-link.c \
4780 src/resolve/resolved-def.h \
4781 src/resolve/resolved-dns-domain.h \
4782 src/resolve/resolved-dns-domain.c \
4783 src/resolve/resolved-dns-rr.h \
4784 src/resolve/resolved-dns-rr.c \
4785 src/resolve/resolved-dns-question.h \
4786 src/resolve/resolved-dns-question.c \
4787 src/resolve/resolved-dns-answer.h \
4788 src/resolve/resolved-dns-answer.c \
4789 src/resolve/resolved-dns-packet.h \
4790 src/resolve/resolved-dns-packet.c \
4791 src/resolve/resolved-dns-query.h \
4792 src/resolve/resolved-dns-query.c \
4793 src/resolve/resolved-dns-transaction.h \
4794 src/resolve/resolved-dns-transaction.c \
4795 src/resolve/resolved-dns-scope.h \
4796 src/resolve/resolved-dns-scope.c \
4797 src/resolve/resolved-dns-server.h \
4798 src/resolve/resolved-dns-server.c \
4799 src/resolve/resolved-dns-cache.h \
4800 src/resolve/resolved-dns-cache.c \
4801 src/resolve/resolved-dns-zone.h \
4802 src/resolve/resolved-dns-zone.c \
4803 src/resolve/resolved-dns-stream.h \
4804 src/resolve/resolved-dns-stream.c \
4805 src/resolve/dns-type.c \
4806 src/resolve/dns-type.h \
4807 src/resolve/dns_type-from-name.h \
4808 src/resolve/dns_type-to-name.h
4810 nodist_systemd_resolved_SOURCES = \
4811 src/resolve/resolved-gperf.c
4814 src/resolve/resolved-gperf.gperf \
4815 src/resolve/dns_type-from-name.gperf
4818 src/resolve/resolved-gperf.c
4820 systemd_resolved_LDADD = \
4821 libsystemd-capability.la \
4822 libsystemd-network.la \
4823 libsystemd-label.la \
4824 libsystemd-internal.la \
4825 libsystemd-shared.la \
4829 rootlibexec_PROGRAMS += \
4832 nodist_systemunit_DATA += \
4833 units/systemd-resolved.service
4835 dist_systemunit_DATA += \
4836 units/org.freedesktop.resolve1.busname
4838 dist_dbuspolicy_DATA += \
4839 src/resolve/org.freedesktop.resolve1.conf
4841 dist_dbussystemservice_DATA += \
4842 src/resolve/org.freedesktop.resolve1.service
4845 units/systemd-resolved.service.in
4847 SYSTEM_UNIT_ALIASES += \
4848 systemd-resolved.service dbus-org.freedesktop.resolve1.service
4850 BUSNAMES_TARGET_WANTS += \
4851 org.freedesktop.resolve1.busname
4853 GENERAL_ALIASES += \
4854 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
4856 nodist_pkgsysconf_DATA += \
4857 src/resolve/resolved.conf
4860 src/resolve/resolved.conf.in
4863 src/resolve/resolved.conf
4868 test_dns_domain_SOURCES = \
4869 src/resolve/resolved-dns-domain.h \
4870 src/resolve/resolved-dns-domain.c \
4871 src/resolve/test-dns-domain.c
4873 test_dns_domain_LDADD = \
4874 libsystemd-capability.la \
4875 libsystemd-network.la \
4876 libsystemd-label.la \
4877 libsystemd-internal.la \
4878 libsystemd-shared.la \
4881 libnss_resolve_la_SOURCES = \
4882 src/nss-resolve/nss-resolve.sym \
4883 src/nss-resolve/nss-resolve.c
4885 libnss_resolve_la_LDFLAGS = \
4892 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
4894 libnss_resolve_la_LIBADD = \
4895 libsystemd-shared.la \
4896 libsystemd-internal.la
4898 lib_LTLIBRARIES += \
4901 systemd_resolve_host_SOURCES = \
4902 src/resolve-host/resolve-host.c \
4903 src/resolve/resolved-dns-packet.c \
4904 src/resolve/resolved-dns-packet.h \
4905 src/resolve/resolved-dns-rr.c \
4906 src/resolve/resolved-dns-rr.h \
4907 src/resolve/resolved-dns-answer.c \
4908 src/resolve/resolved-dns-answer.h \
4909 src/resolve/resolved-dns-question.c \
4910 src/resolve/resolved-dns-question.h \
4911 src/resolve/resolved-dns-domain.c \
4912 src/resolve/resolved-dns-domain.h \
4913 src/resolve/dns-type.c \
4914 src/resolve/dns-type.h \
4915 src/resolve/dns_type-from-name.h \
4916 src/resolve/dns_type-to-name.h
4918 systemd_resolve_host_LDADD = \
4919 libsystemd-internal.la \
4920 libsystemd-shared.la \
4924 rootlibexec_PROGRAMS += \
4925 systemd-resolve-host
4929 # ------------------------------------------------------------------------------
4931 rootlibexec_PROGRAMS += \
4934 systemd_networkd_SOURCES = \
4935 src/network/networkd.c
4937 systemd_networkd_LDADD = \
4938 libsystemd-networkd-core.la \
4939 libsystemd-capability.la
4941 noinst_LTLIBRARIES += \
4942 libsystemd-networkd-core.la
4944 libsystemd_networkd_core_la_CFLAGS = \
4947 libsystemd_networkd_core_la_SOURCES = \
4948 src/libsystemd-network/network-internal.h \
4949 src/network/networkd.h \
4950 src/network/networkd-link.h \
4951 src/network/networkd-netdev.h \
4952 src/network/networkd-netdev-tunnel.h \
4953 src/network/networkd-netdev-veth.h \
4954 src/network/networkd-netdev-vxlan.h \
4955 src/network/networkd-netdev-vlan.h \
4956 src/network/networkd-netdev-macvlan.h \
4957 src/network/networkd-netdev-dummy.h \
4958 src/network/networkd-netdev-tuntap.h \
4959 src/network/networkd-netdev-bond.h \
4960 src/network/networkd-netdev-bridge.h \
4961 src/network/networkd-netdev.c \
4962 src/network/networkd-netdev-tunnel.c \
4963 src/network/networkd-netdev-veth.c \
4964 src/network/networkd-netdev-vxlan.c \
4965 src/network/networkd-netdev-vlan.c \
4966 src/network/networkd-netdev-macvlan.c \
4967 src/network/networkd-netdev-dummy.c \
4968 src/network/networkd-netdev-tuntap.c \
4969 src/network/networkd-netdev-bond.c \
4970 src/network/networkd-netdev-bridge.c \
4971 src/network/networkd-link.c \
4972 src/network/networkd-ipv4ll.c \
4973 src/network/networkd-dhcp4.c \
4974 src/network/networkd-network.c \
4975 src/network/networkd-address.c \
4976 src/network/networkd-route.c \
4977 src/network/networkd-manager.c \
4978 src/network/networkd-address-pool.c
4980 nodist_libsystemd_networkd_core_la_SOURCES = \
4981 src/network/networkd-network-gperf.c \
4982 src/network/networkd-netdev-gperf.c
4984 libsystemd_networkd_core_la_LIBADD = \
4985 libudev-internal.la \
4986 libsystemd-internal.la \
4987 libsystemd-network.la \
4988 libsystemd-label.la \
4989 libsystemd-shared.la
4991 rootlibexec_PROGRAMS += \
4992 systemd-networkd-wait-online
4994 systemd_networkd_wait_online_CFLAGS = \
4997 systemd_networkd_wait_online_SOURCES = \
4998 src/libsystemd-network/network-internal.h \
4999 src/network/networkd-wait-online.h \
5000 src/network/networkd-wait-online-link.h \
5001 src/network/networkd-wait-online.c \
5002 src/network/networkd-wait-online-manager.c \
5003 src/network/networkd-wait-online-link.c
5005 systemd_networkd_wait_online_LDADD = \
5006 libsystemd-network.la \
5007 libudev-internal.la \
5008 libsystemd-internal.la \
5009 libsystemd-shared.la
5011 rootbin_PROGRAMS += \
5014 networkctl_SOURCES = \
5015 src/network/networkctl.c
5017 networkctl_LDADD = \
5018 libsystemd-internal.la \
5019 libudev-internal.la \
5020 libsystemd-shared.la \
5021 libsystemd-network.la
5023 test_network_SOURCES = \
5024 src/network/test-network.c
5026 test_network_CFLAGS = \
5029 test_network_LDADD = \
5030 libsystemd-networkd-core.la
5032 test_network_tables_SOURCES = \
5033 src/network/test-network-tables.c \
5034 src/shared/test-tables.h
5036 test_network_tables_LDADD = \
5037 libsystemd-networkd-core.la \
5044 nodist_systemunit_DATA += \
5045 units/systemd-networkd.service \
5046 units/systemd-networkd-wait-online.service
5048 GENERAL_ALIASES += \
5049 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5050 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5053 src/network/networkd-network-gperf.gperf \
5054 src/network/networkd-netdev-gperf.gperf \
5055 units/systemd-networkd.service.in \
5056 units/systemd-networkd-wait-online.service.in
5059 src/network/networkd-network-gperf.c \
5060 src/network/networkd-netdev-gperf.c
5063 # ------------------------------------------------------------------------------
5065 systemd_logind_SOURCES = \
5066 src/login/logind.c \
5069 nodist_systemd_logind_SOURCES = \
5070 src/login/logind-gperf.c
5072 systemd_logind_LDADD = \
5073 libsystemd-logind-core.la
5075 libsystemd_logind_core_la_SOURCES = \
5076 src/login/logind-core.c \
5077 src/login/logind-device.c \
5078 src/login/logind-device.h \
5079 src/login/logind-button.c \
5080 src/login/logind-button.h \
5081 src/login/logind-action.c \
5082 src/login/logind-action.h \
5083 src/login/logind-seat.c \
5084 src/login/logind-seat.h \
5085 src/login/logind-session.c \
5086 src/login/logind-session.h \
5087 src/login/logind-session-device.c \
5088 src/login/logind-session-device.h \
5089 src/login/logind-user.c \
5090 src/login/logind-user.h \
5091 src/login/logind-inhibit.c \
5092 src/login/logind-inhibit.h \
5093 src/login/logind-dbus.c \
5094 src/login/logind-session-dbus.c \
5095 src/login/logind-seat-dbus.c \
5096 src/login/logind-user-dbus.c \
5097 src/login/logind-acl.h
5099 libsystemd_logind_core_la_LIBADD = \
5100 libsystemd-label.la \
5101 libsystemd-capability.la \
5102 libsystemd-internal.la \
5103 libudev-internal.la \
5104 libsystemd-shared.la
5107 libsystemd_logind_core_la_SOURCES += \
5108 src/login/logind-acl.c
5110 libsystemd_logind_core_la_LIBADD += \
5114 noinst_LTLIBRARIES += \
5115 libsystemd-logind-core.la
5117 systemd_user_sessions_SOURCES = \
5118 src/login/user-sessions.c
5120 systemd_user_sessions_LDADD = \
5121 libsystemd-shared.la
5123 rootlibexec_PROGRAMS += \
5125 systemd-user-sessions
5127 loginctl_SOURCES = \
5128 src/login/loginctl.c \
5129 src/login/sysfs-show.c
5132 libsystemd-internal.la \
5133 libudev-internal.la \
5134 libsystemd-shared.la
5136 rootbin_PROGRAMS += \
5139 dist_bashcompletion_DATA += \
5140 shell-completion/bash/loginctl
5142 dist_zshcompletion_DATA += \
5143 shell-completion/zsh/_loginctl \
5144 shell-completion/zsh/_systemd-inhibit
5146 systemd_inhibit_SOURCES = \
5149 systemd_inhibit_LDADD = \
5150 libsystemd-internal.la \
5151 libsystemd-shared.la
5153 rootbin_PROGRAMS += \
5156 test_login_SOURCES = \
5157 src/libsystemd/sd-login/test-login.c
5159 test_login_LDADD = \
5160 libsystemd-internal.la \
5161 libsystemd-shared.la
5163 test_login_shared_SOURCES = \
5164 src/login/test-login-shared.c
5166 test_login_shared_LDADD = \
5167 libsystemd-internal.la \
5168 libsystemd-shared.la
5170 test_inhibit_SOURCES = \
5171 src/login/test-inhibit.c
5173 test_inhibit_LDADD = \
5174 libsystemd-internal.la \
5175 libsystemd-shared.la
5177 test_login_tables_SOURCES = \
5178 src/login/test-login-tables.c
5180 test_login_tables_LDADD = \
5181 libsystemd-logind-core.la
5192 pam_systemd_la_SOURCES = \
5193 src/login/pam_systemd.sym \
5194 src/login/pam_systemd.c
5196 pam_systemd_la_CFLAGS = \
5201 pam_systemd_la_LDFLAGS = \
5207 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5209 pam_systemd_la_LIBADD = \
5210 libsystemd-capability.la \
5211 libsystemd-internal.la \
5212 libsystemd-shared.la \
5215 pamlib_LTLIBRARIES = \
5218 dist_pamconf_DATA = \
5219 src/login/systemd-user
5222 nodist_systemunit_DATA += \
5223 units/systemd-logind.service \
5224 units/systemd-user-sessions.service
5226 dist_systemunit_DATA += \
5228 units/org.freedesktop.login1.busname
5230 dist_dbussystemservice_DATA += \
5231 src/login/org.freedesktop.login1.service
5233 dist_dbuspolicy_DATA += \
5234 src/login/org.freedesktop.login1.conf
5236 dist_pkgsysconf_DATA += \
5237 src/login/logind.conf
5239 polkitpolicy_files += \
5240 src/login/org.freedesktop.login1.policy
5245 MULTI_USER_TARGET_WANTS += \
5246 systemd-logind.service \
5247 systemd-user-sessions.service
5249 SYSTEM_UNIT_ALIASES += \
5250 systemd-logind.service dbus-org.freedesktop.login1.service
5252 BUSNAMES_TARGET_WANTS += \
5253 org.freedesktop.login1.busname
5255 if ENABLE_MULTI_SEAT_X
5257 systemd_multi_seat_x_SOURCES = \
5258 src/login/multi-seat-x.c
5260 systemd_multi_seat_x_LDADD = \
5261 libsystemd-label.la \
5262 libsystemd-shared.la
5264 rootlibexec_PROGRAMS += \
5265 systemd-multi-seat-x
5269 dist_udevrules_DATA += \
5270 src/login/70-uaccess.rules \
5271 src/login/70-power-switch.rules
5273 nodist_udevrules_DATA += \
5274 src/login/71-seat.rules \
5275 src/login/73-seat-late.rules
5278 src/login/logind-gperf.c \
5279 src/login/71-seat.rules \
5280 src/login/73-seat-late.rules
5283 polkitpolicy_in_files += \
5284 src/login/org.freedesktop.login1.policy.in
5287 src/login/logind-gperf.gperf \
5288 src/login/71-seat.rules.in \
5289 src/login/73-seat-late.rules.in \
5290 units/systemd-logind.service.in \
5291 units/systemd-user-sessions.service.in
5293 # ------------------------------------------------------------------------------
5294 if HAVE_PYTHON_DEVEL
5295 pkgpyexec_LTLIBRARIES = \
5302 _journal_la_SOURCES = \
5303 src/python-systemd/_journal.c
5305 _journal_la_CFLAGS = \
5307 -fvisibility=default \
5308 $(PYTHON_DEVEL_CFLAGS)
5310 _journal_la_LDFLAGS = \
5316 _journal_la_LIBADD = \
5317 $(PYTHON_DEVEL_LIBS) \
5320 id128_la_SOURCES = \
5321 src/python-systemd/id128.c \
5322 src/python-systemd/pyutil.c \
5323 src/python-systemd/pyutil.h
5325 nodist_id128_la_SOURCES = \
5326 src/python-systemd/id128-constants.h
5330 -fvisibility=default \
5331 $(PYTHON_DEVEL_CFLAGS) \
5332 -I$(top_builddir)/src/python-systemd
5334 id128_la_LDFLAGS = \
5341 $(PYTHON_DEVEL_LIBS) \
5342 libsystemd-shared.la \
5345 _daemon_la_SOURCES = \
5346 src/python-systemd/_daemon.c \
5347 src/python-systemd/pyutil.c \
5348 src/python-systemd/pyutil.h
5350 _daemon_la_CFLAGS = \
5352 -fvisibility=default \
5353 $(PYTHON_DEVEL_CFLAGS) \
5354 -I$(top_builddir)/src/python-systemd
5356 _daemon_la_LDFLAGS = \
5362 _daemon_la_LIBADD = \
5363 $(PYTHON_DEVEL_LIBS) \
5364 libsystemd-shared.la \
5367 _reader_la_SOURCES = \
5368 src/python-systemd/_reader.c \
5369 src/python-systemd/pyutil.c \
5370 src/python-systemd/pyutil.h
5372 _reader_la_CFLAGS = \
5374 -fvisibility=default \
5375 $(PYTHON_DEVEL_CFLAGS)
5377 _reader_la_LDFLAGS = \
5383 _reader_la_LIBADD = \
5384 $(PYTHON_DEVEL_LIBS) \
5385 libsystemd-shared.la \
5388 login_la_SOURCES = \
5389 src/python-systemd/login.c \
5390 src/python-systemd/pyutil.c \
5391 src/python-systemd/pyutil.h
5395 -fvisibility=default \
5396 $(PYTHON_DEVEL_CFLAGS)
5398 login_la_LDFLAGS = \
5405 $(PYTHON_DEVEL_LIBS) \
5406 libsystemd-shared.la \
5409 dist_pkgpyexec_PYTHON = \
5410 src/python-systemd/journal.py \
5411 src/python-systemd/daemon.py \
5412 src/python-systemd/__init__.py
5414 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
5415 $(AM_V_at)$(MKDIR_P) $(dir $@)
5416 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
5419 src/python-systemd/id128-constants.h
5421 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
5423 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
5424 $(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/
5425 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
5428 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
5429 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
5432 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
5433 $(MAKE) DESTDIR="$$dir" install && \
5434 $(MAKE) DESTDIR="$$dir" sphinx-html && \
5439 CLEAN_LOCAL_HOOKS += clean-sphinx
5441 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
5444 -rm -rf docs/html/python-systemd/
5446 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
5448 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
5449 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
5451 # ------------------------------------------------------------------------------
5452 if ENABLE_COMPAT_LIBS
5454 src/compat-libs/linkwarning.h
5456 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
5457 $(AM_V_at)$(MKDIR_P) $(dir $@)
5458 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
5461 libsystemd-journal.c \
5462 libsystemd-login.c \
5463 libsystemd-id128.c \
5466 libsystemd_journal_la_SOURCES = \
5467 libsystemd-journal.c \
5468 src/compat-libs/libsystemd-journal.sym
5470 libsystemd_journal_la_CPPFLAGS = \
5472 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5474 libsystemd_journal_la_LDFLAGS = \
5476 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
5477 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
5479 libsystemd_journal_la_LIBADD = \
5480 libsystemd-journal-internal.la \
5481 libsystemd-internal.la \
5482 libsystemd-shared.la
5484 libsystemd_login_la_SOURCES = \
5485 libsystemd-login.c \
5486 src/compat-libs/libsystemd-login.sym
5488 libsystemd_login_la_CPPFLAGS = \
5490 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5492 libsystemd_login_la_LDFLAGS = \
5494 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
5495 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
5497 libsystemd_login_la_LIBADD = \
5498 libsystemd-internal.la \
5499 libsystemd-shared.la
5501 libsystemd_id128_la_SOURCES = \
5502 libsystemd-id128.c \
5503 src/compat-libs/libsystemd-id128.sym
5505 libsystemd_id128_la_CPPFLAGS = \
5507 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5509 libsystemd_id128_la_LDFLAGS = \
5511 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
5512 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
5514 libsystemd_id128_la_LIBADD = \
5515 libsystemd-internal.la \
5516 libsystemd-shared.la
5518 libsystemd_daemon_la_SOURCES = \
5519 libsystemd-daemon.c \
5520 src/compat-libs/libsystemd-daemon.sym
5522 libsystemd_daemon_la_CPPFLAGS = \
5524 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5526 libsystemd_daemon_la_LDFLAGS = \
5528 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
5529 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
5531 libsystemd_daemon_la_LIBADD = \
5532 libsystemd-internal.la \
5533 libsystemd-shared.la
5535 lib_LTLIBRARIES += \
5536 libsystemd-journal.la \
5537 libsystemd-login.la \
5538 libsystemd-id128.la \
5539 libsystemd-daemon.la
5541 pkgconfiglib_DATA += \
5542 src/compat-libs/libsystemd-journal.pc \
5543 src/compat-libs/libsystemd-login.pc \
5544 src/compat-libs/libsystemd-id128.pc \
5545 src/compat-libs/libsystemd-daemon.pc
5547 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
5548 compat-lib-install-hook:
5549 libname=libsystemd-login.so && $(move-to-rootlibdir)
5550 libname=libsystemd-journal.so && $(move-to-rootlibdir)
5551 libname=libsystemd-id128.so && $(move-to-rootlibdir)
5552 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
5554 compat-lib-uninstall-hook:
5555 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
5556 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
5557 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
5558 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
5560 INSTALL_EXEC_HOOKS += compat-lib-install-hook
5561 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
5565 src/compat-libs/libsystemd-journal.pc.in \
5566 src/compat-libs/libsystemd-login.pc.in \
5567 src/compat-libs/libsystemd-id128.pc.in \
5568 src/compat-libs/libsystemd-daemon.pc.in
5570 # ------------------------------------------------------------------------------
5572 '|rootlibexecdir=$(rootlibexecdir)|' \
5573 '|rootbindir=$(rootbindir)|' \
5574 '|bindir=$(bindir)|' \
5575 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5576 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5577 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5578 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5579 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
5580 '|pkgdatadir=$(pkgdatadir)|' \
5581 '|systemunitdir=$(systemunitdir)|' \
5582 '|userunitdir=$(userunitdir)|' \
5583 '|systempresetdir=$(systempresetdir)|' \
5584 '|userpresetdir=$(userpresetdir)|' \
5585 '|udevhwdbdir=$(udevhwdbdir)|' \
5586 '|udevrulesdir=$(udevrulesdir)|' \
5587 '|catalogdir=$(catalogdir)|' \
5588 '|tmpfilesdir=$(tmpfilesdir)|' \
5589 '|sysusersdir=$(sysusersdir)|' \
5590 '|sysctldir=$(sysctldir)|' \
5591 '|systemgeneratordir=$(systemgeneratordir)|' \
5592 '|usergeneratordir=$(usergeneratordir)|' \
5593 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
5594 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
5595 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
5596 '|PACKAGE_URL=$(PACKAGE_URL)|' \
5597 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
5598 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
5599 '|prefix=$(prefix)|' \
5600 '|exec_prefix=$(exec_prefix)|' \
5601 '|libdir=$(libdir)|' \
5602 '|includedir=$(includedir)|' \
5603 '|VERSION=$(VERSION)|' \
5604 '|rootprefix=$(rootprefix)|' \
5605 '|udevlibexecdir=$(udevlibexecdir)|' \
5606 '|SUSHELL=$(SUSHELL)|' \
5607 '|DEBUGTTY=$(DEBUGTTY)|' \
5610 '|MKDIR_P=$(MKDIR_P)|' \
5611 '|QUOTAON=$(QUOTAON)|' \
5612 '|QUOTACHECK=$(QUOTACHECK)|' \
5613 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
5614 '|VARLOGDIR=$(varlogdir)|' \
5615 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
5616 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
5617 '|PYTHON=$(PYTHON)|' \
5618 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
5619 '|NTP_SERVERS=$(NTP_SERVERS)|' \
5620 '|DNS_SERVERS=$(DNS_SERVERS)|' \
5621 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
5622 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
5623 '|TTY_GID=$(TTY_GID)|' \
5624 '|systemsleepdir=$(systemsleepdir)|' \
5625 '|systemshutdowndir=$(systemshutdowndir)|' \
5626 '|binfmtdir=$(binfmtdir)|' \
5627 '|modulesloaddir=$(modulesloaddir)|'
5630 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
5631 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
5640 sysctl.d/%: sysctl.d/%.in
5649 src/core/macros.%: src/core/macros.%.in
5652 src/%.policy.in: src/%.policy.in.in
5655 shell-completion/%: shell-completion/%.in
5666 $(AM_V_GEN)chmod +x $@
5668 src/%.c: src/%.gperf
5669 $(AM_V_at)$(MKDIR_P) $(dir $@)
5670 $(AM_V_GPERF)$(GPERF) < $< > $@
5673 $(AM_V_at)$(MKDIR_P) $(dir $@)
5674 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5677 $(AM_V_at)$(MKDIR_P) $(dir $@)
5678 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
5680 units/user/%: units/%.m4
5681 $(AM_V_at)$(MKDIR_P) $(dir $@)
5682 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
5685 nodist_polkitpolicy_DATA = \
5686 $(polkitpolicy_files) \
5687 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
5691 $(polkitpolicy_in_files) \
5692 $(polkitpolicy_in_in_files)
5695 $(nodist_systemunit_DATA) \
5696 $(nodist_userunit_DATA) \
5697 $(pkgconfigdata_DATA) \
5698 $(pkgconfiglib_DATA) \
5699 $(nodist_polkitpolicy_DATA)
5701 # ------------------------------------------------------------------------------
5703 man/custom-entities.ent: configure.ac
5704 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
5705 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
5706 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
5710 man/custom-entities.ent
5715 --stringparam man.output.quietly 1 \
5716 --stringparam funcsynopsis.style ansi \
5717 --stringparam man.authors.section.enabled 0 \
5718 --stringparam man.copyright.section.enabled 0 \
5719 --stringparam systemd.version $(VERSION) \
5720 --path '$(builddir)/man:$(srcdir)/man'
5722 XSLTPROC_PROCESS_MAN = \
5723 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
5725 XSLTPROC_PROCESS_HTML = \
5726 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
5728 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
5729 $(XSLTPROC_PROCESS_MAN)
5731 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
5732 $(XSLTPROC_PROCESS_MAN)
5734 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
5735 $(XSLTPROC_PROCESS_MAN)
5737 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
5738 $(XSLTPROC_PROCESS_MAN)
5740 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
5741 $(XSLTPROC_PROCESS_MAN)
5743 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
5744 $(XSLTPROC_PROCESS_HTML)
5747 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
5753 man/custom-html.xsl \
5756 # ------------------------------------------------------------------------------
5759 docs/sysvinit/README
5764 docs/sysvinit/README: docs/sysvinit/README.in
5767 docs/var-log/README: docs/var-log/README.in
5771 docs/sysvinit/README \
5776 docs/sysvinit/README.in \
5777 docs/var-log/README.in
5779 SOCKETS_TARGET_WANTS += \
5780 systemd-initctl.socket \
5781 systemd-shutdownd.socket
5784 RUNLEVEL1_TARGET_WANTS += \
5785 systemd-update-utmp-runlevel.service
5786 RUNLEVEL2_TARGET_WANTS += \
5787 systemd-update-utmp-runlevel.service
5788 RUNLEVEL3_TARGET_WANTS += \
5789 systemd-update-utmp-runlevel.service
5790 RUNLEVEL4_TARGET_WANTS += \
5791 systemd-update-utmp-runlevel.service
5792 RUNLEVEL5_TARGET_WANTS += \
5793 systemd-update-utmp-runlevel.service
5796 SYSINIT_TARGET_WANTS += \
5797 systemd-update-utmp.service \
5798 systemd-update-done.service
5800 LOCAL_FS_TARGET_WANTS += \
5801 systemd-remount-fs.service \
5804 MULTI_USER_TARGET_WANTS += \
5806 systemd-ask-password-wall.path
5808 SYSINIT_TARGET_WANTS += \
5809 dev-hugepages.mount \
5811 sys-kernel-config.mount \
5812 sys-kernel-debug.mount \
5813 sys-fs-fuse-connections.mount \
5814 systemd-sysctl.service \
5815 systemd-ask-password-console.path
5818 SYSTEM_UNIT_ALIASES += \
5819 poweroff.target runlevel0.target \
5820 rescue.target runlevel1.target \
5821 multi-user.target runlevel2.target \
5822 multi-user.target runlevel3.target \
5823 multi-user.target runlevel4.target \
5824 graphical.target runlevel5.target \
5825 reboot.target runlevel6.target
5828 SYSTEM_UNIT_ALIASES += \
5829 graphical.target default.target \
5830 reboot.target ctrl-alt-del.target \
5831 getty@.service autovt@.service
5833 USER_UNIT_ALIASES += \
5834 $(systemunitdir)/shutdown.target shutdown.target \
5835 $(systemunitdir)/sockets.target sockets.target \
5836 $(systemunitdir)/busnames.target busnames.target \
5837 $(systemunitdir)/timers.target timers.target \
5838 $(systemunitdir)/paths.target paths.target \
5839 $(systemunitdir)/bluetooth.target bluetooth.target \
5840 $(systemunitdir)/printer.target printer.target \
5841 $(systemunitdir)/sound.target sound.target \
5842 $(systemunitdir)/smartcard.target smartcard.target
5844 GENERAL_ALIASES += \
5845 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
5846 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
5847 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
5848 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
5852 $(systemunitdir)/runlevel1.target.wants \
5853 $(systemunitdir)/runlevel2.target.wants \
5854 $(systemunitdir)/runlevel3.target.wants \
5855 $(systemunitdir)/runlevel4.target.wants \
5856 $(systemunitdir)/runlevel5.target.wants
5860 $(prefix)/lib/modules-load.d \
5861 $(sysconfdir)/modules-load.d \
5862 $(prefix)/lib/systemd/network \
5863 $(sysconfdir)/systemd/network \
5864 $(prefix)/lib/sysctl.d \
5865 $(sysconfdir)/sysctl.d \
5866 $(prefix)/lib/kernel/install.d \
5867 $(sysconfdir)/kernel/install.d \
5868 $(systemshutdowndir) \
5870 $(systemgeneratordir) \
5871 $(usergeneratordir) \
5874 $(pkgsysconfdir)/system \
5875 $(pkgsysconfdir)/system/multi-user.target.wants \
5876 $(pkgsysconfdir)/system/getty.target.wants \
5877 $(pkgsysconfdir)/user \
5878 $(dbussessionservicedir) \
5879 $(sysconfdir)/xdg/systemd
5881 install-exec-hook: $(INSTALL_EXEC_HOOKS)
5883 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
5885 install-data-hook: $(INSTALL_DATA_HOOKS)
5887 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
5889 clean-local: $(CLEAN_LOCAL_HOOKS)
5890 rm -rf $(abs_srcdir)/install-tree
5891 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
5892 $(abs_srcdir)/hwdb/iab.txt
5894 DISTCHECK_CONFIGURE_FLAGS = \
5895 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
5896 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
5897 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
5898 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
5899 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
5900 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
5901 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
5902 --with-rootprefix=$$dc_install_base \
5903 --disable-split-usr \
5905 --enable-compat-libs
5908 DISTCHECK_CONFIGURE_FLAGS += \
5909 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
5910 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
5912 DISTCHECK_CONFIGURE_FLAGS += \
5913 --with-sysvinit-path= \
5914 --with-sysvrcnd-path=
5918 DISTCHECK_CONFIGURE_FLAGS += \
5923 DISTCHECK_CONFIGURE_FLAGS += \
5928 # Require python when making dist
5930 .PHONY: dist-check-python
5933 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
5937 dist-check-compat-libs:
5938 if !ENABLE_COMPAT_LIBS
5939 @echo "*** compat-libs must be enabled in order to make dist"
5943 dist: dist-check-python dist-check-compat-libs
5945 # check "broken" platforms limited toolchains for link breakage before we release
5948 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
5952 ( cd $(top_srcdir)/hwdb && \
5953 wget -N http://www.linux-usb.org/usb.ids \
5954 http://pci-ids.ucw.cz/v2.2/pci.ids \
5955 http://standards.ieee.org/develop/regauth/oui/oui.txt \
5956 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
5959 .PHONY: kdbus-update
5961 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
5962 wget -N https://d-bus.googlecode.com/git/kdbus.h )
5966 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
5968 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
5970 upload: all check dist
5971 scp systemd-$(VERSION).tar.xz $(www_target)
5974 doc-sync: all destdir-sphinx
5975 gtkdoc-rebase --html-dir=docs/libudev/html --online
5976 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
5977 gtkdoc-rebase --html-dir=docs/gudev/html --online
5978 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
5979 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
5980 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
5984 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
5985 scp man/*.html tango:public/systemd-man/
5987 .PHONY: install-tree
5989 rm -rf $(abs_srcdir)/install-tree
5990 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
5991 tree $(abs_srcdir)/install-tree
5993 # Let's run all tests of the test suite, but under valgrind. Let's
5994 # exclude the one perl script we have in there
5995 .PHONY: valgrind-tests
5996 valgrind-tests: $(TESTS)
5997 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
5998 if file $$f | grep -q shell; then \
5999 echo -e "$${x}Skipping non-binary $$f"; else \
6000 echo -e "$${x}Running $$f"; \
6001 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6006 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6008 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6009 $(AM_V_GEN)cat $^ > $@
6011 .PHONY: check-api-docs
6012 check-api-docs: exported man
6013 $(AM_V_GEN)for symbol in `cat exported` ; do \
6014 if test -f $(builddir)/man/$$symbol.html ; then \
6015 echo " Symbol $$symbol() is documented." ; \
6017 echo "‣ Symbol $$symbol() lacks documentation." ; \
6021 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6022 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6024 undefined defined: $(ALL_OBJECTS)
6025 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6026 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6027 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6033 .PHONY: check-api-unused
6034 check-api-unused: defined undefined exported
6035 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6037 .PHONY: check-includes
6038 check-includes: $(top_srcdir)/tools/check-includes.pl
6039 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6040 | xargs $(top_srcdir)/tools/check-includes.pl
6043 $(top_srcdir)/tools/check-includes.pl
6045 # Stupid test that everything purported to be exported really is
6046 define generate-sym-test
6047 $(AM_V_at)$(MKDIR_P) $(dir $@)
6048 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6049 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6050 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6051 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6052 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6053 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6054 $(AM_V_at)printf 'return 0; }\n' >> $@
6057 test-libsystemd-sym.c: \
6058 $(top_builddir)/src/libsystemd/libsystemd.sym \
6059 src/systemd/sd-journal.h \
6060 src/systemd/sd-daemon.h \
6061 src/systemd/sd-login.h \
6062 src/systemd/sd-bus.h \
6063 src/systemd/sd-utf8.h \
6064 src/systemd/sd-resolve.h \
6065 src/systemd/sd-path.h
6066 $(generate-sym-test)
6068 test-libudev-sym.c: \
6069 src/libudev/libudev.sym \
6071 $(generate-sym-test)
6073 test_libsystemd_sym_SOURCES = \
6074 test-libsystemd-sym.c
6075 test_libsystemd_sym_LDADD = \
6078 test_libudev_sym_SOURCES = \
6080 test_libudev_sym_CFLAGS = \
6082 -Wno-deprecated-declarations
6083 test_libudev_sym_LDADD = \
6087 $(test_libsystemd_sym_SOURCES) \
6088 $(test_libudev_sym_SOURCES)
6091 test-libsystemd-sym \
6096 cppcheck --enable=all -q $(top_srcdir)
6098 # Used to extract compile flags for YCM.
6103 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u