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 = \
910 libsystemd_shared_la_LIBADD = \
913 # ------------------------------------------------------------------------------
914 noinst_LTLIBRARIES += \
917 libsystemd_units_la_SOURCES = \
918 src/shared/install.c \
919 src/shared/install.h \
920 src/shared/install-printf.c \
921 src/shared/install-printf.h \
922 src/shared/path-lookup.c \
923 src/shared/path-lookup.h \
924 src/shared/specifier.c \
925 src/shared/specifier.h
927 # ------------------------------------------------------------------------------
928 noinst_LTLIBRARIES += \
931 libsystemd_label_la_SOURCES = \
932 src/shared/socket-label.c \
935 src/shared/selinux-util.c \
936 src/shared/selinux-util.h \
937 src/shared/mkdir-label.c \
938 src/shared/ask-password-api.c \
939 src/shared/ask-password-api.h \
940 src/shared/switch-root.h \
941 src/shared/switch-root.c \
942 src/shared/fileio-label.c \
943 src/shared/fileio-label.h \
944 src/shared/dev-setup.c \
945 src/shared/dev-setup.h \
946 src/shared/dropin.c \
947 src/shared/dropin.h \
948 src/shared/generator.h \
949 src/shared/generator.c
951 libsystemd_label_la_CFLAGS = \
955 libsystemd_label_la_LIBADD = \
958 # -----------------------------------------------------------------------------
961 dist_systemunit_DATA += \
962 units/ldconfig.service
964 SYSINIT_TARGET_WANTS += \
968 # ------------------------------------------------------------------------------
971 noinst_LTLIBRARIES += \
972 libsystemd-seccomp.la
974 libsystemd_seccomp_la_SOURCES = \
975 src/shared/seccomp-util.h \
976 src/shared/seccomp-util.c
978 libsystemd_seccomp_la_CFLAGS = \
982 libsystemd_seccomp_la_LIBADD = \
986 # ------------------------------------------------------------------------------
987 noinst_LTLIBRARIES += \
990 libsystemd_logs_la_SOURCES = \
991 src/shared/logs-show.c \
992 src/shared/logs-show.h
994 # ------------------------------------------------------------------------------
995 noinst_LTLIBRARIES += \
996 libsystemd-capability.la
998 libsystemd_capability_la_SOURCES = \
999 src/shared/capability.c \
1000 src/shared/capability.h
1002 libsystemd_capability_la_CFLAGS = \
1006 libsystemd_capability_la_LIBADD = \
1009 # ------------------------------------------------------------------------------
1011 noinst_LTLIBRARIES += \
1014 libsystemd_acl_la_SOURCES = \
1015 src/shared/acl-util.c \
1016 src/shared/acl-util.h
1018 libsystemd_acl_la_CFLAGS = \
1022 libsystemd_acl_la_LIBADD = \
1026 # ------------------------------------------------------------------------------
1027 noinst_LTLIBRARIES += \
1030 libsystemd_core_la_SOURCES = \
1033 src/core/unit-printf.c \
1034 src/core/unit-printf.h \
1037 src/core/manager.c \
1038 src/core/manager.h \
1039 src/core/transaction.c \
1040 src/core/transaction.h \
1041 src/core/load-fragment.c \
1042 src/core/load-fragment.h \
1043 src/core/service.c \
1044 src/core/service.h \
1047 src/core/busname.c \
1048 src/core/busname.h \
1049 src/core/bus-common.c \
1050 src/core/bus-common.h \
1051 src/core/bus-endpoint.c \
1052 src/core/bus-endpoint.h \
1055 src/core/snapshot.c \
1056 src/core/snapshot.h \
1061 src/core/automount.c \
1062 src/core/automount.h \
1073 src/core/load-dropin.c \
1074 src/core/load-dropin.h \
1075 src/core/execute.c \
1076 src/core/execute.h \
1081 src/core/dbus-manager.c \
1082 src/core/dbus-manager.h \
1083 src/core/dbus-unit.c \
1084 src/core/dbus-unit.h \
1085 src/core/dbus-job.c \
1086 src/core/dbus-job.h \
1087 src/core/dbus-service.c \
1088 src/core/dbus-service.h \
1089 src/core/dbus-socket.c \
1090 src/core/dbus-socket.h \
1091 src/core/dbus-busname.c \
1092 src/core/dbus-busname.h \
1093 src/core/dbus-target.c \
1094 src/core/dbus-target.h \
1095 src/core/dbus-snapshot.c \
1096 src/core/dbus-snapshot.h \
1097 src/core/dbus-device.c \
1098 src/core/dbus-device.h \
1099 src/core/dbus-mount.c \
1100 src/core/dbus-mount.h \
1101 src/core/dbus-automount.c \
1102 src/core/dbus-automount.h \
1103 src/core/dbus-swap.c \
1104 src/core/dbus-swap.h \
1105 src/core/dbus-timer.c \
1106 src/core/dbus-timer.h \
1107 src/core/dbus-path.c \
1108 src/core/dbus-path.h \
1109 src/core/dbus-slice.c \
1110 src/core/dbus-slice.h \
1111 src/core/dbus-scope.c \
1112 src/core/dbus-scope.h \
1113 src/core/dbus-execute.c \
1114 src/core/dbus-execute.h \
1115 src/core/dbus-kill.c \
1116 src/core/dbus-kill.h \
1117 src/core/dbus-cgroup.c \
1118 src/core/dbus-cgroup.h \
1121 src/core/selinux-access.c \
1122 src/core/selinux-access.h \
1123 src/core/selinux-setup.c \
1124 src/core/selinux-setup.h \
1125 src/core/smack-setup.c \
1126 src/core/smack-setup.h \
1127 src/core/ima-setup.c \
1128 src/core/ima-setup.h \
1129 src/core/locale-setup.h \
1130 src/core/locale-setup.c \
1131 src/core/hostname-setup.c \
1132 src/core/hostname-setup.h \
1133 src/core/machine-id-setup.c \
1134 src/core/machine-id-setup.h \
1135 src/core/mount-setup.c \
1136 src/core/mount-setup.h \
1137 src/core/loopback-setup.h \
1138 src/core/loopback-setup.c \
1139 src/core/namespace.c \
1140 src/core/namespace.h \
1142 src/core/sysfs-show.h \
1143 src/core/killall.h \
1144 src/core/killall.c \
1145 src/core/audit-fd.c \
1146 src/core/audit-fd.h \
1147 src/core/show-status.c \
1148 src/core/show-status.h \
1149 src/core/failure-action.c \
1150 src/core/failure-action.h
1153 libsystemd_core_la_SOURCES += \
1154 src/core/kmod-setup.c \
1155 src/core/kmod-setup.h
1158 nodist_libsystemd_core_la_SOURCES = \
1159 src/core/load-fragment-gperf.c \
1160 src/core/load-fragment-gperf-nulstr.c
1162 libsystemd_core_la_CFLAGS = \
1168 $(APPARMOR_CFLAGS) \
1172 libsystemd_core_la_LIBADD = \
1173 libsystemd-capability.la \
1174 libsystemd-units.la \
1175 libsystemd-label.la \
1176 libudev-internal.la \
1177 libsystemd-shared.la \
1178 libsystemd-internal.la \
1187 libsystemd_core_la_LIBADD += \
1188 libsystemd-seccomp.la
1191 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1192 $(AM_V_at)$(MKDIR_P) $(dir $@)
1193 $(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 ";" }' < $< > $@
1196 src/core/load-fragment-gperf.gperf.m4
1199 src/core/load-fragment-gperf.gperf \
1200 src/core/load-fragment-gperf.c \
1201 src/core/load-fragment-gperf-nulstr.c \
1202 src/shared/errno-list.txt \
1203 src/shared/errno-from-name.gperf \
1204 src/shared/af-list.txt \
1205 src/shared/af-from-name.gperf \
1206 src/shared/arphrd-list.txt \
1207 src/shared/arphrd-from-name.gperf \
1208 src/shared/dns_type-list.txt \
1209 src/shared/dns_type-from-name.gperf
1212 src/shared/errno-from-name.h \
1213 src/shared/errno-to-name.h \
1214 src/shared/af-from-name.h \
1215 src/shared/af-to-name.h \
1216 src/shared/arphrd-from-name.h \
1217 src/shared/arphrd-to-name.h \
1218 src/resolve/dns_type-from-name.h \
1219 src/resolve/dns_type-to-name.h
1221 %-from-name.gperf: %-list.txt
1222 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1224 %-from-name.h: %-from-name.gperf
1225 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1228 src/shared/errno-list.txt:
1229 $(AM_V_at)$(MKDIR_P) $(dir $@)
1230 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1232 src/shared/errno-to-name.h: src/shared/errno-list.txt
1233 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1236 src/shared/af-list.txt:
1237 $(AM_V_at)$(MKDIR_P) $(dir $@)
1238 $(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; }' >$@
1240 src/shared/af-to-name.h: src/shared/af-list.txt
1241 $(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 "};"}' <$< >$@
1243 src/shared/arphrd-list.txt:
1244 $(AM_V_at)$(MKDIR_P) $(dir $@)
1245 $(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_//' >$@
1247 src/shared/arphrd-to-name.h: src/shared/arphrd-list.txt
1248 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1250 src/shared/arphrd-from-name.gperf: src/shared/arphrd-list.txt
1251 $(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 }' <$< >$@
1254 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1255 $(AM_V_at)$(MKDIR_P) $(dir $@)
1256 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1258 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1259 $(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" }' <$< >$@
1261 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1262 $(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 }' <$< >$@
1264 # ------------------------------------------------------------------------------
1273 libsystemd-core.la \
1276 dist_pkgsysconf_DATA += \
1277 src/core/system.conf \
1280 dist_dbuspolicy_DATA += \
1281 src/core/org.freedesktop.systemd1.conf
1283 dist_dbussystemservice_DATA += \
1284 src/core/org.freedesktop.systemd1.service
1286 polkitpolicy_in_in_files += \
1287 src/core/org.freedesktop.systemd1.policy.in.in
1289 pkgconfigdata_DATA = \
1292 nodist_rpmmacros_DATA = \
1293 src/core/macros.systemd
1296 src/core/systemd.pc.in \
1297 src/core/macros.systemd.in
1300 src/core/macros.systemd \
1301 src/core/org.freedesktop.systemd1.policy.in
1303 # ------------------------------------------------------------------------------
1346 test-strip-tab-ansi \
1376 test/daughter.service \
1381 test/grandchild.service \
1383 test/hello-after-sleep.target \
1384 test/hello.service \
1386 test/parent-deep.slice \
1389 test/sched_idle_bad.service \
1390 test/sched_idle_ok.service \
1391 test/sched_rr_bad.service \
1392 test/sched_rr_change.service \
1393 test/sched_rr_ok.service \
1394 test/shutdown.target \
1395 test/sleep.service \
1396 test/sockets.target \
1398 test/sysinit.target \
1399 test/testsuite.target \
1400 test/timers.target \
1401 test/unstoppable.service \
1402 test/bus-policy/hello.conf \
1403 test/bus-policy/methods.conf \
1404 test/bus-policy/ownerships.conf \
1405 test/bus-policy/signals.conf
1409 src/test/test-helper.h
1411 test_device_nodes_SOURCES = \
1412 src/test/test-device-nodes.c
1414 test_device_nodes_LDADD = \
1415 libsystemd-shared.la
1417 test_engine_SOURCES = \
1418 src/test/test-engine.c
1420 test_engine_CFLAGS = \
1424 test_engine_LDADD = \
1425 libsystemd-core.la \
1428 test_job_type_SOURCES = \
1429 src/test/test-job-type.c
1431 test_job_type_CFLAGS = \
1435 test_job_type_LDADD = \
1436 libsystemd-core.la \
1449 test_loopback_SOURCES = \
1450 src/test/test-loopback.c
1452 test_loopback_LDADD = \
1455 test_hostname_SOURCES = \
1456 src/test/test-hostname.c
1458 test_hostname_LDADD = \
1465 test_boot_timestamp_SOURCES = \
1466 src/test/test-boot-timestamps.c
1468 test_boot_timestamp_LDADD = \
1469 libsystemd-shared.la
1472 test_unit_name_SOURCES = \
1473 src/test/test-unit-name.c
1475 test_unit_name_CFLAGS = \
1479 test_unit_name_LDADD = \
1480 libsystemd-core.la \
1483 test_unit_file_SOURCES = \
1484 src/test/test-unit-file.c
1486 test_unit_file_CFLAGS = \
1490 test_unit_file_LDADD = \
1491 libsystemd-core.la \
1494 test_utf8_SOURCES = \
1495 src/test/test-utf8.c
1498 libsystemd-shared.la
1500 test_capability_SOURCES = \
1501 src/test/test-capability.c
1503 test_capability_LDADD = \
1504 libsystemd-shared.la \
1505 libsystemd-capability.la
1507 test_async_SOURCES = \
1508 src/test/test-async.c
1510 test_async_LDADD = \
1511 libsystemd-shared.la
1513 test_locale_util_SOURCES = \
1514 src/test/test-locale-util.c
1516 test_locale_util_LDADD = \
1517 libsystemd-shared.la
1519 test_copy_SOURCES = \
1520 src/test/test-copy.c
1523 libsystemd-shared.la
1525 test_condition_SOURCES = \
1526 src/test/test-condition.c
1528 test_condition_LDADD = \
1529 libsystemd-shared.la \
1530 libsystemd-internal.la \
1531 libsystemd-capability.la \
1534 test_fdset_SOURCES = \
1535 src/test/test-fdset.c
1537 test_fdset_LDADD = \
1538 libsystemd-shared.la
1540 test_ratelimit_SOURCES = \
1541 src/test/test-ratelimit.c
1543 test_ratelimit_LDADD = \
1544 libsystemd-shared.la
1546 test_util_SOURCES = \
1547 src/test/test-util.c
1551 libsystemd-shared.la
1553 test_uid_range_SOURCES = \
1554 src/test/test-uid-range.c
1556 test_uid_range_LDADD = \
1557 libsystemd-shared.la
1559 test_socket_util_SOURCES = \
1560 src/test/test-socket-util.c
1562 test_socket_util_LDADD = \
1563 libsystemd-shared.la
1565 test_ring_SOURCES = \
1566 src/test/test-ring.c
1569 libsystemd-shared.la
1571 test_barrier_SOURCES = \
1572 src/test/test-barrier.c
1574 test_barrier_LDADD = \
1575 libsystemd-shared.la
1577 test_pty_SOURCES = \
1583 test_tmpfiles_SOURCES = \
1584 src/test/test-tmpfiles.c
1586 test_tmpfiles_LDADD = \
1587 libsystemd-shared.la
1589 test_namespace_SOURCES = \
1590 src/test/test-namespace.c
1592 test_namespace_LDADD = \
1596 src/test/test-hashmap-ordered.c
1599 src/test/test-hashmap-ordered.c
1601 src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c
1602 $(AM_V_at)$(MKDIR_P) $(dir $@)
1603 $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \
1604 { if (!match($$0, "^#include")) \
1605 gsub(/hashmap/, "ordered_hashmap"); \
1606 gsub(/HASHMAP/, "ORDERED_HASHMAP"); \
1607 gsub(/Hashmap/, "OrderedHashmap"); \
1610 nodist_test_hashmap_SOURCES = \
1611 src/test/test-hashmap-ordered.c
1613 test_hashmap_SOURCES = \
1614 src/test/test-hashmap.c \
1615 src/test/test-hashmap-plain.c
1617 test_hashmap_LDADD = \
1618 libsystemd-shared.la
1620 test_set_SOURCES = \
1624 libsystemd-shared.la
1626 test_xml_SOURCES = \
1630 libsystemd-shared.la
1632 test_list_SOURCES = \
1633 src/test/test-list.c
1636 libsystemd-shared.la
1638 test_unaligned_LDADD = \
1639 libsystemd-shared.la
1641 test_unaligned_SOURCES = \
1642 src/test/test-unaligned.c
1644 test_tables_SOURCES = \
1645 src/test/test-tables.c \
1646 src/shared/test-tables.h \
1647 src/bus-proxyd/bus-policy.c \
1648 src/bus-proxyd/bus-policy.h \
1649 src/journal/journald-server.c \
1650 src/journal/journald-server.h
1652 test_tables_CPPFLAGS = \
1654 -I$(top_srcdir)/src/bus-proxyd
1656 test_tables_CFLAGS = \
1660 test_tables_LDADD = \
1661 libsystemd-logs.la \
1662 libsystemd-journal-internal.la \
1663 libsystemd-journal-core.la \
1664 libsystemd-core.la \
1668 test_prioq_SOURCES = \
1669 src/test/test-prioq.c
1671 test_prioq_LDADD = \
1672 libsystemd-shared.la
1674 test_fileio_SOURCES = \
1675 src/test/test-fileio.c
1677 test_fileio_LDADD = \
1678 libsystemd-shared.la
1680 test_time_SOURCES = \
1681 src/test/test-time.c
1684 libsystemd-shared.la
1686 test_architecture_SOURCES = \
1687 src/test/test-architecture.c
1689 test_architecture_LDADD = \
1690 libsystemd-shared.la
1692 test_log_SOURCES = \
1696 libsystemd-shared.la
1698 test_ipcrm_SOURCES = \
1699 src/test/test-ipcrm.c
1701 test_ipcrm_LDADD = \
1702 libsystemd-shared.la \
1705 test_rtnl_manual_SOURCES = \
1706 src/test/test-rtnl-manual.c
1708 test_rtnl_manual_CFLAGS = \
1712 test_rtnl_manual_LDADD = \
1713 libsystemd-internal.la \
1714 libsystemd-shared.la \
1717 test_ellipsize_SOURCES = \
1718 src/test/test-ellipsize.c
1720 test_ellipsize_LDADD = \
1721 libsystemd-shared.la
1723 test_date_SOURCES = \
1724 src/test/test-date.c
1727 libsystemd-shared.la
1729 test_sleep_SOURCES = \
1730 src/test/test-sleep.c
1732 test_sleep_LDADD = \
1735 test_replace_var_SOURCES = \
1736 src/test/test-replace-var.c
1738 test_replace_var_LDADD = \
1739 libsystemd-shared.la
1741 test_calendarspec_SOURCES = \
1742 src/test/test-calendarspec.c
1744 test_calendarspec_LDADD = \
1745 libsystemd-shared.la
1747 test_strip_tab_ansi_SOURCES = \
1748 src/test/test-strip-tab-ansi.c
1750 test_strip_tab_ansi_LDADD = \
1751 libsystemd-shared.la
1753 test_daemon_SOURCES = \
1754 src/test/test-daemon.c
1756 test_daemon_LDADD = \
1757 libsystemd-internal.la \
1758 libsystemd-shared.la
1760 test_cgroup_SOURCES = \
1761 src/test/test-cgroup.c
1763 test_cgroup_LDADD = \
1764 libsystemd-label.la \
1765 libsystemd-shared.la \
1766 libsystemd-internal.la
1768 test_cgroup_mask_SOURCES = \
1769 src/test/test-cgroup-mask.c
1771 test_cgroup_mask_CPPFLAGS = \
1774 test_cgroup_mask_CFLAGS = \
1778 test_cgroup_mask_LDADD = \
1779 libsystemd-core.la \
1782 test_cgroup_util_SOURCES = \
1783 src/test/test-cgroup-util.c
1785 test_cgroup_util_LDADD = \
1786 libsystemd-label.la \
1787 libsystemd-internal.la \
1788 libsystemd-shared.la
1790 test_env_replace_SOURCES = \
1791 src/test/test-env-replace.c
1793 test_env_replace_LDADD = \
1794 libsystemd-shared.la
1796 test_strbuf_SOURCES = \
1797 src/test/test-strbuf.c
1799 test_strbuf_LDADD = \
1800 libsystemd-shared.la
1802 test_strv_SOURCES = \
1803 src/test/test-strv.c
1806 libsystemd-units.la \
1807 libsystemd-internal.la \
1808 libsystemd-shared.la
1810 test_path_util_SOURCES = \
1811 src/test/test-path-util.c
1813 test_path_util_LDADD = \
1814 libsystemd-shared.la
1816 test_path_SOURCES = \
1817 src/test/test-path.c
1819 test_path_CFLAGS = \
1825 test_strxcpyx_SOURCES = \
1826 src/test/test-strxcpyx.c
1828 test_strxcpyx_LDADD = \
1829 libsystemd-shared.la
1831 test_install_SOURCES = \
1832 src/test/test-install.c
1834 test_install_LDADD = \
1835 libsystemd-units.la \
1836 libsystemd-label.la \
1837 libsystemd-shared.la \
1838 libsystemd-internal.la
1840 test_watchdog_SOURCES = \
1841 src/test/test-watchdog.c
1843 test_watchdog_LDADD = \
1844 libsystemd-shared.la
1846 test_sched_prio_SOURCES = \
1847 src/test/test-sched-prio.c
1849 test_sched_prio_CPPFLAGS = \
1852 test_sched_prio_CFLAGS = \
1856 test_sched_prio_LDADD = \
1857 libsystemd-core.la \
1860 test_conf_files_SOURCES = \
1861 src/test/test-conf-files.c
1863 test_conf_files_LDADD = \
1864 libsystemd-shared.la
1866 test_bus_policy_SOURCES = \
1867 src/bus-proxyd/test-bus-policy.c \
1868 src/bus-proxyd/bus-policy.c \
1869 src/bus-proxyd/bus-policy.h
1871 test_bus_policy_LDADD = \
1872 libsystemd-capability.la \
1873 libsystemd-internal.la \
1874 libsystemd-shared.la
1876 # ------------------------------------------------------------------------------
1877 ## .PHONY so it always rebuilds it
1878 .PHONY: coverage lcov-run lcov-report coverage-sync
1880 # run lcov from scratch, always
1885 coverage_dir = coverage
1886 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1889 # reset run coverage tests
1891 @rm -rf $(coverage_dir)
1892 lcov $(coverage_opts) --zerocounters
1895 # generate report based on current coverage data
1897 $(MKDIR_P) $(coverage_dir)
1898 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1899 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1900 lcov --remove $(coverage_dir)/.lcov.info --output-file $(coverage_dir)/.lcov-clean.info 'test-*'
1901 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov-clean.info
1902 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1904 # lcov doesn't work properly with vpath builds, make sure that bad
1905 # output is not uploaded by mistake.
1906 coverage-sync: coverage
1907 test "$(builddir)" = "$(srcdir)"
1908 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1911 lcov-run lcov-report:
1912 echo "Need to reconfigure with --enable-coverage"
1915 # ------------------------------------------------------------------------------
1916 systemd_analyze_SOURCES = \
1917 src/analyze/analyze.c \
1918 src/analyze/analyze-verify.c \
1919 src/analyze/analyze-verify.h
1921 systemd_verify_CFLAGS = \
1925 systemd_analyze_LDADD = \
1926 libsystemd-core.la \
1927 libsystemd-internal.la \
1928 libsystemd-shared.la \
1931 # ------------------------------------------------------------------------------
1932 systemd_initctl_SOURCES = \
1933 src/initctl/initctl.c
1935 systemd_initctl_LDADD = \
1936 libsystemd-internal.la \
1937 libsystemd-shared.la
1939 # ------------------------------------------------------------------------------
1940 systemd_update_utmp_SOURCES = \
1941 src/update-utmp/update-utmp.c
1943 systemd_update_utmp_CFLAGS = \
1947 systemd_update_utmp_LDADD = \
1948 libsystemd-internal.la \
1949 libsystemd-shared.la \
1952 # ------------------------------------------------------------------------------
1953 systemd_update_done_SOURCES = \
1954 src/update-done/update-done.c
1956 systemd_update_done_LDADD = \
1957 libsystemd-internal.la \
1958 libsystemd-label.la \
1959 libsystemd-shared.la
1961 # ------------------------------------------------------------------------------
1962 systemd_shutdownd_SOURCES = \
1963 src/shutdownd/shutdownd.c
1965 systemd_shutdownd_LDADD = \
1966 libsystemd-label.la \
1967 libsystemd-internal.la \
1968 libsystemd-shared.la
1971 src/systemd/sd-shutdown.h
1973 # ------------------------------------------------------------------------------
1974 systemd_shutdown_SOURCES = \
1977 src/core/shutdown.c \
1978 src/core/mount-setup.c \
1979 src/core/mount-setup.h \
1980 src/core/killall.h \
1983 systemd_shutdown_LDADD = \
1984 libsystemd-label.la \
1985 libudev-internal.la \
1986 libsystemd-shared.la
1988 # ------------------------------------------------------------------------------
1990 systemd_modules_load_SOURCES = \
1991 src/modules-load/modules-load.c
1993 systemd_modules_load_CFLAGS = \
1997 systemd_modules_load_LDADD = \
1998 libsystemd-shared.la \
2001 rootlibexec_PROGRAMS += \
2002 systemd-modules-load
2004 nodist_systemunit_DATA += \
2005 units/systemd-modules-load.service
2007 SYSINIT_TARGET_WANTS += \
2008 systemd-modules-load.service
2011 nodist_systemunit_DATA += \
2012 units/kmod-static-nodes.service
2014 SYSINIT_TARGET_WANTS += \
2015 kmod-static-nodes.service
2020 units/systemd-modules-load.service.in \
2021 units/kmod-static-nodes.service.in
2023 # ------------------------------------------------------------------------------
2025 systemd_tmpfiles_SOURCES = \
2026 src/tmpfiles/tmpfiles.c
2028 systemd_tmpfiles_LDADD = \
2029 libsystemd-units.la \
2030 libsystemd-label.la \
2031 libsystemd-capability.la \
2032 libsystemd-internal.la \
2033 libsystemd-shared.la
2035 rootbin_PROGRAMS += \
2038 dist_systemunit_DATA += \
2039 units/systemd-tmpfiles-clean.timer
2041 nodist_systemunit_DATA += \
2042 units/systemd-tmpfiles-setup-dev.service \
2043 units/systemd-tmpfiles-setup.service \
2044 units/systemd-tmpfiles-clean.service
2046 nodist_tmpfiles_DATA = \
2049 dist_tmpfiles_DATA = \
2050 tmpfiles.d/systemd.conf \
2051 tmpfiles.d/systemd-nologin.conf \
2052 tmpfiles.d/systemd-remote.conf \
2053 tmpfiles.d/tmp.conf \
2054 tmpfiles.d/x11.conf \
2058 dist_tmpfiles_DATA += \
2059 tmpfiles.d/legacy.conf
2062 SYSINIT_TARGET_WANTS += \
2063 systemd-tmpfiles-setup-dev.service \
2064 systemd-tmpfiles-setup.service
2066 dist_zshcompletion_DATA += \
2067 shell-completion/zsh/_systemd-tmpfiles
2069 TIMERS_TARGET_WANTS += \
2070 systemd-tmpfiles-clean.timer
2074 $(sysconfdir)/tmpfiles.d
2078 tmpfiles.d/etc.conf.m4 \
2079 units/systemd-tmpfiles-setup-dev.service.in \
2080 units/systemd-tmpfiles-setup.service.in \
2081 units/systemd-tmpfiles-clean.service.in
2086 # ------------------------------------------------------------------------------
2088 systemd_sysusers_SOURCES = \
2089 src/sysusers/sysusers.c
2091 systemd_sysusers_LDADD = \
2092 libsystemd-units.la \
2093 libsystemd-label.la \
2094 libsystemd-capability.la \
2095 libsystemd-internal.la \
2096 libsystemd-shared.la
2098 rootbin_PROGRAMS += \
2101 nodist_systemunit_DATA += \
2102 units/systemd-sysusers.service
2104 SYSINIT_TARGET_WANTS += \
2105 systemd-sysusers.service
2107 dist_sysusers_DATA = \
2108 sysusers.d/systemd.conf \
2109 sysusers.d/systemd-remote.conf
2111 nodist_sysusers_DATA = \
2112 sysusers.d/basic.conf
2115 units/systemd-sysusers.service.in \
2116 sysusers.d/basic.conf.in
2119 sysusers.d/basic.conf
2125 # ------------------------------------------------------------------------------
2126 dist_factory_etc_DATA = \
2127 factory/etc/nsswitch.conf
2130 dist_factory_pam_DATA = \
2131 factory/etc/pam.d/system-auth \
2132 factory/etc/pam.d/other
2135 # ------------------------------------------------------------------------------
2137 systemd_firstboot_SOURCES = \
2138 src/firstboot/firstboot.c
2140 systemd_firstboot_LDADD = \
2141 libsystemd-units.la \
2142 libsystemd-label.la \
2143 libsystemd-capability.la \
2144 libsystemd-internal.la \
2145 libsystemd-shared.la \
2148 rootbin_PROGRAMS += \
2151 nodist_systemunit_DATA += \
2152 units/systemd-firstboot.service
2155 units/systemd-firstboot.service.in
2157 SYSINIT_TARGET_WANTS += \
2158 systemd-firstboot.service
2161 # ------------------------------------------------------------------------------
2162 systemd_machine_id_setup_SOURCES = \
2163 src/machine-id-setup/machine-id-setup-main.c \
2164 src/core/machine-id-setup.c \
2165 src/core/machine-id-setup.h
2167 systemd_machine_id_setup_LDADD = \
2168 libsystemd-label.la \
2169 libsystemd-internal.la \
2170 libsystemd-shared.la
2172 # ------------------------------------------------------------------------------
2173 systemd_sysctl_SOURCES = \
2176 systemd_sysctl_LDADD = \
2177 libsystemd-shared.la
2179 # ------------------------------------------------------------------------------
2180 systemd_sleep_SOURCES = \
2183 systemd_sleep_LDADD = \
2184 libsystemd-shared.la
2186 # ------------------------------------------------------------------------------
2187 systemd_fsck_SOURCES = \
2190 systemd_fsck_LDADD = \
2191 libsystemd-internal.la \
2192 libudev-internal.la \
2193 libsystemd-shared.la
2195 # ------------------------------------------------------------------------------
2196 systemd_ac_power_SOURCES = \
2197 src/ac-power/ac-power.c
2199 systemd_ac_power_LDADD = \
2200 libudev-internal.la \
2201 libsystemd-shared.la
2203 # ------------------------------------------------------------------------------
2204 systemd_detect_virt_SOURCES = \
2205 src/detect-virt/detect-virt.c
2207 systemd_detect_virt_LDADD = \
2208 libsystemd-shared.la
2210 INSTALL_EXEC_HOOKS += \
2211 systemd-detect-virt-install-hook
2213 # ------------------------------------------------------------------------------
2214 systemd_delta_SOURCES = \
2217 systemd_delta_LDADD = \
2218 libsystemd-shared.la
2220 # ------------------------------------------------------------------------------
2221 systemd_getty_generator_SOURCES = \
2222 src/getty-generator/getty-generator.c
2224 systemd_getty_generator_LDADD = \
2225 libsystemd-label.la \
2226 libsystemd-shared.la
2228 # ------------------------------------------------------------------------------
2229 systemd_debug_generator_SOURCES = \
2230 src/debug-generator/debug-generator.c
2232 systemd_debug_generator_LDADD = \
2233 libsystemd-label.la \
2234 libsystemd-shared.la
2236 # ------------------------------------------------------------------------------
2237 systemd_fstab_generator_SOURCES = \
2238 src/fstab-generator/fstab-generator.c \
2239 src/core/mount-setup.c
2241 systemd_fstab_generator_LDADD = \
2242 libsystemd-label.la \
2243 libsystemd-shared.la
2245 # ------------------------------------------------------------------------------
2246 systemd_system_update_generator_SOURCES = \
2247 src/system-update-generator/system-update-generator.c
2249 systemd_system_update_generator_LDADD = \
2250 libsystemd-label.la \
2251 libsystemd-shared.la
2253 # ------------------------------------------------------------------------------
2255 systemgenerator_PROGRAMS += \
2256 systemd-hibernate-resume-generator
2258 rootlibexec_PROGRAMS += \
2259 systemd-hibernate-resume
2261 systemd_hibernate_resume_SOURCES = \
2262 src/hibernate-resume/hibernate-resume.c
2264 systemd_hibernate_resume_LDADD = \
2265 libsystemd-internal.la \
2266 libsystemd-shared.la
2268 systemd_hibernate_resume_generator_SOURCES = \
2269 src/hibernate-resume/hibernate-resume-generator.c
2271 systemd_hibernate_resume_generator_LDADD = \
2272 libsystemd-label.la \
2273 libsystemd-shared.la
2276 units/systemd-hibernate.service.in \
2277 units/systemd-hibernate-resume@.service.in \
2278 units/systemd-hybrid-sleep.service.in
2280 dist_systemunit_DATA += \
2281 units/hibernate.target \
2282 units/hybrid-sleep.target
2284 nodist_systemunit_DATA += \
2285 units/systemd-hibernate.service \
2286 units/systemd-hibernate-resume@.service \
2287 units/systemd-hybrid-sleep.service
2290 # ------------------------------------------------------------------------------
2292 systemgenerator_PROGRAMS += \
2293 systemd-efi-boot-generator
2295 systemd_efi_boot_generator_SOURCES = \
2296 src/efi-boot-generator/efi-boot-generator.c
2298 systemd_efi_boot_generator_LDADD = \
2299 libsystemd-label.la \
2300 libsystemd-shared.la
2302 # ------------------------------------------------------------------------------
2305 src/boot/boot-loader.h \
2306 src/boot/bootctl.c \
2307 src/boot/boot-loader.c \
2311 libsystemd-shared.la \
2312 libsystemd-internal.la
2317 dist_bashcompletion_DATA += \
2318 shell-completion/bash/bootctl
2320 dist_zshcompletion_DATA += \
2321 shell-completion/zsh/_bootctl
2325 # ------------------------------------------------------------------------------
2327 systemgenerator_PROGRAMS += \
2328 systemd-gpt-auto-generator
2330 systemd_gpt_auto_generator_SOURCES = \
2331 src/gpt-auto-generator/gpt-auto-generator.c \
2332 src/shared/blkid-util.h
2334 systemd_gpt_auto_generator_LDADD = \
2335 libsystemd-label.la \
2336 libsystemd-internal.la \
2337 libudev-internal.la \
2338 libsystemd-shared.la \
2341 systemd_gpt_auto_generator_CFLAGS = \
2346 # ------------------------------------------------------------------------------
2348 systemgenerator_PROGRAMS += \
2349 systemd-dbus1-generator
2351 systemd_dbus1_generator_SOURCES = \
2352 src/dbus1-generator/dbus1-generator.c
2354 systemd_dbus1_generator_LDADD = \
2355 libsystemd-label.la \
2356 libsystemd-shared.la \
2357 libsystemd-internal.la
2359 dbus1-generator-install-hook:
2360 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2361 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2362 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2364 dbus1-generator-uninstall-hook:
2365 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2367 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2368 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2371 # ------------------------------------------------------------------------------
2372 systemd_sysv_generator_SOURCES = \
2373 src/sysv-generator/sysv-generator.c
2375 systemd_sysv_generator_LDADD = \
2376 libsystemd-core.la \
2377 libsystemd-label.la \
2378 libsystemd-shared.la
2380 # ------------------------------------------------------------------------------
2381 systemd_rc_local_generator_SOURCES = \
2382 src/rc-local-generator/rc-local-generator.c
2384 systemd_rc_local_generator_LDADD = \
2385 libsystemd-label.la \
2386 libsystemd-shared.la
2388 # ------------------------------------------------------------------------------
2389 systemd_remount_fs_SOURCES = \
2390 src/remount-fs/remount-fs.c \
2391 src/core/mount-setup.c \
2392 src/core/mount-setup.h
2394 systemd_remount_fs_LDADD = \
2395 libsystemd-label.la \
2396 libsystemd-shared.la
2398 # ------------------------------------------------------------------------------
2399 systemd_cgroups_agent_SOURCES = \
2400 src/cgroups-agent/cgroups-agent.c
2402 systemd_cgroups_agent_LDADD = \
2403 libsystemd-internal.la \
2404 libsystemd-shared.la
2406 # ------------------------------------------------------------------------------
2407 systemd_escape_SOURCES = \
2410 systemd_escape_LDADD = \
2411 libsystemd-shared.la
2413 # -----------------------------------------------------------------------------
2414 systemctl_SOURCES = \
2415 src/systemctl/systemctl.c
2418 libsystemd-units.la \
2419 libsystemd-label.la \
2420 libsystemd-internal.la \
2421 libsystemd-logs.la \
2422 libsystemd-journal-internal.la \
2423 libsystemd-shared.la
2425 # ------------------------------------------------------------------------------
2426 systemd_notify_SOURCES = \
2429 systemd_notify_LDADD = \
2430 libsystemd-internal.la \
2431 libsystemd-shared.la
2433 # ------------------------------------------------------------------------------
2434 systemd_path_SOURCES = \
2437 systemd_path_LDADD = \
2438 libsystemd-internal.la \
2439 libsystemd-shared.la
2441 # ------------------------------------------------------------------------------
2442 systemd_ask_password_SOURCES = \
2443 src/ask-password/ask-password.c
2445 systemd_ask_password_LDADD = \
2446 libsystemd-label.la \
2447 libsystemd-shared.la
2449 # ------------------------------------------------------------------------------
2450 systemd_reply_password_SOURCES = \
2451 src/reply-password/reply-password.c
2453 systemd_reply_password_LDADD = \
2454 libsystemd-shared.la
2456 # ------------------------------------------------------------------------------
2457 systemd_cgls_SOURCES = \
2460 systemd_cgls_LDADD = \
2461 libsystemd-internal.la \
2462 libsystemd-shared.la
2464 # ------------------------------------------------------------------------------
2465 systemd_cgtop_SOURCES = \
2468 systemd_cgtop_LDADD = \
2469 libsystemd-shared.la
2471 # ------------------------------------------------------------------------------
2472 systemd_nspawn_SOURCES = \
2473 src/nspawn/nspawn.c \
2474 src/core/mount-setup.c \
2475 src/core/mount-setup.h \
2476 src/core/loopback-setup.c \
2477 src/core/loopback-setup.h
2479 systemd_nspawn_CFLAGS = \
2484 systemd_nspawn_LDADD = \
2485 libsystemd-label.la \
2486 libsystemd-capability.la \
2487 libsystemd-internal.la \
2488 libudev-internal.la \
2489 libsystemd-shared.la \
2493 systemd_nspawn_LDADD += \
2494 libsystemd-seccomp.la \
2498 # ------------------------------------------------------------------------------
2499 systemd_run_SOURCES = \
2502 systemd_run_LDADD = \
2503 libsystemd-label.la \
2504 libsystemd-capability.la \
2505 libsystemd-internal.la \
2506 libsystemd-shared.la
2508 # ------------------------------------------------------------------------------
2509 systemd_bus_proxyd_SOURCES = \
2510 src/bus-proxyd/bus-proxyd.c \
2511 src/bus-proxyd/bus-policy.c \
2512 src/bus-proxyd/bus-policy.h
2514 systemd_bus_proxyd_LDADD = \
2515 libsystemd-capability.la \
2516 libsystemd-internal.la \
2517 libsystemd-shared.la
2519 bus-proxyd-install-hook:
2520 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
2521 $(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2522 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
2524 bus-proxyd-uninstall-hook:
2525 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2527 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
2528 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
2531 nodist_systemunit_DATA += \
2532 units/systemd-bus-proxyd@.service
2534 dist_systemunit_DATA += \
2535 units/systemd-bus-proxyd.socket
2537 nodist_userunit_DATA += \
2538 units/user/systemd-bus-proxyd@.service
2540 dist_userunit_DATA += \
2541 units/user/systemd-bus-proxyd.socket
2545 units/systemd-bus-proxyd@.service.in \
2546 units/user/systemd-bus-proxyd@.service.in
2548 # ------------------------------------------------------------------------------
2549 systemd_tty_ask_password_agent_SOURCES = \
2550 src/tty-ask-password-agent/tty-ask-password-agent.c
2552 systemd_tty_ask_password_agent_LDADD = \
2553 libsystemd-label.la \
2554 libsystemd-shared.la
2556 # ------------------------------------------------------------------------------
2557 libsystemd_internal_la_SOURCES = \
2558 src/systemd/sd-bus.h \
2559 src/systemd/sd-bus-protocol.h \
2560 src/systemd/sd-bus-vtable.h \
2561 src/systemd/sd-utf8.h \
2562 src/systemd/sd-event.h \
2563 src/systemd/sd-rtnl.h \
2564 src/systemd/sd-resolve.h \
2565 src/systemd/sd-login.h \
2566 src/systemd/sd-id128.h \
2567 src/systemd/sd-daemon.h \
2568 src/systemd/sd-path.h \
2569 src/systemd/sd-network.h \
2570 src/libsystemd/sd-bus/sd-bus.c \
2571 src/libsystemd/sd-bus/bus-control.c \
2572 src/libsystemd/sd-bus/bus-control.h \
2573 src/libsystemd/sd-bus/bus-error.c \
2574 src/libsystemd/sd-bus/bus-error.h \
2575 src/libsystemd/sd-bus/bus-internal.c \
2576 src/libsystemd/sd-bus/bus-internal.h \
2577 src/libsystemd/sd-bus/bus-socket.c \
2578 src/libsystemd/sd-bus/bus-socket.h \
2579 src/libsystemd/sd-bus/bus-kernel.c \
2580 src/libsystemd/sd-bus/bus-kernel.h \
2581 src/libsystemd/sd-bus/bus-container.c \
2582 src/libsystemd/sd-bus/bus-container.h \
2583 src/libsystemd/sd-bus/bus-message.c \
2584 src/libsystemd/sd-bus/bus-message.h \
2585 src/libsystemd/sd-bus/bus-creds.c \
2586 src/libsystemd/sd-bus/bus-creds.h \
2587 src/libsystemd/sd-bus/bus-signature.c \
2588 src/libsystemd/sd-bus/bus-signature.h \
2589 src/libsystemd/sd-bus/bus-type.c \
2590 src/libsystemd/sd-bus/bus-type.h \
2591 src/libsystemd/sd-bus/bus-match.c \
2592 src/libsystemd/sd-bus/bus-match.h \
2593 src/libsystemd/sd-bus/bus-bloom.c \
2594 src/libsystemd/sd-bus/bus-bloom.h \
2595 src/libsystemd/sd-bus/bus-introspect.c \
2596 src/libsystemd/sd-bus/bus-introspect.h \
2597 src/libsystemd/sd-bus/bus-objects.c \
2598 src/libsystemd/sd-bus/bus-objects.h \
2599 src/libsystemd/sd-bus/bus-gvariant.c \
2600 src/libsystemd/sd-bus/bus-gvariant.h \
2601 src/libsystemd/sd-bus/bus-convenience.c \
2602 src/libsystemd/sd-bus/bus-track.c \
2603 src/libsystemd/sd-bus/bus-track.h \
2604 src/libsystemd/sd-bus/bus-util.c \
2605 src/libsystemd/sd-bus/bus-util.h \
2606 src/libsystemd/sd-bus/bus-slot.c \
2607 src/libsystemd/sd-bus/bus-slot.h \
2608 src/libsystemd/sd-bus/bus-protocol.h \
2609 src/libsystemd/sd-bus/kdbus.h \
2610 src/libsystemd/sd-utf8/sd-utf8.c \
2611 src/libsystemd/sd-event/sd-event.c \
2612 src/libsystemd/sd-event/event-util.h \
2613 src/libsystemd/sd-rtnl/sd-rtnl.c \
2614 src/libsystemd/sd-rtnl/rtnl-internal.h \
2615 src/libsystemd/sd-rtnl/rtnl-message.c \
2616 src/libsystemd/sd-rtnl/rtnl-types.h \
2617 src/libsystemd/sd-rtnl/rtnl-types.c \
2618 src/libsystemd/sd-rtnl/rtnl-util.h \
2619 src/libsystemd/sd-rtnl/rtnl-util.c \
2620 src/libsystemd/sd-rtnl/local-addresses.h \
2621 src/libsystemd/sd-rtnl/local-addresses.c \
2622 src/libsystemd/sd-id128/sd-id128.c \
2623 src/libsystemd/sd-daemon/sd-daemon.c \
2624 src/libsystemd/sd-login/sd-login.c \
2625 src/libsystemd/sd-path/sd-path.c \
2626 src/libsystemd/sd-network/sd-network.c \
2627 src/libsystemd/sd-network/network-util.h \
2628 src/libsystemd/sd-network/network-util.c
2630 nodist_libsystemd_internal_la_SOURCES = \
2631 src/libsystemd/libsystemd.sym
2633 libsystemd_internal_la_CFLAGS = \
2637 libsystemd_internal_la_LIBADD = \
2640 libsystemd_resolve_la_SOURCES = \
2641 src/libsystemd/sd-resolve/sd-resolve.c \
2642 src/libsystemd/sd-resolve/resolve-util.h
2644 libsystemd_resolve_la_CFLAGS = \
2648 libsystemd_resolve_la_LIBADD = \
2651 noinst_LTLIBRARIES += \
2652 libsystemd-internal.la \
2653 libsystemd-resolve.la
2655 libsystemd_dump_la_SOURCES = \
2656 src/libsystemd/sd-bus/bus-dump.c \
2657 src/libsystemd/sd-bus/bus-dump.h
2659 libsystemd_dump_la_CFLAGS = \
2663 noinst_LTLIBRARIES += \
2667 src/libsystemd/libsystemd.sym.m4 \
2668 src/libsystemd/libsystemd.pc.in \
2669 src/libsystemd/sd-bus/DIFFERENCES \
2670 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2673 src/libsystemd/libsystemd.sym
2676 src/libsystemd/libsystemd.sym
2678 libsystemd_la_SOURCES = \
2679 $(libsystemd_internal_la_SOURCES) \
2680 $(libsystemd_resolve_la_SOURCES) \
2681 $(libsystemd_journal_internal_la_SOURCES)
2683 nodist_libsystemd_la_SOURCES = \
2684 $(nodist_libsystemd_internal_la_SOURCES)
2686 libsystemd_la_CFLAGS = \
2687 $(libsystemd_internal_la_CFLAGS) \
2688 $(libsystemd_resolve_la_CFLAGS) \
2689 $(libsystemd_journal_internal_la_CFLAGS)
2691 libsystemd_la_LDFLAGS = \
2693 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2694 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2696 libsystemd_la_LIBADD = \
2697 libsystemd-shared.la \
2698 $(libsystemd_internal_la_LIBADD) \
2699 $(libsystemd_journal_internal_la_LIBADD) \
2700 $(libsystemd_resolve_la_LIBADD)
2702 libsystemd-install-hook:
2703 libname=libsystemd.so && $(move-to-rootlibdir)
2705 libsystemd-uninstall-hook:
2706 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2708 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2709 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2711 pkgconfiglib_DATA += \
2712 src/libsystemd/libsystemd.pc
2714 pkginclude_HEADERS += \
2715 src/systemd/sd-login.h \
2716 src/systemd/sd-id128.h \
2717 src/systemd/sd-daemon.h
2720 pkginclude_HEADERS += \
2721 src/systemd/sd-bus.h \
2722 src/systemd/sd-bus-protocol.h \
2723 src/systemd/sd-bus-vtable.h \
2724 src/systemd/sd-utf8.h \
2725 src/systemd/sd-event.h \
2726 src/systemd/sd-rtnl.h \
2727 src/systemd/sd-resolve.h \
2728 src/systemd/sd-path.h
2731 lib_LTLIBRARIES += \
2736 test-bus-signature \
2742 test-bus-kernel-bloom \
2743 test-bus-kernel-benchmark \
2744 test-bus-zero-copy \
2745 test-bus-introspect \
2757 test_bus_marshal_SOURCES = \
2758 src/libsystemd/sd-bus/test-bus-marshal.c
2760 test_bus_marshal_LDADD = \
2761 libsystemd-internal.la \
2762 libsystemd-shared.la \
2763 libsystemd-dump.la \
2764 libsystemd-capability.la \
2769 test_bus_marshal_CFLAGS = \
2775 test_bus_signature_SOURCES = \
2776 src/libsystemd/sd-bus/test-bus-signature.c
2778 test_bus_signature_LDADD = \
2779 libsystemd-shared.la \
2780 libsystemd-internal.la
2782 test_bus_chat_SOURCES = \
2783 src/libsystemd/sd-bus/test-bus-chat.c
2785 test_bus_chat_CFLAGS = \
2789 test_bus_chat_LDADD = \
2790 libsystemd-internal.la \
2791 libsystemd-shared.la
2793 test_bus_cleanup_SOURCES = \
2794 src/libsystemd/sd-bus/test-bus-cleanup.c
2796 test_bus_cleanup_CFLAGS = \
2800 test_bus_cleanup_LDADD = \
2801 libsystemd-internal.la \
2802 libsystemd-shared.la
2804 test_bus_server_SOURCES = \
2805 src/libsystemd/sd-bus/test-bus-server.c
2807 test_bus_server_CFLAGS = \
2811 test_bus_server_LDADD = \
2812 libsystemd-internal.la \
2813 libsystemd-shared.la
2815 test_bus_objects_SOURCES = \
2816 src/libsystemd/sd-bus/test-bus-objects.c
2818 test_bus_objects_CFLAGS = \
2823 test_bus_objects_LDADD = \
2824 libsystemd-internal.la \
2825 libsystemd-shared.la \
2826 libsystemd-dump.la \
2827 libsystemd-capability.la \
2830 test_bus_error_SOURCES = \
2831 src/libsystemd/sd-bus/test-bus-error.c
2833 test_bus_error_LDADD = \
2834 libsystemd-internal.la \
2835 libsystemd-shared.la
2837 test_bus_gvariant_SOURCES = \
2838 src/libsystemd/sd-bus/test-bus-gvariant.c
2840 test_bus_gvariant_LDADD = \
2841 libsystemd-internal.la \
2842 libsystemd-shared.la \
2843 libsystemd-dump.la \
2844 libsystemd-capability.la \
2848 test_bus_gvariant_CFLAGS = \
2853 test_bus_creds_SOURCES = \
2854 src/libsystemd/sd-bus/test-bus-creds.c
2856 test_bus_creds_LDADD = \
2857 libsystemd-internal.la \
2858 libsystemd-shared.la \
2859 libsystemd-dump.la \
2860 libsystemd-capability.la
2862 test_bus_match_SOURCES = \
2863 src/libsystemd/sd-bus/test-bus-match.c
2865 test_bus_match_LDADD = \
2866 libsystemd-internal.la \
2867 libsystemd-shared.la
2869 test_bus_kernel_SOURCES = \
2870 src/libsystemd/sd-bus/test-bus-kernel.c
2872 test_bus_kernel_LDADD = \
2873 libsystemd-internal.la \
2874 libsystemd-shared.la \
2875 libsystemd-dump.la \
2876 libsystemd-capability.la \
2879 test_bus_kernel_CFLAGS = \
2883 test_bus_kernel_bloom_SOURCES = \
2884 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
2886 test_bus_kernel_bloom_LDADD = \
2887 libsystemd-internal.la \
2888 libsystemd-shared.la
2890 test_bus_kernel_benchmark_SOURCES = \
2891 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
2893 test_bus_kernel_benchmark_LDADD = \
2894 libsystemd-internal.la \
2895 libsystemd-shared.la
2897 test_bus_zero_copy_SOURCES = \
2898 src/libsystemd/sd-bus/test-bus-zero-copy.c
2900 test_bus_zero_copy_LDADD = \
2901 libsystemd-internal.la \
2902 libsystemd-shared.la \
2903 libsystemd-dump.la \
2904 libsystemd-capability.la \
2907 test_bus_zero_copy_CFLAGS = \
2911 test_bus_introspect_SOURCES = \
2912 src/libsystemd/sd-bus/test-bus-introspect.c
2914 test_bus_introspect_LDADD = \
2915 libsystemd-internal.la \
2916 libsystemd-shared.la
2918 test_event_SOURCES = \
2919 src/libsystemd/sd-event/test-event.c
2921 test_event_LDADD = \
2922 libsystemd-internal.la \
2923 libsystemd-shared.la
2925 test_rtnl_SOURCES = \
2926 src/libsystemd/sd-rtnl/test-rtnl.c
2929 libsystemd-internal.la \
2930 libsystemd-shared.la
2932 test_resolve_SOURCES = \
2933 src/libsystemd/sd-resolve/test-resolve.c
2935 test_resolve_LDADD = \
2936 libsystemd-resolve.la \
2937 libsystemd-internal.la \
2938 libsystemd-shared.la
2940 test_resolve_CFLAGS = \
2945 src/libsystemd/sd-bus/busctl.c
2948 libsystemd-internal.la \
2949 libsystemd-shared.la \
2950 libsystemd-dump.la \
2951 libsystemd-capability.la \
2958 # ------------------------------------------------------------------------------
2959 noinst_LTLIBRARIES += \
2960 libsystemd-network.la
2962 libsystemd_network_la_CFLAGS = \
2966 libsystemd_network_la_SOURCES = \
2967 src/systemd/sd-dhcp-client.h \
2968 src/systemd/sd-dhcp-server.h \
2969 src/systemd/sd-dhcp-lease.h \
2970 src/systemd/sd-ipv4ll.h \
2971 src/systemd/sd-icmp6-nd.h \
2972 src/systemd/sd-dhcp6-client.h \
2973 src/systemd/sd-dhcp6-lease.h \
2974 src/systemd/sd-pppoe.h \
2975 src/libsystemd-network/sd-dhcp-client.c \
2976 src/libsystemd-network/sd-dhcp-server.c \
2977 src/libsystemd-network/dhcp-network.c \
2978 src/libsystemd-network/dhcp-option.c \
2979 src/libsystemd-network/dhcp-packet.c \
2980 src/libsystemd-network/dhcp-internal.h \
2981 src/libsystemd-network/dhcp-server-internal.h \
2982 src/libsystemd-network/dhcp-protocol.h \
2983 src/libsystemd-network/dhcp-lease-internal.h \
2984 src/libsystemd-network/sd-dhcp-lease.c \
2985 src/libsystemd-network/sd-ipv4ll.c \
2986 src/libsystemd-network/ipv4ll-network.c \
2987 src/libsystemd-network/ipv4ll-packet.c \
2988 src/libsystemd-network/ipv4ll-internal.h \
2989 src/libsystemd-network/sd-pppoe.c \
2990 src/libsystemd-network/network-internal.c \
2991 src/libsystemd-network/network-internal.h \
2992 src/libsystemd-network/sd-icmp6-nd.c \
2993 src/libsystemd-network/sd-dhcp6-client.c \
2994 src/libsystemd-network/dhcp6-internal.h \
2995 src/libsystemd-network/dhcp6-protocol.h \
2996 src/libsystemd-network/dhcp6-network.c \
2997 src/libsystemd-network/dhcp6-option.c \
2998 src/libsystemd-network/dhcp6-lease-internal.h \
2999 src/libsystemd-network/sd-dhcp6-lease.c
3001 libsystemd_network_la_LIBADD = \
3002 libudev-internal.la \
3003 libsystemd-label.la \
3004 libsystemd-internal.la \
3005 libsystemd-shared.la \
3008 test_dhcp_option_SOURCES = \
3009 src/libsystemd-network/dhcp-protocol.h \
3010 src/libsystemd-network/dhcp-internal.h \
3011 src/libsystemd-network/test-dhcp-option.c
3013 test_dhcp_option_LDADD = \
3014 libsystemd-network.la \
3015 libsystemd-internal.la \
3016 libsystemd-shared.la
3018 test_dhcp_client_SOURCES = \
3019 src/systemd/sd-dhcp-client.h \
3020 src/libsystemd-network/dhcp-protocol.h \
3021 src/libsystemd-network/dhcp-internal.h \
3022 src/libsystemd-network/test-dhcp-client.c
3024 test_dhcp_client_LDADD = \
3025 libsystemd-network.la \
3026 libsystemd-label.la \
3027 libsystemd-internal.la \
3028 libsystemd-shared.la
3030 test_dhcp_server_SOURCES = \
3031 src/libsystemd-network/test-dhcp-server.c
3033 test_dhcp_server_LDADD = \
3034 libsystemd-network.la \
3035 libsystemd-internal.la \
3036 libsystemd-shared.la
3038 test_ipv4ll_SOURCES = \
3039 src/systemd/sd-ipv4ll.h \
3040 src/libsystemd-network/ipv4ll-internal.h \
3041 src/libsystemd-network/test-ipv4ll.c
3043 test_ipv4ll_LDADD = \
3044 libsystemd-network.la \
3045 libsystemd-label.la \
3046 libsystemd-internal.la \
3047 libsystemd-shared.la
3049 test_pppoe_SOURCES = \
3050 src/systemd/sd-pppoe.h \
3051 src/libsystemd-network/test-pppoe.c
3053 test_pppoe_LDADD = \
3054 libsystemd-network.la \
3055 libsystemd-shared.la
3057 test_icmp6_rs_SOURCES = \
3058 src/systemd/sd-dhcp6-client.h \
3059 src/systemd/sd-icmp6-nd.h \
3060 src/libsystemd-network/dhcp6-internal.h \
3061 src/libsystemd-network/test-icmp6-rs.c
3063 test_icmp6_rs_LDADD = \
3064 libsystemd-network.la \
3065 libsystemd-internal.la \
3066 libsystemd-shared.la
3068 test_dhcp6_client_SOURCES = \
3069 src/systemd/sd-dhcp6-client.h \
3070 src/libsystemd-network/dhcp6-internal.h \
3071 src/libsystemd-network/test-dhcp6-client.c
3073 test_dhcp6_client_LDADD = \
3074 libsystemd-network.la \
3075 libsystemd-internal.la \
3076 libsystemd-shared.la
3089 # ------------------------------------------------------------------------------
3091 noinst_LTLIBRARIES += \
3092 libsystemd-terminal.la
3094 rootlibexec_PROGRAMS += \
3097 noinst_PROGRAMS += \
3102 dist_pkgdata_DATA += \
3103 src/libsystemd-terminal/unifont-glyph-array.bin
3105 nodist_userunit_DATA += \
3106 units/user/systemd-consoled.service
3108 USER_DEFAULT_TARGET_WANTS += \
3109 systemd-consoled.service
3112 units/user/systemd-consoled.service.in
3120 libsystemd_terminal_la_CFLAGS = \
3124 libsystemd_terminal_la_SOURCES = \
3125 src/libsystemd-terminal/grdev.h \
3126 src/libsystemd-terminal/grdev-internal.h \
3127 src/libsystemd-terminal/grdev.c \
3128 src/libsystemd-terminal/grdev-drm.c \
3129 src/libsystemd-terminal/idev.h \
3130 src/libsystemd-terminal/idev-internal.h \
3131 src/libsystemd-terminal/idev.c \
3132 src/libsystemd-terminal/idev-evdev.c \
3133 src/libsystemd-terminal/idev-keyboard.c \
3134 src/libsystemd-terminal/sysview.h \
3135 src/libsystemd-terminal/sysview-internal.h \
3136 src/libsystemd-terminal/sysview.c \
3137 src/libsystemd-terminal/term.h \
3138 src/libsystemd-terminal/term-internal.h \
3139 src/libsystemd-terminal/term-charset.c \
3140 src/libsystemd-terminal/term-page.c \
3141 src/libsystemd-terminal/term-parser.c \
3142 src/libsystemd-terminal/term-screen.c \
3143 src/libsystemd-terminal/term-wcwidth.c \
3144 src/libsystemd-terminal/unifont.h \
3145 src/libsystemd-terminal/unifont-def.h \
3146 src/libsystemd-terminal/unifont.c
3148 libsystemd_terminal_la_LIBADD = \
3149 libudev-internal.la \
3150 libsystemd-internal.la \
3151 libsystemd-shared.la \
3154 systemd_consoled_CFLAGS = \
3158 systemd_consoled_SOURCES = \
3159 src/console/consoled.h \
3160 src/console/consoled.c \
3161 src/console/consoled-display.c \
3162 src/console/consoled-manager.c \
3163 src/console/consoled-session.c \
3164 src/console/consoled-terminal.c \
3165 src/console/consoled-workspace.c
3167 systemd_consoled_LDADD = \
3168 libsystemd-terminal.la \
3169 libsystemd-internal.la \
3170 libsystemd-shared.la \
3173 systemd_evcat_CFLAGS = \
3177 systemd_evcat_SOURCES = \
3178 src/libsystemd-terminal/evcat.c
3180 systemd_evcat_LDADD = \
3181 libsystemd-terminal.la \
3182 libsystemd-internal.la \
3183 libsystemd-shared.la \
3186 systemd_modeset_CFLAGS = \
3190 systemd_modeset_SOURCES = \
3191 src/libsystemd-terminal/modeset.c
3193 systemd_modeset_LDADD = \
3194 libsystemd-terminal.la \
3195 libsystemd-internal.la \
3196 libsystemd-shared.la \
3199 systemd_subterm_SOURCES = \
3200 src/libsystemd-terminal/subterm.c
3202 systemd_subterm_LDADD = \
3203 libsystemd-terminal.la \
3204 libsystemd-internal.la \
3205 libsystemd-shared.la
3207 test_term_page_SOURCES = \
3208 src/libsystemd-terminal/test-term-page.c
3210 test_term_page_LDADD = \
3211 libsystemd-terminal.la \
3212 libsystemd-internal.la \
3213 libsystemd-shared.la
3215 test_term_parser_SOURCES = \
3216 src/libsystemd-terminal/test-term-parser.c
3218 test_term_parser_LDADD = \
3219 libsystemd-terminal.la \
3220 libsystemd-internal.la \
3221 libsystemd-shared.la
3223 test_unifont_SOURCES = \
3224 src/libsystemd-terminal/test-unifont.c
3226 test_unifont_LDADD = \
3227 libsystemd-terminal.la \
3228 libsystemd-internal.la \
3229 libsystemd-shared.la
3231 .PHONY: update-unifont
3232 update-unifont: tools/compile-unifont.py
3233 $(AM_V_GEN)$(PYTHON) $< \
3234 <$(top_srcdir)/src/libsystemd-terminal/unifont.hex \
3235 >$(top_srcdir)/src/libsystemd-terminal/unifont-glyph-array.bin
3236 @echo "unifont-glyph-array.bin has been regenerated"
3238 # ------------------------------------------------------------------------------
3248 include_HEADERS += \
3249 src/libudev/libudev.h
3251 lib_LTLIBRARIES += \
3254 libudev_la_SOURCES =\
3255 src/libudev/libudev.sym \
3256 src/libudev/libudev-private.h \
3257 src/libudev/libudev.c \
3258 src/libudev/libudev-list.c \
3259 src/libudev/libudev-util.c \
3260 src/libudev/libudev-device.c \
3261 src/libudev/libudev-enumerate.c \
3262 src/libudev/libudev-monitor.c \
3263 src/libudev/libudev-queue.c \
3264 src/libudev/libudev-hwdb-def.h \
3265 src/libudev/libudev-hwdb.c
3267 libudev_la_CFLAGS = \
3271 libudev_la_LDFLAGS = \
3273 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3274 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3276 libudev_la_LIBADD = \
3277 libsystemd-internal.la \
3278 libsystemd-shared.la
3280 pkgconfiglib_DATA += \
3281 src/libudev/libudev.pc
3284 src/libudev/libudev.pc.in
3287 src/libudev/libudev.pc \
3292 $(AM_V_at)$(MKDIR_P) $(dir $@)
3293 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
3296 $(AM_V_at)$(MKDIR_P) $(dir $@)
3297 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
3299 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3300 libudev-install-hook:
3301 libname=libudev.so && $(move-to-rootlibdir)
3303 libudev-uninstall-hook:
3304 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3306 INSTALL_EXEC_HOOKS += libudev-install-hook
3307 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3309 # ------------------------------------------------------------------------------
3310 noinst_LTLIBRARIES += \
3313 libudev_internal_la_SOURCES =\
3314 $(libudev_la_SOURCES) \
3315 src/libudev/libudev-device-private.c
3317 libudev_internal_la_CFLAGS = \
3319 -fvisibility=default
3321 # ------------------------------------------------------------------------------
3323 $(sysconfdir)/udev/rules.d \
3324 $(sysconfdir)/udev/hwdb.d
3326 dist_network_DATA = \
3327 network/99-default.link \
3328 network/80-container-host0.network \
3329 network/80-container-ve.network
3331 dist_udevrules_DATA += \
3332 rules/42-usb-hid-pm.rules \
3333 rules/50-udev-default.rules \
3334 rules/60-drm.rules \
3335 rules/60-keyboard.rules \
3336 rules/60-persistent-storage-tape.rules \
3337 rules/60-persistent-serial.rules \
3338 rules/60-persistent-input.rules \
3339 rules/60-persistent-alsa.rules \
3340 rules/60-persistent-storage.rules \
3341 rules/64-btrfs.rules \
3342 rules/75-net-description.rules \
3343 rules/75-tty-description.rules \
3344 rules/78-sound-card.rules \
3345 rules/80-net-setup-link.rules \
3346 rules/95-udev-late.rules
3348 nodist_udevrules_DATA += \
3349 rules/99-systemd.rules
3351 dist_udevhwdb_DATA = \
3352 hwdb/20-pci-vendor-model.hwdb \
3353 hwdb/20-pci-classes.hwdb \
3354 hwdb/20-usb-vendor-model.hwdb \
3355 hwdb/20-usb-classes.hwdb \
3356 hwdb/20-sdio-vendor-model.hwdb \
3357 hwdb/20-sdio-classes.hwdb \
3358 hwdb/20-bluetooth-vendor-product.hwdb \
3359 hwdb/20-acpi-vendor.hwdb \
3361 hwdb/20-net-ifname.hwdb \
3362 hwdb/60-keyboard.hwdb
3364 udevconfdir = $(sysconfdir)/udev
3365 dist_udevconf_DATA = \
3368 sharepkgconfigdir = $(datadir)/pkgconfig
3369 sharepkgconfig_DATA = \
3373 rules/99-systemd.rules.in \
3377 rules/99-systemd.rules \
3381 units/systemd-udevd.service.in \
3382 units/systemd-udev-trigger.service.in \
3383 units/systemd-udev-settle.service.in \
3384 units/systemd-udev-hwdb-update.service.in
3387 units/systemd-udevd.service \
3388 units/systemd-udev-trigger.service \
3389 units/systemd-udev-settle.service \
3390 units/systemd-udev-hwdb-update.service
3392 SOCKETS_TARGET_WANTS += \
3393 systemd-udevd-control.socket \
3394 systemd-udevd-kernel.socket
3396 SYSINIT_TARGET_WANTS += \
3397 systemd-udevd.service \
3398 systemd-udev-trigger.service \
3399 systemd-udev-hwdb-update.service
3401 rootbin_PROGRAMS += \
3404 rootlibexec_PROGRAMS += \
3407 noinst_LTLIBRARIES += \
3410 src/udev/keyboard-keys.txt:
3411 $(AM_V_at)$(MKDIR_P) $(dir $@)
3412 $(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/' > $@
3414 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
3415 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3417 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3418 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3420 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
3421 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
3423 libudev_core_la_SOURCES = \
3425 src/udev/udev-event.c \
3426 src/udev/udev-watch.c \
3427 src/udev/udev-node.c \
3428 src/udev/udev-rules.c \
3429 src/udev/udev-ctrl.c \
3430 src/udev/udev-builtin.c \
3431 src/udev/udev-builtin-btrfs.c \
3432 src/udev/udev-builtin-hwdb.c \
3433 src/udev/udev-builtin-input_id.c \
3434 src/udev/udev-builtin-keyboard.c \
3435 src/udev/udev-builtin-net_id.c \
3436 src/udev/udev-builtin-net_setup_link.c \
3437 src/udev/udev-builtin-path_id.c \
3438 src/udev/udev-builtin-usb_id.c \
3439 src/udev/net/link-config.h \
3440 src/udev/net/link-config.c \
3441 src/udev/net/ethtool-util.h \
3442 src/udev/net/ethtool-util.c
3444 nodist_libudev_core_la_SOURCES = \
3445 src/udev/keyboard-keys-from-name.h \
3446 src/udev/keyboard-keys-to-name.h \
3447 src/udev/net/link-config-gperf.c
3450 $(nodist_libudev_core_la_SOURCES)
3453 src/udev/keyboard-keys-from-name.gperf \
3454 src/udev/keyboard-keys.txt \
3455 src/udev/net/link-config-gperf.c
3458 src/udev/net/link-config-gperf.gperf
3460 libudev_core_la_CFLAGS = \
3465 libudev_core_la_LIBADD = \
3466 libudev-internal.la \
3467 libsystemd-label.la \
3468 libsystemd-internal.la \
3469 libsystemd-network.la \
3470 libsystemd-shared.la \
3475 libudev_core_la_SOURCES += \
3476 src/udev/udev-builtin-kmod.c
3478 dist_udevrules_DATA += \
3479 rules/80-drivers.rules
3483 libudev_core_la_SOURCES += \
3484 src/udev/udev-builtin-blkid.c
3488 libudev_core_la_SOURCES += \
3489 src/udev/udev-builtin-uaccess.c \
3490 src/login/logind-acl.c \
3491 src/libsystemd/sd-login/sd-login.c \
3492 src/systemd/sd-login.h
3494 libudev_core_la_LIBADD += \
3498 systemd_udevd_SOURCES = \
3501 systemd_udevd_LDADD = \
3503 libsystemd-capability.la
3506 src/udev/udevadm.c \
3507 src/udev/udevadm-info.c \
3508 src/udev/udevadm-control.c \
3509 src/udev/udevadm-monitor.c \
3510 src/udev/udevadm-hwdb.c \
3511 src/udev/udevadm-settle.c \
3512 src/udev/udevadm-trigger.c \
3513 src/udev/udevadm-test.c \
3514 src/udev/udevadm-test-builtin.c
3518 libsystemd-capability.la
3520 # Update hwdb on installation. Do not bother if installing
3521 # in DESTDIR, since this is likely for packaging purposes.
3523 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
3525 INSTALL_DATA_HOOKS += \
3529 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3531 # ------------------------------------------------------------------------------
3540 test_libudev_SOURCES = \
3541 src/test/test-libudev.c
3543 test_libudev_LDADD = \
3544 libsystemd-label.la \
3545 libudev-internal.la \
3546 libsystemd-shared.la
3548 test_udev_SOURCES = \
3549 src/test/test-udev.c
3553 libsystemd-capability.la \
3559 test_udev_LDADD += \
3566 # packed sysfs test tree
3568 $(AM_V_at)$(MKDIR_P) $(dir $@)
3569 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3573 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3578 test/rules-test.sh \
3579 test/rule-syntax-check.py
3581 # ------------------------------------------------------------------------------
3583 src/udev/ata_id/ata_id.c
3586 libudev-internal.la \
3587 libsystemd-shared.la
3589 udevlibexec_PROGRAMS += \
3592 # ------------------------------------------------------------------------------
3593 cdrom_id_SOURCES = \
3594 src/udev/cdrom_id/cdrom_id.c
3597 libudev-internal.la \
3598 libsystemd-shared.la
3600 udevlibexec_PROGRAMS += \
3603 dist_udevrules_DATA += \
3604 rules/60-cdrom_id.rules
3606 # ------------------------------------------------------------------------------
3608 src/udev/collect/collect.c
3611 libudev-internal.la \
3612 libsystemd-shared.la
3614 udevlibexec_PROGRAMS += \
3617 # ------------------------------------------------------------------------------
3619 src/udev/scsi_id/scsi_id.c \
3620 src/udev/scsi_id/scsi_serial.c \
3621 src/udev/scsi_id/scsi.h \
3622 src/udev/scsi_id/scsi_id.h
3625 libudev-internal.la \
3626 libsystemd-shared.la
3628 udevlibexec_PROGRAMS += \
3632 src/udev/scsi_id/README
3634 # ------------------------------------------------------------------------------
3636 src/udev/v4l_id/v4l_id.c
3641 udevlibexec_PROGRAMS += \
3644 dist_udevrules_DATA += \
3645 rules/60-persistent-v4l.rules
3647 # ------------------------------------------------------------------------------
3648 accelerometer_SOURCES = \
3649 src/udev/accelerometer/accelerometer.c
3651 accelerometer_LDADD = \
3652 libudev-internal.la -lm \
3653 libsystemd-shared.la
3655 udevlibexec_PROGRAMS += \
3658 dist_udevrules_DATA += \
3659 rules/61-accelerometer.rules
3661 # ------------------------------------------------------------------------------
3668 libgudev_includedir = \
3669 $(includedir)/gudev-1.0/gudev
3671 libgudev_include_HEADERS = \
3673 src/gudev/gudevenums.h \
3674 src/gudev/gudevenumtypes.h \
3675 src/gudev/gudevtypes.h \
3676 src/gudev/gudevclient.h \
3677 src/gudev/gudevdevice.h \
3678 src/gudev/gudevenumerator.h
3680 lib_LTLIBRARIES += libgudev-1.0.la
3682 pkgconfiglib_DATA += \
3683 src/gudev/gudev-1.0.pc
3686 src/gudev/gudev-1.0.pc
3688 libgudev_1_0_la_SOURCES = \
3689 src/gudev/libgudev-1.0.sym \
3690 src/gudev/gudevenums.h \
3691 src/gudev/gudevenumtypes.h \
3692 src/gudev/gudevenumtypes.h\
3693 src/gudev/gudevtypes.h \
3694 src/gudev/gudevclient.h \
3695 src/gudev/gudevclient.c \
3696 src/gudev/gudevdevice.h \
3697 src/gudev/gudevdevice.c \
3698 src/gudev/gudevenumerator.h \
3699 src/gudev/gudevenumerator.c \
3700 src/gudev/gudevprivate.h
3702 nodist_libgudev_1_0_la_SOURCES = \
3703 src/gudev/gudevmarshal.h \
3704 src/gudev/gudevmarshal.c \
3705 src/gudev/gudevenumtypes.h \
3706 src/gudev/gudevenumtypes.c
3709 $(nodist_libgudev_1_0_la_SOURCES)
3711 libgudev_1_0_la_CPPFLAGS = \
3713 -I$(top_builddir)/src\
3714 -I$(top_srcdir)/src\
3715 -I$(top_builddir)/src/gudev \
3716 -I$(top_srcdir)/src/gudev \
3717 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3718 -D_GUDEV_COMPILATION \
3719 -DG_LOG_DOMAIN=\"GUdev\"
3721 libgudev_1_0_la_CFLAGS = \
3723 -fvisibility=default \
3726 libgudev_1_0_la_LIBADD = \
3730 libgudev_1_0_la_LDFLAGS = \
3732 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3735 -Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym
3737 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3738 $(AM_V_at)$(MKDIR_P) $(dir $@)
3739 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3741 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3742 $(AM_V_at)$(MKDIR_P) $(dir $@)
3743 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3744 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3746 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3747 $(AM_V_at)$(MKDIR_P) $(dir $@)
3748 $(AM_V_GEN)glib-mkenums --template $^ > $@
3750 if HAVE_INTROSPECTION
3751 -include $(INTROSPECTION_MAKEFILE)
3753 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3755 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3757 src_gudev_GUdev_1_0_gir_CFLAGS = \
3760 -D_GUDEV_COMPILATION \
3761 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3762 -I$(top_srcdir)/src \
3763 -I$(top_builddir)/src \
3764 -I$(top_srcdir)/src/gudev \
3765 -I$(top_builddir)/src/gudev
3767 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
3769 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
3770 --pkg-export=gudev-1.0 \
3773 src_gudev_GUdev_1_0_gir_FILES = \
3775 src/gudev/gudevtypes.h \
3776 src/gudev/gudevenums.h \
3777 src/gudev/gudevenumtypes.h \
3778 src/gudev/gudevclient.h \
3779 src/gudev/gudevdevice.h \
3780 src/gudev/gudevenumerator.h \
3781 src/gudev/gudevclient.c \
3782 src/gudev/gudevdevice.c \
3783 src/gudev/gudevenumerator.c
3785 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
3786 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
3788 girdir = $(datadir)/gir-1.0
3790 src/gudev/GUdev-1.0.gir
3792 typelibsdir = $(libdir)/girepository-1.0
3794 src/gudev/GUdev-1.0.typelib
3796 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
3797 endif # HAVE_INTROSPECTION
3801 src/gudev/gudev-1.0.pc.in \
3802 src/gudev/gudevmarshal.list \
3803 src/gudev/gudevenumtypes.h.template \
3804 src/gudev/gudevenumtypes.c.template \
3805 src/gudev/gjs-example.js \
3806 src/gudev/seed-example-enum.js \
3807 src/gudev/seed-example.js
3809 # ------------------------------------------------------------------------------
3810 mtd_probe_SOURCES = \
3811 src/udev/mtd_probe/mtd_probe.c \
3812 src/udev/mtd_probe/mtd_probe.h \
3813 src/udev/mtd_probe/probe_smartmedia.c
3815 dist_udevrules_DATA += \
3816 rules/75-probe_mtd.rules
3818 udevlibexec_PROGRAMS += \
3821 # ------------------------------------------------------------------------------
3822 test_id128_SOURCES = \
3823 src/test/test-id128.c
3825 test_id128_LDADD = \
3826 libsystemd-internal.la \
3827 libsystemd-shared.la
3832 # ------------------------------------------------------------------------------
3834 rootlibexec_PROGRAMS += \
3837 systemd_activate_SOURCES = \
3838 src/activate/activate.c
3840 systemd_activate_LDADD = \
3841 libsystemd-label.la \
3842 libsystemd-internal.la \
3843 libsystemd-shared.la
3845 # ------------------------------------------------------------------------------
3846 systemd_journald_SOURCES = \
3847 src/journal/journald.c \
3848 src/journal/journald-server.h
3850 systemd_journald_LDADD = \
3851 libsystemd-journal-core.la \
3852 libsystemd-internal.la \
3853 libsystemd-shared.la
3855 systemd_cat_SOURCES = \
3858 systemd_cat_LDADD = \
3859 libsystemd-journal-core.la
3862 rootlibexec_PROGRAMS += \
3863 systemd-journal-remote
3865 systemd_journal_remote_SOURCES = \
3866 src/journal-remote/journal-remote-parse.h \
3867 src/journal-remote/journal-remote-parse.c \
3868 src/journal-remote/journal-remote-write.h \
3869 src/journal-remote/journal-remote-write.c \
3870 src/journal-remote/journal-remote.h \
3871 src/journal-remote/journal-remote.c
3873 systemd_journal_remote_LDADD = \
3874 libsystemd-internal.la \
3875 libsystemd-journal-core.la
3877 systemd_journal_remote_SOURCES += \
3878 src/journal-remote/microhttpd-util.h \
3879 src/journal-remote/microhttpd-util.c
3881 systemd_journal_remote_CFLAGS = \
3883 $(MICROHTTPD_CFLAGS)
3885 systemd_journal_remote_LDADD += \
3889 systemd_journal_remote_LDADD += \
3892 # systemd-journal-remote make sense mostly with full crypto stack
3893 dist_systemunit_DATA += \
3894 units/systemd-journal-remote.socket
3896 nodist_systemunit_DATA += \
3897 units/systemd-journal-remote.service
3900 units/systemd-journal-remote.service.in
3902 journal-remote-install-hook: journal-install-hook
3903 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
3904 -chown 0:0 $(DESTDIR)/var/log/journal/remote
3905 -chmod 755 $(DESTDIR)/var/log/journal/remote
3907 INSTALL_EXEC_HOOKS += journal-remote-install-hook
3911 nodist_pkgsysconf_DATA += \
3912 src/journal-remote/journal-remote.conf
3915 src/journal-remote/journal-remote.conf.in
3918 src/journal-remote/journal-remote.conf
3922 rootlibexec_PROGRAMS += \
3923 systemd-journal-upload
3925 systemd_journal_upload_SOURCES = \
3926 src/journal-remote/journal-upload.h \
3927 src/journal-remote/journal-upload.c \
3928 src/journal-remote/journal-upload-journal.c
3930 systemd_journal_upload_CFLAGS = \
3934 systemd_journal_upload_LDADD = \
3935 libsystemd-internal.la \
3936 libsystemd-journal-internal.la \
3937 libsystemd-shared.la \
3940 nodist_systemunit_DATA += \
3941 units/systemd-journal-upload.service
3944 units/systemd-journal-upload.service.in
3946 nodist_pkgsysconf_DATA += \
3947 src/journal-remote/journal-upload.conf
3950 src/journal-remote/journal-upload.conf.in
3953 src/journal-remote/journal-upload.conf
3956 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3957 journalctl_CFLAGS = \
3960 journalctl_SOURCES = \
3961 src/journal/journalctl.c
3963 journalctl_LDADD = \
3964 libsystemd-journal-internal.la \
3965 libsystemd-internal.la \
3966 libsystemd-logs.la \
3967 libsystemd-shared.la
3970 journalctl_LDADD += \
3975 journalctl_SOURCES += \
3976 src/journal/journal-qrcode.c \
3977 src/journal/journal-qrcode.h
3979 journalctl_CFLAGS += \
3982 journalctl_LDADD += \
3986 test_journal_SOURCES = \
3987 src/journal/test-journal.c
3989 test_journal_LDADD = \
3990 libsystemd-journal-core.la
3992 test_journal_send_SOURCES = \
3993 src/journal/test-journal-send.c
3995 test_journal_send_LDADD = \
3996 libsystemd-journal-core.la
3998 test_journal_syslog_SOURCES = \
3999 src/journal/test-journal-syslog.c
4001 test_journal_syslog_LDADD = \
4002 libsystemd-journal-core.la
4004 test_journal_match_SOURCES = \
4005 src/journal/test-journal-match.c
4007 test_journal_match_LDADD = \
4008 libsystemd-journal-core.la
4010 test_journal_enum_SOURCES = \
4011 src/journal/test-journal-enum.c
4013 test_journal_enum_LDADD = \
4014 libsystemd-journal-core.la
4016 test_journal_stream_SOURCES = \
4017 src/journal/test-journal-stream.c
4019 test_journal_stream_LDADD = \
4020 libsystemd-journal-core.la
4022 test_journal_flush_SOURCES = \
4023 src/journal/test-journal-flush.c
4025 test_journal_flush_LDADD = \
4026 libsystemd-journal-core.la
4028 test_journal_init_SOURCES = \
4029 src/journal/test-journal-init.c
4031 test_journal_init_LDADD = \
4032 libsystemd-journal-core.la
4034 test_journal_verify_SOURCES = \
4035 src/journal/test-journal-verify.c
4037 test_journal_verify_LDADD = \
4038 libsystemd-journal-core.la
4040 test_journal_interleaving_SOURCES = \
4041 src/journal/test-journal-interleaving.c
4043 test_journal_interleaving_LDADD = \
4044 libsystemd-journal-core.la
4046 test_mmap_cache_SOURCES = \
4047 src/journal/test-mmap-cache.c
4049 test_mmap_cache_LDADD = \
4050 libsystemd-journal-core.la
4052 test_catalog_SOURCES = \
4053 src/journal/test-catalog.c
4055 test_catalog_CPPFLAGS = \
4057 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
4059 test_catalog_LDADD = \
4060 libsystemd-journal-core.la
4062 test_compress_SOURCES = \
4063 src/journal/test-compress.c
4065 test_compress_LDADD = \
4066 libsystemd-journal-internal.la \
4067 libsystemd-shared.la
4069 test_compress_benchmark_SOURCES = \
4070 src/journal/test-compress-benchmark.c
4072 test_compress_benchmark_LDADD = \
4073 libsystemd-journal-internal.la \
4074 libsystemd-shared.la
4076 libsystemd_journal_core_la_SOURCES = \
4077 src/journal/journald-kmsg.c \
4078 src/journal/journald-kmsg.h \
4079 src/journal/journald-syslog.c \
4080 src/journal/journald-syslog.h \
4081 src/journal/journald-stream.c \
4082 src/journal/journald-stream.h \
4083 src/journal/journald-server.c \
4084 src/journal/journald-server.h \
4085 src/journal/journald-console.c \
4086 src/journal/journald-console.h \
4087 src/journal/journald-wall.c \
4088 src/journal/journald-wall.h \
4089 src/journal/journald-native.c \
4090 src/journal/journald-native.h \
4091 src/journal/journald-audit.c \
4092 src/journal/journald-audit.h \
4093 src/journal/journald-rate-limit.c \
4094 src/journal/journald-rate-limit.h \
4095 src/journal/journal-internal.h
4097 nodist_libsystemd_journal_core_la_SOURCES = \
4098 src/journal/journald-gperf.c
4100 libsystemd_journal_core_la_LIBADD = \
4101 libsystemd-journal-internal.la \
4102 libudev-internal.la \
4103 libsystemd-capability.la \
4104 libsystemd-label.la \
4105 libsystemd-internal.la \
4106 libsystemd-shared.la
4109 libsystemd_journal_core_la_LIBADD += \
4113 noinst_LTLIBRARIES += \
4114 libsystemd-journal-core.la
4116 journal-install-hook:
4117 -$(MKDIR_P) $(DESTDIR)/var/log/journal
4118 -chown 0:0 $(DESTDIR)/var/log/journal
4119 -chmod 755 $(DESTDIR)/var/log/journal
4120 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4121 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4123 journal-uninstall-hook:
4124 -rmdir $(DESTDIR)/var/log/journal/remote
4125 -rmdir $(DESTDIR)/var/log/journal/
4127 INSTALL_EXEC_HOOKS += journal-install-hook
4128 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4130 # ------------------------------------------------------------------------------
4131 # Update catalog on installation. Do not bother if installing
4132 # in DESTDIR, since this is likely for packaging purposes.
4133 catalog-update-hook:
4134 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4136 INSTALL_DATA_HOOKS += \
4139 catalog-remove-hook:
4140 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4142 UNINSTALL_DATA_HOOKS += \
4151 test-journal-syslog \
4152 test-journal-match \
4153 test-journal-stream \
4155 test-journal-verify \
4156 test-journal-interleaving \
4157 test-journal-flush \
4164 test-compress-benchmark
4167 pkginclude_HEADERS += \
4168 src/systemd/sd-journal.h \
4169 src/systemd/sd-messages.h \
4170 src/systemd/_sd-common.h
4172 libsystemd_journal_internal_la_SOURCES = \
4173 src/journal/sd-journal.c \
4174 src/systemd/sd-journal.h \
4175 src/systemd/_sd-common.h \
4176 src/journal/journal-file.c \
4177 src/journal/journal-file.h \
4178 src/journal/journal-vacuum.c \
4179 src/journal/journal-vacuum.h \
4180 src/journal/journal-verify.c \
4181 src/journal/journal-verify.h \
4182 src/journal/lookup3.c \
4183 src/journal/lookup3.h \
4184 src/journal/journal-send.c \
4185 src/journal/journal-def.h \
4186 src/journal/compress.h \
4187 src/journal/catalog.c \
4188 src/journal/catalog.h \
4189 src/journal/mmap-cache.c \
4190 src/journal/mmap-cache.h
4192 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4193 libsystemd_journal_internal_la_CFLAGS = \
4196 libsystemd_journal_internal_la_LIBADD =
4198 libsystemd_journal_internal_la_SOURCES += \
4199 src/journal/compress.c
4202 libsystemd_journal_internal_la_CFLAGS += \
4205 libsystemd_journal_internal_la_LIBADD += \
4210 libsystemd_journal_internal_la_LIBADD += \
4215 libsystemd_journal_internal_la_SOURCES += \
4216 src/journal/journal-authenticate.c \
4217 src/journal/journal-authenticate.h \
4218 src/journal/fsprg.c \
4221 libsystemd_journal_internal_la_LIBADD += \
4224 # fsprg.c is a drop-in file using void pointer arithmetic
4225 libsystemd_journal_internal_la_CFLAGS += \
4230 noinst_LTLIBRARIES += \
4231 libsystemd-journal-internal.la
4233 rootlibexec_PROGRAMS += \
4236 rootbin_PROGRAMS += \
4242 dist_systemunit_DATA += \
4243 units/systemd-journald.socket \
4244 units/systemd-journald-dev-log.socket \
4245 units/systemd-journald-audit.socket
4247 nodist_systemunit_DATA += \
4248 units/systemd-journald.service \
4249 units/systemd-journal-flush.service \
4250 units/systemd-journal-catalog-update.service
4252 dist_pkgsysconf_DATA += \
4253 src/journal/journald.conf
4255 dist_catalog_DATA = \
4256 catalog/systemd.fr.catalog \
4257 catalog/systemd.it.catalog \
4258 catalog/systemd.pl.catalog \
4259 catalog/systemd.ru.catalog \
4260 catalog/systemd.catalog
4262 SOCKETS_TARGET_WANTS += \
4263 systemd-journald.socket \
4264 systemd-journald-dev-log.socket \
4265 systemd-journald-audit.socket
4267 SYSINIT_TARGET_WANTS += \
4268 systemd-journald.service \
4269 systemd-journal-flush.service \
4270 systemd-journal-catalog-update.service
4273 units/systemd-journald.service.in \
4274 units/systemd-journal-flush.service.in \
4275 units/systemd-journal-catalog-update.service.in \
4276 src/journal/journald-gperf.gperf
4279 src/journal/journald-gperf.c
4281 # ------------------------------------------------------------------------------
4283 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4285 rootlibexec_PROGRAMS += \
4286 systemd-journal-gatewayd
4288 systemd_journal_gatewayd_SOURCES = \
4289 src/journal-remote/journal-gatewayd.c \
4290 src/journal-remote/microhttpd-util.h \
4291 src/journal-remote/microhttpd-util.c
4293 systemd_journal_gatewayd_LDADD = \
4294 libsystemd-logs.la \
4295 libsystemd-journal-internal.la \
4296 libsystemd-internal.la \
4297 libsystemd-shared.la \
4301 systemd_journal_gatewayd_LDADD += \
4305 systemd_journal_gatewayd_CFLAGS = \
4307 $(MICROHTTPD_CFLAGS)
4309 systemd_journal_gatewayd_CPPFLAGS = \
4311 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4313 dist_systemunit_DATA += \
4314 units/systemd-journal-gatewayd.socket
4316 nodist_systemunit_DATA += \
4317 units/systemd-journal-gatewayd.service
4319 dist_gatewayddocumentroot_DATA = \
4320 src/journal-remote/browse.html
4325 units/systemd-journal-gatewayd.service.in
4327 # ------------------------------------------------------------------------------
4329 systemd_socket_proxyd_SOURCES = \
4330 src/socket-proxy/socket-proxyd.c
4332 systemd_socket_proxyd_LDADD = \
4333 libsystemd-logs.la \
4334 libsystemd-internal.la \
4335 libsystemd-journal-internal.la \
4336 libsystemd-shared.la \
4337 libsystemd-resolve.la
4339 # ------------------------------------------------------------------------------
4341 systemd_coredump_SOURCES = \
4342 src/journal/coredump.c \
4343 src/journal/coredump-vacuum.c \
4344 src/journal/coredump-vacuum.h
4346 systemd_coredump_LDADD = \
4347 libsystemd-journal-internal.la \
4348 libsystemd-label.la \
4349 libsystemd-internal.la \
4350 libsystemd-shared.la
4353 systemd_coredump_SOURCES += \
4354 src/journal/stacktrace.c \
4355 src/journal/stacktrace.h
4357 systemd_coredump_LDADD += \
4361 rootlibexec_PROGRAMS += \
4364 dist_pkgsysconf_DATA += \
4365 src/journal/coredump.conf
4368 systemd_coredump_LDADD += \
4372 coredumpctl_SOURCES = \
4373 src/journal/coredumpctl.c
4375 coredumpctl_LDADD = \
4376 libsystemd-journal-internal.la \
4377 libsystemd-internal.la \
4378 libsystemd-shared.la
4384 test-coredump-vacuum
4386 test_coredump_vacuum_SOURCES = \
4387 src/journal/test-coredump-vacuum.c \
4388 src/journal/coredump-vacuum.c \
4389 src/journal/coredump-vacuum.h
4391 test_coredump_vacuum_LDADD = \
4392 libsystemd-internal.la \
4393 libsystemd-shared.la
4395 dist_bashcompletion_DATA += \
4396 shell-completion/bash/coredumpctl
4398 dist_zshcompletion_DATA += \
4399 shell-completion/zsh/_coredumpctl
4402 sysctl.d/50-coredump.conf
4405 sysctl.d/50-coredump.conf
4409 sysctl.d/50-coredump.conf.in
4411 # ------------------------------------------------------------------------------
4413 systemd_binfmt_SOURCES = \
4416 systemd_binfmt_LDADD = \
4417 libsystemd-shared.la
4419 rootlibexec_PROGRAMS += \
4422 dist_systemunit_DATA += \
4423 units/proc-sys-fs-binfmt_misc.automount \
4424 units/proc-sys-fs-binfmt_misc.mount
4426 nodist_systemunit_DATA += \
4427 units/systemd-binfmt.service
4430 $(prefix)/lib/binfmt.d \
4431 $(sysconfdir)/binfmt.d
4433 SYSINIT_TARGET_WANTS += \
4434 systemd-binfmt.service \
4435 proc-sys-fs-binfmt_misc.automount
4440 units/systemd-binfmt.service.in
4442 # ------------------------------------------------------------------------------
4444 systemd_vconsole_setup_SOURCES = \
4445 src/vconsole/vconsole-setup.c
4447 systemd_vconsole_setup_LDADD = \
4448 libsystemd-shared.la
4450 rootlibexec_PROGRAMS += \
4451 systemd-vconsole-setup
4453 nodist_systemunit_DATA += \
4454 units/systemd-vconsole-setup.service
4456 dist_udevrules_DATA += \
4457 src/vconsole/90-vconsole.rules
4459 SYSINIT_TARGET_WANTS += \
4460 systemd-vconsole-setup.service
4464 units/systemd-vconsole-setup.service.in
4466 # ------------------------------------------------------------------------------
4468 systemd_bootchart_SOURCES = \
4469 src/bootchart/bootchart.c \
4470 src/bootchart/bootchart.h \
4471 src/bootchart/store.c \
4472 src/bootchart/store.h \
4473 src/bootchart/svg.c \
4476 systemd_bootchart_LDADD = \
4477 libsystemd-journal-internal.la \
4478 libsystemd-shared.la
4480 rootlibexec_PROGRAMS += \
4483 dist_pkgsysconf_DATA += \
4484 src/bootchart/bootchart.conf
4487 # ------------------------------------------------------------------------------
4488 if ENABLE_QUOTACHECK
4489 rootlibexec_PROGRAMS += \
4492 nodist_systemunit_DATA += \
4493 units/systemd-quotacheck.service
4495 systemd_quotacheck_SOURCES = \
4496 src/quotacheck/quotacheck.c
4498 systemd_quotacheck_LDADD = \
4499 libsystemd-shared.la
4503 units/systemd-quotacheck.service.in
4505 nodist_systemunit_DATA += \
4506 units/quotaon.service
4508 # ------------------------------------------------------------------------------
4509 if ENABLE_RANDOMSEED
4510 rootlibexec_PROGRAMS += \
4513 nodist_systemunit_DATA += \
4514 units/systemd-random-seed.service
4516 systemd_random_seed_SOURCES = \
4517 src/random-seed/random-seed.c
4519 systemd_random_seed_LDADD = \
4520 libsystemd-label.la \
4521 libsystemd-shared.la
4523 SYSINIT_TARGET_WANTS += \
4524 systemd-random-seed.service
4529 units/systemd-random-seed.service.in
4531 # ------------------------------------------------------------------------------
4533 rootlibexec_PROGRAMS += \
4536 nodist_systemunit_DATA += \
4537 units/systemd-backlight@.service
4539 systemd_backlight_SOURCES = \
4540 src/backlight/backlight.c
4542 systemd_backlight_LDADD = \
4543 libsystemd-label.la \
4544 libudev-internal.la \
4545 libsystemd-shared.la
4549 units/systemd-backlight@.service.in
4551 # ------------------------------------------------------------------------------
4553 rootlibexec_PROGRAMS += \
4556 nodist_systemunit_DATA += \
4557 units/systemd-rfkill@.service
4559 systemd_rfkill_SOURCES = \
4562 systemd_rfkill_LDADD = \
4563 libsystemd-label.la \
4564 libudev-internal.la \
4565 libsystemd-shared.la
4569 units/systemd-rfkill@.service.in
4571 # ------------------------------------------------------------------------------
4572 if HAVE_LIBCRYPTSETUP
4573 rootlibexec_PROGRAMS += \
4576 systemgenerator_PROGRAMS += \
4577 systemd-cryptsetup-generator
4579 dist_systemunit_DATA += \
4580 units/cryptsetup.target \
4581 units/cryptsetup-pre.target
4583 systemd_cryptsetup_SOURCES = \
4584 src/cryptsetup/cryptsetup.c
4586 systemd_cryptsetup_CFLAGS = \
4588 $(LIBCRYPTSETUP_CFLAGS)
4590 systemd_cryptsetup_LDADD = \
4591 libsystemd-label.la \
4592 libudev-internal.la \
4593 libsystemd-shared.la \
4594 $(LIBCRYPTSETUP_LIBS)
4596 systemd_cryptsetup_generator_SOURCES = \
4597 src/cryptsetup/cryptsetup-generator.c
4599 systemd_cryptsetup_generator_LDADD = \
4600 libsystemd-label.la \
4601 libsystemd-shared.la
4603 SYSINIT_TARGET_WANTS += \
4608 # ------------------------------------------------------------------------------
4610 systemd_hostnamed_SOURCES = \
4611 src/hostname/hostnamed.c
4613 systemd_hostnamed_LDADD = \
4614 libsystemd-label.la \
4615 libsystemd-internal.la \
4616 libsystemd-shared.la
4618 rootlibexec_PROGRAMS += \
4621 nodist_systemunit_DATA += \
4622 units/systemd-hostnamed.service
4624 dist_systemunit_DATA_busnames += \
4625 units/org.freedesktop.hostname1.busname
4627 dist_dbuspolicy_DATA += \
4628 src/hostname/org.freedesktop.hostname1.conf
4630 dist_dbussystemservice_DATA += \
4631 src/hostname/org.freedesktop.hostname1.service
4633 polkitpolicy_files += \
4634 src/hostname/org.freedesktop.hostname1.policy
4636 SYSTEM_UNIT_ALIASES += \
4637 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4639 BUSNAMES_TARGET_WANTS += \
4640 org.freedesktop.hostname1.busname
4642 hostnamectl_SOURCES = \
4643 src/hostname/hostnamectl.c
4645 hostnamectl_LDADD = \
4646 libsystemd-internal.la \
4647 libsystemd-shared.la
4652 dist_bashcompletion_DATA += \
4653 shell-completion/bash/hostnamectl
4655 dist_zshcompletion_DATA += \
4656 shell-completion/zsh/_hostnamectl
4660 polkitpolicy_in_files += \
4661 src/hostname/org.freedesktop.hostname1.policy.in
4664 units/systemd-hostnamed.service.in
4666 # ------------------------------------------------------------------------------
4667 dist_systemunit_DATA_busnames += \
4668 units/org.freedesktop.systemd1.busname
4670 BUSNAMES_TARGET_WANTS += \
4671 org.freedesktop.systemd1.busname
4673 # ------------------------------------------------------------------------------
4675 systemd_localed_SOURCES = \
4676 src/locale/localed.c
4678 systemd_localed_LDADD = \
4679 libsystemd-label.la \
4680 libsystemd-internal.la \
4681 libsystemd-shared.la
4683 nodist_systemunit_DATA += \
4684 units/systemd-localed.service
4686 dist_systemunit_DATA_busnames += \
4687 units/org.freedesktop.locale1.busname
4689 rootlibexec_PROGRAMS += \
4692 dist_dbuspolicy_DATA += \
4693 src/locale/org.freedesktop.locale1.conf
4695 dist_dbussystemservice_DATA += \
4696 src/locale/org.freedesktop.locale1.service
4698 polkitpolicy_files += \
4699 src/locale/org.freedesktop.locale1.policy
4701 SYSTEM_UNIT_ALIASES += \
4702 systemd-localed.service dbus-org.freedesktop.locale1.service
4704 BUSNAMES_TARGET_WANTS += \
4705 org.freedesktop.locale1.busname
4707 dist_pkgdata_DATA += \
4708 src/locale/kbd-model-map
4710 dist_noinst_SCRIPT = \
4711 src/locale/generate-kbd-model-map
4713 localectl_SOURCES = \
4714 src/locale/localectl.c
4717 libsystemd-internal.la \
4718 libsystemd-shared.la
4723 dist_bashcompletion_DATA += \
4724 shell-completion/bash/localectl
4726 dist_zshcompletion_DATA += \
4727 shell-completion/zsh/_localectl
4731 .PHONY: update-kbd-model-map
4733 polkitpolicy_in_files += \
4734 src/locale/org.freedesktop.locale1.policy.in
4737 units/systemd-localed.service.in
4739 # ------------------------------------------------------------------------------
4741 systemd_timedated_SOURCES = \
4742 src/timedate/timedated.c
4744 systemd_timedated_LDADD = \
4745 libsystemd-label.la \
4746 libsystemd-internal.la \
4747 libsystemd-shared.la
4749 rootlibexec_PROGRAMS += \
4752 dist_dbussystemservice_DATA += \
4753 src/timedate/org.freedesktop.timedate1.service
4755 dist_dbuspolicy_DATA += \
4756 src/timedate/org.freedesktop.timedate1.conf
4758 nodist_systemunit_DATA += \
4759 units/systemd-timedated.service
4761 dist_systemunit_DATA_busnames += \
4762 units/org.freedesktop.timedate1.busname
4764 polkitpolicy_files += \
4765 src/timedate/org.freedesktop.timedate1.policy
4767 SYSTEM_UNIT_ALIASES += \
4768 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4770 BUSNAMES_TARGET_WANTS += \
4771 org.freedesktop.timedate1.busname
4773 timedatectl_SOURCES = \
4774 src/timedate/timedatectl.c
4776 timedatectl_LDADD = \
4777 libsystemd-internal.la \
4778 libsystemd-shared.la
4783 dist_bashcompletion_DATA += \
4784 shell-completion/bash/timedatectl
4786 dist_zshcompletion_DATA += \
4787 shell-completion/zsh/_timedatectl
4790 polkitpolicy_in_files += \
4791 src/timedate/org.freedesktop.timedate1.policy.in
4794 units/systemd-timedated.service.in
4796 # ------------------------------------------------------------------------------
4798 systemd_timesyncd_SOURCES = \
4799 src/timesync/timesyncd.c \
4800 src/timesync/timesyncd-manager.c \
4801 src/timesync/timesyncd-manager.h \
4802 src/timesync/timesyncd-conf.c \
4803 src/timesync/timesyncd-conf.h \
4804 src/timesync/timesyncd-server.c \
4805 src/timesync/timesyncd-server.h
4807 nodist_systemd_timesyncd_SOURCES = \
4808 src/timesync/timesyncd-gperf.c
4811 src/timesync/timesyncd-gperf.gperf
4814 src/timesync/timesyncd-gperf.c
4816 systemd_timesyncd_LDADD = \
4817 libsystemd-resolve.la \
4818 libsystemd-network.la \
4819 libsystemd-label.la \
4820 libsystemd-capability.la \
4821 libsystemd-internal.la \
4822 libsystemd-shared.la \
4825 rootlibexec_PROGRAMS += \
4828 nodist_systemunit_DATA += \
4829 units/systemd-timesyncd.service
4831 GENERAL_ALIASES += \
4832 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
4835 units/systemd-timesyncd.service.in
4837 nodist_pkgsysconf_DATA += \
4838 src/timesync/timesyncd.conf
4841 src/timesync/timesyncd.conf.in
4844 src/timesync/timesyncd.conf
4847 # ------------------------------------------------------------------------------
4849 libnss_myhostname_la_SOURCES = \
4850 src/nss-myhostname/nss-myhostname.sym \
4851 src/nss-myhostname/nss-myhostname.c
4853 libnss_myhostname_la_LDFLAGS = \
4860 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
4862 libnss_myhostname_la_LIBADD = \
4863 libsystemd-shared.la \
4864 libsystemd-internal.la
4866 lib_LTLIBRARIES += \
4867 libnss_myhostname.la
4870 # ------------------------------------------------------------------------------
4872 systemd_machined_SOURCES = \
4873 src/machine/machined.c \
4874 src/machine/machined.h
4876 systemd_machined_LDADD = \
4877 libsystemd-machine-core.la
4879 rootlibexec_PROGRAMS += \
4882 libsystemd_machine_core_la_SOURCES = \
4883 src/machine/machined-dbus.c \
4884 src/machine/machine.c \
4885 src/machine/machine.h \
4886 src/machine/machine-dbus.c
4888 libsystemd_machine_core_la_LIBADD = \
4889 libsystemd-label.la \
4890 libsystemd-internal.la \
4891 libudev-internal.la \
4892 libsystemd-shared.la
4894 noinst_LTLIBRARIES += \
4895 libsystemd-machine-core.la
4897 machinectl_SOURCES = \
4898 src/machine/machinectl.c
4900 machinectl_LDADD = \
4901 libsystemd-internal.la \
4902 libsystemd-shared.la
4904 rootbin_PROGRAMS += \
4907 dist_bashcompletion_DATA += \
4908 shell-completion/bash/machinectl
4910 test_machine_tables_SOURCES = \
4911 src/machine/test-machine-tables.c
4913 test_machine_tables_LDADD = \
4914 libsystemd-machine-core.la
4919 nodist_systemunit_DATA += \
4920 units/systemd-machined.service
4922 dist_systemunit_DATA += \
4925 dist_systemunit_DATA_busnames += \
4926 units/org.freedesktop.machine1.busname
4928 dist_dbussystemservice_DATA += \
4929 src/machine/org.freedesktop.machine1.service
4931 dist_dbuspolicy_DATA += \
4932 src/machine/org.freedesktop.machine1.conf
4934 dist_zshcompletion_DATA += \
4935 shell-completion/zsh/_machinectl \
4936 shell-completion/zsh/_sd_machines
4938 SYSTEM_UNIT_ALIASES += \
4939 systemd-machined.service dbus-org.freedesktop.machine1.service
4941 BUSNAMES_TARGET_WANTS += \
4942 org.freedesktop.machine1.busname
4945 units/systemd-machined.service.in
4947 libnss_mymachines_la_SOURCES = \
4948 src/nss-mymachines/nss-mymachines.sym \
4949 src/nss-mymachines/nss-mymachines.c
4951 libnss_mymachines_la_LDFLAGS = \
4958 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
4960 libnss_mymachines_la_LIBADD = \
4961 libsystemd-shared.la \
4962 libsystemd-internal.la
4964 lib_LTLIBRARIES += \
4965 libnss_mymachines.la
4968 # ------------------------------------------------------------------------------
4970 systemd_resolved_SOURCES = \
4971 src/resolve/resolved.c \
4972 src/resolve/resolved-manager.c \
4973 src/resolve/resolved-manager.h \
4974 src/resolve/resolved-conf.c \
4975 src/resolve/resolved-conf.h \
4976 src/resolve/resolved-bus.c \
4977 src/resolve/resolved-bus.h \
4978 src/resolve/resolved-link.h \
4979 src/resolve/resolved-link.c \
4980 src/resolve/resolved-def.h \
4981 src/resolve/resolved-dns-domain.h \
4982 src/resolve/resolved-dns-domain.c \
4983 src/resolve/resolved-dns-rr.h \
4984 src/resolve/resolved-dns-rr.c \
4985 src/resolve/resolved-dns-question.h \
4986 src/resolve/resolved-dns-question.c \
4987 src/resolve/resolved-dns-answer.h \
4988 src/resolve/resolved-dns-answer.c \
4989 src/resolve/resolved-dns-packet.h \
4990 src/resolve/resolved-dns-packet.c \
4991 src/resolve/resolved-dns-query.h \
4992 src/resolve/resolved-dns-query.c \
4993 src/resolve/resolved-dns-transaction.h \
4994 src/resolve/resolved-dns-transaction.c \
4995 src/resolve/resolved-dns-scope.h \
4996 src/resolve/resolved-dns-scope.c \
4997 src/resolve/resolved-dns-server.h \
4998 src/resolve/resolved-dns-server.c \
4999 src/resolve/resolved-dns-cache.h \
5000 src/resolve/resolved-dns-cache.c \
5001 src/resolve/resolved-dns-zone.h \
5002 src/resolve/resolved-dns-zone.c \
5003 src/resolve/resolved-dns-stream.h \
5004 src/resolve/resolved-dns-stream.c \
5005 src/resolve/dns-type.c \
5006 src/resolve/dns-type.h \
5007 src/resolve/dns_type-from-name.h \
5008 src/resolve/dns_type-to-name.h
5010 nodist_systemd_resolved_SOURCES = \
5011 src/resolve/resolved-gperf.c
5014 src/resolve/resolved-gperf.gperf \
5015 src/resolve/dns_type-from-name.gperf
5018 src/resolve/resolved-gperf.c
5020 systemd_resolved_LDADD = \
5021 libsystemd-capability.la \
5022 libsystemd-network.la \
5023 libsystemd-label.la \
5024 libsystemd-internal.la \
5025 libsystemd-shared.la \
5029 rootlibexec_PROGRAMS += \
5032 nodist_systemunit_DATA += \
5033 units/systemd-resolved.service
5035 dist_systemunit_DATA_busnames += \
5036 units/org.freedesktop.resolve1.busname
5038 dist_dbuspolicy_DATA += \
5039 src/resolve/org.freedesktop.resolve1.conf
5041 dist_dbussystemservice_DATA += \
5042 src/resolve/org.freedesktop.resolve1.service
5045 units/systemd-resolved.service.in
5047 SYSTEM_UNIT_ALIASES += \
5048 systemd-resolved.service dbus-org.freedesktop.resolve1.service
5050 BUSNAMES_TARGET_WANTS += \
5051 org.freedesktop.resolve1.busname
5053 GENERAL_ALIASES += \
5054 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
5056 nodist_pkgsysconf_DATA += \
5057 src/resolve/resolved.conf
5060 src/resolve/resolved.conf.in
5063 src/resolve/resolved.conf
5068 test_dns_domain_SOURCES = \
5069 src/resolve/resolved-dns-domain.h \
5070 src/resolve/resolved-dns-domain.c \
5071 src/resolve/test-dns-domain.c
5073 test_dns_domain_LDADD = \
5074 libsystemd-capability.la \
5075 libsystemd-network.la \
5076 libsystemd-label.la \
5077 libsystemd-internal.la \
5078 libsystemd-shared.la \
5081 libnss_resolve_la_SOURCES = \
5082 src/nss-resolve/nss-resolve.sym \
5083 src/nss-resolve/nss-resolve.c
5085 libnss_resolve_la_LDFLAGS = \
5092 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
5094 libnss_resolve_la_LIBADD = \
5095 libsystemd-shared.la \
5096 libsystemd-internal.la
5098 lib_LTLIBRARIES += \
5101 systemd_resolve_host_SOURCES = \
5102 src/resolve-host/resolve-host.c \
5103 src/resolve/resolved-dns-packet.c \
5104 src/resolve/resolved-dns-packet.h \
5105 src/resolve/resolved-dns-rr.c \
5106 src/resolve/resolved-dns-rr.h \
5107 src/resolve/resolved-dns-answer.c \
5108 src/resolve/resolved-dns-answer.h \
5109 src/resolve/resolved-dns-question.c \
5110 src/resolve/resolved-dns-question.h \
5111 src/resolve/resolved-dns-domain.c \
5112 src/resolve/resolved-dns-domain.h \
5113 src/resolve/dns-type.c \
5114 src/resolve/dns-type.h \
5115 src/resolve/dns_type-from-name.h \
5116 src/resolve/dns_type-to-name.h
5118 systemd_resolve_host_LDADD = \
5119 libsystemd-internal.la \
5120 libsystemd-shared.la \
5124 rootlibexec_PROGRAMS += \
5125 systemd-resolve-host
5129 # ------------------------------------------------------------------------------
5131 rootlibexec_PROGRAMS += \
5134 systemd_networkd_SOURCES = \
5135 src/network/networkd.c
5137 systemd_networkd_LDADD = \
5138 libsystemd-networkd-core.la \
5139 libsystemd-capability.la
5141 noinst_LTLIBRARIES += \
5142 libsystemd-networkd-core.la
5144 libsystemd_networkd_core_la_CFLAGS = \
5147 libsystemd_networkd_core_la_SOURCES = \
5148 src/libsystemd-network/network-internal.h \
5149 src/network/networkd.h \
5150 src/network/networkd-link.h \
5151 src/network/networkd-netdev.h \
5152 src/network/networkd-netdev-tunnel.h \
5153 src/network/networkd-netdev-veth.h \
5154 src/network/networkd-netdev-vxlan.h \
5155 src/network/networkd-netdev-vlan.h \
5156 src/network/networkd-netdev-macvlan.h \
5157 src/network/networkd-netdev-dummy.h \
5158 src/network/networkd-netdev-tuntap.h \
5159 src/network/networkd-netdev-bond.h \
5160 src/network/networkd-netdev-bridge.h \
5161 src/network/networkd-netdev.c \
5162 src/network/networkd-netdev-tunnel.c \
5163 src/network/networkd-netdev-veth.c \
5164 src/network/networkd-netdev-vxlan.c \
5165 src/network/networkd-netdev-vlan.c \
5166 src/network/networkd-netdev-macvlan.c \
5167 src/network/networkd-netdev-dummy.c \
5168 src/network/networkd-netdev-tuntap.c \
5169 src/network/networkd-netdev-bond.c \
5170 src/network/networkd-netdev-bridge.c \
5171 src/network/networkd-link.c \
5172 src/network/networkd-ipv4ll.c \
5173 src/network/networkd-dhcp4.c \
5174 src/network/networkd-network.c \
5175 src/network/networkd-address.c \
5176 src/network/networkd-route.c \
5177 src/network/networkd-manager.c \
5178 src/network/networkd-address-pool.c
5180 nodist_libsystemd_networkd_core_la_SOURCES = \
5181 src/network/networkd-network-gperf.c \
5182 src/network/networkd-netdev-gperf.c
5184 libsystemd_networkd_core_la_LIBADD = \
5185 libudev-internal.la \
5186 libsystemd-internal.la \
5187 libsystemd-network.la \
5188 libsystemd-label.la \
5189 libsystemd-shared.la
5191 rootlibexec_PROGRAMS += \
5192 systemd-networkd-wait-online
5194 systemd_networkd_wait_online_CFLAGS = \
5197 systemd_networkd_wait_online_SOURCES = \
5198 src/libsystemd-network/network-internal.h \
5199 src/network/networkd-wait-online.h \
5200 src/network/networkd-wait-online-link.h \
5201 src/network/networkd-wait-online.c \
5202 src/network/networkd-wait-online-manager.c \
5203 src/network/networkd-wait-online-link.c
5205 systemd_networkd_wait_online_LDADD = \
5206 libsystemd-network.la \
5207 libudev-internal.la \
5208 libsystemd-internal.la \
5209 libsystemd-shared.la
5211 rootbin_PROGRAMS += \
5214 networkctl_SOURCES = \
5215 src/network/networkctl.c
5217 networkctl_LDADD = \
5218 libsystemd-internal.la \
5219 libudev-internal.la \
5220 libsystemd-shared.la \
5221 libsystemd-network.la
5223 test_network_SOURCES = \
5224 src/network/test-network.c
5226 test_network_LDADD = \
5227 libsystemd-networkd-core.la \
5228 libsystemd-capability.la
5230 test_network_tables_SOURCES = \
5231 src/network/test-network-tables.c \
5232 src/shared/test-tables.h
5234 test_network_tables_LDADD = \
5235 libsystemd-networkd-core.la \
5242 nodist_systemunit_DATA += \
5243 units/systemd-networkd.service \
5244 units/systemd-networkd-wait-online.service
5246 GENERAL_ALIASES += \
5247 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5248 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5251 src/network/networkd-network-gperf.gperf \
5252 src/network/networkd-netdev-gperf.gperf \
5253 units/systemd-networkd.service.in \
5254 units/systemd-networkd-wait-online.service.in
5257 src/network/networkd-network-gperf.c \
5258 src/network/networkd-netdev-gperf.c
5261 # ------------------------------------------------------------------------------
5263 systemd_logind_SOURCES = \
5264 src/login/logind.c \
5267 nodist_systemd_logind_SOURCES = \
5268 src/login/logind-gperf.c
5270 systemd_logind_LDADD = \
5271 libsystemd-logind-core.la
5273 libsystemd_logind_core_la_SOURCES = \
5274 src/login/logind-core.c \
5275 src/login/logind-device.c \
5276 src/login/logind-device.h \
5277 src/login/logind-button.c \
5278 src/login/logind-button.h \
5279 src/login/logind-action.c \
5280 src/login/logind-action.h \
5281 src/login/logind-seat.c \
5282 src/login/logind-seat.h \
5283 src/login/logind-session.c \
5284 src/login/logind-session.h \
5285 src/login/logind-session-device.c \
5286 src/login/logind-session-device.h \
5287 src/login/logind-user.c \
5288 src/login/logind-user.h \
5289 src/login/logind-inhibit.c \
5290 src/login/logind-inhibit.h \
5291 src/login/logind-dbus.c \
5292 src/login/logind-session-dbus.c \
5293 src/login/logind-seat-dbus.c \
5294 src/login/logind-user-dbus.c \
5295 src/login/logind-acl.h
5297 libsystemd_logind_core_la_LIBADD = \
5298 libsystemd-label.la \
5299 libsystemd-capability.la \
5300 libsystemd-internal.la \
5301 libudev-internal.la \
5302 libsystemd-shared.la
5305 libsystemd_logind_core_la_SOURCES += \
5306 src/login/logind-acl.c
5308 libsystemd_logind_core_la_LIBADD += \
5312 noinst_LTLIBRARIES += \
5313 libsystemd-logind-core.la
5315 systemd_user_sessions_SOURCES = \
5316 src/login/user-sessions.c
5318 systemd_user_sessions_LDADD = \
5319 libsystemd-shared.la
5321 rootlibexec_PROGRAMS += \
5323 systemd-user-sessions
5325 loginctl_SOURCES = \
5326 src/login/loginctl.c \
5327 src/login/sysfs-show.c
5330 libsystemd-internal.la \
5331 libudev-internal.la \
5332 libsystemd-shared.la
5334 rootbin_PROGRAMS += \
5337 dist_bashcompletion_DATA += \
5338 shell-completion/bash/loginctl
5340 dist_zshcompletion_DATA += \
5341 shell-completion/zsh/_loginctl \
5342 shell-completion/zsh/_systemd-inhibit
5344 systemd_inhibit_SOURCES = \
5347 systemd_inhibit_LDADD = \
5348 libsystemd-internal.la \
5349 libsystemd-shared.la
5351 rootbin_PROGRAMS += \
5354 test_login_SOURCES = \
5355 src/libsystemd/sd-login/test-login.c
5357 test_login_LDADD = \
5358 libsystemd-internal.la \
5359 libsystemd-shared.la
5361 test_login_shared_SOURCES = \
5362 src/login/test-login-shared.c
5364 test_login_shared_LDADD = \
5365 libsystemd-internal.la \
5366 libsystemd-shared.la
5368 test_inhibit_SOURCES = \
5369 src/login/test-inhibit.c
5371 test_inhibit_LDADD = \
5372 libsystemd-internal.la \
5373 libsystemd-shared.la
5375 test_login_tables_SOURCES = \
5376 src/login/test-login-tables.c
5378 test_login_tables_LDADD = \
5379 libsystemd-logind-core.la
5390 pam_systemd_la_SOURCES = \
5391 src/login/pam_systemd.sym \
5392 src/login/pam_systemd.c
5394 pam_systemd_la_CFLAGS = \
5399 pam_systemd_la_LDFLAGS = \
5405 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5407 pam_systemd_la_LIBADD = \
5408 libsystemd-capability.la \
5409 libsystemd-internal.la \
5410 libsystemd-shared.la \
5413 pamlib_LTLIBRARIES = \
5416 dist_pamconf_DATA = \
5417 src/login/systemd-user
5420 nodist_systemunit_DATA += \
5421 units/systemd-logind.service \
5422 units/systemd-user-sessions.service
5424 dist_systemunit_DATA += \
5427 dist_systemunit_DATA_busnames += \
5428 units/org.freedesktop.login1.busname
5430 dist_dbussystemservice_DATA += \
5431 src/login/org.freedesktop.login1.service
5433 dist_dbuspolicy_DATA += \
5434 src/login/org.freedesktop.login1.conf
5436 dist_pkgsysconf_DATA += \
5437 src/login/logind.conf
5439 polkitpolicy_files += \
5440 src/login/org.freedesktop.login1.policy
5445 MULTI_USER_TARGET_WANTS += \
5446 systemd-logind.service \
5447 systemd-user-sessions.service
5449 SYSTEM_UNIT_ALIASES += \
5450 systemd-logind.service dbus-org.freedesktop.login1.service
5452 BUSNAMES_TARGET_WANTS += \
5453 org.freedesktop.login1.busname
5455 dist_udevrules_DATA += \
5456 src/login/70-uaccess.rules \
5457 src/login/70-power-switch.rules
5459 nodist_udevrules_DATA += \
5460 src/login/71-seat.rules \
5461 src/login/73-seat-late.rules
5464 src/login/logind-gperf.c \
5465 src/login/71-seat.rules \
5466 src/login/73-seat-late.rules
5469 polkitpolicy_in_files += \
5470 src/login/org.freedesktop.login1.policy.in
5473 src/login/logind-gperf.gperf \
5474 src/login/71-seat.rules.in \
5475 src/login/73-seat-late.rules.in \
5476 units/systemd-logind.service.in \
5477 units/systemd-user-sessions.service.in
5479 # ------------------------------------------------------------------------------
5480 if HAVE_PYTHON_DEVEL
5481 pkgpyexec_LTLIBRARIES = \
5488 _journal_la_SOURCES = \
5489 src/python-systemd/_journal.c
5491 _journal_la_CFLAGS = \
5493 -fvisibility=default \
5494 $(PYTHON_DEVEL_CFLAGS)
5496 _journal_la_LDFLAGS = \
5502 _journal_la_LIBADD = \
5503 $(PYTHON_DEVEL_LIBS) \
5506 id128_la_SOURCES = \
5507 src/python-systemd/id128.c \
5508 src/python-systemd/pyutil.c \
5509 src/python-systemd/pyutil.h
5511 nodist_id128_la_SOURCES = \
5512 src/python-systemd/id128-constants.h
5516 -fvisibility=default \
5517 $(PYTHON_DEVEL_CFLAGS) \
5518 -I$(top_builddir)/src/python-systemd
5520 id128_la_LDFLAGS = \
5527 $(PYTHON_DEVEL_LIBS) \
5528 libsystemd-shared.la \
5531 _daemon_la_SOURCES = \
5532 src/python-systemd/_daemon.c \
5533 src/python-systemd/pyutil.c \
5534 src/python-systemd/pyutil.h
5536 _daemon_la_CFLAGS = \
5538 -fvisibility=default \
5539 $(PYTHON_DEVEL_CFLAGS) \
5540 -I$(top_builddir)/src/python-systemd
5542 _daemon_la_LDFLAGS = \
5548 _daemon_la_LIBADD = \
5549 $(PYTHON_DEVEL_LIBS) \
5550 libsystemd-shared.la \
5553 _reader_la_SOURCES = \
5554 src/python-systemd/_reader.c \
5555 src/python-systemd/pyutil.c \
5556 src/python-systemd/pyutil.h
5558 _reader_la_CFLAGS = \
5560 -fvisibility=default \
5561 $(PYTHON_DEVEL_CFLAGS)
5563 _reader_la_LDFLAGS = \
5569 _reader_la_LIBADD = \
5570 $(PYTHON_DEVEL_LIBS) \
5571 libsystemd-shared.la \
5574 login_la_SOURCES = \
5575 src/python-systemd/login.c \
5576 src/python-systemd/pyutil.c \
5577 src/python-systemd/pyutil.h
5581 -fvisibility=default \
5582 $(PYTHON_DEVEL_CFLAGS)
5584 login_la_LDFLAGS = \
5591 $(PYTHON_DEVEL_LIBS) \
5592 libsystemd-shared.la \
5595 dist_pkgpyexec_PYTHON = \
5596 src/python-systemd/journal.py \
5597 src/python-systemd/daemon.py \
5598 src/python-systemd/__init__.py
5600 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
5601 $(AM_V_at)$(MKDIR_P) $(dir $@)
5602 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
5605 src/python-systemd/id128-constants.h
5607 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
5609 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
5610 $(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/
5611 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
5614 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
5615 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
5618 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
5619 $(MAKE) DESTDIR="$$dir" install && \
5620 $(MAKE) DESTDIR="$$dir" sphinx-html && \
5625 CLEAN_LOCAL_HOOKS += clean-sphinx
5627 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
5630 -rm -rf docs/html/python-systemd/
5632 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
5634 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
5635 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
5637 # ------------------------------------------------------------------------------
5638 if ENABLE_COMPAT_LIBS
5640 src/compat-libs/linkwarning.h
5642 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
5643 $(AM_V_at)$(MKDIR_P) $(dir $@)
5644 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
5647 libsystemd-journal.c \
5648 libsystemd-login.c \
5649 libsystemd-id128.c \
5652 libsystemd_journal_la_SOURCES = \
5653 libsystemd-journal.c \
5654 src/compat-libs/libsystemd-journal.sym
5656 libsystemd_journal_la_CPPFLAGS = \
5658 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5660 libsystemd_journal_la_LDFLAGS = \
5662 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
5663 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
5665 libsystemd_journal_la_LIBADD = \
5666 libsystemd-journal-internal.la \
5667 libsystemd-internal.la \
5668 libsystemd-shared.la
5670 libsystemd_login_la_SOURCES = \
5671 libsystemd-login.c \
5672 src/compat-libs/libsystemd-login.sym
5674 libsystemd_login_la_CPPFLAGS = \
5676 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5678 libsystemd_login_la_LDFLAGS = \
5680 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
5681 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
5683 libsystemd_login_la_LIBADD = \
5684 libsystemd-internal.la \
5685 libsystemd-shared.la
5687 libsystemd_id128_la_SOURCES = \
5688 libsystemd-id128.c \
5689 src/compat-libs/libsystemd-id128.sym
5691 libsystemd_id128_la_CPPFLAGS = \
5693 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5695 libsystemd_id128_la_LDFLAGS = \
5697 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
5698 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
5700 libsystemd_id128_la_LIBADD = \
5701 libsystemd-internal.la \
5702 libsystemd-shared.la
5704 libsystemd_daemon_la_SOURCES = \
5705 libsystemd-daemon.c \
5706 src/compat-libs/libsystemd-daemon.sym
5708 libsystemd_daemon_la_CPPFLAGS = \
5710 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5712 libsystemd_daemon_la_LDFLAGS = \
5714 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
5715 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
5717 libsystemd_daemon_la_LIBADD = \
5718 libsystemd-internal.la \
5719 libsystemd-shared.la
5721 lib_LTLIBRARIES += \
5722 libsystemd-journal.la \
5723 libsystemd-login.la \
5724 libsystemd-id128.la \
5725 libsystemd-daemon.la
5727 pkgconfiglib_DATA += \
5728 src/compat-libs/libsystemd-journal.pc \
5729 src/compat-libs/libsystemd-login.pc \
5730 src/compat-libs/libsystemd-id128.pc \
5731 src/compat-libs/libsystemd-daemon.pc
5733 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
5734 compat-lib-install-hook:
5735 libname=libsystemd-login.so && $(move-to-rootlibdir)
5736 libname=libsystemd-journal.so && $(move-to-rootlibdir)
5737 libname=libsystemd-id128.so && $(move-to-rootlibdir)
5738 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
5740 compat-lib-uninstall-hook:
5741 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
5742 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
5743 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
5744 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
5746 INSTALL_EXEC_HOOKS += compat-lib-install-hook
5747 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
5751 src/compat-libs/libsystemd-journal.pc.in \
5752 src/compat-libs/libsystemd-login.pc.in \
5753 src/compat-libs/libsystemd-id128.pc.in \
5754 src/compat-libs/libsystemd-daemon.pc.in
5756 # ------------------------------------------------------------------------------
5758 '|rootlibexecdir=$(rootlibexecdir)|' \
5759 '|rootbindir=$(rootbindir)|' \
5760 '|bindir=$(bindir)|' \
5761 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5762 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5763 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5764 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5765 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
5766 '|pkgdatadir=$(pkgdatadir)|' \
5767 '|systemunitdir=$(systemunitdir)|' \
5768 '|userunitdir=$(userunitdir)|' \
5769 '|systempresetdir=$(systempresetdir)|' \
5770 '|userpresetdir=$(userpresetdir)|' \
5771 '|udevhwdbdir=$(udevhwdbdir)|' \
5772 '|udevrulesdir=$(udevrulesdir)|' \
5773 '|catalogdir=$(catalogdir)|' \
5774 '|tmpfilesdir=$(tmpfilesdir)|' \
5775 '|sysusersdir=$(sysusersdir)|' \
5776 '|sysctldir=$(sysctldir)|' \
5777 '|systemgeneratordir=$(systemgeneratordir)|' \
5778 '|usergeneratordir=$(usergeneratordir)|' \
5779 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
5780 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
5781 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
5782 '|PACKAGE_URL=$(PACKAGE_URL)|' \
5783 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
5784 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
5785 '|prefix=$(prefix)|' \
5786 '|exec_prefix=$(exec_prefix)|' \
5787 '|libdir=$(libdir)|' \
5788 '|includedir=$(includedir)|' \
5789 '|VERSION=$(VERSION)|' \
5790 '|rootprefix=$(rootprefix)|' \
5791 '|udevlibexecdir=$(udevlibexecdir)|' \
5792 '|SUSHELL=$(SUSHELL)|' \
5793 '|DEBUGTTY=$(DEBUGTTY)|' \
5796 '|MKDIR_P=$(MKDIR_P)|' \
5797 '|QUOTAON=$(QUOTAON)|' \
5798 '|QUOTACHECK=$(QUOTACHECK)|' \
5799 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
5800 '|VARLOGDIR=$(varlogdir)|' \
5801 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
5802 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
5803 '|PYTHON=$(PYTHON)|' \
5804 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
5805 '|NTP_SERVERS=$(NTP_SERVERS)|' \
5806 '|DNS_SERVERS=$(DNS_SERVERS)|' \
5807 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
5808 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
5809 '|TTY_GID=$(TTY_GID)|' \
5810 '|systemsleepdir=$(systemsleepdir)|' \
5811 '|systemshutdowndir=$(systemshutdowndir)|' \
5812 '|binfmtdir=$(binfmtdir)|' \
5813 '|modulesloaddir=$(modulesloaddir)|'
5816 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
5817 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
5826 sysctl.d/%: sysctl.d/%.in
5835 src/core/macros.%: src/core/macros.%.in
5838 src/%.policy.in: src/%.policy.in.in
5841 shell-completion/%: shell-completion/%.in
5852 $(AM_V_GEN)chmod +x $@
5854 src/%.c: src/%.gperf
5855 $(AM_V_at)$(MKDIR_P) $(dir $@)
5856 $(AM_V_GPERF)$(GPERF) < $< > $@
5859 $(AM_V_at)$(MKDIR_P) $(dir $@)
5860 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5862 tmpfiles.d/%: tmpfiles.d/%.m4
5863 $(AM_V_at)$(MKDIR_P) $(dir $@)
5864 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5868 $(AM_V_at)$(MKDIR_P) $(dir $@)
5869 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
5871 units/user/%: units/%.m4
5872 $(AM_V_at)$(MKDIR_P) $(dir $@)
5873 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
5876 nodist_polkitpolicy_DATA = \
5877 $(polkitpolicy_files) \
5878 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
5882 $(polkitpolicy_in_files) \
5883 $(polkitpolicy_in_in_files)
5886 $(nodist_systemunit_DATA) \
5887 $(nodist_userunit_DATA) \
5888 $(pkgconfigdata_DATA) \
5889 $(pkgconfiglib_DATA) \
5890 $(nodist_polkitpolicy_DATA)
5892 # ------------------------------------------------------------------------------
5894 man/custom-entities.ent: configure.ac
5895 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
5896 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
5897 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
5901 man/custom-entities.ent
5906 --stringparam man.output.quietly 1 \
5907 --stringparam funcsynopsis.style ansi \
5908 --stringparam man.authors.section.enabled 0 \
5909 --stringparam man.copyright.section.enabled 0 \
5910 --stringparam systemd.version $(VERSION) \
5911 --path '$(builddir)/man:$(srcdir)/man'
5913 XSLTPROC_PROCESS_MAN = \
5914 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
5916 XSLTPROC_PROCESS_HTML = \
5917 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
5919 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
5920 $(XSLTPROC_PROCESS_MAN)
5922 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
5923 $(XSLTPROC_PROCESS_MAN)
5925 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
5926 $(XSLTPROC_PROCESS_MAN)
5928 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
5929 $(XSLTPROC_PROCESS_MAN)
5931 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
5932 $(XSLTPROC_PROCESS_MAN)
5934 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
5935 $(XSLTPROC_PROCESS_HTML)
5938 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
5944 man/custom-html.xsl \
5947 # ------------------------------------------------------------------------------
5950 docs/sysvinit/README
5955 docs/sysvinit/README: docs/sysvinit/README.in
5958 docs/var-log/README: docs/var-log/README.in
5962 docs/sysvinit/README \
5967 docs/sysvinit/README.in \
5968 docs/var-log/README.in
5970 SOCKETS_TARGET_WANTS += \
5971 systemd-initctl.socket \
5972 systemd-shutdownd.socket
5976 RUNLEVEL1_TARGET_WANTS += \
5977 systemd-update-utmp-runlevel.service
5978 RUNLEVEL2_TARGET_WANTS += \
5979 systemd-update-utmp-runlevel.service
5980 RUNLEVEL3_TARGET_WANTS += \
5981 systemd-update-utmp-runlevel.service
5982 RUNLEVEL4_TARGET_WANTS += \
5983 systemd-update-utmp-runlevel.service
5984 RUNLEVEL5_TARGET_WANTS += \
5985 systemd-update-utmp-runlevel.service
5988 SYSINIT_TARGET_WANTS += \
5989 systemd-update-utmp.service
5992 SYSINIT_TARGET_WANTS += \
5993 systemd-update-done.service
5995 LOCAL_FS_TARGET_WANTS += \
5996 systemd-remount-fs.service \
5999 MULTI_USER_TARGET_WANTS += \
6001 systemd-ask-password-wall.path
6003 SYSINIT_TARGET_WANTS += \
6004 dev-hugepages.mount \
6006 sys-kernel-config.mount \
6007 sys-kernel-debug.mount \
6008 sys-fs-fuse-connections.mount \
6009 systemd-sysctl.service \
6010 systemd-ask-password-console.path
6013 SYSTEM_UNIT_ALIASES += \
6014 poweroff.target runlevel0.target \
6015 rescue.target runlevel1.target \
6016 multi-user.target runlevel2.target \
6017 multi-user.target runlevel3.target \
6018 multi-user.target runlevel4.target \
6019 graphical.target runlevel5.target \
6020 reboot.target runlevel6.target
6023 SYSTEM_UNIT_ALIASES += \
6024 graphical.target default.target \
6025 reboot.target ctrl-alt-del.target \
6026 getty@.service autovt@.service
6028 USER_UNIT_ALIASES += \
6029 $(systemunitdir)/shutdown.target shutdown.target \
6030 $(systemunitdir)/sockets.target sockets.target \
6031 $(systemunitdir)/timers.target timers.target \
6032 $(systemunitdir)/paths.target paths.target \
6033 $(systemunitdir)/bluetooth.target bluetooth.target \
6034 $(systemunitdir)/printer.target printer.target \
6035 $(systemunitdir)/sound.target sound.target \
6036 $(systemunitdir)/smartcard.target smartcard.target
6039 USER_UNIT_ALIASES += \
6040 $(systemunitdir)/busnames.target busnames.target
6043 GENERAL_ALIASES += \
6044 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
6045 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
6046 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
6047 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
6051 $(systemunitdir)/runlevel1.target.wants \
6052 $(systemunitdir)/runlevel2.target.wants \
6053 $(systemunitdir)/runlevel3.target.wants \
6054 $(systemunitdir)/runlevel4.target.wants \
6055 $(systemunitdir)/runlevel5.target.wants
6059 $(prefix)/lib/modules-load.d \
6060 $(sysconfdir)/modules-load.d \
6061 $(prefix)/lib/systemd/network \
6062 $(sysconfdir)/systemd/network \
6063 $(prefix)/lib/sysctl.d \
6064 $(sysconfdir)/sysctl.d \
6065 $(prefix)/lib/kernel/install.d \
6066 $(sysconfdir)/kernel/install.d \
6067 $(systemshutdowndir) \
6069 $(systemgeneratordir) \
6070 $(usergeneratordir) \
6073 $(pkgsysconfdir)/system \
6074 $(pkgsysconfdir)/system/multi-user.target.wants \
6075 $(pkgsysconfdir)/system/getty.target.wants \
6076 $(pkgsysconfdir)/user \
6077 $(dbussessionservicedir) \
6078 $(sysconfdir)/xdg/systemd
6080 install-exec-hook: $(INSTALL_EXEC_HOOKS)
6082 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
6084 install-data-hook: $(INSTALL_DATA_HOOKS)
6086 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
6088 clean-local: $(CLEAN_LOCAL_HOOKS)
6089 rm -rf $(abs_srcdir)/install-tree
6090 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
6091 $(abs_srcdir)/hwdb/iab.txt
6093 DISTCHECK_CONFIGURE_FLAGS = \
6094 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
6095 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6096 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
6097 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
6098 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
6099 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
6100 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
6101 --with-rootprefix=$$dc_install_base \
6102 --disable-split-usr \
6104 --enable-compat-libs
6107 DISTCHECK_CONFIGURE_FLAGS += \
6108 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
6109 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
6111 DISTCHECK_CONFIGURE_FLAGS += \
6112 --with-sysvinit-path= \
6113 --with-sysvrcnd-path=
6117 DISTCHECK_CONFIGURE_FLAGS += \
6122 DISTCHECK_CONFIGURE_FLAGS += \
6127 # Require python when making dist
6129 .PHONY: dist-check-python
6132 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
6136 dist-check-compat-libs:
6137 if !ENABLE_COMPAT_LIBS
6138 @echo "*** compat-libs must be enabled in order to make dist"
6142 dist: dist-check-python dist-check-compat-libs
6144 # check "broken" platforms limited toolchains for link breakage before we release
6147 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
6151 ( cd $(top_srcdir)/hwdb && \
6152 wget -N http://www.linux-usb.org/usb.ids \
6153 http://pci-ids.ucw.cz/v2.2/pci.ids \
6154 http://standards.ieee.org/develop/regauth/oui/oui.txt \
6155 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
6158 .PHONY: kdbus-update
6160 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
6161 wget -N https://d-bus.googlecode.com/git/kdbus.h )
6165 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6167 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6169 upload: all check dist
6170 scp systemd-$(VERSION).tar.xz $(www_target)
6173 doc-sync: all destdir-sphinx
6174 gtkdoc-rebase --html-dir=docs/libudev/html --online
6175 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
6176 gtkdoc-rebase --html-dir=docs/gudev/html --online
6177 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
6178 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6179 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
6183 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
6184 scp man/*.html tango:public/systemd-man/
6186 .PHONY: install-tree
6188 rm -rf $(abs_srcdir)/install-tree
6189 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6190 tree $(abs_srcdir)/install-tree
6192 # Let's run all tests of the test suite, but under valgrind. Let's
6193 # exclude the one perl script we have in there
6194 .PHONY: valgrind-tests
6195 valgrind-tests: $(TESTS)
6196 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
6197 if file $$f | grep -q shell; then \
6198 echo -e "$${x}Skipping non-binary $$f"; else \
6199 echo -e "$${x}Running $$f"; \
6200 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6205 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6207 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6208 $(AM_V_GEN)cat $^ > $@
6210 .PHONY: check-api-docs
6211 check-api-docs: exported man
6212 $(AM_V_GEN)for symbol in `cat exported` ; do \
6213 if test -f $(builddir)/man/$$symbol.html ; then \
6214 echo " Symbol $$symbol() is documented." ; \
6216 echo "‣ Symbol $$symbol() lacks documentation." ; \
6220 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6221 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6223 undefined defined: $(ALL_OBJECTS)
6224 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6225 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6226 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6232 .PHONY: check-api-unused
6233 check-api-unused: defined undefined exported
6234 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6236 .PHONY: check-includes
6237 check-includes: $(top_srcdir)/tools/check-includes.pl
6238 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6239 | xargs $(top_srcdir)/tools/check-includes.pl
6242 $(top_srcdir)/tools/check-includes.pl
6244 # Stupid test that everything purported to be exported really is
6245 define generate-sym-test
6246 $(AM_V_at)$(MKDIR_P) $(dir $@)
6247 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6248 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6249 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6250 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6251 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6252 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6253 $(AM_V_at)printf 'return 0; }\n' >> $@
6256 test-libsystemd-sym.c: \
6257 $(top_builddir)/src/libsystemd/libsystemd.sym \
6258 src/systemd/sd-journal.h \
6259 src/systemd/sd-daemon.h \
6260 src/systemd/sd-login.h \
6261 src/systemd/sd-bus.h \
6262 src/systemd/sd-utf8.h \
6263 src/systemd/sd-resolve.h \
6264 src/systemd/sd-path.h
6265 $(generate-sym-test)
6267 test-libudev-sym.c: \
6268 src/libudev/libudev.sym \
6270 $(generate-sym-test)
6272 test_libsystemd_sym_SOURCES = \
6273 test-libsystemd-sym.c
6274 test_libsystemd_sym_LDADD = \
6277 test_libudev_sym_SOURCES = \
6279 test_libudev_sym_CFLAGS = \
6281 -Wno-deprecated-declarations
6282 test_libudev_sym_LDADD = \
6286 $(test_libsystemd_sym_SOURCES) \
6287 $(test_libudev_sym_SOURCES)
6290 test-libsystemd-sym \
6295 cppcheck --enable=all -q $(top_srcdir)
6297 # Used to extract compile flags for YCM.
6302 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u
6305 tools/gdb-sd_dump_hashmaps.py