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/linux/auto_dev-ioctl.h \
743 src/shared/ioprio.h \
744 src/shared/missing.h \
745 src/shared/initreq.h \
746 src/shared/securebits.h \
747 src/shared/special.h \
749 src/shared/unaligned.h \
752 src/shared/sparse-endian.h \
753 src/shared/refcnt.h \
754 src/shared/udev-util.h \
755 src/shared/bus-errors.h \
756 src/shared/bus-errors.c \
757 src/shared/device-nodes.c \
758 src/shared/device-nodes.h \
763 src/shared/architecture.c \
764 src/shared/architecture.h \
765 src/shared/efivars.c \
766 src/shared/efivars.h \
767 src/shared/path-util.c \
768 src/shared/path-util.h \
769 src/shared/time-util.c \
770 src/shared/time-util.h \
771 src/shared/locale-util.c \
772 src/shared/locale-util.h \
773 src/shared/mempool.c \
774 src/shared/mempool.h \
775 src/shared/hashmap.c \
776 src/shared/hashmap.h \
777 src/shared/siphash24.c \
778 src/shared/siphash24.h \
784 src/shared/sleep-config.c \
785 src/shared/sleep-config.h \
788 src/shared/env-util.c \
789 src/shared/env-util.h \
790 src/shared/strbuf.c \
791 src/shared/strbuf.h \
792 src/shared/strxcpyx.c \
793 src/shared/strxcpyx.h \
794 src/shared/conf-parser.c \
795 src/shared/conf-parser.h \
798 src/shared/ratelimit.h \
799 src/shared/ratelimit.c \
800 src/shared/exit-status.c \
801 src/shared/exit-status.h \
804 src/shared/gunicode.c \
805 src/shared/gunicode.h \
808 src/shared/socket-util.c \
809 src/shared/socket-util.h \
810 src/shared/in-addr-util.c \
811 src/shared/in-addr-util.h \
812 src/shared/conf-files.c \
813 src/shared/conf-files.h \
814 src/shared/cgroup-util.c \
815 src/shared/cgroup-util.h \
816 src/shared/cgroup-show.c \
817 src/shared/cgroup-show.h \
818 src/shared/unit-name.c \
819 src/shared/unit-name.h \
820 src/shared/utmp-wtmp.h \
821 src/shared/watchdog.c \
822 src/shared/watchdog.h \
823 src/shared/spawn-ask-password-agent.c \
824 src/shared/spawn-ask-password-agent.h \
825 src/shared/replace-var.c \
826 src/shared/replace-var.h \
827 src/shared/spawn-polkit-agent.c \
828 src/shared/spawn-polkit-agent.h \
829 src/shared/clock-util.c \
830 src/shared/clock-util.h \
831 src/shared/time-dst.c \
832 src/shared/time-dst.h \
833 src/shared/calendarspec.c \
834 src/shared/calendarspec.h \
835 src/shared/fileio.c \
836 src/shared/fileio.h \
837 src/shared/output-mode.h \
838 src/shared/MurmurHash2.c \
839 src/shared/MurmurHash2.h \
840 src/shared/acpi-fpdt.h \
841 src/shared/acpi-fpdt.c \
842 src/shared/boot-timestamps.h \
843 src/shared/boot-timestamps.c \
846 src/shared/smack-util.c \
847 src/shared/smack-util.h \
848 src/shared/apparmor-util.c \
849 src/shared/apparmor-util.h \
850 src/shared/ima-util.c \
851 src/shared/ima-util.h \
852 src/shared/ptyfwd.c \
853 src/shared/ptyfwd.h \
854 src/shared/errno-list.c \
855 src/shared/errno-list.h \
856 src/shared/af-list.c \
857 src/shared/af-list.h \
858 src/shared/arphrd-list.c \
859 src/shared/arphrd-list.h \
864 src/shared/condition.c \
865 src/shared/condition.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 = \
909 # ------------------------------------------------------------------------------
910 noinst_LTLIBRARIES += \
913 libsystemd_units_la_SOURCES = \
914 src/shared/install.c \
915 src/shared/install.h \
916 src/shared/install-printf.c \
917 src/shared/install-printf.h \
918 src/shared/path-lookup.c \
919 src/shared/path-lookup.h \
920 src/shared/specifier.c \
921 src/shared/specifier.h
923 # ------------------------------------------------------------------------------
924 noinst_LTLIBRARIES += \
927 libsystemd_label_la_SOURCES = \
928 src/shared/socket-label.c \
931 src/shared/selinux-util.c \
932 src/shared/selinux-util.h \
933 src/shared/mkdir-label.c \
934 src/shared/ask-password-api.c \
935 src/shared/ask-password-api.h \
936 src/shared/switch-root.h \
937 src/shared/switch-root.c \
938 src/shared/fileio-label.c \
939 src/shared/fileio-label.h \
940 src/shared/dev-setup.c \
941 src/shared/dev-setup.h \
942 src/shared/dropin.c \
943 src/shared/dropin.h \
944 src/shared/generator.h \
945 src/shared/generator.c
947 libsystemd_label_la_CFLAGS = \
951 libsystemd_label_la_LIBADD = \
954 # -----------------------------------------------------------------------------
957 dist_systemunit_DATA += \
958 units/ldconfig.service
960 SYSINIT_TARGET_WANTS += \
964 # ------------------------------------------------------------------------------
967 noinst_LTLIBRARIES += \
968 libsystemd-seccomp.la
970 libsystemd_seccomp_la_SOURCES = \
971 src/shared/seccomp-util.h \
972 src/shared/seccomp-util.c
974 libsystemd_seccomp_la_CFLAGS = \
978 libsystemd_seccomp_la_LIBADD = \
982 # ------------------------------------------------------------------------------
983 noinst_LTLIBRARIES += \
986 libsystemd_logs_la_SOURCES = \
987 src/shared/logs-show.c \
988 src/shared/logs-show.h
990 # ------------------------------------------------------------------------------
991 noinst_LTLIBRARIES += \
992 libsystemd-capability.la
994 libsystemd_capability_la_SOURCES = \
995 src/shared/capability.c \
996 src/shared/capability.h
998 libsystemd_capability_la_CFLAGS = \
1002 libsystemd_capability_la_LIBADD = \
1005 # ------------------------------------------------------------------------------
1007 noinst_LTLIBRARIES += \
1010 libsystemd_acl_la_SOURCES = \
1011 src/shared/acl-util.c \
1012 src/shared/acl-util.h
1014 libsystemd_acl_la_CFLAGS = \
1018 libsystemd_acl_la_LIBADD = \
1022 # ------------------------------------------------------------------------------
1023 noinst_LTLIBRARIES += \
1026 libsystemd_core_la_SOURCES = \
1029 src/core/unit-printf.c \
1030 src/core/unit-printf.h \
1033 src/core/manager.c \
1034 src/core/manager.h \
1035 src/core/transaction.c \
1036 src/core/transaction.h \
1037 src/core/load-fragment.c \
1038 src/core/load-fragment.h \
1039 src/core/service.c \
1040 src/core/service.h \
1043 src/core/busname.c \
1044 src/core/busname.h \
1045 src/core/bus-common.c \
1046 src/core/bus-common.h \
1047 src/core/bus-endpoint.c \
1048 src/core/bus-endpoint.h \
1051 src/core/snapshot.c \
1052 src/core/snapshot.h \
1057 src/core/automount.c \
1058 src/core/automount.h \
1069 src/core/load-dropin.c \
1070 src/core/load-dropin.h \
1071 src/core/execute.c \
1072 src/core/execute.h \
1077 src/core/dbus-manager.c \
1078 src/core/dbus-manager.h \
1079 src/core/dbus-unit.c \
1080 src/core/dbus-unit.h \
1081 src/core/dbus-job.c \
1082 src/core/dbus-job.h \
1083 src/core/dbus-service.c \
1084 src/core/dbus-service.h \
1085 src/core/dbus-socket.c \
1086 src/core/dbus-socket.h \
1087 src/core/dbus-busname.c \
1088 src/core/dbus-busname.h \
1089 src/core/dbus-target.c \
1090 src/core/dbus-target.h \
1091 src/core/dbus-snapshot.c \
1092 src/core/dbus-snapshot.h \
1093 src/core/dbus-device.c \
1094 src/core/dbus-device.h \
1095 src/core/dbus-mount.c \
1096 src/core/dbus-mount.h \
1097 src/core/dbus-automount.c \
1098 src/core/dbus-automount.h \
1099 src/core/dbus-swap.c \
1100 src/core/dbus-swap.h \
1101 src/core/dbus-timer.c \
1102 src/core/dbus-timer.h \
1103 src/core/dbus-path.c \
1104 src/core/dbus-path.h \
1105 src/core/dbus-slice.c \
1106 src/core/dbus-slice.h \
1107 src/core/dbus-scope.c \
1108 src/core/dbus-scope.h \
1109 src/core/dbus-execute.c \
1110 src/core/dbus-execute.h \
1111 src/core/dbus-kill.c \
1112 src/core/dbus-kill.h \
1113 src/core/dbus-cgroup.c \
1114 src/core/dbus-cgroup.h \
1117 src/core/selinux-access.c \
1118 src/core/selinux-access.h \
1119 src/core/selinux-setup.c \
1120 src/core/selinux-setup.h \
1121 src/core/smack-setup.c \
1122 src/core/smack-setup.h \
1123 src/core/ima-setup.c \
1124 src/core/ima-setup.h \
1125 src/core/locale-setup.h \
1126 src/core/locale-setup.c \
1127 src/core/hostname-setup.c \
1128 src/core/hostname-setup.h \
1129 src/core/machine-id-setup.c \
1130 src/core/machine-id-setup.h \
1131 src/core/mount-setup.c \
1132 src/core/mount-setup.h \
1133 src/core/loopback-setup.h \
1134 src/core/loopback-setup.c \
1135 src/core/namespace.c \
1136 src/core/namespace.h \
1138 src/core/sysfs-show.h \
1139 src/core/killall.h \
1140 src/core/killall.c \
1141 src/core/audit-fd.c \
1142 src/core/audit-fd.h \
1143 src/core/show-status.c \
1144 src/core/show-status.h \
1145 src/core/failure-action.c \
1146 src/core/failure-action.h
1149 libsystemd_core_la_SOURCES += \
1150 src/core/kmod-setup.c \
1151 src/core/kmod-setup.h
1154 nodist_libsystemd_core_la_SOURCES = \
1155 src/core/load-fragment-gperf.c \
1156 src/core/load-fragment-gperf-nulstr.c
1158 libsystemd_core_la_CFLAGS = \
1164 $(APPARMOR_CFLAGS) \
1168 libsystemd_core_la_LIBADD = \
1169 libsystemd-capability.la \
1170 libsystemd-units.la \
1171 libsystemd-label.la \
1172 libudev-internal.la \
1173 libsystemd-shared.la \
1174 libsystemd-internal.la \
1183 libsystemd_core_la_LIBADD += \
1184 libsystemd-seccomp.la
1187 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1188 $(AM_V_at)$(MKDIR_P) $(dir $@)
1189 $(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 ";" }' < $< > $@
1192 src/core/load-fragment-gperf.gperf.m4
1195 src/core/load-fragment-gperf.gperf \
1196 src/core/load-fragment-gperf.c \
1197 src/core/load-fragment-gperf-nulstr.c \
1198 src/shared/errno-list.txt \
1199 src/shared/errno-from-name.gperf \
1200 src/shared/af-list.txt \
1201 src/shared/af-from-name.gperf \
1202 src/shared/arphrd-list.txt \
1203 src/shared/arphrd-from-name.gperf \
1204 src/shared/dns_type-list.txt \
1205 src/shared/dns_type-from-name.gperf
1208 src/shared/errno-from-name.h \
1209 src/shared/errno-to-name.h \
1210 src/shared/af-from-name.h \
1211 src/shared/af-to-name.h \
1212 src/shared/arphrd-from-name.h \
1213 src/shared/arphrd-to-name.h \
1214 src/resolve/dns_type-from-name.h \
1215 src/resolve/dns_type-to-name.h
1217 %-from-name.gperf: %-list.txt
1218 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1220 %-from-name.h: %-from-name.gperf
1221 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1224 src/shared/errno-list.txt:
1225 $(AM_V_at)$(MKDIR_P) $(dir $@)
1226 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1228 src/shared/errno-to-name.h: src/shared/errno-list.txt
1229 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1232 src/shared/af-list.txt:
1233 $(AM_V_at)$(MKDIR_P) $(dir $@)
1234 $(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; }' >$@
1236 src/shared/af-to-name.h: src/shared/af-list.txt
1237 $(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 "};"}' <$< >$@
1239 src/shared/arphrd-list.txt:
1240 $(AM_V_at)$(MKDIR_P) $(dir $@)
1241 $(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_//' >$@
1243 src/shared/arphrd-to-name.h: src/shared/arphrd-list.txt
1244 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1246 src/shared/arphrd-from-name.gperf: src/shared/arphrd-list.txt
1247 $(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 }' <$< >$@
1250 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1251 $(AM_V_at)$(MKDIR_P) $(dir $@)
1252 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1254 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1255 $(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" }' <$< >$@
1257 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1258 $(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 }' <$< >$@
1260 # ------------------------------------------------------------------------------
1269 libsystemd-core.la \
1272 dist_pkgsysconf_DATA += \
1273 src/core/system.conf \
1276 dist_dbuspolicy_DATA += \
1277 src/core/org.freedesktop.systemd1.conf
1279 dist_dbussystemservice_DATA += \
1280 src/core/org.freedesktop.systemd1.service
1282 polkitpolicy_in_in_files += \
1283 src/core/org.freedesktop.systemd1.policy.in.in
1285 pkgconfigdata_DATA = \
1288 nodist_rpmmacros_DATA = \
1289 src/core/macros.systemd
1292 src/core/systemd.pc.in \
1293 src/core/macros.systemd.in
1296 src/core/macros.systemd \
1297 src/core/org.freedesktop.systemd1.policy.in
1299 # ------------------------------------------------------------------------------
1342 test-strip-tab-ansi \
1372 test/daughter.service \
1377 test/grandchild.service \
1379 test/hello-after-sleep.target \
1380 test/hello.service \
1382 test/parent-deep.slice \
1385 test/sched_idle_bad.service \
1386 test/sched_idle_ok.service \
1387 test/sched_rr_bad.service \
1388 test/sched_rr_change.service \
1389 test/sched_rr_ok.service \
1390 test/shutdown.target \
1391 test/sleep.service \
1392 test/sockets.target \
1394 test/sysinit.target \
1395 test/testsuite.target \
1396 test/timers.target \
1397 test/unstoppable.service \
1398 test/bus-policy/hello.conf \
1399 test/bus-policy/methods.conf \
1400 test/bus-policy/ownerships.conf \
1401 test/bus-policy/signals.conf
1405 src/test/test-helper.h
1407 test_device_nodes_SOURCES = \
1408 src/test/test-device-nodes.c
1410 test_device_nodes_LDADD = \
1411 libsystemd-shared.la
1413 test_engine_SOURCES = \
1414 src/test/test-engine.c
1416 test_engine_CFLAGS = \
1420 test_engine_LDADD = \
1421 libsystemd-core.la \
1424 test_job_type_SOURCES = \
1425 src/test/test-job-type.c
1427 test_job_type_CFLAGS = \
1431 test_job_type_LDADD = \
1432 libsystemd-core.la \
1445 test_loopback_SOURCES = \
1446 src/test/test-loopback.c
1448 test_loopback_LDADD = \
1451 test_hostname_SOURCES = \
1452 src/test/test-hostname.c
1454 test_hostname_LDADD = \
1461 test_boot_timestamp_SOURCES = \
1462 src/test/test-boot-timestamps.c
1464 test_boot_timestamp_LDADD = \
1465 libsystemd-shared.la
1468 test_unit_name_SOURCES = \
1469 src/test/test-unit-name.c
1471 test_unit_name_CFLAGS = \
1475 test_unit_name_LDADD = \
1476 libsystemd-core.la \
1479 test_unit_file_SOURCES = \
1480 src/test/test-unit-file.c
1482 test_unit_file_CFLAGS = \
1486 test_unit_file_LDADD = \
1487 libsystemd-core.la \
1490 test_utf8_SOURCES = \
1491 src/test/test-utf8.c
1494 libsystemd-shared.la
1496 test_capability_SOURCES = \
1497 src/test/test-capability.c
1499 test_capability_LDADD = \
1500 libsystemd-shared.la \
1501 libsystemd-capability.la
1503 test_async_SOURCES = \
1504 src/test/test-async.c
1506 test_async_LDADD = \
1507 libsystemd-shared.la
1509 test_locale_util_SOURCES = \
1510 src/test/test-locale-util.c
1512 test_locale_util_LDADD = \
1513 libsystemd-shared.la
1515 test_copy_SOURCES = \
1516 src/test/test-copy.c
1519 libsystemd-shared.la
1521 test_condition_SOURCES = \
1522 src/test/test-condition.c
1524 test_condition_LDADD = \
1525 libsystemd-shared.la \
1526 libsystemd-internal.la \
1527 libsystemd-capability.la \
1530 test_fdset_SOURCES = \
1531 src/test/test-fdset.c
1533 test_fdset_LDADD = \
1534 libsystemd-shared.la
1536 test_ratelimit_SOURCES = \
1537 src/test/test-ratelimit.c
1539 test_ratelimit_LDADD = \
1540 libsystemd-shared.la
1542 test_util_SOURCES = \
1543 src/test/test-util.c
1547 libsystemd-shared.la
1549 test_uid_range_SOURCES = \
1550 src/test/test-uid-range.c
1552 test_uid_range_LDADD = \
1553 libsystemd-shared.la
1555 test_socket_util_SOURCES = \
1556 src/test/test-socket-util.c
1558 test_socket_util_LDADD = \
1559 libsystemd-shared.la
1561 test_ring_SOURCES = \
1562 src/test/test-ring.c
1565 libsystemd-shared.la
1567 test_barrier_SOURCES = \
1568 src/test/test-barrier.c
1570 test_barrier_LDADD = \
1571 libsystemd-shared.la
1573 test_pty_SOURCES = \
1579 test_tmpfiles_SOURCES = \
1580 src/test/test-tmpfiles.c
1582 test_tmpfiles_LDADD = \
1583 libsystemd-shared.la
1585 test_namespace_SOURCES = \
1586 src/test/test-namespace.c
1588 test_namespace_LDADD = \
1592 src/test/test-hashmap-ordered.c
1595 src/test/test-hashmap-ordered.c
1597 src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c
1598 $(AM_V_at)$(MKDIR_P) $(dir $@)
1599 $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \
1600 { if (!match($$0, "^#include")) \
1601 gsub(/hashmap/, "ordered_hashmap"); \
1602 gsub(/HASHMAP/, "ORDERED_HASHMAP"); \
1603 gsub(/Hashmap/, "OrderedHashmap"); \
1606 nodist_test_hashmap_SOURCES = \
1607 src/test/test-hashmap-ordered.c
1609 test_hashmap_SOURCES = \
1610 src/test/test-hashmap.c \
1611 src/test/test-hashmap-plain.c
1613 test_hashmap_LDADD = \
1614 libsystemd-shared.la
1616 test_set_SOURCES = \
1620 libsystemd-shared.la
1622 test_xml_SOURCES = \
1626 libsystemd-shared.la
1628 test_list_SOURCES = \
1629 src/test/test-list.c
1632 libsystemd-shared.la
1634 test_unaligned_LDADD = \
1635 libsystemd-shared.la
1637 test_unaligned_SOURCES = \
1638 src/test/test-unaligned.c
1640 test_tables_SOURCES = \
1641 src/test/test-tables.c \
1642 src/shared/test-tables.h \
1643 src/bus-proxyd/bus-policy.c \
1644 src/bus-proxyd/bus-policy.h \
1645 src/journal/journald-server.c \
1646 src/journal/journald-server.h
1648 test_tables_CPPFLAGS = \
1650 -I$(top_srcdir)/src/bus-proxyd
1652 test_tables_CFLAGS = \
1656 test_tables_LDADD = \
1657 libsystemd-logs.la \
1658 libsystemd-journal-internal.la \
1659 libsystemd-journal-core.la \
1660 libsystemd-core.la \
1664 test_prioq_SOURCES = \
1665 src/test/test-prioq.c
1667 test_prioq_LDADD = \
1668 libsystemd-shared.la
1670 test_fileio_SOURCES = \
1671 src/test/test-fileio.c
1673 test_fileio_LDADD = \
1674 libsystemd-shared.la
1676 test_time_SOURCES = \
1677 src/test/test-time.c
1680 libsystemd-shared.la
1682 test_architecture_SOURCES = \
1683 src/test/test-architecture.c
1685 test_architecture_LDADD = \
1686 libsystemd-shared.la
1688 test_log_SOURCES = \
1692 libsystemd-shared.la
1694 test_ipcrm_SOURCES = \
1695 src/test/test-ipcrm.c
1697 test_ipcrm_LDADD = \
1698 libsystemd-shared.la \
1701 test_rtnl_manual_SOURCES = \
1702 src/test/test-rtnl-manual.c
1704 test_rtnl_manual_CFLAGS = \
1708 test_rtnl_manual_LDADD = \
1709 libsystemd-internal.la \
1710 libsystemd-shared.la \
1713 test_ellipsize_SOURCES = \
1714 src/test/test-ellipsize.c
1716 test_ellipsize_LDADD = \
1717 libsystemd-shared.la
1719 test_date_SOURCES = \
1720 src/test/test-date.c
1723 libsystemd-shared.la
1725 test_sleep_SOURCES = \
1726 src/test/test-sleep.c
1728 test_sleep_LDADD = \
1731 test_replace_var_SOURCES = \
1732 src/test/test-replace-var.c
1734 test_replace_var_LDADD = \
1735 libsystemd-shared.la
1737 test_calendarspec_SOURCES = \
1738 src/test/test-calendarspec.c
1740 test_calendarspec_LDADD = \
1741 libsystemd-shared.la
1743 test_strip_tab_ansi_SOURCES = \
1744 src/test/test-strip-tab-ansi.c
1746 test_strip_tab_ansi_LDADD = \
1747 libsystemd-shared.la
1749 test_daemon_SOURCES = \
1750 src/test/test-daemon.c
1752 test_daemon_LDADD = \
1753 libsystemd-internal.la \
1754 libsystemd-shared.la
1756 test_cgroup_SOURCES = \
1757 src/test/test-cgroup.c
1759 test_cgroup_LDADD = \
1760 libsystemd-label.la \
1761 libsystemd-shared.la \
1762 libsystemd-internal.la
1764 test_cgroup_mask_SOURCES = \
1765 src/test/test-cgroup-mask.c
1767 test_cgroup_mask_CPPFLAGS = \
1770 test_cgroup_mask_CFLAGS = \
1774 test_cgroup_mask_LDADD = \
1775 libsystemd-core.la \
1778 test_cgroup_util_SOURCES = \
1779 src/test/test-cgroup-util.c
1781 test_cgroup_util_LDADD = \
1782 libsystemd-label.la \
1783 libsystemd-internal.la \
1784 libsystemd-shared.la
1786 test_env_replace_SOURCES = \
1787 src/test/test-env-replace.c
1789 test_env_replace_LDADD = \
1790 libsystemd-shared.la
1792 test_strbuf_SOURCES = \
1793 src/test/test-strbuf.c
1795 test_strbuf_LDADD = \
1796 libsystemd-shared.la
1798 test_strv_SOURCES = \
1799 src/test/test-strv.c
1802 libsystemd-units.la \
1803 libsystemd-internal.la \
1804 libsystemd-shared.la
1806 test_path_util_SOURCES = \
1807 src/test/test-path-util.c
1809 test_path_util_LDADD = \
1810 libsystemd-shared.la
1812 test_path_SOURCES = \
1813 src/test/test-path.c
1815 test_path_CFLAGS = \
1821 test_strxcpyx_SOURCES = \
1822 src/test/test-strxcpyx.c
1824 test_strxcpyx_LDADD = \
1825 libsystemd-shared.la
1827 test_install_SOURCES = \
1828 src/test/test-install.c
1830 test_install_LDADD = \
1831 libsystemd-units.la \
1832 libsystemd-label.la \
1833 libsystemd-shared.la \
1834 libsystemd-internal.la
1836 test_watchdog_SOURCES = \
1837 src/test/test-watchdog.c
1839 test_watchdog_LDADD = \
1840 libsystemd-shared.la
1842 test_sched_prio_SOURCES = \
1843 src/test/test-sched-prio.c
1845 test_sched_prio_CPPFLAGS = \
1848 test_sched_prio_CFLAGS = \
1852 test_sched_prio_LDADD = \
1853 libsystemd-core.la \
1856 test_conf_files_SOURCES = \
1857 src/test/test-conf-files.c
1859 test_conf_files_LDADD = \
1860 libsystemd-shared.la
1862 test_bus_policy_SOURCES = \
1863 src/bus-proxyd/test-bus-policy.c \
1864 src/bus-proxyd/bus-policy.c \
1865 src/bus-proxyd/bus-policy.h
1867 test_bus_policy_LDADD = \
1868 libsystemd-capability.la \
1869 libsystemd-internal.la \
1870 libsystemd-shared.la
1872 # ------------------------------------------------------------------------------
1873 ## .PHONY so it always rebuilds it
1874 .PHONY: coverage lcov-run lcov-report coverage-sync
1876 # run lcov from scratch, always
1881 coverage_dir = coverage
1882 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1885 # reset run coverage tests
1887 @rm -rf $(coverage_dir)
1888 lcov $(coverage_opts) --zerocounters
1891 # generate report based on current coverage data
1893 $(MKDIR_P) $(coverage_dir)
1894 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1895 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1896 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1897 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1899 # lcov doesn't work properly with vpath builds, make sure that bad
1900 # output is not uploaded by mistake.
1901 coverage-sync: coverage
1902 test "$(builddir)" = "$(srcdir)"
1903 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1906 lcov-run lcov-report:
1907 echo "Need to reconfigure with --enable-coverage"
1910 # ------------------------------------------------------------------------------
1911 systemd_analyze_SOURCES = \
1912 src/analyze/analyze.c \
1913 src/analyze/analyze-verify.c \
1914 src/analyze/analyze-verify.h
1916 systemd_verify_CFLAGS = \
1920 systemd_analyze_LDADD = \
1921 libsystemd-core.la \
1922 libsystemd-internal.la \
1923 libsystemd-shared.la \
1926 # ------------------------------------------------------------------------------
1927 systemd_initctl_SOURCES = \
1928 src/initctl/initctl.c
1930 systemd_initctl_LDADD = \
1931 libsystemd-internal.la \
1932 libsystemd-shared.la
1934 # ------------------------------------------------------------------------------
1935 systemd_update_utmp_SOURCES = \
1936 src/update-utmp/update-utmp.c
1938 systemd_update_utmp_CFLAGS = \
1942 systemd_update_utmp_LDADD = \
1943 libsystemd-internal.la \
1944 libsystemd-shared.la \
1947 # ------------------------------------------------------------------------------
1948 systemd_update_done_SOURCES = \
1949 src/update-done/update-done.c
1951 systemd_update_done_LDADD = \
1952 libsystemd-internal.la \
1953 libsystemd-label.la \
1954 libsystemd-shared.la
1956 # ------------------------------------------------------------------------------
1957 systemd_shutdownd_SOURCES = \
1958 src/shutdownd/shutdownd.c
1960 systemd_shutdownd_LDADD = \
1961 libsystemd-label.la \
1962 libsystemd-internal.la \
1963 libsystemd-shared.la
1966 src/systemd/sd-shutdown.h
1968 # ------------------------------------------------------------------------------
1969 systemd_shutdown_SOURCES = \
1972 src/core/shutdown.c \
1973 src/core/mount-setup.c \
1974 src/core/mount-setup.h \
1975 src/core/killall.h \
1978 systemd_shutdown_LDADD = \
1979 libsystemd-label.la \
1980 libudev-internal.la \
1981 libsystemd-shared.la
1983 # ------------------------------------------------------------------------------
1985 systemd_modules_load_SOURCES = \
1986 src/modules-load/modules-load.c
1988 systemd_modules_load_CFLAGS = \
1992 systemd_modules_load_LDADD = \
1993 libsystemd-shared.la \
1996 rootlibexec_PROGRAMS += \
1997 systemd-modules-load
1999 nodist_systemunit_DATA += \
2000 units/systemd-modules-load.service
2002 SYSINIT_TARGET_WANTS += \
2003 systemd-modules-load.service
2006 nodist_systemunit_DATA += \
2007 units/kmod-static-nodes.service
2009 SYSINIT_TARGET_WANTS += \
2010 kmod-static-nodes.service
2015 units/systemd-modules-load.service.in \
2016 units/kmod-static-nodes.service.in
2018 # ------------------------------------------------------------------------------
2020 systemd_tmpfiles_SOURCES = \
2021 src/tmpfiles/tmpfiles.c
2023 systemd_tmpfiles_LDADD = \
2024 libsystemd-units.la \
2025 libsystemd-label.la \
2026 libsystemd-capability.la \
2027 libsystemd-internal.la \
2028 libsystemd-shared.la
2030 rootbin_PROGRAMS += \
2033 dist_systemunit_DATA += \
2034 units/systemd-tmpfiles-clean.timer
2036 nodist_systemunit_DATA += \
2037 units/systemd-tmpfiles-setup-dev.service \
2038 units/systemd-tmpfiles-setup.service \
2039 units/systemd-tmpfiles-clean.service
2041 nodist_tmpfiles_DATA = \
2044 dist_tmpfiles_DATA = \
2045 tmpfiles.d/systemd.conf \
2046 tmpfiles.d/systemd-nologin.conf \
2047 tmpfiles.d/systemd-remote.conf \
2048 tmpfiles.d/tmp.conf \
2049 tmpfiles.d/x11.conf \
2053 dist_tmpfiles_DATA += \
2054 tmpfiles.d/legacy.conf
2057 SYSINIT_TARGET_WANTS += \
2058 systemd-tmpfiles-setup-dev.service \
2059 systemd-tmpfiles-setup.service
2061 dist_zshcompletion_DATA += \
2062 shell-completion/zsh/_systemd-tmpfiles
2064 TIMERS_TARGET_WANTS += \
2065 systemd-tmpfiles-clean.timer
2069 $(sysconfdir)/tmpfiles.d
2073 tmpfiles.d/etc.conf.m4 \
2074 units/systemd-tmpfiles-setup-dev.service.in \
2075 units/systemd-tmpfiles-setup.service.in \
2076 units/systemd-tmpfiles-clean.service.in
2081 # ------------------------------------------------------------------------------
2083 systemd_sysusers_SOURCES = \
2084 src/sysusers/sysusers.c
2086 systemd_sysusers_LDADD = \
2087 libsystemd-units.la \
2088 libsystemd-label.la \
2089 libsystemd-capability.la \
2090 libsystemd-internal.la \
2091 libsystemd-shared.la
2093 rootbin_PROGRAMS += \
2096 nodist_systemunit_DATA += \
2097 units/systemd-sysusers.service
2099 SYSINIT_TARGET_WANTS += \
2100 systemd-sysusers.service
2102 dist_sysusers_DATA = \
2103 sysusers.d/systemd.conf \
2104 sysusers.d/systemd-remote.conf
2106 nodist_sysusers_DATA = \
2107 sysusers.d/basic.conf
2110 units/systemd-sysusers.service.in \
2111 sysusers.d/basic.conf.in
2114 sysusers.d/basic.conf
2120 # ------------------------------------------------------------------------------
2121 dist_factory_etc_DATA = \
2122 factory/etc/nsswitch.conf
2125 dist_factory_pam_DATA = \
2126 factory/etc/pam.d/system-auth \
2127 factory/etc/pam.d/other
2130 # ------------------------------------------------------------------------------
2132 systemd_firstboot_SOURCES = \
2133 src/firstboot/firstboot.c
2135 systemd_firstboot_LDADD = \
2136 libsystemd-units.la \
2137 libsystemd-label.la \
2138 libsystemd-capability.la \
2139 libsystemd-internal.la \
2140 libsystemd-shared.la \
2143 rootbin_PROGRAMS += \
2146 nodist_systemunit_DATA += \
2147 units/systemd-firstboot.service
2150 units/systemd-firstboot.service.in
2152 SYSINIT_TARGET_WANTS += \
2153 systemd-firstboot.service
2156 # ------------------------------------------------------------------------------
2157 systemd_machine_id_setup_SOURCES = \
2158 src/machine-id-setup/machine-id-setup-main.c \
2159 src/core/machine-id-setup.c \
2160 src/core/machine-id-setup.h
2162 systemd_machine_id_setup_LDADD = \
2163 libsystemd-label.la \
2164 libsystemd-internal.la \
2165 libsystemd-shared.la
2167 # ------------------------------------------------------------------------------
2168 systemd_sysctl_SOURCES = \
2171 systemd_sysctl_LDADD = \
2172 libsystemd-shared.la
2174 # ------------------------------------------------------------------------------
2175 systemd_sleep_SOURCES = \
2178 systemd_sleep_LDADD = \
2179 libsystemd-shared.la
2181 # ------------------------------------------------------------------------------
2182 systemd_fsck_SOURCES = \
2185 systemd_fsck_LDADD = \
2186 libsystemd-internal.la \
2187 libudev-internal.la \
2188 libsystemd-shared.la
2190 # ------------------------------------------------------------------------------
2191 systemd_ac_power_SOURCES = \
2192 src/ac-power/ac-power.c
2194 systemd_ac_power_LDADD = \
2195 libudev-internal.la \
2196 libsystemd-shared.la
2198 # ------------------------------------------------------------------------------
2199 systemd_detect_virt_SOURCES = \
2200 src/detect-virt/detect-virt.c
2202 systemd_detect_virt_LDADD = \
2203 libsystemd-shared.la
2205 INSTALL_EXEC_HOOKS += \
2206 systemd-detect-virt-install-hook
2208 # ------------------------------------------------------------------------------
2209 systemd_delta_SOURCES = \
2212 systemd_delta_LDADD = \
2213 libsystemd-shared.la
2215 # ------------------------------------------------------------------------------
2216 systemd_getty_generator_SOURCES = \
2217 src/getty-generator/getty-generator.c
2219 systemd_getty_generator_LDADD = \
2220 libsystemd-label.la \
2221 libsystemd-shared.la
2223 # ------------------------------------------------------------------------------
2224 systemd_debug_generator_SOURCES = \
2225 src/debug-generator/debug-generator.c
2227 systemd_debug_generator_LDADD = \
2228 libsystemd-label.la \
2229 libsystemd-shared.la
2231 # ------------------------------------------------------------------------------
2232 systemd_fstab_generator_SOURCES = \
2233 src/fstab-generator/fstab-generator.c \
2234 src/core/mount-setup.c
2236 systemd_fstab_generator_LDADD = \
2237 libsystemd-label.la \
2238 libsystemd-shared.la
2240 # ------------------------------------------------------------------------------
2241 systemd_system_update_generator_SOURCES = \
2242 src/system-update-generator/system-update-generator.c
2244 systemd_system_update_generator_LDADD = \
2245 libsystemd-label.la \
2246 libsystemd-shared.la
2248 # ------------------------------------------------------------------------------
2250 systemgenerator_PROGRAMS += \
2251 systemd-hibernate-resume-generator
2253 rootlibexec_PROGRAMS += \
2254 systemd-hibernate-resume
2256 systemd_hibernate_resume_SOURCES = \
2257 src/hibernate-resume/hibernate-resume.c
2259 systemd_hibernate_resume_LDADD = \
2260 libsystemd-internal.la \
2261 libsystemd-shared.la
2263 systemd_hibernate_resume_generator_SOURCES = \
2264 src/hibernate-resume/hibernate-resume-generator.c
2266 systemd_hibernate_resume_generator_LDADD = \
2267 libsystemd-label.la \
2268 libsystemd-shared.la
2271 units/systemd-hibernate.service.in \
2272 units/systemd-hibernate-resume@.service.in \
2273 units/systemd-hybrid-sleep.service.in
2275 dist_systemunit_DATA += \
2276 units/hibernate.target \
2277 units/hybrid-sleep.target
2279 nodist_systemunit_DATA += \
2280 units/systemd-hibernate.service \
2281 units/systemd-hibernate-resume@.service \
2282 units/systemd-hybrid-sleep.service
2285 # ------------------------------------------------------------------------------
2287 systemgenerator_PROGRAMS += \
2288 systemd-efi-boot-generator
2290 systemd_efi_boot_generator_SOURCES = \
2291 src/efi-boot-generator/efi-boot-generator.c
2293 systemd_efi_boot_generator_LDADD = \
2294 libsystemd-label.la \
2295 libsystemd-shared.la
2297 # ------------------------------------------------------------------------------
2300 src/boot/boot-loader.h \
2301 src/boot/bootctl.c \
2302 src/boot/boot-loader.c \
2306 libsystemd-shared.la \
2307 libsystemd-internal.la
2312 dist_bashcompletion_DATA += \
2313 shell-completion/bash/bootctl
2315 dist_zshcompletion_DATA += \
2316 shell-completion/zsh/_bootctl
2320 # ------------------------------------------------------------------------------
2322 systemgenerator_PROGRAMS += \
2323 systemd-gpt-auto-generator
2325 systemd_gpt_auto_generator_SOURCES = \
2326 src/gpt-auto-generator/gpt-auto-generator.c \
2327 src/shared/blkid-util.h
2329 systemd_gpt_auto_generator_LDADD = \
2330 libsystemd-label.la \
2331 libsystemd-internal.la \
2332 libudev-internal.la \
2333 libsystemd-shared.la \
2336 systemd_gpt_auto_generator_CFLAGS = \
2341 # ------------------------------------------------------------------------------
2343 systemgenerator_PROGRAMS += \
2344 systemd-dbus1-generator
2346 systemd_dbus1_generator_SOURCES = \
2347 src/dbus1-generator/dbus1-generator.c
2349 systemd_dbus1_generator_LDADD = \
2350 libsystemd-label.la \
2351 libsystemd-shared.la \
2352 libsystemd-internal.la
2354 dbus1-generator-install-hook:
2355 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2356 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2357 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2359 dbus1-generator-uninstall-hook:
2360 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2362 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2363 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2366 # ------------------------------------------------------------------------------
2367 systemd_sysv_generator_SOURCES = \
2368 src/sysv-generator/sysv-generator.c
2370 systemd_sysv_generator_LDADD = \
2371 libsystemd-core.la \
2372 libsystemd-label.la \
2373 libsystemd-shared.la
2375 # ------------------------------------------------------------------------------
2376 systemd_rc_local_generator_SOURCES = \
2377 src/rc-local-generator/rc-local-generator.c
2379 systemd_rc_local_generator_LDADD = \
2380 libsystemd-label.la \
2381 libsystemd-shared.la
2383 # ------------------------------------------------------------------------------
2384 systemd_remount_fs_SOURCES = \
2385 src/remount-fs/remount-fs.c \
2386 src/core/mount-setup.c \
2387 src/core/mount-setup.h
2389 systemd_remount_fs_LDADD = \
2390 libsystemd-label.la \
2391 libsystemd-shared.la
2393 # ------------------------------------------------------------------------------
2394 systemd_cgroups_agent_SOURCES = \
2395 src/cgroups-agent/cgroups-agent.c
2397 systemd_cgroups_agent_LDADD = \
2398 libsystemd-internal.la \
2399 libsystemd-shared.la
2401 # ------------------------------------------------------------------------------
2402 systemd_escape_SOURCES = \
2405 systemd_escape_LDADD = \
2406 libsystemd-shared.la
2408 # -----------------------------------------------------------------------------
2409 systemctl_SOURCES = \
2410 src/systemctl/systemctl.c
2413 libsystemd-units.la \
2414 libsystemd-label.la \
2415 libsystemd-internal.la \
2416 libsystemd-logs.la \
2417 libsystemd-journal-internal.la \
2418 libsystemd-shared.la
2420 # ------------------------------------------------------------------------------
2421 systemd_notify_SOURCES = \
2424 systemd_notify_LDADD = \
2425 libsystemd-internal.la \
2426 libsystemd-shared.la
2428 # ------------------------------------------------------------------------------
2429 systemd_path_SOURCES = \
2432 systemd_path_LDADD = \
2433 libsystemd-internal.la \
2434 libsystemd-shared.la
2436 # ------------------------------------------------------------------------------
2437 systemd_ask_password_SOURCES = \
2438 src/ask-password/ask-password.c
2440 systemd_ask_password_LDADD = \
2441 libsystemd-label.la \
2442 libsystemd-shared.la
2444 # ------------------------------------------------------------------------------
2445 systemd_reply_password_SOURCES = \
2446 src/reply-password/reply-password.c
2448 systemd_reply_password_LDADD = \
2449 libsystemd-shared.la
2451 # ------------------------------------------------------------------------------
2452 systemd_cgls_SOURCES = \
2455 systemd_cgls_LDADD = \
2456 libsystemd-internal.la \
2457 libsystemd-shared.la
2459 # ------------------------------------------------------------------------------
2460 systemd_cgtop_SOURCES = \
2463 systemd_cgtop_LDADD = \
2464 libsystemd-shared.la
2466 # ------------------------------------------------------------------------------
2467 systemd_nspawn_SOURCES = \
2468 src/nspawn/nspawn.c \
2469 src/core/mount-setup.c \
2470 src/core/mount-setup.h \
2471 src/core/loopback-setup.c \
2472 src/core/loopback-setup.h
2474 systemd_nspawn_CFLAGS = \
2479 systemd_nspawn_LDADD = \
2480 libsystemd-label.la \
2481 libsystemd-capability.la \
2482 libsystemd-internal.la \
2483 libudev-internal.la \
2484 libsystemd-shared.la \
2488 systemd_nspawn_LDADD += \
2489 libsystemd-seccomp.la \
2493 # ------------------------------------------------------------------------------
2494 systemd_run_SOURCES = \
2497 systemd_run_LDADD = \
2498 libsystemd-label.la \
2499 libsystemd-capability.la \
2500 libsystemd-internal.la \
2501 libsystemd-shared.la
2503 # ------------------------------------------------------------------------------
2504 systemd_bus_proxyd_SOURCES = \
2505 src/bus-proxyd/bus-proxyd.c \
2506 src/bus-proxyd/bus-policy.c \
2507 src/bus-proxyd/bus-policy.h
2509 systemd_bus_proxyd_LDADD = \
2510 libsystemd-capability.la \
2511 libsystemd-internal.la \
2512 libsystemd-shared.la
2514 bus-proxyd-install-hook:
2515 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
2516 $(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2517 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
2519 bus-proxyd-uninstall-hook:
2520 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2522 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
2523 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
2526 nodist_systemunit_DATA += \
2527 units/systemd-bus-proxyd@.service
2529 dist_systemunit_DATA += \
2530 units/systemd-bus-proxyd.socket
2532 nodist_userunit_DATA += \
2533 units/user/systemd-bus-proxyd@.service
2535 dist_userunit_DATA += \
2536 units/user/systemd-bus-proxyd.socket
2540 units/systemd-bus-proxyd@.service.in \
2541 units/user/systemd-bus-proxyd@.service.in
2543 # ------------------------------------------------------------------------------
2544 systemd_tty_ask_password_agent_SOURCES = \
2545 src/tty-ask-password-agent/tty-ask-password-agent.c
2547 systemd_tty_ask_password_agent_LDADD = \
2548 libsystemd-label.la \
2549 libsystemd-shared.la
2551 # ------------------------------------------------------------------------------
2552 libsystemd_internal_la_SOURCES = \
2553 src/systemd/sd-bus.h \
2554 src/systemd/sd-bus-protocol.h \
2555 src/systemd/sd-bus-vtable.h \
2556 src/systemd/sd-utf8.h \
2557 src/systemd/sd-event.h \
2558 src/systemd/sd-rtnl.h \
2559 src/systemd/sd-resolve.h \
2560 src/systemd/sd-login.h \
2561 src/systemd/sd-id128.h \
2562 src/systemd/sd-daemon.h \
2563 src/systemd/sd-path.h \
2564 src/systemd/sd-network.h \
2565 src/libsystemd/sd-bus/sd-bus.c \
2566 src/libsystemd/sd-bus/bus-control.c \
2567 src/libsystemd/sd-bus/bus-control.h \
2568 src/libsystemd/sd-bus/bus-error.c \
2569 src/libsystemd/sd-bus/bus-error.h \
2570 src/libsystemd/sd-bus/bus-internal.c \
2571 src/libsystemd/sd-bus/bus-internal.h \
2572 src/libsystemd/sd-bus/bus-socket.c \
2573 src/libsystemd/sd-bus/bus-socket.h \
2574 src/libsystemd/sd-bus/bus-kernel.c \
2575 src/libsystemd/sd-bus/bus-kernel.h \
2576 src/libsystemd/sd-bus/bus-container.c \
2577 src/libsystemd/sd-bus/bus-container.h \
2578 src/libsystemd/sd-bus/bus-message.c \
2579 src/libsystemd/sd-bus/bus-message.h \
2580 src/libsystemd/sd-bus/bus-creds.c \
2581 src/libsystemd/sd-bus/bus-creds.h \
2582 src/libsystemd/sd-bus/bus-signature.c \
2583 src/libsystemd/sd-bus/bus-signature.h \
2584 src/libsystemd/sd-bus/bus-type.c \
2585 src/libsystemd/sd-bus/bus-type.h \
2586 src/libsystemd/sd-bus/bus-match.c \
2587 src/libsystemd/sd-bus/bus-match.h \
2588 src/libsystemd/sd-bus/bus-bloom.c \
2589 src/libsystemd/sd-bus/bus-bloom.h \
2590 src/libsystemd/sd-bus/bus-introspect.c \
2591 src/libsystemd/sd-bus/bus-introspect.h \
2592 src/libsystemd/sd-bus/bus-objects.c \
2593 src/libsystemd/sd-bus/bus-objects.h \
2594 src/libsystemd/sd-bus/bus-gvariant.c \
2595 src/libsystemd/sd-bus/bus-gvariant.h \
2596 src/libsystemd/sd-bus/bus-convenience.c \
2597 src/libsystemd/sd-bus/bus-track.c \
2598 src/libsystemd/sd-bus/bus-track.h \
2599 src/libsystemd/sd-bus/bus-util.c \
2600 src/libsystemd/sd-bus/bus-util.h \
2601 src/libsystemd/sd-bus/bus-slot.c \
2602 src/libsystemd/sd-bus/bus-slot.h \
2603 src/libsystemd/sd-bus/bus-protocol.h \
2604 src/libsystemd/sd-bus/kdbus.h \
2605 src/libsystemd/sd-utf8/sd-utf8.c \
2606 src/libsystemd/sd-event/sd-event.c \
2607 src/libsystemd/sd-event/event-util.h \
2608 src/libsystemd/sd-rtnl/sd-rtnl.c \
2609 src/libsystemd/sd-rtnl/rtnl-internal.h \
2610 src/libsystemd/sd-rtnl/rtnl-message.c \
2611 src/libsystemd/sd-rtnl/rtnl-types.h \
2612 src/libsystemd/sd-rtnl/rtnl-types.c \
2613 src/libsystemd/sd-rtnl/rtnl-util.h \
2614 src/libsystemd/sd-rtnl/rtnl-util.c \
2615 src/libsystemd/sd-rtnl/local-addresses.h \
2616 src/libsystemd/sd-rtnl/local-addresses.c \
2617 src/libsystemd/sd-id128/sd-id128.c \
2618 src/libsystemd/sd-daemon/sd-daemon.c \
2619 src/libsystemd/sd-login/sd-login.c \
2620 src/libsystemd/sd-path/sd-path.c \
2621 src/libsystemd/sd-network/sd-network.c \
2622 src/libsystemd/sd-network/network-util.h \
2623 src/libsystemd/sd-network/network-util.c
2625 nodist_libsystemd_internal_la_SOURCES = \
2626 src/libsystemd/libsystemd.sym
2628 libsystemd_internal_la_CFLAGS = \
2632 libsystemd_internal_la_LIBADD = \
2635 libsystemd_resolve_la_SOURCES = \
2636 src/libsystemd/sd-resolve/sd-resolve.c \
2637 src/libsystemd/sd-resolve/resolve-util.h
2639 libsystemd_resolve_la_CFLAGS = \
2643 libsystemd_resolve_la_LIBADD = \
2646 noinst_LTLIBRARIES += \
2647 libsystemd-internal.la \
2648 libsystemd-resolve.la
2650 libsystemd_dump_la_SOURCES = \
2651 src/libsystemd/sd-bus/bus-dump.c \
2652 src/libsystemd/sd-bus/bus-dump.h
2654 libsystemd_dump_la_CFLAGS = \
2658 noinst_LTLIBRARIES += \
2662 src/libsystemd/libsystemd.sym.m4 \
2663 src/libsystemd/libsystemd.pc.in \
2664 src/libsystemd/sd-bus/DIFFERENCES \
2665 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2668 src/libsystemd/libsystemd.sym
2671 src/libsystemd/libsystemd.sym
2673 libsystemd_la_SOURCES = \
2674 $(libsystemd_internal_la_SOURCES) \
2675 $(libsystemd_resolve_la_SOURCES) \
2676 $(libsystemd_journal_internal_la_SOURCES)
2678 nodist_libsystemd_la_SOURCES = \
2679 $(nodist_libsystemd_internal_la_SOURCES)
2681 libsystemd_la_CFLAGS = \
2682 $(libsystemd_internal_la_CFLAGS) \
2683 $(libsystemd_resolve_la_CFLAGS) \
2684 $(libsystemd_journal_internal_la_CFLAGS)
2686 libsystemd_la_LDFLAGS = \
2688 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2689 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2691 libsystemd_la_LIBADD = \
2692 libsystemd-shared.la \
2693 $(libsystemd_internal_la_LIBADD) \
2694 $(libsystemd_journal_internal_la_LIBADD) \
2695 $(libsystemd_resolve_la_LIBADD)
2697 libsystemd-install-hook:
2698 libname=libsystemd.so && $(move-to-rootlibdir)
2700 libsystemd-uninstall-hook:
2701 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2703 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2704 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2706 pkgconfiglib_DATA += \
2707 src/libsystemd/libsystemd.pc
2709 pkginclude_HEADERS += \
2710 src/systemd/sd-login.h \
2711 src/systemd/sd-id128.h \
2712 src/systemd/sd-daemon.h
2715 pkginclude_HEADERS += \
2716 src/systemd/sd-bus.h \
2717 src/systemd/sd-bus-protocol.h \
2718 src/systemd/sd-bus-vtable.h \
2719 src/systemd/sd-utf8.h \
2720 src/systemd/sd-event.h \
2721 src/systemd/sd-rtnl.h \
2722 src/systemd/sd-resolve.h \
2723 src/systemd/sd-path.h
2726 lib_LTLIBRARIES += \
2731 test-bus-signature \
2737 test-bus-kernel-bloom \
2738 test-bus-kernel-benchmark \
2739 test-bus-zero-copy \
2740 test-bus-introspect \
2752 test_bus_marshal_SOURCES = \
2753 src/libsystemd/sd-bus/test-bus-marshal.c
2755 test_bus_marshal_LDADD = \
2756 libsystemd-internal.la \
2757 libsystemd-shared.la \
2758 libsystemd-dump.la \
2759 libsystemd-capability.la \
2764 test_bus_marshal_CFLAGS = \
2770 test_bus_signature_SOURCES = \
2771 src/libsystemd/sd-bus/test-bus-signature.c
2773 test_bus_signature_LDADD = \
2774 libsystemd-shared.la \
2775 libsystemd-internal.la
2777 test_bus_chat_SOURCES = \
2778 src/libsystemd/sd-bus/test-bus-chat.c
2780 test_bus_chat_CFLAGS = \
2784 test_bus_chat_LDADD = \
2785 libsystemd-internal.la \
2786 libsystemd-shared.la
2788 test_bus_cleanup_SOURCES = \
2789 src/libsystemd/sd-bus/test-bus-cleanup.c
2791 test_bus_cleanup_CFLAGS = \
2795 test_bus_cleanup_LDADD = \
2796 libsystemd-internal.la \
2797 libsystemd-shared.la
2799 test_bus_server_SOURCES = \
2800 src/libsystemd/sd-bus/test-bus-server.c
2802 test_bus_server_CFLAGS = \
2806 test_bus_server_LDADD = \
2807 libsystemd-internal.la \
2808 libsystemd-shared.la
2810 test_bus_objects_SOURCES = \
2811 src/libsystemd/sd-bus/test-bus-objects.c
2813 test_bus_objects_CFLAGS = \
2818 test_bus_objects_LDADD = \
2819 libsystemd-internal.la \
2820 libsystemd-shared.la \
2821 libsystemd-dump.la \
2822 libsystemd-capability.la \
2825 test_bus_error_SOURCES = \
2826 src/libsystemd/sd-bus/test-bus-error.c
2828 test_bus_error_LDADD = \
2829 libsystemd-internal.la \
2830 libsystemd-shared.la
2832 test_bus_gvariant_SOURCES = \
2833 src/libsystemd/sd-bus/test-bus-gvariant.c
2835 test_bus_gvariant_LDADD = \
2836 libsystemd-internal.la \
2837 libsystemd-shared.la \
2838 libsystemd-dump.la \
2839 libsystemd-capability.la \
2843 test_bus_gvariant_CFLAGS = \
2848 test_bus_creds_SOURCES = \
2849 src/libsystemd/sd-bus/test-bus-creds.c
2851 test_bus_creds_LDADD = \
2852 libsystemd-internal.la \
2853 libsystemd-shared.la \
2854 libsystemd-dump.la \
2855 libsystemd-capability.la
2857 test_bus_match_SOURCES = \
2858 src/libsystemd/sd-bus/test-bus-match.c
2860 test_bus_match_LDADD = \
2861 libsystemd-internal.la \
2862 libsystemd-shared.la
2864 test_bus_kernel_SOURCES = \
2865 src/libsystemd/sd-bus/test-bus-kernel.c
2867 test_bus_kernel_LDADD = \
2868 libsystemd-internal.la \
2869 libsystemd-shared.la \
2870 libsystemd-dump.la \
2871 libsystemd-capability.la \
2874 test_bus_kernel_CFLAGS = \
2878 test_bus_kernel_bloom_SOURCES = \
2879 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
2881 test_bus_kernel_bloom_LDADD = \
2882 libsystemd-internal.la \
2883 libsystemd-shared.la
2885 test_bus_kernel_benchmark_SOURCES = \
2886 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
2888 test_bus_kernel_benchmark_LDADD = \
2889 libsystemd-internal.la \
2890 libsystemd-shared.la
2892 test_bus_zero_copy_SOURCES = \
2893 src/libsystemd/sd-bus/test-bus-zero-copy.c
2895 test_bus_zero_copy_LDADD = \
2896 libsystemd-internal.la \
2897 libsystemd-shared.la \
2898 libsystemd-dump.la \
2899 libsystemd-capability.la \
2902 test_bus_zero_copy_CFLAGS = \
2906 test_bus_introspect_SOURCES = \
2907 src/libsystemd/sd-bus/test-bus-introspect.c
2909 test_bus_introspect_LDADD = \
2910 libsystemd-internal.la \
2911 libsystemd-shared.la
2913 test_event_SOURCES = \
2914 src/libsystemd/sd-event/test-event.c
2916 test_event_LDADD = \
2917 libsystemd-internal.la \
2918 libsystemd-shared.la
2920 test_rtnl_SOURCES = \
2921 src/libsystemd/sd-rtnl/test-rtnl.c
2924 libsystemd-internal.la \
2925 libsystemd-shared.la
2927 test_resolve_SOURCES = \
2928 src/libsystemd/sd-resolve/test-resolve.c
2930 test_resolve_LDADD = \
2931 libsystemd-resolve.la \
2932 libsystemd-internal.la \
2933 libsystemd-shared.la
2935 test_resolve_CFLAGS = \
2940 src/libsystemd/sd-bus/busctl.c
2943 libsystemd-internal.la \
2944 libsystemd-shared.la \
2945 libsystemd-dump.la \
2946 libsystemd-capability.la \
2953 # ------------------------------------------------------------------------------
2954 noinst_LTLIBRARIES += \
2955 libsystemd-network.la
2957 libsystemd_network_la_CFLAGS = \
2961 libsystemd_network_la_SOURCES = \
2962 src/systemd/sd-dhcp-client.h \
2963 src/systemd/sd-dhcp-server.h \
2964 src/systemd/sd-dhcp-lease.h \
2965 src/systemd/sd-ipv4ll.h \
2966 src/systemd/sd-icmp6-nd.h \
2967 src/systemd/sd-dhcp6-client.h \
2968 src/systemd/sd-dhcp6-lease.h \
2969 src/systemd/sd-pppoe.h \
2970 src/libsystemd-network/sd-dhcp-client.c \
2971 src/libsystemd-network/sd-dhcp-server.c \
2972 src/libsystemd-network/dhcp-network.c \
2973 src/libsystemd-network/dhcp-option.c \
2974 src/libsystemd-network/dhcp-packet.c \
2975 src/libsystemd-network/dhcp-internal.h \
2976 src/libsystemd-network/dhcp-server-internal.h \
2977 src/libsystemd-network/dhcp-protocol.h \
2978 src/libsystemd-network/dhcp-lease-internal.h \
2979 src/libsystemd-network/sd-dhcp-lease.c \
2980 src/libsystemd-network/sd-ipv4ll.c \
2981 src/libsystemd-network/ipv4ll-network.c \
2982 src/libsystemd-network/ipv4ll-packet.c \
2983 src/libsystemd-network/ipv4ll-internal.h \
2984 src/libsystemd-network/sd-pppoe.c \
2985 src/libsystemd-network/network-internal.c \
2986 src/libsystemd-network/network-internal.h \
2987 src/libsystemd-network/sd-icmp6-nd.c \
2988 src/libsystemd-network/sd-dhcp6-client.c \
2989 src/libsystemd-network/dhcp6-internal.h \
2990 src/libsystemd-network/dhcp6-protocol.h \
2991 src/libsystemd-network/dhcp6-network.c \
2992 src/libsystemd-network/dhcp6-option.c \
2993 src/libsystemd-network/dhcp6-lease-internal.h \
2994 src/libsystemd-network/sd-dhcp6-lease.c
2996 libsystemd_network_la_LIBADD = \
2997 libudev-internal.la \
2998 libsystemd-label.la \
2999 libsystemd-internal.la \
3000 libsystemd-shared.la \
3003 test_dhcp_option_SOURCES = \
3004 src/libsystemd-network/dhcp-protocol.h \
3005 src/libsystemd-network/dhcp-internal.h \
3006 src/libsystemd-network/test-dhcp-option.c
3008 test_dhcp_option_LDADD = \
3009 libsystemd-network.la \
3010 libsystemd-internal.la \
3011 libsystemd-shared.la
3013 test_dhcp_client_SOURCES = \
3014 src/systemd/sd-dhcp-client.h \
3015 src/libsystemd-network/dhcp-protocol.h \
3016 src/libsystemd-network/dhcp-internal.h \
3017 src/libsystemd-network/test-dhcp-client.c
3019 test_dhcp_client_LDADD = \
3020 libsystemd-network.la \
3021 libsystemd-label.la \
3022 libsystemd-internal.la \
3023 libsystemd-shared.la
3025 test_dhcp_server_SOURCES = \
3026 src/libsystemd-network/test-dhcp-server.c
3028 test_dhcp_server_LDADD = \
3029 libsystemd-network.la \
3030 libsystemd-internal.la \
3031 libsystemd-shared.la
3033 test_ipv4ll_SOURCES = \
3034 src/systemd/sd-ipv4ll.h \
3035 src/libsystemd-network/ipv4ll-internal.h \
3036 src/libsystemd-network/test-ipv4ll.c
3038 test_ipv4ll_LDADD = \
3039 libsystemd-network.la \
3040 libsystemd-label.la \
3041 libsystemd-internal.la \
3042 libsystemd-shared.la
3044 test_pppoe_SOURCES = \
3045 src/systemd/sd-pppoe.h \
3046 src/libsystemd-network/test-pppoe.c
3048 test_pppoe_LDADD = \
3049 libsystemd-network.la \
3050 libsystemd-shared.la
3052 test_icmp6_rs_SOURCES = \
3053 src/systemd/sd-dhcp6-client.h \
3054 src/systemd/sd-icmp6-nd.h \
3055 src/libsystemd-network/dhcp6-internal.h \
3056 src/libsystemd-network/test-icmp6-rs.c
3058 test_icmp6_rs_LDADD = \
3059 libsystemd-network.la \
3060 libsystemd-internal.la \
3061 libsystemd-shared.la
3063 test_dhcp6_client_SOURCES = \
3064 src/systemd/sd-dhcp6-client.h \
3065 src/libsystemd-network/dhcp6-internal.h \
3066 src/libsystemd-network/test-dhcp6-client.c
3068 test_dhcp6_client_LDADD = \
3069 libsystemd-network.la \
3070 libsystemd-internal.la \
3071 libsystemd-shared.la
3084 # ------------------------------------------------------------------------------
3086 noinst_LTLIBRARIES += \
3087 libsystemd-terminal.la
3089 rootlibexec_PROGRAMS += \
3092 noinst_PROGRAMS += \
3097 dist_pkgdata_DATA += \
3098 src/libsystemd-terminal/unifont-glyph-array.bin
3100 nodist_userunit_DATA += \
3101 units/user/systemd-consoled.service
3103 USER_DEFAULT_TARGET_WANTS += \
3104 systemd-consoled.service
3107 units/user/systemd-consoled.service.in
3115 libsystemd_terminal_la_CFLAGS = \
3119 libsystemd_terminal_la_SOURCES = \
3120 src/libsystemd-terminal/grdev.h \
3121 src/libsystemd-terminal/grdev-internal.h \
3122 src/libsystemd-terminal/grdev.c \
3123 src/libsystemd-terminal/grdev-drm.c \
3124 src/libsystemd-terminal/idev.h \
3125 src/libsystemd-terminal/idev-internal.h \
3126 src/libsystemd-terminal/idev.c \
3127 src/libsystemd-terminal/idev-evdev.c \
3128 src/libsystemd-terminal/idev-keyboard.c \
3129 src/libsystemd-terminal/sysview.h \
3130 src/libsystemd-terminal/sysview-internal.h \
3131 src/libsystemd-terminal/sysview.c \
3132 src/libsystemd-terminal/term.h \
3133 src/libsystemd-terminal/term-internal.h \
3134 src/libsystemd-terminal/term-charset.c \
3135 src/libsystemd-terminal/term-page.c \
3136 src/libsystemd-terminal/term-parser.c \
3137 src/libsystemd-terminal/term-screen.c \
3138 src/libsystemd-terminal/term-wcwidth.c \
3139 src/libsystemd-terminal/unifont.h \
3140 src/libsystemd-terminal/unifont-def.h \
3141 src/libsystemd-terminal/unifont.c
3143 libsystemd_terminal_la_LIBADD = \
3144 libudev-internal.la \
3145 libsystemd-internal.la \
3146 libsystemd-shared.la \
3149 systemd_consoled_CFLAGS = \
3153 systemd_consoled_SOURCES = \
3154 src/console/consoled.h \
3155 src/console/consoled.c \
3156 src/console/consoled-display.c \
3157 src/console/consoled-manager.c \
3158 src/console/consoled-session.c \
3159 src/console/consoled-terminal.c \
3160 src/console/consoled-workspace.c
3162 systemd_consoled_LDADD = \
3163 libsystemd-terminal.la \
3164 libsystemd-internal.la \
3165 libsystemd-shared.la \
3168 systemd_evcat_CFLAGS = \
3172 systemd_evcat_SOURCES = \
3173 src/libsystemd-terminal/evcat.c
3175 systemd_evcat_LDADD = \
3176 libsystemd-terminal.la \
3177 libsystemd-internal.la \
3178 libsystemd-shared.la \
3181 systemd_modeset_CFLAGS = \
3185 systemd_modeset_SOURCES = \
3186 src/libsystemd-terminal/modeset.c
3188 systemd_modeset_LDADD = \
3189 libsystemd-terminal.la \
3190 libsystemd-internal.la \
3191 libsystemd-shared.la \
3194 systemd_subterm_SOURCES = \
3195 src/libsystemd-terminal/subterm.c
3197 systemd_subterm_LDADD = \
3198 libsystemd-terminal.la \
3199 libsystemd-internal.la \
3200 libsystemd-shared.la
3202 test_term_page_SOURCES = \
3203 src/libsystemd-terminal/test-term-page.c
3205 test_term_page_LDADD = \
3206 libsystemd-terminal.la \
3207 libsystemd-internal.la \
3208 libsystemd-shared.la
3210 test_term_parser_SOURCES = \
3211 src/libsystemd-terminal/test-term-parser.c
3213 test_term_parser_LDADD = \
3214 libsystemd-terminal.la \
3215 libsystemd-internal.la \
3216 libsystemd-shared.la
3218 test_unifont_SOURCES = \
3219 src/libsystemd-terminal/test-unifont.c
3221 test_unifont_LDADD = \
3222 libsystemd-terminal.la \
3223 libsystemd-internal.la \
3224 libsystemd-shared.la
3226 .PHONY: update-unifont
3227 update-unifont: tools/compile-unifont.py
3228 $(AM_V_GEN)$(PYTHON) $< \
3229 <$(top_srcdir)/src/libsystemd-terminal/unifont.hex \
3230 >$(top_srcdir)/src/libsystemd-terminal/unifont-glyph-array.bin
3231 @echo "unifont-glyph-array.bin has been regenerated"
3233 # ------------------------------------------------------------------------------
3243 include_HEADERS += \
3244 src/libudev/libudev.h
3246 lib_LTLIBRARIES += \
3249 libudev_la_SOURCES =\
3250 src/libudev/libudev.sym \
3251 src/libudev/libudev-private.h \
3252 src/libudev/libudev.c \
3253 src/libudev/libudev-list.c \
3254 src/libudev/libudev-util.c \
3255 src/libudev/libudev-device.c \
3256 src/libudev/libudev-enumerate.c \
3257 src/libudev/libudev-monitor.c \
3258 src/libudev/libudev-queue.c \
3259 src/libudev/libudev-hwdb-def.h \
3260 src/libudev/libudev-hwdb.c
3262 libudev_la_CFLAGS = \
3266 libudev_la_LDFLAGS = \
3268 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3269 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3271 libudev_la_LIBADD = \
3272 libsystemd-internal.la \
3273 libsystemd-shared.la
3275 pkgconfiglib_DATA += \
3276 src/libudev/libudev.pc
3279 src/libudev/libudev.pc.in
3282 src/libudev/libudev.pc \
3287 $(AM_V_at)$(MKDIR_P) $(dir $@)
3288 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
3291 $(AM_V_at)$(MKDIR_P) $(dir $@)
3292 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
3294 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3295 libudev-install-hook:
3296 libname=libudev.so && $(move-to-rootlibdir)
3298 libudev-uninstall-hook:
3299 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3301 INSTALL_EXEC_HOOKS += libudev-install-hook
3302 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3304 # ------------------------------------------------------------------------------
3305 noinst_LTLIBRARIES += \
3308 libudev_internal_la_SOURCES =\
3309 $(libudev_la_SOURCES) \
3310 src/libudev/libudev-device-private.c
3312 libudev_internal_la_CFLAGS = \
3314 -fvisibility=default
3316 # ------------------------------------------------------------------------------
3318 $(sysconfdir)/udev/rules.d \
3319 $(sysconfdir)/udev/hwdb.d
3321 dist_network_DATA = \
3322 network/99-default.link \
3323 network/80-container-host0.network \
3324 network/80-container-ve.network
3326 dist_udevrules_DATA += \
3327 rules/42-usb-hid-pm.rules \
3328 rules/50-udev-default.rules \
3329 rules/60-drm.rules \
3330 rules/60-keyboard.rules \
3331 rules/60-persistent-storage-tape.rules \
3332 rules/60-persistent-serial.rules \
3333 rules/60-persistent-input.rules \
3334 rules/60-persistent-alsa.rules \
3335 rules/60-persistent-storage.rules \
3336 rules/64-btrfs.rules \
3337 rules/75-net-description.rules \
3338 rules/75-tty-description.rules \
3339 rules/78-sound-card.rules \
3340 rules/80-net-setup-link.rules \
3341 rules/95-udev-late.rules
3343 nodist_udevrules_DATA += \
3344 rules/99-systemd.rules
3346 dist_udevhwdb_DATA = \
3347 hwdb/20-pci-vendor-model.hwdb \
3348 hwdb/20-pci-classes.hwdb \
3349 hwdb/20-usb-vendor-model.hwdb \
3350 hwdb/20-usb-classes.hwdb \
3351 hwdb/20-sdio-vendor-model.hwdb \
3352 hwdb/20-sdio-classes.hwdb \
3353 hwdb/20-bluetooth-vendor-product.hwdb \
3354 hwdb/20-acpi-vendor.hwdb \
3356 hwdb/20-net-ifname.hwdb \
3357 hwdb/60-keyboard.hwdb
3359 udevconfdir = $(sysconfdir)/udev
3360 dist_udevconf_DATA = \
3363 sharepkgconfigdir = $(datadir)/pkgconfig
3364 sharepkgconfig_DATA = \
3368 rules/99-systemd.rules.in \
3372 rules/99-systemd.rules \
3376 units/systemd-udevd.service.in \
3377 units/systemd-udev-trigger.service.in \
3378 units/systemd-udev-settle.service.in \
3379 units/systemd-udev-hwdb-update.service.in
3382 units/systemd-udevd.service \
3383 units/systemd-udev-trigger.service \
3384 units/systemd-udev-settle.service \
3385 units/systemd-udev-hwdb-update.service
3387 SOCKETS_TARGET_WANTS += \
3388 systemd-udevd-control.socket \
3389 systemd-udevd-kernel.socket
3391 SYSINIT_TARGET_WANTS += \
3392 systemd-udevd.service \
3393 systemd-udev-trigger.service \
3394 systemd-udev-hwdb-update.service
3396 rootbin_PROGRAMS += \
3399 rootlibexec_PROGRAMS += \
3402 noinst_LTLIBRARIES += \
3405 src/udev/keyboard-keys.txt:
3406 $(AM_V_at)$(MKDIR_P) $(dir $@)
3407 $(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/' > $@
3409 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
3410 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3412 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3413 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3415 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
3416 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
3418 libudev_core_la_SOURCES = \
3420 src/udev/udev-event.c \
3421 src/udev/udev-watch.c \
3422 src/udev/udev-node.c \
3423 src/udev/udev-rules.c \
3424 src/udev/udev-ctrl.c \
3425 src/udev/udev-builtin.c \
3426 src/udev/udev-builtin-btrfs.c \
3427 src/udev/udev-builtin-hwdb.c \
3428 src/udev/udev-builtin-input_id.c \
3429 src/udev/udev-builtin-keyboard.c \
3430 src/udev/udev-builtin-net_id.c \
3431 src/udev/udev-builtin-net_setup_link.c \
3432 src/udev/udev-builtin-path_id.c \
3433 src/udev/udev-builtin-usb_id.c \
3434 src/udev/net/link-config.h \
3435 src/udev/net/link-config.c \
3436 src/udev/net/ethtool-util.h \
3437 src/udev/net/ethtool-util.c
3439 nodist_libudev_core_la_SOURCES = \
3440 src/udev/keyboard-keys-from-name.h \
3441 src/udev/keyboard-keys-to-name.h \
3442 src/udev/net/link-config-gperf.c
3445 $(nodist_libudev_core_la_SOURCES)
3448 src/udev/keyboard-keys-from-name.gperf \
3449 src/udev/keyboard-keys.txt \
3450 src/udev/net/link-config-gperf.c
3453 src/udev/net/link-config-gperf.gperf
3455 libudev_core_la_CFLAGS = \
3460 libudev_core_la_LIBADD = \
3461 libudev-internal.la \
3462 libsystemd-label.la \
3463 libsystemd-internal.la \
3464 libsystemd-network.la \
3465 libsystemd-shared.la \
3470 libudev_core_la_SOURCES += \
3471 src/udev/udev-builtin-kmod.c
3473 dist_udevrules_DATA += \
3474 rules/80-drivers.rules
3478 libudev_core_la_SOURCES += \
3479 src/udev/udev-builtin-blkid.c
3483 libudev_core_la_SOURCES += \
3484 src/udev/udev-builtin-uaccess.c \
3485 src/login/logind-acl.c \
3486 src/libsystemd/sd-login/sd-login.c \
3487 src/systemd/sd-login.h
3489 libudev_core_la_LIBADD += \
3493 systemd_udevd_SOURCES = \
3496 systemd_udevd_LDADD = \
3498 libsystemd-capability.la
3501 src/udev/udevadm.c \
3502 src/udev/udevadm-info.c \
3503 src/udev/udevadm-control.c \
3504 src/udev/udevadm-monitor.c \
3505 src/udev/udevadm-hwdb.c \
3506 src/udev/udevadm-settle.c \
3507 src/udev/udevadm-trigger.c \
3508 src/udev/udevadm-test.c \
3509 src/udev/udevadm-test-builtin.c
3513 libsystemd-capability.la
3515 # Update hwdb on installation. Do not bother if installing
3516 # in DESTDIR, since this is likely for packaging purposes.
3518 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
3520 INSTALL_DATA_HOOKS += \
3524 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3526 # ------------------------------------------------------------------------------
3535 test_libudev_SOURCES = \
3536 src/test/test-libudev.c
3538 test_libudev_LDADD = \
3539 libsystemd-label.la \
3540 libudev-internal.la \
3541 libsystemd-shared.la
3543 test_udev_SOURCES = \
3544 src/test/test-udev.c
3548 libsystemd-capability.la \
3554 test_udev_LDADD += \
3561 # packed sysfs test tree
3563 $(AM_V_at)$(MKDIR_P) $(dir $@)
3564 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3568 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3573 test/rules-test.sh \
3574 test/rule-syntax-check.py
3576 # ------------------------------------------------------------------------------
3578 src/udev/ata_id/ata_id.c
3581 libudev-internal.la \
3582 libsystemd-shared.la
3584 udevlibexec_PROGRAMS += \
3587 # ------------------------------------------------------------------------------
3588 cdrom_id_SOURCES = \
3589 src/udev/cdrom_id/cdrom_id.c
3592 libudev-internal.la \
3593 libsystemd-shared.la
3595 udevlibexec_PROGRAMS += \
3598 dist_udevrules_DATA += \
3599 rules/60-cdrom_id.rules
3601 # ------------------------------------------------------------------------------
3603 src/udev/collect/collect.c
3606 libudev-internal.la \
3607 libsystemd-shared.la
3609 udevlibexec_PROGRAMS += \
3612 # ------------------------------------------------------------------------------
3614 src/udev/scsi_id/scsi_id.c \
3615 src/udev/scsi_id/scsi_serial.c \
3616 src/udev/scsi_id/scsi.h \
3617 src/udev/scsi_id/scsi_id.h
3620 libudev-internal.la \
3621 libsystemd-shared.la
3623 udevlibexec_PROGRAMS += \
3627 src/udev/scsi_id/README
3629 # ------------------------------------------------------------------------------
3631 src/udev/v4l_id/v4l_id.c
3636 udevlibexec_PROGRAMS += \
3639 dist_udevrules_DATA += \
3640 rules/60-persistent-v4l.rules
3642 # ------------------------------------------------------------------------------
3643 accelerometer_SOURCES = \
3644 src/udev/accelerometer/accelerometer.c
3646 accelerometer_LDADD = \
3647 libudev-internal.la -lm \
3648 libsystemd-shared.la
3650 udevlibexec_PROGRAMS += \
3653 dist_udevrules_DATA += \
3654 rules/61-accelerometer.rules
3656 # ------------------------------------------------------------------------------
3663 libgudev_includedir = \
3664 $(includedir)/gudev-1.0/gudev
3666 libgudev_include_HEADERS = \
3668 src/gudev/gudevenums.h \
3669 src/gudev/gudevenumtypes.h \
3670 src/gudev/gudevtypes.h \
3671 src/gudev/gudevclient.h \
3672 src/gudev/gudevdevice.h \
3673 src/gudev/gudevenumerator.h
3675 lib_LTLIBRARIES += libgudev-1.0.la
3677 pkgconfiglib_DATA += \
3678 src/gudev/gudev-1.0.pc
3681 src/gudev/gudev-1.0.pc
3683 libgudev_1_0_la_SOURCES = \
3684 src/gudev/libgudev-1.0.sym \
3685 src/gudev/gudevenums.h \
3686 src/gudev/gudevenumtypes.h \
3687 src/gudev/gudevenumtypes.h\
3688 src/gudev/gudevtypes.h \
3689 src/gudev/gudevclient.h \
3690 src/gudev/gudevclient.c \
3691 src/gudev/gudevdevice.h \
3692 src/gudev/gudevdevice.c \
3693 src/gudev/gudevenumerator.h \
3694 src/gudev/gudevenumerator.c \
3695 src/gudev/gudevprivate.h
3697 nodist_libgudev_1_0_la_SOURCES = \
3698 src/gudev/gudevmarshal.h \
3699 src/gudev/gudevmarshal.c \
3700 src/gudev/gudevenumtypes.h \
3701 src/gudev/gudevenumtypes.c
3704 $(nodist_libgudev_1_0_la_SOURCES)
3706 libgudev_1_0_la_CPPFLAGS = \
3708 -I$(top_builddir)/src\
3709 -I$(top_srcdir)/src\
3710 -I$(top_builddir)/src/gudev \
3711 -I$(top_srcdir)/src/gudev \
3712 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3713 -D_GUDEV_COMPILATION \
3714 -DG_LOG_DOMAIN=\"GUdev\"
3716 libgudev_1_0_la_CFLAGS = \
3718 -fvisibility=default \
3721 libgudev_1_0_la_LIBADD = \
3725 libgudev_1_0_la_LDFLAGS = \
3727 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3730 -Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym
3732 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3733 $(AM_V_at)$(MKDIR_P) $(dir $@)
3734 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3736 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3737 $(AM_V_at)$(MKDIR_P) $(dir $@)
3738 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3739 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3741 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3742 $(AM_V_at)$(MKDIR_P) $(dir $@)
3743 $(AM_V_GEN)glib-mkenums --template $^ > $@
3745 if HAVE_INTROSPECTION
3746 -include $(INTROSPECTION_MAKEFILE)
3748 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3750 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3752 src_gudev_GUdev_1_0_gir_CFLAGS = \
3755 -D_GUDEV_COMPILATION \
3756 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3757 -I$(top_srcdir)/src \
3758 -I$(top_builddir)/src \
3759 -I$(top_srcdir)/src/gudev \
3760 -I$(top_builddir)/src/gudev
3762 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
3764 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
3765 --pkg-export=gudev-1.0 \
3768 src_gudev_GUdev_1_0_gir_FILES = \
3770 src/gudev/gudevtypes.h \
3771 src/gudev/gudevenums.h \
3772 src/gudev/gudevenumtypes.h \
3773 src/gudev/gudevclient.h \
3774 src/gudev/gudevdevice.h \
3775 src/gudev/gudevenumerator.h \
3776 src/gudev/gudevclient.c \
3777 src/gudev/gudevdevice.c \
3778 src/gudev/gudevenumerator.c
3780 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
3781 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
3783 girdir = $(datadir)/gir-1.0
3785 src/gudev/GUdev-1.0.gir
3787 typelibsdir = $(libdir)/girepository-1.0
3789 src/gudev/GUdev-1.0.typelib
3791 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
3792 endif # HAVE_INTROSPECTION
3796 src/gudev/gudev-1.0.pc.in \
3797 src/gudev/gudevmarshal.list \
3798 src/gudev/gudevenumtypes.h.template \
3799 src/gudev/gudevenumtypes.c.template \
3800 src/gudev/gjs-example.js \
3801 src/gudev/seed-example-enum.js \
3802 src/gudev/seed-example.js
3804 # ------------------------------------------------------------------------------
3805 mtd_probe_SOURCES = \
3806 src/udev/mtd_probe/mtd_probe.c \
3807 src/udev/mtd_probe/mtd_probe.h \
3808 src/udev/mtd_probe/probe_smartmedia.c
3810 dist_udevrules_DATA += \
3811 rules/75-probe_mtd.rules
3813 udevlibexec_PROGRAMS += \
3816 # ------------------------------------------------------------------------------
3817 test_id128_SOURCES = \
3818 src/test/test-id128.c
3820 test_id128_LDADD = \
3821 libsystemd-internal.la \
3822 libsystemd-shared.la
3827 # ------------------------------------------------------------------------------
3829 rootlibexec_PROGRAMS += \
3832 systemd_activate_SOURCES = \
3833 src/activate/activate.c
3835 systemd_activate_LDADD = \
3836 libsystemd-label.la \
3837 libsystemd-internal.la \
3838 libsystemd-shared.la
3840 # ------------------------------------------------------------------------------
3841 systemd_journald_SOURCES = \
3842 src/journal/journald.c \
3843 src/journal/journald-server.h
3845 systemd_journald_LDADD = \
3846 libsystemd-journal-core.la \
3847 libsystemd-internal.la \
3848 libsystemd-shared.la
3850 systemd_cat_SOURCES = \
3853 systemd_cat_LDADD = \
3854 libsystemd-journal-core.la
3857 rootlibexec_PROGRAMS += \
3858 systemd-journal-remote
3860 systemd_journal_remote_SOURCES = \
3861 src/journal-remote/journal-remote-parse.h \
3862 src/journal-remote/journal-remote-parse.c \
3863 src/journal-remote/journal-remote-write.h \
3864 src/journal-remote/journal-remote-write.c \
3865 src/journal-remote/journal-remote.h \
3866 src/journal-remote/journal-remote.c
3868 systemd_journal_remote_LDADD = \
3869 libsystemd-internal.la \
3870 libsystemd-journal-core.la
3872 systemd_journal_remote_SOURCES += \
3873 src/journal-remote/microhttpd-util.h \
3874 src/journal-remote/microhttpd-util.c
3876 systemd_journal_remote_CFLAGS = \
3878 $(MICROHTTPD_CFLAGS)
3880 systemd_journal_remote_LDADD += \
3884 systemd_journal_remote_LDADD += \
3887 # systemd-journal-remote make sense mostly with full crypto stack
3888 dist_systemunit_DATA += \
3889 units/systemd-journal-remote.socket
3891 nodist_systemunit_DATA += \
3892 units/systemd-journal-remote.service
3895 units/systemd-journal-remote.service.in
3897 journal-remote-install-hook: journal-install-hook
3898 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
3899 -chown 0:0 $(DESTDIR)/var/log/journal/remote
3900 -chmod 755 $(DESTDIR)/var/log/journal/remote
3902 INSTALL_EXEC_HOOKS += journal-remote-install-hook
3906 nodist_pkgsysconf_DATA += \
3907 src/journal-remote/journal-remote.conf
3910 src/journal-remote/journal-remote.conf.in
3913 src/journal-remote/journal-remote.conf
3917 rootlibexec_PROGRAMS += \
3918 systemd-journal-upload
3920 systemd_journal_upload_SOURCES = \
3921 src/journal-remote/journal-upload.h \
3922 src/journal-remote/journal-upload.c \
3923 src/journal-remote/journal-upload-journal.c
3925 systemd_journal_upload_CFLAGS = \
3929 systemd_journal_upload_LDADD = \
3930 libsystemd-internal.la \
3931 libsystemd-journal-internal.la \
3932 libsystemd-shared.la \
3935 nodist_systemunit_DATA += \
3936 units/systemd-journal-upload.service
3939 units/systemd-journal-upload.service.in
3941 nodist_pkgsysconf_DATA += \
3942 src/journal-remote/journal-upload.conf
3945 src/journal-remote/journal-upload.conf.in
3948 src/journal-remote/journal-upload.conf
3951 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3952 journalctl_CFLAGS = \
3955 journalctl_SOURCES = \
3956 src/journal/journalctl.c
3958 journalctl_LDADD = \
3959 libsystemd-journal-internal.la \
3960 libsystemd-internal.la \
3961 libsystemd-logs.la \
3962 libsystemd-shared.la
3965 journalctl_LDADD += \
3970 journalctl_SOURCES += \
3971 src/journal/journal-qrcode.c \
3972 src/journal/journal-qrcode.h
3974 journalctl_CFLAGS += \
3977 journalctl_LDADD += \
3981 test_journal_SOURCES = \
3982 src/journal/test-journal.c
3984 test_journal_LDADD = \
3985 libsystemd-journal-core.la
3987 test_journal_send_SOURCES = \
3988 src/journal/test-journal-send.c
3990 test_journal_send_LDADD = \
3991 libsystemd-journal-core.la
3993 test_journal_syslog_SOURCES = \
3994 src/journal/test-journal-syslog.c
3996 test_journal_syslog_LDADD = \
3997 libsystemd-journal-core.la
3999 test_journal_match_SOURCES = \
4000 src/journal/test-journal-match.c
4002 test_journal_match_LDADD = \
4003 libsystemd-journal-core.la
4005 test_journal_enum_SOURCES = \
4006 src/journal/test-journal-enum.c
4008 test_journal_enum_LDADD = \
4009 libsystemd-journal-core.la
4011 test_journal_stream_SOURCES = \
4012 src/journal/test-journal-stream.c
4014 test_journal_stream_LDADD = \
4015 libsystemd-journal-core.la
4017 test_journal_flush_SOURCES = \
4018 src/journal/test-journal-flush.c
4020 test_journal_flush_LDADD = \
4021 libsystemd-journal-core.la
4023 test_journal_init_SOURCES = \
4024 src/journal/test-journal-init.c
4026 test_journal_init_LDADD = \
4027 libsystemd-journal-core.la
4029 test_journal_verify_SOURCES = \
4030 src/journal/test-journal-verify.c
4032 test_journal_verify_LDADD = \
4033 libsystemd-journal-core.la
4035 test_journal_interleaving_SOURCES = \
4036 src/journal/test-journal-interleaving.c
4038 test_journal_interleaving_LDADD = \
4039 libsystemd-journal-core.la
4041 test_mmap_cache_SOURCES = \
4042 src/journal/test-mmap-cache.c
4044 test_mmap_cache_LDADD = \
4045 libsystemd-journal-core.la
4047 test_catalog_SOURCES = \
4048 src/journal/test-catalog.c
4050 test_catalog_CPPFLAGS = \
4052 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
4054 test_catalog_LDADD = \
4055 libsystemd-journal-core.la
4057 test_compress_SOURCES = \
4058 src/journal/test-compress.c
4060 test_compress_LDADD = \
4061 libsystemd-journal-internal.la \
4062 libsystemd-shared.la
4064 test_compress_benchmark_SOURCES = \
4065 src/journal/test-compress-benchmark.c
4067 test_compress_benchmark_LDADD = \
4068 libsystemd-journal-internal.la \
4069 libsystemd-shared.la
4071 libsystemd_journal_core_la_SOURCES = \
4072 src/journal/journald-kmsg.c \
4073 src/journal/journald-kmsg.h \
4074 src/journal/journald-syslog.c \
4075 src/journal/journald-syslog.h \
4076 src/journal/journald-stream.c \
4077 src/journal/journald-stream.h \
4078 src/journal/journald-server.c \
4079 src/journal/journald-server.h \
4080 src/journal/journald-console.c \
4081 src/journal/journald-console.h \
4082 src/journal/journald-wall.c \
4083 src/journal/journald-wall.h \
4084 src/journal/journald-native.c \
4085 src/journal/journald-native.h \
4086 src/journal/journald-audit.c \
4087 src/journal/journald-audit.h \
4088 src/journal/journald-rate-limit.c \
4089 src/journal/journald-rate-limit.h \
4090 src/journal/journal-internal.h
4092 nodist_libsystemd_journal_core_la_SOURCES = \
4093 src/journal/journald-gperf.c
4095 libsystemd_journal_core_la_LIBADD = \
4096 libsystemd-journal-internal.la \
4097 libudev-internal.la \
4098 libsystemd-capability.la \
4099 libsystemd-label.la \
4100 libsystemd-internal.la \
4101 libsystemd-shared.la
4104 libsystemd_journal_core_la_LIBADD += \
4108 noinst_LTLIBRARIES += \
4109 libsystemd-journal-core.la
4111 journal-install-hook:
4112 -$(MKDIR_P) $(DESTDIR)/var/log/journal
4113 -chown 0:0 $(DESTDIR)/var/log/journal
4114 -chmod 755 $(DESTDIR)/var/log/journal
4115 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4116 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4118 journal-uninstall-hook:
4119 -rmdir $(DESTDIR)/var/log/journal/remote
4120 -rmdir $(DESTDIR)/var/log/journal/
4122 INSTALL_EXEC_HOOKS += journal-install-hook
4123 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4125 # ------------------------------------------------------------------------------
4126 # Update catalog on installation. Do not bother if installing
4127 # in DESTDIR, since this is likely for packaging purposes.
4128 catalog-update-hook:
4129 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4131 INSTALL_DATA_HOOKS += \
4134 catalog-remove-hook:
4135 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4137 UNINSTALL_DATA_HOOKS += \
4146 test-journal-syslog \
4147 test-journal-match \
4148 test-journal-stream \
4150 test-journal-verify \
4151 test-journal-interleaving \
4152 test-journal-flush \
4159 test-compress-benchmark
4162 pkginclude_HEADERS += \
4163 src/systemd/sd-journal.h \
4164 src/systemd/sd-messages.h \
4165 src/systemd/_sd-common.h
4167 libsystemd_journal_internal_la_SOURCES = \
4168 src/journal/sd-journal.c \
4169 src/systemd/sd-journal.h \
4170 src/systemd/_sd-common.h \
4171 src/journal/journal-file.c \
4172 src/journal/journal-file.h \
4173 src/journal/journal-vacuum.c \
4174 src/journal/journal-vacuum.h \
4175 src/journal/journal-verify.c \
4176 src/journal/journal-verify.h \
4177 src/journal/lookup3.c \
4178 src/journal/lookup3.h \
4179 src/journal/journal-send.c \
4180 src/journal/journal-def.h \
4181 src/journal/compress.h \
4182 src/journal/catalog.c \
4183 src/journal/catalog.h \
4184 src/journal/mmap-cache.c \
4185 src/journal/mmap-cache.h
4187 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4188 libsystemd_journal_internal_la_CFLAGS = \
4191 libsystemd_journal_internal_la_LIBADD =
4193 libsystemd_journal_internal_la_SOURCES += \
4194 src/journal/compress.c
4197 libsystemd_journal_internal_la_CFLAGS += \
4200 libsystemd_journal_internal_la_LIBADD += \
4205 libsystemd_journal_internal_la_LIBADD += \
4210 libsystemd_journal_internal_la_SOURCES += \
4211 src/journal/journal-authenticate.c \
4212 src/journal/journal-authenticate.h \
4213 src/journal/fsprg.c \
4216 libsystemd_journal_internal_la_LIBADD += \
4219 # fsprg.c is a drop-in file using void pointer arithmetic
4220 libsystemd_journal_internal_la_CFLAGS += \
4225 noinst_LTLIBRARIES += \
4226 libsystemd-journal-internal.la
4228 rootlibexec_PROGRAMS += \
4231 rootbin_PROGRAMS += \
4237 dist_systemunit_DATA += \
4238 units/systemd-journald.socket \
4239 units/systemd-journald-dev-log.socket \
4240 units/systemd-journald-audit.socket
4242 nodist_systemunit_DATA += \
4243 units/systemd-journald.service \
4244 units/systemd-journal-flush.service \
4245 units/systemd-journal-catalog-update.service
4247 dist_pkgsysconf_DATA += \
4248 src/journal/journald.conf
4250 dist_catalog_DATA = \
4251 catalog/systemd.fr.catalog \
4252 catalog/systemd.it.catalog \
4253 catalog/systemd.pl.catalog \
4254 catalog/systemd.ru.catalog \
4255 catalog/systemd.catalog
4257 SOCKETS_TARGET_WANTS += \
4258 systemd-journald.socket \
4259 systemd-journald-dev-log.socket \
4260 systemd-journald-audit.socket
4262 SYSINIT_TARGET_WANTS += \
4263 systemd-journald.service \
4264 systemd-journal-flush.service \
4265 systemd-journal-catalog-update.service
4268 units/systemd-journald.service.in \
4269 units/systemd-journal-flush.service.in \
4270 units/systemd-journal-catalog-update.service.in \
4271 src/journal/journald-gperf.gperf
4274 src/journal/journald-gperf.c
4276 # ------------------------------------------------------------------------------
4278 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4280 rootlibexec_PROGRAMS += \
4281 systemd-journal-gatewayd
4283 systemd_journal_gatewayd_SOURCES = \
4284 src/journal-remote/journal-gatewayd.c \
4285 src/journal-remote/microhttpd-util.h \
4286 src/journal-remote/microhttpd-util.c
4288 systemd_journal_gatewayd_LDADD = \
4289 libsystemd-logs.la \
4290 libsystemd-journal-internal.la \
4291 libsystemd-internal.la \
4292 libsystemd-shared.la \
4296 systemd_journal_gatewayd_LDADD += \
4300 systemd_journal_gatewayd_CFLAGS = \
4302 $(MICROHTTPD_CFLAGS)
4304 systemd_journal_gatewayd_CPPFLAGS = \
4306 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4308 dist_systemunit_DATA += \
4309 units/systemd-journal-gatewayd.socket
4311 nodist_systemunit_DATA += \
4312 units/systemd-journal-gatewayd.service
4314 dist_gatewayddocumentroot_DATA = \
4315 src/journal-remote/browse.html
4320 units/systemd-journal-gatewayd.service.in
4322 # ------------------------------------------------------------------------------
4324 systemd_socket_proxyd_SOURCES = \
4325 src/socket-proxy/socket-proxyd.c
4327 systemd_socket_proxyd_LDADD = \
4328 libsystemd-logs.la \
4329 libsystemd-internal.la \
4330 libsystemd-journal-internal.la \
4331 libsystemd-shared.la \
4332 libsystemd-resolve.la
4334 # ------------------------------------------------------------------------------
4336 systemd_coredump_SOURCES = \
4337 src/journal/coredump.c \
4338 src/journal/coredump-vacuum.c \
4339 src/journal/coredump-vacuum.h
4341 systemd_coredump_LDADD = \
4342 libsystemd-journal-internal.la \
4343 libsystemd-label.la \
4344 libsystemd-internal.la \
4345 libsystemd-shared.la
4348 systemd_coredump_SOURCES += \
4349 src/journal/stacktrace.c \
4350 src/journal/stacktrace.h
4352 systemd_coredump_LDADD += \
4356 rootlibexec_PROGRAMS += \
4359 dist_pkgsysconf_DATA += \
4360 src/journal/coredump.conf
4363 systemd_coredump_LDADD += \
4367 coredumpctl_SOURCES = \
4368 src/journal/coredumpctl.c
4370 coredumpctl_LDADD = \
4371 libsystemd-journal-internal.la \
4372 libsystemd-internal.la \
4373 libsystemd-shared.la
4379 test-coredump-vacuum
4381 test_coredump_vacuum_SOURCES = \
4382 src/journal/test-coredump-vacuum.c \
4383 src/journal/coredump-vacuum.c \
4384 src/journal/coredump-vacuum.h
4386 test_coredump_vacuum_LDADD = \
4387 libsystemd-internal.la \
4388 libsystemd-shared.la
4390 dist_bashcompletion_DATA += \
4391 shell-completion/bash/coredumpctl
4393 dist_zshcompletion_DATA += \
4394 shell-completion/zsh/_coredumpctl
4397 sysctl.d/50-coredump.conf
4400 sysctl.d/50-coredump.conf
4404 sysctl.d/50-coredump.conf.in
4406 # ------------------------------------------------------------------------------
4408 systemd_binfmt_SOURCES = \
4411 systemd_binfmt_LDADD = \
4412 libsystemd-shared.la
4414 rootlibexec_PROGRAMS += \
4417 dist_systemunit_DATA += \
4418 units/proc-sys-fs-binfmt_misc.automount \
4419 units/proc-sys-fs-binfmt_misc.mount
4421 nodist_systemunit_DATA += \
4422 units/systemd-binfmt.service
4425 $(prefix)/lib/binfmt.d \
4426 $(sysconfdir)/binfmt.d
4428 SYSINIT_TARGET_WANTS += \
4429 systemd-binfmt.service \
4430 proc-sys-fs-binfmt_misc.automount
4435 units/systemd-binfmt.service.in
4437 # ------------------------------------------------------------------------------
4439 systemd_vconsole_setup_SOURCES = \
4440 src/vconsole/vconsole-setup.c
4442 systemd_vconsole_setup_LDADD = \
4443 libsystemd-shared.la
4445 rootlibexec_PROGRAMS += \
4446 systemd-vconsole-setup
4448 nodist_systemunit_DATA += \
4449 units/systemd-vconsole-setup.service
4451 dist_udevrules_DATA += \
4452 src/vconsole/90-vconsole.rules
4454 SYSINIT_TARGET_WANTS += \
4455 systemd-vconsole-setup.service
4459 units/systemd-vconsole-setup.service.in
4461 # ------------------------------------------------------------------------------
4463 systemd_bootchart_SOURCES = \
4464 src/bootchart/bootchart.c \
4465 src/bootchart/bootchart.h \
4466 src/bootchart/store.c \
4467 src/bootchart/store.h \
4468 src/bootchart/svg.c \
4471 systemd_bootchart_LDADD = \
4472 libsystemd-journal-internal.la \
4473 libsystemd-shared.la
4475 rootlibexec_PROGRAMS += \
4478 dist_pkgsysconf_DATA += \
4479 src/bootchart/bootchart.conf
4482 # ------------------------------------------------------------------------------
4483 if ENABLE_QUOTACHECK
4484 rootlibexec_PROGRAMS += \
4487 nodist_systemunit_DATA += \
4488 units/systemd-quotacheck.service
4490 systemd_quotacheck_SOURCES = \
4491 src/quotacheck/quotacheck.c
4493 systemd_quotacheck_LDADD = \
4494 libsystemd-shared.la
4498 units/systemd-quotacheck.service.in
4500 nodist_systemunit_DATA += \
4501 units/quotaon.service
4503 # ------------------------------------------------------------------------------
4504 if ENABLE_RANDOMSEED
4505 rootlibexec_PROGRAMS += \
4508 nodist_systemunit_DATA += \
4509 units/systemd-random-seed.service
4511 systemd_random_seed_SOURCES = \
4512 src/random-seed/random-seed.c
4514 systemd_random_seed_LDADD = \
4515 libsystemd-label.la \
4516 libsystemd-shared.la
4518 SYSINIT_TARGET_WANTS += \
4519 systemd-random-seed.service
4524 units/systemd-random-seed.service.in
4526 # ------------------------------------------------------------------------------
4528 rootlibexec_PROGRAMS += \
4531 nodist_systemunit_DATA += \
4532 units/systemd-backlight@.service
4534 systemd_backlight_SOURCES = \
4535 src/backlight/backlight.c
4537 systemd_backlight_LDADD = \
4538 libsystemd-label.la \
4539 libudev-internal.la \
4540 libsystemd-shared.la
4544 units/systemd-backlight@.service.in
4546 # ------------------------------------------------------------------------------
4548 rootlibexec_PROGRAMS += \
4551 nodist_systemunit_DATA += \
4552 units/systemd-rfkill@.service
4554 systemd_rfkill_SOURCES = \
4557 systemd_rfkill_LDADD = \
4558 libsystemd-label.la \
4559 libudev-internal.la \
4560 libsystemd-shared.la
4564 units/systemd-rfkill@.service.in
4566 # ------------------------------------------------------------------------------
4567 if HAVE_LIBCRYPTSETUP
4568 rootlibexec_PROGRAMS += \
4571 systemgenerator_PROGRAMS += \
4572 systemd-cryptsetup-generator
4574 dist_systemunit_DATA += \
4575 units/cryptsetup.target \
4576 units/cryptsetup-pre.target
4578 systemd_cryptsetup_SOURCES = \
4579 src/cryptsetup/cryptsetup.c
4581 systemd_cryptsetup_CFLAGS = \
4583 $(LIBCRYPTSETUP_CFLAGS)
4585 systemd_cryptsetup_LDADD = \
4586 libsystemd-label.la \
4587 libudev-internal.la \
4588 libsystemd-shared.la \
4589 $(LIBCRYPTSETUP_LIBS)
4591 systemd_cryptsetup_generator_SOURCES = \
4592 src/cryptsetup/cryptsetup-generator.c
4594 systemd_cryptsetup_generator_LDADD = \
4595 libsystemd-label.la \
4596 libsystemd-shared.la
4598 SYSINIT_TARGET_WANTS += \
4603 # ------------------------------------------------------------------------------
4605 systemd_hostnamed_SOURCES = \
4606 src/hostname/hostnamed.c
4608 systemd_hostnamed_LDADD = \
4609 libsystemd-label.la \
4610 libsystemd-internal.la \
4611 libsystemd-shared.la
4613 rootlibexec_PROGRAMS += \
4616 nodist_systemunit_DATA += \
4617 units/systemd-hostnamed.service
4619 dist_systemunit_DATA_busnames += \
4620 units/org.freedesktop.hostname1.busname
4622 dist_dbuspolicy_DATA += \
4623 src/hostname/org.freedesktop.hostname1.conf
4625 dist_dbussystemservice_DATA += \
4626 src/hostname/org.freedesktop.hostname1.service
4628 polkitpolicy_files += \
4629 src/hostname/org.freedesktop.hostname1.policy
4631 SYSTEM_UNIT_ALIASES += \
4632 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4634 BUSNAMES_TARGET_WANTS += \
4635 org.freedesktop.hostname1.busname
4637 hostnamectl_SOURCES = \
4638 src/hostname/hostnamectl.c
4640 hostnamectl_LDADD = \
4641 libsystemd-internal.la \
4642 libsystemd-shared.la
4647 dist_bashcompletion_DATA += \
4648 shell-completion/bash/hostnamectl
4650 dist_zshcompletion_DATA += \
4651 shell-completion/zsh/_hostnamectl
4655 polkitpolicy_in_files += \
4656 src/hostname/org.freedesktop.hostname1.policy.in
4659 units/systemd-hostnamed.service.in
4661 # ------------------------------------------------------------------------------
4662 dist_systemunit_DATA_busnames += \
4663 units/org.freedesktop.systemd1.busname
4665 BUSNAMES_TARGET_WANTS += \
4666 org.freedesktop.systemd1.busname
4668 # ------------------------------------------------------------------------------
4670 systemd_localed_SOURCES = \
4671 src/locale/localed.c
4673 systemd_localed_LDADD = \
4674 libsystemd-label.la \
4675 libsystemd-internal.la \
4676 libsystemd-shared.la
4678 nodist_systemunit_DATA += \
4679 units/systemd-localed.service
4681 dist_systemunit_DATA_busnames += \
4682 units/org.freedesktop.locale1.busname
4684 rootlibexec_PROGRAMS += \
4687 dist_dbuspolicy_DATA += \
4688 src/locale/org.freedesktop.locale1.conf
4690 dist_dbussystemservice_DATA += \
4691 src/locale/org.freedesktop.locale1.service
4693 polkitpolicy_files += \
4694 src/locale/org.freedesktop.locale1.policy
4696 SYSTEM_UNIT_ALIASES += \
4697 systemd-localed.service dbus-org.freedesktop.locale1.service
4699 BUSNAMES_TARGET_WANTS += \
4700 org.freedesktop.locale1.busname
4702 dist_pkgdata_DATA += \
4703 src/locale/kbd-model-map
4705 dist_noinst_SCRIPT = \
4706 src/locale/generate-kbd-model-map
4708 localectl_SOURCES = \
4709 src/locale/localectl.c
4712 libsystemd-internal.la \
4713 libsystemd-shared.la
4718 dist_bashcompletion_DATA += \
4719 shell-completion/bash/localectl
4721 dist_zshcompletion_DATA += \
4722 shell-completion/zsh/_localectl
4726 .PHONY: update-kbd-model-map
4728 polkitpolicy_in_files += \
4729 src/locale/org.freedesktop.locale1.policy.in
4732 units/systemd-localed.service.in
4734 # ------------------------------------------------------------------------------
4736 systemd_timedated_SOURCES = \
4737 src/timedate/timedated.c
4739 systemd_timedated_LDADD = \
4740 libsystemd-label.la \
4741 libsystemd-internal.la \
4742 libsystemd-shared.la
4744 rootlibexec_PROGRAMS += \
4747 dist_dbussystemservice_DATA += \
4748 src/timedate/org.freedesktop.timedate1.service
4750 dist_dbuspolicy_DATA += \
4751 src/timedate/org.freedesktop.timedate1.conf
4753 nodist_systemunit_DATA += \
4754 units/systemd-timedated.service
4756 dist_systemunit_DATA_busnames += \
4757 units/org.freedesktop.timedate1.busname
4759 polkitpolicy_files += \
4760 src/timedate/org.freedesktop.timedate1.policy
4762 SYSTEM_UNIT_ALIASES += \
4763 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4765 BUSNAMES_TARGET_WANTS += \
4766 org.freedesktop.timedate1.busname
4768 timedatectl_SOURCES = \
4769 src/timedate/timedatectl.c
4771 timedatectl_LDADD = \
4772 libsystemd-internal.la \
4773 libsystemd-shared.la
4778 dist_bashcompletion_DATA += \
4779 shell-completion/bash/timedatectl
4781 dist_zshcompletion_DATA += \
4782 shell-completion/zsh/_timedatectl
4785 polkitpolicy_in_files += \
4786 src/timedate/org.freedesktop.timedate1.policy.in
4789 units/systemd-timedated.service.in
4791 # ------------------------------------------------------------------------------
4793 systemd_timesyncd_SOURCES = \
4794 src/timesync/timesyncd.c \
4795 src/timesync/timesyncd-manager.c \
4796 src/timesync/timesyncd-manager.h \
4797 src/timesync/timesyncd-conf.c \
4798 src/timesync/timesyncd-conf.h \
4799 src/timesync/timesyncd-server.c \
4800 src/timesync/timesyncd-server.h
4802 nodist_systemd_timesyncd_SOURCES = \
4803 src/timesync/timesyncd-gperf.c
4806 src/timesync/timesyncd-gperf.gperf
4809 src/timesync/timesyncd-gperf.c
4811 systemd_timesyncd_LDADD = \
4812 libsystemd-resolve.la \
4813 libsystemd-network.la \
4814 libsystemd-label.la \
4815 libsystemd-capability.la \
4816 libsystemd-internal.la \
4817 libsystemd-shared.la \
4820 rootlibexec_PROGRAMS += \
4823 nodist_systemunit_DATA += \
4824 units/systemd-timesyncd.service
4826 GENERAL_ALIASES += \
4827 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
4830 units/systemd-timesyncd.service.in
4832 nodist_pkgsysconf_DATA += \
4833 src/timesync/timesyncd.conf
4836 src/timesync/timesyncd.conf.in
4839 src/timesync/timesyncd.conf
4842 # ------------------------------------------------------------------------------
4844 libnss_myhostname_la_SOURCES = \
4845 src/nss-myhostname/nss-myhostname.sym \
4846 src/nss-myhostname/nss-myhostname.c
4848 libnss_myhostname_la_LDFLAGS = \
4855 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
4857 libnss_myhostname_la_LIBADD = \
4858 libsystemd-shared.la \
4859 libsystemd-internal.la
4861 lib_LTLIBRARIES += \
4862 libnss_myhostname.la
4865 # ------------------------------------------------------------------------------
4867 systemd_machined_SOURCES = \
4868 src/machine/machined.c \
4869 src/machine/machined.h
4871 systemd_machined_LDADD = \
4872 libsystemd-machine-core.la
4874 rootlibexec_PROGRAMS += \
4877 libsystemd_machine_core_la_SOURCES = \
4878 src/machine/machined-dbus.c \
4879 src/machine/machine.c \
4880 src/machine/machine.h \
4881 src/machine/machine-dbus.c
4883 libsystemd_machine_core_la_LIBADD = \
4884 libsystemd-label.la \
4885 libsystemd-internal.la \
4886 libudev-internal.la \
4887 libsystemd-shared.la
4889 noinst_LTLIBRARIES += \
4890 libsystemd-machine-core.la
4892 machinectl_SOURCES = \
4893 src/machine/machinectl.c
4895 machinectl_LDADD = \
4896 libsystemd-internal.la \
4897 libsystemd-shared.la
4899 rootbin_PROGRAMS += \
4902 dist_bashcompletion_DATA += \
4903 shell-completion/bash/machinectl
4905 test_machine_tables_SOURCES = \
4906 src/machine/test-machine-tables.c
4908 test_machine_tables_LDADD = \
4909 libsystemd-machine-core.la
4914 nodist_systemunit_DATA += \
4915 units/systemd-machined.service
4917 dist_systemunit_DATA += \
4920 dist_systemunit_DATA_busnames += \
4921 units/org.freedesktop.machine1.busname
4923 dist_dbussystemservice_DATA += \
4924 src/machine/org.freedesktop.machine1.service
4926 dist_dbuspolicy_DATA += \
4927 src/machine/org.freedesktop.machine1.conf
4929 dist_zshcompletion_DATA += \
4930 shell-completion/zsh/_machinectl \
4931 shell-completion/zsh/_sd_machines
4933 SYSTEM_UNIT_ALIASES += \
4934 systemd-machined.service dbus-org.freedesktop.machine1.service
4936 BUSNAMES_TARGET_WANTS += \
4937 org.freedesktop.machine1.busname
4940 units/systemd-machined.service.in
4942 libnss_mymachines_la_SOURCES = \
4943 src/nss-mymachines/nss-mymachines.sym \
4944 src/nss-mymachines/nss-mymachines.c
4946 libnss_mymachines_la_LDFLAGS = \
4953 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
4955 libnss_mymachines_la_LIBADD = \
4956 libsystemd-shared.la \
4957 libsystemd-internal.la
4959 lib_LTLIBRARIES += \
4960 libnss_mymachines.la
4963 # ------------------------------------------------------------------------------
4965 systemd_resolved_SOURCES = \
4966 src/resolve/resolved.c \
4967 src/resolve/resolved-manager.c \
4968 src/resolve/resolved-manager.h \
4969 src/resolve/resolved-conf.c \
4970 src/resolve/resolved-conf.h \
4971 src/resolve/resolved-bus.c \
4972 src/resolve/resolved-bus.h \
4973 src/resolve/resolved-link.h \
4974 src/resolve/resolved-link.c \
4975 src/resolve/resolved-def.h \
4976 src/resolve/resolved-dns-domain.h \
4977 src/resolve/resolved-dns-domain.c \
4978 src/resolve/resolved-dns-rr.h \
4979 src/resolve/resolved-dns-rr.c \
4980 src/resolve/resolved-dns-question.h \
4981 src/resolve/resolved-dns-question.c \
4982 src/resolve/resolved-dns-answer.h \
4983 src/resolve/resolved-dns-answer.c \
4984 src/resolve/resolved-dns-packet.h \
4985 src/resolve/resolved-dns-packet.c \
4986 src/resolve/resolved-dns-query.h \
4987 src/resolve/resolved-dns-query.c \
4988 src/resolve/resolved-dns-transaction.h \
4989 src/resolve/resolved-dns-transaction.c \
4990 src/resolve/resolved-dns-scope.h \
4991 src/resolve/resolved-dns-scope.c \
4992 src/resolve/resolved-dns-server.h \
4993 src/resolve/resolved-dns-server.c \
4994 src/resolve/resolved-dns-cache.h \
4995 src/resolve/resolved-dns-cache.c \
4996 src/resolve/resolved-dns-zone.h \
4997 src/resolve/resolved-dns-zone.c \
4998 src/resolve/resolved-dns-stream.h \
4999 src/resolve/resolved-dns-stream.c \
5000 src/resolve/dns-type.c \
5001 src/resolve/dns-type.h \
5002 src/resolve/dns_type-from-name.h \
5003 src/resolve/dns_type-to-name.h
5005 nodist_systemd_resolved_SOURCES = \
5006 src/resolve/resolved-gperf.c
5009 src/resolve/resolved-gperf.gperf \
5010 src/resolve/dns_type-from-name.gperf
5013 src/resolve/resolved-gperf.c
5015 systemd_resolved_LDADD = \
5016 libsystemd-capability.la \
5017 libsystemd-network.la \
5018 libsystemd-label.la \
5019 libsystemd-internal.la \
5020 libsystemd-shared.la \
5024 rootlibexec_PROGRAMS += \
5027 nodist_systemunit_DATA += \
5028 units/systemd-resolved.service
5030 dist_systemunit_DATA_busnames += \
5031 units/org.freedesktop.resolve1.busname
5033 dist_dbuspolicy_DATA += \
5034 src/resolve/org.freedesktop.resolve1.conf
5036 dist_dbussystemservice_DATA += \
5037 src/resolve/org.freedesktop.resolve1.service
5040 units/systemd-resolved.service.in
5042 SYSTEM_UNIT_ALIASES += \
5043 systemd-resolved.service dbus-org.freedesktop.resolve1.service
5045 BUSNAMES_TARGET_WANTS += \
5046 org.freedesktop.resolve1.busname
5048 GENERAL_ALIASES += \
5049 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
5051 nodist_pkgsysconf_DATA += \
5052 src/resolve/resolved.conf
5055 src/resolve/resolved.conf.in
5058 src/resolve/resolved.conf
5063 test_dns_domain_SOURCES = \
5064 src/resolve/resolved-dns-domain.h \
5065 src/resolve/resolved-dns-domain.c \
5066 src/resolve/test-dns-domain.c
5068 test_dns_domain_LDADD = \
5069 libsystemd-capability.la \
5070 libsystemd-network.la \
5071 libsystemd-label.la \
5072 libsystemd-internal.la \
5073 libsystemd-shared.la \
5076 libnss_resolve_la_SOURCES = \
5077 src/nss-resolve/nss-resolve.sym \
5078 src/nss-resolve/nss-resolve.c
5080 libnss_resolve_la_LDFLAGS = \
5087 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
5089 libnss_resolve_la_LIBADD = \
5090 libsystemd-shared.la \
5091 libsystemd-internal.la
5093 lib_LTLIBRARIES += \
5096 systemd_resolve_host_SOURCES = \
5097 src/resolve-host/resolve-host.c \
5098 src/resolve/resolved-dns-packet.c \
5099 src/resolve/resolved-dns-packet.h \
5100 src/resolve/resolved-dns-rr.c \
5101 src/resolve/resolved-dns-rr.h \
5102 src/resolve/resolved-dns-answer.c \
5103 src/resolve/resolved-dns-answer.h \
5104 src/resolve/resolved-dns-question.c \
5105 src/resolve/resolved-dns-question.h \
5106 src/resolve/resolved-dns-domain.c \
5107 src/resolve/resolved-dns-domain.h \
5108 src/resolve/dns-type.c \
5109 src/resolve/dns-type.h \
5110 src/resolve/dns_type-from-name.h \
5111 src/resolve/dns_type-to-name.h
5113 systemd_resolve_host_LDADD = \
5114 libsystemd-internal.la \
5115 libsystemd-shared.la \
5119 rootlibexec_PROGRAMS += \
5120 systemd-resolve-host
5124 # ------------------------------------------------------------------------------
5126 rootlibexec_PROGRAMS += \
5129 systemd_networkd_SOURCES = \
5130 src/network/networkd.c
5132 systemd_networkd_LDADD = \
5133 libsystemd-networkd-core.la \
5134 libsystemd-capability.la
5136 noinst_LTLIBRARIES += \
5137 libsystemd-networkd-core.la
5139 libsystemd_networkd_core_la_CFLAGS = \
5142 libsystemd_networkd_core_la_SOURCES = \
5143 src/libsystemd-network/network-internal.h \
5144 src/network/networkd.h \
5145 src/network/networkd-link.h \
5146 src/network/networkd-netdev.h \
5147 src/network/networkd-netdev-tunnel.h \
5148 src/network/networkd-netdev-veth.h \
5149 src/network/networkd-netdev-vxlan.h \
5150 src/network/networkd-netdev-vlan.h \
5151 src/network/networkd-netdev-macvlan.h \
5152 src/network/networkd-netdev-dummy.h \
5153 src/network/networkd-netdev-tuntap.h \
5154 src/network/networkd-netdev-bond.h \
5155 src/network/networkd-netdev-bridge.h \
5156 src/network/networkd-netdev.c \
5157 src/network/networkd-netdev-tunnel.c \
5158 src/network/networkd-netdev-veth.c \
5159 src/network/networkd-netdev-vxlan.c \
5160 src/network/networkd-netdev-vlan.c \
5161 src/network/networkd-netdev-macvlan.c \
5162 src/network/networkd-netdev-dummy.c \
5163 src/network/networkd-netdev-tuntap.c \
5164 src/network/networkd-netdev-bond.c \
5165 src/network/networkd-netdev-bridge.c \
5166 src/network/networkd-link.c \
5167 src/network/networkd-ipv4ll.c \
5168 src/network/networkd-dhcp4.c \
5169 src/network/networkd-network.c \
5170 src/network/networkd-address.c \
5171 src/network/networkd-route.c \
5172 src/network/networkd-manager.c \
5173 src/network/networkd-address-pool.c
5175 nodist_libsystemd_networkd_core_la_SOURCES = \
5176 src/network/networkd-network-gperf.c \
5177 src/network/networkd-netdev-gperf.c
5179 libsystemd_networkd_core_la_LIBADD = \
5180 libudev-internal.la \
5181 libsystemd-internal.la \
5182 libsystemd-network.la \
5183 libsystemd-label.la \
5184 libsystemd-shared.la
5186 rootlibexec_PROGRAMS += \
5187 systemd-networkd-wait-online
5189 systemd_networkd_wait_online_CFLAGS = \
5192 systemd_networkd_wait_online_SOURCES = \
5193 src/libsystemd-network/network-internal.h \
5194 src/network/networkd-wait-online.h \
5195 src/network/networkd-wait-online-link.h \
5196 src/network/networkd-wait-online.c \
5197 src/network/networkd-wait-online-manager.c \
5198 src/network/networkd-wait-online-link.c
5200 systemd_networkd_wait_online_LDADD = \
5201 libsystemd-network.la \
5202 libudev-internal.la \
5203 libsystemd-internal.la \
5204 libsystemd-shared.la
5206 rootbin_PROGRAMS += \
5209 networkctl_SOURCES = \
5210 src/network/networkctl.c
5212 networkctl_LDADD = \
5213 libsystemd-internal.la \
5214 libudev-internal.la \
5215 libsystemd-shared.la \
5216 libsystemd-network.la
5218 test_network_SOURCES = \
5219 src/network/test-network.c
5221 test_network_LDADD = \
5222 libsystemd-networkd-core.la \
5223 libsystemd-capability.la
5225 test_network_tables_SOURCES = \
5226 src/network/test-network-tables.c \
5227 src/shared/test-tables.h
5229 test_network_tables_LDADD = \
5230 libsystemd-networkd-core.la \
5237 nodist_systemunit_DATA += \
5238 units/systemd-networkd.service \
5239 units/systemd-networkd-wait-online.service
5241 GENERAL_ALIASES += \
5242 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5243 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5246 src/network/networkd-network-gperf.gperf \
5247 src/network/networkd-netdev-gperf.gperf \
5248 units/systemd-networkd.service.in \
5249 units/systemd-networkd-wait-online.service.in
5252 src/network/networkd-network-gperf.c \
5253 src/network/networkd-netdev-gperf.c
5256 # ------------------------------------------------------------------------------
5258 systemd_logind_SOURCES = \
5259 src/login/logind.c \
5262 nodist_systemd_logind_SOURCES = \
5263 src/login/logind-gperf.c
5265 systemd_logind_LDADD = \
5266 libsystemd-logind-core.la
5268 libsystemd_logind_core_la_SOURCES = \
5269 src/login/logind-core.c \
5270 src/login/logind-device.c \
5271 src/login/logind-device.h \
5272 src/login/logind-button.c \
5273 src/login/logind-button.h \
5274 src/login/logind-action.c \
5275 src/login/logind-action.h \
5276 src/login/logind-seat.c \
5277 src/login/logind-seat.h \
5278 src/login/logind-session.c \
5279 src/login/logind-session.h \
5280 src/login/logind-session-device.c \
5281 src/login/logind-session-device.h \
5282 src/login/logind-user.c \
5283 src/login/logind-user.h \
5284 src/login/logind-inhibit.c \
5285 src/login/logind-inhibit.h \
5286 src/login/logind-dbus.c \
5287 src/login/logind-session-dbus.c \
5288 src/login/logind-seat-dbus.c \
5289 src/login/logind-user-dbus.c \
5290 src/login/logind-acl.h
5292 libsystemd_logind_core_la_LIBADD = \
5293 libsystemd-label.la \
5294 libsystemd-capability.la \
5295 libsystemd-internal.la \
5296 libudev-internal.la \
5297 libsystemd-shared.la
5300 libsystemd_logind_core_la_SOURCES += \
5301 src/login/logind-acl.c
5303 libsystemd_logind_core_la_LIBADD += \
5307 noinst_LTLIBRARIES += \
5308 libsystemd-logind-core.la
5310 systemd_user_sessions_SOURCES = \
5311 src/login/user-sessions.c
5313 systemd_user_sessions_LDADD = \
5314 libsystemd-shared.la
5316 rootlibexec_PROGRAMS += \
5318 systemd-user-sessions
5320 loginctl_SOURCES = \
5321 src/login/loginctl.c \
5322 src/login/sysfs-show.c
5325 libsystemd-internal.la \
5326 libudev-internal.la \
5327 libsystemd-shared.la
5329 rootbin_PROGRAMS += \
5332 dist_bashcompletion_DATA += \
5333 shell-completion/bash/loginctl
5335 dist_zshcompletion_DATA += \
5336 shell-completion/zsh/_loginctl \
5337 shell-completion/zsh/_systemd-inhibit
5339 systemd_inhibit_SOURCES = \
5342 systemd_inhibit_LDADD = \
5343 libsystemd-internal.la \
5344 libsystemd-shared.la
5346 rootbin_PROGRAMS += \
5349 test_login_SOURCES = \
5350 src/libsystemd/sd-login/test-login.c
5352 test_login_LDADD = \
5353 libsystemd-internal.la \
5354 libsystemd-shared.la
5356 test_login_shared_SOURCES = \
5357 src/login/test-login-shared.c
5359 test_login_shared_LDADD = \
5360 libsystemd-internal.la \
5361 libsystemd-shared.la
5363 test_inhibit_SOURCES = \
5364 src/login/test-inhibit.c
5366 test_inhibit_LDADD = \
5367 libsystemd-internal.la \
5368 libsystemd-shared.la
5370 test_login_tables_SOURCES = \
5371 src/login/test-login-tables.c
5373 test_login_tables_LDADD = \
5374 libsystemd-logind-core.la
5385 pam_systemd_la_SOURCES = \
5386 src/login/pam_systemd.sym \
5387 src/login/pam_systemd.c
5389 pam_systemd_la_CFLAGS = \
5394 pam_systemd_la_LDFLAGS = \
5400 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5402 pam_systemd_la_LIBADD = \
5403 libsystemd-capability.la \
5404 libsystemd-internal.la \
5405 libsystemd-shared.la \
5408 pamlib_LTLIBRARIES = \
5411 dist_pamconf_DATA = \
5412 src/login/systemd-user
5415 nodist_systemunit_DATA += \
5416 units/systemd-logind.service \
5417 units/systemd-user-sessions.service
5419 dist_systemunit_DATA += \
5422 dist_systemunit_DATA_busnames += \
5423 units/org.freedesktop.login1.busname
5425 dist_dbussystemservice_DATA += \
5426 src/login/org.freedesktop.login1.service
5428 dist_dbuspolicy_DATA += \
5429 src/login/org.freedesktop.login1.conf
5431 dist_pkgsysconf_DATA += \
5432 src/login/logind.conf
5434 polkitpolicy_files += \
5435 src/login/org.freedesktop.login1.policy
5440 MULTI_USER_TARGET_WANTS += \
5441 systemd-logind.service \
5442 systemd-user-sessions.service
5444 SYSTEM_UNIT_ALIASES += \
5445 systemd-logind.service dbus-org.freedesktop.login1.service
5447 BUSNAMES_TARGET_WANTS += \
5448 org.freedesktop.login1.busname
5450 dist_udevrules_DATA += \
5451 src/login/70-uaccess.rules \
5452 src/login/70-power-switch.rules
5454 nodist_udevrules_DATA += \
5455 src/login/71-seat.rules \
5456 src/login/73-seat-late.rules
5459 src/login/logind-gperf.c \
5460 src/login/71-seat.rules \
5461 src/login/73-seat-late.rules
5464 polkitpolicy_in_files += \
5465 src/login/org.freedesktop.login1.policy.in
5468 src/login/logind-gperf.gperf \
5469 src/login/71-seat.rules.in \
5470 src/login/73-seat-late.rules.in \
5471 units/systemd-logind.service.in \
5472 units/systemd-user-sessions.service.in
5474 # ------------------------------------------------------------------------------
5475 if HAVE_PYTHON_DEVEL
5476 pkgpyexec_LTLIBRARIES = \
5483 _journal_la_SOURCES = \
5484 src/python-systemd/_journal.c
5486 _journal_la_CFLAGS = \
5488 -fvisibility=default \
5489 $(PYTHON_DEVEL_CFLAGS)
5491 _journal_la_LDFLAGS = \
5497 _journal_la_LIBADD = \
5498 $(PYTHON_DEVEL_LIBS) \
5501 id128_la_SOURCES = \
5502 src/python-systemd/id128.c \
5503 src/python-systemd/pyutil.c \
5504 src/python-systemd/pyutil.h
5506 nodist_id128_la_SOURCES = \
5507 src/python-systemd/id128-constants.h
5511 -fvisibility=default \
5512 $(PYTHON_DEVEL_CFLAGS) \
5513 -I$(top_builddir)/src/python-systemd
5515 id128_la_LDFLAGS = \
5522 $(PYTHON_DEVEL_LIBS) \
5523 libsystemd-shared.la \
5526 _daemon_la_SOURCES = \
5527 src/python-systemd/_daemon.c \
5528 src/python-systemd/pyutil.c \
5529 src/python-systemd/pyutil.h
5531 _daemon_la_CFLAGS = \
5533 -fvisibility=default \
5534 $(PYTHON_DEVEL_CFLAGS) \
5535 -I$(top_builddir)/src/python-systemd
5537 _daemon_la_LDFLAGS = \
5543 _daemon_la_LIBADD = \
5544 $(PYTHON_DEVEL_LIBS) \
5545 libsystemd-shared.la \
5548 _reader_la_SOURCES = \
5549 src/python-systemd/_reader.c \
5550 src/python-systemd/pyutil.c \
5551 src/python-systemd/pyutil.h
5553 _reader_la_CFLAGS = \
5555 -fvisibility=default \
5556 $(PYTHON_DEVEL_CFLAGS)
5558 _reader_la_LDFLAGS = \
5564 _reader_la_LIBADD = \
5565 $(PYTHON_DEVEL_LIBS) \
5566 libsystemd-shared.la \
5569 login_la_SOURCES = \
5570 src/python-systemd/login.c \
5571 src/python-systemd/pyutil.c \
5572 src/python-systemd/pyutil.h
5576 -fvisibility=default \
5577 $(PYTHON_DEVEL_CFLAGS)
5579 login_la_LDFLAGS = \
5586 $(PYTHON_DEVEL_LIBS) \
5587 libsystemd-shared.la \
5590 dist_pkgpyexec_PYTHON = \
5591 src/python-systemd/journal.py \
5592 src/python-systemd/daemon.py \
5593 src/python-systemd/__init__.py
5595 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
5596 $(AM_V_at)$(MKDIR_P) $(dir $@)
5597 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
5600 src/python-systemd/id128-constants.h
5602 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
5604 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
5605 $(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/
5606 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
5609 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
5610 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
5613 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
5614 $(MAKE) DESTDIR="$$dir" install && \
5615 $(MAKE) DESTDIR="$$dir" sphinx-html && \
5620 CLEAN_LOCAL_HOOKS += clean-sphinx
5622 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
5625 -rm -rf docs/html/python-systemd/
5627 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
5629 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
5630 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
5632 # ------------------------------------------------------------------------------
5633 if ENABLE_COMPAT_LIBS
5635 src/compat-libs/linkwarning.h
5637 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
5638 $(AM_V_at)$(MKDIR_P) $(dir $@)
5639 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
5642 libsystemd-journal.c \
5643 libsystemd-login.c \
5644 libsystemd-id128.c \
5647 libsystemd_journal_la_SOURCES = \
5648 libsystemd-journal.c \
5649 src/compat-libs/libsystemd-journal.sym
5651 libsystemd_journal_la_CPPFLAGS = \
5653 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5655 libsystemd_journal_la_LDFLAGS = \
5657 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
5658 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
5660 libsystemd_journal_la_LIBADD = \
5661 libsystemd-journal-internal.la \
5662 libsystemd-internal.la \
5663 libsystemd-shared.la
5665 libsystemd_login_la_SOURCES = \
5666 libsystemd-login.c \
5667 src/compat-libs/libsystemd-login.sym
5669 libsystemd_login_la_CPPFLAGS = \
5671 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5673 libsystemd_login_la_LDFLAGS = \
5675 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
5676 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
5678 libsystemd_login_la_LIBADD = \
5679 libsystemd-internal.la \
5680 libsystemd-shared.la
5682 libsystemd_id128_la_SOURCES = \
5683 libsystemd-id128.c \
5684 src/compat-libs/libsystemd-id128.sym
5686 libsystemd_id128_la_CPPFLAGS = \
5688 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5690 libsystemd_id128_la_LDFLAGS = \
5692 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
5693 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
5695 libsystemd_id128_la_LIBADD = \
5696 libsystemd-internal.la \
5697 libsystemd-shared.la
5699 libsystemd_daemon_la_SOURCES = \
5700 libsystemd-daemon.c \
5701 src/compat-libs/libsystemd-daemon.sym
5703 libsystemd_daemon_la_CPPFLAGS = \
5705 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5707 libsystemd_daemon_la_LDFLAGS = \
5709 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
5710 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
5712 libsystemd_daemon_la_LIBADD = \
5713 libsystemd-internal.la \
5714 libsystemd-shared.la
5716 lib_LTLIBRARIES += \
5717 libsystemd-journal.la \
5718 libsystemd-login.la \
5719 libsystemd-id128.la \
5720 libsystemd-daemon.la
5722 pkgconfiglib_DATA += \
5723 src/compat-libs/libsystemd-journal.pc \
5724 src/compat-libs/libsystemd-login.pc \
5725 src/compat-libs/libsystemd-id128.pc \
5726 src/compat-libs/libsystemd-daemon.pc
5728 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
5729 compat-lib-install-hook:
5730 libname=libsystemd-login.so && $(move-to-rootlibdir)
5731 libname=libsystemd-journal.so && $(move-to-rootlibdir)
5732 libname=libsystemd-id128.so && $(move-to-rootlibdir)
5733 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
5735 compat-lib-uninstall-hook:
5736 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
5737 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
5738 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
5739 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
5741 INSTALL_EXEC_HOOKS += compat-lib-install-hook
5742 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
5746 src/compat-libs/libsystemd-journal.pc.in \
5747 src/compat-libs/libsystemd-login.pc.in \
5748 src/compat-libs/libsystemd-id128.pc.in \
5749 src/compat-libs/libsystemd-daemon.pc.in
5751 # ------------------------------------------------------------------------------
5753 '|rootlibexecdir=$(rootlibexecdir)|' \
5754 '|rootbindir=$(rootbindir)|' \
5755 '|bindir=$(bindir)|' \
5756 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5757 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5758 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5759 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5760 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
5761 '|pkgdatadir=$(pkgdatadir)|' \
5762 '|systemunitdir=$(systemunitdir)|' \
5763 '|userunitdir=$(userunitdir)|' \
5764 '|systempresetdir=$(systempresetdir)|' \
5765 '|userpresetdir=$(userpresetdir)|' \
5766 '|udevhwdbdir=$(udevhwdbdir)|' \
5767 '|udevrulesdir=$(udevrulesdir)|' \
5768 '|catalogdir=$(catalogdir)|' \
5769 '|tmpfilesdir=$(tmpfilesdir)|' \
5770 '|sysusersdir=$(sysusersdir)|' \
5771 '|sysctldir=$(sysctldir)|' \
5772 '|systemgeneratordir=$(systemgeneratordir)|' \
5773 '|usergeneratordir=$(usergeneratordir)|' \
5774 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
5775 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
5776 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
5777 '|PACKAGE_URL=$(PACKAGE_URL)|' \
5778 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
5779 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
5780 '|prefix=$(prefix)|' \
5781 '|exec_prefix=$(exec_prefix)|' \
5782 '|libdir=$(libdir)|' \
5783 '|includedir=$(includedir)|' \
5784 '|VERSION=$(VERSION)|' \
5785 '|rootprefix=$(rootprefix)|' \
5786 '|udevlibexecdir=$(udevlibexecdir)|' \
5787 '|SUSHELL=$(SUSHELL)|' \
5788 '|DEBUGTTY=$(DEBUGTTY)|' \
5791 '|MKDIR_P=$(MKDIR_P)|' \
5792 '|QUOTAON=$(QUOTAON)|' \
5793 '|QUOTACHECK=$(QUOTACHECK)|' \
5794 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
5795 '|VARLOGDIR=$(varlogdir)|' \
5796 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
5797 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
5798 '|PYTHON=$(PYTHON)|' \
5799 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
5800 '|NTP_SERVERS=$(NTP_SERVERS)|' \
5801 '|DNS_SERVERS=$(DNS_SERVERS)|' \
5802 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
5803 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
5804 '|TTY_GID=$(TTY_GID)|' \
5805 '|systemsleepdir=$(systemsleepdir)|' \
5806 '|systemshutdowndir=$(systemshutdowndir)|' \
5807 '|binfmtdir=$(binfmtdir)|' \
5808 '|modulesloaddir=$(modulesloaddir)|'
5811 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
5812 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
5821 sysctl.d/%: sysctl.d/%.in
5830 src/core/macros.%: src/core/macros.%.in
5833 src/%.policy.in: src/%.policy.in.in
5836 shell-completion/%: shell-completion/%.in
5847 $(AM_V_GEN)chmod +x $@
5849 src/%.c: src/%.gperf
5850 $(AM_V_at)$(MKDIR_P) $(dir $@)
5851 $(AM_V_GPERF)$(GPERF) < $< > $@
5854 $(AM_V_at)$(MKDIR_P) $(dir $@)
5855 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5857 tmpfiles.d/%: tmpfiles.d/%.m4
5858 $(AM_V_at)$(MKDIR_P) $(dir $@)
5859 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5863 $(AM_V_at)$(MKDIR_P) $(dir $@)
5864 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
5866 units/user/%: units/%.m4
5867 $(AM_V_at)$(MKDIR_P) $(dir $@)
5868 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
5871 nodist_polkitpolicy_DATA = \
5872 $(polkitpolicy_files) \
5873 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
5877 $(polkitpolicy_in_files) \
5878 $(polkitpolicy_in_in_files)
5881 $(nodist_systemunit_DATA) \
5882 $(nodist_userunit_DATA) \
5883 $(pkgconfigdata_DATA) \
5884 $(pkgconfiglib_DATA) \
5885 $(nodist_polkitpolicy_DATA)
5887 # ------------------------------------------------------------------------------
5889 man/custom-entities.ent: configure.ac
5890 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
5891 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
5892 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
5896 man/custom-entities.ent
5901 --stringparam man.output.quietly 1 \
5902 --stringparam funcsynopsis.style ansi \
5903 --stringparam man.authors.section.enabled 0 \
5904 --stringparam man.copyright.section.enabled 0 \
5905 --stringparam systemd.version $(VERSION) \
5906 --path '$(builddir)/man:$(srcdir)/man'
5908 XSLTPROC_PROCESS_MAN = \
5909 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
5911 XSLTPROC_PROCESS_HTML = \
5912 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
5914 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
5915 $(XSLTPROC_PROCESS_MAN)
5917 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
5918 $(XSLTPROC_PROCESS_MAN)
5920 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
5921 $(XSLTPROC_PROCESS_MAN)
5923 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
5924 $(XSLTPROC_PROCESS_MAN)
5926 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
5927 $(XSLTPROC_PROCESS_MAN)
5929 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
5930 $(XSLTPROC_PROCESS_HTML)
5933 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
5939 man/custom-html.xsl \
5942 # ------------------------------------------------------------------------------
5945 docs/sysvinit/README
5950 docs/sysvinit/README: docs/sysvinit/README.in
5953 docs/var-log/README: docs/var-log/README.in
5957 docs/sysvinit/README \
5962 docs/sysvinit/README.in \
5963 docs/var-log/README.in
5965 SOCKETS_TARGET_WANTS += \
5966 systemd-initctl.socket \
5967 systemd-shutdownd.socket
5971 RUNLEVEL1_TARGET_WANTS += \
5972 systemd-update-utmp-runlevel.service
5973 RUNLEVEL2_TARGET_WANTS += \
5974 systemd-update-utmp-runlevel.service
5975 RUNLEVEL3_TARGET_WANTS += \
5976 systemd-update-utmp-runlevel.service
5977 RUNLEVEL4_TARGET_WANTS += \
5978 systemd-update-utmp-runlevel.service
5979 RUNLEVEL5_TARGET_WANTS += \
5980 systemd-update-utmp-runlevel.service
5983 SYSINIT_TARGET_WANTS += \
5984 systemd-update-utmp.service
5987 SYSINIT_TARGET_WANTS += \
5988 systemd-update-done.service
5990 LOCAL_FS_TARGET_WANTS += \
5991 systemd-remount-fs.service \
5994 MULTI_USER_TARGET_WANTS += \
5996 systemd-ask-password-wall.path
5998 SYSINIT_TARGET_WANTS += \
5999 dev-hugepages.mount \
6001 sys-kernel-config.mount \
6002 sys-kernel-debug.mount \
6003 sys-fs-fuse-connections.mount \
6004 systemd-sysctl.service \
6005 systemd-ask-password-console.path
6008 SYSTEM_UNIT_ALIASES += \
6009 poweroff.target runlevel0.target \
6010 rescue.target runlevel1.target \
6011 multi-user.target runlevel2.target \
6012 multi-user.target runlevel3.target \
6013 multi-user.target runlevel4.target \
6014 graphical.target runlevel5.target \
6015 reboot.target runlevel6.target
6018 SYSTEM_UNIT_ALIASES += \
6019 graphical.target default.target \
6020 reboot.target ctrl-alt-del.target \
6021 getty@.service autovt@.service
6023 USER_UNIT_ALIASES += \
6024 $(systemunitdir)/shutdown.target shutdown.target \
6025 $(systemunitdir)/sockets.target sockets.target \
6026 $(systemunitdir)/timers.target timers.target \
6027 $(systemunitdir)/paths.target paths.target \
6028 $(systemunitdir)/bluetooth.target bluetooth.target \
6029 $(systemunitdir)/printer.target printer.target \
6030 $(systemunitdir)/sound.target sound.target \
6031 $(systemunitdir)/smartcard.target smartcard.target
6034 USER_UNIT_ALIASES += \
6035 $(systemunitdir)/busnames.target busnames.target
6038 GENERAL_ALIASES += \
6039 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
6040 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
6041 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
6042 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
6046 $(systemunitdir)/runlevel1.target.wants \
6047 $(systemunitdir)/runlevel2.target.wants \
6048 $(systemunitdir)/runlevel3.target.wants \
6049 $(systemunitdir)/runlevel4.target.wants \
6050 $(systemunitdir)/runlevel5.target.wants
6054 $(prefix)/lib/modules-load.d \
6055 $(sysconfdir)/modules-load.d \
6056 $(prefix)/lib/systemd/network \
6057 $(sysconfdir)/systemd/network \
6058 $(prefix)/lib/sysctl.d \
6059 $(sysconfdir)/sysctl.d \
6060 $(prefix)/lib/kernel/install.d \
6061 $(sysconfdir)/kernel/install.d \
6062 $(systemshutdowndir) \
6064 $(systemgeneratordir) \
6065 $(usergeneratordir) \
6068 $(pkgsysconfdir)/system \
6069 $(pkgsysconfdir)/system/multi-user.target.wants \
6070 $(pkgsysconfdir)/system/getty.target.wants \
6071 $(pkgsysconfdir)/user \
6072 $(dbussessionservicedir) \
6073 $(sysconfdir)/xdg/systemd
6075 install-exec-hook: $(INSTALL_EXEC_HOOKS)
6077 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
6079 install-data-hook: $(INSTALL_DATA_HOOKS)
6081 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
6083 clean-local: $(CLEAN_LOCAL_HOOKS)
6084 rm -rf $(abs_srcdir)/install-tree
6085 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
6086 $(abs_srcdir)/hwdb/iab.txt
6088 DISTCHECK_CONFIGURE_FLAGS = \
6089 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
6090 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6091 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
6092 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
6093 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
6094 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
6095 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
6096 --with-rootprefix=$$dc_install_base \
6097 --disable-split-usr \
6099 --enable-compat-libs
6102 DISTCHECK_CONFIGURE_FLAGS += \
6103 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
6104 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
6106 DISTCHECK_CONFIGURE_FLAGS += \
6107 --with-sysvinit-path= \
6108 --with-sysvrcnd-path=
6112 DISTCHECK_CONFIGURE_FLAGS += \
6117 DISTCHECK_CONFIGURE_FLAGS += \
6122 # Require python when making dist
6124 .PHONY: dist-check-python
6127 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
6131 dist-check-compat-libs:
6132 if !ENABLE_COMPAT_LIBS
6133 @echo "*** compat-libs must be enabled in order to make dist"
6137 dist: dist-check-python dist-check-compat-libs
6139 # check "broken" platforms limited toolchains for link breakage before we release
6142 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
6146 ( cd $(top_srcdir)/hwdb && \
6147 wget -N http://www.linux-usb.org/usb.ids \
6148 http://pci-ids.ucw.cz/v2.2/pci.ids \
6149 http://standards.ieee.org/develop/regauth/oui/oui.txt \
6150 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
6153 .PHONY: kdbus-update
6155 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
6156 wget -N https://d-bus.googlecode.com/git/kdbus.h )
6160 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6162 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6164 upload: all check dist
6165 scp systemd-$(VERSION).tar.xz $(www_target)
6168 doc-sync: all destdir-sphinx
6169 gtkdoc-rebase --html-dir=docs/libudev/html --online
6170 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
6171 gtkdoc-rebase --html-dir=docs/gudev/html --online
6172 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
6173 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6174 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
6178 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
6179 scp man/*.html tango:public/systemd-man/
6181 .PHONY: install-tree
6183 rm -rf $(abs_srcdir)/install-tree
6184 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6185 tree $(abs_srcdir)/install-tree
6187 # Let's run all tests of the test suite, but under valgrind. Let's
6188 # exclude the one perl script we have in there
6189 .PHONY: valgrind-tests
6190 valgrind-tests: $(TESTS)
6191 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
6192 if file $$f | grep -q shell; then \
6193 echo -e "$${x}Skipping non-binary $$f"; else \
6194 echo -e "$${x}Running $$f"; \
6195 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6200 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6202 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6203 $(AM_V_GEN)cat $^ > $@
6205 .PHONY: check-api-docs
6206 check-api-docs: exported man
6207 $(AM_V_GEN)for symbol in `cat exported` ; do \
6208 if test -f $(builddir)/man/$$symbol.html ; then \
6209 echo " Symbol $$symbol() is documented." ; \
6211 echo "‣ Symbol $$symbol() lacks documentation." ; \
6215 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6216 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6218 undefined defined: $(ALL_OBJECTS)
6219 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6220 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6221 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6227 .PHONY: check-api-unused
6228 check-api-unused: defined undefined exported
6229 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6231 .PHONY: check-includes
6232 check-includes: $(top_srcdir)/tools/check-includes.pl
6233 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6234 | xargs $(top_srcdir)/tools/check-includes.pl
6237 $(top_srcdir)/tools/check-includes.pl
6239 # Stupid test that everything purported to be exported really is
6240 define generate-sym-test
6241 $(AM_V_at)$(MKDIR_P) $(dir $@)
6242 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6243 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6244 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6245 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6246 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6247 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6248 $(AM_V_at)printf 'return 0; }\n' >> $@
6251 test-libsystemd-sym.c: \
6252 $(top_builddir)/src/libsystemd/libsystemd.sym \
6253 src/systemd/sd-journal.h \
6254 src/systemd/sd-daemon.h \
6255 src/systemd/sd-login.h \
6256 src/systemd/sd-bus.h \
6257 src/systemd/sd-utf8.h \
6258 src/systemd/sd-resolve.h \
6259 src/systemd/sd-path.h
6260 $(generate-sym-test)
6262 test-libudev-sym.c: \
6263 src/libudev/libudev.sym \
6265 $(generate-sym-test)
6267 test_libsystemd_sym_SOURCES = \
6268 test-libsystemd-sym.c
6269 test_libsystemd_sym_LDADD = \
6272 test_libudev_sym_SOURCES = \
6274 test_libudev_sym_CFLAGS = \
6276 -Wno-deprecated-declarations
6277 test_libudev_sym_LDADD = \
6281 $(test_libsystemd_sym_SOURCES) \
6282 $(test_libudev_sym_SOURCES)
6285 test-libsystemd-sym \
6290 cppcheck --enable=all -q $(top_srcdir)
6292 # Used to extract compile flags for YCM.
6297 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u
6300 tools/gdb-sd_dump_hashmaps.py