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/bus-label.c \
865 src/shared/bus-label.h \
867 src/shared/clean-ipc.h \
868 src/shared/clean-ipc.c \
869 src/shared/login-shared.c \
870 src/shared/login-shared.h \
873 src/shared/barrier.c \
874 src/shared/barrier.h \
881 src/shared/base-filesystem.c \
882 src/shared/base-filesystem.h \
883 src/shared/memfd-util.c \
884 src/shared/memfd-util.h \
885 src/shared/uid-range.c \
886 src/shared/uid-range.h \
887 src/shared/nss-util.h
890 libsystemd_shared_la_SOURCES += \
891 src/shared/utmp-wtmp.c
894 nodist_libsystemd_shared_la_SOURCES = \
895 src/shared/errno-from-name.h \
896 src/shared/errno-to-name.h \
897 src/shared/af-from-name.h \
898 src/shared/af-to-name.h \
899 src/shared/arphrd-from-name.h \
900 src/shared/arphrd-to-name.h
902 libsystemd_shared_la_CFLAGS = \
908 libsystemd_shared_la_LIBADD = \
911 # ------------------------------------------------------------------------------
912 noinst_LTLIBRARIES += \
915 libsystemd_units_la_SOURCES = \
916 src/shared/install.c \
917 src/shared/install.h \
918 src/shared/install-printf.c \
919 src/shared/install-printf.h \
920 src/shared/path-lookup.c \
921 src/shared/path-lookup.h \
922 src/shared/specifier.c \
923 src/shared/specifier.h
925 # ------------------------------------------------------------------------------
926 noinst_LTLIBRARIES += \
929 libsystemd_label_la_SOURCES = \
930 src/shared/socket-label.c \
933 src/shared/selinux-util.c \
934 src/shared/selinux-util.h \
935 src/shared/mkdir-label.c \
936 src/shared/ask-password-api.c \
937 src/shared/ask-password-api.h \
938 src/shared/switch-root.h \
939 src/shared/switch-root.c \
940 src/shared/fileio-label.c \
941 src/shared/fileio-label.h \
942 src/shared/dev-setup.c \
943 src/shared/dev-setup.h \
944 src/shared/dropin.c \
945 src/shared/dropin.h \
946 src/shared/condition.c \
947 src/shared/condition.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-label.la \
1530 libsystemd-capability.la \
1531 libsystemd-internal.la \
1532 libsystemd-shared.la
1534 test_fdset_SOURCES = \
1535 src/test/test-fdset.c
1537 test_fdset_LDADD = \
1538 libsystemd-shared.la \
1539 libsystemd-internal.la
1541 test_ratelimit_SOURCES = \
1542 src/test/test-ratelimit.c
1544 test_ratelimit_LDADD = \
1545 libsystemd-shared.la
1547 test_util_SOURCES = \
1548 src/test/test-util.c
1552 libsystemd-shared.la
1554 test_uid_range_SOURCES = \
1555 src/test/test-uid-range.c
1557 test_uid_range_LDADD = \
1558 libsystemd-shared.la
1560 test_socket_util_SOURCES = \
1561 src/test/test-socket-util.c
1563 test_socket_util_LDADD = \
1564 libsystemd-shared.la
1566 test_ring_SOURCES = \
1567 src/test/test-ring.c
1570 libsystemd-shared.la
1572 test_barrier_SOURCES = \
1573 src/test/test-barrier.c
1575 test_barrier_LDADD = \
1576 libsystemd-shared.la
1578 test_pty_SOURCES = \
1584 test_tmpfiles_SOURCES = \
1585 src/test/test-tmpfiles.c
1587 test_tmpfiles_LDADD = \
1588 libsystemd-shared.la
1590 test_namespace_SOURCES = \
1591 src/test/test-namespace.c
1593 test_namespace_LDADD = \
1597 src/test/test-hashmap-ordered.c
1600 src/test/test-hashmap-ordered.c
1602 src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c
1603 $(AM_V_at)$(MKDIR_P) $(dir $@)
1604 $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \
1605 { if (!match($$0, "^#include")) \
1606 gsub(/hashmap/, "ordered_hashmap"); \
1607 gsub(/HASHMAP/, "ORDERED_HASHMAP"); \
1608 gsub(/Hashmap/, "OrderedHashmap"); \
1611 nodist_test_hashmap_SOURCES = \
1612 src/test/test-hashmap-ordered.c
1614 test_hashmap_SOURCES = \
1615 src/test/test-hashmap.c \
1616 src/test/test-hashmap-plain.c
1618 test_hashmap_LDADD = \
1619 libsystemd-shared.la
1621 test_set_SOURCES = \
1625 libsystemd-shared.la
1627 test_xml_SOURCES = \
1631 libsystemd-shared.la
1633 test_list_SOURCES = \
1634 src/test/test-list.c
1637 libsystemd-shared.la
1639 test_unaligned_LDADD = \
1640 libsystemd-shared.la
1642 test_unaligned_SOURCES = \
1643 src/test/test-unaligned.c
1645 test_tables_SOURCES = \
1646 src/test/test-tables.c \
1647 src/shared/test-tables.h \
1648 src/bus-proxyd/bus-policy.c \
1649 src/bus-proxyd/bus-policy.h \
1650 src/journal/journald-server.c \
1651 src/journal/journald-server.h
1653 test_tables_CPPFLAGS = \
1655 -I$(top_srcdir)/src/bus-proxyd
1657 test_tables_CFLAGS = \
1661 test_tables_LDADD = \
1662 libsystemd-logs.la \
1663 libsystemd-journal-internal.la \
1664 libsystemd-journal-core.la \
1665 libsystemd-core.la \
1669 test_prioq_SOURCES = \
1670 src/test/test-prioq.c
1672 test_prioq_LDADD = \
1673 libsystemd-shared.la
1675 test_fileio_SOURCES = \
1676 src/test/test-fileio.c
1678 test_fileio_LDADD = \
1679 libsystemd-shared.la
1681 test_time_SOURCES = \
1682 src/test/test-time.c
1685 libsystemd-shared.la
1687 test_architecture_SOURCES = \
1688 src/test/test-architecture.c
1690 test_architecture_LDADD = \
1691 libsystemd-shared.la
1693 test_log_SOURCES = \
1697 libsystemd-shared.la
1699 test_ipcrm_SOURCES = \
1700 src/test/test-ipcrm.c
1702 test_ipcrm_LDADD = \
1703 libsystemd-shared.la \
1706 test_rtnl_manual_SOURCES = \
1707 src/test/test-rtnl-manual.c
1709 test_rtnl_manual_CFLAGS = \
1713 test_rtnl_manual_LDADD = \
1714 libsystemd-internal.la \
1715 libsystemd-shared.la \
1718 test_ellipsize_SOURCES = \
1719 src/test/test-ellipsize.c
1721 test_ellipsize_LDADD = \
1722 libsystemd-shared.la
1724 test_date_SOURCES = \
1725 src/test/test-date.c
1728 libsystemd-shared.la
1730 test_sleep_SOURCES = \
1731 src/test/test-sleep.c
1733 test_sleep_LDADD = \
1736 test_replace_var_SOURCES = \
1737 src/test/test-replace-var.c
1739 test_replace_var_LDADD = \
1740 libsystemd-shared.la
1742 test_calendarspec_SOURCES = \
1743 src/test/test-calendarspec.c
1745 test_calendarspec_LDADD = \
1746 libsystemd-shared.la
1748 test_strip_tab_ansi_SOURCES = \
1749 src/test/test-strip-tab-ansi.c
1751 test_strip_tab_ansi_LDADD = \
1752 libsystemd-shared.la
1754 test_daemon_SOURCES = \
1755 src/test/test-daemon.c
1757 test_daemon_LDADD = \
1758 libsystemd-internal.la \
1759 libsystemd-shared.la
1761 test_cgroup_SOURCES = \
1762 src/test/test-cgroup.c
1764 test_cgroup_LDADD = \
1765 libsystemd-label.la \
1766 libsystemd-shared.la \
1767 libsystemd-internal.la
1769 test_cgroup_mask_SOURCES = \
1770 src/test/test-cgroup-mask.c
1772 test_cgroup_mask_CPPFLAGS = \
1775 test_cgroup_mask_CFLAGS = \
1779 test_cgroup_mask_LDADD = \
1780 libsystemd-core.la \
1783 test_cgroup_util_SOURCES = \
1784 src/test/test-cgroup-util.c
1786 test_cgroup_util_LDADD = \
1787 libsystemd-label.la \
1788 libsystemd-internal.la \
1789 libsystemd-shared.la
1791 test_env_replace_SOURCES = \
1792 src/test/test-env-replace.c
1794 test_env_replace_LDADD = \
1795 libsystemd-shared.la
1797 test_strbuf_SOURCES = \
1798 src/test/test-strbuf.c
1800 test_strbuf_LDADD = \
1801 libsystemd-shared.la
1803 test_strv_SOURCES = \
1804 src/test/test-strv.c
1807 libsystemd-units.la \
1808 libsystemd-internal.la \
1809 libsystemd-shared.la
1811 test_path_util_SOURCES = \
1812 src/test/test-path-util.c
1814 test_path_util_LDADD = \
1815 libsystemd-shared.la
1817 test_path_SOURCES = \
1818 src/test/test-path.c
1820 test_path_CFLAGS = \
1826 test_strxcpyx_SOURCES = \
1827 src/test/test-strxcpyx.c
1829 test_strxcpyx_LDADD = \
1830 libsystemd-shared.la
1832 test_install_SOURCES = \
1833 src/test/test-install.c
1835 test_install_LDADD = \
1836 libsystemd-units.la \
1837 libsystemd-label.la \
1838 libsystemd-shared.la \
1839 libsystemd-internal.la
1841 test_watchdog_SOURCES = \
1842 src/test/test-watchdog.c
1844 test_watchdog_LDADD = \
1845 libsystemd-shared.la
1847 test_sched_prio_SOURCES = \
1848 src/test/test-sched-prio.c
1850 test_sched_prio_CPPFLAGS = \
1853 test_sched_prio_CFLAGS = \
1857 test_sched_prio_LDADD = \
1858 libsystemd-core.la \
1861 test_conf_files_SOURCES = \
1862 src/test/test-conf-files.c
1864 test_conf_files_LDADD = \
1865 libsystemd-shared.la
1867 test_bus_policy_SOURCES = \
1868 src/bus-proxyd/test-bus-policy.c \
1869 src/bus-proxyd/bus-policy.c \
1870 src/bus-proxyd/bus-policy.h
1872 test_bus_policy_LDADD = \
1873 libsystemd-capability.la \
1874 libsystemd-internal.la \
1875 libsystemd-shared.la
1877 # ------------------------------------------------------------------------------
1878 ## .PHONY so it always rebuilds it
1879 .PHONY: coverage lcov-run lcov-report coverage-sync
1881 # run lcov from scratch, always
1886 coverage_dir = coverage
1887 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1890 # reset run coverage tests
1892 @rm -rf $(coverage_dir)
1893 lcov $(coverage_opts) --zerocounters
1896 # generate report based on current coverage data
1898 $(MKDIR_P) $(coverage_dir)
1899 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1900 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1901 lcov --remove $(coverage_dir)/.lcov.info --output-file $(coverage_dir)/.lcov-clean.info 'test-*'
1902 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov-clean.info
1903 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1905 # lcov doesn't work properly with vpath builds, make sure that bad
1906 # output is not uploaded by mistake.
1907 coverage-sync: coverage
1908 test "$(builddir)" = "$(srcdir)"
1909 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1912 lcov-run lcov-report:
1913 echo "Need to reconfigure with --enable-coverage"
1916 # ------------------------------------------------------------------------------
1917 systemd_analyze_SOURCES = \
1918 src/analyze/analyze.c \
1919 src/analyze/analyze-verify.c \
1920 src/analyze/analyze-verify.h
1922 systemd_verify_CFLAGS = \
1926 systemd_analyze_LDADD = \
1927 libsystemd-core.la \
1928 libsystemd-internal.la \
1929 libsystemd-shared.la \
1932 # ------------------------------------------------------------------------------
1933 systemd_initctl_SOURCES = \
1934 src/initctl/initctl.c
1936 systemd_initctl_LDADD = \
1937 libsystemd-internal.la \
1938 libsystemd-shared.la
1940 # ------------------------------------------------------------------------------
1941 systemd_update_utmp_SOURCES = \
1942 src/update-utmp/update-utmp.c
1944 systemd_update_utmp_CFLAGS = \
1948 systemd_update_utmp_LDADD = \
1949 libsystemd-internal.la \
1950 libsystemd-shared.la \
1953 # ------------------------------------------------------------------------------
1954 systemd_update_done_SOURCES = \
1955 src/update-done/update-done.c
1957 systemd_update_done_LDADD = \
1958 libsystemd-internal.la \
1959 libsystemd-label.la \
1960 libsystemd-shared.la
1962 # ------------------------------------------------------------------------------
1963 systemd_shutdownd_SOURCES = \
1964 src/shutdownd/shutdownd.c
1966 systemd_shutdownd_LDADD = \
1967 libsystemd-label.la \
1968 libsystemd-internal.la \
1969 libsystemd-shared.la
1972 src/systemd/sd-shutdown.h
1974 # ------------------------------------------------------------------------------
1975 systemd_shutdown_SOURCES = \
1978 src/core/shutdown.c \
1979 src/core/mount-setup.c \
1980 src/core/mount-setup.h \
1981 src/core/killall.h \
1984 systemd_shutdown_LDADD = \
1985 libsystemd-label.la \
1986 libudev-internal.la \
1987 libsystemd-shared.la
1989 # ------------------------------------------------------------------------------
1991 systemd_modules_load_SOURCES = \
1992 src/modules-load/modules-load.c
1994 systemd_modules_load_CFLAGS = \
1998 systemd_modules_load_LDADD = \
1999 libsystemd-shared.la \
2002 rootlibexec_PROGRAMS += \
2003 systemd-modules-load
2005 nodist_systemunit_DATA += \
2006 units/systemd-modules-load.service
2008 SYSINIT_TARGET_WANTS += \
2009 systemd-modules-load.service
2012 nodist_systemunit_DATA += \
2013 units/kmod-static-nodes.service
2015 SYSINIT_TARGET_WANTS += \
2016 kmod-static-nodes.service
2021 units/systemd-modules-load.service.in \
2022 units/kmod-static-nodes.service.in
2024 # ------------------------------------------------------------------------------
2026 systemd_tmpfiles_SOURCES = \
2027 src/tmpfiles/tmpfiles.c
2029 systemd_tmpfiles_LDADD = \
2030 libsystemd-units.la \
2031 libsystemd-label.la \
2032 libsystemd-capability.la \
2033 libsystemd-internal.la \
2034 libsystemd-shared.la
2036 rootbin_PROGRAMS += \
2039 dist_systemunit_DATA += \
2040 units/systemd-tmpfiles-clean.timer
2042 nodist_systemunit_DATA += \
2043 units/systemd-tmpfiles-setup-dev.service \
2044 units/systemd-tmpfiles-setup.service \
2045 units/systemd-tmpfiles-clean.service
2047 nodist_tmpfiles_DATA = \
2050 dist_tmpfiles_DATA = \
2051 tmpfiles.d/systemd.conf \
2052 tmpfiles.d/systemd-nologin.conf \
2053 tmpfiles.d/systemd-remote.conf \
2054 tmpfiles.d/tmp.conf \
2055 tmpfiles.d/x11.conf \
2059 dist_tmpfiles_DATA += \
2060 tmpfiles.d/legacy.conf
2063 SYSINIT_TARGET_WANTS += \
2064 systemd-tmpfiles-setup-dev.service \
2065 systemd-tmpfiles-setup.service
2067 dist_zshcompletion_DATA += \
2068 shell-completion/zsh/_systemd-tmpfiles
2070 TIMERS_TARGET_WANTS += \
2071 systemd-tmpfiles-clean.timer
2075 $(sysconfdir)/tmpfiles.d
2079 tmpfiles.d/etc.conf.m4 \
2080 units/systemd-tmpfiles-setup-dev.service.in \
2081 units/systemd-tmpfiles-setup.service.in \
2082 units/systemd-tmpfiles-clean.service.in
2087 # ------------------------------------------------------------------------------
2089 systemd_sysusers_SOURCES = \
2090 src/sysusers/sysusers.c
2092 systemd_sysusers_LDADD = \
2093 libsystemd-units.la \
2094 libsystemd-label.la \
2095 libsystemd-capability.la \
2096 libsystemd-internal.la \
2097 libsystemd-shared.la
2099 rootbin_PROGRAMS += \
2102 nodist_systemunit_DATA += \
2103 units/systemd-sysusers.service
2105 SYSINIT_TARGET_WANTS += \
2106 systemd-sysusers.service
2108 dist_sysusers_DATA = \
2109 sysusers.d/systemd.conf \
2110 sysusers.d/systemd-remote.conf
2112 nodist_sysusers_DATA = \
2113 sysusers.d/basic.conf
2116 units/systemd-sysusers.service.in \
2117 sysusers.d/basic.conf.in
2120 sysusers.d/basic.conf
2126 # ------------------------------------------------------------------------------
2127 dist_factory_etc_DATA = \
2128 factory/etc/nsswitch.conf
2131 dist_factory_pam_DATA = \
2132 factory/etc/pam.d/system-auth \
2133 factory/etc/pam.d/other
2136 # ------------------------------------------------------------------------------
2138 systemd_firstboot_SOURCES = \
2139 src/firstboot/firstboot.c
2141 systemd_firstboot_LDADD = \
2142 libsystemd-units.la \
2143 libsystemd-label.la \
2144 libsystemd-capability.la \
2145 libsystemd-internal.la \
2146 libsystemd-shared.la \
2149 rootbin_PROGRAMS += \
2152 nodist_systemunit_DATA += \
2153 units/systemd-firstboot.service
2156 units/systemd-firstboot.service.in
2158 SYSINIT_TARGET_WANTS += \
2159 systemd-firstboot.service
2162 # ------------------------------------------------------------------------------
2163 systemd_machine_id_setup_SOURCES = \
2164 src/machine-id-setup/machine-id-setup-main.c \
2165 src/core/machine-id-setup.c \
2166 src/core/machine-id-setup.h
2168 systemd_machine_id_setup_LDADD = \
2169 libsystemd-label.la \
2170 libsystemd-internal.la \
2171 libsystemd-shared.la
2173 # ------------------------------------------------------------------------------
2174 systemd_sysctl_SOURCES = \
2177 systemd_sysctl_LDADD = \
2178 libsystemd-shared.la
2180 # ------------------------------------------------------------------------------
2181 systemd_sleep_SOURCES = \
2184 systemd_sleep_LDADD = \
2185 libsystemd-shared.la
2187 # ------------------------------------------------------------------------------
2188 systemd_fsck_SOURCES = \
2191 systemd_fsck_LDADD = \
2192 libsystemd-internal.la \
2193 libudev-internal.la \
2194 libsystemd-shared.la
2196 # ------------------------------------------------------------------------------
2197 systemd_ac_power_SOURCES = \
2198 src/ac-power/ac-power.c
2200 systemd_ac_power_LDADD = \
2201 libudev-internal.la \
2202 libsystemd-shared.la
2204 # ------------------------------------------------------------------------------
2205 systemd_detect_virt_SOURCES = \
2206 src/detect-virt/detect-virt.c
2208 systemd_detect_virt_LDADD = \
2209 libsystemd-shared.la
2211 INSTALL_EXEC_HOOKS += \
2212 systemd-detect-virt-install-hook
2214 # ------------------------------------------------------------------------------
2215 systemd_delta_SOURCES = \
2218 systemd_delta_LDADD = \
2219 libsystemd-shared.la
2221 # ------------------------------------------------------------------------------
2222 systemd_getty_generator_SOURCES = \
2223 src/getty-generator/getty-generator.c
2225 systemd_getty_generator_LDADD = \
2226 libsystemd-label.la \
2227 libsystemd-shared.la
2229 # ------------------------------------------------------------------------------
2230 systemd_debug_generator_SOURCES = \
2231 src/debug-generator/debug-generator.c
2233 systemd_debug_generator_LDADD = \
2234 libsystemd-label.la \
2235 libsystemd-shared.la
2237 # ------------------------------------------------------------------------------
2238 systemd_fstab_generator_SOURCES = \
2239 src/fstab-generator/fstab-generator.c \
2240 src/core/mount-setup.c
2242 systemd_fstab_generator_LDADD = \
2243 libsystemd-label.la \
2244 libsystemd-shared.la
2246 # ------------------------------------------------------------------------------
2247 systemd_system_update_generator_SOURCES = \
2248 src/system-update-generator/system-update-generator.c
2250 systemd_system_update_generator_LDADD = \
2251 libsystemd-label.la \
2252 libsystemd-shared.la
2254 # ------------------------------------------------------------------------------
2256 systemgenerator_PROGRAMS += \
2257 systemd-hibernate-resume-generator
2259 rootlibexec_PROGRAMS += \
2260 systemd-hibernate-resume
2262 systemd_hibernate_resume_SOURCES = \
2263 src/hibernate-resume/hibernate-resume.c
2265 systemd_hibernate_resume_LDADD = \
2266 libsystemd-internal.la \
2267 libsystemd-shared.la
2269 systemd_hibernate_resume_generator_SOURCES = \
2270 src/hibernate-resume/hibernate-resume-generator.c
2272 systemd_hibernate_resume_generator_LDADD = \
2273 libsystemd-label.la \
2274 libsystemd-shared.la
2277 units/systemd-hibernate.service.in \
2278 units/systemd-hibernate-resume@.service.in \
2279 units/systemd-hybrid-sleep.service.in
2281 dist_systemunit_DATA += \
2282 units/hibernate.target \
2283 units/hybrid-sleep.target
2285 nodist_systemunit_DATA += \
2286 units/systemd-hibernate.service \
2287 units/systemd-hibernate-resume@.service \
2288 units/systemd-hybrid-sleep.service
2291 # ------------------------------------------------------------------------------
2293 systemgenerator_PROGRAMS += \
2294 systemd-efi-boot-generator
2296 systemd_efi_boot_generator_SOURCES = \
2297 src/efi-boot-generator/efi-boot-generator.c
2299 systemd_efi_boot_generator_LDADD = \
2300 libsystemd-label.la \
2301 libsystemd-shared.la
2303 # ------------------------------------------------------------------------------
2306 src/boot/boot-loader.h \
2307 src/boot/bootctl.c \
2308 src/boot/boot-loader.c \
2312 libsystemd-shared.la \
2313 libsystemd-internal.la
2318 dist_bashcompletion_DATA += \
2319 shell-completion/bash/bootctl
2321 dist_zshcompletion_DATA += \
2322 shell-completion/zsh/_bootctl
2326 # ------------------------------------------------------------------------------
2328 systemgenerator_PROGRAMS += \
2329 systemd-gpt-auto-generator
2331 systemd_gpt_auto_generator_SOURCES = \
2332 src/gpt-auto-generator/gpt-auto-generator.c \
2333 src/shared/blkid-util.h
2335 systemd_gpt_auto_generator_LDADD = \
2336 libsystemd-label.la \
2337 libsystemd-internal.la \
2338 libudev-internal.la \
2339 libsystemd-shared.la \
2342 systemd_gpt_auto_generator_CFLAGS = \
2347 # ------------------------------------------------------------------------------
2349 systemgenerator_PROGRAMS += \
2350 systemd-dbus1-generator
2352 systemd_dbus1_generator_SOURCES = \
2353 src/dbus1-generator/dbus1-generator.c
2355 systemd_dbus1_generator_LDADD = \
2356 libsystemd-label.la \
2357 libsystemd-shared.la \
2358 libsystemd-internal.la
2360 dbus1-generator-install-hook:
2361 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2362 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2363 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2365 dbus1-generator-uninstall-hook:
2366 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2368 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2369 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2372 # ------------------------------------------------------------------------------
2373 systemd_sysv_generator_SOURCES = \
2374 src/sysv-generator/sysv-generator.c
2376 systemd_sysv_generator_LDADD = \
2377 libsystemd-core.la \
2378 libsystemd-label.la \
2379 libsystemd-shared.la
2381 # ------------------------------------------------------------------------------
2382 systemd_rc_local_generator_SOURCES = \
2383 src/rc-local-generator/rc-local-generator.c
2385 systemd_rc_local_generator_LDADD = \
2386 libsystemd-label.la \
2387 libsystemd-shared.la
2389 # ------------------------------------------------------------------------------
2390 systemd_remount_fs_SOURCES = \
2391 src/remount-fs/remount-fs.c \
2392 src/core/mount-setup.c \
2393 src/core/mount-setup.h
2395 systemd_remount_fs_LDADD = \
2396 libsystemd-label.la \
2397 libsystemd-shared.la
2399 # ------------------------------------------------------------------------------
2400 systemd_cgroups_agent_SOURCES = \
2401 src/cgroups-agent/cgroups-agent.c
2403 systemd_cgroups_agent_LDADD = \
2404 libsystemd-internal.la \
2405 libsystemd-shared.la
2407 # ------------------------------------------------------------------------------
2408 systemd_escape_SOURCES = \
2411 systemd_escape_LDADD = \
2412 libsystemd-shared.la
2414 # -----------------------------------------------------------------------------
2415 systemctl_SOURCES = \
2416 src/systemctl/systemctl.c
2419 libsystemd-units.la \
2420 libsystemd-label.la \
2421 libsystemd-internal.la \
2422 libsystemd-logs.la \
2423 libsystemd-journal-internal.la \
2424 libsystemd-shared.la
2426 # ------------------------------------------------------------------------------
2427 systemd_notify_SOURCES = \
2430 systemd_notify_LDADD = \
2431 libsystemd-internal.la \
2432 libsystemd-shared.la
2434 # ------------------------------------------------------------------------------
2435 systemd_path_SOURCES = \
2438 systemd_path_LDADD = \
2439 libsystemd-internal.la \
2440 libsystemd-shared.la
2442 # ------------------------------------------------------------------------------
2443 systemd_ask_password_SOURCES = \
2444 src/ask-password/ask-password.c
2446 systemd_ask_password_LDADD = \
2447 libsystemd-label.la \
2448 libsystemd-shared.la
2450 # ------------------------------------------------------------------------------
2451 systemd_reply_password_SOURCES = \
2452 src/reply-password/reply-password.c
2454 systemd_reply_password_LDADD = \
2455 libsystemd-shared.la
2457 # ------------------------------------------------------------------------------
2458 systemd_cgls_SOURCES = \
2461 systemd_cgls_LDADD = \
2462 libsystemd-internal.la \
2463 libsystemd-shared.la
2465 # ------------------------------------------------------------------------------
2466 systemd_cgtop_SOURCES = \
2469 systemd_cgtop_LDADD = \
2470 libsystemd-shared.la
2472 # ------------------------------------------------------------------------------
2473 systemd_nspawn_SOURCES = \
2474 src/nspawn/nspawn.c \
2475 src/core/mount-setup.c \
2476 src/core/mount-setup.h \
2477 src/core/loopback-setup.c \
2478 src/core/loopback-setup.h
2480 systemd_nspawn_CFLAGS = \
2485 systemd_nspawn_LDADD = \
2486 libsystemd-label.la \
2487 libsystemd-capability.la \
2488 libsystemd-internal.la \
2489 libudev-internal.la \
2490 libsystemd-shared.la \
2494 systemd_nspawn_LDADD += \
2495 libsystemd-seccomp.la \
2499 # ------------------------------------------------------------------------------
2500 systemd_run_SOURCES = \
2503 systemd_run_LDADD = \
2504 libsystemd-label.la \
2505 libsystemd-capability.la \
2506 libsystemd-internal.la \
2507 libsystemd-shared.la
2509 # ------------------------------------------------------------------------------
2510 systemd_bus_proxyd_SOURCES = \
2511 src/bus-proxyd/bus-proxyd.c \
2512 src/bus-proxyd/bus-policy.c \
2513 src/bus-proxyd/bus-policy.h
2515 systemd_bus_proxyd_LDADD = \
2516 libsystemd-capability.la \
2517 libsystemd-internal.la \
2518 libsystemd-shared.la
2520 bus-proxyd-install-hook:
2521 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
2522 $(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2523 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
2525 bus-proxyd-uninstall-hook:
2526 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2528 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
2529 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
2532 nodist_systemunit_DATA += \
2533 units/systemd-bus-proxyd@.service
2535 dist_systemunit_DATA += \
2536 units/systemd-bus-proxyd.socket
2538 nodist_userunit_DATA += \
2539 units/user/systemd-bus-proxyd@.service
2541 dist_userunit_DATA += \
2542 units/user/systemd-bus-proxyd.socket
2546 units/systemd-bus-proxyd@.service.in \
2547 units/user/systemd-bus-proxyd@.service.in
2549 # ------------------------------------------------------------------------------
2550 systemd_tty_ask_password_agent_SOURCES = \
2551 src/tty-ask-password-agent/tty-ask-password-agent.c
2553 systemd_tty_ask_password_agent_LDADD = \
2554 libsystemd-label.la \
2555 libsystemd-shared.la
2557 # ------------------------------------------------------------------------------
2558 libsystemd_internal_la_SOURCES = \
2559 src/systemd/sd-bus.h \
2560 src/systemd/sd-bus-protocol.h \
2561 src/systemd/sd-bus-vtable.h \
2562 src/systemd/sd-utf8.h \
2563 src/systemd/sd-event.h \
2564 src/systemd/sd-rtnl.h \
2565 src/systemd/sd-resolve.h \
2566 src/systemd/sd-login.h \
2567 src/systemd/sd-id128.h \
2568 src/systemd/sd-daemon.h \
2569 src/systemd/sd-path.h \
2570 src/systemd/sd-network.h \
2571 src/libsystemd/sd-bus/sd-bus.c \
2572 src/libsystemd/sd-bus/bus-control.c \
2573 src/libsystemd/sd-bus/bus-control.h \
2574 src/libsystemd/sd-bus/bus-error.c \
2575 src/libsystemd/sd-bus/bus-error.h \
2576 src/libsystemd/sd-bus/bus-internal.c \
2577 src/libsystemd/sd-bus/bus-internal.h \
2578 src/libsystemd/sd-bus/bus-socket.c \
2579 src/libsystemd/sd-bus/bus-socket.h \
2580 src/libsystemd/sd-bus/bus-kernel.c \
2581 src/libsystemd/sd-bus/bus-kernel.h \
2582 src/libsystemd/sd-bus/bus-container.c \
2583 src/libsystemd/sd-bus/bus-container.h \
2584 src/libsystemd/sd-bus/bus-message.c \
2585 src/libsystemd/sd-bus/bus-message.h \
2586 src/libsystemd/sd-bus/bus-creds.c \
2587 src/libsystemd/sd-bus/bus-creds.h \
2588 src/libsystemd/sd-bus/bus-signature.c \
2589 src/libsystemd/sd-bus/bus-signature.h \
2590 src/libsystemd/sd-bus/bus-type.c \
2591 src/libsystemd/sd-bus/bus-type.h \
2592 src/libsystemd/sd-bus/bus-match.c \
2593 src/libsystemd/sd-bus/bus-match.h \
2594 src/libsystemd/sd-bus/bus-bloom.c \
2595 src/libsystemd/sd-bus/bus-bloom.h \
2596 src/libsystemd/sd-bus/bus-introspect.c \
2597 src/libsystemd/sd-bus/bus-introspect.h \
2598 src/libsystemd/sd-bus/bus-objects.c \
2599 src/libsystemd/sd-bus/bus-objects.h \
2600 src/libsystemd/sd-bus/bus-gvariant.c \
2601 src/libsystemd/sd-bus/bus-gvariant.h \
2602 src/libsystemd/sd-bus/bus-convenience.c \
2603 src/libsystemd/sd-bus/bus-track.c \
2604 src/libsystemd/sd-bus/bus-track.h \
2605 src/libsystemd/sd-bus/bus-util.c \
2606 src/libsystemd/sd-bus/bus-util.h \
2607 src/libsystemd/sd-bus/bus-slot.c \
2608 src/libsystemd/sd-bus/bus-slot.h \
2609 src/libsystemd/sd-bus/bus-protocol.h \
2610 src/libsystemd/sd-bus/kdbus.h \
2611 src/libsystemd/sd-utf8/sd-utf8.c \
2612 src/libsystemd/sd-event/sd-event.c \
2613 src/libsystemd/sd-event/event-util.h \
2614 src/libsystemd/sd-rtnl/sd-rtnl.c \
2615 src/libsystemd/sd-rtnl/rtnl-internal.h \
2616 src/libsystemd/sd-rtnl/rtnl-message.c \
2617 src/libsystemd/sd-rtnl/rtnl-types.h \
2618 src/libsystemd/sd-rtnl/rtnl-types.c \
2619 src/libsystemd/sd-rtnl/rtnl-util.h \
2620 src/libsystemd/sd-rtnl/rtnl-util.c \
2621 src/libsystemd/sd-rtnl/local-addresses.h \
2622 src/libsystemd/sd-rtnl/local-addresses.c \
2623 src/libsystemd/sd-id128/sd-id128.c \
2624 src/libsystemd/sd-daemon/sd-daemon.c \
2625 src/libsystemd/sd-login/sd-login.c \
2626 src/libsystemd/sd-path/sd-path.c \
2627 src/libsystemd/sd-network/sd-network.c \
2628 src/libsystemd/sd-network/network-util.h \
2629 src/libsystemd/sd-network/network-util.c
2631 nodist_libsystemd_internal_la_SOURCES = \
2632 src/libsystemd/libsystemd.sym
2634 libsystemd_internal_la_CFLAGS = \
2638 libsystemd_internal_la_LIBADD = \
2641 libsystemd_resolve_la_SOURCES = \
2642 src/libsystemd/sd-resolve/sd-resolve.c \
2643 src/libsystemd/sd-resolve/resolve-util.h
2645 libsystemd_resolve_la_CFLAGS = \
2649 libsystemd_resolve_la_LIBADD = \
2652 noinst_LTLIBRARIES += \
2653 libsystemd-internal.la \
2654 libsystemd-resolve.la
2656 libsystemd_dump_la_SOURCES = \
2657 src/libsystemd/sd-bus/bus-dump.c \
2658 src/libsystemd/sd-bus/bus-dump.h
2660 libsystemd_dump_la_CFLAGS = \
2664 noinst_LTLIBRARIES += \
2668 src/libsystemd/libsystemd.sym.m4 \
2669 src/libsystemd/libsystemd.pc.in \
2670 src/libsystemd/sd-bus/DIFFERENCES \
2671 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2674 src/libsystemd/libsystemd.sym
2677 src/libsystemd/libsystemd.sym
2679 libsystemd_la_SOURCES = \
2680 $(libsystemd_internal_la_SOURCES) \
2681 $(libsystemd_resolve_la_SOURCES) \
2682 $(libsystemd_journal_internal_la_SOURCES)
2684 nodist_libsystemd_la_SOURCES = \
2685 $(nodist_libsystemd_internal_la_SOURCES)
2687 libsystemd_la_CFLAGS = \
2688 $(libsystemd_internal_la_CFLAGS) \
2689 $(libsystemd_resolve_la_CFLAGS) \
2690 $(libsystemd_journal_internal_la_CFLAGS)
2692 libsystemd_la_LDFLAGS = \
2694 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2695 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2697 libsystemd_la_LIBADD = \
2698 libsystemd-shared.la \
2699 $(libsystemd_internal_la_LIBADD) \
2700 $(libsystemd_journal_internal_la_LIBADD) \
2701 $(libsystemd_resolve_la_LIBADD)
2703 libsystemd-install-hook:
2704 libname=libsystemd.so && $(move-to-rootlibdir)
2706 libsystemd-uninstall-hook:
2707 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2709 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2710 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2712 pkgconfiglib_DATA += \
2713 src/libsystemd/libsystemd.pc
2715 pkginclude_HEADERS += \
2716 src/systemd/sd-login.h \
2717 src/systemd/sd-id128.h \
2718 src/systemd/sd-daemon.h
2721 pkginclude_HEADERS += \
2722 src/systemd/sd-bus.h \
2723 src/systemd/sd-bus-protocol.h \
2724 src/systemd/sd-bus-vtable.h \
2725 src/systemd/sd-utf8.h \
2726 src/systemd/sd-event.h \
2727 src/systemd/sd-rtnl.h \
2728 src/systemd/sd-resolve.h \
2729 src/systemd/sd-path.h
2732 lib_LTLIBRARIES += \
2737 test-bus-signature \
2743 test-bus-kernel-bloom \
2744 test-bus-kernel-benchmark \
2745 test-bus-zero-copy \
2746 test-bus-introspect \
2758 test_bus_marshal_SOURCES = \
2759 src/libsystemd/sd-bus/test-bus-marshal.c
2761 test_bus_marshal_LDADD = \
2762 libsystemd-internal.la \
2763 libsystemd-shared.la \
2764 libsystemd-dump.la \
2765 libsystemd-capability.la \
2770 test_bus_marshal_CFLAGS = \
2776 test_bus_signature_SOURCES = \
2777 src/libsystemd/sd-bus/test-bus-signature.c
2779 test_bus_signature_LDADD = \
2780 libsystemd-shared.la \
2781 libsystemd-internal.la
2783 test_bus_chat_SOURCES = \
2784 src/libsystemd/sd-bus/test-bus-chat.c
2786 test_bus_chat_CFLAGS = \
2790 test_bus_chat_LDADD = \
2791 libsystemd-internal.la \
2792 libsystemd-shared.la
2794 test_bus_cleanup_SOURCES = \
2795 src/libsystemd/sd-bus/test-bus-cleanup.c
2797 test_bus_cleanup_CFLAGS = \
2801 test_bus_cleanup_LDADD = \
2802 libsystemd-internal.la \
2803 libsystemd-shared.la
2805 test_bus_server_SOURCES = \
2806 src/libsystemd/sd-bus/test-bus-server.c
2808 test_bus_server_CFLAGS = \
2812 test_bus_server_LDADD = \
2813 libsystemd-internal.la \
2814 libsystemd-shared.la
2816 test_bus_objects_SOURCES = \
2817 src/libsystemd/sd-bus/test-bus-objects.c
2819 test_bus_objects_CFLAGS = \
2824 test_bus_objects_LDADD = \
2825 libsystemd-internal.la \
2826 libsystemd-shared.la \
2827 libsystemd-dump.la \
2828 libsystemd-capability.la \
2831 test_bus_error_SOURCES = \
2832 src/libsystemd/sd-bus/test-bus-error.c
2834 test_bus_error_LDADD = \
2835 libsystemd-internal.la \
2836 libsystemd-shared.la
2838 test_bus_gvariant_SOURCES = \
2839 src/libsystemd/sd-bus/test-bus-gvariant.c
2841 test_bus_gvariant_LDADD = \
2842 libsystemd-internal.la \
2843 libsystemd-shared.la \
2844 libsystemd-dump.la \
2845 libsystemd-capability.la \
2849 test_bus_gvariant_CFLAGS = \
2854 test_bus_creds_SOURCES = \
2855 src/libsystemd/sd-bus/test-bus-creds.c
2857 test_bus_creds_LDADD = \
2858 libsystemd-internal.la \
2859 libsystemd-shared.la \
2860 libsystemd-dump.la \
2861 libsystemd-capability.la
2863 test_bus_match_SOURCES = \
2864 src/libsystemd/sd-bus/test-bus-match.c
2866 test_bus_match_LDADD = \
2867 libsystemd-internal.la \
2868 libsystemd-shared.la
2870 test_bus_kernel_SOURCES = \
2871 src/libsystemd/sd-bus/test-bus-kernel.c
2873 test_bus_kernel_LDADD = \
2874 libsystemd-internal.la \
2875 libsystemd-shared.la \
2876 libsystemd-dump.la \
2877 libsystemd-capability.la \
2880 test_bus_kernel_CFLAGS = \
2884 test_bus_kernel_bloom_SOURCES = \
2885 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
2887 test_bus_kernel_bloom_LDADD = \
2888 libsystemd-internal.la \
2889 libsystemd-shared.la
2891 test_bus_kernel_benchmark_SOURCES = \
2892 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
2894 test_bus_kernel_benchmark_LDADD = \
2895 libsystemd-internal.la \
2896 libsystemd-shared.la
2898 test_bus_zero_copy_SOURCES = \
2899 src/libsystemd/sd-bus/test-bus-zero-copy.c
2901 test_bus_zero_copy_LDADD = \
2902 libsystemd-internal.la \
2903 libsystemd-shared.la \
2904 libsystemd-dump.la \
2905 libsystemd-capability.la \
2908 test_bus_zero_copy_CFLAGS = \
2912 test_bus_introspect_SOURCES = \
2913 src/libsystemd/sd-bus/test-bus-introspect.c
2915 test_bus_introspect_LDADD = \
2916 libsystemd-internal.la \
2917 libsystemd-shared.la
2919 test_event_SOURCES = \
2920 src/libsystemd/sd-event/test-event.c
2922 test_event_LDADD = \
2923 libsystemd-internal.la \
2924 libsystemd-shared.la
2926 test_rtnl_SOURCES = \
2927 src/libsystemd/sd-rtnl/test-rtnl.c
2930 libsystemd-internal.la \
2931 libsystemd-shared.la
2933 test_resolve_SOURCES = \
2934 src/libsystemd/sd-resolve/test-resolve.c
2936 test_resolve_LDADD = \
2937 libsystemd-resolve.la \
2938 libsystemd-internal.la \
2939 libsystemd-shared.la
2941 test_resolve_CFLAGS = \
2946 src/libsystemd/sd-bus/busctl.c
2949 libsystemd-internal.la \
2950 libsystemd-shared.la \
2951 libsystemd-dump.la \
2952 libsystemd-capability.la \
2959 # ------------------------------------------------------------------------------
2960 noinst_LTLIBRARIES += \
2961 libsystemd-network.la
2963 libsystemd_network_la_CFLAGS = \
2967 libsystemd_network_la_SOURCES = \
2968 src/systemd/sd-dhcp-client.h \
2969 src/systemd/sd-dhcp-server.h \
2970 src/systemd/sd-dhcp-lease.h \
2971 src/systemd/sd-ipv4ll.h \
2972 src/systemd/sd-icmp6-nd.h \
2973 src/systemd/sd-dhcp6-client.h \
2974 src/systemd/sd-dhcp6-lease.h \
2975 src/systemd/sd-pppoe.h \
2976 src/libsystemd-network/sd-dhcp-client.c \
2977 src/libsystemd-network/sd-dhcp-server.c \
2978 src/libsystemd-network/dhcp-network.c \
2979 src/libsystemd-network/dhcp-option.c \
2980 src/libsystemd-network/dhcp-packet.c \
2981 src/libsystemd-network/dhcp-internal.h \
2982 src/libsystemd-network/dhcp-server-internal.h \
2983 src/libsystemd-network/dhcp-protocol.h \
2984 src/libsystemd-network/dhcp-lease-internal.h \
2985 src/libsystemd-network/sd-dhcp-lease.c \
2986 src/libsystemd-network/sd-ipv4ll.c \
2987 src/libsystemd-network/ipv4ll-network.c \
2988 src/libsystemd-network/ipv4ll-packet.c \
2989 src/libsystemd-network/ipv4ll-internal.h \
2990 src/libsystemd-network/sd-pppoe.c \
2991 src/libsystemd-network/network-internal.c \
2992 src/libsystemd-network/network-internal.h \
2993 src/libsystemd-network/sd-icmp6-nd.c \
2994 src/libsystemd-network/sd-dhcp6-client.c \
2995 src/libsystemd-network/dhcp6-internal.h \
2996 src/libsystemd-network/dhcp6-protocol.h \
2997 src/libsystemd-network/dhcp6-network.c \
2998 src/libsystemd-network/dhcp6-option.c \
2999 src/libsystemd-network/dhcp6-lease-internal.h \
3000 src/libsystemd-network/sd-dhcp6-lease.c
3002 libsystemd_network_la_LIBADD = \
3003 libudev-internal.la \
3004 libsystemd-label.la \
3005 libsystemd-internal.la \
3006 libsystemd-shared.la \
3009 test_dhcp_option_SOURCES = \
3010 src/libsystemd-network/dhcp-protocol.h \
3011 src/libsystemd-network/dhcp-internal.h \
3012 src/libsystemd-network/test-dhcp-option.c
3014 test_dhcp_option_LDADD = \
3015 libsystemd-network.la \
3016 libsystemd-internal.la \
3017 libsystemd-shared.la
3019 test_dhcp_client_SOURCES = \
3020 src/systemd/sd-dhcp-client.h \
3021 src/libsystemd-network/dhcp-protocol.h \
3022 src/libsystemd-network/dhcp-internal.h \
3023 src/libsystemd-network/test-dhcp-client.c
3025 test_dhcp_client_LDADD = \
3026 libsystemd-network.la \
3027 libsystemd-label.la \
3028 libsystemd-internal.la \
3029 libsystemd-shared.la
3031 test_dhcp_server_SOURCES = \
3032 src/libsystemd-network/test-dhcp-server.c
3034 test_dhcp_server_LDADD = \
3035 libsystemd-network.la \
3036 libsystemd-internal.la \
3037 libsystemd-shared.la
3039 test_ipv4ll_SOURCES = \
3040 src/systemd/sd-ipv4ll.h \
3041 src/libsystemd-network/ipv4ll-internal.h \
3042 src/libsystemd-network/test-ipv4ll.c
3044 test_ipv4ll_LDADD = \
3045 libsystemd-network.la \
3046 libsystemd-label.la \
3047 libsystemd-internal.la \
3048 libsystemd-shared.la
3050 test_pppoe_SOURCES = \
3051 src/systemd/sd-pppoe.h \
3052 src/libsystemd-network/test-pppoe.c
3054 test_pppoe_LDADD = \
3055 libsystemd-network.la \
3056 libsystemd-shared.la
3058 test_icmp6_rs_SOURCES = \
3059 src/systemd/sd-dhcp6-client.h \
3060 src/systemd/sd-icmp6-nd.h \
3061 src/libsystemd-network/dhcp6-internal.h \
3062 src/libsystemd-network/test-icmp6-rs.c
3064 test_icmp6_rs_LDADD = \
3065 libsystemd-network.la \
3066 libsystemd-internal.la \
3067 libsystemd-shared.la
3069 test_dhcp6_client_SOURCES = \
3070 src/systemd/sd-dhcp6-client.h \
3071 src/libsystemd-network/dhcp6-internal.h \
3072 src/libsystemd-network/test-dhcp6-client.c
3074 test_dhcp6_client_LDADD = \
3075 libsystemd-network.la \
3076 libsystemd-internal.la \
3077 libsystemd-shared.la
3090 # ------------------------------------------------------------------------------
3092 noinst_LTLIBRARIES += \
3093 libsystemd-terminal.la
3095 rootlibexec_PROGRAMS += \
3098 noinst_PROGRAMS += \
3103 dist_pkgdata_DATA += \
3104 src/libsystemd-terminal/unifont-glyph-array.bin
3106 nodist_userunit_DATA += \
3107 units/user/systemd-consoled.service
3109 USER_DEFAULT_TARGET_WANTS += \
3110 systemd-consoled.service
3113 units/user/systemd-consoled.service.in
3121 libsystemd_terminal_la_CFLAGS = \
3125 libsystemd_terminal_la_SOURCES = \
3126 src/libsystemd-terminal/grdev.h \
3127 src/libsystemd-terminal/grdev-internal.h \
3128 src/libsystemd-terminal/grdev.c \
3129 src/libsystemd-terminal/grdev-drm.c \
3130 src/libsystemd-terminal/idev.h \
3131 src/libsystemd-terminal/idev-internal.h \
3132 src/libsystemd-terminal/idev.c \
3133 src/libsystemd-terminal/idev-evdev.c \
3134 src/libsystemd-terminal/idev-keyboard.c \
3135 src/libsystemd-terminal/sysview.h \
3136 src/libsystemd-terminal/sysview-internal.h \
3137 src/libsystemd-terminal/sysview.c \
3138 src/libsystemd-terminal/term.h \
3139 src/libsystemd-terminal/term-internal.h \
3140 src/libsystemd-terminal/term-charset.c \
3141 src/libsystemd-terminal/term-page.c \
3142 src/libsystemd-terminal/term-parser.c \
3143 src/libsystemd-terminal/term-screen.c \
3144 src/libsystemd-terminal/term-wcwidth.c \
3145 src/libsystemd-terminal/unifont.h \
3146 src/libsystemd-terminal/unifont-def.h \
3147 src/libsystemd-terminal/unifont.c
3149 libsystemd_terminal_la_LIBADD = \
3150 libudev-internal.la \
3151 libsystemd-internal.la \
3152 libsystemd-shared.la \
3155 systemd_consoled_CFLAGS = \
3159 systemd_consoled_SOURCES = \
3160 src/console/consoled.h \
3161 src/console/consoled.c \
3162 src/console/consoled-display.c \
3163 src/console/consoled-manager.c \
3164 src/console/consoled-session.c \
3165 src/console/consoled-terminal.c \
3166 src/console/consoled-workspace.c
3168 systemd_consoled_LDADD = \
3169 libsystemd-terminal.la \
3170 libsystemd-internal.la \
3171 libsystemd-shared.la \
3174 systemd_evcat_CFLAGS = \
3178 systemd_evcat_SOURCES = \
3179 src/libsystemd-terminal/evcat.c
3181 systemd_evcat_LDADD = \
3182 libsystemd-terminal.la \
3183 libsystemd-internal.la \
3184 libsystemd-shared.la \
3187 systemd_modeset_CFLAGS = \
3191 systemd_modeset_SOURCES = \
3192 src/libsystemd-terminal/modeset.c
3194 systemd_modeset_LDADD = \
3195 libsystemd-terminal.la \
3196 libsystemd-internal.la \
3197 libsystemd-shared.la \
3200 systemd_subterm_SOURCES = \
3201 src/libsystemd-terminal/subterm.c
3203 systemd_subterm_LDADD = \
3204 libsystemd-terminal.la \
3205 libsystemd-internal.la \
3206 libsystemd-shared.la
3208 test_term_page_SOURCES = \
3209 src/libsystemd-terminal/test-term-page.c
3211 test_term_page_LDADD = \
3212 libsystemd-terminal.la \
3213 libsystemd-internal.la \
3214 libsystemd-shared.la
3216 test_term_parser_SOURCES = \
3217 src/libsystemd-terminal/test-term-parser.c
3219 test_term_parser_LDADD = \
3220 libsystemd-terminal.la \
3221 libsystemd-internal.la \
3222 libsystemd-shared.la
3224 test_unifont_SOURCES = \
3225 src/libsystemd-terminal/test-unifont.c
3227 test_unifont_LDADD = \
3228 libsystemd-terminal.la \
3229 libsystemd-internal.la \
3230 libsystemd-shared.la
3232 .PHONY: update-unifont
3233 update-unifont: tools/compile-unifont.py
3234 $(AM_V_GEN)$(PYTHON) $< \
3235 <$(top_srcdir)/src/libsystemd-terminal/unifont.hex \
3236 >$(top_srcdir)/src/libsystemd-terminal/unifont-glyph-array.bin
3237 @echo "unifont-glyph-array.bin has been regenerated"
3239 # ------------------------------------------------------------------------------
3249 include_HEADERS += \
3250 src/libudev/libudev.h
3252 lib_LTLIBRARIES += \
3255 libudev_la_SOURCES =\
3256 src/libudev/libudev.sym \
3257 src/libudev/libudev-private.h \
3258 src/libudev/libudev.c \
3259 src/libudev/libudev-list.c \
3260 src/libudev/libudev-util.c \
3261 src/libudev/libudev-device.c \
3262 src/libudev/libudev-enumerate.c \
3263 src/libudev/libudev-monitor.c \
3264 src/libudev/libudev-queue.c \
3265 src/libudev/libudev-hwdb-def.h \
3266 src/libudev/libudev-hwdb.c
3268 libudev_la_CFLAGS = \
3272 libudev_la_LDFLAGS = \
3274 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3275 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3277 libudev_la_LIBADD = \
3278 libsystemd-internal.la \
3279 libsystemd-shared.la
3281 pkgconfiglib_DATA += \
3282 src/libudev/libudev.pc
3285 src/libudev/libudev.pc.in
3288 src/libudev/libudev.pc \
3293 $(AM_V_at)$(MKDIR_P) $(dir $@)
3294 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
3297 $(AM_V_at)$(MKDIR_P) $(dir $@)
3298 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
3300 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3301 libudev-install-hook:
3302 libname=libudev.so && $(move-to-rootlibdir)
3304 libudev-uninstall-hook:
3305 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3307 INSTALL_EXEC_HOOKS += libudev-install-hook
3308 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3310 # ------------------------------------------------------------------------------
3311 noinst_LTLIBRARIES += \
3314 libudev_internal_la_SOURCES =\
3315 $(libudev_la_SOURCES) \
3316 src/libudev/libudev-device-private.c
3318 libudev_internal_la_CFLAGS = \
3320 -fvisibility=default
3322 # ------------------------------------------------------------------------------
3324 $(sysconfdir)/udev/rules.d \
3325 $(sysconfdir)/udev/hwdb.d
3327 dist_network_DATA = \
3328 network/99-default.link \
3329 network/80-container-host0.network \
3330 network/80-container-ve.network
3332 dist_udevrules_DATA += \
3333 rules/42-usb-hid-pm.rules \
3334 rules/50-udev-default.rules \
3335 rules/60-drm.rules \
3336 rules/60-keyboard.rules \
3337 rules/60-persistent-storage-tape.rules \
3338 rules/60-persistent-serial.rules \
3339 rules/60-persistent-input.rules \
3340 rules/60-persistent-alsa.rules \
3341 rules/60-persistent-storage.rules \
3342 rules/64-btrfs.rules \
3343 rules/75-net-description.rules \
3344 rules/75-tty-description.rules \
3345 rules/78-sound-card.rules \
3346 rules/80-net-setup-link.rules \
3347 rules/95-udev-late.rules
3349 nodist_udevrules_DATA += \
3350 rules/99-systemd.rules
3352 dist_udevhwdb_DATA = \
3353 hwdb/20-pci-vendor-model.hwdb \
3354 hwdb/20-pci-classes.hwdb \
3355 hwdb/20-usb-vendor-model.hwdb \
3356 hwdb/20-usb-classes.hwdb \
3357 hwdb/20-sdio-vendor-model.hwdb \
3358 hwdb/20-sdio-classes.hwdb \
3359 hwdb/20-bluetooth-vendor-product.hwdb \
3360 hwdb/20-acpi-vendor.hwdb \
3362 hwdb/20-net-ifname.hwdb \
3363 hwdb/60-keyboard.hwdb
3365 udevconfdir = $(sysconfdir)/udev
3366 dist_udevconf_DATA = \
3369 sharepkgconfigdir = $(datadir)/pkgconfig
3370 sharepkgconfig_DATA = \
3374 rules/99-systemd.rules.in \
3378 rules/99-systemd.rules \
3382 units/systemd-udevd.service.in \
3383 units/systemd-udev-trigger.service.in \
3384 units/systemd-udev-settle.service.in \
3385 units/systemd-udev-hwdb-update.service.in
3388 units/systemd-udevd.service \
3389 units/systemd-udev-trigger.service \
3390 units/systemd-udev-settle.service \
3391 units/systemd-udev-hwdb-update.service
3393 SOCKETS_TARGET_WANTS += \
3394 systemd-udevd-control.socket \
3395 systemd-udevd-kernel.socket
3397 SYSINIT_TARGET_WANTS += \
3398 systemd-udevd.service \
3399 systemd-udev-trigger.service \
3400 systemd-udev-hwdb-update.service
3402 rootbin_PROGRAMS += \
3405 rootlibexec_PROGRAMS += \
3408 noinst_LTLIBRARIES += \
3411 src/udev/keyboard-keys.txt:
3412 $(AM_V_at)$(MKDIR_P) $(dir $@)
3413 $(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/' > $@
3415 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
3416 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3418 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3419 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3421 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
3422 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
3424 libudev_core_la_SOURCES = \
3426 src/udev/udev-event.c \
3427 src/udev/udev-watch.c \
3428 src/udev/udev-node.c \
3429 src/udev/udev-rules.c \
3430 src/udev/udev-ctrl.c \
3431 src/udev/udev-builtin.c \
3432 src/udev/udev-builtin-btrfs.c \
3433 src/udev/udev-builtin-hwdb.c \
3434 src/udev/udev-builtin-input_id.c \
3435 src/udev/udev-builtin-keyboard.c \
3436 src/udev/udev-builtin-net_id.c \
3437 src/udev/udev-builtin-net_setup_link.c \
3438 src/udev/udev-builtin-path_id.c \
3439 src/udev/udev-builtin-usb_id.c \
3440 src/udev/net/link-config.h \
3441 src/udev/net/link-config.c \
3442 src/udev/net/ethtool-util.h \
3443 src/udev/net/ethtool-util.c
3445 nodist_libudev_core_la_SOURCES = \
3446 src/udev/keyboard-keys-from-name.h \
3447 src/udev/keyboard-keys-to-name.h \
3448 src/udev/net/link-config-gperf.c
3451 $(nodist_libudev_core_la_SOURCES)
3454 src/udev/keyboard-keys-from-name.gperf \
3455 src/udev/keyboard-keys.txt \
3456 src/udev/net/link-config-gperf.c
3459 src/udev/net/link-config-gperf.gperf
3461 libudev_core_la_CFLAGS = \
3466 libudev_core_la_LIBADD = \
3467 libudev-internal.la \
3468 libsystemd-label.la \
3469 libsystemd-internal.la \
3470 libsystemd-network.la \
3471 libsystemd-shared.la \
3476 libudev_core_la_SOURCES += \
3477 src/udev/udev-builtin-kmod.c
3479 dist_udevrules_DATA += \
3480 rules/80-drivers.rules
3484 libudev_core_la_SOURCES += \
3485 src/udev/udev-builtin-blkid.c
3489 libudev_core_la_SOURCES += \
3490 src/udev/udev-builtin-uaccess.c \
3491 src/login/logind-acl.c \
3492 src/libsystemd/sd-login/sd-login.c \
3493 src/systemd/sd-login.h
3495 libudev_core_la_LIBADD += \
3499 systemd_udevd_SOURCES = \
3502 systemd_udevd_LDADD = \
3504 libsystemd-capability.la
3507 src/udev/udevadm.c \
3508 src/udev/udevadm-info.c \
3509 src/udev/udevadm-control.c \
3510 src/udev/udevadm-monitor.c \
3511 src/udev/udevadm-hwdb.c \
3512 src/udev/udevadm-settle.c \
3513 src/udev/udevadm-trigger.c \
3514 src/udev/udevadm-test.c \
3515 src/udev/udevadm-test-builtin.c
3519 libsystemd-capability.la
3521 # Update hwdb on installation. Do not bother if installing
3522 # in DESTDIR, since this is likely for packaging purposes.
3524 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
3526 INSTALL_DATA_HOOKS += \
3530 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3532 # ------------------------------------------------------------------------------
3541 test_libudev_SOURCES = \
3542 src/test/test-libudev.c
3544 test_libudev_LDADD = \
3545 libsystemd-label.la \
3546 libudev-internal.la \
3547 libsystemd-shared.la
3549 test_udev_SOURCES = \
3550 src/test/test-udev.c
3554 libsystemd-capability.la \
3560 test_udev_LDADD += \
3567 # packed sysfs test tree
3569 $(AM_V_at)$(MKDIR_P) $(dir $@)
3570 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3574 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3579 test/rules-test.sh \
3580 test/rule-syntax-check.py
3582 # ------------------------------------------------------------------------------
3584 src/udev/ata_id/ata_id.c
3587 libudev-internal.la \
3588 libsystemd-shared.la
3590 udevlibexec_PROGRAMS += \
3593 # ------------------------------------------------------------------------------
3594 cdrom_id_SOURCES = \
3595 src/udev/cdrom_id/cdrom_id.c
3598 libudev-internal.la \
3599 libsystemd-shared.la
3601 udevlibexec_PROGRAMS += \
3604 dist_udevrules_DATA += \
3605 rules/60-cdrom_id.rules
3607 # ------------------------------------------------------------------------------
3609 src/udev/collect/collect.c
3612 libudev-internal.la \
3613 libsystemd-shared.la
3615 udevlibexec_PROGRAMS += \
3618 # ------------------------------------------------------------------------------
3620 src/udev/scsi_id/scsi_id.c \
3621 src/udev/scsi_id/scsi_serial.c \
3622 src/udev/scsi_id/scsi.h \
3623 src/udev/scsi_id/scsi_id.h
3626 libudev-internal.la \
3627 libsystemd-shared.la
3629 udevlibexec_PROGRAMS += \
3633 src/udev/scsi_id/README
3635 # ------------------------------------------------------------------------------
3637 src/udev/v4l_id/v4l_id.c
3642 udevlibexec_PROGRAMS += \
3645 dist_udevrules_DATA += \
3646 rules/60-persistent-v4l.rules
3648 # ------------------------------------------------------------------------------
3649 accelerometer_SOURCES = \
3650 src/udev/accelerometer/accelerometer.c
3652 accelerometer_LDADD = \
3653 libudev-internal.la -lm \
3654 libsystemd-shared.la
3656 udevlibexec_PROGRAMS += \
3659 dist_udevrules_DATA += \
3660 rules/61-accelerometer.rules
3662 # ------------------------------------------------------------------------------
3669 libgudev_includedir = \
3670 $(includedir)/gudev-1.0/gudev
3672 libgudev_include_HEADERS = \
3674 src/gudev/gudevenums.h \
3675 src/gudev/gudevenumtypes.h \
3676 src/gudev/gudevtypes.h \
3677 src/gudev/gudevclient.h \
3678 src/gudev/gudevdevice.h \
3679 src/gudev/gudevenumerator.h
3681 lib_LTLIBRARIES += libgudev-1.0.la
3683 pkgconfiglib_DATA += \
3684 src/gudev/gudev-1.0.pc
3687 src/gudev/gudev-1.0.pc
3689 libgudev_1_0_la_SOURCES = \
3690 src/gudev/libgudev-1.0.sym \
3691 src/gudev/gudevenums.h \
3692 src/gudev/gudevenumtypes.h \
3693 src/gudev/gudevenumtypes.h\
3694 src/gudev/gudevtypes.h \
3695 src/gudev/gudevclient.h \
3696 src/gudev/gudevclient.c \
3697 src/gudev/gudevdevice.h \
3698 src/gudev/gudevdevice.c \
3699 src/gudev/gudevenumerator.h \
3700 src/gudev/gudevenumerator.c \
3701 src/gudev/gudevprivate.h
3703 nodist_libgudev_1_0_la_SOURCES = \
3704 src/gudev/gudevmarshal.h \
3705 src/gudev/gudevmarshal.c \
3706 src/gudev/gudevenumtypes.h \
3707 src/gudev/gudevenumtypes.c
3710 $(nodist_libgudev_1_0_la_SOURCES)
3712 libgudev_1_0_la_CPPFLAGS = \
3714 -I$(top_builddir)/src\
3715 -I$(top_srcdir)/src\
3716 -I$(top_builddir)/src/gudev \
3717 -I$(top_srcdir)/src/gudev \
3718 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3719 -D_GUDEV_COMPILATION \
3720 -DG_LOG_DOMAIN=\"GUdev\"
3722 libgudev_1_0_la_CFLAGS = \
3724 -fvisibility=default \
3727 libgudev_1_0_la_LIBADD = \
3731 libgudev_1_0_la_LDFLAGS = \
3733 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3736 -Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym
3738 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3739 $(AM_V_at)$(MKDIR_P) $(dir $@)
3740 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3742 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3743 $(AM_V_at)$(MKDIR_P) $(dir $@)
3744 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3745 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3747 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3748 $(AM_V_at)$(MKDIR_P) $(dir $@)
3749 $(AM_V_GEN)glib-mkenums --template $^ > $@
3751 if HAVE_INTROSPECTION
3752 -include $(INTROSPECTION_MAKEFILE)
3754 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3756 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3758 src_gudev_GUdev_1_0_gir_CFLAGS = \
3761 -D_GUDEV_COMPILATION \
3762 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3763 -I$(top_srcdir)/src \
3764 -I$(top_builddir)/src \
3765 -I$(top_srcdir)/src/gudev \
3766 -I$(top_builddir)/src/gudev
3768 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
3770 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
3771 --pkg-export=gudev-1.0 \
3774 src_gudev_GUdev_1_0_gir_FILES = \
3776 src/gudev/gudevtypes.h \
3777 src/gudev/gudevenums.h \
3778 src/gudev/gudevenumtypes.h \
3779 src/gudev/gudevclient.h \
3780 src/gudev/gudevdevice.h \
3781 src/gudev/gudevenumerator.h \
3782 src/gudev/gudevclient.c \
3783 src/gudev/gudevdevice.c \
3784 src/gudev/gudevenumerator.c
3786 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
3787 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
3789 girdir = $(datadir)/gir-1.0
3791 src/gudev/GUdev-1.0.gir
3793 typelibsdir = $(libdir)/girepository-1.0
3795 src/gudev/GUdev-1.0.typelib
3797 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
3798 endif # HAVE_INTROSPECTION
3802 src/gudev/gudev-1.0.pc.in \
3803 src/gudev/gudevmarshal.list \
3804 src/gudev/gudevenumtypes.h.template \
3805 src/gudev/gudevenumtypes.c.template \
3806 src/gudev/gjs-example.js \
3807 src/gudev/seed-example-enum.js \
3808 src/gudev/seed-example.js
3810 # ------------------------------------------------------------------------------
3811 mtd_probe_SOURCES = \
3812 src/udev/mtd_probe/mtd_probe.c \
3813 src/udev/mtd_probe/mtd_probe.h \
3814 src/udev/mtd_probe/probe_smartmedia.c
3816 dist_udevrules_DATA += \
3817 rules/75-probe_mtd.rules
3819 udevlibexec_PROGRAMS += \
3822 # ------------------------------------------------------------------------------
3823 test_id128_SOURCES = \
3824 src/test/test-id128.c
3826 test_id128_LDADD = \
3827 libsystemd-internal.la \
3828 libsystemd-shared.la
3833 # ------------------------------------------------------------------------------
3835 rootlibexec_PROGRAMS += \
3838 systemd_activate_SOURCES = \
3839 src/activate/activate.c
3841 systemd_activate_LDADD = \
3842 libsystemd-label.la \
3843 libsystemd-internal.la \
3844 libsystemd-shared.la
3846 # ------------------------------------------------------------------------------
3847 systemd_journald_SOURCES = \
3848 src/journal/journald.c \
3849 src/journal/journald-server.h
3851 systemd_journald_LDADD = \
3852 libsystemd-journal-core.la \
3853 libsystemd-internal.la \
3854 libsystemd-shared.la
3856 systemd_cat_SOURCES = \
3859 systemd_cat_LDADD = \
3860 libsystemd-journal-core.la
3863 rootlibexec_PROGRAMS += \
3864 systemd-journal-remote
3866 systemd_journal_remote_SOURCES = \
3867 src/journal-remote/journal-remote-parse.h \
3868 src/journal-remote/journal-remote-parse.c \
3869 src/journal-remote/journal-remote-write.h \
3870 src/journal-remote/journal-remote-write.c \
3871 src/journal-remote/journal-remote.h \
3872 src/journal-remote/journal-remote.c
3874 systemd_journal_remote_LDADD = \
3875 libsystemd-internal.la \
3876 libsystemd-journal-core.la
3878 systemd_journal_remote_SOURCES += \
3879 src/journal-remote/microhttpd-util.h \
3880 src/journal-remote/microhttpd-util.c
3882 systemd_journal_remote_CFLAGS = \
3884 $(MICROHTTPD_CFLAGS)
3886 systemd_journal_remote_LDADD += \
3890 systemd_journal_remote_LDADD += \
3893 # systemd-journal-remote make sense mostly with full crypto stack
3894 dist_systemunit_DATA += \
3895 units/systemd-journal-remote.socket
3897 nodist_systemunit_DATA += \
3898 units/systemd-journal-remote.service
3901 units/systemd-journal-remote.service.in
3903 journal-remote-install-hook: journal-install-hook
3904 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
3905 -chown 0:0 $(DESTDIR)/var/log/journal/remote
3906 -chmod 755 $(DESTDIR)/var/log/journal/remote
3908 INSTALL_EXEC_HOOKS += journal-remote-install-hook
3912 nodist_pkgsysconf_DATA += \
3913 src/journal-remote/journal-remote.conf
3916 src/journal-remote/journal-remote.conf.in
3919 src/journal-remote/journal-remote.conf
3923 rootlibexec_PROGRAMS += \
3924 systemd-journal-upload
3926 systemd_journal_upload_SOURCES = \
3927 src/journal-remote/journal-upload.h \
3928 src/journal-remote/journal-upload.c \
3929 src/journal-remote/journal-upload-journal.c
3931 systemd_journal_upload_CFLAGS = \
3935 systemd_journal_upload_LDADD = \
3936 libsystemd-internal.la \
3937 libsystemd-journal-internal.la \
3938 libsystemd-shared.la \
3941 nodist_systemunit_DATA += \
3942 units/systemd-journal-upload.service
3945 units/systemd-journal-upload.service.in
3947 nodist_pkgsysconf_DATA += \
3948 src/journal-remote/journal-upload.conf
3951 src/journal-remote/journal-upload.conf.in
3954 src/journal-remote/journal-upload.conf
3957 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3958 journalctl_CFLAGS = \
3961 journalctl_SOURCES = \
3962 src/journal/journalctl.c
3964 journalctl_LDADD = \
3965 libsystemd-journal-internal.la \
3966 libsystemd-internal.la \
3967 libsystemd-logs.la \
3968 libsystemd-shared.la
3971 journalctl_LDADD += \
3976 journalctl_SOURCES += \
3977 src/journal/journal-qrcode.c \
3978 src/journal/journal-qrcode.h
3980 journalctl_CFLAGS += \
3983 journalctl_LDADD += \
3987 test_journal_SOURCES = \
3988 src/journal/test-journal.c
3990 test_journal_LDADD = \
3991 libsystemd-journal-core.la
3993 test_journal_send_SOURCES = \
3994 src/journal/test-journal-send.c
3996 test_journal_send_LDADD = \
3997 libsystemd-journal-core.la
3999 test_journal_syslog_SOURCES = \
4000 src/journal/test-journal-syslog.c
4002 test_journal_syslog_LDADD = \
4003 libsystemd-journal-core.la
4005 test_journal_match_SOURCES = \
4006 src/journal/test-journal-match.c
4008 test_journal_match_LDADD = \
4009 libsystemd-journal-core.la
4011 test_journal_enum_SOURCES = \
4012 src/journal/test-journal-enum.c
4014 test_journal_enum_LDADD = \
4015 libsystemd-journal-core.la
4017 test_journal_stream_SOURCES = \
4018 src/journal/test-journal-stream.c
4020 test_journal_stream_LDADD = \
4021 libsystemd-journal-core.la
4023 test_journal_flush_SOURCES = \
4024 src/journal/test-journal-flush.c
4026 test_journal_flush_LDADD = \
4027 libsystemd-journal-core.la
4029 test_journal_init_SOURCES = \
4030 src/journal/test-journal-init.c
4032 test_journal_init_LDADD = \
4033 libsystemd-journal-core.la
4035 test_journal_verify_SOURCES = \
4036 src/journal/test-journal-verify.c
4038 test_journal_verify_LDADD = \
4039 libsystemd-journal-core.la
4041 test_journal_interleaving_SOURCES = \
4042 src/journal/test-journal-interleaving.c
4044 test_journal_interleaving_LDADD = \
4045 libsystemd-journal-core.la
4047 test_mmap_cache_SOURCES = \
4048 src/journal/test-mmap-cache.c
4050 test_mmap_cache_LDADD = \
4051 libsystemd-journal-core.la
4053 test_catalog_SOURCES = \
4054 src/journal/test-catalog.c
4056 test_catalog_CPPFLAGS = \
4058 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
4060 test_catalog_LDADD = \
4061 libsystemd-journal-core.la
4063 test_compress_SOURCES = \
4064 src/journal/test-compress.c
4066 test_compress_LDADD = \
4067 libsystemd-journal-internal.la \
4068 libsystemd-shared.la
4070 test_compress_benchmark_SOURCES = \
4071 src/journal/test-compress-benchmark.c
4073 test_compress_benchmark_LDADD = \
4074 libsystemd-journal-internal.la \
4075 libsystemd-shared.la
4077 libsystemd_journal_core_la_SOURCES = \
4078 src/journal/journald-kmsg.c \
4079 src/journal/journald-kmsg.h \
4080 src/journal/journald-syslog.c \
4081 src/journal/journald-syslog.h \
4082 src/journal/journald-stream.c \
4083 src/journal/journald-stream.h \
4084 src/journal/journald-server.c \
4085 src/journal/journald-server.h \
4086 src/journal/journald-console.c \
4087 src/journal/journald-console.h \
4088 src/journal/journald-wall.c \
4089 src/journal/journald-wall.h \
4090 src/journal/journald-native.c \
4091 src/journal/journald-native.h \
4092 src/journal/journald-audit.c \
4093 src/journal/journald-audit.h \
4094 src/journal/journald-rate-limit.c \
4095 src/journal/journald-rate-limit.h \
4096 src/journal/journal-internal.h
4098 nodist_libsystemd_journal_core_la_SOURCES = \
4099 src/journal/journald-gperf.c
4101 libsystemd_journal_core_la_LIBADD = \
4102 libsystemd-journal-internal.la \
4103 libudev-internal.la \
4104 libsystemd-capability.la \
4105 libsystemd-label.la \
4106 libsystemd-internal.la \
4107 libsystemd-shared.la
4110 libsystemd_journal_core_la_LIBADD += \
4114 noinst_LTLIBRARIES += \
4115 libsystemd-journal-core.la
4117 journal-install-hook:
4118 -$(MKDIR_P) $(DESTDIR)/var/log/journal
4119 -chown 0:0 $(DESTDIR)/var/log/journal
4120 -chmod 755 $(DESTDIR)/var/log/journal
4121 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4122 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4124 journal-uninstall-hook:
4125 -rmdir $(DESTDIR)/var/log/journal/remote
4126 -rmdir $(DESTDIR)/var/log/journal/
4128 INSTALL_EXEC_HOOKS += journal-install-hook
4129 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4131 # ------------------------------------------------------------------------------
4132 # Update catalog on installation. Do not bother if installing
4133 # in DESTDIR, since this is likely for packaging purposes.
4134 catalog-update-hook:
4135 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4137 INSTALL_DATA_HOOKS += \
4140 catalog-remove-hook:
4141 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4143 UNINSTALL_DATA_HOOKS += \
4152 test-journal-syslog \
4153 test-journal-match \
4154 test-journal-stream \
4156 test-journal-verify \
4157 test-journal-interleaving \
4158 test-journal-flush \
4165 test-compress-benchmark
4168 pkginclude_HEADERS += \
4169 src/systemd/sd-journal.h \
4170 src/systemd/sd-messages.h \
4171 src/systemd/_sd-common.h
4173 libsystemd_journal_internal_la_SOURCES = \
4174 src/journal/sd-journal.c \
4175 src/systemd/sd-journal.h \
4176 src/systemd/_sd-common.h \
4177 src/journal/journal-file.c \
4178 src/journal/journal-file.h \
4179 src/journal/journal-vacuum.c \
4180 src/journal/journal-vacuum.h \
4181 src/journal/journal-verify.c \
4182 src/journal/journal-verify.h \
4183 src/journal/lookup3.c \
4184 src/journal/lookup3.h \
4185 src/journal/journal-send.c \
4186 src/journal/journal-def.h \
4187 src/journal/compress.h \
4188 src/journal/catalog.c \
4189 src/journal/catalog.h \
4190 src/journal/mmap-cache.c \
4191 src/journal/mmap-cache.h
4193 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4194 libsystemd_journal_internal_la_CFLAGS = \
4197 libsystemd_journal_internal_la_LIBADD =
4199 libsystemd_journal_internal_la_SOURCES += \
4200 src/journal/compress.c
4203 libsystemd_journal_internal_la_CFLAGS += \
4206 libsystemd_journal_internal_la_LIBADD += \
4211 libsystemd_journal_internal_la_LIBADD += \
4216 libsystemd_journal_internal_la_SOURCES += \
4217 src/journal/journal-authenticate.c \
4218 src/journal/journal-authenticate.h \
4219 src/journal/fsprg.c \
4222 libsystemd_journal_internal_la_LIBADD += \
4225 # fsprg.c is a drop-in file using void pointer arithmetic
4226 libsystemd_journal_internal_la_CFLAGS += \
4231 noinst_LTLIBRARIES += \
4232 libsystemd-journal-internal.la
4234 rootlibexec_PROGRAMS += \
4237 rootbin_PROGRAMS += \
4243 dist_systemunit_DATA += \
4244 units/systemd-journald.socket \
4245 units/systemd-journald-dev-log.socket \
4246 units/systemd-journald-audit.socket
4248 nodist_systemunit_DATA += \
4249 units/systemd-journald.service \
4250 units/systemd-journal-flush.service \
4251 units/systemd-journal-catalog-update.service
4253 dist_pkgsysconf_DATA += \
4254 src/journal/journald.conf
4256 dist_catalog_DATA = \
4257 catalog/systemd.fr.catalog \
4258 catalog/systemd.it.catalog \
4259 catalog/systemd.pl.catalog \
4260 catalog/systemd.ru.catalog \
4261 catalog/systemd.catalog
4263 SOCKETS_TARGET_WANTS += \
4264 systemd-journald.socket \
4265 systemd-journald-dev-log.socket \
4266 systemd-journald-audit.socket
4268 SYSINIT_TARGET_WANTS += \
4269 systemd-journald.service \
4270 systemd-journal-flush.service \
4271 systemd-journal-catalog-update.service
4274 units/systemd-journald.service.in \
4275 units/systemd-journal-flush.service.in \
4276 units/systemd-journal-catalog-update.service.in \
4277 src/journal/journald-gperf.gperf
4280 src/journal/journald-gperf.c
4282 # ------------------------------------------------------------------------------
4284 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4286 rootlibexec_PROGRAMS += \
4287 systemd-journal-gatewayd
4289 systemd_journal_gatewayd_SOURCES = \
4290 src/journal-remote/journal-gatewayd.c \
4291 src/journal-remote/microhttpd-util.h \
4292 src/journal-remote/microhttpd-util.c
4294 systemd_journal_gatewayd_LDADD = \
4295 libsystemd-logs.la \
4296 libsystemd-journal-internal.la \
4297 libsystemd-internal.la \
4298 libsystemd-shared.la \
4302 systemd_journal_gatewayd_LDADD += \
4306 systemd_journal_gatewayd_CFLAGS = \
4308 $(MICROHTTPD_CFLAGS)
4310 systemd_journal_gatewayd_CPPFLAGS = \
4312 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4314 dist_systemunit_DATA += \
4315 units/systemd-journal-gatewayd.socket
4317 nodist_systemunit_DATA += \
4318 units/systemd-journal-gatewayd.service
4320 dist_gatewayddocumentroot_DATA = \
4321 src/journal-remote/browse.html
4326 units/systemd-journal-gatewayd.service.in
4328 # ------------------------------------------------------------------------------
4330 systemd_socket_proxyd_SOURCES = \
4331 src/socket-proxy/socket-proxyd.c
4333 systemd_socket_proxyd_LDADD = \
4334 libsystemd-logs.la \
4335 libsystemd-internal.la \
4336 libsystemd-journal-internal.la \
4337 libsystemd-shared.la \
4338 libsystemd-resolve.la
4340 # ------------------------------------------------------------------------------
4342 systemd_coredump_SOURCES = \
4343 src/journal/coredump.c \
4344 src/journal/coredump-vacuum.c \
4345 src/journal/coredump-vacuum.h
4347 systemd_coredump_LDADD = \
4348 libsystemd-journal-internal.la \
4349 libsystemd-label.la \
4350 libsystemd-internal.la \
4351 libsystemd-shared.la
4354 systemd_coredump_SOURCES += \
4355 src/journal/stacktrace.c \
4356 src/journal/stacktrace.h
4358 systemd_coredump_LDADD += \
4362 rootlibexec_PROGRAMS += \
4365 dist_pkgsysconf_DATA += \
4366 src/journal/coredump.conf
4369 systemd_coredump_LDADD += \
4373 coredumpctl_SOURCES = \
4374 src/journal/coredumpctl.c
4376 coredumpctl_LDADD = \
4377 libsystemd-journal-internal.la \
4378 libsystemd-internal.la \
4379 libsystemd-shared.la
4385 test-coredump-vacuum
4387 test_coredump_vacuum_SOURCES = \
4388 src/journal/test-coredump-vacuum.c \
4389 src/journal/coredump-vacuum.c \
4390 src/journal/coredump-vacuum.h
4392 test_coredump_vacuum_LDADD = \
4393 libsystemd-internal.la \
4394 libsystemd-shared.la
4396 dist_bashcompletion_DATA += \
4397 shell-completion/bash/coredumpctl
4399 dist_zshcompletion_DATA += \
4400 shell-completion/zsh/_coredumpctl
4403 sysctl.d/50-coredump.conf
4406 sysctl.d/50-coredump.conf
4410 sysctl.d/50-coredump.conf.in
4412 # ------------------------------------------------------------------------------
4414 systemd_binfmt_SOURCES = \
4417 systemd_binfmt_LDADD = \
4418 libsystemd-shared.la
4420 rootlibexec_PROGRAMS += \
4423 dist_systemunit_DATA += \
4424 units/proc-sys-fs-binfmt_misc.automount \
4425 units/proc-sys-fs-binfmt_misc.mount
4427 nodist_systemunit_DATA += \
4428 units/systemd-binfmt.service
4431 $(prefix)/lib/binfmt.d \
4432 $(sysconfdir)/binfmt.d
4434 SYSINIT_TARGET_WANTS += \
4435 systemd-binfmt.service \
4436 proc-sys-fs-binfmt_misc.automount
4441 units/systemd-binfmt.service.in
4443 # ------------------------------------------------------------------------------
4445 systemd_vconsole_setup_SOURCES = \
4446 src/vconsole/vconsole-setup.c
4448 systemd_vconsole_setup_LDADD = \
4449 libsystemd-shared.la
4451 rootlibexec_PROGRAMS += \
4452 systemd-vconsole-setup
4454 nodist_systemunit_DATA += \
4455 units/systemd-vconsole-setup.service
4457 dist_udevrules_DATA += \
4458 src/vconsole/90-vconsole.rules
4460 SYSINIT_TARGET_WANTS += \
4461 systemd-vconsole-setup.service
4465 units/systemd-vconsole-setup.service.in
4467 # ------------------------------------------------------------------------------
4469 systemd_bootchart_SOURCES = \
4470 src/bootchart/bootchart.c \
4471 src/bootchart/bootchart.h \
4472 src/bootchart/store.c \
4473 src/bootchart/store.h \
4474 src/bootchart/svg.c \
4477 systemd_bootchart_LDADD = \
4478 libsystemd-journal-internal.la \
4479 libsystemd-shared.la
4481 rootlibexec_PROGRAMS += \
4484 dist_pkgsysconf_DATA += \
4485 src/bootchart/bootchart.conf
4488 # ------------------------------------------------------------------------------
4489 if ENABLE_QUOTACHECK
4490 rootlibexec_PROGRAMS += \
4493 nodist_systemunit_DATA += \
4494 units/systemd-quotacheck.service
4496 systemd_quotacheck_SOURCES = \
4497 src/quotacheck/quotacheck.c
4499 systemd_quotacheck_LDADD = \
4500 libsystemd-shared.la
4504 units/systemd-quotacheck.service.in
4506 nodist_systemunit_DATA += \
4507 units/quotaon.service
4509 # ------------------------------------------------------------------------------
4510 if ENABLE_RANDOMSEED
4511 rootlibexec_PROGRAMS += \
4514 nodist_systemunit_DATA += \
4515 units/systemd-random-seed.service
4517 systemd_random_seed_SOURCES = \
4518 src/random-seed/random-seed.c
4520 systemd_random_seed_LDADD = \
4521 libsystemd-label.la \
4522 libsystemd-shared.la
4524 SYSINIT_TARGET_WANTS += \
4525 systemd-random-seed.service
4530 units/systemd-random-seed.service.in
4532 # ------------------------------------------------------------------------------
4534 rootlibexec_PROGRAMS += \
4537 nodist_systemunit_DATA += \
4538 units/systemd-backlight@.service
4540 systemd_backlight_SOURCES = \
4541 src/backlight/backlight.c
4543 systemd_backlight_LDADD = \
4544 libsystemd-label.la \
4545 libudev-internal.la \
4546 libsystemd-shared.la
4550 units/systemd-backlight@.service.in
4552 # ------------------------------------------------------------------------------
4554 rootlibexec_PROGRAMS += \
4557 nodist_systemunit_DATA += \
4558 units/systemd-rfkill@.service
4560 systemd_rfkill_SOURCES = \
4563 systemd_rfkill_LDADD = \
4564 libsystemd-label.la \
4565 libudev-internal.la \
4566 libsystemd-shared.la
4570 units/systemd-rfkill@.service.in
4572 # ------------------------------------------------------------------------------
4573 if HAVE_LIBCRYPTSETUP
4574 rootlibexec_PROGRAMS += \
4577 systemgenerator_PROGRAMS += \
4578 systemd-cryptsetup-generator
4580 dist_systemunit_DATA += \
4581 units/cryptsetup.target \
4582 units/cryptsetup-pre.target
4584 systemd_cryptsetup_SOURCES = \
4585 src/cryptsetup/cryptsetup.c
4587 systemd_cryptsetup_CFLAGS = \
4589 $(LIBCRYPTSETUP_CFLAGS)
4591 systemd_cryptsetup_LDADD = \
4592 libsystemd-label.la \
4593 libudev-internal.la \
4594 libsystemd-shared.la \
4595 $(LIBCRYPTSETUP_LIBS)
4597 systemd_cryptsetup_generator_SOURCES = \
4598 src/cryptsetup/cryptsetup-generator.c
4600 systemd_cryptsetup_generator_LDADD = \
4601 libsystemd-label.la \
4602 libsystemd-shared.la
4604 SYSINIT_TARGET_WANTS += \
4609 # ------------------------------------------------------------------------------
4611 systemd_hostnamed_SOURCES = \
4612 src/hostname/hostnamed.c
4614 systemd_hostnamed_LDADD = \
4615 libsystemd-label.la \
4616 libsystemd-internal.la \
4617 libsystemd-shared.la
4619 rootlibexec_PROGRAMS += \
4622 nodist_systemunit_DATA += \
4623 units/systemd-hostnamed.service
4625 dist_systemunit_DATA_busnames += \
4626 units/org.freedesktop.hostname1.busname
4628 dist_dbuspolicy_DATA += \
4629 src/hostname/org.freedesktop.hostname1.conf
4631 dist_dbussystemservice_DATA += \
4632 src/hostname/org.freedesktop.hostname1.service
4634 polkitpolicy_files += \
4635 src/hostname/org.freedesktop.hostname1.policy
4637 SYSTEM_UNIT_ALIASES += \
4638 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4640 BUSNAMES_TARGET_WANTS += \
4641 org.freedesktop.hostname1.busname
4643 hostnamectl_SOURCES = \
4644 src/hostname/hostnamectl.c
4646 hostnamectl_LDADD = \
4647 libsystemd-internal.la \
4648 libsystemd-shared.la
4653 dist_bashcompletion_DATA += \
4654 shell-completion/bash/hostnamectl
4656 dist_zshcompletion_DATA += \
4657 shell-completion/zsh/_hostnamectl
4661 polkitpolicy_in_files += \
4662 src/hostname/org.freedesktop.hostname1.policy.in
4665 units/systemd-hostnamed.service.in
4667 # ------------------------------------------------------------------------------
4668 dist_systemunit_DATA_busnames += \
4669 units/org.freedesktop.systemd1.busname
4671 BUSNAMES_TARGET_WANTS += \
4672 org.freedesktop.systemd1.busname
4674 # ------------------------------------------------------------------------------
4676 systemd_localed_SOURCES = \
4677 src/locale/localed.c
4679 systemd_localed_LDADD = \
4680 libsystemd-label.la \
4681 libsystemd-internal.la \
4682 libsystemd-shared.la
4684 nodist_systemunit_DATA += \
4685 units/systemd-localed.service
4687 dist_systemunit_DATA_busnames += \
4688 units/org.freedesktop.locale1.busname
4690 rootlibexec_PROGRAMS += \
4693 dist_dbuspolicy_DATA += \
4694 src/locale/org.freedesktop.locale1.conf
4696 dist_dbussystemservice_DATA += \
4697 src/locale/org.freedesktop.locale1.service
4699 polkitpolicy_files += \
4700 src/locale/org.freedesktop.locale1.policy
4702 SYSTEM_UNIT_ALIASES += \
4703 systemd-localed.service dbus-org.freedesktop.locale1.service
4705 BUSNAMES_TARGET_WANTS += \
4706 org.freedesktop.locale1.busname
4708 dist_pkgdata_DATA += \
4709 src/locale/kbd-model-map
4711 dist_noinst_SCRIPT = \
4712 src/locale/generate-kbd-model-map
4714 localectl_SOURCES = \
4715 src/locale/localectl.c
4718 libsystemd-internal.la \
4719 libsystemd-shared.la
4724 dist_bashcompletion_DATA += \
4725 shell-completion/bash/localectl
4727 dist_zshcompletion_DATA += \
4728 shell-completion/zsh/_localectl
4732 .PHONY: update-kbd-model-map
4734 polkitpolicy_in_files += \
4735 src/locale/org.freedesktop.locale1.policy.in
4738 units/systemd-localed.service.in
4740 # ------------------------------------------------------------------------------
4742 systemd_timedated_SOURCES = \
4743 src/timedate/timedated.c
4745 systemd_timedated_LDADD = \
4746 libsystemd-label.la \
4747 libsystemd-internal.la \
4748 libsystemd-shared.la
4750 rootlibexec_PROGRAMS += \
4753 dist_dbussystemservice_DATA += \
4754 src/timedate/org.freedesktop.timedate1.service
4756 dist_dbuspolicy_DATA += \
4757 src/timedate/org.freedesktop.timedate1.conf
4759 nodist_systemunit_DATA += \
4760 units/systemd-timedated.service
4762 dist_systemunit_DATA_busnames += \
4763 units/org.freedesktop.timedate1.busname
4765 polkitpolicy_files += \
4766 src/timedate/org.freedesktop.timedate1.policy
4768 SYSTEM_UNIT_ALIASES += \
4769 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4771 BUSNAMES_TARGET_WANTS += \
4772 org.freedesktop.timedate1.busname
4774 timedatectl_SOURCES = \
4775 src/timedate/timedatectl.c
4777 timedatectl_LDADD = \
4778 libsystemd-internal.la \
4779 libsystemd-shared.la
4784 dist_bashcompletion_DATA += \
4785 shell-completion/bash/timedatectl
4787 dist_zshcompletion_DATA += \
4788 shell-completion/zsh/_timedatectl
4791 polkitpolicy_in_files += \
4792 src/timedate/org.freedesktop.timedate1.policy.in
4795 units/systemd-timedated.service.in
4797 # ------------------------------------------------------------------------------
4799 systemd_timesyncd_SOURCES = \
4800 src/timesync/timesyncd.c \
4801 src/timesync/timesyncd-manager.c \
4802 src/timesync/timesyncd-manager.h \
4803 src/timesync/timesyncd-conf.c \
4804 src/timesync/timesyncd-conf.h \
4805 src/timesync/timesyncd-server.c \
4806 src/timesync/timesyncd-server.h
4808 nodist_systemd_timesyncd_SOURCES = \
4809 src/timesync/timesyncd-gperf.c
4812 src/timesync/timesyncd-gperf.gperf
4815 src/timesync/timesyncd-gperf.c
4817 systemd_timesyncd_LDADD = \
4818 libsystemd-resolve.la \
4819 libsystemd-network.la \
4820 libsystemd-label.la \
4821 libsystemd-capability.la \
4822 libsystemd-internal.la \
4823 libsystemd-shared.la \
4826 rootlibexec_PROGRAMS += \
4829 nodist_systemunit_DATA += \
4830 units/systemd-timesyncd.service
4832 GENERAL_ALIASES += \
4833 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
4836 units/systemd-timesyncd.service.in
4838 nodist_pkgsysconf_DATA += \
4839 src/timesync/timesyncd.conf
4842 src/timesync/timesyncd.conf.in
4845 src/timesync/timesyncd.conf
4848 # ------------------------------------------------------------------------------
4850 libnss_myhostname_la_SOURCES = \
4851 src/nss-myhostname/nss-myhostname.sym \
4852 src/nss-myhostname/nss-myhostname.c
4854 libnss_myhostname_la_LDFLAGS = \
4861 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
4863 libnss_myhostname_la_LIBADD = \
4864 libsystemd-shared.la \
4865 libsystemd-internal.la
4867 lib_LTLIBRARIES += \
4868 libnss_myhostname.la
4871 # ------------------------------------------------------------------------------
4873 systemd_machined_SOURCES = \
4874 src/machine/machined.c \
4875 src/machine/machined.h
4877 systemd_machined_LDADD = \
4878 libsystemd-machine-core.la
4880 rootlibexec_PROGRAMS += \
4883 libsystemd_machine_core_la_SOURCES = \
4884 src/machine/machined-dbus.c \
4885 src/machine/machine.c \
4886 src/machine/machine.h \
4887 src/machine/machine-dbus.c
4889 libsystemd_machine_core_la_LIBADD = \
4890 libsystemd-label.la \
4891 libsystemd-internal.la \
4892 libudev-internal.la \
4893 libsystemd-shared.la
4895 noinst_LTLIBRARIES += \
4896 libsystemd-machine-core.la
4898 machinectl_SOURCES = \
4899 src/machine/machinectl.c
4901 machinectl_LDADD = \
4902 libsystemd-internal.la \
4903 libsystemd-shared.la
4905 rootbin_PROGRAMS += \
4908 dist_bashcompletion_DATA += \
4909 shell-completion/bash/machinectl
4911 test_machine_tables_SOURCES = \
4912 src/machine/test-machine-tables.c
4914 test_machine_tables_LDADD = \
4915 libsystemd-machine-core.la
4920 nodist_systemunit_DATA += \
4921 units/systemd-machined.service
4923 dist_systemunit_DATA += \
4926 dist_systemunit_DATA_busnames += \
4927 units/org.freedesktop.machine1.busname
4929 dist_dbussystemservice_DATA += \
4930 src/machine/org.freedesktop.machine1.service
4932 dist_dbuspolicy_DATA += \
4933 src/machine/org.freedesktop.machine1.conf
4935 dist_zshcompletion_DATA += \
4936 shell-completion/zsh/_machinectl \
4937 shell-completion/zsh/_sd_machines
4939 SYSTEM_UNIT_ALIASES += \
4940 systemd-machined.service dbus-org.freedesktop.machine1.service
4942 BUSNAMES_TARGET_WANTS += \
4943 org.freedesktop.machine1.busname
4946 units/systemd-machined.service.in
4948 libnss_mymachines_la_SOURCES = \
4949 src/nss-mymachines/nss-mymachines.sym \
4950 src/nss-mymachines/nss-mymachines.c
4952 libnss_mymachines_la_LDFLAGS = \
4959 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
4961 libnss_mymachines_la_LIBADD = \
4962 libsystemd-shared.la \
4963 libsystemd-internal.la
4965 lib_LTLIBRARIES += \
4966 libnss_mymachines.la
4969 # ------------------------------------------------------------------------------
4971 systemd_resolved_SOURCES = \
4972 src/resolve/resolved.c \
4973 src/resolve/resolved-manager.c \
4974 src/resolve/resolved-manager.h \
4975 src/resolve/resolved-conf.c \
4976 src/resolve/resolved-conf.h \
4977 src/resolve/resolved-bus.c \
4978 src/resolve/resolved-bus.h \
4979 src/resolve/resolved-link.h \
4980 src/resolve/resolved-link.c \
4981 src/resolve/resolved-def.h \
4982 src/resolve/resolved-dns-domain.h \
4983 src/resolve/resolved-dns-domain.c \
4984 src/resolve/resolved-dns-rr.h \
4985 src/resolve/resolved-dns-rr.c \
4986 src/resolve/resolved-dns-question.h \
4987 src/resolve/resolved-dns-question.c \
4988 src/resolve/resolved-dns-answer.h \
4989 src/resolve/resolved-dns-answer.c \
4990 src/resolve/resolved-dns-packet.h \
4991 src/resolve/resolved-dns-packet.c \
4992 src/resolve/resolved-dns-query.h \
4993 src/resolve/resolved-dns-query.c \
4994 src/resolve/resolved-dns-transaction.h \
4995 src/resolve/resolved-dns-transaction.c \
4996 src/resolve/resolved-dns-scope.h \
4997 src/resolve/resolved-dns-scope.c \
4998 src/resolve/resolved-dns-server.h \
4999 src/resolve/resolved-dns-server.c \
5000 src/resolve/resolved-dns-cache.h \
5001 src/resolve/resolved-dns-cache.c \
5002 src/resolve/resolved-dns-zone.h \
5003 src/resolve/resolved-dns-zone.c \
5004 src/resolve/resolved-dns-stream.h \
5005 src/resolve/resolved-dns-stream.c \
5006 src/resolve/dns-type.c \
5007 src/resolve/dns-type.h \
5008 src/resolve/dns_type-from-name.h \
5009 src/resolve/dns_type-to-name.h
5011 nodist_systemd_resolved_SOURCES = \
5012 src/resolve/resolved-gperf.c
5015 src/resolve/resolved-gperf.gperf \
5016 src/resolve/dns_type-from-name.gperf
5019 src/resolve/resolved-gperf.c
5021 systemd_resolved_LDADD = \
5022 libsystemd-capability.la \
5023 libsystemd-network.la \
5024 libsystemd-label.la \
5025 libsystemd-internal.la \
5026 libsystemd-shared.la \
5030 rootlibexec_PROGRAMS += \
5033 nodist_systemunit_DATA += \
5034 units/systemd-resolved.service
5036 dist_systemunit_DATA_busnames += \
5037 units/org.freedesktop.resolve1.busname
5039 dist_dbuspolicy_DATA += \
5040 src/resolve/org.freedesktop.resolve1.conf
5042 dist_dbussystemservice_DATA += \
5043 src/resolve/org.freedesktop.resolve1.service
5046 units/systemd-resolved.service.in
5048 SYSTEM_UNIT_ALIASES += \
5049 systemd-resolved.service dbus-org.freedesktop.resolve1.service
5051 BUSNAMES_TARGET_WANTS += \
5052 org.freedesktop.resolve1.busname
5054 GENERAL_ALIASES += \
5055 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
5057 nodist_pkgsysconf_DATA += \
5058 src/resolve/resolved.conf
5061 src/resolve/resolved.conf.in
5064 src/resolve/resolved.conf
5069 test_dns_domain_SOURCES = \
5070 src/resolve/resolved-dns-domain.h \
5071 src/resolve/resolved-dns-domain.c \
5072 src/resolve/test-dns-domain.c
5074 test_dns_domain_LDADD = \
5075 libsystemd-capability.la \
5076 libsystemd-network.la \
5077 libsystemd-label.la \
5078 libsystemd-internal.la \
5079 libsystemd-shared.la \
5082 libnss_resolve_la_SOURCES = \
5083 src/nss-resolve/nss-resolve.sym \
5084 src/nss-resolve/nss-resolve.c
5086 libnss_resolve_la_LDFLAGS = \
5093 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
5095 libnss_resolve_la_LIBADD = \
5096 libsystemd-shared.la \
5097 libsystemd-internal.la
5099 lib_LTLIBRARIES += \
5102 systemd_resolve_host_SOURCES = \
5103 src/resolve-host/resolve-host.c \
5104 src/resolve/resolved-dns-packet.c \
5105 src/resolve/resolved-dns-packet.h \
5106 src/resolve/resolved-dns-rr.c \
5107 src/resolve/resolved-dns-rr.h \
5108 src/resolve/resolved-dns-answer.c \
5109 src/resolve/resolved-dns-answer.h \
5110 src/resolve/resolved-dns-question.c \
5111 src/resolve/resolved-dns-question.h \
5112 src/resolve/resolved-dns-domain.c \
5113 src/resolve/resolved-dns-domain.h \
5114 src/resolve/dns-type.c \
5115 src/resolve/dns-type.h \
5116 src/resolve/dns_type-from-name.h \
5117 src/resolve/dns_type-to-name.h
5119 systemd_resolve_host_LDADD = \
5120 libsystemd-internal.la \
5121 libsystemd-shared.la \
5125 rootlibexec_PROGRAMS += \
5126 systemd-resolve-host
5130 # ------------------------------------------------------------------------------
5132 rootlibexec_PROGRAMS += \
5135 systemd_networkd_SOURCES = \
5136 src/network/networkd.c
5138 systemd_networkd_LDADD = \
5139 libsystemd-networkd-core.la \
5140 libsystemd-capability.la
5142 noinst_LTLIBRARIES += \
5143 libsystemd-networkd-core.la
5145 libsystemd_networkd_core_la_CFLAGS = \
5148 libsystemd_networkd_core_la_SOURCES = \
5149 src/libsystemd-network/network-internal.h \
5150 src/network/networkd.h \
5151 src/network/networkd-link.h \
5152 src/network/networkd-netdev.h \
5153 src/network/networkd-netdev-tunnel.h \
5154 src/network/networkd-netdev-veth.h \
5155 src/network/networkd-netdev-vxlan.h \
5156 src/network/networkd-netdev-vlan.h \
5157 src/network/networkd-netdev-macvlan.h \
5158 src/network/networkd-netdev-dummy.h \
5159 src/network/networkd-netdev-tuntap.h \
5160 src/network/networkd-netdev-bond.h \
5161 src/network/networkd-netdev-bridge.h \
5162 src/network/networkd-netdev.c \
5163 src/network/networkd-netdev-tunnel.c \
5164 src/network/networkd-netdev-veth.c \
5165 src/network/networkd-netdev-vxlan.c \
5166 src/network/networkd-netdev-vlan.c \
5167 src/network/networkd-netdev-macvlan.c \
5168 src/network/networkd-netdev-dummy.c \
5169 src/network/networkd-netdev-tuntap.c \
5170 src/network/networkd-netdev-bond.c \
5171 src/network/networkd-netdev-bridge.c \
5172 src/network/networkd-link.c \
5173 src/network/networkd-ipv4ll.c \
5174 src/network/networkd-dhcp4.c \
5175 src/network/networkd-network.c \
5176 src/network/networkd-address.c \
5177 src/network/networkd-route.c \
5178 src/network/networkd-manager.c \
5179 src/network/networkd-address-pool.c
5181 nodist_libsystemd_networkd_core_la_SOURCES = \
5182 src/network/networkd-network-gperf.c \
5183 src/network/networkd-netdev-gperf.c
5185 libsystemd_networkd_core_la_LIBADD = \
5186 libudev-internal.la \
5187 libsystemd-internal.la \
5188 libsystemd-network.la \
5189 libsystemd-label.la \
5190 libsystemd-shared.la
5192 rootlibexec_PROGRAMS += \
5193 systemd-networkd-wait-online
5195 systemd_networkd_wait_online_CFLAGS = \
5198 systemd_networkd_wait_online_SOURCES = \
5199 src/libsystemd-network/network-internal.h \
5200 src/network/networkd-wait-online.h \
5201 src/network/networkd-wait-online-link.h \
5202 src/network/networkd-wait-online.c \
5203 src/network/networkd-wait-online-manager.c \
5204 src/network/networkd-wait-online-link.c
5206 systemd_networkd_wait_online_LDADD = \
5207 libsystemd-network.la \
5208 libudev-internal.la \
5209 libsystemd-internal.la \
5210 libsystemd-shared.la
5212 rootbin_PROGRAMS += \
5215 networkctl_SOURCES = \
5216 src/network/networkctl.c
5218 networkctl_LDADD = \
5219 libsystemd-internal.la \
5220 libudev-internal.la \
5221 libsystemd-shared.la \
5222 libsystemd-network.la
5224 test_network_SOURCES = \
5225 src/network/test-network.c
5227 test_network_LDADD = \
5228 libsystemd-networkd-core.la \
5229 libsystemd-capability.la
5231 test_network_tables_SOURCES = \
5232 src/network/test-network-tables.c \
5233 src/shared/test-tables.h
5235 test_network_tables_LDADD = \
5236 libsystemd-networkd-core.la \
5243 nodist_systemunit_DATA += \
5244 units/systemd-networkd.service \
5245 units/systemd-networkd-wait-online.service
5247 GENERAL_ALIASES += \
5248 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5249 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5252 src/network/networkd-network-gperf.gperf \
5253 src/network/networkd-netdev-gperf.gperf \
5254 units/systemd-networkd.service.in \
5255 units/systemd-networkd-wait-online.service.in
5258 src/network/networkd-network-gperf.c \
5259 src/network/networkd-netdev-gperf.c
5262 # ------------------------------------------------------------------------------
5264 systemd_logind_SOURCES = \
5265 src/login/logind.c \
5268 nodist_systemd_logind_SOURCES = \
5269 src/login/logind-gperf.c
5271 systemd_logind_LDADD = \
5272 libsystemd-logind-core.la
5274 libsystemd_logind_core_la_SOURCES = \
5275 src/login/logind-core.c \
5276 src/login/logind-device.c \
5277 src/login/logind-device.h \
5278 src/login/logind-button.c \
5279 src/login/logind-button.h \
5280 src/login/logind-action.c \
5281 src/login/logind-action.h \
5282 src/login/logind-seat.c \
5283 src/login/logind-seat.h \
5284 src/login/logind-session.c \
5285 src/login/logind-session.h \
5286 src/login/logind-session-device.c \
5287 src/login/logind-session-device.h \
5288 src/login/logind-user.c \
5289 src/login/logind-user.h \
5290 src/login/logind-inhibit.c \
5291 src/login/logind-inhibit.h \
5292 src/login/logind-dbus.c \
5293 src/login/logind-session-dbus.c \
5294 src/login/logind-seat-dbus.c \
5295 src/login/logind-user-dbus.c \
5296 src/login/logind-acl.h
5298 libsystemd_logind_core_la_LIBADD = \
5299 libsystemd-label.la \
5300 libsystemd-capability.la \
5301 libsystemd-internal.la \
5302 libudev-internal.la \
5303 libsystemd-shared.la
5306 libsystemd_logind_core_la_SOURCES += \
5307 src/login/logind-acl.c
5309 libsystemd_logind_core_la_LIBADD += \
5313 noinst_LTLIBRARIES += \
5314 libsystemd-logind-core.la
5316 systemd_user_sessions_SOURCES = \
5317 src/login/user-sessions.c
5319 systemd_user_sessions_LDADD = \
5320 libsystemd-shared.la
5322 rootlibexec_PROGRAMS += \
5324 systemd-user-sessions
5326 loginctl_SOURCES = \
5327 src/login/loginctl.c \
5328 src/login/sysfs-show.c
5331 libsystemd-internal.la \
5332 libudev-internal.la \
5333 libsystemd-shared.la
5335 rootbin_PROGRAMS += \
5338 dist_bashcompletion_DATA += \
5339 shell-completion/bash/loginctl
5341 dist_zshcompletion_DATA += \
5342 shell-completion/zsh/_loginctl \
5343 shell-completion/zsh/_systemd-inhibit
5345 systemd_inhibit_SOURCES = \
5348 systemd_inhibit_LDADD = \
5349 libsystemd-internal.la \
5350 libsystemd-shared.la
5352 rootbin_PROGRAMS += \
5355 test_login_SOURCES = \
5356 src/libsystemd/sd-login/test-login.c
5358 test_login_LDADD = \
5359 libsystemd-internal.la \
5360 libsystemd-shared.la
5362 test_login_shared_SOURCES = \
5363 src/login/test-login-shared.c
5365 test_login_shared_LDADD = \
5366 libsystemd-internal.la \
5367 libsystemd-shared.la
5369 test_inhibit_SOURCES = \
5370 src/login/test-inhibit.c
5372 test_inhibit_LDADD = \
5373 libsystemd-internal.la \
5374 libsystemd-shared.la
5376 test_login_tables_SOURCES = \
5377 src/login/test-login-tables.c
5379 test_login_tables_LDADD = \
5380 libsystemd-logind-core.la
5391 pam_systemd_la_SOURCES = \
5392 src/login/pam_systemd.sym \
5393 src/login/pam_systemd.c
5395 pam_systemd_la_CFLAGS = \
5400 pam_systemd_la_LDFLAGS = \
5406 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5408 pam_systemd_la_LIBADD = \
5409 libsystemd-capability.la \
5410 libsystemd-internal.la \
5411 libsystemd-shared.la \
5414 pamlib_LTLIBRARIES = \
5417 dist_pamconf_DATA = \
5418 src/login/systemd-user
5421 nodist_systemunit_DATA += \
5422 units/systemd-logind.service \
5423 units/systemd-user-sessions.service
5425 dist_systemunit_DATA += \
5428 dist_systemunit_DATA_busnames += \
5429 units/org.freedesktop.login1.busname
5431 dist_dbussystemservice_DATA += \
5432 src/login/org.freedesktop.login1.service
5434 dist_dbuspolicy_DATA += \
5435 src/login/org.freedesktop.login1.conf
5437 dist_pkgsysconf_DATA += \
5438 src/login/logind.conf
5440 polkitpolicy_files += \
5441 src/login/org.freedesktop.login1.policy
5446 MULTI_USER_TARGET_WANTS += \
5447 systemd-logind.service \
5448 systemd-user-sessions.service
5450 SYSTEM_UNIT_ALIASES += \
5451 systemd-logind.service dbus-org.freedesktop.login1.service
5453 BUSNAMES_TARGET_WANTS += \
5454 org.freedesktop.login1.busname
5456 dist_udevrules_DATA += \
5457 src/login/70-uaccess.rules \
5458 src/login/70-power-switch.rules
5460 nodist_udevrules_DATA += \
5461 src/login/71-seat.rules \
5462 src/login/73-seat-late.rules
5465 src/login/logind-gperf.c \
5466 src/login/71-seat.rules \
5467 src/login/73-seat-late.rules
5470 polkitpolicy_in_files += \
5471 src/login/org.freedesktop.login1.policy.in
5474 src/login/logind-gperf.gperf \
5475 src/login/71-seat.rules.in \
5476 src/login/73-seat-late.rules.in \
5477 units/systemd-logind.service.in \
5478 units/systemd-user-sessions.service.in
5480 # ------------------------------------------------------------------------------
5481 if HAVE_PYTHON_DEVEL
5482 pkgpyexec_LTLIBRARIES = \
5489 _journal_la_SOURCES = \
5490 src/python-systemd/_journal.c
5492 _journal_la_CFLAGS = \
5494 -fvisibility=default \
5495 $(PYTHON_DEVEL_CFLAGS)
5497 _journal_la_LDFLAGS = \
5503 _journal_la_LIBADD = \
5504 $(PYTHON_DEVEL_LIBS) \
5507 id128_la_SOURCES = \
5508 src/python-systemd/id128.c \
5509 src/python-systemd/pyutil.c \
5510 src/python-systemd/pyutil.h
5512 nodist_id128_la_SOURCES = \
5513 src/python-systemd/id128-constants.h
5517 -fvisibility=default \
5518 $(PYTHON_DEVEL_CFLAGS) \
5519 -I$(top_builddir)/src/python-systemd
5521 id128_la_LDFLAGS = \
5528 $(PYTHON_DEVEL_LIBS) \
5529 libsystemd-shared.la \
5532 _daemon_la_SOURCES = \
5533 src/python-systemd/_daemon.c \
5534 src/python-systemd/pyutil.c \
5535 src/python-systemd/pyutil.h
5537 _daemon_la_CFLAGS = \
5539 -fvisibility=default \
5540 $(PYTHON_DEVEL_CFLAGS) \
5541 -I$(top_builddir)/src/python-systemd
5543 _daemon_la_LDFLAGS = \
5549 _daemon_la_LIBADD = \
5550 $(PYTHON_DEVEL_LIBS) \
5551 libsystemd-shared.la \
5554 _reader_la_SOURCES = \
5555 src/python-systemd/_reader.c \
5556 src/python-systemd/pyutil.c \
5557 src/python-systemd/pyutil.h
5559 _reader_la_CFLAGS = \
5561 -fvisibility=default \
5562 $(PYTHON_DEVEL_CFLAGS)
5564 _reader_la_LDFLAGS = \
5570 _reader_la_LIBADD = \
5571 $(PYTHON_DEVEL_LIBS) \
5572 libsystemd-shared.la \
5575 login_la_SOURCES = \
5576 src/python-systemd/login.c \
5577 src/python-systemd/pyutil.c \
5578 src/python-systemd/pyutil.h
5582 -fvisibility=default \
5583 $(PYTHON_DEVEL_CFLAGS)
5585 login_la_LDFLAGS = \
5592 $(PYTHON_DEVEL_LIBS) \
5593 libsystemd-shared.la \
5596 dist_pkgpyexec_PYTHON = \
5597 src/python-systemd/journal.py \
5598 src/python-systemd/daemon.py \
5599 src/python-systemd/__init__.py
5601 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
5602 $(AM_V_at)$(MKDIR_P) $(dir $@)
5603 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
5606 src/python-systemd/id128-constants.h
5608 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
5610 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
5611 $(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/
5612 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
5615 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
5616 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
5619 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
5620 $(MAKE) DESTDIR="$$dir" install && \
5621 $(MAKE) DESTDIR="$$dir" sphinx-html && \
5626 CLEAN_LOCAL_HOOKS += clean-sphinx
5628 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
5631 -rm -rf docs/html/python-systemd/
5633 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
5635 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
5636 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
5638 # ------------------------------------------------------------------------------
5639 if ENABLE_COMPAT_LIBS
5641 src/compat-libs/linkwarning.h
5643 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
5644 $(AM_V_at)$(MKDIR_P) $(dir $@)
5645 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
5648 libsystemd-journal.c \
5649 libsystemd-login.c \
5650 libsystemd-id128.c \
5653 libsystemd_journal_la_SOURCES = \
5654 libsystemd-journal.c \
5655 src/compat-libs/libsystemd-journal.sym
5657 libsystemd_journal_la_CPPFLAGS = \
5659 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5661 libsystemd_journal_la_LDFLAGS = \
5663 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
5664 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
5666 libsystemd_journal_la_LIBADD = \
5667 libsystemd-journal-internal.la \
5668 libsystemd-internal.la \
5669 libsystemd-shared.la
5671 libsystemd_login_la_SOURCES = \
5672 libsystemd-login.c \
5673 src/compat-libs/libsystemd-login.sym
5675 libsystemd_login_la_CPPFLAGS = \
5677 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5679 libsystemd_login_la_LDFLAGS = \
5681 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
5682 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
5684 libsystemd_login_la_LIBADD = \
5685 libsystemd-internal.la \
5686 libsystemd-shared.la
5688 libsystemd_id128_la_SOURCES = \
5689 libsystemd-id128.c \
5690 src/compat-libs/libsystemd-id128.sym
5692 libsystemd_id128_la_CPPFLAGS = \
5694 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5696 libsystemd_id128_la_LDFLAGS = \
5698 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
5699 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
5701 libsystemd_id128_la_LIBADD = \
5702 libsystemd-internal.la \
5703 libsystemd-shared.la
5705 libsystemd_daemon_la_SOURCES = \
5706 libsystemd-daemon.c \
5707 src/compat-libs/libsystemd-daemon.sym
5709 libsystemd_daemon_la_CPPFLAGS = \
5711 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5713 libsystemd_daemon_la_LDFLAGS = \
5715 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
5716 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
5718 libsystemd_daemon_la_LIBADD = \
5719 libsystemd-internal.la \
5720 libsystemd-shared.la
5722 lib_LTLIBRARIES += \
5723 libsystemd-journal.la \
5724 libsystemd-login.la \
5725 libsystemd-id128.la \
5726 libsystemd-daemon.la
5728 pkgconfiglib_DATA += \
5729 src/compat-libs/libsystemd-journal.pc \
5730 src/compat-libs/libsystemd-login.pc \
5731 src/compat-libs/libsystemd-id128.pc \
5732 src/compat-libs/libsystemd-daemon.pc
5734 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
5735 compat-lib-install-hook:
5736 libname=libsystemd-login.so && $(move-to-rootlibdir)
5737 libname=libsystemd-journal.so && $(move-to-rootlibdir)
5738 libname=libsystemd-id128.so && $(move-to-rootlibdir)
5739 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
5741 compat-lib-uninstall-hook:
5742 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
5743 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
5744 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
5745 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
5747 INSTALL_EXEC_HOOKS += compat-lib-install-hook
5748 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
5752 src/compat-libs/libsystemd-journal.pc.in \
5753 src/compat-libs/libsystemd-login.pc.in \
5754 src/compat-libs/libsystemd-id128.pc.in \
5755 src/compat-libs/libsystemd-daemon.pc.in
5757 # ------------------------------------------------------------------------------
5759 '|rootlibexecdir=$(rootlibexecdir)|' \
5760 '|rootbindir=$(rootbindir)|' \
5761 '|bindir=$(bindir)|' \
5762 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5763 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5764 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5765 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5766 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
5767 '|pkgdatadir=$(pkgdatadir)|' \
5768 '|systemunitdir=$(systemunitdir)|' \
5769 '|userunitdir=$(userunitdir)|' \
5770 '|systempresetdir=$(systempresetdir)|' \
5771 '|userpresetdir=$(userpresetdir)|' \
5772 '|udevhwdbdir=$(udevhwdbdir)|' \
5773 '|udevrulesdir=$(udevrulesdir)|' \
5774 '|catalogdir=$(catalogdir)|' \
5775 '|tmpfilesdir=$(tmpfilesdir)|' \
5776 '|sysusersdir=$(sysusersdir)|' \
5777 '|sysctldir=$(sysctldir)|' \
5778 '|systemgeneratordir=$(systemgeneratordir)|' \
5779 '|usergeneratordir=$(usergeneratordir)|' \
5780 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
5781 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
5782 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
5783 '|PACKAGE_URL=$(PACKAGE_URL)|' \
5784 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
5785 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
5786 '|prefix=$(prefix)|' \
5787 '|exec_prefix=$(exec_prefix)|' \
5788 '|libdir=$(libdir)|' \
5789 '|includedir=$(includedir)|' \
5790 '|VERSION=$(VERSION)|' \
5791 '|rootprefix=$(rootprefix)|' \
5792 '|udevlibexecdir=$(udevlibexecdir)|' \
5793 '|SUSHELL=$(SUSHELL)|' \
5794 '|DEBUGTTY=$(DEBUGTTY)|' \
5797 '|MKDIR_P=$(MKDIR_P)|' \
5798 '|QUOTAON=$(QUOTAON)|' \
5799 '|QUOTACHECK=$(QUOTACHECK)|' \
5800 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
5801 '|VARLOGDIR=$(varlogdir)|' \
5802 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
5803 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
5804 '|PYTHON=$(PYTHON)|' \
5805 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
5806 '|NTP_SERVERS=$(NTP_SERVERS)|' \
5807 '|DNS_SERVERS=$(DNS_SERVERS)|' \
5808 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
5809 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
5810 '|TTY_GID=$(TTY_GID)|' \
5811 '|systemsleepdir=$(systemsleepdir)|' \
5812 '|systemshutdowndir=$(systemshutdowndir)|' \
5813 '|binfmtdir=$(binfmtdir)|' \
5814 '|modulesloaddir=$(modulesloaddir)|'
5817 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
5818 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
5827 sysctl.d/%: sysctl.d/%.in
5836 src/core/macros.%: src/core/macros.%.in
5839 src/%.policy.in: src/%.policy.in.in
5842 shell-completion/%: shell-completion/%.in
5853 $(AM_V_GEN)chmod +x $@
5855 src/%.c: src/%.gperf
5856 $(AM_V_at)$(MKDIR_P) $(dir $@)
5857 $(AM_V_GPERF)$(GPERF) < $< > $@
5860 $(AM_V_at)$(MKDIR_P) $(dir $@)
5861 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5863 tmpfiles.d/%: tmpfiles.d/%.m4
5864 $(AM_V_at)$(MKDIR_P) $(dir $@)
5865 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5869 $(AM_V_at)$(MKDIR_P) $(dir $@)
5870 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
5872 units/user/%: units/%.m4
5873 $(AM_V_at)$(MKDIR_P) $(dir $@)
5874 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
5877 nodist_polkitpolicy_DATA = \
5878 $(polkitpolicy_files) \
5879 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
5883 $(polkitpolicy_in_files) \
5884 $(polkitpolicy_in_in_files)
5887 $(nodist_systemunit_DATA) \
5888 $(nodist_userunit_DATA) \
5889 $(pkgconfigdata_DATA) \
5890 $(pkgconfiglib_DATA) \
5891 $(nodist_polkitpolicy_DATA)
5893 # ------------------------------------------------------------------------------
5895 man/custom-entities.ent: configure.ac
5896 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
5897 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
5898 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
5902 man/custom-entities.ent
5907 --stringparam man.output.quietly 1 \
5908 --stringparam funcsynopsis.style ansi \
5909 --stringparam man.authors.section.enabled 0 \
5910 --stringparam man.copyright.section.enabled 0 \
5911 --stringparam systemd.version $(VERSION) \
5912 --path '$(builddir)/man:$(srcdir)/man'
5914 XSLTPROC_PROCESS_MAN = \
5915 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
5917 XSLTPROC_PROCESS_HTML = \
5918 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
5920 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
5921 $(XSLTPROC_PROCESS_MAN)
5923 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
5924 $(XSLTPROC_PROCESS_MAN)
5926 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
5927 $(XSLTPROC_PROCESS_MAN)
5929 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
5930 $(XSLTPROC_PROCESS_MAN)
5932 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
5933 $(XSLTPROC_PROCESS_MAN)
5935 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
5936 $(XSLTPROC_PROCESS_HTML)
5939 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
5945 man/custom-html.xsl \
5948 # ------------------------------------------------------------------------------
5951 docs/sysvinit/README
5956 docs/sysvinit/README: docs/sysvinit/README.in
5959 docs/var-log/README: docs/var-log/README.in
5963 docs/sysvinit/README \
5968 docs/sysvinit/README.in \
5969 docs/var-log/README.in
5971 SOCKETS_TARGET_WANTS += \
5972 systemd-initctl.socket \
5973 systemd-shutdownd.socket
5977 RUNLEVEL1_TARGET_WANTS += \
5978 systemd-update-utmp-runlevel.service
5979 RUNLEVEL2_TARGET_WANTS += \
5980 systemd-update-utmp-runlevel.service
5981 RUNLEVEL3_TARGET_WANTS += \
5982 systemd-update-utmp-runlevel.service
5983 RUNLEVEL4_TARGET_WANTS += \
5984 systemd-update-utmp-runlevel.service
5985 RUNLEVEL5_TARGET_WANTS += \
5986 systemd-update-utmp-runlevel.service
5989 SYSINIT_TARGET_WANTS += \
5990 systemd-update-utmp.service
5993 SYSINIT_TARGET_WANTS += \
5994 systemd-update-done.service
5996 LOCAL_FS_TARGET_WANTS += \
5997 systemd-remount-fs.service \
6000 MULTI_USER_TARGET_WANTS += \
6002 systemd-ask-password-wall.path
6004 SYSINIT_TARGET_WANTS += \
6005 dev-hugepages.mount \
6007 sys-kernel-config.mount \
6008 sys-kernel-debug.mount \
6009 sys-fs-fuse-connections.mount \
6010 systemd-sysctl.service \
6011 systemd-ask-password-console.path
6014 SYSTEM_UNIT_ALIASES += \
6015 poweroff.target runlevel0.target \
6016 rescue.target runlevel1.target \
6017 multi-user.target runlevel2.target \
6018 multi-user.target runlevel3.target \
6019 multi-user.target runlevel4.target \
6020 graphical.target runlevel5.target \
6021 reboot.target runlevel6.target
6024 SYSTEM_UNIT_ALIASES += \
6025 graphical.target default.target \
6026 reboot.target ctrl-alt-del.target \
6027 getty@.service autovt@.service
6029 USER_UNIT_ALIASES += \
6030 $(systemunitdir)/shutdown.target shutdown.target \
6031 $(systemunitdir)/sockets.target sockets.target \
6032 $(systemunitdir)/timers.target timers.target \
6033 $(systemunitdir)/paths.target paths.target \
6034 $(systemunitdir)/bluetooth.target bluetooth.target \
6035 $(systemunitdir)/printer.target printer.target \
6036 $(systemunitdir)/sound.target sound.target \
6037 $(systemunitdir)/smartcard.target smartcard.target
6040 USER_UNIT_ALIASES += \
6041 $(systemunitdir)/busnames.target busnames.target
6044 GENERAL_ALIASES += \
6045 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
6046 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
6047 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
6048 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
6052 $(systemunitdir)/runlevel1.target.wants \
6053 $(systemunitdir)/runlevel2.target.wants \
6054 $(systemunitdir)/runlevel3.target.wants \
6055 $(systemunitdir)/runlevel4.target.wants \
6056 $(systemunitdir)/runlevel5.target.wants
6060 $(prefix)/lib/modules-load.d \
6061 $(sysconfdir)/modules-load.d \
6062 $(prefix)/lib/systemd/network \
6063 $(sysconfdir)/systemd/network \
6064 $(prefix)/lib/sysctl.d \
6065 $(sysconfdir)/sysctl.d \
6066 $(prefix)/lib/kernel/install.d \
6067 $(sysconfdir)/kernel/install.d \
6068 $(systemshutdowndir) \
6070 $(systemgeneratordir) \
6071 $(usergeneratordir) \
6074 $(pkgsysconfdir)/system \
6075 $(pkgsysconfdir)/system/multi-user.target.wants \
6076 $(pkgsysconfdir)/system/getty.target.wants \
6077 $(pkgsysconfdir)/user \
6078 $(dbussessionservicedir) \
6079 $(sysconfdir)/xdg/systemd
6081 install-exec-hook: $(INSTALL_EXEC_HOOKS)
6083 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
6085 install-data-hook: $(INSTALL_DATA_HOOKS)
6087 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
6089 clean-local: $(CLEAN_LOCAL_HOOKS)
6090 rm -rf $(abs_srcdir)/install-tree
6091 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
6092 $(abs_srcdir)/hwdb/iab.txt
6094 DISTCHECK_CONFIGURE_FLAGS = \
6095 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
6096 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6097 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
6098 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
6099 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
6100 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
6101 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
6102 --with-rootprefix=$$dc_install_base \
6103 --disable-split-usr \
6105 --enable-compat-libs
6108 DISTCHECK_CONFIGURE_FLAGS += \
6109 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
6110 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
6112 DISTCHECK_CONFIGURE_FLAGS += \
6113 --with-sysvinit-path= \
6114 --with-sysvrcnd-path=
6118 DISTCHECK_CONFIGURE_FLAGS += \
6123 DISTCHECK_CONFIGURE_FLAGS += \
6128 # Require python when making dist
6130 .PHONY: dist-check-python
6133 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
6137 dist-check-compat-libs:
6138 if !ENABLE_COMPAT_LIBS
6139 @echo "*** compat-libs must be enabled in order to make dist"
6143 dist: dist-check-python dist-check-compat-libs
6145 # check "broken" platforms limited toolchains for link breakage before we release
6148 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
6152 ( cd $(top_srcdir)/hwdb && \
6153 wget -N http://www.linux-usb.org/usb.ids \
6154 http://pci-ids.ucw.cz/v2.2/pci.ids \
6155 http://standards.ieee.org/develop/regauth/oui/oui.txt \
6156 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
6159 .PHONY: kdbus-update
6161 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
6162 wget -N https://d-bus.googlecode.com/git/kdbus.h )
6166 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6168 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6170 upload: all check dist
6171 scp systemd-$(VERSION).tar.xz $(www_target)
6174 doc-sync: all destdir-sphinx
6175 gtkdoc-rebase --html-dir=docs/libudev/html --online
6176 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
6177 gtkdoc-rebase --html-dir=docs/gudev/html --online
6178 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
6179 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6180 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
6184 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
6185 scp man/*.html tango:public/systemd-man/
6187 .PHONY: install-tree
6189 rm -rf $(abs_srcdir)/install-tree
6190 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6191 tree $(abs_srcdir)/install-tree
6193 # Let's run all tests of the test suite, but under valgrind. Let's
6194 # exclude the one perl script we have in there
6195 .PHONY: valgrind-tests
6196 valgrind-tests: $(TESTS)
6197 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
6198 if file $$f | grep -q shell; then \
6199 echo -e "$${x}Skipping non-binary $$f"; else \
6200 echo -e "$${x}Running $$f"; \
6201 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6206 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6208 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6209 $(AM_V_GEN)cat $^ > $@
6211 .PHONY: check-api-docs
6212 check-api-docs: exported man
6213 $(AM_V_GEN)for symbol in `cat exported` ; do \
6214 if test -f $(builddir)/man/$$symbol.html ; then \
6215 echo " Symbol $$symbol() is documented." ; \
6217 echo "‣ Symbol $$symbol() lacks documentation." ; \
6221 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6222 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6224 undefined defined: $(ALL_OBJECTS)
6225 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6226 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6227 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6233 .PHONY: check-api-unused
6234 check-api-unused: defined undefined exported
6235 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6237 .PHONY: check-includes
6238 check-includes: $(top_srcdir)/tools/check-includes.pl
6239 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6240 | xargs $(top_srcdir)/tools/check-includes.pl
6243 $(top_srcdir)/tools/check-includes.pl
6245 # Stupid test that everything purported to be exported really is
6246 define generate-sym-test
6247 $(AM_V_at)$(MKDIR_P) $(dir $@)
6248 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6249 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6250 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6251 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6252 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6253 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6254 $(AM_V_at)printf 'return 0; }\n' >> $@
6257 test-libsystemd-sym.c: \
6258 $(top_builddir)/src/libsystemd/libsystemd.sym \
6259 src/systemd/sd-journal.h \
6260 src/systemd/sd-daemon.h \
6261 src/systemd/sd-login.h \
6262 src/systemd/sd-bus.h \
6263 src/systemd/sd-utf8.h \
6264 src/systemd/sd-resolve.h \
6265 src/systemd/sd-path.h
6266 $(generate-sym-test)
6268 test-libudev-sym.c: \
6269 src/libudev/libudev.sym \
6271 $(generate-sym-test)
6273 test_libsystemd_sym_SOURCES = \
6274 test-libsystemd-sym.c
6275 test_libsystemd_sym_LDADD = \
6278 test_libudev_sym_SOURCES = \
6280 test_libudev_sym_CFLAGS = \
6282 -Wno-deprecated-declarations
6283 test_libudev_sym_LDADD = \
6287 $(test_libsystemd_sym_SOURCES) \
6288 $(test_libudev_sym_SOURCES)
6291 test-libsystemd-sym \
6296 cppcheck --enable=all -q $(top_srcdir)
6298 # Used to extract compile flags for YCM.
6303 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u
6306 tools/gdb-sd_dump_hashmaps.py