1 # -*- Mode: makefile; indent-tabs-mode: t -*-
3 # This file is part of systemd.
5 # Copyright 2010-2012 Lennart Poettering
6 # Copyright 2010-2012 Kay Sievers
7 # Copyright 2013 Zbigniew Jędrzejewski-Szmek
8 # Copyright 2013 David Strauss
10 # systemd is free software; you can redistribute it and/or modify it
11 # under the terms of the GNU Lesser General Public License as published by
12 # the Free Software Foundation; either version 2.1 of the License, or
13 # (at your option) any later version.
15 # systemd is distributed in the hope that it will be useful, but
16 # WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 # Lesser General Public License for more details.
20 # You should have received a copy of the GNU Lesser General Public License
21 # along with systemd; If not, see <http://www.gnu.org/licenses/>.
23 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
24 AM_MAKEFLAGS = --no-print-directory
25 AUTOMAKE_OPTIONS = color-tests parallel-tests
27 GCC_COLORS ?= 'ooh, shiny!'
32 # remove targets if the command fails
35 # keep intermediate files
38 # Keep the test-suite.log
39 .PRECIOUS: $(TEST_SUITE_LOG) Makefile
53 # The following four libraries only exist for compatibility reasons,
54 # their version info should not be bumped anymore
55 LIBSYSTEMD_LOGIN_CURRENT=9
56 LIBSYSTEMD_LOGIN_REVISION=3
57 LIBSYSTEMD_LOGIN_AGE=9
59 LIBSYSTEMD_DAEMON_CURRENT=0
60 LIBSYSTEMD_DAEMON_REVISION=12
61 LIBSYSTEMD_DAEMON_AGE=0
63 LIBSYSTEMD_ID128_CURRENT=0
64 LIBSYSTEMD_ID128_REVISION=28
65 LIBSYSTEMD_ID128_AGE=0
67 LIBSYSTEMD_JOURNAL_CURRENT=11
68 LIBSYSTEMD_JOURNAL_REVISION=5
69 LIBSYSTEMD_JOURNAL_AGE=11
71 # Dirs of external packages
72 dbuspolicydir=@dbuspolicydir@
73 dbussessionservicedir=@dbussessionservicedir@
74 dbussystemservicedir=@dbussystemservicedir@
76 pamconfdir=@pamconfdir@
77 pkgconfigdatadir=$(datadir)/pkgconfig
78 pkgconfiglibdir=$(libdir)/pkgconfig
79 polkitpolicydir=$(datadir)/polkit-1/actions
80 bashcompletiondir=@bashcompletiondir@
81 zshcompletiondir=@zshcompletiondir@
82 rpmmacrosdir=$(prefix)/lib/rpm/macros.d
83 sysvinitdir=$(SYSTEM_SYSVINIT_PATH)
84 sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
85 varlogdir=$(localstatedir)/log
86 systemdstatedir=$(localstatedir)/lib/systemd
87 catalogstatedir=$(systemdstatedir)/catalog
89 # Our own, non-special dirs
90 pkgsysconfdir=$(sysconfdir)/systemd
91 userunitdir=$(prefix)/lib/systemd/user
92 userpresetdir=$(prefix)/lib/systemd/user-preset
93 tmpfilesdir=$(prefix)/lib/tmpfiles.d
94 sysusersdir=$(prefix)/lib/sysusers.d
95 sysctldir=$(prefix)/lib/sysctl.d
96 binfmtdir=$(prefix)/lib/binfmt.d
97 modulesloaddir=$(prefix)/lib/modules-load.d
98 networkdir=$(rootprefix)/lib/systemd/network
99 pkgincludedir=$(includedir)/systemd
100 systemgeneratordir=$(rootlibexecdir)/system-generators
101 usergeneratordir=$(prefix)/lib/systemd/user-generators
102 systemshutdowndir=$(rootlibexecdir)/system-shutdown
103 systemsleepdir=$(rootlibexecdir)/system-sleep
104 systemunitdir=$(rootprefix)/lib/systemd/system
105 systempresetdir=$(rootprefix)/lib/systemd/system-preset
106 udevlibexecdir=$(rootprefix)/lib/udev
107 udevhomedir=$(udevlibexecdir)
108 udevrulesdir=$(udevlibexecdir)/rules.d
109 udevhwdbdir=$(udevlibexecdir)/hwdb.d
110 catalogdir=$(prefix)/lib/systemd/catalog
111 kernelinstalldir = $(prefix)/lib/kernel/install.d
112 factory_etcdir = $(prefix)/share/factory/etc
113 factory_pamdir = $(prefix)/share/factory/etc/pam.d
115 # And these are the special ones for /
116 rootprefix=@rootprefix@
117 rootbindir=$(rootprefix)/bin
118 rootlibexecdir=$(rootprefix)/lib/systemd
120 CLEANFILES = $(BUILT_SOURCES)
125 UNINSTALL_EXEC_HOOKS =
127 UNINSTALL_DATA_HOOKS =
128 DISTCLEAN_LOCAL_HOOKS =
136 polkitpolicy_in_in_files =
137 polkitpolicy_in_files =
139 dist_udevrules_DATA =
140 nodist_udevrules_DATA =
141 dist_pkgsysconf_DATA =
142 nodist_pkgsysconf_DATA =
144 dist_dbuspolicy_DATA =
145 dist_dbussystemservice_DATA =
146 dist_systemunit_DATA_busnames =
152 noinst_PROGRAMS = $(manual_tests) $(tests)
158 udevlibexec_PROGRAMS =
160 .PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \
161 $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \
162 $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS)
165 -include $(top_builddir)/config.h \
166 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
167 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
168 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
169 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
170 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
171 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
172 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
173 -DCERTIFICATE_ROOT=\"$(CERTIFICATEROOT)\" \
174 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
175 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
176 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
177 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
178 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
179 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
180 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
181 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
182 -DROOTPREFIX=\"$(rootprefix)\" \
183 -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \
184 -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
185 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
186 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
187 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
188 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
189 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
190 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
191 -DX_SERVER=\"$(bindir)/X\" \
192 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
193 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
194 -DQUOTACHECK=\"$(QUOTACHECK)\" \
195 -DKEXEC=\"$(KEXEC)\" \
196 -DLIBDIR=\"$(libdir)\" \
197 -DROOTLIBDIR=\"$(rootlibdir)\" \
198 -DTEST_DIR=\"$(abs_top_srcdir)/test\" \
199 -I $(top_srcdir)/src \
200 -I $(top_builddir)/src/shared \
201 -I $(top_srcdir)/src/shared \
202 -I $(top_srcdir)/src/network \
203 -I $(top_srcdir)/src/login \
204 -I $(top_srcdir)/src/journal \
205 -I $(top_srcdir)/src/timedate \
206 -I $(top_srcdir)/src/timesync \
207 -I $(top_srcdir)/src/resolve \
208 -I $(top_builddir)/src/resolve \
209 -I $(top_srcdir)/src/systemd \
210 -I $(top_builddir)/src/core \
211 -I $(top_srcdir)/src/core \
212 -I $(top_srcdir)/src/libudev \
213 -I $(top_srcdir)/src/udev \
214 -I $(top_srcdir)/src/udev/net \
215 -I $(top_builddir)/src/udev \
216 -I $(top_srcdir)/src/libsystemd/sd-bus \
217 -I $(top_srcdir)/src/libsystemd/sd-event \
218 -I $(top_srcdir)/src/libsystemd/sd-rtnl \
219 -I $(top_srcdir)/src/libsystemd/sd-network \
220 -I $(top_srcdir)/src/libsystemd-network \
221 -I $(top_srcdir)/src/libsystemd-terminal \
224 AM_CFLAGS = $(OUR_CFLAGS)
225 AM_LDFLAGS = $(OUR_LDFLAGS)
227 # ------------------------------------------------------------------------------
228 define move-to-rootlibdir
229 if test "$(libdir)" != "$(rootlibdir)"; then \
230 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
231 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
232 rm -f $(DESTDIR)$(libdir)/$$libname && \
233 $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
234 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
240 RUNLEVEL1_TARGET_WANTS =
241 RUNLEVEL2_TARGET_WANTS =
242 RUNLEVEL3_TARGET_WANTS =
243 RUNLEVEL4_TARGET_WANTS =
244 RUNLEVEL5_TARGET_WANTS =
245 SHUTDOWN_TARGET_WANTS =
246 LOCAL_FS_TARGET_WANTS =
247 MULTI_USER_TARGET_WANTS =
248 SYSINIT_TARGET_WANTS =
249 SOCKETS_TARGET_WANTS =
250 BUSNAMES_TARGET_WANTS =
251 TIMERS_TARGET_WANTS =
252 USER_SOCKETS_TARGET_WANTS =
253 USER_DEFAULT_TARGET_WANTS =
254 USER_BUSNAMES_TARGET_WANTS =
256 SYSTEM_UNIT_ALIASES =
260 install-target-wants-hook:
261 what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && dir=$(systemunitdir) && $(add-wants)
262 what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && dir=$(systemunitdir) && $(add-wants)
263 what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && dir=$(systemunitdir) && $(add-wants)
264 what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && dir=$(systemunitdir) && $(add-wants)
265 what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && dir=$(systemunitdir) && $(add-wants)
266 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
267 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
268 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
269 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
270 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
271 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
272 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
273 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
274 what="$(USER_DEFAULT_TARGET_WANTS)" && wants=default.target && dir=$(userunitdir) && $(add-wants)
276 install-busnames-target-wants-hook:
277 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
278 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
281 [ -z "$$what" ] || ( \
282 dir=$(DESTDIR)$$dir/$$wants.wants && \
283 $(MKDIR_P) -m 0755 $$dir && \
286 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
289 install-directories-hook:
290 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
292 install-aliases-hook:
293 set -- $(SYSTEM_UNIT_ALIASES) && \
294 dir=$(systemunitdir) && $(install-aliases)
295 set -- $(USER_UNIT_ALIASES) && \
296 dir=$(userunitdir) && $(install-relative-aliases)
297 set -- $(GENERAL_ALIASES) && \
298 dir= && $(install-relative-aliases)
300 define install-aliases
301 while [ -n "$$1" ]; do \
302 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
303 rm -f $(DESTDIR)$$dir/$$2 && \
304 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
305 shift 2 || exit $$?; \
309 define install-relative-aliases
310 while [ -n "$$1" ]; do \
311 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
312 rm -f $(DESTDIR)$$dir/$$2 && \
313 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
314 shift 2 || exit $$?; \
318 install-touch-usr-hook:
319 touch -c $(DESTDIR)/$(prefix)
321 INSTALL_EXEC_HOOKS += \
322 install-target-wants-hook \
323 install-directories-hook \
324 install-aliases-hook \
325 install-touch-usr-hook
328 INSTALL_EXEC_HOOKS += \
329 install-busnames-target-wants-hook
332 # ------------------------------------------------------------------------------
333 AM_V_M4 = $(AM_V_M4_$(V))
334 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
335 AM_V_M4_0 = @echo " M4 " $@;
337 AM_V_XSLT = $(AM_V_XSLT_$(V))
338 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
339 AM_V_XSLT_0 = @echo " XSLT " $@;
341 AM_V_GPERF = $(AM_V_GPERF_$(V))
342 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
343 AM_V_GPERF_0 = @echo " GPERF " $@;
345 AM_V_LN = $(AM_V_LN_$(V))
346 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
347 AM_V_LN_0 = @echo " LN " $@;
349 AM_V_RM = $(AM_V_RM_$(V))
350 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
351 AM_V_RM_0 = @echo " RM " $@;
353 # ------------------------------------------------------------------------------
357 systemd-ask-password \
358 systemd-tty-ask-password-agent \
359 systemd-machine-id-setup \
366 systemd-detect-virt \
373 src/kernel-install/kernel-install
375 dist_kernelinstall_SCRIPTS = \
376 src/kernel-install/50-depmod.install \
377 src/kernel-install/90-loaderentry.install
379 rootlibexec_PROGRAMS = \
381 systemd-cgroups-agent \
386 systemd-reply-password \
392 systemd-socket-proxyd \
396 rootlibexec_PROGRAMS += \
400 systemgenerator_PROGRAMS = \
401 systemd-getty-generator \
402 systemd-fstab-generator \
403 systemd-system-update-generator \
404 systemd-debug-generator
406 dist_bashcompletion_DATA = \
407 shell-completion/bash/busctl \
408 shell-completion/bash/journalctl \
409 shell-completion/bash/systemd-analyze \
410 shell-completion/bash/systemd-cat \
411 shell-completion/bash/systemd-cgls \
412 shell-completion/bash/systemd-cgtop \
413 shell-completion/bash/systemd-delta \
414 shell-completion/bash/systemd-detect-virt \
415 shell-completion/bash/systemd-nspawn \
416 shell-completion/bash/systemd-run \
417 shell-completion/bash/udevadm \
418 shell-completion/bash/kernel-install
420 nodist_bashcompletion_DATA = \
421 shell-completion/bash/systemctl
423 dist_zshcompletion_DATA = \
424 shell-completion/zsh/_journalctl \
425 shell-completion/zsh/_udevadm \
426 shell-completion/zsh/_kernel-install \
427 shell-completion/zsh/_systemd-nspawn \
428 shell-completion/zsh/_systemd-analyze \
429 shell-completion/zsh/_systemd-run \
430 shell-completion/zsh/_sd_hosts_or_user_at_host \
431 shell-completion/zsh/_sd_outputmodes \
432 shell-completion/zsh/_sd_unit_files \
433 shell-completion/zsh/_systemd-delta \
434 shell-completion/zsh/_systemd
436 nodist_zshcompletion_DATA = \
437 shell-completion/zsh/_systemctl
440 shell-completion/bash/systemctl.in \
441 shell-completion/zsh/_systemctl.in
444 $(nodist_bashcompletion_DATA) \
445 $(nodist_zshcompletion_DATA)
448 sysctl.d/50-default.conf
450 dist_systemunit_DATA = \
451 units/graphical.target \
452 units/multi-user.target \
453 units/emergency.target \
454 units/sysinit.target \
459 units/local-fs.target \
460 units/local-fs-pre.target \
461 units/initrd.target \
462 units/initrd-fs.target \
463 units/initrd-root-fs.target \
464 units/remote-fs.target \
465 units/remote-fs-pre.target \
466 units/network.target \
467 units/network-pre.target \
468 units/network-online.target \
469 units/nss-lookup.target \
470 units/nss-user-lookup.target \
471 units/poweroff.target \
472 units/reboot.target \
473 units/rescue.target \
474 units/rpcbind.target \
475 units/time-sync.target \
476 units/shutdown.target \
478 units/umount.target \
479 units/sigpwr.target \
481 units/sockets.target \
482 units/timers.target \
484 units/suspend.target \
486 units/slices.target \
489 units/systemd-initctl.socket \
490 units/systemd-shutdownd.socket \
491 units/syslog.socket \
492 units/dev-hugepages.mount \
493 units/dev-mqueue.mount \
494 units/sys-kernel-config.mount \
495 units/sys-kernel-debug.mount \
496 units/sys-fs-fuse-connections.mount \
498 units/printer.target \
500 units/bluetooth.target \
501 units/smartcard.target \
502 units/systemd-ask-password-wall.path \
503 units/systemd-ask-password-console.path \
504 units/systemd-udevd-control.socket \
505 units/systemd-udevd-kernel.socket \
506 units/system-update.target \
507 units/initrd-switch-root.target
510 dist_systemunit_DATA += \
511 $(dist_systemunit_DATA_busnames)
514 dist_systemunit_DATA_busnames += \
515 units/busnames.target
517 nodist_systemunit_DATA = \
518 units/getty@.service \
519 units/serial-getty@.service \
520 units/console-shell.service \
521 units/console-getty.service \
522 units/container-getty@.service \
523 units/systemd-initctl.service \
524 units/systemd-shutdownd.service \
525 units/systemd-remount-fs.service \
526 units/systemd-ask-password-wall.service \
527 units/systemd-ask-password-console.service \
528 units/systemd-sysctl.service \
529 units/emergency.service \
530 units/rescue.service \
531 units/user@.service \
532 units/systemd-suspend.service \
533 units/systemd-halt.service \
534 units/systemd-poweroff.service \
535 units/systemd-reboot.service \
536 units/systemd-kexec.service \
537 units/systemd-fsck@.service \
538 units/systemd-fsck-root.service \
539 units/systemd-udevd.service \
540 units/systemd-udev-trigger.service \
541 units/systemd-udev-settle.service \
542 units/systemd-udev-hwdb-update.service \
543 units/debug-shell.service \
544 units/initrd-parse-etc.service \
545 units/initrd-cleanup.service \
546 units/initrd-udevadm-cleanup-db.service \
547 units/initrd-switch-root.service \
548 units/systemd-nspawn@.service \
549 units/systemd-update-done.service
552 nodist_systemunit_DATA += \
553 units/systemd-update-utmp.service \
554 units/systemd-update-utmp-runlevel.service
557 dist_userunit_DATA = \
558 units/user/basic.target \
559 units/user/default.target \
560 units/user/exit.target
562 nodist_userunit_DATA = \
563 units/user/systemd-exit.service
565 dist_systempreset_DATA = \
566 system-preset/90-systemd.preset
569 units/getty@.service.m4 \
570 units/serial-getty@.service.m4 \
571 units/console-shell.service.m4.in \
572 units/console-getty.service.m4.in \
573 units/container-getty@.service.m4.in \
574 units/rescue.service.in \
575 units/systemd-initctl.service.in \
576 units/systemd-shutdownd.service.in \
577 units/systemd-remount-fs.service.in \
578 units/systemd-update-utmp.service.in \
579 units/systemd-update-utmp-runlevel.service.in \
580 units/systemd-ask-password-wall.service.in \
581 units/systemd-ask-password-console.service.in \
582 units/systemd-sysctl.service.in \
583 units/emergency.service.in \
584 units/systemd-halt.service.in \
585 units/systemd-poweroff.service.in \
586 units/systemd-reboot.service.in \
587 units/systemd-kexec.service.in \
588 units/user/systemd-exit.service.in \
589 units/systemd-fsck@.service.in \
590 units/systemd-fsck-root.service.in \
591 units/user@.service.in \
592 units/debug-shell.service.in \
593 units/systemd-suspend.service.in \
594 units/quotaon.service.in \
595 units/initrd-parse-etc.service.in \
596 units/initrd-cleanup.service.in \
597 units/initrd-udevadm-cleanup-db.service.in \
598 units/initrd-switch-root.service.in \
599 units/systemd-nspawn@.service.in \
600 units/systemd-update-done.service.in
603 units/console-shell.service.m4 \
604 units/console-getty.service.m4 \
605 units/container-getty@.service.m4 \
606 units/user@.service.m4
609 nodist_systemunit_DATA += \
610 units/rc-local.service \
611 units/halt-local.service
613 systemgenerator_PROGRAMS += \
614 systemd-sysv-generator \
615 systemd-rc-local-generator
619 units/rc-local.service.in \
620 units/halt-local.service.in
622 # automake is broken and can't handle files with a dash in front
623 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
625 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
627 units-uninstall-hook:
628 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
630 INSTALL_DATA_HOOKS += units-install-hook
631 UNINSTALL_DATA_HOOKS += units-uninstall-hook
640 src/libsystemd/sd-bus/PORTING-DBUS1 \
641 src/libsystemd/sd-bus/DIFFERENCES \
642 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
644 @INTLTOOL_POLICY_RULE@
646 # ------------------------------------------------------------------------------
651 include Makefile-man.am
653 .PHONY: man update-man-list
654 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
657 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
659 ${XML_FILES:.xml=.html}
661 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
678 $(AM_V_at)$(MKDIR_P) $(dir $@)
679 $(AM_V_LN)$(LN_S) -f ../../man $@
688 man/index.html: man/systemd.index.html
689 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
697 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
698 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
699 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
701 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB)
702 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
703 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
704 @echo "Makefile-man.am has been regenerated"
706 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
707 $(AM_V_at)$(MKDIR_P) $(dir $@)
708 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
710 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py $(SOURCE_XML_FILES)
711 $(AM_V_at)$(MKDIR_P) $(dir $@)
712 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
715 man/systemd.index.xml \
717 man/systemd.directives.xml \
718 man/glib-event-glue.c
721 man/systemd.index.xml \
722 man/systemd.directives.xml
733 tools/make-man-index.py \
734 tools/make-directive-index.py \
737 # ------------------------------------------------------------------------------
738 noinst_LTLIBRARIES += \
741 libsystemd_shared_la_SOURCES = \
742 src/shared/capability.c \
743 src/shared/capability.h \
744 src/shared/linux/auto_dev-ioctl.h \
745 src/shared/ioprio.h \
746 src/shared/missing.h \
747 src/shared/initreq.h \
748 src/shared/securebits.h \
749 src/shared/special.h \
751 src/shared/unaligned.h \
754 src/shared/sparse-endian.h \
755 src/shared/refcnt.h \
756 src/shared/udev-util.h \
757 src/shared/bus-errors.h \
758 src/shared/bus-errors.c \
759 src/shared/device-nodes.c \
760 src/shared/device-nodes.h \
765 src/shared/architecture.c \
766 src/shared/architecture.h \
767 src/shared/efivars.c \
768 src/shared/efivars.h \
769 src/shared/path-util.c \
770 src/shared/path-util.h \
771 src/shared/time-util.c \
772 src/shared/time-util.h \
773 src/shared/locale-util.c \
774 src/shared/locale-util.h \
775 src/shared/mempool.c \
776 src/shared/mempool.h \
777 src/shared/hashmap.c \
778 src/shared/hashmap.h \
779 src/shared/siphash24.c \
780 src/shared/siphash24.h \
786 src/shared/sleep-config.c \
787 src/shared/sleep-config.h \
790 src/shared/env-util.c \
791 src/shared/env-util.h \
792 src/shared/strbuf.c \
793 src/shared/strbuf.h \
794 src/shared/strxcpyx.c \
795 src/shared/strxcpyx.h \
796 src/shared/conf-parser.c \
797 src/shared/conf-parser.h \
800 src/shared/ratelimit.h \
801 src/shared/ratelimit.c \
802 src/shared/exit-status.c \
803 src/shared/exit-status.h \
806 src/shared/gunicode.c \
807 src/shared/gunicode.h \
810 src/shared/socket-util.c \
811 src/shared/socket-util.h \
812 src/shared/in-addr-util.c \
813 src/shared/in-addr-util.h \
814 src/shared/conf-files.c \
815 src/shared/conf-files.h \
816 src/shared/cgroup-util.c \
817 src/shared/cgroup-util.h \
818 src/shared/cgroup-show.c \
819 src/shared/cgroup-show.h \
820 src/shared/unit-name.c \
821 src/shared/unit-name.h \
822 src/shared/utmp-wtmp.h \
823 src/shared/watchdog.c \
824 src/shared/watchdog.h \
825 src/shared/spawn-ask-password-agent.c \
826 src/shared/spawn-ask-password-agent.h \
827 src/shared/replace-var.c \
828 src/shared/replace-var.h \
829 src/shared/spawn-polkit-agent.c \
830 src/shared/spawn-polkit-agent.h \
831 src/shared/clock-util.c \
832 src/shared/clock-util.h \
833 src/shared/time-dst.c \
834 src/shared/time-dst.h \
835 src/shared/calendarspec.c \
836 src/shared/calendarspec.h \
837 src/shared/fileio.c \
838 src/shared/fileio.h \
839 src/shared/output-mode.h \
840 src/shared/MurmurHash2.c \
841 src/shared/MurmurHash2.h \
842 src/shared/acpi-fpdt.h \
843 src/shared/acpi-fpdt.c \
844 src/shared/boot-timestamps.h \
845 src/shared/boot-timestamps.c \
848 src/shared/smack-util.c \
849 src/shared/smack-util.h \
850 src/shared/apparmor-util.c \
851 src/shared/apparmor-util.h \
852 src/shared/ima-util.c \
853 src/shared/ima-util.h \
854 src/shared/ptyfwd.c \
855 src/shared/ptyfwd.h \
856 src/shared/errno-list.c \
857 src/shared/errno-list.h \
858 src/shared/af-list.c \
859 src/shared/af-list.h \
860 src/shared/arphrd-list.c \
861 src/shared/arphrd-list.h \
866 src/shared/bus-label.c \
867 src/shared/bus-label.h \
869 src/shared/clean-ipc.h \
870 src/shared/clean-ipc.c \
871 src/shared/login-shared.c \
872 src/shared/login-shared.h \
875 src/shared/barrier.c \
876 src/shared/barrier.h \
883 src/shared/base-filesystem.c \
884 src/shared/base-filesystem.h \
885 src/shared/memfd-util.c \
886 src/shared/memfd-util.h \
887 src/shared/uid-range.c \
888 src/shared/uid-range.h \
889 src/shared/nss-util.h
892 libsystemd_shared_la_SOURCES += \
893 src/shared/utmp-wtmp.c
896 nodist_libsystemd_shared_la_SOURCES = \
897 src/shared/errno-from-name.h \
898 src/shared/errno-to-name.h \
899 src/shared/af-from-name.h \
900 src/shared/af-to-name.h \
901 src/shared/arphrd-from-name.h \
902 src/shared/arphrd-to-name.h
904 libsystemd_shared_la_CFLAGS = \
910 libsystemd_shared_la_LIBADD = \
913 # ------------------------------------------------------------------------------
914 noinst_LTLIBRARIES += \
917 libsystemd_units_la_SOURCES = \
918 src/shared/install.c \
919 src/shared/install.h \
920 src/shared/install-printf.c \
921 src/shared/install-printf.h \
922 src/shared/path-lookup.c \
923 src/shared/path-lookup.h \
924 src/shared/specifier.c \
925 src/shared/specifier.h
927 # ------------------------------------------------------------------------------
928 noinst_LTLIBRARIES += \
931 libsystemd_label_la_SOURCES = \
932 src/shared/socket-label.c \
935 src/shared/selinux-util.c \
936 src/shared/selinux-util.h \
937 src/shared/mkdir-label.c \
938 src/shared/ask-password-api.c \
939 src/shared/ask-password-api.h \
940 src/shared/switch-root.h \
941 src/shared/switch-root.c \
942 src/shared/fileio-label.c \
943 src/shared/fileio-label.h \
944 src/shared/dev-setup.c \
945 src/shared/dev-setup.h \
946 src/shared/dropin.c \
947 src/shared/dropin.h \
948 src/shared/condition.c \
949 src/shared/condition.h \
950 src/shared/generator.h \
951 src/shared/generator.c
953 libsystemd_label_la_CFLAGS = \
957 libsystemd_label_la_LIBADD = \
960 # -----------------------------------------------------------------------------
963 dist_systemunit_DATA += \
964 units/ldconfig.service
966 SYSINIT_TARGET_WANTS += \
970 # ------------------------------------------------------------------------------
973 noinst_LTLIBRARIES += \
974 libsystemd-seccomp.la
976 libsystemd_seccomp_la_SOURCES = \
977 src/shared/seccomp-util.h \
978 src/shared/seccomp-util.c
980 libsystemd_seccomp_la_CFLAGS = \
984 libsystemd_seccomp_la_LIBADD = \
988 # ------------------------------------------------------------------------------
989 noinst_LTLIBRARIES += \
992 libsystemd_logs_la_SOURCES = \
993 src/shared/logs-show.c \
994 src/shared/logs-show.h
996 # ------------------------------------------------------------------------------
998 noinst_LTLIBRARIES += \
1001 libsystemd_acl_la_SOURCES = \
1002 src/shared/acl-util.c \
1003 src/shared/acl-util.h
1005 libsystemd_acl_la_CFLAGS = \
1009 libsystemd_acl_la_LIBADD = \
1013 # ------------------------------------------------------------------------------
1014 noinst_LTLIBRARIES += \
1017 libsystemd_core_la_SOURCES = \
1020 src/core/unit-printf.c \
1021 src/core/unit-printf.h \
1024 src/core/manager.c \
1025 src/core/manager.h \
1026 src/core/transaction.c \
1027 src/core/transaction.h \
1028 src/core/load-fragment.c \
1029 src/core/load-fragment.h \
1030 src/core/service.c \
1031 src/core/service.h \
1034 src/core/busname.c \
1035 src/core/busname.h \
1036 src/core/bus-common.c \
1037 src/core/bus-common.h \
1038 src/core/bus-endpoint.c \
1039 src/core/bus-endpoint.h \
1042 src/core/snapshot.c \
1043 src/core/snapshot.h \
1048 src/core/automount.c \
1049 src/core/automount.h \
1060 src/core/load-dropin.c \
1061 src/core/load-dropin.h \
1062 src/core/execute.c \
1063 src/core/execute.h \
1068 src/core/dbus-manager.c \
1069 src/core/dbus-manager.h \
1070 src/core/dbus-unit.c \
1071 src/core/dbus-unit.h \
1072 src/core/dbus-job.c \
1073 src/core/dbus-job.h \
1074 src/core/dbus-service.c \
1075 src/core/dbus-service.h \
1076 src/core/dbus-socket.c \
1077 src/core/dbus-socket.h \
1078 src/core/dbus-busname.c \
1079 src/core/dbus-busname.h \
1080 src/core/dbus-target.c \
1081 src/core/dbus-target.h \
1082 src/core/dbus-snapshot.c \
1083 src/core/dbus-snapshot.h \
1084 src/core/dbus-device.c \
1085 src/core/dbus-device.h \
1086 src/core/dbus-mount.c \
1087 src/core/dbus-mount.h \
1088 src/core/dbus-automount.c \
1089 src/core/dbus-automount.h \
1090 src/core/dbus-swap.c \
1091 src/core/dbus-swap.h \
1092 src/core/dbus-timer.c \
1093 src/core/dbus-timer.h \
1094 src/core/dbus-path.c \
1095 src/core/dbus-path.h \
1096 src/core/dbus-slice.c \
1097 src/core/dbus-slice.h \
1098 src/core/dbus-scope.c \
1099 src/core/dbus-scope.h \
1100 src/core/dbus-execute.c \
1101 src/core/dbus-execute.h \
1102 src/core/dbus-kill.c \
1103 src/core/dbus-kill.h \
1104 src/core/dbus-cgroup.c \
1105 src/core/dbus-cgroup.h \
1108 src/core/selinux-access.c \
1109 src/core/selinux-access.h \
1110 src/core/selinux-setup.c \
1111 src/core/selinux-setup.h \
1112 src/core/smack-setup.c \
1113 src/core/smack-setup.h \
1114 src/core/ima-setup.c \
1115 src/core/ima-setup.h \
1116 src/core/locale-setup.h \
1117 src/core/locale-setup.c \
1118 src/core/hostname-setup.c \
1119 src/core/hostname-setup.h \
1120 src/core/machine-id-setup.c \
1121 src/core/machine-id-setup.h \
1122 src/core/mount-setup.c \
1123 src/core/mount-setup.h \
1124 src/core/loopback-setup.h \
1125 src/core/loopback-setup.c \
1126 src/core/namespace.c \
1127 src/core/namespace.h \
1129 src/core/sysfs-show.h \
1130 src/core/killall.h \
1131 src/core/killall.c \
1132 src/core/audit-fd.c \
1133 src/core/audit-fd.h \
1134 src/core/show-status.c \
1135 src/core/show-status.h \
1136 src/core/failure-action.c \
1137 src/core/failure-action.h
1140 libsystemd_core_la_SOURCES += \
1141 src/core/kmod-setup.c \
1142 src/core/kmod-setup.h
1145 nodist_libsystemd_core_la_SOURCES = \
1146 src/core/load-fragment-gperf.c \
1147 src/core/load-fragment-gperf-nulstr.c
1149 libsystemd_core_la_CFLAGS = \
1154 $(APPARMOR_CFLAGS) \
1158 libsystemd_core_la_LIBADD = \
1159 libsystemd-units.la \
1160 libsystemd-label.la \
1161 libudev-internal.la \
1162 libsystemd-shared.la \
1163 libsystemd-internal.la \
1171 libsystemd_core_la_LIBADD += \
1172 libsystemd-seccomp.la
1175 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1176 $(AM_V_at)$(MKDIR_P) $(dir $@)
1177 $(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 ";" }' < $< > $@
1180 src/core/load-fragment-gperf.gperf.m4
1183 src/core/load-fragment-gperf.gperf \
1184 src/core/load-fragment-gperf.c \
1185 src/core/load-fragment-gperf-nulstr.c \
1186 src/shared/errno-list.txt \
1187 src/shared/errno-from-name.gperf \
1188 src/shared/af-list.txt \
1189 src/shared/af-from-name.gperf \
1190 src/shared/arphrd-list.txt \
1191 src/shared/arphrd-from-name.gperf \
1192 src/shared/dns_type-list.txt \
1193 src/shared/dns_type-from-name.gperf
1196 src/shared/errno-from-name.h \
1197 src/shared/errno-to-name.h \
1198 src/shared/af-from-name.h \
1199 src/shared/af-to-name.h \
1200 src/shared/arphrd-from-name.h \
1201 src/shared/arphrd-to-name.h \
1202 src/resolve/dns_type-from-name.h \
1203 src/resolve/dns_type-to-name.h
1205 %-from-name.gperf: %-list.txt
1206 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1208 %-from-name.h: %-from-name.gperf
1209 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1212 src/shared/errno-list.txt:
1213 $(AM_V_at)$(MKDIR_P) $(dir $@)
1214 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1216 src/shared/errno-to-name.h: src/shared/errno-list.txt
1217 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1220 src/shared/af-list.txt:
1221 $(AM_V_at)$(MKDIR_P) $(dir $@)
1222 $(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; }' >$@
1224 src/shared/af-to-name.h: src/shared/af-list.txt
1225 $(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 "};"}' <$< >$@
1227 src/shared/arphrd-list.txt:
1228 $(AM_V_at)$(MKDIR_P) $(dir $@)
1229 $(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_//' >$@
1231 src/shared/arphrd-to-name.h: src/shared/arphrd-list.txt
1232 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1234 src/shared/arphrd-from-name.gperf: src/shared/arphrd-list.txt
1235 $(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 }' <$< >$@
1238 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1239 $(AM_V_at)$(MKDIR_P) $(dir $@)
1240 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1242 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1243 $(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" }' <$< >$@
1245 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1246 $(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 }' <$< >$@
1248 # ------------------------------------------------------------------------------
1257 libsystemd-core.la \
1260 dist_pkgsysconf_DATA += \
1261 src/core/system.conf \
1264 dist_dbuspolicy_DATA += \
1265 src/core/org.freedesktop.systemd1.conf
1267 dist_dbussystemservice_DATA += \
1268 src/core/org.freedesktop.systemd1.service
1270 polkitpolicy_in_in_files += \
1271 src/core/org.freedesktop.systemd1.policy.in.in
1273 pkgconfigdata_DATA = \
1276 nodist_rpmmacros_DATA = \
1277 src/core/macros.systemd
1280 src/core/systemd.pc.in \
1281 src/core/macros.systemd.in
1284 src/core/macros.systemd \
1285 src/core/org.freedesktop.systemd1.policy.in
1287 # ------------------------------------------------------------------------------
1330 test-strip-tab-ansi \
1361 test/daughter.service \
1366 test/grandchild.service \
1368 test/hello-after-sleep.target \
1369 test/hello.service \
1371 test/parent-deep.slice \
1374 test/sched_idle_bad.service \
1375 test/sched_idle_ok.service \
1376 test/sched_rr_bad.service \
1377 test/sched_rr_change.service \
1378 test/sched_rr_ok.service \
1379 test/shutdown.target \
1380 test/sleep.service \
1381 test/sockets.target \
1383 test/sysinit.target \
1384 test/testsuite.target \
1385 test/timers.target \
1386 test/unstoppable.service \
1387 test/bus-policy/hello.conf \
1388 test/bus-policy/methods.conf \
1389 test/bus-policy/ownerships.conf \
1390 test/bus-policy/signals.conf
1394 src/test/test-helper.h
1396 test_device_nodes_SOURCES = \
1397 src/test/test-device-nodes.c
1399 test_device_nodes_LDADD = \
1400 libsystemd-shared.la
1402 test_engine_SOURCES = \
1403 src/test/test-engine.c
1405 test_engine_CFLAGS = \
1409 test_engine_LDADD = \
1410 libsystemd-core.la \
1413 test_job_type_SOURCES = \
1414 src/test/test-job-type.c
1416 test_job_type_CFLAGS = \
1420 test_job_type_LDADD = \
1421 libsystemd-core.la \
1434 test_loopback_SOURCES = \
1435 src/test/test-loopback.c
1437 test_loopback_LDADD = \
1440 test_hostname_SOURCES = \
1441 src/test/test-hostname.c
1443 test_hostname_LDADD = \
1450 test_boot_timestamp_SOURCES = \
1451 src/test/test-boot-timestamps.c
1453 test_boot_timestamp_LDADD = \
1454 libsystemd-shared.la
1457 test_unit_name_SOURCES = \
1458 src/test/test-unit-name.c
1460 test_unit_name_CFLAGS = \
1464 test_unit_name_LDADD = \
1465 libsystemd-core.la \
1468 test_unit_file_SOURCES = \
1469 src/test/test-unit-file.c
1471 test_unit_file_CFLAGS = \
1475 test_unit_file_LDADD = \
1476 libsystemd-core.la \
1479 test_utf8_SOURCES = \
1480 src/test/test-utf8.c
1483 libsystemd-shared.la
1485 test_capability_SOURCES = \
1486 src/test/test-capability.c
1488 test_capability_LDADD = \
1489 libsystemd-shared.la
1491 test_async_SOURCES = \
1492 src/test/test-async.c
1494 test_async_LDADD = \
1495 libsystemd-shared.la
1497 test_locale_util_SOURCES = \
1498 src/test/test-locale-util.c
1500 test_locale_util_LDADD = \
1501 libsystemd-shared.la
1503 test_copy_SOURCES = \
1504 src/test/test-copy.c
1507 libsystemd-shared.la
1509 test_condition_SOURCES = \
1510 src/test/test-condition.c
1512 test_condition_LDADD = \
1513 libsystemd-label.la \
1514 libsystemd-internal.la \
1515 libsystemd-shared.la
1517 test_fdset_SOURCES = \
1518 src/test/test-fdset.c
1520 test_fdset_LDADD = \
1521 libsystemd-shared.la \
1522 libsystemd-internal.la
1524 test_ratelimit_SOURCES = \
1525 src/test/test-ratelimit.c
1527 test_ratelimit_LDADD = \
1528 libsystemd-shared.la
1530 test_util_SOURCES = \
1531 src/test/test-util.c
1535 libsystemd-shared.la
1537 test_uid_range_SOURCES = \
1538 src/test/test-uid-range.c
1540 test_uid_range_LDADD = \
1541 libsystemd-shared.la
1543 test_socket_util_SOURCES = \
1544 src/test/test-socket-util.c
1546 test_socket_util_LDADD = \
1547 libsystemd-shared.la
1549 test_ring_SOURCES = \
1550 src/test/test-ring.c
1553 libsystemd-shared.la
1555 test_barrier_SOURCES = \
1556 src/test/test-barrier.c
1558 test_barrier_LDADD = \
1559 libsystemd-shared.la
1561 test_pty_SOURCES = \
1567 test_tmpfiles_SOURCES = \
1568 src/test/test-tmpfiles.c
1570 test_tmpfiles_LDADD = \
1571 libsystemd-shared.la
1573 test_namespace_SOURCES = \
1574 src/test/test-namespace.c
1576 test_namespace_LDADD = \
1580 src/test/test-hashmap-ordered.c
1583 src/test/test-hashmap-ordered.c
1585 src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c
1586 $(AM_V_at)$(MKDIR_P) $(dir $@)
1587 $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \
1588 { if (!match($$0, "^#include")) \
1589 gsub(/hashmap/, "ordered_hashmap"); \
1590 gsub(/HASHMAP/, "ORDERED_HASHMAP"); \
1591 gsub(/Hashmap/, "OrderedHashmap"); \
1594 nodist_test_hashmap_SOURCES = \
1595 src/test/test-hashmap-ordered.c
1597 test_hashmap_SOURCES = \
1598 src/test/test-hashmap.c \
1599 src/test/test-hashmap-plain.c
1601 test_hashmap_LDADD = \
1602 libsystemd-shared.la
1604 test_set_SOURCES = \
1608 libsystemd-shared.la
1610 test_xml_SOURCES = \
1614 libsystemd-shared.la
1616 test_list_SOURCES = \
1617 src/test/test-list.c
1620 libsystemd-shared.la
1622 test_unaligned_LDADD = \
1623 libsystemd-shared.la
1625 test_unaligned_SOURCES = \
1626 src/test/test-unaligned.c
1628 test_tables_SOURCES = \
1629 src/test/test-tables.c \
1630 src/shared/test-tables.h \
1631 src/bus-proxyd/bus-policy.c \
1632 src/bus-proxyd/bus-policy.h \
1633 src/journal/journald-server.c \
1634 src/journal/journald-server.h
1636 test_tables_CPPFLAGS = \
1638 -I$(top_srcdir)/src/bus-proxyd
1640 test_tables_CFLAGS = \
1644 test_tables_LDADD = \
1645 libsystemd-logs.la \
1646 libsystemd-journal-internal.la \
1647 libsystemd-journal-core.la \
1648 libsystemd-core.la \
1652 test_prioq_SOURCES = \
1653 src/test/test-prioq.c
1655 test_prioq_LDADD = \
1656 libsystemd-shared.la
1658 test_fileio_SOURCES = \
1659 src/test/test-fileio.c
1661 test_fileio_LDADD = \
1662 libsystemd-shared.la
1664 test_time_SOURCES = \
1665 src/test/test-time.c
1668 libsystemd-shared.la
1670 test_architecture_SOURCES = \
1671 src/test/test-architecture.c
1673 test_architecture_LDADD = \
1674 libsystemd-shared.la
1676 test_log_SOURCES = \
1680 libsystemd-shared.la
1682 test_ipcrm_SOURCES = \
1683 src/test/test-ipcrm.c
1685 test_ipcrm_LDADD = \
1686 libsystemd-shared.la \
1689 test_rtnl_manual_SOURCES = \
1690 src/test/test-rtnl-manual.c
1692 test_rtnl_manual_CFLAGS = \
1696 test_rtnl_manual_LDADD = \
1697 libsystemd-internal.la \
1698 libsystemd-shared.la \
1701 test_ellipsize_SOURCES = \
1702 src/test/test-ellipsize.c
1704 test_ellipsize_LDADD = \
1705 libsystemd-shared.la
1707 test_date_SOURCES = \
1708 src/test/test-date.c
1711 libsystemd-shared.la
1713 test_sleep_SOURCES = \
1714 src/test/test-sleep.c
1716 test_sleep_LDADD = \
1719 test_replace_var_SOURCES = \
1720 src/test/test-replace-var.c
1722 test_replace_var_LDADD = \
1723 libsystemd-shared.la
1725 test_calendarspec_SOURCES = \
1726 src/test/test-calendarspec.c
1728 test_calendarspec_LDADD = \
1729 libsystemd-shared.la
1731 test_strip_tab_ansi_SOURCES = \
1732 src/test/test-strip-tab-ansi.c
1734 test_strip_tab_ansi_LDADD = \
1735 libsystemd-shared.la
1737 test_daemon_SOURCES = \
1738 src/test/test-daemon.c
1740 test_daemon_LDADD = \
1741 libsystemd-internal.la \
1742 libsystemd-shared.la
1744 test_cgroup_SOURCES = \
1745 src/test/test-cgroup.c
1747 test_cgroup_LDADD = \
1748 libsystemd-label.la \
1749 libsystemd-shared.la \
1750 libsystemd-internal.la
1752 test_cgroup_mask_SOURCES = \
1753 src/test/test-cgroup-mask.c
1755 test_cgroup_mask_CPPFLAGS = \
1758 test_cgroup_mask_CFLAGS = \
1762 test_cgroup_mask_LDADD = \
1763 libsystemd-core.la \
1766 test_cgroup_util_SOURCES = \
1767 src/test/test-cgroup-util.c
1769 test_cgroup_util_LDADD = \
1770 libsystemd-label.la \
1771 libsystemd-internal.la \
1772 libsystemd-shared.la
1774 test_env_replace_SOURCES = \
1775 src/test/test-env-replace.c
1777 test_env_replace_LDADD = \
1778 libsystemd-shared.la
1780 test_strbuf_SOURCES = \
1781 src/test/test-strbuf.c
1783 test_strbuf_LDADD = \
1784 libsystemd-shared.la
1786 test_strv_SOURCES = \
1787 src/test/test-strv.c
1790 libsystemd-units.la \
1791 libsystemd-internal.la \
1792 libsystemd-shared.la
1794 test_path_util_SOURCES = \
1795 src/test/test-path-util.c
1797 test_path_util_LDADD = \
1798 libsystemd-shared.la
1800 test_path_SOURCES = \
1801 src/test/test-path.c
1803 test_path_CFLAGS = \
1809 test_execute_SOURCES = \
1810 src/test/test-execute.c
1812 test_execute_CFLAGS = \
1815 test_execute_LDADD = \
1818 test_strxcpyx_SOURCES = \
1819 src/test/test-strxcpyx.c
1821 test_strxcpyx_LDADD = \
1822 libsystemd-shared.la
1824 test_install_SOURCES = \
1825 src/test/test-install.c
1827 test_install_LDADD = \
1828 libsystemd-units.la \
1829 libsystemd-label.la \
1830 libsystemd-shared.la \
1831 libsystemd-internal.la
1833 test_watchdog_SOURCES = \
1834 src/test/test-watchdog.c
1836 test_watchdog_LDADD = \
1837 libsystemd-shared.la
1839 test_sched_prio_SOURCES = \
1840 src/test/test-sched-prio.c
1842 test_sched_prio_CPPFLAGS = \
1845 test_sched_prio_CFLAGS = \
1849 test_sched_prio_LDADD = \
1850 libsystemd-core.la \
1853 test_conf_files_SOURCES = \
1854 src/test/test-conf-files.c
1856 test_conf_files_LDADD = \
1857 libsystemd-shared.la
1859 test_bus_policy_SOURCES = \
1860 src/bus-proxyd/test-bus-policy.c \
1861 src/bus-proxyd/bus-policy.c \
1862 src/bus-proxyd/bus-policy.h
1864 test_bus_policy_LDADD = \
1865 libsystemd-internal.la \
1866 libsystemd-shared.la
1868 # ------------------------------------------------------------------------------
1869 ## .PHONY so it always rebuilds it
1870 .PHONY: coverage lcov-run lcov-report coverage-sync
1872 # run lcov from scratch, always
1877 coverage_dir = coverage
1878 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1881 # reset run coverage tests
1883 @rm -rf $(coverage_dir)
1884 lcov $(coverage_opts) --zerocounters
1887 # generate report based on current coverage data
1889 $(MKDIR_P) $(coverage_dir)
1890 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1891 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1892 lcov --remove $(coverage_dir)/.lcov.info --output-file $(coverage_dir)/.lcov-clean.info 'test-*'
1893 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov-clean.info
1894 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1896 # lcov doesn't work properly with vpath builds, make sure that bad
1897 # output is not uploaded by mistake.
1898 coverage-sync: coverage
1899 test "$(builddir)" = "$(srcdir)"
1900 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1903 lcov-run lcov-report:
1904 echo "Need to reconfigure with --enable-coverage"
1907 # ------------------------------------------------------------------------------
1908 systemd_analyze_SOURCES = \
1909 src/analyze/analyze.c \
1910 src/analyze/analyze-verify.c \
1911 src/analyze/analyze-verify.h
1913 systemd_verify_CFLAGS = \
1917 systemd_analyze_LDADD = \
1918 libsystemd-core.la \
1919 libsystemd-internal.la \
1920 libsystemd-shared.la \
1923 # ------------------------------------------------------------------------------
1924 systemd_initctl_SOURCES = \
1925 src/initctl/initctl.c
1927 systemd_initctl_LDADD = \
1928 libsystemd-internal.la \
1929 libsystemd-shared.la
1931 # ------------------------------------------------------------------------------
1932 systemd_update_utmp_SOURCES = \
1933 src/update-utmp/update-utmp.c
1935 systemd_update_utmp_CFLAGS = \
1939 systemd_update_utmp_LDADD = \
1940 libsystemd-internal.la \
1941 libsystemd-shared.la \
1944 # ------------------------------------------------------------------------------
1945 systemd_update_done_SOURCES = \
1946 src/update-done/update-done.c
1948 systemd_update_done_LDADD = \
1949 libsystemd-internal.la \
1950 libsystemd-label.la \
1951 libsystemd-shared.la
1953 # ------------------------------------------------------------------------------
1954 systemd_shutdownd_SOURCES = \
1955 src/shutdownd/shutdownd.c
1957 systemd_shutdownd_LDADD = \
1958 libsystemd-label.la \
1959 libsystemd-internal.la \
1960 libsystemd-shared.la
1963 src/systemd/sd-shutdown.h
1965 # ------------------------------------------------------------------------------
1966 systemd_shutdown_SOURCES = \
1969 src/core/shutdown.c \
1970 src/core/mount-setup.c \
1971 src/core/mount-setup.h \
1972 src/core/killall.h \
1975 systemd_shutdown_LDADD = \
1976 libsystemd-label.la \
1977 libudev-internal.la \
1978 libsystemd-shared.la
1980 # ------------------------------------------------------------------------------
1982 systemd_modules_load_SOURCES = \
1983 src/modules-load/modules-load.c
1985 systemd_modules_load_CFLAGS = \
1989 systemd_modules_load_LDADD = \
1990 libsystemd-shared.la \
1993 rootlibexec_PROGRAMS += \
1994 systemd-modules-load
1996 nodist_systemunit_DATA += \
1997 units/systemd-modules-load.service
1999 SYSINIT_TARGET_WANTS += \
2000 systemd-modules-load.service
2003 nodist_systemunit_DATA += \
2004 units/kmod-static-nodes.service
2006 SYSINIT_TARGET_WANTS += \
2007 kmod-static-nodes.service
2012 units/systemd-modules-load.service.in \
2013 units/kmod-static-nodes.service.in
2015 # ------------------------------------------------------------------------------
2017 systemd_tmpfiles_SOURCES = \
2018 src/tmpfiles/tmpfiles.c
2020 systemd_tmpfiles_LDADD = \
2021 libsystemd-units.la \
2022 libsystemd-label.la \
2023 libsystemd-internal.la \
2024 libsystemd-shared.la
2026 rootbin_PROGRAMS += \
2029 dist_systemunit_DATA += \
2030 units/systemd-tmpfiles-clean.timer
2032 nodist_systemunit_DATA += \
2033 units/systemd-tmpfiles-setup-dev.service \
2034 units/systemd-tmpfiles-setup.service \
2035 units/systemd-tmpfiles-clean.service
2037 nodist_tmpfiles_DATA = \
2040 dist_tmpfiles_DATA = \
2041 tmpfiles.d/systemd.conf \
2042 tmpfiles.d/systemd-nologin.conf \
2043 tmpfiles.d/systemd-remote.conf \
2044 tmpfiles.d/tmp.conf \
2045 tmpfiles.d/x11.conf \
2049 dist_tmpfiles_DATA += \
2050 tmpfiles.d/legacy.conf
2053 SYSINIT_TARGET_WANTS += \
2054 systemd-tmpfiles-setup-dev.service \
2055 systemd-tmpfiles-setup.service
2057 dist_zshcompletion_DATA += \
2058 shell-completion/zsh/_systemd-tmpfiles
2060 TIMERS_TARGET_WANTS += \
2061 systemd-tmpfiles-clean.timer
2065 $(sysconfdir)/tmpfiles.d
2069 tmpfiles.d/etc.conf.m4 \
2070 units/systemd-tmpfiles-setup-dev.service.in \
2071 units/systemd-tmpfiles-setup.service.in \
2072 units/systemd-tmpfiles-clean.service.in
2077 # ------------------------------------------------------------------------------
2079 systemd_sysusers_SOURCES = \
2080 src/sysusers/sysusers.c
2082 systemd_sysusers_LDADD = \
2083 libsystemd-units.la \
2084 libsystemd-label.la \
2085 libsystemd-internal.la \
2086 libsystemd-shared.la
2088 rootbin_PROGRAMS += \
2091 nodist_systemunit_DATA += \
2092 units/systemd-sysusers.service
2094 SYSINIT_TARGET_WANTS += \
2095 systemd-sysusers.service
2097 dist_sysusers_DATA = \
2098 sysusers.d/systemd.conf \
2099 sysusers.d/systemd-remote.conf
2101 nodist_sysusers_DATA = \
2102 sysusers.d/basic.conf
2105 units/systemd-sysusers.service.in \
2106 sysusers.d/basic.conf.in
2109 sysusers.d/basic.conf
2115 # ------------------------------------------------------------------------------
2116 dist_factory_etc_DATA = \
2117 factory/etc/nsswitch.conf
2120 dist_factory_pam_DATA = \
2121 factory/etc/pam.d/system-auth \
2122 factory/etc/pam.d/other
2125 # ------------------------------------------------------------------------------
2127 systemd_firstboot_SOURCES = \
2128 src/firstboot/firstboot.c
2130 systemd_firstboot_LDADD = \
2131 libsystemd-units.la \
2132 libsystemd-label.la \
2133 libsystemd-internal.la \
2134 libsystemd-shared.la \
2137 rootbin_PROGRAMS += \
2140 nodist_systemunit_DATA += \
2141 units/systemd-firstboot.service
2144 units/systemd-firstboot.service.in
2146 SYSINIT_TARGET_WANTS += \
2147 systemd-firstboot.service
2150 # ------------------------------------------------------------------------------
2151 systemd_machine_id_setup_SOURCES = \
2152 src/machine-id-setup/machine-id-setup-main.c \
2153 src/core/machine-id-setup.c \
2154 src/core/machine-id-setup.h
2156 systemd_machine_id_setup_LDADD = \
2157 libsystemd-label.la \
2158 libsystemd-internal.la \
2159 libsystemd-shared.la
2161 # ------------------------------------------------------------------------------
2162 systemd_sysctl_SOURCES = \
2165 systemd_sysctl_LDADD = \
2166 libsystemd-shared.la
2168 # ------------------------------------------------------------------------------
2169 systemd_sleep_SOURCES = \
2172 systemd_sleep_LDADD = \
2173 libsystemd-shared.la
2175 # ------------------------------------------------------------------------------
2176 systemd_fsck_SOURCES = \
2179 systemd_fsck_LDADD = \
2180 libsystemd-internal.la \
2181 libudev-internal.la \
2182 libsystemd-shared.la
2184 # ------------------------------------------------------------------------------
2185 systemd_ac_power_SOURCES = \
2186 src/ac-power/ac-power.c
2188 systemd_ac_power_LDADD = \
2189 libudev-internal.la \
2190 libsystemd-shared.la
2192 # ------------------------------------------------------------------------------
2193 systemd_detect_virt_SOURCES = \
2194 src/detect-virt/detect-virt.c
2196 systemd_detect_virt_LDADD = \
2197 libsystemd-shared.la
2199 INSTALL_EXEC_HOOKS += \
2200 systemd-detect-virt-install-hook
2202 # ------------------------------------------------------------------------------
2203 systemd_delta_SOURCES = \
2206 systemd_delta_LDADD = \
2207 libsystemd-shared.la
2209 # ------------------------------------------------------------------------------
2210 systemd_getty_generator_SOURCES = \
2211 src/getty-generator/getty-generator.c
2213 systemd_getty_generator_LDADD = \
2214 libsystemd-label.la \
2215 libsystemd-shared.la
2217 # ------------------------------------------------------------------------------
2218 systemd_debug_generator_SOURCES = \
2219 src/debug-generator/debug-generator.c
2221 systemd_debug_generator_LDADD = \
2222 libsystemd-label.la \
2223 libsystemd-shared.la
2225 # ------------------------------------------------------------------------------
2226 systemd_fstab_generator_SOURCES = \
2227 src/fstab-generator/fstab-generator.c \
2228 src/core/mount-setup.c
2230 systemd_fstab_generator_LDADD = \
2231 libsystemd-label.la \
2232 libsystemd-shared.la
2234 # ------------------------------------------------------------------------------
2235 systemd_system_update_generator_SOURCES = \
2236 src/system-update-generator/system-update-generator.c
2238 systemd_system_update_generator_LDADD = \
2239 libsystemd-label.la \
2240 libsystemd-shared.la
2242 # ------------------------------------------------------------------------------
2244 systemgenerator_PROGRAMS += \
2245 systemd-hibernate-resume-generator
2247 rootlibexec_PROGRAMS += \
2248 systemd-hibernate-resume
2250 systemd_hibernate_resume_SOURCES = \
2251 src/hibernate-resume/hibernate-resume.c
2253 systemd_hibernate_resume_LDADD = \
2254 libsystemd-internal.la \
2255 libsystemd-shared.la
2257 systemd_hibernate_resume_generator_SOURCES = \
2258 src/hibernate-resume/hibernate-resume-generator.c
2260 systemd_hibernate_resume_generator_LDADD = \
2261 libsystemd-label.la \
2262 libsystemd-shared.la
2265 units/systemd-hibernate.service.in \
2266 units/systemd-hibernate-resume@.service.in \
2267 units/systemd-hybrid-sleep.service.in
2269 dist_systemunit_DATA += \
2270 units/hibernate.target \
2271 units/hybrid-sleep.target
2273 nodist_systemunit_DATA += \
2274 units/systemd-hibernate.service \
2275 units/systemd-hibernate-resume@.service \
2276 units/systemd-hybrid-sleep.service
2279 # ------------------------------------------------------------------------------
2281 systemgenerator_PROGRAMS += \
2282 systemd-efi-boot-generator
2284 systemd_efi_boot_generator_SOURCES = \
2285 src/efi-boot-generator/efi-boot-generator.c
2287 systemd_efi_boot_generator_LDADD = \
2288 libsystemd-label.la \
2289 libsystemd-shared.la
2291 # ------------------------------------------------------------------------------
2294 src/boot/boot-loader.h \
2295 src/boot/bootctl.c \
2296 src/boot/boot-loader.c \
2300 libsystemd-shared.la \
2301 libsystemd-internal.la
2306 dist_bashcompletion_DATA += \
2307 shell-completion/bash/bootctl
2309 dist_zshcompletion_DATA += \
2310 shell-completion/zsh/_bootctl
2314 # ------------------------------------------------------------------------------
2316 systemgenerator_PROGRAMS += \
2317 systemd-gpt-auto-generator
2319 systemd_gpt_auto_generator_SOURCES = \
2320 src/gpt-auto-generator/gpt-auto-generator.c \
2321 src/shared/blkid-util.h
2323 systemd_gpt_auto_generator_LDADD = \
2324 libsystemd-label.la \
2325 libsystemd-internal.la \
2326 libudev-internal.la \
2327 libsystemd-shared.la \
2330 systemd_gpt_auto_generator_CFLAGS = \
2335 # ------------------------------------------------------------------------------
2337 systemgenerator_PROGRAMS += \
2338 systemd-dbus1-generator
2340 systemd_dbus1_generator_SOURCES = \
2341 src/dbus1-generator/dbus1-generator.c
2343 systemd_dbus1_generator_LDADD = \
2344 libsystemd-label.la \
2345 libsystemd-shared.la \
2346 libsystemd-internal.la
2348 dbus1-generator-install-hook:
2349 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2350 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2351 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2353 dbus1-generator-uninstall-hook:
2354 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2356 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2357 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2360 # ------------------------------------------------------------------------------
2361 systemd_sysv_generator_SOURCES = \
2362 src/sysv-generator/sysv-generator.c
2364 systemd_sysv_generator_LDADD = \
2365 libsystemd-core.la \
2366 libsystemd-label.la \
2367 libsystemd-shared.la
2369 # ------------------------------------------------------------------------------
2370 systemd_rc_local_generator_SOURCES = \
2371 src/rc-local-generator/rc-local-generator.c
2373 systemd_rc_local_generator_LDADD = \
2374 libsystemd-label.la \
2375 libsystemd-shared.la
2377 # ------------------------------------------------------------------------------
2378 systemd_remount_fs_SOURCES = \
2379 src/remount-fs/remount-fs.c \
2380 src/core/mount-setup.c \
2381 src/core/mount-setup.h
2383 systemd_remount_fs_LDADD = \
2384 libsystemd-label.la \
2385 libsystemd-shared.la
2387 # ------------------------------------------------------------------------------
2388 systemd_cgroups_agent_SOURCES = \
2389 src/cgroups-agent/cgroups-agent.c
2391 systemd_cgroups_agent_LDADD = \
2392 libsystemd-internal.la \
2393 libsystemd-shared.la
2395 # ------------------------------------------------------------------------------
2396 systemd_escape_SOURCES = \
2399 systemd_escape_LDADD = \
2400 libsystemd-shared.la
2402 # -----------------------------------------------------------------------------
2403 systemctl_SOURCES = \
2404 src/systemctl/systemctl.c
2407 libsystemd-units.la \
2408 libsystemd-label.la \
2409 libsystemd-internal.la \
2410 libsystemd-logs.la \
2411 libsystemd-journal-internal.la \
2412 libsystemd-shared.la
2414 # ------------------------------------------------------------------------------
2415 systemd_notify_SOURCES = \
2418 systemd_notify_LDADD = \
2419 libsystemd-internal.la \
2420 libsystemd-shared.la
2422 # ------------------------------------------------------------------------------
2423 systemd_path_SOURCES = \
2426 systemd_path_LDADD = \
2427 libsystemd-internal.la \
2428 libsystemd-shared.la
2430 # ------------------------------------------------------------------------------
2431 systemd_ask_password_SOURCES = \
2432 src/ask-password/ask-password.c
2434 systemd_ask_password_LDADD = \
2435 libsystemd-label.la \
2436 libsystemd-shared.la
2438 # ------------------------------------------------------------------------------
2439 systemd_reply_password_SOURCES = \
2440 src/reply-password/reply-password.c
2442 systemd_reply_password_LDADD = \
2443 libsystemd-shared.la
2445 # ------------------------------------------------------------------------------
2446 systemd_cgls_SOURCES = \
2449 systemd_cgls_LDADD = \
2450 libsystemd-internal.la \
2451 libsystemd-shared.la
2453 # ------------------------------------------------------------------------------
2454 systemd_cgtop_SOURCES = \
2457 systemd_cgtop_LDADD = \
2458 libsystemd-shared.la
2460 # ------------------------------------------------------------------------------
2461 systemd_nspawn_SOURCES = \
2462 src/nspawn/nspawn.c \
2463 src/core/mount-setup.c \
2464 src/core/mount-setup.h \
2465 src/core/loopback-setup.c \
2466 src/core/loopback-setup.h
2468 systemd_nspawn_CFLAGS = \
2473 systemd_nspawn_LDADD = \
2474 libsystemd-label.la \
2475 libsystemd-internal.la \
2476 libudev-internal.la \
2477 libsystemd-shared.la \
2481 systemd_nspawn_LDADD += \
2482 libsystemd-seccomp.la \
2486 # ------------------------------------------------------------------------------
2487 systemd_run_SOURCES = \
2490 systemd_run_LDADD = \
2491 libsystemd-label.la \
2492 libsystemd-internal.la \
2493 libsystemd-shared.la
2495 # ------------------------------------------------------------------------------
2496 systemd_bus_proxyd_SOURCES = \
2497 src/bus-proxyd/bus-proxyd.c \
2498 src/bus-proxyd/bus-policy.c \
2499 src/bus-proxyd/bus-policy.h
2501 systemd_bus_proxyd_LDADD = \
2502 libsystemd-internal.la \
2503 libsystemd-shared.la
2505 bus-proxyd-install-hook:
2506 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
2507 $(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2508 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
2510 bus-proxyd-uninstall-hook:
2511 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2513 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
2514 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
2517 nodist_systemunit_DATA += \
2518 units/systemd-bus-proxyd@.service
2520 dist_systemunit_DATA += \
2521 units/systemd-bus-proxyd.socket
2523 nodist_userunit_DATA += \
2524 units/user/systemd-bus-proxyd@.service
2526 dist_userunit_DATA += \
2527 units/user/systemd-bus-proxyd.socket
2531 units/systemd-bus-proxyd@.service.in \
2532 units/user/systemd-bus-proxyd@.service.in
2534 # ------------------------------------------------------------------------------
2535 systemd_tty_ask_password_agent_SOURCES = \
2536 src/tty-ask-password-agent/tty-ask-password-agent.c
2538 systemd_tty_ask_password_agent_LDADD = \
2539 libsystemd-label.la \
2540 libsystemd-shared.la
2542 # ------------------------------------------------------------------------------
2543 libsystemd_internal_la_SOURCES = \
2544 src/systemd/sd-bus.h \
2545 src/systemd/sd-bus-protocol.h \
2546 src/systemd/sd-bus-vtable.h \
2547 src/systemd/sd-utf8.h \
2548 src/systemd/sd-event.h \
2549 src/systemd/sd-rtnl.h \
2550 src/systemd/sd-resolve.h \
2551 src/systemd/sd-login.h \
2552 src/systemd/sd-id128.h \
2553 src/systemd/sd-daemon.h \
2554 src/systemd/sd-path.h \
2555 src/systemd/sd-network.h \
2556 src/libsystemd/sd-bus/sd-bus.c \
2557 src/libsystemd/sd-bus/bus-control.c \
2558 src/libsystemd/sd-bus/bus-control.h \
2559 src/libsystemd/sd-bus/bus-error.c \
2560 src/libsystemd/sd-bus/bus-error.h \
2561 src/libsystemd/sd-bus/bus-internal.c \
2562 src/libsystemd/sd-bus/bus-internal.h \
2563 src/libsystemd/sd-bus/bus-socket.c \
2564 src/libsystemd/sd-bus/bus-socket.h \
2565 src/libsystemd/sd-bus/bus-kernel.c \
2566 src/libsystemd/sd-bus/bus-kernel.h \
2567 src/libsystemd/sd-bus/bus-container.c \
2568 src/libsystemd/sd-bus/bus-container.h \
2569 src/libsystemd/sd-bus/bus-message.c \
2570 src/libsystemd/sd-bus/bus-message.h \
2571 src/libsystemd/sd-bus/bus-creds.c \
2572 src/libsystemd/sd-bus/bus-creds.h \
2573 src/libsystemd/sd-bus/bus-signature.c \
2574 src/libsystemd/sd-bus/bus-signature.h \
2575 src/libsystemd/sd-bus/bus-type.c \
2576 src/libsystemd/sd-bus/bus-type.h \
2577 src/libsystemd/sd-bus/bus-match.c \
2578 src/libsystemd/sd-bus/bus-match.h \
2579 src/libsystemd/sd-bus/bus-bloom.c \
2580 src/libsystemd/sd-bus/bus-bloom.h \
2581 src/libsystemd/sd-bus/bus-introspect.c \
2582 src/libsystemd/sd-bus/bus-introspect.h \
2583 src/libsystemd/sd-bus/bus-objects.c \
2584 src/libsystemd/sd-bus/bus-objects.h \
2585 src/libsystemd/sd-bus/bus-gvariant.c \
2586 src/libsystemd/sd-bus/bus-gvariant.h \
2587 src/libsystemd/sd-bus/bus-convenience.c \
2588 src/libsystemd/sd-bus/bus-track.c \
2589 src/libsystemd/sd-bus/bus-track.h \
2590 src/libsystemd/sd-bus/bus-util.c \
2591 src/libsystemd/sd-bus/bus-util.h \
2592 src/libsystemd/sd-bus/bus-slot.c \
2593 src/libsystemd/sd-bus/bus-slot.h \
2594 src/libsystemd/sd-bus/bus-protocol.h \
2595 src/libsystemd/sd-bus/kdbus.h \
2596 src/libsystemd/sd-utf8/sd-utf8.c \
2597 src/libsystemd/sd-event/sd-event.c \
2598 src/libsystemd/sd-event/event-util.h \
2599 src/libsystemd/sd-rtnl/sd-rtnl.c \
2600 src/libsystemd/sd-rtnl/rtnl-internal.h \
2601 src/libsystemd/sd-rtnl/rtnl-message.c \
2602 src/libsystemd/sd-rtnl/rtnl-types.h \
2603 src/libsystemd/sd-rtnl/rtnl-types.c \
2604 src/libsystemd/sd-rtnl/rtnl-util.h \
2605 src/libsystemd/sd-rtnl/rtnl-util.c \
2606 src/libsystemd/sd-rtnl/local-addresses.h \
2607 src/libsystemd/sd-rtnl/local-addresses.c \
2608 src/libsystemd/sd-id128/sd-id128.c \
2609 src/libsystemd/sd-daemon/sd-daemon.c \
2610 src/libsystemd/sd-login/sd-login.c \
2611 src/libsystemd/sd-path/sd-path.c \
2612 src/libsystemd/sd-network/sd-network.c \
2613 src/libsystemd/sd-network/network-util.h \
2614 src/libsystemd/sd-network/network-util.c
2616 nodist_libsystemd_internal_la_SOURCES = \
2617 src/libsystemd/libsystemd.sym
2619 libsystemd_internal_la_CFLAGS = \
2623 libsystemd_internal_la_LIBADD = \
2626 libsystemd_resolve_la_SOURCES = \
2627 src/libsystemd/sd-resolve/sd-resolve.c \
2628 src/libsystemd/sd-resolve/resolve-util.h
2630 libsystemd_resolve_la_CFLAGS = \
2634 libsystemd_resolve_la_LIBADD = \
2637 noinst_LTLIBRARIES += \
2638 libsystemd-internal.la \
2639 libsystemd-resolve.la
2641 libsystemd_dump_la_SOURCES = \
2642 src/libsystemd/sd-bus/bus-dump.c \
2643 src/libsystemd/sd-bus/bus-dump.h
2645 noinst_LTLIBRARIES += \
2649 src/libsystemd/libsystemd.sym.m4 \
2650 src/libsystemd/libsystemd.pc.in \
2651 src/libsystemd/sd-bus/DIFFERENCES \
2652 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2655 src/libsystemd/libsystemd.sym
2658 src/libsystemd/libsystemd.sym
2660 libsystemd_la_SOURCES = \
2661 $(libsystemd_internal_la_SOURCES) \
2662 $(libsystemd_resolve_la_SOURCES) \
2663 $(libsystemd_journal_internal_la_SOURCES)
2665 nodist_libsystemd_la_SOURCES = \
2666 $(nodist_libsystemd_internal_la_SOURCES)
2668 libsystemd_la_CFLAGS = \
2669 $(libsystemd_internal_la_CFLAGS) \
2670 $(libsystemd_resolve_la_CFLAGS) \
2671 $(libsystemd_journal_internal_la_CFLAGS)
2673 libsystemd_la_LDFLAGS = \
2675 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2676 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2678 libsystemd_la_LIBADD = \
2679 libsystemd-shared.la \
2680 $(libsystemd_internal_la_LIBADD) \
2681 $(libsystemd_journal_internal_la_LIBADD) \
2682 $(libsystemd_resolve_la_LIBADD)
2684 libsystemd-install-hook:
2685 libname=libsystemd.so && $(move-to-rootlibdir)
2687 libsystemd-uninstall-hook:
2688 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2690 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2691 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2693 pkgconfiglib_DATA += \
2694 src/libsystemd/libsystemd.pc
2696 pkginclude_HEADERS += \
2697 src/systemd/sd-login.h \
2698 src/systemd/sd-id128.h \
2699 src/systemd/sd-daemon.h
2702 pkginclude_HEADERS += \
2703 src/systemd/sd-bus.h \
2704 src/systemd/sd-bus-protocol.h \
2705 src/systemd/sd-bus-vtable.h \
2706 src/systemd/sd-utf8.h \
2707 src/systemd/sd-event.h \
2708 src/systemd/sd-rtnl.h \
2709 src/systemd/sd-resolve.h \
2710 src/systemd/sd-path.h
2713 lib_LTLIBRARIES += \
2718 test-bus-signature \
2724 test-bus-kernel-bloom \
2725 test-bus-kernel-benchmark \
2726 test-bus-zero-copy \
2727 test-bus-introspect \
2739 test_bus_marshal_SOURCES = \
2740 src/libsystemd/sd-bus/test-bus-marshal.c
2742 test_bus_marshal_LDADD = \
2743 libsystemd-dump.la \
2744 libsystemd-internal.la \
2745 libsystemd-shared.la \
2749 test_bus_marshal_CFLAGS = \
2754 test_bus_signature_SOURCES = \
2755 src/libsystemd/sd-bus/test-bus-signature.c
2757 test_bus_signature_LDADD = \
2758 libsystemd-shared.la \
2759 libsystemd-internal.la
2761 test_bus_chat_SOURCES = \
2762 src/libsystemd/sd-bus/test-bus-chat.c
2764 test_bus_chat_CFLAGS = \
2768 test_bus_chat_LDADD = \
2769 libsystemd-internal.la \
2770 libsystemd-shared.la
2772 test_bus_cleanup_SOURCES = \
2773 src/libsystemd/sd-bus/test-bus-cleanup.c
2775 test_bus_cleanup_CFLAGS = \
2779 test_bus_cleanup_LDADD = \
2780 libsystemd-internal.la \
2781 libsystemd-shared.la
2783 test_bus_server_SOURCES = \
2784 src/libsystemd/sd-bus/test-bus-server.c
2786 test_bus_server_CFLAGS = \
2790 test_bus_server_LDADD = \
2791 libsystemd-internal.la \
2792 libsystemd-shared.la
2794 test_bus_objects_SOURCES = \
2795 src/libsystemd/sd-bus/test-bus-objects.c
2797 test_bus_objects_CFLAGS = \
2801 test_bus_objects_LDADD = \
2802 libsystemd-dump.la \
2803 libsystemd-internal.la \
2804 libsystemd-shared.la
2806 test_bus_error_SOURCES = \
2807 src/libsystemd/sd-bus/test-bus-error.c
2809 test_bus_error_LDADD = \
2810 libsystemd-internal.la \
2811 libsystemd-shared.la
2813 test_bus_gvariant_SOURCES = \
2814 src/libsystemd/sd-bus/test-bus-gvariant.c
2816 test_bus_gvariant_LDADD = \
2817 libsystemd-dump.la \
2818 libsystemd-internal.la \
2819 libsystemd-shared.la \
2822 test_bus_gvariant_CFLAGS = \
2826 test_bus_creds_SOURCES = \
2827 src/libsystemd/sd-bus/test-bus-creds.c
2829 test_bus_creds_LDADD = \
2830 libsystemd-dump.la \
2831 libsystemd-internal.la \
2832 libsystemd-shared.la
2834 test_bus_match_SOURCES = \
2835 src/libsystemd/sd-bus/test-bus-match.c
2837 test_bus_match_LDADD = \
2838 libsystemd-internal.la \
2839 libsystemd-shared.la
2841 test_bus_kernel_SOURCES = \
2842 src/libsystemd/sd-bus/test-bus-kernel.c
2844 test_bus_kernel_LDADD = \
2845 libsystemd-dump.la \
2846 libsystemd-internal.la \
2847 libsystemd-shared.la
2849 test_bus_kernel_bloom_SOURCES = \
2850 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
2852 test_bus_kernel_bloom_LDADD = \
2853 libsystemd-internal.la \
2854 libsystemd-shared.la
2856 test_bus_kernel_benchmark_SOURCES = \
2857 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
2859 test_bus_kernel_benchmark_LDADD = \
2860 libsystemd-internal.la \
2861 libsystemd-shared.la
2863 test_bus_zero_copy_SOURCES = \
2864 src/libsystemd/sd-bus/test-bus-zero-copy.c
2866 test_bus_zero_copy_LDADD = \
2867 libsystemd-dump.la \
2868 libsystemd-internal.la \
2869 libsystemd-shared.la
2871 test_bus_introspect_SOURCES = \
2872 src/libsystemd/sd-bus/test-bus-introspect.c
2874 test_bus_introspect_LDADD = \
2875 libsystemd-internal.la \
2876 libsystemd-shared.la
2878 test_event_SOURCES = \
2879 src/libsystemd/sd-event/test-event.c
2881 test_event_LDADD = \
2882 libsystemd-internal.la \
2883 libsystemd-shared.la
2885 test_rtnl_SOURCES = \
2886 src/libsystemd/sd-rtnl/test-rtnl.c
2889 libsystemd-internal.la \
2890 libsystemd-shared.la
2892 test_resolve_SOURCES = \
2893 src/libsystemd/sd-resolve/test-resolve.c
2895 test_resolve_LDADD = \
2896 libsystemd-resolve.la \
2897 libsystemd-internal.la \
2898 libsystemd-shared.la
2900 test_resolve_CFLAGS = \
2905 src/libsystemd/sd-bus/busctl.c
2908 libsystemd-dump.la \
2909 libsystemd-internal.la \
2910 libsystemd-shared.la
2912 # ------------------------------------------------------------------------------
2913 noinst_LTLIBRARIES += \
2914 libsystemd-network.la
2916 libsystemd_network_la_CFLAGS = \
2920 libsystemd_network_la_SOURCES = \
2921 src/systemd/sd-dhcp-client.h \
2922 src/systemd/sd-dhcp-server.h \
2923 src/systemd/sd-dhcp-lease.h \
2924 src/systemd/sd-ipv4ll.h \
2925 src/systemd/sd-icmp6-nd.h \
2926 src/systemd/sd-dhcp6-client.h \
2927 src/systemd/sd-dhcp6-lease.h \
2928 src/systemd/sd-pppoe.h \
2929 src/libsystemd-network/sd-dhcp-client.c \
2930 src/libsystemd-network/sd-dhcp-server.c \
2931 src/libsystemd-network/dhcp-network.c \
2932 src/libsystemd-network/dhcp-option.c \
2933 src/libsystemd-network/dhcp-packet.c \
2934 src/libsystemd-network/dhcp-internal.h \
2935 src/libsystemd-network/dhcp-server-internal.h \
2936 src/libsystemd-network/dhcp-protocol.h \
2937 src/libsystemd-network/dhcp-lease-internal.h \
2938 src/libsystemd-network/sd-dhcp-lease.c \
2939 src/libsystemd-network/sd-ipv4ll.c \
2940 src/libsystemd-network/ipv4ll-network.c \
2941 src/libsystemd-network/ipv4ll-packet.c \
2942 src/libsystemd-network/ipv4ll-internal.h \
2943 src/libsystemd-network/sd-pppoe.c \
2944 src/libsystemd-network/network-internal.c \
2945 src/libsystemd-network/network-internal.h \
2946 src/libsystemd-network/sd-icmp6-nd.c \
2947 src/libsystemd-network/sd-dhcp6-client.c \
2948 src/libsystemd-network/dhcp6-internal.h \
2949 src/libsystemd-network/dhcp6-protocol.h \
2950 src/libsystemd-network/dhcp6-network.c \
2951 src/libsystemd-network/dhcp6-option.c \
2952 src/libsystemd-network/dhcp6-lease-internal.h \
2953 src/libsystemd-network/sd-dhcp6-lease.c
2955 libsystemd_network_la_LIBADD = \
2956 libudev-internal.la \
2957 libsystemd-label.la \
2958 libsystemd-internal.la \
2959 libsystemd-shared.la \
2962 test_dhcp_option_SOURCES = \
2963 src/libsystemd-network/dhcp-protocol.h \
2964 src/libsystemd-network/dhcp-internal.h \
2965 src/libsystemd-network/test-dhcp-option.c
2967 test_dhcp_option_LDADD = \
2968 libsystemd-network.la \
2969 libsystemd-internal.la \
2970 libsystemd-shared.la
2972 test_dhcp_client_SOURCES = \
2973 src/systemd/sd-dhcp-client.h \
2974 src/libsystemd-network/dhcp-protocol.h \
2975 src/libsystemd-network/dhcp-internal.h \
2976 src/libsystemd-network/test-dhcp-client.c
2978 test_dhcp_client_LDADD = \
2979 libsystemd-network.la \
2980 libsystemd-label.la \
2981 libsystemd-internal.la \
2982 libsystemd-shared.la
2984 test_dhcp_server_SOURCES = \
2985 src/libsystemd-network/test-dhcp-server.c
2987 test_dhcp_server_LDADD = \
2988 libsystemd-network.la \
2989 libsystemd-internal.la \
2990 libsystemd-shared.la
2992 test_ipv4ll_SOURCES = \
2993 src/systemd/sd-ipv4ll.h \
2994 src/libsystemd-network/ipv4ll-internal.h \
2995 src/libsystemd-network/test-ipv4ll.c
2997 test_ipv4ll_LDADD = \
2998 libsystemd-network.la \
2999 libsystemd-label.la \
3000 libsystemd-internal.la \
3001 libsystemd-shared.la
3003 test_pppoe_SOURCES = \
3004 src/systemd/sd-pppoe.h \
3005 src/libsystemd-network/test-pppoe.c
3007 test_pppoe_LDADD = \
3008 libsystemd-network.la \
3009 libsystemd-shared.la
3011 test_icmp6_rs_SOURCES = \
3012 src/systemd/sd-dhcp6-client.h \
3013 src/systemd/sd-icmp6-nd.h \
3014 src/libsystemd-network/dhcp6-internal.h \
3015 src/libsystemd-network/test-icmp6-rs.c
3017 test_icmp6_rs_LDADD = \
3018 libsystemd-network.la \
3019 libsystemd-internal.la \
3020 libsystemd-shared.la
3022 test_dhcp6_client_SOURCES = \
3023 src/systemd/sd-dhcp6-client.h \
3024 src/libsystemd-network/dhcp6-internal.h \
3025 src/libsystemd-network/test-dhcp6-client.c
3027 test_dhcp6_client_LDADD = \
3028 libsystemd-network.la \
3029 libsystemd-internal.la \
3030 libsystemd-shared.la
3043 # ------------------------------------------------------------------------------
3045 noinst_LTLIBRARIES += \
3046 libsystemd-terminal.la
3048 rootlibexec_PROGRAMS += \
3051 noinst_PROGRAMS += \
3056 dist_pkgdata_DATA += \
3057 src/libsystemd-terminal/unifont-glyph-array.bin
3059 nodist_userunit_DATA += \
3060 units/user/systemd-consoled.service
3062 USER_DEFAULT_TARGET_WANTS += \
3063 systemd-consoled.service
3066 units/user/systemd-consoled.service.in
3074 libsystemd_terminal_la_CFLAGS = \
3078 libsystemd_terminal_la_SOURCES = \
3079 src/libsystemd-terminal/grdev.h \
3080 src/libsystemd-terminal/grdev-internal.h \
3081 src/libsystemd-terminal/grdev.c \
3082 src/libsystemd-terminal/grdev-drm.c \
3083 src/libsystemd-terminal/idev.h \
3084 src/libsystemd-terminal/idev-internal.h \
3085 src/libsystemd-terminal/idev.c \
3086 src/libsystemd-terminal/idev-evdev.c \
3087 src/libsystemd-terminal/idev-keyboard.c \
3088 src/libsystemd-terminal/sysview.h \
3089 src/libsystemd-terminal/sysview-internal.h \
3090 src/libsystemd-terminal/sysview.c \
3091 src/libsystemd-terminal/term.h \
3092 src/libsystemd-terminal/term-internal.h \
3093 src/libsystemd-terminal/term-charset.c \
3094 src/libsystemd-terminal/term-page.c \
3095 src/libsystemd-terminal/term-parser.c \
3096 src/libsystemd-terminal/term-screen.c \
3097 src/libsystemd-terminal/term-wcwidth.c \
3098 src/libsystemd-terminal/unifont.h \
3099 src/libsystemd-terminal/unifont-def.h \
3100 src/libsystemd-terminal/unifont.c
3102 libsystemd_terminal_la_LIBADD = \
3103 libudev-internal.la \
3104 libsystemd-internal.la \
3105 libsystemd-shared.la \
3108 systemd_consoled_CFLAGS = \
3112 systemd_consoled_SOURCES = \
3113 src/console/consoled.h \
3114 src/console/consoled.c \
3115 src/console/consoled-display.c \
3116 src/console/consoled-manager.c \
3117 src/console/consoled-session.c \
3118 src/console/consoled-terminal.c \
3119 src/console/consoled-workspace.c
3121 systemd_consoled_LDADD = \
3122 libsystemd-terminal.la \
3123 libsystemd-internal.la \
3124 libsystemd-shared.la \
3127 systemd_evcat_CFLAGS = \
3131 systemd_evcat_SOURCES = \
3132 src/libsystemd-terminal/evcat.c
3134 systemd_evcat_LDADD = \
3135 libsystemd-terminal.la \
3136 libsystemd-internal.la \
3137 libsystemd-shared.la \
3140 systemd_modeset_CFLAGS = \
3144 systemd_modeset_SOURCES = \
3145 src/libsystemd-terminal/modeset.c
3147 systemd_modeset_LDADD = \
3148 libsystemd-terminal.la \
3149 libsystemd-internal.la \
3150 libsystemd-shared.la \
3153 systemd_subterm_SOURCES = \
3154 src/libsystemd-terminal/subterm.c
3156 systemd_subterm_LDADD = \
3157 libsystemd-terminal.la \
3158 libsystemd-internal.la \
3159 libsystemd-shared.la
3161 test_term_page_SOURCES = \
3162 src/libsystemd-terminal/test-term-page.c
3164 test_term_page_LDADD = \
3165 libsystemd-terminal.la \
3166 libsystemd-internal.la \
3167 libsystemd-shared.la
3169 test_term_parser_SOURCES = \
3170 src/libsystemd-terminal/test-term-parser.c
3172 test_term_parser_LDADD = \
3173 libsystemd-terminal.la \
3174 libsystemd-internal.la \
3175 libsystemd-shared.la
3177 test_unifont_SOURCES = \
3178 src/libsystemd-terminal/test-unifont.c
3180 test_unifont_LDADD = \
3181 libsystemd-terminal.la \
3182 libsystemd-internal.la \
3183 libsystemd-shared.la
3185 .PHONY: update-unifont
3186 update-unifont: tools/compile-unifont.py
3187 $(AM_V_GEN)$(PYTHON) $< \
3188 <$(top_srcdir)/src/libsystemd-terminal/unifont.hex \
3189 >$(top_srcdir)/src/libsystemd-terminal/unifont-glyph-array.bin
3190 @echo "unifont-glyph-array.bin has been regenerated"
3192 # ------------------------------------------------------------------------------
3202 include_HEADERS += \
3203 src/libudev/libudev.h
3205 lib_LTLIBRARIES += \
3208 libudev_la_SOURCES =\
3209 src/libudev/libudev.sym \
3210 src/libudev/libudev-private.h \
3211 src/libudev/libudev.c \
3212 src/libudev/libudev-list.c \
3213 src/libudev/libudev-util.c \
3214 src/libudev/libudev-device.c \
3215 src/libudev/libudev-enumerate.c \
3216 src/libudev/libudev-monitor.c \
3217 src/libudev/libudev-queue.c \
3218 src/libudev/libudev-hwdb-def.h \
3219 src/libudev/libudev-hwdb.c
3221 libudev_la_CFLAGS = \
3225 libudev_la_LDFLAGS = \
3227 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3228 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3230 libudev_la_LIBADD = \
3231 libsystemd-internal.la \
3232 libsystemd-shared.la
3234 pkgconfiglib_DATA += \
3235 src/libudev/libudev.pc
3238 src/libudev/libudev.pc.in
3241 src/libudev/libudev.pc \
3246 $(AM_V_at)$(MKDIR_P) $(dir $@)
3247 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
3250 $(AM_V_at)$(MKDIR_P) $(dir $@)
3251 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
3253 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3254 libudev-install-hook:
3255 libname=libudev.so && $(move-to-rootlibdir)
3257 libudev-uninstall-hook:
3258 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3260 INSTALL_EXEC_HOOKS += libudev-install-hook
3261 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3263 # ------------------------------------------------------------------------------
3264 noinst_LTLIBRARIES += \
3267 libudev_internal_la_SOURCES =\
3268 $(libudev_la_SOURCES) \
3269 src/libudev/libudev-device-private.c
3271 libudev_internal_la_CFLAGS = \
3273 -fvisibility=default
3275 # ------------------------------------------------------------------------------
3277 $(sysconfdir)/udev/rules.d \
3278 $(sysconfdir)/udev/hwdb.d
3280 dist_network_DATA = \
3281 network/99-default.link \
3282 network/80-container-host0.network \
3283 network/80-container-ve.network
3285 dist_udevrules_DATA += \
3286 rules/42-usb-hid-pm.rules \
3287 rules/50-udev-default.rules \
3288 rules/60-drm.rules \
3289 rules/60-keyboard.rules \
3290 rules/60-persistent-storage-tape.rules \
3291 rules/60-persistent-serial.rules \
3292 rules/60-persistent-input.rules \
3293 rules/60-persistent-alsa.rules \
3294 rules/60-persistent-storage.rules \
3295 rules/64-btrfs.rules \
3296 rules/75-net-description.rules \
3297 rules/75-tty-description.rules \
3298 rules/78-sound-card.rules \
3299 rules/80-net-setup-link.rules \
3300 rules/95-udev-late.rules
3302 nodist_udevrules_DATA += \
3303 rules/99-systemd.rules
3305 dist_udevhwdb_DATA = \
3306 hwdb/20-pci-vendor-model.hwdb \
3307 hwdb/20-pci-classes.hwdb \
3308 hwdb/20-usb-vendor-model.hwdb \
3309 hwdb/20-usb-classes.hwdb \
3310 hwdb/20-sdio-vendor-model.hwdb \
3311 hwdb/20-sdio-classes.hwdb \
3312 hwdb/20-bluetooth-vendor-product.hwdb \
3313 hwdb/20-acpi-vendor.hwdb \
3315 hwdb/20-net-ifname.hwdb \
3316 hwdb/60-keyboard.hwdb
3318 udevconfdir = $(sysconfdir)/udev
3319 dist_udevconf_DATA = \
3322 sharepkgconfigdir = $(datadir)/pkgconfig
3323 sharepkgconfig_DATA = \
3327 rules/99-systemd.rules.in \
3331 rules/99-systemd.rules \
3335 units/systemd-udevd.service.in \
3336 units/systemd-udev-trigger.service.in \
3337 units/systemd-udev-settle.service.in \
3338 units/systemd-udev-hwdb-update.service.in
3341 units/systemd-udevd.service \
3342 units/systemd-udev-trigger.service \
3343 units/systemd-udev-settle.service \
3344 units/systemd-udev-hwdb-update.service
3346 SOCKETS_TARGET_WANTS += \
3347 systemd-udevd-control.socket \
3348 systemd-udevd-kernel.socket
3350 SYSINIT_TARGET_WANTS += \
3351 systemd-udevd.service \
3352 systemd-udev-trigger.service \
3353 systemd-udev-hwdb-update.service
3355 rootbin_PROGRAMS += \
3358 rootlibexec_PROGRAMS += \
3361 noinst_LTLIBRARIES += \
3364 src/udev/keyboard-keys.txt:
3365 $(AM_V_at)$(MKDIR_P) $(dir $@)
3366 $(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/' > $@
3368 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
3369 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3371 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3372 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3374 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
3375 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
3377 libudev_core_la_SOURCES = \
3379 src/udev/udev-event.c \
3380 src/udev/udev-watch.c \
3381 src/udev/udev-node.c \
3382 src/udev/udev-rules.c \
3383 src/udev/udev-ctrl.c \
3384 src/udev/udev-builtin.c \
3385 src/udev/udev-builtin-btrfs.c \
3386 src/udev/udev-builtin-hwdb.c \
3387 src/udev/udev-builtin-input_id.c \
3388 src/udev/udev-builtin-keyboard.c \
3389 src/udev/udev-builtin-net_id.c \
3390 src/udev/udev-builtin-net_setup_link.c \
3391 src/udev/udev-builtin-path_id.c \
3392 src/udev/udev-builtin-usb_id.c \
3393 src/udev/net/link-config.h \
3394 src/udev/net/link-config.c \
3395 src/udev/net/ethtool-util.h \
3396 src/udev/net/ethtool-util.c
3398 nodist_libudev_core_la_SOURCES = \
3399 src/udev/keyboard-keys-from-name.h \
3400 src/udev/keyboard-keys-to-name.h \
3401 src/udev/net/link-config-gperf.c
3404 $(nodist_libudev_core_la_SOURCES)
3407 src/udev/keyboard-keys-from-name.gperf \
3408 src/udev/keyboard-keys.txt \
3409 src/udev/net/link-config-gperf.c
3412 src/udev/net/link-config-gperf.gperf
3414 libudev_core_la_CFLAGS = \
3419 libudev_core_la_LIBADD = \
3420 libudev-internal.la \
3421 libsystemd-label.la \
3422 libsystemd-internal.la \
3423 libsystemd-network.la \
3424 libsystemd-shared.la \
3429 libudev_core_la_SOURCES += \
3430 src/udev/udev-builtin-kmod.c
3432 dist_udevrules_DATA += \
3433 rules/80-drivers.rules
3437 libudev_core_la_SOURCES += \
3438 src/udev/udev-builtin-blkid.c
3442 libudev_core_la_SOURCES += \
3443 src/udev/udev-builtin-uaccess.c \
3444 src/login/logind-acl.c \
3445 src/libsystemd/sd-login/sd-login.c \
3446 src/systemd/sd-login.h
3448 libudev_core_la_LIBADD += \
3452 systemd_udevd_SOURCES = \
3455 systemd_udevd_LDADD = \
3459 src/udev/udevadm.c \
3460 src/udev/udevadm-info.c \
3461 src/udev/udevadm-control.c \
3462 src/udev/udevadm-monitor.c \
3463 src/udev/udevadm-hwdb.c \
3464 src/udev/udevadm-settle.c \
3465 src/udev/udevadm-trigger.c \
3466 src/udev/udevadm-test.c \
3467 src/udev/udevadm-test-builtin.c
3472 # Update hwdb on installation. Do not bother if installing
3473 # in DESTDIR, since this is likely for packaging purposes.
3475 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
3477 INSTALL_DATA_HOOKS += \
3481 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3483 # ------------------------------------------------------------------------------
3492 test_libudev_SOURCES = \
3493 src/test/test-libudev.c
3495 test_libudev_LDADD = \
3496 libsystemd-label.la \
3497 libudev-internal.la \
3498 libsystemd-shared.la
3500 test_udev_SOURCES = \
3501 src/test/test-udev.c
3510 test_udev_LDADD += \
3517 # packed sysfs test tree
3519 $(AM_V_at)$(MKDIR_P) $(dir $@)
3520 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3524 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3529 test/rules-test.sh \
3530 test/rule-syntax-check.py
3532 # ------------------------------------------------------------------------------
3534 src/udev/ata_id/ata_id.c
3537 libudev-internal.la \
3538 libsystemd-shared.la
3540 udevlibexec_PROGRAMS += \
3543 # ------------------------------------------------------------------------------
3544 cdrom_id_SOURCES = \
3545 src/udev/cdrom_id/cdrom_id.c
3548 libudev-internal.la \
3549 libsystemd-shared.la
3551 udevlibexec_PROGRAMS += \
3554 dist_udevrules_DATA += \
3555 rules/60-cdrom_id.rules
3557 # ------------------------------------------------------------------------------
3559 src/udev/collect/collect.c
3562 libudev-internal.la \
3563 libsystemd-shared.la
3565 udevlibexec_PROGRAMS += \
3568 # ------------------------------------------------------------------------------
3570 src/udev/scsi_id/scsi_id.c \
3571 src/udev/scsi_id/scsi_serial.c \
3572 src/udev/scsi_id/scsi.h \
3573 src/udev/scsi_id/scsi_id.h
3576 libudev-internal.la \
3577 libsystemd-shared.la
3579 udevlibexec_PROGRAMS += \
3583 src/udev/scsi_id/README
3585 # ------------------------------------------------------------------------------
3587 src/udev/v4l_id/v4l_id.c
3592 udevlibexec_PROGRAMS += \
3595 dist_udevrules_DATA += \
3596 rules/60-persistent-v4l.rules
3598 # ------------------------------------------------------------------------------
3599 accelerometer_SOURCES = \
3600 src/udev/accelerometer/accelerometer.c
3602 accelerometer_LDADD = \
3603 libudev-internal.la -lm \
3604 libsystemd-shared.la
3606 udevlibexec_PROGRAMS += \
3609 dist_udevrules_DATA += \
3610 rules/61-accelerometer.rules
3612 # ------------------------------------------------------------------------------
3619 libgudev_includedir = \
3620 $(includedir)/gudev-1.0/gudev
3622 libgudev_include_HEADERS = \
3624 src/gudev/gudevenums.h \
3625 src/gudev/gudevenumtypes.h \
3626 src/gudev/gudevtypes.h \
3627 src/gudev/gudevclient.h \
3628 src/gudev/gudevdevice.h \
3629 src/gudev/gudevenumerator.h
3631 lib_LTLIBRARIES += libgudev-1.0.la
3633 pkgconfiglib_DATA += \
3634 src/gudev/gudev-1.0.pc
3637 src/gudev/gudev-1.0.pc
3639 libgudev_1_0_la_SOURCES = \
3640 src/gudev/libgudev-1.0.sym \
3641 src/gudev/gudevenums.h \
3642 src/gudev/gudevenumtypes.h \
3643 src/gudev/gudevenumtypes.h\
3644 src/gudev/gudevtypes.h \
3645 src/gudev/gudevclient.h \
3646 src/gudev/gudevclient.c \
3647 src/gudev/gudevdevice.h \
3648 src/gudev/gudevdevice.c \
3649 src/gudev/gudevenumerator.h \
3650 src/gudev/gudevenumerator.c \
3651 src/gudev/gudevprivate.h
3653 nodist_libgudev_1_0_la_SOURCES = \
3654 src/gudev/gudevmarshal.h \
3655 src/gudev/gudevmarshal.c \
3656 src/gudev/gudevenumtypes.h \
3657 src/gudev/gudevenumtypes.c
3660 $(nodist_libgudev_1_0_la_SOURCES)
3662 libgudev_1_0_la_CPPFLAGS = \
3664 -I$(top_builddir)/src\
3665 -I$(top_srcdir)/src\
3666 -I$(top_builddir)/src/gudev \
3667 -I$(top_srcdir)/src/gudev \
3668 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3669 -D_GUDEV_COMPILATION \
3670 -DG_LOG_DOMAIN=\"GUdev\"
3672 libgudev_1_0_la_CFLAGS = \
3674 -fvisibility=default \
3677 libgudev_1_0_la_LIBADD = \
3681 libgudev_1_0_la_LDFLAGS = \
3683 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3686 -Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym
3688 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3689 $(AM_V_at)$(MKDIR_P) $(dir $@)
3690 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3692 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3693 $(AM_V_at)$(MKDIR_P) $(dir $@)
3694 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3695 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3697 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3698 $(AM_V_at)$(MKDIR_P) $(dir $@)
3699 $(AM_V_GEN)glib-mkenums --template $^ > $@
3701 if HAVE_INTROSPECTION
3702 -include $(INTROSPECTION_MAKEFILE)
3704 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3706 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3708 src_gudev_GUdev_1_0_gir_CFLAGS = \
3711 -D_GUDEV_COMPILATION \
3712 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3713 -I$(top_srcdir)/src \
3714 -I$(top_builddir)/src \
3715 -I$(top_srcdir)/src/gudev \
3716 -I$(top_builddir)/src/gudev
3718 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
3720 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
3721 --pkg-export=gudev-1.0 \
3724 src_gudev_GUdev_1_0_gir_FILES = \
3726 src/gudev/gudevtypes.h \
3727 src/gudev/gudevenums.h \
3728 src/gudev/gudevenumtypes.h \
3729 src/gudev/gudevclient.h \
3730 src/gudev/gudevdevice.h \
3731 src/gudev/gudevenumerator.h \
3732 src/gudev/gudevclient.c \
3733 src/gudev/gudevdevice.c \
3734 src/gudev/gudevenumerator.c
3736 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
3737 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
3739 girdir = $(datadir)/gir-1.0
3741 src/gudev/GUdev-1.0.gir
3743 typelibsdir = $(libdir)/girepository-1.0
3745 src/gudev/GUdev-1.0.typelib
3747 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
3748 endif # HAVE_INTROSPECTION
3752 src/gudev/gudev-1.0.pc.in \
3753 src/gudev/gudevmarshal.list \
3754 src/gudev/gudevenumtypes.h.template \
3755 src/gudev/gudevenumtypes.c.template \
3756 src/gudev/gjs-example.js \
3757 src/gudev/seed-example-enum.js \
3758 src/gudev/seed-example.js
3760 # ------------------------------------------------------------------------------
3761 mtd_probe_SOURCES = \
3762 src/udev/mtd_probe/mtd_probe.c \
3763 src/udev/mtd_probe/mtd_probe.h \
3764 src/udev/mtd_probe/probe_smartmedia.c
3766 dist_udevrules_DATA += \
3767 rules/75-probe_mtd.rules
3769 udevlibexec_PROGRAMS += \
3772 # ------------------------------------------------------------------------------
3773 test_id128_SOURCES = \
3774 src/test/test-id128.c
3776 test_id128_LDADD = \
3777 libsystemd-internal.la \
3778 libsystemd-shared.la
3783 # ------------------------------------------------------------------------------
3785 rootlibexec_PROGRAMS += \
3788 systemd_activate_SOURCES = \
3789 src/activate/activate.c
3791 systemd_activate_LDADD = \
3792 libsystemd-label.la \
3793 libsystemd-internal.la \
3794 libsystemd-shared.la
3796 # ------------------------------------------------------------------------------
3797 systemd_journald_SOURCES = \
3798 src/journal/journald.c \
3799 src/journal/journald-server.h
3801 systemd_journald_LDADD = \
3802 libsystemd-journal-core.la \
3803 libsystemd-internal.la \
3804 libsystemd-shared.la
3806 systemd_cat_SOURCES = \
3809 systemd_cat_LDADD = \
3810 libsystemd-journal-core.la
3813 rootlibexec_PROGRAMS += \
3814 systemd-journal-remote
3816 systemd_journal_remote_SOURCES = \
3817 src/journal-remote/journal-remote-parse.h \
3818 src/journal-remote/journal-remote-parse.c \
3819 src/journal-remote/journal-remote-write.h \
3820 src/journal-remote/journal-remote-write.c \
3821 src/journal-remote/journal-remote.h \
3822 src/journal-remote/journal-remote.c
3824 systemd_journal_remote_LDADD = \
3825 libsystemd-internal.la \
3826 libsystemd-journal-core.la
3828 systemd_journal_remote_SOURCES += \
3829 src/journal-remote/microhttpd-util.h \
3830 src/journal-remote/microhttpd-util.c
3832 systemd_journal_remote_CFLAGS = \
3834 $(MICROHTTPD_CFLAGS)
3836 systemd_journal_remote_LDADD += \
3840 systemd_journal_remote_LDADD += \
3843 # systemd-journal-remote make sense mostly with full crypto stack
3844 dist_systemunit_DATA += \
3845 units/systemd-journal-remote.socket
3847 nodist_systemunit_DATA += \
3848 units/systemd-journal-remote.service
3851 units/systemd-journal-remote.service.in
3853 journal-remote-install-hook: journal-install-hook
3854 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
3855 -chown 0:0 $(DESTDIR)/var/log/journal/remote
3856 -chmod 755 $(DESTDIR)/var/log/journal/remote
3858 INSTALL_EXEC_HOOKS += journal-remote-install-hook
3862 nodist_pkgsysconf_DATA += \
3863 src/journal-remote/journal-remote.conf
3866 src/journal-remote/journal-remote.conf.in
3869 src/journal-remote/journal-remote.conf
3873 rootlibexec_PROGRAMS += \
3874 systemd-journal-upload
3876 systemd_journal_upload_SOURCES = \
3877 src/journal-remote/journal-upload.h \
3878 src/journal-remote/journal-upload.c \
3879 src/journal-remote/journal-upload-journal.c
3881 systemd_journal_upload_CFLAGS = \
3885 systemd_journal_upload_LDADD = \
3886 libsystemd-internal.la \
3887 libsystemd-journal-internal.la \
3888 libsystemd-shared.la \
3891 nodist_systemunit_DATA += \
3892 units/systemd-journal-upload.service
3895 units/systemd-journal-upload.service.in
3897 nodist_pkgsysconf_DATA += \
3898 src/journal-remote/journal-upload.conf
3901 src/journal-remote/journal-upload.conf.in
3904 src/journal-remote/journal-upload.conf
3907 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3908 journalctl_CFLAGS = \
3911 journalctl_SOURCES = \
3912 src/journal/journalctl.c
3914 journalctl_LDADD = \
3915 libsystemd-journal-internal.la \
3916 libsystemd-internal.la \
3917 libsystemd-logs.la \
3918 libsystemd-shared.la
3921 journalctl_LDADD += \
3926 journalctl_SOURCES += \
3927 src/journal/journal-qrcode.c \
3928 src/journal/journal-qrcode.h
3930 journalctl_CFLAGS += \
3933 journalctl_LDADD += \
3937 test_journal_SOURCES = \
3938 src/journal/test-journal.c
3940 test_journal_LDADD = \
3941 libsystemd-journal-core.la
3943 test_journal_send_SOURCES = \
3944 src/journal/test-journal-send.c
3946 test_journal_send_LDADD = \
3947 libsystemd-journal-core.la
3949 test_journal_syslog_SOURCES = \
3950 src/journal/test-journal-syslog.c
3952 test_journal_syslog_LDADD = \
3953 libsystemd-journal-core.la
3955 test_journal_match_SOURCES = \
3956 src/journal/test-journal-match.c
3958 test_journal_match_LDADD = \
3959 libsystemd-journal-core.la
3961 test_journal_enum_SOURCES = \
3962 src/journal/test-journal-enum.c
3964 test_journal_enum_LDADD = \
3965 libsystemd-journal-core.la
3967 test_journal_stream_SOURCES = \
3968 src/journal/test-journal-stream.c
3970 test_journal_stream_LDADD = \
3971 libsystemd-journal-core.la
3973 test_journal_flush_SOURCES = \
3974 src/journal/test-journal-flush.c
3976 test_journal_flush_LDADD = \
3977 libsystemd-journal-core.la
3979 test_journal_init_SOURCES = \
3980 src/journal/test-journal-init.c
3982 test_journal_init_LDADD = \
3983 libsystemd-journal-core.la
3985 test_journal_verify_SOURCES = \
3986 src/journal/test-journal-verify.c
3988 test_journal_verify_LDADD = \
3989 libsystemd-journal-core.la
3991 test_journal_interleaving_SOURCES = \
3992 src/journal/test-journal-interleaving.c
3994 test_journal_interleaving_LDADD = \
3995 libsystemd-journal-core.la
3997 test_mmap_cache_SOURCES = \
3998 src/journal/test-mmap-cache.c
4000 test_mmap_cache_LDADD = \
4001 libsystemd-journal-core.la
4003 test_catalog_SOURCES = \
4004 src/journal/test-catalog.c
4006 test_catalog_CPPFLAGS = \
4008 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
4010 test_catalog_LDADD = \
4011 libsystemd-journal-core.la
4013 test_compress_SOURCES = \
4014 src/journal/test-compress.c
4016 test_compress_LDADD = \
4017 libsystemd-journal-internal.la \
4018 libsystemd-shared.la
4020 test_compress_benchmark_SOURCES = \
4021 src/journal/test-compress-benchmark.c
4023 test_compress_benchmark_LDADD = \
4024 libsystemd-journal-internal.la \
4025 libsystemd-shared.la
4027 libsystemd_journal_core_la_SOURCES = \
4028 src/journal/journald-kmsg.c \
4029 src/journal/journald-kmsg.h \
4030 src/journal/journald-syslog.c \
4031 src/journal/journald-syslog.h \
4032 src/journal/journald-stream.c \
4033 src/journal/journald-stream.h \
4034 src/journal/journald-server.c \
4035 src/journal/journald-server.h \
4036 src/journal/journald-console.c \
4037 src/journal/journald-console.h \
4038 src/journal/journald-wall.c \
4039 src/journal/journald-wall.h \
4040 src/journal/journald-native.c \
4041 src/journal/journald-native.h \
4042 src/journal/journald-audit.c \
4043 src/journal/journald-audit.h \
4044 src/journal/journald-rate-limit.c \
4045 src/journal/journald-rate-limit.h \
4046 src/journal/journal-internal.h
4048 nodist_libsystemd_journal_core_la_SOURCES = \
4049 src/journal/journald-gperf.c
4051 libsystemd_journal_core_la_LIBADD = \
4052 libsystemd-journal-internal.la \
4053 libudev-internal.la \
4054 libsystemd-label.la \
4055 libsystemd-internal.la \
4056 libsystemd-shared.la
4059 libsystemd_journal_core_la_LIBADD += \
4063 noinst_LTLIBRARIES += \
4064 libsystemd-journal-core.la
4066 journal-install-hook:
4067 -$(MKDIR_P) $(DESTDIR)/var/log/journal
4068 -chown 0:0 $(DESTDIR)/var/log/journal
4069 -chmod 755 $(DESTDIR)/var/log/journal
4070 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4071 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4073 journal-uninstall-hook:
4074 -rmdir $(DESTDIR)/var/log/journal/remote
4075 -rmdir $(DESTDIR)/var/log/journal/
4077 INSTALL_EXEC_HOOKS += journal-install-hook
4078 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4080 # ------------------------------------------------------------------------------
4081 # Update catalog on installation. Do not bother if installing
4082 # in DESTDIR, since this is likely for packaging purposes.
4083 catalog-update-hook:
4084 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4086 INSTALL_DATA_HOOKS += \
4089 catalog-remove-hook:
4090 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4092 UNINSTALL_DATA_HOOKS += \
4101 test-journal-syslog \
4102 test-journal-match \
4103 test-journal-stream \
4105 test-journal-verify \
4106 test-journal-interleaving \
4107 test-journal-flush \
4114 test-compress-benchmark
4117 pkginclude_HEADERS += \
4118 src/systemd/sd-journal.h \
4119 src/systemd/sd-messages.h \
4120 src/systemd/_sd-common.h
4122 libsystemd_journal_internal_la_SOURCES = \
4123 src/journal/sd-journal.c \
4124 src/systemd/sd-journal.h \
4125 src/systemd/_sd-common.h \
4126 src/journal/journal-file.c \
4127 src/journal/journal-file.h \
4128 src/journal/journal-vacuum.c \
4129 src/journal/journal-vacuum.h \
4130 src/journal/journal-verify.c \
4131 src/journal/journal-verify.h \
4132 src/journal/lookup3.c \
4133 src/journal/lookup3.h \
4134 src/journal/journal-send.c \
4135 src/journal/journal-def.h \
4136 src/journal/compress.h \
4137 src/journal/catalog.c \
4138 src/journal/catalog.h \
4139 src/journal/mmap-cache.c \
4140 src/journal/mmap-cache.h
4142 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4143 libsystemd_journal_internal_la_CFLAGS = \
4146 libsystemd_journal_internal_la_LIBADD =
4148 libsystemd_journal_internal_la_SOURCES += \
4149 src/journal/compress.c
4152 libsystemd_journal_internal_la_CFLAGS += \
4155 libsystemd_journal_internal_la_LIBADD += \
4160 libsystemd_journal_internal_la_LIBADD += \
4165 libsystemd_journal_internal_la_SOURCES += \
4166 src/journal/journal-authenticate.c \
4167 src/journal/journal-authenticate.h \
4168 src/journal/fsprg.c \
4171 libsystemd_journal_internal_la_LIBADD += \
4174 # fsprg.c is a drop-in file using void pointer arithmetic
4175 libsystemd_journal_internal_la_CFLAGS += \
4180 noinst_LTLIBRARIES += \
4181 libsystemd-journal-internal.la
4183 rootlibexec_PROGRAMS += \
4186 rootbin_PROGRAMS += \
4192 dist_systemunit_DATA += \
4193 units/systemd-journald.socket \
4194 units/systemd-journald-dev-log.socket \
4195 units/systemd-journald-audit.socket
4197 nodist_systemunit_DATA += \
4198 units/systemd-journald.service \
4199 units/systemd-journal-flush.service \
4200 units/systemd-journal-catalog-update.service
4202 dist_pkgsysconf_DATA += \
4203 src/journal/journald.conf
4205 dist_catalog_DATA = \
4206 catalog/systemd.fr.catalog \
4207 catalog/systemd.it.catalog \
4208 catalog/systemd.pl.catalog \
4209 catalog/systemd.ru.catalog \
4210 catalog/systemd.catalog
4212 SOCKETS_TARGET_WANTS += \
4213 systemd-journald.socket \
4214 systemd-journald-dev-log.socket \
4215 systemd-journald-audit.socket
4217 SYSINIT_TARGET_WANTS += \
4218 systemd-journald.service \
4219 systemd-journal-flush.service \
4220 systemd-journal-catalog-update.service
4223 units/systemd-journald.service.in \
4224 units/systemd-journal-flush.service.in \
4225 units/systemd-journal-catalog-update.service.in \
4226 src/journal/journald-gperf.gperf
4229 src/journal/journald-gperf.c
4231 # ------------------------------------------------------------------------------
4233 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4235 rootlibexec_PROGRAMS += \
4236 systemd-journal-gatewayd
4238 systemd_journal_gatewayd_SOURCES = \
4239 src/journal-remote/journal-gatewayd.c \
4240 src/journal-remote/microhttpd-util.h \
4241 src/journal-remote/microhttpd-util.c
4243 systemd_journal_gatewayd_LDADD = \
4244 libsystemd-logs.la \
4245 libsystemd-journal-internal.la \
4246 libsystemd-internal.la \
4247 libsystemd-shared.la \
4251 systemd_journal_gatewayd_LDADD += \
4255 systemd_journal_gatewayd_CFLAGS = \
4257 $(MICROHTTPD_CFLAGS)
4259 systemd_journal_gatewayd_CPPFLAGS = \
4261 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4263 dist_systemunit_DATA += \
4264 units/systemd-journal-gatewayd.socket
4266 nodist_systemunit_DATA += \
4267 units/systemd-journal-gatewayd.service
4269 dist_gatewayddocumentroot_DATA = \
4270 src/journal-remote/browse.html
4275 units/systemd-journal-gatewayd.service.in
4277 # ------------------------------------------------------------------------------
4279 systemd_socket_proxyd_SOURCES = \
4280 src/socket-proxy/socket-proxyd.c
4282 systemd_socket_proxyd_LDADD = \
4283 libsystemd-logs.la \
4284 libsystemd-internal.la \
4285 libsystemd-journal-internal.la \
4286 libsystemd-shared.la \
4287 libsystemd-resolve.la
4289 # ------------------------------------------------------------------------------
4291 systemd_coredump_SOURCES = \
4292 src/journal/coredump.c \
4293 src/journal/coredump-vacuum.c \
4294 src/journal/coredump-vacuum.h
4296 systemd_coredump_LDADD = \
4297 libsystemd-journal-internal.la \
4298 libsystemd-label.la \
4299 libsystemd-internal.la \
4300 libsystemd-shared.la
4303 systemd_coredump_SOURCES += \
4304 src/journal/stacktrace.c \
4305 src/journal/stacktrace.h
4307 systemd_coredump_LDADD += \
4311 rootlibexec_PROGRAMS += \
4314 dist_pkgsysconf_DATA += \
4315 src/journal/coredump.conf
4318 systemd_coredump_LDADD += \
4322 coredumpctl_SOURCES = \
4323 src/journal/coredumpctl.c
4325 coredumpctl_LDADD = \
4326 libsystemd-journal-internal.la \
4327 libsystemd-internal.la \
4328 libsystemd-shared.la
4334 test-coredump-vacuum
4336 test_coredump_vacuum_SOURCES = \
4337 src/journal/test-coredump-vacuum.c \
4338 src/journal/coredump-vacuum.c \
4339 src/journal/coredump-vacuum.h
4341 test_coredump_vacuum_LDADD = \
4342 libsystemd-internal.la \
4343 libsystemd-shared.la
4345 dist_bashcompletion_DATA += \
4346 shell-completion/bash/coredumpctl
4348 dist_zshcompletion_DATA += \
4349 shell-completion/zsh/_coredumpctl
4352 sysctl.d/50-coredump.conf
4355 sysctl.d/50-coredump.conf
4359 sysctl.d/50-coredump.conf.in
4361 # ------------------------------------------------------------------------------
4363 systemd_binfmt_SOURCES = \
4366 systemd_binfmt_LDADD = \
4367 libsystemd-shared.la
4369 rootlibexec_PROGRAMS += \
4372 dist_systemunit_DATA += \
4373 units/proc-sys-fs-binfmt_misc.automount \
4374 units/proc-sys-fs-binfmt_misc.mount
4376 nodist_systemunit_DATA += \
4377 units/systemd-binfmt.service
4380 $(prefix)/lib/binfmt.d \
4381 $(sysconfdir)/binfmt.d
4383 SYSINIT_TARGET_WANTS += \
4384 systemd-binfmt.service \
4385 proc-sys-fs-binfmt_misc.automount
4390 units/systemd-binfmt.service.in
4392 # ------------------------------------------------------------------------------
4394 systemd_vconsole_setup_SOURCES = \
4395 src/vconsole/vconsole-setup.c
4397 systemd_vconsole_setup_LDADD = \
4398 libsystemd-shared.la
4400 rootlibexec_PROGRAMS += \
4401 systemd-vconsole-setup
4403 nodist_systemunit_DATA += \
4404 units/systemd-vconsole-setup.service
4406 dist_udevrules_DATA += \
4407 src/vconsole/90-vconsole.rules
4409 SYSINIT_TARGET_WANTS += \
4410 systemd-vconsole-setup.service
4414 units/systemd-vconsole-setup.service.in
4416 # ------------------------------------------------------------------------------
4418 systemd_bootchart_SOURCES = \
4419 src/bootchart/bootchart.c \
4420 src/bootchart/bootchart.h \
4421 src/bootchart/store.c \
4422 src/bootchart/store.h \
4423 src/bootchart/svg.c \
4426 systemd_bootchart_LDADD = \
4427 libsystemd-journal-internal.la \
4428 libsystemd-shared.la
4430 rootlibexec_PROGRAMS += \
4433 dist_pkgsysconf_DATA += \
4434 src/bootchart/bootchart.conf
4437 # ------------------------------------------------------------------------------
4438 if ENABLE_QUOTACHECK
4439 rootlibexec_PROGRAMS += \
4442 nodist_systemunit_DATA += \
4443 units/systemd-quotacheck.service
4445 systemd_quotacheck_SOURCES = \
4446 src/quotacheck/quotacheck.c
4448 systemd_quotacheck_LDADD = \
4449 libsystemd-shared.la
4453 units/systemd-quotacheck.service.in
4455 nodist_systemunit_DATA += \
4456 units/quotaon.service
4458 # ------------------------------------------------------------------------------
4459 if ENABLE_RANDOMSEED
4460 rootlibexec_PROGRAMS += \
4463 nodist_systemunit_DATA += \
4464 units/systemd-random-seed.service
4466 systemd_random_seed_SOURCES = \
4467 src/random-seed/random-seed.c
4469 systemd_random_seed_LDADD = \
4470 libsystemd-label.la \
4471 libsystemd-shared.la
4473 SYSINIT_TARGET_WANTS += \
4474 systemd-random-seed.service
4479 units/systemd-random-seed.service.in
4481 # ------------------------------------------------------------------------------
4483 rootlibexec_PROGRAMS += \
4486 nodist_systemunit_DATA += \
4487 units/systemd-backlight@.service
4489 systemd_backlight_SOURCES = \
4490 src/backlight/backlight.c
4492 systemd_backlight_LDADD = \
4493 libsystemd-label.la \
4494 libudev-internal.la \
4495 libsystemd-shared.la
4499 units/systemd-backlight@.service.in
4501 # ------------------------------------------------------------------------------
4503 rootlibexec_PROGRAMS += \
4506 nodist_systemunit_DATA += \
4507 units/systemd-rfkill@.service
4509 systemd_rfkill_SOURCES = \
4512 systemd_rfkill_LDADD = \
4513 libsystemd-label.la \
4514 libudev-internal.la \
4515 libsystemd-shared.la
4519 units/systemd-rfkill@.service.in
4521 # ------------------------------------------------------------------------------
4522 if HAVE_LIBCRYPTSETUP
4523 rootlibexec_PROGRAMS += \
4526 systemgenerator_PROGRAMS += \
4527 systemd-cryptsetup-generator
4529 dist_systemunit_DATA += \
4530 units/cryptsetup.target \
4531 units/cryptsetup-pre.target
4533 systemd_cryptsetup_SOURCES = \
4534 src/cryptsetup/cryptsetup.c
4536 systemd_cryptsetup_CFLAGS = \
4538 $(LIBCRYPTSETUP_CFLAGS)
4540 systemd_cryptsetup_LDADD = \
4541 libsystemd-label.la \
4542 libudev-internal.la \
4543 libsystemd-shared.la \
4544 $(LIBCRYPTSETUP_LIBS)
4546 systemd_cryptsetup_generator_SOURCES = \
4547 src/cryptsetup/cryptsetup-generator.c
4549 systemd_cryptsetup_generator_LDADD = \
4550 libsystemd-label.la \
4551 libsystemd-shared.la
4553 SYSINIT_TARGET_WANTS += \
4558 # ------------------------------------------------------------------------------
4560 systemd_hostnamed_SOURCES = \
4561 src/hostname/hostnamed.c
4563 systemd_hostnamed_LDADD = \
4564 libsystemd-label.la \
4565 libsystemd-internal.la \
4566 libsystemd-shared.la
4568 rootlibexec_PROGRAMS += \
4571 nodist_systemunit_DATA += \
4572 units/systemd-hostnamed.service
4574 dist_systemunit_DATA_busnames += \
4575 units/org.freedesktop.hostname1.busname
4577 dist_dbuspolicy_DATA += \
4578 src/hostname/org.freedesktop.hostname1.conf
4580 dist_dbussystemservice_DATA += \
4581 src/hostname/org.freedesktop.hostname1.service
4583 polkitpolicy_files += \
4584 src/hostname/org.freedesktop.hostname1.policy
4586 SYSTEM_UNIT_ALIASES += \
4587 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4589 BUSNAMES_TARGET_WANTS += \
4590 org.freedesktop.hostname1.busname
4592 hostnamectl_SOURCES = \
4593 src/hostname/hostnamectl.c
4595 hostnamectl_LDADD = \
4596 libsystemd-internal.la \
4597 libsystemd-shared.la
4602 dist_bashcompletion_DATA += \
4603 shell-completion/bash/hostnamectl
4605 dist_zshcompletion_DATA += \
4606 shell-completion/zsh/_hostnamectl
4610 polkitpolicy_in_files += \
4611 src/hostname/org.freedesktop.hostname1.policy.in
4614 units/systemd-hostnamed.service.in
4616 # ------------------------------------------------------------------------------
4617 dist_systemunit_DATA_busnames += \
4618 units/org.freedesktop.systemd1.busname
4620 BUSNAMES_TARGET_WANTS += \
4621 org.freedesktop.systemd1.busname
4623 # ------------------------------------------------------------------------------
4625 systemd_localed_SOURCES = \
4626 src/locale/localed.c
4628 systemd_localed_LDADD = \
4629 libsystemd-label.la \
4630 libsystemd-internal.la \
4631 libsystemd-shared.la
4633 nodist_systemunit_DATA += \
4634 units/systemd-localed.service
4636 dist_systemunit_DATA_busnames += \
4637 units/org.freedesktop.locale1.busname
4639 rootlibexec_PROGRAMS += \
4642 dist_dbuspolicy_DATA += \
4643 src/locale/org.freedesktop.locale1.conf
4645 dist_dbussystemservice_DATA += \
4646 src/locale/org.freedesktop.locale1.service
4648 polkitpolicy_files += \
4649 src/locale/org.freedesktop.locale1.policy
4651 SYSTEM_UNIT_ALIASES += \
4652 systemd-localed.service dbus-org.freedesktop.locale1.service
4654 BUSNAMES_TARGET_WANTS += \
4655 org.freedesktop.locale1.busname
4657 dist_pkgdata_DATA += \
4658 src/locale/kbd-model-map
4660 dist_noinst_SCRIPT = \
4661 src/locale/generate-kbd-model-map
4663 localectl_SOURCES = \
4664 src/locale/localectl.c
4667 libsystemd-internal.la \
4668 libsystemd-shared.la
4673 dist_bashcompletion_DATA += \
4674 shell-completion/bash/localectl
4676 dist_zshcompletion_DATA += \
4677 shell-completion/zsh/_localectl
4681 .PHONY: update-kbd-model-map
4683 polkitpolicy_in_files += \
4684 src/locale/org.freedesktop.locale1.policy.in
4687 units/systemd-localed.service.in
4689 # ------------------------------------------------------------------------------
4691 systemd_timedated_SOURCES = \
4692 src/timedate/timedated.c
4694 systemd_timedated_LDADD = \
4695 libsystemd-label.la \
4696 libsystemd-internal.la \
4697 libsystemd-shared.la
4699 rootlibexec_PROGRAMS += \
4702 dist_dbussystemservice_DATA += \
4703 src/timedate/org.freedesktop.timedate1.service
4705 dist_dbuspolicy_DATA += \
4706 src/timedate/org.freedesktop.timedate1.conf
4708 nodist_systemunit_DATA += \
4709 units/systemd-timedated.service
4711 dist_systemunit_DATA_busnames += \
4712 units/org.freedesktop.timedate1.busname
4714 polkitpolicy_files += \
4715 src/timedate/org.freedesktop.timedate1.policy
4717 SYSTEM_UNIT_ALIASES += \
4718 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4720 BUSNAMES_TARGET_WANTS += \
4721 org.freedesktop.timedate1.busname
4723 timedatectl_SOURCES = \
4724 src/timedate/timedatectl.c
4726 timedatectl_LDADD = \
4727 libsystemd-internal.la \
4728 libsystemd-shared.la
4733 dist_bashcompletion_DATA += \
4734 shell-completion/bash/timedatectl
4736 dist_zshcompletion_DATA += \
4737 shell-completion/zsh/_timedatectl
4740 polkitpolicy_in_files += \
4741 src/timedate/org.freedesktop.timedate1.policy.in
4744 units/systemd-timedated.service.in
4746 # ------------------------------------------------------------------------------
4748 systemd_timesyncd_SOURCES = \
4749 src/timesync/timesyncd.c \
4750 src/timesync/timesyncd-manager.c \
4751 src/timesync/timesyncd-manager.h \
4752 src/timesync/timesyncd-conf.c \
4753 src/timesync/timesyncd-conf.h \
4754 src/timesync/timesyncd-server.c \
4755 src/timesync/timesyncd-server.h
4757 nodist_systemd_timesyncd_SOURCES = \
4758 src/timesync/timesyncd-gperf.c
4761 src/timesync/timesyncd-gperf.gperf
4764 src/timesync/timesyncd-gperf.c
4766 systemd_timesyncd_LDADD = \
4767 libsystemd-resolve.la \
4768 libsystemd-network.la \
4769 libsystemd-label.la \
4770 libsystemd-internal.la \
4771 libsystemd-shared.la \
4774 rootlibexec_PROGRAMS += \
4777 nodist_systemunit_DATA += \
4778 units/systemd-timesyncd.service
4780 GENERAL_ALIASES += \
4781 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
4784 units/systemd-timesyncd.service.in
4786 nodist_pkgsysconf_DATA += \
4787 src/timesync/timesyncd.conf
4790 src/timesync/timesyncd.conf.in
4793 src/timesync/timesyncd.conf
4796 # ------------------------------------------------------------------------------
4798 libnss_myhostname_la_SOURCES = \
4799 src/nss-myhostname/nss-myhostname.sym \
4800 src/nss-myhostname/nss-myhostname.c
4802 libnss_myhostname_la_LDFLAGS = \
4809 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
4811 libnss_myhostname_la_LIBADD = \
4812 libsystemd-shared.la \
4813 libsystemd-internal.la
4815 lib_LTLIBRARIES += \
4816 libnss_myhostname.la
4819 # ------------------------------------------------------------------------------
4821 systemd_machined_SOURCES = \
4822 src/machine/machined.c \
4823 src/machine/machined.h
4825 systemd_machined_LDADD = \
4826 libsystemd-machine-core.la
4828 rootlibexec_PROGRAMS += \
4831 libsystemd_machine_core_la_SOURCES = \
4832 src/machine/machined-dbus.c \
4833 src/machine/machine.c \
4834 src/machine/machine.h \
4835 src/machine/machine-dbus.c
4837 libsystemd_machine_core_la_LIBADD = \
4838 libsystemd-label.la \
4839 libsystemd-internal.la \
4840 libudev-internal.la \
4841 libsystemd-shared.la
4843 noinst_LTLIBRARIES += \
4844 libsystemd-machine-core.la
4846 machinectl_SOURCES = \
4847 src/machine/machinectl.c
4849 machinectl_LDADD = \
4850 libsystemd-internal.la \
4851 libsystemd-shared.la
4853 rootbin_PROGRAMS += \
4856 dist_bashcompletion_DATA += \
4857 shell-completion/bash/machinectl
4859 test_machine_tables_SOURCES = \
4860 src/machine/test-machine-tables.c
4862 test_machine_tables_LDADD = \
4863 libsystemd-machine-core.la
4868 nodist_systemunit_DATA += \
4869 units/systemd-machined.service
4871 dist_systemunit_DATA += \
4874 dist_systemunit_DATA_busnames += \
4875 units/org.freedesktop.machine1.busname
4877 dist_dbussystemservice_DATA += \
4878 src/machine/org.freedesktop.machine1.service
4880 dist_dbuspolicy_DATA += \
4881 src/machine/org.freedesktop.machine1.conf
4883 dist_zshcompletion_DATA += \
4884 shell-completion/zsh/_machinectl \
4885 shell-completion/zsh/_sd_machines
4887 SYSTEM_UNIT_ALIASES += \
4888 systemd-machined.service dbus-org.freedesktop.machine1.service
4890 BUSNAMES_TARGET_WANTS += \
4891 org.freedesktop.machine1.busname
4894 units/systemd-machined.service.in
4896 libnss_mymachines_la_SOURCES = \
4897 src/nss-mymachines/nss-mymachines.sym \
4898 src/nss-mymachines/nss-mymachines.c
4900 libnss_mymachines_la_LDFLAGS = \
4907 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
4909 libnss_mymachines_la_LIBADD = \
4910 libsystemd-shared.la \
4911 libsystemd-internal.la
4913 lib_LTLIBRARIES += \
4914 libnss_mymachines.la
4917 # ------------------------------------------------------------------------------
4919 systemd_resolved_SOURCES = \
4920 src/resolve/resolved.c \
4921 src/resolve/resolved-manager.c \
4922 src/resolve/resolved-manager.h \
4923 src/resolve/resolved-conf.c \
4924 src/resolve/resolved-conf.h \
4925 src/resolve/resolved-bus.c \
4926 src/resolve/resolved-bus.h \
4927 src/resolve/resolved-link.h \
4928 src/resolve/resolved-link.c \
4929 src/resolve/resolved-def.h \
4930 src/resolve/resolved-dns-domain.h \
4931 src/resolve/resolved-dns-domain.c \
4932 src/resolve/resolved-dns-rr.h \
4933 src/resolve/resolved-dns-rr.c \
4934 src/resolve/resolved-dns-question.h \
4935 src/resolve/resolved-dns-question.c \
4936 src/resolve/resolved-dns-answer.h \
4937 src/resolve/resolved-dns-answer.c \
4938 src/resolve/resolved-dns-packet.h \
4939 src/resolve/resolved-dns-packet.c \
4940 src/resolve/resolved-dns-query.h \
4941 src/resolve/resolved-dns-query.c \
4942 src/resolve/resolved-dns-transaction.h \
4943 src/resolve/resolved-dns-transaction.c \
4944 src/resolve/resolved-dns-scope.h \
4945 src/resolve/resolved-dns-scope.c \
4946 src/resolve/resolved-dns-server.h \
4947 src/resolve/resolved-dns-server.c \
4948 src/resolve/resolved-dns-cache.h \
4949 src/resolve/resolved-dns-cache.c \
4950 src/resolve/resolved-dns-zone.h \
4951 src/resolve/resolved-dns-zone.c \
4952 src/resolve/resolved-dns-stream.h \
4953 src/resolve/resolved-dns-stream.c \
4954 src/resolve/dns-type.c \
4955 src/resolve/dns-type.h \
4956 src/resolve/dns_type-from-name.h \
4957 src/resolve/dns_type-to-name.h
4959 nodist_systemd_resolved_SOURCES = \
4960 src/resolve/resolved-gperf.c
4963 src/resolve/resolved-gperf.gperf \
4964 src/resolve/dns_type-from-name.gperf
4967 src/resolve/resolved-gperf.c
4969 systemd_resolved_LDADD = \
4970 libsystemd-network.la \
4971 libsystemd-label.la \
4972 libsystemd-internal.la \
4973 libsystemd-shared.la \
4977 rootlibexec_PROGRAMS += \
4980 nodist_systemunit_DATA += \
4981 units/systemd-resolved.service
4983 dist_systemunit_DATA_busnames += \
4984 units/org.freedesktop.resolve1.busname
4986 dist_dbuspolicy_DATA += \
4987 src/resolve/org.freedesktop.resolve1.conf
4989 dist_dbussystemservice_DATA += \
4990 src/resolve/org.freedesktop.resolve1.service
4993 units/systemd-resolved.service.in
4995 SYSTEM_UNIT_ALIASES += \
4996 systemd-resolved.service dbus-org.freedesktop.resolve1.service
4998 BUSNAMES_TARGET_WANTS += \
4999 org.freedesktop.resolve1.busname
5001 GENERAL_ALIASES += \
5002 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
5004 nodist_pkgsysconf_DATA += \
5005 src/resolve/resolved.conf
5008 src/resolve/resolved.conf.in
5011 src/resolve/resolved.conf
5016 test_dns_domain_SOURCES = \
5017 src/resolve/resolved-dns-domain.h \
5018 src/resolve/resolved-dns-domain.c \
5019 src/resolve/test-dns-domain.c
5021 test_dns_domain_LDADD = \
5022 libsystemd-network.la \
5023 libsystemd-label.la \
5024 libsystemd-internal.la \
5025 libsystemd-shared.la \
5028 libnss_resolve_la_SOURCES = \
5029 src/nss-resolve/nss-resolve.sym \
5030 src/nss-resolve/nss-resolve.c
5032 libnss_resolve_la_LDFLAGS = \
5039 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
5041 libnss_resolve_la_LIBADD = \
5042 libsystemd-shared.la \
5043 libsystemd-internal.la
5045 lib_LTLIBRARIES += \
5048 systemd_resolve_host_SOURCES = \
5049 src/resolve-host/resolve-host.c \
5050 src/resolve/resolved-dns-packet.c \
5051 src/resolve/resolved-dns-packet.h \
5052 src/resolve/resolved-dns-rr.c \
5053 src/resolve/resolved-dns-rr.h \
5054 src/resolve/resolved-dns-answer.c \
5055 src/resolve/resolved-dns-answer.h \
5056 src/resolve/resolved-dns-question.c \
5057 src/resolve/resolved-dns-question.h \
5058 src/resolve/resolved-dns-domain.c \
5059 src/resolve/resolved-dns-domain.h \
5060 src/resolve/dns-type.c \
5061 src/resolve/dns-type.h \
5062 src/resolve/dns_type-from-name.h \
5063 src/resolve/dns_type-to-name.h
5065 systemd_resolve_host_LDADD = \
5066 libsystemd-internal.la \
5067 libsystemd-shared.la \
5071 rootlibexec_PROGRAMS += \
5072 systemd-resolve-host
5076 # ------------------------------------------------------------------------------
5078 rootlibexec_PROGRAMS += \
5081 systemd_networkd_SOURCES = \
5082 src/network/networkd.c
5084 systemd_networkd_LDADD = \
5085 libsystemd-networkd-core.la
5087 noinst_LTLIBRARIES += \
5088 libsystemd-networkd-core.la
5090 libsystemd_networkd_core_la_CFLAGS = \
5093 libsystemd_networkd_core_la_SOURCES = \
5094 src/libsystemd-network/network-internal.h \
5095 src/network/networkd.h \
5096 src/network/networkd-link.h \
5097 src/network/networkd-netdev.h \
5098 src/network/networkd-netdev-tunnel.h \
5099 src/network/networkd-netdev-veth.h \
5100 src/network/networkd-netdev-vxlan.h \
5101 src/network/networkd-netdev-vlan.h \
5102 src/network/networkd-netdev-macvlan.h \
5103 src/network/networkd-netdev-dummy.h \
5104 src/network/networkd-netdev-tuntap.h \
5105 src/network/networkd-netdev-bond.h \
5106 src/network/networkd-netdev-bridge.h \
5107 src/network/networkd-netdev.c \
5108 src/network/networkd-netdev-tunnel.c \
5109 src/network/networkd-netdev-veth.c \
5110 src/network/networkd-netdev-vxlan.c \
5111 src/network/networkd-netdev-vlan.c \
5112 src/network/networkd-netdev-macvlan.c \
5113 src/network/networkd-netdev-dummy.c \
5114 src/network/networkd-netdev-tuntap.c \
5115 src/network/networkd-netdev-bond.c \
5116 src/network/networkd-netdev-bridge.c \
5117 src/network/networkd-link.c \
5118 src/network/networkd-ipv4ll.c \
5119 src/network/networkd-dhcp4.c \
5120 src/network/networkd-network.c \
5121 src/network/networkd-address.c \
5122 src/network/networkd-route.c \
5123 src/network/networkd-manager.c \
5124 src/network/networkd-address-pool.c
5126 nodist_libsystemd_networkd_core_la_SOURCES = \
5127 src/network/networkd-network-gperf.c \
5128 src/network/networkd-netdev-gperf.c
5130 libsystemd_networkd_core_la_LIBADD = \
5131 libudev-internal.la \
5132 libsystemd-internal.la \
5133 libsystemd-network.la \
5134 libsystemd-label.la \
5135 libsystemd-shared.la
5137 rootlibexec_PROGRAMS += \
5138 systemd-networkd-wait-online
5140 systemd_networkd_wait_online_CFLAGS = \
5143 systemd_networkd_wait_online_SOURCES = \
5144 src/libsystemd-network/network-internal.h \
5145 src/network/networkd-wait-online.h \
5146 src/network/networkd-wait-online-link.h \
5147 src/network/networkd-wait-online.c \
5148 src/network/networkd-wait-online-manager.c \
5149 src/network/networkd-wait-online-link.c
5151 systemd_networkd_wait_online_LDADD = \
5152 libsystemd-network.la \
5153 libudev-internal.la \
5154 libsystemd-internal.la \
5155 libsystemd-shared.la
5157 rootbin_PROGRAMS += \
5160 networkctl_SOURCES = \
5161 src/network/networkctl.c
5163 networkctl_LDADD = \
5164 libsystemd-internal.la \
5165 libudev-internal.la \
5166 libsystemd-shared.la \
5167 libsystemd-network.la
5169 test_network_SOURCES = \
5170 src/network/test-network.c
5172 test_network_LDADD = \
5173 libsystemd-networkd-core.la
5175 test_network_tables_SOURCES = \
5176 src/network/test-network-tables.c \
5177 src/shared/test-tables.h
5179 test_network_tables_LDADD = \
5180 libsystemd-networkd-core.la \
5187 nodist_systemunit_DATA += \
5188 units/systemd-networkd.service \
5189 units/systemd-networkd-wait-online.service
5191 GENERAL_ALIASES += \
5192 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5193 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5196 src/network/networkd-network-gperf.gperf \
5197 src/network/networkd-netdev-gperf.gperf \
5198 units/systemd-networkd.service.in \
5199 units/systemd-networkd-wait-online.service.in
5202 src/network/networkd-network-gperf.c \
5203 src/network/networkd-netdev-gperf.c
5206 # ------------------------------------------------------------------------------
5208 systemd_logind_SOURCES = \
5209 src/login/logind.c \
5212 nodist_systemd_logind_SOURCES = \
5213 src/login/logind-gperf.c
5215 systemd_logind_LDADD = \
5216 libsystemd-logind-core.la
5218 libsystemd_logind_core_la_SOURCES = \
5219 src/login/logind-core.c \
5220 src/login/logind-device.c \
5221 src/login/logind-device.h \
5222 src/login/logind-button.c \
5223 src/login/logind-button.h \
5224 src/login/logind-action.c \
5225 src/login/logind-action.h \
5226 src/login/logind-seat.c \
5227 src/login/logind-seat.h \
5228 src/login/logind-session.c \
5229 src/login/logind-session.h \
5230 src/login/logind-session-device.c \
5231 src/login/logind-session-device.h \
5232 src/login/logind-user.c \
5233 src/login/logind-user.h \
5234 src/login/logind-inhibit.c \
5235 src/login/logind-inhibit.h \
5236 src/login/logind-dbus.c \
5237 src/login/logind-session-dbus.c \
5238 src/login/logind-seat-dbus.c \
5239 src/login/logind-user-dbus.c \
5240 src/login/logind-acl.h
5242 libsystemd_logind_core_la_LIBADD = \
5243 libsystemd-label.la \
5244 libsystemd-internal.la \
5245 libudev-internal.la \
5246 libsystemd-shared.la
5249 libsystemd_logind_core_la_SOURCES += \
5250 src/login/logind-acl.c
5252 libsystemd_logind_core_la_LIBADD += \
5256 noinst_LTLIBRARIES += \
5257 libsystemd-logind-core.la
5259 systemd_user_sessions_SOURCES = \
5260 src/login/user-sessions.c
5262 systemd_user_sessions_LDADD = \
5263 libsystemd-shared.la
5265 rootlibexec_PROGRAMS += \
5267 systemd-user-sessions
5269 loginctl_SOURCES = \
5270 src/login/loginctl.c \
5271 src/login/sysfs-show.c
5274 libsystemd-internal.la \
5275 libudev-internal.la \
5276 libsystemd-shared.la
5278 rootbin_PROGRAMS += \
5281 dist_bashcompletion_DATA += \
5282 shell-completion/bash/loginctl
5284 dist_zshcompletion_DATA += \
5285 shell-completion/zsh/_loginctl \
5286 shell-completion/zsh/_systemd-inhibit
5288 systemd_inhibit_SOURCES = \
5291 systemd_inhibit_LDADD = \
5292 libsystemd-internal.la \
5293 libsystemd-shared.la
5295 rootbin_PROGRAMS += \
5298 test_login_SOURCES = \
5299 src/libsystemd/sd-login/test-login.c
5301 test_login_LDADD = \
5302 libsystemd-internal.la \
5303 libsystemd-shared.la
5305 test_login_shared_SOURCES = \
5306 src/login/test-login-shared.c
5308 test_login_shared_LDADD = \
5309 libsystemd-internal.la \
5310 libsystemd-shared.la
5312 test_inhibit_SOURCES = \
5313 src/login/test-inhibit.c
5315 test_inhibit_LDADD = \
5316 libsystemd-internal.la \
5317 libsystemd-shared.la
5319 test_login_tables_SOURCES = \
5320 src/login/test-login-tables.c
5322 test_login_tables_LDADD = \
5323 libsystemd-logind-core.la
5334 pam_systemd_la_SOURCES = \
5335 src/login/pam_systemd.sym \
5336 src/login/pam_systemd.c
5338 pam_systemd_la_CFLAGS = \
5343 pam_systemd_la_LDFLAGS = \
5349 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5351 pam_systemd_la_LIBADD = \
5352 libsystemd-internal.la \
5353 libsystemd-shared.la \
5356 pamlib_LTLIBRARIES = \
5359 dist_pamconf_DATA = \
5360 src/login/systemd-user
5363 nodist_systemunit_DATA += \
5364 units/systemd-logind.service \
5365 units/systemd-user-sessions.service
5367 dist_systemunit_DATA += \
5370 dist_systemunit_DATA_busnames += \
5371 units/org.freedesktop.login1.busname
5373 dist_dbussystemservice_DATA += \
5374 src/login/org.freedesktop.login1.service
5376 dist_dbuspolicy_DATA += \
5377 src/login/org.freedesktop.login1.conf
5379 dist_pkgsysconf_DATA += \
5380 src/login/logind.conf
5382 polkitpolicy_files += \
5383 src/login/org.freedesktop.login1.policy
5388 MULTI_USER_TARGET_WANTS += \
5389 systemd-logind.service \
5390 systemd-user-sessions.service
5392 SYSTEM_UNIT_ALIASES += \
5393 systemd-logind.service dbus-org.freedesktop.login1.service
5395 BUSNAMES_TARGET_WANTS += \
5396 org.freedesktop.login1.busname
5398 dist_udevrules_DATA += \
5399 src/login/70-uaccess.rules \
5400 src/login/70-power-switch.rules
5402 nodist_udevrules_DATA += \
5403 src/login/71-seat.rules \
5404 src/login/73-seat-late.rules
5407 src/login/logind-gperf.c \
5408 src/login/71-seat.rules \
5409 src/login/73-seat-late.rules
5412 polkitpolicy_in_files += \
5413 src/login/org.freedesktop.login1.policy.in
5416 src/login/logind-gperf.gperf \
5417 src/login/71-seat.rules.in \
5418 src/login/73-seat-late.rules.in \
5419 units/systemd-logind.service.in \
5420 units/systemd-user-sessions.service.in
5422 # ------------------------------------------------------------------------------
5423 if HAVE_PYTHON_DEVEL
5424 pkgpyexec_LTLIBRARIES = \
5431 _journal_la_SOURCES = \
5432 src/python-systemd/_journal.c
5434 _journal_la_CFLAGS = \
5436 -fvisibility=default \
5437 $(PYTHON_DEVEL_CFLAGS)
5439 _journal_la_LDFLAGS = \
5445 _journal_la_LIBADD = \
5446 $(PYTHON_DEVEL_LIBS) \
5449 id128_la_SOURCES = \
5450 src/python-systemd/id128.c \
5451 src/python-systemd/pyutil.c \
5452 src/python-systemd/pyutil.h
5454 nodist_id128_la_SOURCES = \
5455 src/python-systemd/id128-constants.h
5459 -fvisibility=default \
5460 $(PYTHON_DEVEL_CFLAGS) \
5461 -I$(top_builddir)/src/python-systemd
5463 id128_la_LDFLAGS = \
5470 $(PYTHON_DEVEL_LIBS) \
5471 libsystemd-shared.la \
5474 _daemon_la_SOURCES = \
5475 src/python-systemd/_daemon.c \
5476 src/python-systemd/pyutil.c \
5477 src/python-systemd/pyutil.h
5479 _daemon_la_CFLAGS = \
5481 -fvisibility=default \
5482 $(PYTHON_DEVEL_CFLAGS) \
5483 -I$(top_builddir)/src/python-systemd
5485 _daemon_la_LDFLAGS = \
5491 _daemon_la_LIBADD = \
5492 $(PYTHON_DEVEL_LIBS) \
5493 libsystemd-shared.la \
5496 _reader_la_SOURCES = \
5497 src/python-systemd/_reader.c \
5498 src/python-systemd/pyutil.c \
5499 src/python-systemd/pyutil.h
5501 _reader_la_CFLAGS = \
5503 -fvisibility=default \
5504 $(PYTHON_DEVEL_CFLAGS)
5506 _reader_la_LDFLAGS = \
5512 _reader_la_LIBADD = \
5513 $(PYTHON_DEVEL_LIBS) \
5514 libsystemd-shared.la \
5517 login_la_SOURCES = \
5518 src/python-systemd/login.c \
5519 src/python-systemd/pyutil.c \
5520 src/python-systemd/pyutil.h
5524 -fvisibility=default \
5525 $(PYTHON_DEVEL_CFLAGS)
5527 login_la_LDFLAGS = \
5534 $(PYTHON_DEVEL_LIBS) \
5535 libsystemd-shared.la \
5538 dist_pkgpyexec_PYTHON = \
5539 src/python-systemd/journal.py \
5540 src/python-systemd/daemon.py \
5541 src/python-systemd/__init__.py
5543 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
5544 $(AM_V_at)$(MKDIR_P) $(dir $@)
5545 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
5548 src/python-systemd/id128-constants.h
5550 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
5552 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
5553 $(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/
5554 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
5557 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
5558 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
5561 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
5562 $(MAKE) DESTDIR="$$dir" install && \
5563 $(MAKE) DESTDIR="$$dir" sphinx-html && \
5568 CLEAN_LOCAL_HOOKS += clean-sphinx
5570 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
5573 -rm -rf docs/html/python-systemd/
5575 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
5577 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
5578 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
5580 # ------------------------------------------------------------------------------
5581 if ENABLE_COMPAT_LIBS
5583 src/compat-libs/linkwarning.h
5585 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
5586 $(AM_V_at)$(MKDIR_P) $(dir $@)
5587 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
5590 libsystemd-journal.c \
5591 libsystemd-login.c \
5592 libsystemd-id128.c \
5595 libsystemd_journal_la_SOURCES = \
5596 libsystemd-journal.c \
5597 src/compat-libs/libsystemd-journal.sym
5599 libsystemd_journal_la_CPPFLAGS = \
5601 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5603 libsystemd_journal_la_LDFLAGS = \
5605 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
5606 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
5608 libsystemd_journal_la_LIBADD = \
5609 libsystemd-journal-internal.la \
5610 libsystemd-internal.la \
5611 libsystemd-shared.la
5613 libsystemd_login_la_SOURCES = \
5614 libsystemd-login.c \
5615 src/compat-libs/libsystemd-login.sym
5617 libsystemd_login_la_CPPFLAGS = \
5619 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5621 libsystemd_login_la_LDFLAGS = \
5623 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
5624 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
5626 libsystemd_login_la_LIBADD = \
5627 libsystemd-internal.la \
5628 libsystemd-shared.la
5630 libsystemd_id128_la_SOURCES = \
5631 libsystemd-id128.c \
5632 src/compat-libs/libsystemd-id128.sym
5634 libsystemd_id128_la_CPPFLAGS = \
5636 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5638 libsystemd_id128_la_LDFLAGS = \
5640 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
5641 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
5643 libsystemd_id128_la_LIBADD = \
5644 libsystemd-internal.la \
5645 libsystemd-shared.la
5647 libsystemd_daemon_la_SOURCES = \
5648 libsystemd-daemon.c \
5649 src/compat-libs/libsystemd-daemon.sym
5651 libsystemd_daemon_la_CPPFLAGS = \
5653 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5655 libsystemd_daemon_la_LDFLAGS = \
5657 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
5658 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
5660 libsystemd_daemon_la_LIBADD = \
5661 libsystemd-internal.la \
5662 libsystemd-shared.la
5664 lib_LTLIBRARIES += \
5665 libsystemd-journal.la \
5666 libsystemd-login.la \
5667 libsystemd-id128.la \
5668 libsystemd-daemon.la
5670 pkgconfiglib_DATA += \
5671 src/compat-libs/libsystemd-journal.pc \
5672 src/compat-libs/libsystemd-login.pc \
5673 src/compat-libs/libsystemd-id128.pc \
5674 src/compat-libs/libsystemd-daemon.pc
5676 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
5677 compat-lib-install-hook:
5678 libname=libsystemd-login.so && $(move-to-rootlibdir)
5679 libname=libsystemd-journal.so && $(move-to-rootlibdir)
5680 libname=libsystemd-id128.so && $(move-to-rootlibdir)
5681 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
5683 compat-lib-uninstall-hook:
5684 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
5685 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
5686 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
5687 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
5689 INSTALL_EXEC_HOOKS += compat-lib-install-hook
5690 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
5694 src/compat-libs/libsystemd-journal.pc.in \
5695 src/compat-libs/libsystemd-login.pc.in \
5696 src/compat-libs/libsystemd-id128.pc.in \
5697 src/compat-libs/libsystemd-daemon.pc.in
5699 # ------------------------------------------------------------------------------
5701 '|rootlibexecdir=$(rootlibexecdir)|' \
5702 '|rootbindir=$(rootbindir)|' \
5703 '|bindir=$(bindir)|' \
5704 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5705 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5706 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5707 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5708 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
5709 '|pkgdatadir=$(pkgdatadir)|' \
5710 '|systemunitdir=$(systemunitdir)|' \
5711 '|userunitdir=$(userunitdir)|' \
5712 '|systempresetdir=$(systempresetdir)|' \
5713 '|userpresetdir=$(userpresetdir)|' \
5714 '|udevhwdbdir=$(udevhwdbdir)|' \
5715 '|udevrulesdir=$(udevrulesdir)|' \
5716 '|catalogdir=$(catalogdir)|' \
5717 '|tmpfilesdir=$(tmpfilesdir)|' \
5718 '|sysusersdir=$(sysusersdir)|' \
5719 '|sysctldir=$(sysctldir)|' \
5720 '|systemgeneratordir=$(systemgeneratordir)|' \
5721 '|usergeneratordir=$(usergeneratordir)|' \
5722 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
5723 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
5724 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
5725 '|PACKAGE_URL=$(PACKAGE_URL)|' \
5726 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
5727 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
5728 '|prefix=$(prefix)|' \
5729 '|exec_prefix=$(exec_prefix)|' \
5730 '|libdir=$(libdir)|' \
5731 '|includedir=$(includedir)|' \
5732 '|VERSION=$(VERSION)|' \
5733 '|rootprefix=$(rootprefix)|' \
5734 '|udevlibexecdir=$(udevlibexecdir)|' \
5735 '|SUSHELL=$(SUSHELL)|' \
5736 '|DEBUGTTY=$(DEBUGTTY)|' \
5739 '|MKDIR_P=$(MKDIR_P)|' \
5740 '|QUOTAON=$(QUOTAON)|' \
5741 '|QUOTACHECK=$(QUOTACHECK)|' \
5742 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
5743 '|VARLOGDIR=$(varlogdir)|' \
5744 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
5745 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
5746 '|PYTHON=$(PYTHON)|' \
5747 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
5748 '|NTP_SERVERS=$(NTP_SERVERS)|' \
5749 '|DNS_SERVERS=$(DNS_SERVERS)|' \
5750 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
5751 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
5752 '|TTY_GID=$(TTY_GID)|' \
5753 '|systemsleepdir=$(systemsleepdir)|' \
5754 '|systemshutdowndir=$(systemshutdowndir)|' \
5755 '|binfmtdir=$(binfmtdir)|' \
5756 '|modulesloaddir=$(modulesloaddir)|'
5759 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
5760 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
5769 sysctl.d/%: sysctl.d/%.in
5778 src/core/macros.%: src/core/macros.%.in
5781 src/%.policy.in: src/%.policy.in.in
5784 shell-completion/%: shell-completion/%.in
5795 $(AM_V_GEN)chmod +x $@
5797 src/%.c: src/%.gperf
5798 $(AM_V_at)$(MKDIR_P) $(dir $@)
5799 $(AM_V_GPERF)$(GPERF) < $< > $@
5802 $(AM_V_at)$(MKDIR_P) $(dir $@)
5803 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5805 tmpfiles.d/%: tmpfiles.d/%.m4
5806 $(AM_V_at)$(MKDIR_P) $(dir $@)
5807 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5811 $(AM_V_at)$(MKDIR_P) $(dir $@)
5812 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
5814 units/user/%: units/%.m4
5815 $(AM_V_at)$(MKDIR_P) $(dir $@)
5816 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
5819 nodist_polkitpolicy_DATA = \
5820 $(polkitpolicy_files) \
5821 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
5825 $(polkitpolicy_in_files) \
5826 $(polkitpolicy_in_in_files)
5829 $(nodist_systemunit_DATA) \
5830 $(nodist_userunit_DATA) \
5831 $(pkgconfigdata_DATA) \
5832 $(pkgconfiglib_DATA) \
5833 $(nodist_polkitpolicy_DATA)
5835 # ------------------------------------------------------------------------------
5837 man/custom-entities.ent: configure.ac
5838 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
5839 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
5840 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
5844 man/custom-entities.ent
5849 --stringparam man.output.quietly 1 \
5850 --stringparam funcsynopsis.style ansi \
5851 --stringparam man.authors.section.enabled 0 \
5852 --stringparam man.copyright.section.enabled 0 \
5853 --stringparam systemd.version $(VERSION) \
5854 --path '$(builddir)/man:$(srcdir)/man'
5856 XSLTPROC_PROCESS_MAN = \
5857 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
5859 XSLTPROC_PROCESS_HTML = \
5860 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
5862 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
5863 $(XSLTPROC_PROCESS_MAN)
5865 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
5866 $(XSLTPROC_PROCESS_MAN)
5868 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
5869 $(XSLTPROC_PROCESS_MAN)
5871 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
5872 $(XSLTPROC_PROCESS_MAN)
5874 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
5875 $(XSLTPROC_PROCESS_MAN)
5877 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
5878 $(XSLTPROC_PROCESS_HTML)
5881 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
5887 man/custom-html.xsl \
5890 # ------------------------------------------------------------------------------
5893 docs/sysvinit/README
5898 docs/sysvinit/README: docs/sysvinit/README.in
5901 docs/var-log/README: docs/var-log/README.in
5905 docs/sysvinit/README \
5910 docs/sysvinit/README.in \
5911 docs/var-log/README.in
5913 SOCKETS_TARGET_WANTS += \
5914 systemd-initctl.socket \
5915 systemd-shutdownd.socket
5919 RUNLEVEL1_TARGET_WANTS += \
5920 systemd-update-utmp-runlevel.service
5921 RUNLEVEL2_TARGET_WANTS += \
5922 systemd-update-utmp-runlevel.service
5923 RUNLEVEL3_TARGET_WANTS += \
5924 systemd-update-utmp-runlevel.service
5925 RUNLEVEL4_TARGET_WANTS += \
5926 systemd-update-utmp-runlevel.service
5927 RUNLEVEL5_TARGET_WANTS += \
5928 systemd-update-utmp-runlevel.service
5931 SYSINIT_TARGET_WANTS += \
5932 systemd-update-utmp.service
5935 SYSINIT_TARGET_WANTS += \
5936 systemd-update-done.service
5938 LOCAL_FS_TARGET_WANTS += \
5939 systemd-remount-fs.service \
5942 MULTI_USER_TARGET_WANTS += \
5944 systemd-ask-password-wall.path
5946 SYSINIT_TARGET_WANTS += \
5947 dev-hugepages.mount \
5949 sys-kernel-config.mount \
5950 sys-kernel-debug.mount \
5951 sys-fs-fuse-connections.mount \
5952 systemd-sysctl.service \
5953 systemd-ask-password-console.path
5956 SYSTEM_UNIT_ALIASES += \
5957 poweroff.target runlevel0.target \
5958 rescue.target runlevel1.target \
5959 multi-user.target runlevel2.target \
5960 multi-user.target runlevel3.target \
5961 multi-user.target runlevel4.target \
5962 graphical.target runlevel5.target \
5963 reboot.target runlevel6.target
5966 SYSTEM_UNIT_ALIASES += \
5967 graphical.target default.target \
5968 reboot.target ctrl-alt-del.target \
5969 getty@.service autovt@.service
5971 USER_UNIT_ALIASES += \
5972 $(systemunitdir)/shutdown.target shutdown.target \
5973 $(systemunitdir)/sockets.target sockets.target \
5974 $(systemunitdir)/timers.target timers.target \
5975 $(systemunitdir)/paths.target paths.target \
5976 $(systemunitdir)/bluetooth.target bluetooth.target \
5977 $(systemunitdir)/printer.target printer.target \
5978 $(systemunitdir)/sound.target sound.target \
5979 $(systemunitdir)/smartcard.target smartcard.target
5982 USER_UNIT_ALIASES += \
5983 $(systemunitdir)/busnames.target busnames.target
5986 GENERAL_ALIASES += \
5987 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
5988 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
5989 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
5990 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
5994 $(systemunitdir)/runlevel1.target.wants \
5995 $(systemunitdir)/runlevel2.target.wants \
5996 $(systemunitdir)/runlevel3.target.wants \
5997 $(systemunitdir)/runlevel4.target.wants \
5998 $(systemunitdir)/runlevel5.target.wants
6002 $(prefix)/lib/modules-load.d \
6003 $(sysconfdir)/modules-load.d \
6004 $(prefix)/lib/systemd/network \
6005 $(sysconfdir)/systemd/network \
6006 $(prefix)/lib/sysctl.d \
6007 $(sysconfdir)/sysctl.d \
6008 $(prefix)/lib/kernel/install.d \
6009 $(sysconfdir)/kernel/install.d \
6010 $(systemshutdowndir) \
6012 $(systemgeneratordir) \
6013 $(usergeneratordir) \
6016 $(pkgsysconfdir)/system \
6017 $(pkgsysconfdir)/system/multi-user.target.wants \
6018 $(pkgsysconfdir)/system/getty.target.wants \
6019 $(pkgsysconfdir)/user \
6020 $(dbussessionservicedir) \
6021 $(sysconfdir)/xdg/systemd
6023 install-exec-hook: $(INSTALL_EXEC_HOOKS)
6025 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
6027 install-data-hook: $(INSTALL_DATA_HOOKS)
6029 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
6031 clean-local: $(CLEAN_LOCAL_HOOKS)
6032 rm -rf $(abs_srcdir)/install-tree
6033 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
6034 $(abs_srcdir)/hwdb/iab.txt
6036 DISTCHECK_CONFIGURE_FLAGS = \
6037 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
6038 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6039 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
6040 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
6041 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
6042 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
6043 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
6044 --with-rootprefix=$$dc_install_base \
6045 --disable-split-usr \
6047 --enable-compat-libs
6050 DISTCHECK_CONFIGURE_FLAGS += \
6051 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
6052 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
6054 DISTCHECK_CONFIGURE_FLAGS += \
6055 --with-sysvinit-path= \
6056 --with-sysvrcnd-path=
6060 DISTCHECK_CONFIGURE_FLAGS += \
6065 DISTCHECK_CONFIGURE_FLAGS += \
6070 # Require python when making dist
6072 .PHONY: dist-check-python
6075 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
6079 dist-check-compat-libs:
6080 if !ENABLE_COMPAT_LIBS
6081 @echo "*** compat-libs must be enabled in order to make dist"
6085 dist: dist-check-python dist-check-compat-libs
6087 # check "broken" platforms limited toolchains for link breakage before we release
6090 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
6094 ( cd $(top_srcdir)/hwdb && \
6095 wget -N http://www.linux-usb.org/usb.ids \
6096 http://pci-ids.ucw.cz/v2.2/pci.ids \
6097 http://standards.ieee.org/develop/regauth/oui/oui.txt \
6098 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
6101 .PHONY: kdbus-update
6103 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
6104 wget -N https://d-bus.googlecode.com/git/kdbus.h )
6108 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6110 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6112 upload: all check dist
6113 scp systemd-$(VERSION).tar.xz $(www_target)
6116 doc-sync: all destdir-sphinx
6117 gtkdoc-rebase --html-dir=docs/libudev/html --online
6118 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
6119 gtkdoc-rebase --html-dir=docs/gudev/html --online
6120 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
6121 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6122 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
6126 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
6127 scp man/*.html tango:public/systemd-man/
6129 .PHONY: install-tree
6131 rm -rf $(abs_srcdir)/install-tree
6132 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6133 tree $(abs_srcdir)/install-tree
6135 # Let's run all tests of the test suite, but under valgrind. Let's
6136 # exclude the one perl script we have in there
6137 .PHONY: valgrind-tests
6138 valgrind-tests: $(TESTS)
6139 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
6140 if file $$f | grep -q shell; then \
6141 echo -e "$${x}Skipping non-binary $$f"; else \
6142 echo -e "$${x}Running $$f"; \
6143 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6148 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6150 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6151 $(AM_V_GEN)cat $^ > $@
6153 .PHONY: check-api-docs
6154 check-api-docs: exported man
6155 $(AM_V_GEN)for symbol in `cat exported` ; do \
6156 if test -f $(builddir)/man/$$symbol.html ; then \
6157 echo " Symbol $$symbol() is documented." ; \
6159 echo "‣ Symbol $$symbol() lacks documentation." ; \
6163 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6164 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6166 undefined defined: $(ALL_OBJECTS)
6167 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6168 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6169 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6175 .PHONY: check-api-unused
6176 check-api-unused: defined undefined exported
6177 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6179 .PHONY: check-includes
6180 check-includes: $(top_srcdir)/tools/check-includes.pl
6181 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6182 | xargs $(top_srcdir)/tools/check-includes.pl
6185 $(top_srcdir)/tools/check-includes.pl
6187 # Stupid test that everything purported to be exported really is
6188 define generate-sym-test
6189 $(AM_V_at)$(MKDIR_P) $(dir $@)
6190 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6191 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6192 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6193 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6194 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6195 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6196 $(AM_V_at)printf 'return 0; }\n' >> $@
6199 test-libsystemd-sym.c: \
6200 $(top_builddir)/src/libsystemd/libsystemd.sym \
6201 src/systemd/sd-journal.h \
6202 src/systemd/sd-daemon.h \
6203 src/systemd/sd-login.h \
6204 src/systemd/sd-bus.h \
6205 src/systemd/sd-utf8.h \
6206 src/systemd/sd-resolve.h \
6207 src/systemd/sd-path.h
6208 $(generate-sym-test)
6210 test-libudev-sym.c: \
6211 src/libudev/libudev.sym \
6213 $(generate-sym-test)
6215 test_libsystemd_sym_SOURCES = \
6216 test-libsystemd-sym.c
6217 test_libsystemd_sym_LDADD = \
6220 test_libudev_sym_SOURCES = \
6222 test_libudev_sym_CFLAGS = \
6224 -Wno-deprecated-declarations
6225 test_libudev_sym_LDADD = \
6229 $(test_libsystemd_sym_SOURCES) \
6230 $(test_libudev_sym_SOURCES)
6233 test-libsystemd-sym \
6238 cppcheck --enable=all -q $(top_srcdir)
6240 # Used to extract compile flags for YCM.
6245 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u
6248 tools/gdb-sd_dump_hashmaps.py