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 \
751 src/shared/sparse-endian.h \
752 src/shared/refcnt.h \
753 src/shared/udev-util.h \
754 src/shared/bus-errors.h \
755 src/shared/device-nodes.c \
756 src/shared/device-nodes.h \
761 src/shared/architecture.c \
762 src/shared/architecture.h \
763 src/shared/efivars.c \
764 src/shared/efivars.h \
765 src/shared/path-util.c \
766 src/shared/path-util.h \
767 src/shared/time-util.c \
768 src/shared/time-util.h \
769 src/shared/locale-util.c \
770 src/shared/locale-util.h \
771 src/shared/mempool.c \
772 src/shared/mempool.h \
773 src/shared/hashmap.c \
774 src/shared/hashmap.h \
775 src/shared/siphash24.c \
776 src/shared/siphash24.h \
782 src/shared/sleep-config.c \
783 src/shared/sleep-config.h \
786 src/shared/env-util.c \
787 src/shared/env-util.h \
788 src/shared/strbuf.c \
789 src/shared/strbuf.h \
790 src/shared/strxcpyx.c \
791 src/shared/strxcpyx.h \
792 src/shared/conf-parser.c \
793 src/shared/conf-parser.h \
796 src/shared/ratelimit.h \
797 src/shared/ratelimit.c \
798 src/shared/exit-status.c \
799 src/shared/exit-status.h \
802 src/shared/gunicode.c \
803 src/shared/gunicode.h \
806 src/shared/socket-util.c \
807 src/shared/socket-util.h \
808 src/shared/in-addr-util.c \
809 src/shared/in-addr-util.h \
810 src/shared/conf-files.c \
811 src/shared/conf-files.h \
812 src/shared/cgroup-util.c \
813 src/shared/cgroup-util.h \
814 src/shared/cgroup-show.c \
815 src/shared/cgroup-show.h \
816 src/shared/unit-name.c \
817 src/shared/unit-name.h \
818 src/shared/utmp-wtmp.h \
819 src/shared/watchdog.c \
820 src/shared/watchdog.h \
821 src/shared/spawn-ask-password-agent.c \
822 src/shared/spawn-ask-password-agent.h \
823 src/shared/replace-var.c \
824 src/shared/replace-var.h \
825 src/shared/spawn-polkit-agent.c \
826 src/shared/spawn-polkit-agent.h \
827 src/shared/clock-util.c \
828 src/shared/clock-util.h \
829 src/shared/time-dst.c \
830 src/shared/time-dst.h \
831 src/shared/calendarspec.c \
832 src/shared/calendarspec.h \
833 src/shared/fileio.c \
834 src/shared/fileio.h \
835 src/shared/output-mode.h \
836 src/shared/MurmurHash2.c \
837 src/shared/MurmurHash2.h \
838 src/shared/acpi-fpdt.h \
839 src/shared/acpi-fpdt.c \
840 src/shared/boot-timestamps.h \
841 src/shared/boot-timestamps.c \
844 src/shared/smack-util.c \
845 src/shared/smack-util.h \
846 src/shared/apparmor-util.c \
847 src/shared/apparmor-util.h \
848 src/shared/ima-util.c \
849 src/shared/ima-util.h \
850 src/shared/ptyfwd.c \
851 src/shared/ptyfwd.h \
852 src/shared/errno-list.c \
853 src/shared/errno-list.h \
854 src/shared/af-list.c \
855 src/shared/af-list.h \
856 src/shared/arphrd-list.c \
857 src/shared/arphrd-list.h \
862 src/shared/condition-util.c \
863 src/shared/condition-util.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 = \
907 # ------------------------------------------------------------------------------
908 noinst_LTLIBRARIES += \
911 libsystemd_units_la_SOURCES = \
912 src/shared/install.c \
913 src/shared/install.h \
914 src/shared/install-printf.c \
915 src/shared/install-printf.h \
916 src/shared/path-lookup.c \
917 src/shared/path-lookup.h \
918 src/shared/specifier.c \
919 src/shared/specifier.h
921 # ------------------------------------------------------------------------------
922 noinst_LTLIBRARIES += \
925 libsystemd_label_la_SOURCES = \
926 src/shared/socket-label.c \
929 src/shared/selinux-util.c \
930 src/shared/selinux-util.h \
931 src/shared/mkdir-label.c \
932 src/shared/ask-password-api.c \
933 src/shared/ask-password-api.h \
934 src/shared/switch-root.h \
935 src/shared/switch-root.c \
936 src/shared/fileio-label.c \
937 src/shared/fileio-label.h \
938 src/shared/dev-setup.c \
939 src/shared/dev-setup.h \
940 src/shared/dropin.c \
941 src/shared/dropin.h \
942 src/shared/generator.h \
943 src/shared/generator.c
945 libsystemd_label_la_CFLAGS = \
949 libsystemd_label_la_LIBADD = \
952 # -----------------------------------------------------------------------------
955 dist_systemunit_DATA += \
956 units/ldconfig.service
958 SYSINIT_TARGET_WANTS += \
962 # ------------------------------------------------------------------------------
965 noinst_LTLIBRARIES += \
966 libsystemd-seccomp.la
968 libsystemd_seccomp_la_SOURCES = \
969 src/shared/seccomp-util.h \
970 src/shared/seccomp-util.c
972 libsystemd_seccomp_la_CFLAGS = \
976 libsystemd_seccomp_la_LIBADD = \
980 # ------------------------------------------------------------------------------
981 noinst_LTLIBRARIES += \
984 libsystemd_logs_la_SOURCES = \
985 src/shared/logs-show.c \
986 src/shared/logs-show.h
988 # ------------------------------------------------------------------------------
989 noinst_LTLIBRARIES += \
990 libsystemd-capability.la
992 libsystemd_capability_la_SOURCES = \
993 src/shared/capability.c \
994 src/shared/capability.h
996 libsystemd_capability_la_CFLAGS = \
1000 libsystemd_capability_la_LIBADD = \
1003 # ------------------------------------------------------------------------------
1005 noinst_LTLIBRARIES += \
1008 libsystemd_acl_la_SOURCES = \
1009 src/shared/acl-util.c \
1010 src/shared/acl-util.h
1012 libsystemd_acl_la_CFLAGS = \
1016 libsystemd_acl_la_LIBADD = \
1020 # ------------------------------------------------------------------------------
1021 noinst_LTLIBRARIES += \
1024 libsystemd_core_la_SOURCES = \
1027 src/core/unit-printf.c \
1028 src/core/unit-printf.h \
1031 src/core/manager.c \
1032 src/core/manager.h \
1033 src/core/transaction.c \
1034 src/core/transaction.h \
1035 src/core/load-fragment.c \
1036 src/core/load-fragment.h \
1037 src/core/service.c \
1038 src/core/service.h \
1041 src/core/busname.c \
1042 src/core/busname.h \
1043 src/core/bus-common.c \
1044 src/core/bus-common.h \
1045 src/core/bus-endpoint.c \
1046 src/core/bus-endpoint.h \
1049 src/core/snapshot.c \
1050 src/core/snapshot.h \
1055 src/core/automount.c \
1056 src/core/automount.h \
1067 src/core/load-dropin.c \
1068 src/core/load-dropin.h \
1069 src/core/execute.c \
1070 src/core/execute.h \
1075 src/core/dbus-manager.c \
1076 src/core/dbus-manager.h \
1077 src/core/dbus-unit.c \
1078 src/core/dbus-unit.h \
1079 src/core/dbus-job.c \
1080 src/core/dbus-job.h \
1081 src/core/dbus-service.c \
1082 src/core/dbus-service.h \
1083 src/core/dbus-socket.c \
1084 src/core/dbus-socket.h \
1085 src/core/dbus-busname.c \
1086 src/core/dbus-busname.h \
1087 src/core/dbus-target.c \
1088 src/core/dbus-target.h \
1089 src/core/dbus-snapshot.c \
1090 src/core/dbus-snapshot.h \
1091 src/core/dbus-device.c \
1092 src/core/dbus-device.h \
1093 src/core/dbus-mount.c \
1094 src/core/dbus-mount.h \
1095 src/core/dbus-automount.c \
1096 src/core/dbus-automount.h \
1097 src/core/dbus-swap.c \
1098 src/core/dbus-swap.h \
1099 src/core/dbus-timer.c \
1100 src/core/dbus-timer.h \
1101 src/core/dbus-path.c \
1102 src/core/dbus-path.h \
1103 src/core/dbus-slice.c \
1104 src/core/dbus-slice.h \
1105 src/core/dbus-scope.c \
1106 src/core/dbus-scope.h \
1107 src/core/dbus-execute.c \
1108 src/core/dbus-execute.h \
1109 src/core/dbus-kill.c \
1110 src/core/dbus-kill.h \
1111 src/core/dbus-cgroup.c \
1112 src/core/dbus-cgroup.h \
1115 src/core/selinux-access.c \
1116 src/core/selinux-access.h \
1117 src/core/selinux-setup.c \
1118 src/core/selinux-setup.h \
1119 src/core/smack-setup.c \
1120 src/core/smack-setup.h \
1121 src/core/ima-setup.c \
1122 src/core/ima-setup.h \
1123 src/core/locale-setup.h \
1124 src/core/locale-setup.c \
1125 src/core/hostname-setup.c \
1126 src/core/hostname-setup.h \
1127 src/core/machine-id-setup.c \
1128 src/core/machine-id-setup.h \
1129 src/core/mount-setup.c \
1130 src/core/mount-setup.h \
1131 src/core/loopback-setup.h \
1132 src/core/loopback-setup.c \
1133 src/core/condition.c \
1134 src/core/condition.h \
1135 src/core/namespace.c \
1136 src/core/namespace.h \
1138 src/core/sysfs-show.h \
1139 src/core/killall.h \
1140 src/core/killall.c \
1141 src/core/audit-fd.c \
1142 src/core/audit-fd.h \
1143 src/core/show-status.c \
1144 src/core/show-status.h \
1145 src/core/failure-action.c \
1146 src/core/failure-action.h
1149 libsystemd_core_la_SOURCES += \
1150 src/core/kmod-setup.c \
1151 src/core/kmod-setup.h
1154 nodist_libsystemd_core_la_SOURCES = \
1155 src/core/load-fragment-gperf.c \
1156 src/core/load-fragment-gperf-nulstr.c
1158 libsystemd_core_la_CFLAGS = \
1164 $(APPARMOR_CFLAGS) \
1168 libsystemd_core_la_LIBADD = \
1169 libsystemd-capability.la \
1170 libsystemd-units.la \
1171 libsystemd-label.la \
1172 libudev-internal.la \
1173 libsystemd-shared.la \
1174 libsystemd-internal.la \
1183 libsystemd_core_la_LIBADD += \
1184 libsystemd-seccomp.la
1187 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1188 $(AM_V_at)$(MKDIR_P) $(dir $@)
1189 $(AM_V_GEN)$(AWK) 'BEGIN{ keywords=0 ; FS="," ; print "extern const char load_fragment_gperf_nulstr[];" ; print "const char load_fragment_gperf_nulstr[] ="} ; keyword==1 { print "\"" $$1 "\\0\"" } ; /%%/ { keyword=1} ; END { print ";" }' < $< > $@
1192 src/core/load-fragment-gperf.gperf.m4
1195 src/core/load-fragment-gperf.gperf \
1196 src/core/load-fragment-gperf.c \
1197 src/core/load-fragment-gperf-nulstr.c \
1198 src/shared/errno-list.txt \
1199 src/shared/errno-from-name.gperf \
1200 src/shared/af-list.txt \
1201 src/shared/af-from-name.gperf \
1202 src/shared/arphrd-list.txt \
1203 src/shared/arphrd-from-name.gperf \
1204 src/shared/dns_type-list.txt \
1205 src/shared/dns_type-from-name.gperf
1208 src/shared/errno-from-name.h \
1209 src/shared/errno-to-name.h \
1210 src/shared/af-from-name.h \
1211 src/shared/af-to-name.h \
1212 src/shared/arphrd-from-name.h \
1213 src/shared/arphrd-to-name.h \
1214 src/resolve/dns_type-from-name.h \
1215 src/resolve/dns_type-to-name.h
1217 %-from-name.gperf: %-list.txt
1218 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1220 %-from-name.h: %-from-name.gperf
1221 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1224 src/shared/errno-list.txt:
1225 $(AM_V_at)$(MKDIR_P) $(dir $@)
1226 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1228 src/shared/errno-to-name.h: src/shared/errno-list.txt
1229 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1232 src/shared/af-list.txt:
1233 $(AM_V_at)$(MKDIR_P) $(dir $@)
1234 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include sys/socket.h - </dev/null | grep -v AF_UNSPEC | grep -v AF_MAX | $(AWK) '/^#define[ \t]+AF_[^ \t]+[ \t]+PF_[^ \t]/ { print $$2; }' >$@
1236 src/shared/af-to-name.h: src/shared/af-list.txt
1237 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const af_names[] = { "} !/AF_FILE/ && !/AF_ROUTE/ && !/AF_LOCAL/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1239 src/shared/arphrd-list.txt:
1240 $(AM_V_at)$(MKDIR_P) $(dir $@)
1241 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include net/if_arp.h - </dev/null | $(AWK) '/^#define[ \t]+ARPHRD_[^ \t]+[ \t]+[^ \t]/ { print $$2; }' | sed -e 's/ARPHRD_//' >$@
1243 src/shared/arphrd-to-name.h: src/shared/arphrd-list.txt
1244 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1246 src/shared/arphrd-from-name.gperf: src/shared/arphrd-list.txt
1247 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct arphrd_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, ARPHRD_%s\n", $$1, $$1 }' <$< >$@
1250 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1251 $(AM_V_at)$(MKDIR_P) $(dir $@)
1252 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1254 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1255 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char *dns_type_to_string(int type) {\n\tswitch(type) {" } {printf " case DNS_TYPE_%s: return ", $$1; sub(/_/, "-"); printf "\"%s\";\n", $$1 } END{ print "\ndefault: return NULL;\n\t}\n}\n" }' <$< >$@
1257 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1258 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct dns_type_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { s=$$1; sub(/_/, "-", s); printf "%s, ", $$s; printf "DNS_TYPE_%s\n", $$1 }' <$< >$@
1260 # ------------------------------------------------------------------------------
1269 libsystemd-core.la \
1272 dist_pkgsysconf_DATA += \
1273 src/core/system.conf \
1276 dist_dbuspolicy_DATA += \
1277 src/core/org.freedesktop.systemd1.conf
1279 dist_dbussystemservice_DATA += \
1280 src/core/org.freedesktop.systemd1.service
1282 polkitpolicy_in_in_files += \
1283 src/core/org.freedesktop.systemd1.policy.in.in
1285 pkgconfigdata_DATA = \
1288 nodist_rpmmacros_DATA = \
1289 src/core/macros.systemd
1292 src/core/systemd.pc.in \
1293 src/core/macros.systemd.in
1296 src/core/macros.systemd \
1297 src/core/org.freedesktop.systemd1.policy.in
1299 # ------------------------------------------------------------------------------
1341 test-strip-tab-ansi \
1359 test-condition-util \
1368 test/daughter.service \
1373 test/grandchild.service \
1375 test/hello-after-sleep.target \
1376 test/hello.service \
1378 test/parent-deep.slice \
1381 test/sched_idle_bad.service \
1382 test/sched_idle_ok.service \
1383 test/sched_rr_bad.service \
1384 test/sched_rr_change.service \
1385 test/sched_rr_ok.service \
1386 test/shutdown.target \
1387 test/sleep.service \
1388 test/sockets.target \
1390 test/sysinit.target \
1391 test/testsuite.target \
1392 test/timers.target \
1393 test/unstoppable.service \
1394 test/bus-policy/hello.conf \
1395 test/bus-policy/methods.conf \
1396 test/bus-policy/ownerships.conf \
1397 test/bus-policy/signals.conf
1401 src/test/test-helper.h
1403 test_device_nodes_SOURCES = \
1404 src/test/test-device-nodes.c
1406 test_device_nodes_LDADD = \
1407 libsystemd-shared.la
1409 test_engine_SOURCES = \
1410 src/test/test-engine.c
1412 test_engine_CFLAGS = \
1416 test_engine_LDADD = \
1417 libsystemd-core.la \
1420 test_job_type_SOURCES = \
1421 src/test/test-job-type.c
1423 test_job_type_CFLAGS = \
1427 test_job_type_LDADD = \
1428 libsystemd-core.la \
1441 test_loopback_SOURCES = \
1442 src/test/test-loopback.c
1444 test_loopback_LDADD = \
1447 test_hostname_SOURCES = \
1448 src/test/test-hostname.c
1450 test_hostname_LDADD = \
1457 test_boot_timestamp_SOURCES = \
1458 src/test/test-boot-timestamps.c
1460 test_boot_timestamp_LDADD = \
1461 libsystemd-shared.la
1464 test_unit_name_SOURCES = \
1465 src/test/test-unit-name.c
1467 test_unit_name_CFLAGS = \
1471 test_unit_name_LDADD = \
1472 libsystemd-core.la \
1475 test_unit_file_SOURCES = \
1476 src/test/test-unit-file.c
1478 test_unit_file_CFLAGS = \
1482 test_unit_file_LDADD = \
1483 libsystemd-core.la \
1486 test_utf8_SOURCES = \
1487 src/test/test-utf8.c
1490 libsystemd-shared.la
1492 test_capability_SOURCES = \
1493 src/test/test-capability.c
1495 test_capability_LDADD = \
1496 libsystemd-shared.la \
1497 libsystemd-capability.la
1499 test_async_SOURCES = \
1500 src/test/test-async.c
1502 test_async_LDADD = \
1503 libsystemd-shared.la
1505 test_condition_util_SOURCES = \
1506 src/test/test-condition-util.c
1508 test_condition_util_LDADD = \
1509 libsystemd-shared.la \
1510 libsystemd-internal.la
1513 test_fdset_SOURCES = \
1514 src/test/test-fdset.c
1516 test_fdset_LDADD = \
1519 test_ratelimit_SOURCES = \
1520 src/test/test-ratelimit.c
1522 test_ratelimit_LDADD = \
1523 libsystemd-shared.la
1525 test_util_SOURCES = \
1526 src/test/test-util.c
1531 test_uid_range_SOURCES = \
1532 src/test/test-uid-range.c
1534 test_uid_range_LDADD = \
1537 test_socket_util_SOURCES = \
1538 src/test/test-socket-util.c
1540 test_socket_util_LDADD = \
1543 test_ring_SOURCES = \
1544 src/test/test-ring.c
1549 test_barrier_SOURCES = \
1550 src/test/test-barrier.c
1552 test_barrier_LDADD = \
1555 test_pty_SOURCES = \
1561 test_tmpfiles_SOURCES = \
1562 src/test/test-tmpfiles.c
1564 test_tmpfiles_LDADD = \
1565 libsystemd-shared.la
1567 test_namespace_SOURCES = \
1568 src/test/test-namespace.c
1570 test_namespace_LDADD = \
1574 src/test/test-hashmap-ordered.c
1577 src/test/test-hashmap-ordered.c
1579 src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c
1580 $(AM_V_at)$(MKDIR_P) $(dir $@)
1581 $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \
1582 { if (!match($$0, "^#include")) \
1583 gsub(/hashmap/, "ordered_hashmap"); \
1584 gsub(/HASHMAP/, "ORDERED_HASHMAP"); \
1585 gsub(/Hashmap/, "OrderedHashmap"); \
1588 nodist_test_hashmap_SOURCES = \
1589 src/test/test-hashmap-ordered.c
1591 test_hashmap_SOURCES = \
1592 src/test/test-hashmap.c \
1593 src/test/test-hashmap-plain.c
1595 test_hashmap_LDADD = \
1598 test_set_SOURCES = \
1604 test_xml_SOURCES = \
1608 libsystemd-shared.la
1610 test_list_SOURCES = \
1611 src/test/test-list.c
1616 test_tables_SOURCES = \
1617 src/test/test-tables.c \
1618 src/shared/test-tables.h \
1619 src/bus-proxyd/bus-policy.c \
1620 src/bus-proxyd/bus-policy.h \
1621 src/journal/journald-server.c \
1622 src/journal/journald-server.h
1624 test_tables_CPPFLAGS = \
1626 -I$(top_srcdir)/src/bus-proxyd
1628 test_tables_CFLAGS = \
1632 test_tables_LDADD = \
1633 libsystemd-logs.la \
1634 libsystemd-journal-internal.la \
1635 libsystemd-journal-core.la \
1636 libsystemd-core.la \
1640 test_prioq_SOURCES = \
1641 src/test/test-prioq.c
1643 test_prioq_LDADD = \
1646 test_fileio_SOURCES = \
1647 src/test/test-fileio.c
1649 test_fileio_LDADD = \
1652 test_time_SOURCES = \
1653 src/test/test-time.c
1658 test_architecture_SOURCES = \
1659 src/test/test-architecture.c
1661 test_architecture_LDADD = \
1662 libsystemd-shared.la
1664 test_log_SOURCES = \
1670 test_ipcrm_SOURCES = \
1671 src/test/test-ipcrm.c
1673 test_ipcrm_LDADD = \
1674 libsystemd-shared.la \
1677 test_rtnl_manual_SOURCES = \
1678 src/test/test-rtnl-manual.c
1680 test_rtnl_manual_CFLAGS = \
1684 test_rtnl_manual_LDADD = \
1685 libsystemd-internal.la \
1686 libsystemd-shared.la \
1689 test_ellipsize_SOURCES = \
1690 src/test/test-ellipsize.c
1692 test_ellipsize_LDADD = \
1695 test_date_SOURCES = \
1696 src/test/test-date.c
1701 test_sleep_SOURCES = \
1702 src/test/test-sleep.c
1704 test_sleep_LDADD = \
1707 test_replace_var_SOURCES = \
1708 src/test/test-replace-var.c
1710 test_replace_var_LDADD = \
1711 libsystemd-shared.la
1713 test_calendarspec_SOURCES = \
1714 src/test/test-calendarspec.c
1716 test_calendarspec_LDADD = \
1717 libsystemd-shared.la
1719 test_strip_tab_ansi_SOURCES = \
1720 src/test/test-strip-tab-ansi.c
1722 test_strip_tab_ansi_LDADD = \
1723 libsystemd-shared.la
1725 test_daemon_SOURCES = \
1726 src/test/test-daemon.c
1728 test_daemon_LDADD = \
1729 libsystemd-internal.la \
1730 libsystemd-shared.la
1732 test_cgroup_SOURCES = \
1733 src/test/test-cgroup.c
1735 test_cgroup_LDADD = \
1736 libsystemd-label.la \
1737 libsystemd-shared.la \
1738 libsystemd-internal.la
1740 test_cgroup_mask_SOURCES = \
1741 src/test/test-cgroup-mask.c
1743 test_cgroup_mask_CPPFLAGS = \
1745 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1747 test_cgroup_mask_CFLAGS = \
1751 test_cgroup_mask_LDADD = \
1752 libsystemd-core.la \
1755 test_cgroup_util_SOURCES = \
1756 src/test/test-cgroup-util.c
1758 test_cgroup_util_LDADD = \
1759 libsystemd-label.la \
1760 libsystemd-internal.la \
1761 libsystemd-shared.la
1763 test_env_replace_SOURCES = \
1764 src/test/test-env-replace.c
1766 test_env_replace_LDADD = \
1767 libsystemd-shared.la
1769 test_strbuf_SOURCES = \
1770 src/test/test-strbuf.c
1772 test_strbuf_LDADD = \
1773 libsystemd-shared.la
1775 test_strv_SOURCES = \
1776 src/test/test-strv.c
1779 libsystemd-units.la \
1780 libsystemd-internal.la \
1781 libsystemd-shared.la
1783 test_path_util_SOURCES = \
1784 src/test/test-path-util.c
1786 test_path_util_LDADD = \
1787 libsystemd-shared.la
1789 test_strxcpyx_SOURCES = \
1790 src/test/test-strxcpyx.c
1792 test_strxcpyx_LDADD = \
1793 libsystemd-shared.la
1795 test_install_SOURCES = \
1796 src/test/test-install.c
1798 test_install_LDADD = \
1799 libsystemd-units.la \
1800 libsystemd-label.la \
1801 libsystemd-shared.la \
1802 libsystemd-internal.la
1804 test_watchdog_SOURCES = \
1805 src/test/test-watchdog.c
1807 test_watchdog_LDADD = \
1808 libsystemd-shared.la
1810 test_sched_prio_SOURCES = \
1811 src/test/test-sched-prio.c
1813 test_sched_prio_CPPFLAGS = \
1815 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1817 test_sched_prio_CFLAGS = \
1821 test_sched_prio_LDADD = \
1822 libsystemd-core.la \
1825 test_conf_files_SOURCES = \
1826 src/test/test-conf-files.c
1828 test_conf_files_LDADD = \
1829 libsystemd-shared.la
1831 test_bus_policy_SOURCES = \
1832 src/bus-proxyd/test-bus-policy.c \
1833 src/bus-proxyd/bus-policy.c \
1834 src/bus-proxyd/bus-policy.h
1836 test_bus_policy_LDADD = \
1837 libsystemd-capability.la \
1838 libsystemd-internal.la \
1839 libsystemd-shared.la
1841 # ------------------------------------------------------------------------------
1842 ## .PHONY so it always rebuilds it
1843 .PHONY: coverage lcov-run lcov-report coverage-sync
1845 # run lcov from scratch, always
1850 coverage_dir = coverage
1851 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1854 # reset run coverage tests
1856 @rm -rf $(coverage_dir)
1857 lcov $(coverage_opts) --zerocounters
1860 # generate report based on current coverage data
1862 $(MKDIR_P) $(coverage_dir)
1863 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1864 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1865 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1866 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1868 # lcov doesn't work properly with vpath builds, make sure that bad
1869 # output is not uploaded by mistake.
1870 coverage-sync: coverage
1871 test "$(builddir)" = "$(srcdir)"
1872 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1875 lcov-run lcov-report:
1876 echo "Need to reconfigure with --enable-coverage"
1879 # ------------------------------------------------------------------------------
1880 systemd_analyze_SOURCES = \
1881 src/analyze/analyze.c \
1882 src/analyze/analyze-verify.c \
1883 src/analyze/analyze-verify.h
1885 systemd_verify_CFLAGS = \
1889 systemd_analyze_LDADD = \
1890 libsystemd-core.la \
1891 libsystemd-internal.la \
1892 libsystemd-shared.la \
1895 # ------------------------------------------------------------------------------
1896 systemd_initctl_SOURCES = \
1897 src/initctl/initctl.c
1899 systemd_initctl_LDADD = \
1900 libsystemd-internal.la \
1901 libsystemd-shared.la
1903 # ------------------------------------------------------------------------------
1904 systemd_update_utmp_SOURCES = \
1905 src/update-utmp/update-utmp.c
1907 systemd_update_utmp_CFLAGS = \
1911 systemd_update_utmp_LDADD = \
1912 libsystemd-internal.la \
1913 libsystemd-shared.la \
1916 # ------------------------------------------------------------------------------
1917 systemd_update_done_SOURCES = \
1918 src/update-done/update-done.c
1920 systemd_update_done_LDADD = \
1921 libsystemd-internal.la \
1922 libsystemd-label.la \
1923 libsystemd-shared.la
1925 # ------------------------------------------------------------------------------
1926 systemd_shutdownd_SOURCES = \
1927 src/shutdownd/shutdownd.c
1929 systemd_shutdownd_LDADD = \
1930 libsystemd-label.la \
1931 libsystemd-internal.la \
1932 libsystemd-shared.la
1935 src/systemd/sd-shutdown.h
1937 # ------------------------------------------------------------------------------
1938 systemd_shutdown_SOURCES = \
1941 src/core/shutdown.c \
1942 src/core/mount-setup.c \
1943 src/core/mount-setup.h \
1944 src/core/killall.h \
1947 systemd_shutdown_LDADD = \
1948 libsystemd-label.la \
1949 libudev-internal.la \
1950 libsystemd-shared.la
1952 # ------------------------------------------------------------------------------
1954 systemd_modules_load_SOURCES = \
1955 src/modules-load/modules-load.c
1957 systemd_modules_load_CFLAGS = \
1961 systemd_modules_load_LDADD = \
1962 libsystemd-shared.la \
1965 rootlibexec_PROGRAMS += \
1966 systemd-modules-load
1968 nodist_systemunit_DATA += \
1969 units/systemd-modules-load.service
1971 SYSINIT_TARGET_WANTS += \
1972 systemd-modules-load.service
1975 nodist_systemunit_DATA += \
1976 units/kmod-static-nodes.service
1978 SYSINIT_TARGET_WANTS += \
1979 kmod-static-nodes.service
1984 units/systemd-modules-load.service.in \
1985 units/kmod-static-nodes.service.in
1987 # ------------------------------------------------------------------------------
1989 systemd_tmpfiles_SOURCES = \
1990 src/tmpfiles/tmpfiles.c
1992 systemd_tmpfiles_LDADD = \
1993 libsystemd-units.la \
1994 libsystemd-label.la \
1995 libsystemd-capability.la \
1996 libsystemd-internal.la \
1997 libsystemd-shared.la
1999 rootbin_PROGRAMS += \
2002 dist_systemunit_DATA += \
2003 units/systemd-tmpfiles-clean.timer
2005 nodist_systemunit_DATA += \
2006 units/systemd-tmpfiles-setup-dev.service \
2007 units/systemd-tmpfiles-setup.service \
2008 units/systemd-tmpfiles-clean.service
2010 nodist_tmpfiles_DATA = \
2013 dist_tmpfiles_DATA = \
2014 tmpfiles.d/systemd.conf \
2015 tmpfiles.d/systemd-nologin.conf \
2016 tmpfiles.d/systemd-remote.conf \
2017 tmpfiles.d/tmp.conf \
2018 tmpfiles.d/x11.conf \
2022 dist_tmpfiles_DATA += \
2023 tmpfiles.d/legacy.conf
2026 SYSINIT_TARGET_WANTS += \
2027 systemd-tmpfiles-setup-dev.service \
2028 systemd-tmpfiles-setup.service
2030 dist_zshcompletion_DATA += \
2031 shell-completion/zsh/_systemd-tmpfiles
2033 TIMERS_TARGET_WANTS += \
2034 systemd-tmpfiles-clean.timer
2038 $(sysconfdir)/tmpfiles.d
2042 tmpfiles.d/etc.conf.m4 \
2043 units/systemd-tmpfiles-setup-dev.service.in \
2044 units/systemd-tmpfiles-setup.service.in \
2045 units/systemd-tmpfiles-clean.service.in
2050 # ------------------------------------------------------------------------------
2052 systemd_sysusers_SOURCES = \
2053 src/sysusers/sysusers.c
2055 systemd_sysusers_LDADD = \
2056 libsystemd-units.la \
2057 libsystemd-label.la \
2058 libsystemd-capability.la \
2059 libsystemd-internal.la \
2060 libsystemd-shared.la
2062 rootbin_PROGRAMS += \
2065 nodist_systemunit_DATA += \
2066 units/systemd-sysusers.service
2068 SYSINIT_TARGET_WANTS += \
2069 systemd-sysusers.service
2071 dist_sysusers_DATA = \
2072 sysusers.d/systemd.conf \
2073 sysusers.d/systemd-remote.conf
2075 nodist_sysusers_DATA = \
2076 sysusers.d/basic.conf
2079 units/systemd-sysusers.service.in \
2080 sysusers.d/basic.conf.in
2083 sysusers.d/basic.conf
2089 # ------------------------------------------------------------------------------
2090 dist_factory_etc_DATA = \
2091 factory/etc/nsswitch.conf
2094 dist_factory_pam_DATA = \
2095 factory/etc/pam.d/system-auth \
2096 factory/etc/pam.d/other
2099 # ------------------------------------------------------------------------------
2101 systemd_firstboot_SOURCES = \
2102 src/firstboot/firstboot.c
2104 systemd_firstboot_LDADD = \
2105 libsystemd-units.la \
2106 libsystemd-label.la \
2107 libsystemd-capability.la \
2108 libsystemd-internal.la \
2109 libsystemd-shared.la \
2112 rootbin_PROGRAMS += \
2115 nodist_systemunit_DATA += \
2116 units/systemd-firstboot.service
2119 units/systemd-firstboot.service.in
2121 SYSINIT_TARGET_WANTS += \
2122 systemd-firstboot.service
2125 # ------------------------------------------------------------------------------
2126 systemd_machine_id_setup_SOURCES = \
2127 src/machine-id-setup/machine-id-setup-main.c \
2128 src/core/machine-id-setup.c \
2129 src/core/machine-id-setup.h
2131 systemd_machine_id_setup_LDADD = \
2132 libsystemd-label.la \
2133 libsystemd-internal.la \
2134 libsystemd-shared.la
2136 # ------------------------------------------------------------------------------
2137 systemd_sysctl_SOURCES = \
2140 systemd_sysctl_LDADD = \
2141 libsystemd-shared.la
2143 # ------------------------------------------------------------------------------
2144 systemd_sleep_SOURCES = \
2147 systemd_sleep_LDADD = \
2148 libsystemd-shared.la
2150 # ------------------------------------------------------------------------------
2151 systemd_fsck_SOURCES = \
2154 systemd_fsck_LDADD = \
2155 libsystemd-internal.la \
2156 libudev-internal.la \
2157 libsystemd-shared.la
2159 # ------------------------------------------------------------------------------
2160 systemd_ac_power_SOURCES = \
2161 src/ac-power/ac-power.c
2163 systemd_ac_power_LDADD = \
2164 libudev-internal.la \
2165 libsystemd-shared.la
2167 # ------------------------------------------------------------------------------
2168 systemd_detect_virt_SOURCES = \
2169 src/detect-virt/detect-virt.c
2171 systemd_detect_virt_LDADD = \
2172 libsystemd-shared.la
2174 INSTALL_EXEC_HOOKS += \
2175 systemd-detect-virt-install-hook
2177 # ------------------------------------------------------------------------------
2178 systemd_delta_SOURCES = \
2181 systemd_delta_LDADD = \
2182 libsystemd-shared.la
2184 # ------------------------------------------------------------------------------
2185 systemd_getty_generator_SOURCES = \
2186 src/getty-generator/getty-generator.c
2188 systemd_getty_generator_LDADD = \
2189 libsystemd-label.la \
2190 libsystemd-shared.la
2192 # ------------------------------------------------------------------------------
2193 systemd_debug_generator_SOURCES = \
2194 src/debug-generator/debug-generator.c
2196 systemd_debug_generator_LDADD = \
2197 libsystemd-label.la \
2198 libsystemd-shared.la
2200 # ------------------------------------------------------------------------------
2201 systemd_fstab_generator_SOURCES = \
2202 src/fstab-generator/fstab-generator.c \
2203 src/core/mount-setup.c
2205 systemd_fstab_generator_LDADD = \
2206 libsystemd-label.la \
2207 libsystemd-shared.la
2209 # ------------------------------------------------------------------------------
2210 systemd_system_update_generator_SOURCES = \
2211 src/system-update-generator/system-update-generator.c
2213 systemd_system_update_generator_LDADD = \
2214 libsystemd-label.la \
2215 libsystemd-shared.la
2217 # ------------------------------------------------------------------------------
2219 systemgenerator_PROGRAMS += \
2220 systemd-hibernate-resume-generator
2222 rootlibexec_PROGRAMS += \
2223 systemd-hibernate-resume
2225 systemd_hibernate_resume_SOURCES = \
2226 src/hibernate-resume/hibernate-resume.c
2228 systemd_hibernate_resume_LDADD = \
2229 libsystemd-internal.la \
2230 libsystemd-shared.la
2232 systemd_hibernate_resume_generator_SOURCES = \
2233 src/hibernate-resume/hibernate-resume-generator.c
2235 systemd_hibernate_resume_generator_LDADD = \
2236 libsystemd-label.la \
2237 libsystemd-shared.la
2240 units/systemd-hibernate.service.in \
2241 units/systemd-hibernate-resume@.service.in \
2242 units/systemd-hybrid-sleep.service.in
2244 dist_systemunit_DATA += \
2245 units/hibernate.target \
2246 units/hybrid-sleep.target
2248 nodist_systemunit_DATA += \
2249 units/systemd-hibernate.service \
2250 units/systemd-hibernate-resume@.service \
2251 units/systemd-hybrid-sleep.service
2254 # ------------------------------------------------------------------------------
2256 systemgenerator_PROGRAMS += \
2257 systemd-efi-boot-generator
2259 systemd_efi_boot_generator_SOURCES = \
2260 src/efi-boot-generator/efi-boot-generator.c
2262 systemd_efi_boot_generator_LDADD = \
2263 libsystemd-label.la \
2264 libsystemd-shared.la
2266 # ------------------------------------------------------------------------------
2269 src/boot/boot-loader.h \
2270 src/boot/bootctl.c \
2271 src/boot/boot-loader.c \
2275 libsystemd-shared.la \
2276 libsystemd-internal.la
2281 dist_bashcompletion_DATA += \
2282 shell-completion/bash/bootctl
2284 dist_zshcompletion_DATA += \
2285 shell-completion/zsh/_bootctl
2289 # ------------------------------------------------------------------------------
2291 systemgenerator_PROGRAMS += \
2292 systemd-gpt-auto-generator
2294 systemd_gpt_auto_generator_SOURCES = \
2295 src/gpt-auto-generator/gpt-auto-generator.c \
2296 src/shared/blkid-util.h
2298 systemd_gpt_auto_generator_LDADD = \
2299 libsystemd-label.la \
2300 libsystemd-internal.la \
2301 libudev-internal.la \
2302 libsystemd-shared.la \
2305 systemd_gpt_auto_generator_CFLAGS = \
2310 # ------------------------------------------------------------------------------
2312 systemgenerator_PROGRAMS += \
2313 systemd-dbus1-generator
2315 systemd_dbus1_generator_SOURCES = \
2316 src/dbus1-generator/dbus1-generator.c
2318 systemd_dbus1_generator_LDADD = \
2319 libsystemd-label.la \
2320 libsystemd-shared.la \
2321 libsystemd-internal.la
2323 dbus1-generator-install-hook:
2324 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2325 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2326 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2328 dbus1-generator-uninstall-hook:
2329 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2331 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2332 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2335 # ------------------------------------------------------------------------------
2336 systemd_sysv_generator_SOURCES = \
2337 src/sysv-generator/sysv-generator.c
2339 systemd_sysv_generator_LDADD = \
2340 libsystemd-core.la \
2341 libsystemd-label.la \
2342 libsystemd-shared.la
2344 # ------------------------------------------------------------------------------
2345 systemd_rc_local_generator_SOURCES = \
2346 src/rc-local-generator/rc-local-generator.c
2348 systemd_rc_local_generator_LDADD = \
2349 libsystemd-label.la \
2350 libsystemd-shared.la
2352 # ------------------------------------------------------------------------------
2353 systemd_remount_fs_SOURCES = \
2354 src/remount-fs/remount-fs.c \
2355 src/core/mount-setup.c \
2356 src/core/mount-setup.h
2358 systemd_remount_fs_LDADD = \
2359 libsystemd-label.la \
2360 libsystemd-shared.la
2362 # ------------------------------------------------------------------------------
2363 systemd_cgroups_agent_SOURCES = \
2364 src/cgroups-agent/cgroups-agent.c
2366 systemd_cgroups_agent_LDADD = \
2367 libsystemd-internal.la \
2368 libsystemd-shared.la
2370 # ------------------------------------------------------------------------------
2371 systemd_escape_SOURCES = \
2374 systemd_escape_LDADD = \
2375 libsystemd-shared.la
2377 # -----------------------------------------------------------------------------
2378 systemctl_SOURCES = \
2379 src/systemctl/systemctl.c
2382 libsystemd-units.la \
2383 libsystemd-label.la \
2384 libsystemd-internal.la \
2385 libsystemd-logs.la \
2386 libsystemd-journal-internal.la \
2387 libsystemd-shared.la
2389 # ------------------------------------------------------------------------------
2390 systemd_notify_SOURCES = \
2393 systemd_notify_LDADD = \
2394 libsystemd-internal.la \
2395 libsystemd-shared.la
2397 # ------------------------------------------------------------------------------
2398 systemd_path_SOURCES = \
2401 systemd_path_LDADD = \
2402 libsystemd-internal.la \
2403 libsystemd-shared.la
2405 # ------------------------------------------------------------------------------
2406 systemd_ask_password_SOURCES = \
2407 src/ask-password/ask-password.c
2409 systemd_ask_password_LDADD = \
2410 libsystemd-label.la \
2411 libsystemd-shared.la
2413 # ------------------------------------------------------------------------------
2414 systemd_reply_password_SOURCES = \
2415 src/reply-password/reply-password.c
2417 systemd_reply_password_LDADD = \
2418 libsystemd-shared.la
2420 # ------------------------------------------------------------------------------
2421 systemd_cgls_SOURCES = \
2424 systemd_cgls_LDADD = \
2425 libsystemd-internal.la \
2426 libsystemd-shared.la
2428 # ------------------------------------------------------------------------------
2429 systemd_cgtop_SOURCES = \
2432 systemd_cgtop_LDADD = \
2433 libsystemd-shared.la
2435 # ------------------------------------------------------------------------------
2436 systemd_nspawn_SOURCES = \
2437 src/nspawn/nspawn.c \
2438 src/core/mount-setup.c \
2439 src/core/mount-setup.h \
2440 src/core/loopback-setup.c \
2441 src/core/loopback-setup.h
2443 systemd_nspawn_CFLAGS = \
2448 systemd_nspawn_LDADD = \
2449 libsystemd-label.la \
2450 libsystemd-capability.la \
2451 libsystemd-internal.la \
2452 libudev-internal.la \
2453 libsystemd-shared.la \
2457 systemd_nspawn_LDADD += \
2458 libsystemd-seccomp.la \
2462 # ------------------------------------------------------------------------------
2463 systemd_run_SOURCES = \
2466 systemd_run_LDADD = \
2467 libsystemd-label.la \
2468 libsystemd-capability.la \
2469 libsystemd-internal.la \
2470 libsystemd-shared.la
2472 # ------------------------------------------------------------------------------
2473 systemd_bus_proxyd_SOURCES = \
2474 src/bus-proxyd/bus-proxyd.c \
2475 src/bus-proxyd/bus-policy.c \
2476 src/bus-proxyd/bus-policy.h
2478 systemd_bus_proxyd_LDADD = \
2479 libsystemd-capability.la \
2480 libsystemd-internal.la \
2481 libsystemd-shared.la
2483 bus-proxyd-install-hook:
2484 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
2485 $(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2486 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
2488 bus-proxyd-uninstall-hook:
2489 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2491 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
2492 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
2495 nodist_systemunit_DATA += \
2496 units/systemd-bus-proxyd@.service
2498 dist_systemunit_DATA += \
2499 units/systemd-bus-proxyd.socket
2501 nodist_userunit_DATA += \
2502 units/user/systemd-bus-proxyd@.service
2504 dist_userunit_DATA += \
2505 units/user/systemd-bus-proxyd.socket
2509 units/systemd-bus-proxyd@.service.in \
2510 units/user/systemd-bus-proxyd@.service.in
2512 # ------------------------------------------------------------------------------
2513 systemd_tty_ask_password_agent_SOURCES = \
2514 src/tty-ask-password-agent/tty-ask-password-agent.c
2516 systemd_tty_ask_password_agent_LDADD = \
2517 libsystemd-label.la \
2518 libsystemd-shared.la
2520 # ------------------------------------------------------------------------------
2521 libsystemd_internal_la_SOURCES = \
2522 src/systemd/sd-bus.h \
2523 src/systemd/sd-bus-protocol.h \
2524 src/systemd/sd-bus-vtable.h \
2525 src/systemd/sd-utf8.h \
2526 src/systemd/sd-event.h \
2527 src/systemd/sd-rtnl.h \
2528 src/systemd/sd-resolve.h \
2529 src/systemd/sd-login.h \
2530 src/systemd/sd-id128.h \
2531 src/systemd/sd-daemon.h \
2532 src/systemd/sd-path.h \
2533 src/systemd/sd-network.h \
2534 src/libsystemd/sd-bus/sd-bus.c \
2535 src/libsystemd/sd-bus/bus-control.c \
2536 src/libsystemd/sd-bus/bus-control.h \
2537 src/libsystemd/sd-bus/bus-error.c \
2538 src/libsystemd/sd-bus/bus-error.h \
2539 src/libsystemd/sd-bus/bus-internal.c \
2540 src/libsystemd/sd-bus/bus-internal.h \
2541 src/libsystemd/sd-bus/bus-socket.c \
2542 src/libsystemd/sd-bus/bus-socket.h \
2543 src/libsystemd/sd-bus/bus-kernel.c \
2544 src/libsystemd/sd-bus/bus-kernel.h \
2545 src/libsystemd/sd-bus/bus-container.c \
2546 src/libsystemd/sd-bus/bus-container.h \
2547 src/libsystemd/sd-bus/bus-message.c \
2548 src/libsystemd/sd-bus/bus-message.h \
2549 src/libsystemd/sd-bus/bus-creds.c \
2550 src/libsystemd/sd-bus/bus-creds.h \
2551 src/libsystemd/sd-bus/bus-signature.c \
2552 src/libsystemd/sd-bus/bus-signature.h \
2553 src/libsystemd/sd-bus/bus-type.c \
2554 src/libsystemd/sd-bus/bus-type.h \
2555 src/libsystemd/sd-bus/bus-match.c \
2556 src/libsystemd/sd-bus/bus-match.h \
2557 src/libsystemd/sd-bus/bus-bloom.c \
2558 src/libsystemd/sd-bus/bus-bloom.h \
2559 src/libsystemd/sd-bus/bus-introspect.c \
2560 src/libsystemd/sd-bus/bus-introspect.h \
2561 src/libsystemd/sd-bus/bus-objects.c \
2562 src/libsystemd/sd-bus/bus-objects.h \
2563 src/libsystemd/sd-bus/bus-gvariant.c \
2564 src/libsystemd/sd-bus/bus-gvariant.h \
2565 src/libsystemd/sd-bus/bus-convenience.c \
2566 src/libsystemd/sd-bus/bus-track.c \
2567 src/libsystemd/sd-bus/bus-track.h \
2568 src/libsystemd/sd-bus/bus-util.c \
2569 src/libsystemd/sd-bus/bus-util.h \
2570 src/libsystemd/sd-bus/bus-slot.c \
2571 src/libsystemd/sd-bus/bus-slot.h \
2572 src/libsystemd/sd-bus/bus-protocol.h \
2573 src/libsystemd/sd-bus/kdbus.h \
2574 src/libsystemd/sd-utf8/sd-utf8.c \
2575 src/libsystemd/sd-event/sd-event.c \
2576 src/libsystemd/sd-event/event-util.h \
2577 src/libsystemd/sd-rtnl/sd-rtnl.c \
2578 src/libsystemd/sd-rtnl/rtnl-internal.h \
2579 src/libsystemd/sd-rtnl/rtnl-message.c \
2580 src/libsystemd/sd-rtnl/rtnl-types.h \
2581 src/libsystemd/sd-rtnl/rtnl-types.c \
2582 src/libsystemd/sd-rtnl/rtnl-util.h \
2583 src/libsystemd/sd-rtnl/rtnl-util.c \
2584 src/libsystemd/sd-rtnl/local-addresses.h \
2585 src/libsystemd/sd-rtnl/local-addresses.c \
2586 src/libsystemd/sd-id128/sd-id128.c \
2587 src/libsystemd/sd-daemon/sd-daemon.c \
2588 src/libsystemd/sd-login/sd-login.c \
2589 src/libsystemd/sd-path/sd-path.c \
2590 src/libsystemd/sd-network/sd-network.c \
2591 src/libsystemd/sd-network/network-util.h \
2592 src/libsystemd/sd-network/network-util.c
2594 nodist_libsystemd_internal_la_SOURCES = \
2595 src/libsystemd/libsystemd.sym
2597 libsystemd_internal_la_CFLAGS = \
2601 libsystemd_internal_la_LIBADD = \
2604 libsystemd_resolve_la_SOURCES = \
2605 src/libsystemd/sd-resolve/sd-resolve.c \
2606 src/libsystemd/sd-resolve/resolve-util.h
2608 libsystemd_resolve_la_CFLAGS = \
2612 libsystemd_resolve_la_LIBADD = \
2615 noinst_LTLIBRARIES += \
2616 libsystemd-internal.la \
2617 libsystemd-resolve.la
2619 libsystemd_dump_la_SOURCES = \
2620 src/libsystemd/sd-bus/bus-dump.c \
2621 src/libsystemd/sd-bus/bus-dump.h
2623 libsystemd_dump_la_CFLAGS = \
2627 noinst_LTLIBRARIES += \
2631 src/libsystemd/libsystemd.sym.m4 \
2632 src/libsystemd/libsystemd.pc.in \
2633 src/libsystemd/sd-bus/DIFFERENCES \
2634 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2637 src/libsystemd/libsystemd.sym
2640 src/libsystemd/libsystemd.sym
2642 libsystemd_la_SOURCES = \
2643 $(libsystemd_internal_la_SOURCES) \
2644 $(libsystemd_resolve_la_SOURCES) \
2645 $(libsystemd_journal_internal_la_SOURCES)
2647 nodist_libsystemd_la_SOURCES = \
2648 $(nodist_libsystemd_internal_la_SOURCES)
2650 libsystemd_la_CFLAGS = \
2651 $(libsystemd_internal_la_CFLAGS) \
2652 $(libsystemd_resolve_la_CFLAGS) \
2653 $(libsystemd_journal_internal_la_CFLAGS)
2655 libsystemd_la_LDFLAGS = \
2657 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2658 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2660 libsystemd_la_LIBADD = \
2661 libsystemd-shared.la \
2662 $(libsystemd_internal_la_LIBADD) \
2663 $(libsystemd_journal_internal_la_LIBADD) \
2664 $(libsystemd_resolve_la_LIBADD)
2666 libsystemd-install-hook:
2667 libname=libsystemd.so && $(move-to-rootlibdir)
2669 libsystemd-uninstall-hook:
2670 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2672 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2673 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2675 pkgconfiglib_DATA += \
2676 src/libsystemd/libsystemd.pc
2678 pkginclude_HEADERS += \
2679 src/systemd/sd-login.h \
2680 src/systemd/sd-id128.h \
2681 src/systemd/sd-daemon.h
2684 pkginclude_HEADERS += \
2685 src/systemd/sd-bus.h \
2686 src/systemd/sd-bus-protocol.h \
2687 src/systemd/sd-bus-vtable.h \
2688 src/systemd/sd-utf8.h \
2689 src/systemd/sd-event.h \
2690 src/systemd/sd-rtnl.h \
2691 src/systemd/sd-resolve.h \
2692 src/systemd/sd-path.h
2695 lib_LTLIBRARIES += \
2700 test-bus-signature \
2706 test-bus-kernel-bloom \
2707 test-bus-kernel-benchmark \
2708 test-bus-zero-copy \
2709 test-bus-introspect \
2721 test_bus_marshal_SOURCES = \
2722 src/libsystemd/sd-bus/test-bus-marshal.c
2724 test_bus_marshal_LDADD = \
2725 libsystemd-internal.la \
2726 libsystemd-shared.la \
2727 libsystemd-dump.la \
2728 libsystemd-capability.la \
2733 test_bus_marshal_CFLAGS = \
2739 test_bus_signature_SOURCES = \
2740 src/libsystemd/sd-bus/test-bus-signature.c
2742 test_bus_signature_LDADD = \
2743 libsystemd-shared.la \
2744 libsystemd-internal.la
2746 test_bus_chat_SOURCES = \
2747 src/libsystemd/sd-bus/test-bus-chat.c
2749 test_bus_chat_CFLAGS = \
2753 test_bus_chat_LDADD = \
2754 libsystemd-internal.la \
2755 libsystemd-shared.la
2757 test_bus_cleanup_SOURCES = \
2758 src/libsystemd/sd-bus/test-bus-cleanup.c
2760 test_bus_cleanup_CFLAGS = \
2764 test_bus_cleanup_LDADD = \
2765 libsystemd-internal.la \
2766 libsystemd-shared.la
2768 test_bus_server_SOURCES = \
2769 src/libsystemd/sd-bus/test-bus-server.c
2771 test_bus_server_CFLAGS = \
2775 test_bus_server_LDADD = \
2776 libsystemd-internal.la \
2777 libsystemd-shared.la
2779 test_bus_objects_SOURCES = \
2780 src/libsystemd/sd-bus/test-bus-objects.c
2782 test_bus_objects_CFLAGS = \
2787 test_bus_objects_LDADD = \
2788 libsystemd-internal.la \
2789 libsystemd-shared.la \
2790 libsystemd-dump.la \
2791 libsystemd-capability.la \
2794 test_bus_error_SOURCES = \
2795 src/libsystemd/sd-bus/test-bus-error.c
2797 test_bus_error_LDADD = \
2798 libsystemd-internal.la \
2799 libsystemd-shared.la
2801 test_bus_gvariant_SOURCES = \
2802 src/libsystemd/sd-bus/test-bus-gvariant.c
2804 test_bus_gvariant_LDADD = \
2805 libsystemd-internal.la \
2806 libsystemd-shared.la \
2807 libsystemd-dump.la \
2808 libsystemd-capability.la \
2812 test_bus_gvariant_CFLAGS = \
2817 test_bus_creds_SOURCES = \
2818 src/libsystemd/sd-bus/test-bus-creds.c
2820 test_bus_creds_LDADD = \
2821 libsystemd-internal.la \
2822 libsystemd-shared.la \
2823 libsystemd-dump.la \
2824 libsystemd-capability.la
2826 test_bus_match_SOURCES = \
2827 src/libsystemd/sd-bus/test-bus-match.c
2829 test_bus_match_LDADD = \
2830 libsystemd-internal.la \
2831 libsystemd-shared.la
2833 test_bus_kernel_SOURCES = \
2834 src/libsystemd/sd-bus/test-bus-kernel.c
2836 test_bus_kernel_LDADD = \
2837 libsystemd-internal.la \
2838 libsystemd-shared.la \
2839 libsystemd-dump.la \
2840 libsystemd-capability.la \
2843 test_bus_kernel_CFLAGS = \
2847 test_bus_kernel_bloom_SOURCES = \
2848 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
2850 test_bus_kernel_bloom_LDADD = \
2851 libsystemd-internal.la \
2852 libsystemd-shared.la
2854 test_bus_kernel_benchmark_SOURCES = \
2855 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
2857 test_bus_kernel_benchmark_LDADD = \
2858 libsystemd-internal.la \
2859 libsystemd-shared.la
2861 test_bus_zero_copy_SOURCES = \
2862 src/libsystemd/sd-bus/test-bus-zero-copy.c
2864 test_bus_zero_copy_LDADD = \
2865 libsystemd-internal.la \
2866 libsystemd-shared.la \
2867 libsystemd-dump.la \
2868 libsystemd-capability.la \
2871 test_bus_zero_copy_CFLAGS = \
2875 test_bus_introspect_SOURCES = \
2876 src/libsystemd/sd-bus/test-bus-introspect.c
2878 test_bus_introspect_LDADD = \
2879 libsystemd-internal.la \
2880 libsystemd-shared.la
2882 test_event_SOURCES = \
2883 src/libsystemd/sd-event/test-event.c
2885 test_event_LDADD = \
2886 libsystemd-internal.la \
2887 libsystemd-shared.la
2889 test_rtnl_SOURCES = \
2890 src/libsystemd/sd-rtnl/test-rtnl.c
2893 libsystemd-internal.la \
2894 libsystemd-shared.la
2896 test_resolve_SOURCES = \
2897 src/libsystemd/sd-resolve/test-resolve.c
2899 test_resolve_LDADD = \
2900 libsystemd-resolve.la \
2901 libsystemd-internal.la \
2902 libsystemd-shared.la
2904 test_resolve_CFLAGS = \
2909 src/libsystemd/sd-bus/busctl.c
2912 libsystemd-internal.la \
2913 libsystemd-shared.la \
2914 libsystemd-dump.la \
2915 libsystemd-capability.la \
2922 # ------------------------------------------------------------------------------
2923 noinst_LTLIBRARIES += \
2924 libsystemd-network.la
2926 libsystemd_network_la_CFLAGS = \
2930 libsystemd_network_la_SOURCES = \
2931 src/systemd/sd-dhcp-client.h \
2932 src/systemd/sd-dhcp-server.h \
2933 src/systemd/sd-dhcp-lease.h \
2934 src/systemd/sd-ipv4ll.h \
2935 src/systemd/sd-icmp6-nd.h \
2936 src/systemd/sd-dhcp6-client.h \
2937 src/systemd/sd-dhcp6-lease.h \
2938 src/libsystemd-network/sd-dhcp-client.c \
2939 src/libsystemd-network/sd-dhcp-server.c \
2940 src/libsystemd-network/dhcp-network.c \
2941 src/libsystemd-network/dhcp-option.c \
2942 src/libsystemd-network/dhcp-packet.c \
2943 src/libsystemd-network/dhcp-internal.h \
2944 src/libsystemd-network/dhcp-server-internal.h \
2945 src/libsystemd-network/dhcp-protocol.h \
2946 src/libsystemd-network/dhcp-lease-internal.h \
2947 src/libsystemd-network/sd-dhcp-lease.c \
2948 src/libsystemd-network/sd-ipv4ll.c \
2949 src/libsystemd-network/ipv4ll-network.c \
2950 src/libsystemd-network/ipv4ll-packet.c \
2951 src/libsystemd-network/ipv4ll-internal.h \
2952 src/libsystemd-network/network-internal.c \
2953 src/libsystemd-network/network-internal.h \
2954 src/libsystemd-network/sd-icmp6-nd.c \
2955 src/libsystemd-network/sd-dhcp6-client.c \
2956 src/libsystemd-network/dhcp6-internal.h \
2957 src/libsystemd-network/dhcp6-protocol.h \
2958 src/libsystemd-network/dhcp6-network.c \
2959 src/libsystemd-network/dhcp6-option.c \
2960 src/libsystemd-network/dhcp6-lease-internal.h \
2961 src/libsystemd-network/sd-dhcp6-lease.c
2963 libsystemd_network_la_LIBADD = \
2964 libudev-internal.la \
2965 libsystemd-label.la \
2966 libsystemd-internal.la \
2967 libsystemd-shared.la \
2970 test_dhcp_option_SOURCES = \
2971 src/libsystemd-network/dhcp-protocol.h \
2972 src/libsystemd-network/dhcp-internal.h \
2973 src/libsystemd-network/test-dhcp-option.c
2975 test_dhcp_option_LDADD = \
2976 libsystemd-network.la \
2977 libsystemd-internal.la \
2978 libsystemd-shared.la
2980 test_dhcp_client_SOURCES = \
2981 src/systemd/sd-dhcp-client.h \
2982 src/libsystemd-network/dhcp-protocol.h \
2983 src/libsystemd-network/dhcp-internal.h \
2984 src/libsystemd-network/test-dhcp-client.c
2986 test_dhcp_client_LDADD = \
2987 libsystemd-network.la \
2988 libsystemd-label.la \
2989 libsystemd-internal.la \
2990 libsystemd-shared.la
2992 test_dhcp_server_SOURCES = \
2993 src/libsystemd-network/test-dhcp-server.c
2995 test_dhcp_server_LDADD = \
2996 libsystemd-network.la \
2997 libsystemd-internal.la \
2998 libsystemd-shared.la
3000 test_ipv4ll_SOURCES = \
3001 src/systemd/sd-ipv4ll.h \
3002 src/libsystemd-network/ipv4ll-internal.h \
3003 src/libsystemd-network/test-ipv4ll.c
3005 test_ipv4ll_LDADD = \
3006 libsystemd-network.la \
3007 libsystemd-label.la \
3008 libsystemd-internal.la \
3009 libsystemd-shared.la
3011 test_icmp6_rs_SOURCES = \
3012 src/systemd/sd-dhcp6-client.h \
3013 src/systemd/sd-icmp6-nd.h \
3014 src/libsystemd-network/dhcp6-internal.h \
3015 src/libsystemd-network/test-icmp6-rs.c
3017 test_icmp6_rs_LDADD = \
3018 libsystemd-network.la \
3019 libsystemd-internal.la \
3020 libsystemd-shared.la
3022 test_dhcp6_client_SOURCES = \
3023 src/systemd/sd-dhcp6-client.h \
3024 src/libsystemd-network/dhcp6-internal.h \
3025 src/libsystemd-network/test-dhcp6-client.c
3027 test_dhcp6_client_LDADD = \
3028 libsystemd-network.la \
3029 libsystemd-internal.la \
3030 libsystemd-shared.la
3040 # ------------------------------------------------------------------------------
3042 noinst_LTLIBRARIES += \
3043 libsystemd-terminal.la
3045 rootlibexec_PROGRAMS += \
3048 noinst_PROGRAMS += \
3053 dist_pkgdata_DATA += \
3054 src/libsystemd-terminal/unifont-glyph-array.bin
3056 nodist_userunit_DATA += \
3057 units/user/systemd-consoled.service
3059 USER_DEFAULT_TARGET_WANTS += \
3060 systemd-consoled.service
3063 units/user/systemd-consoled.service.in
3071 libsystemd_terminal_la_CFLAGS = \
3075 libsystemd_terminal_la_SOURCES = \
3076 src/libsystemd-terminal/grdev.h \
3077 src/libsystemd-terminal/grdev-internal.h \
3078 src/libsystemd-terminal/grdev.c \
3079 src/libsystemd-terminal/grdev-drm.c \
3080 src/libsystemd-terminal/idev.h \
3081 src/libsystemd-terminal/idev-internal.h \
3082 src/libsystemd-terminal/idev.c \
3083 src/libsystemd-terminal/idev-evdev.c \
3084 src/libsystemd-terminal/idev-keyboard.c \
3085 src/libsystemd-terminal/sysview.h \
3086 src/libsystemd-terminal/sysview-internal.h \
3087 src/libsystemd-terminal/sysview.c \
3088 src/libsystemd-terminal/term.h \
3089 src/libsystemd-terminal/term-internal.h \
3090 src/libsystemd-terminal/term-charset.c \
3091 src/libsystemd-terminal/term-page.c \
3092 src/libsystemd-terminal/term-parser.c \
3093 src/libsystemd-terminal/term-screen.c \
3094 src/libsystemd-terminal/term-wcwidth.c \
3095 src/libsystemd-terminal/unifont.h \
3096 src/libsystemd-terminal/unifont-def.h \
3097 src/libsystemd-terminal/unifont.c
3099 libsystemd_terminal_la_LIBADD = \
3100 libudev-internal.la \
3101 libsystemd-internal.la \
3102 libsystemd-shared.la \
3105 systemd_consoled_CFLAGS = \
3109 systemd_consoled_SOURCES = \
3110 src/console/consoled.h \
3111 src/console/consoled.c \
3112 src/console/consoled-display.c \
3113 src/console/consoled-manager.c \
3114 src/console/consoled-session.c \
3115 src/console/consoled-terminal.c \
3116 src/console/consoled-workspace.c
3118 systemd_consoled_LDADD = \
3119 libsystemd-terminal.la \
3120 libsystemd-internal.la \
3121 libsystemd-shared.la \
3124 systemd_evcat_CFLAGS = \
3128 systemd_evcat_SOURCES = \
3129 src/libsystemd-terminal/evcat.c
3131 systemd_evcat_LDADD = \
3132 libsystemd-terminal.la \
3133 libsystemd-internal.la \
3134 libsystemd-shared.la \
3137 systemd_modeset_CFLAGS = \
3141 systemd_modeset_SOURCES = \
3142 src/libsystemd-terminal/modeset.c
3144 systemd_modeset_LDADD = \
3145 libsystemd-terminal.la \
3146 libsystemd-internal.la \
3147 libsystemd-shared.la \
3150 systemd_subterm_SOURCES = \
3151 src/libsystemd-terminal/subterm.c
3153 systemd_subterm_LDADD = \
3154 libsystemd-terminal.la \
3155 libsystemd-internal.la \
3156 libsystemd-shared.la
3158 test_term_page_SOURCES = \
3159 src/libsystemd-terminal/test-term-page.c
3161 test_term_page_LDADD = \
3162 libsystemd-terminal.la \
3163 libsystemd-internal.la \
3164 libsystemd-shared.la
3166 test_term_parser_SOURCES = \
3167 src/libsystemd-terminal/test-term-parser.c
3169 test_term_parser_LDADD = \
3170 libsystemd-terminal.la \
3171 libsystemd-internal.la \
3172 libsystemd-shared.la
3174 test_unifont_SOURCES = \
3175 src/libsystemd-terminal/test-unifont.c
3177 test_unifont_LDADD = \
3178 libsystemd-terminal.la \
3179 libsystemd-internal.la \
3180 libsystemd-shared.la
3182 .PHONY: update-unifont
3183 update-unifont: tools/compile-unifont.py
3184 $(AM_V_GEN)$(PYTHON) $< \
3185 <$(top_srcdir)/src/libsystemd-terminal/unifont.hex \
3186 >$(top_srcdir)/src/libsystemd-terminal/unifont-glyph-array.bin
3187 @echo "unifont-glyph-array.bin has been regenerated"
3189 # ------------------------------------------------------------------------------
3199 include_HEADERS += \
3200 src/libudev/libudev.h
3202 lib_LTLIBRARIES += \
3205 libudev_la_SOURCES =\
3206 src/libudev/libudev.sym \
3207 src/libudev/libudev-private.h \
3208 src/libudev/libudev.c \
3209 src/libudev/libudev-list.c \
3210 src/libudev/libudev-util.c \
3211 src/libudev/libudev-device.c \
3212 src/libudev/libudev-enumerate.c \
3213 src/libudev/libudev-monitor.c \
3214 src/libudev/libudev-queue.c \
3215 src/libudev/libudev-hwdb-def.h \
3216 src/libudev/libudev-hwdb.c
3218 libudev_la_CFLAGS = \
3222 libudev_la_LDFLAGS = \
3224 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3225 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3227 libudev_la_LIBADD = \
3228 libsystemd-internal.la \
3229 libsystemd-shared.la
3231 pkgconfiglib_DATA += \
3232 src/libudev/libudev.pc
3235 src/libudev/libudev.pc.in
3238 src/libudev/libudev.pc \
3243 $(AM_V_at)$(MKDIR_P) $(dir $@)
3244 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
3247 $(AM_V_at)$(MKDIR_P) $(dir $@)
3248 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
3250 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3251 libudev-install-hook:
3252 libname=libudev.so && $(move-to-rootlibdir)
3254 libudev-uninstall-hook:
3255 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3257 INSTALL_EXEC_HOOKS += libudev-install-hook
3258 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3260 # ------------------------------------------------------------------------------
3261 noinst_LTLIBRARIES += \
3264 libudev_internal_la_SOURCES =\
3265 $(libudev_la_SOURCES) \
3266 src/libudev/libudev-device-private.c
3268 libudev_internal_la_CFLAGS = \
3270 -fvisibility=default
3272 # ------------------------------------------------------------------------------
3274 $(sysconfdir)/udev/rules.d \
3275 $(sysconfdir)/udev/hwdb.d
3277 dist_network_DATA = \
3278 network/99-default.link \
3279 network/80-container-host0.network \
3280 network/80-container-ve.network
3282 dist_udevrules_DATA += \
3283 rules/42-usb-hid-pm.rules \
3284 rules/50-udev-default.rules \
3285 rules/60-drm.rules \
3286 rules/60-keyboard.rules \
3287 rules/60-persistent-storage-tape.rules \
3288 rules/60-persistent-serial.rules \
3289 rules/60-persistent-input.rules \
3290 rules/60-persistent-alsa.rules \
3291 rules/60-persistent-storage.rules \
3292 rules/64-btrfs.rules \
3293 rules/75-net-description.rules \
3294 rules/75-tty-description.rules \
3295 rules/78-sound-card.rules \
3296 rules/80-net-setup-link.rules \
3297 rules/95-udev-late.rules
3299 nodist_udevrules_DATA += \
3300 rules/99-systemd.rules
3302 dist_udevhwdb_DATA = \
3303 hwdb/20-pci-vendor-model.hwdb \
3304 hwdb/20-pci-classes.hwdb \
3305 hwdb/20-usb-vendor-model.hwdb \
3306 hwdb/20-usb-classes.hwdb \
3307 hwdb/20-sdio-vendor-model.hwdb \
3308 hwdb/20-sdio-classes.hwdb \
3309 hwdb/20-bluetooth-vendor-product.hwdb \
3310 hwdb/20-acpi-vendor.hwdb \
3312 hwdb/20-net-ifname.hwdb \
3313 hwdb/60-keyboard.hwdb
3315 udevconfdir = $(sysconfdir)/udev
3316 dist_udevconf_DATA = \
3319 sharepkgconfigdir = $(datadir)/pkgconfig
3320 sharepkgconfig_DATA = \
3324 rules/99-systemd.rules.in \
3328 rules/99-systemd.rules \
3332 units/systemd-udevd.service.in \
3333 units/systemd-udev-trigger.service.in \
3334 units/systemd-udev-settle.service.in \
3335 units/systemd-udev-hwdb-update.service.in
3338 units/systemd-udevd.service \
3339 units/systemd-udev-trigger.service \
3340 units/systemd-udev-settle.service \
3341 units/systemd-udev-hwdb-update.service
3343 SOCKETS_TARGET_WANTS += \
3344 systemd-udevd-control.socket \
3345 systemd-udevd-kernel.socket
3347 SYSINIT_TARGET_WANTS += \
3348 systemd-udevd.service \
3349 systemd-udev-trigger.service \
3350 systemd-udev-hwdb-update.service
3352 rootbin_PROGRAMS += \
3355 rootlibexec_PROGRAMS += \
3358 noinst_LTLIBRARIES += \
3361 src/udev/keyboard-keys.txt:
3362 $(AM_V_at)$(MKDIR_P) $(dir $@)
3363 $(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/' > $@
3365 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
3366 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3368 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3369 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3371 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
3372 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
3374 libudev_core_la_SOURCES = \
3376 src/udev/udev-event.c \
3377 src/udev/udev-watch.c \
3378 src/udev/udev-node.c \
3379 src/udev/udev-rules.c \
3380 src/udev/udev-ctrl.c \
3381 src/udev/udev-builtin.c \
3382 src/udev/udev-builtin-btrfs.c \
3383 src/udev/udev-builtin-hwdb.c \
3384 src/udev/udev-builtin-input_id.c \
3385 src/udev/udev-builtin-keyboard.c \
3386 src/udev/udev-builtin-net_id.c \
3387 src/udev/udev-builtin-net_setup_link.c \
3388 src/udev/udev-builtin-path_id.c \
3389 src/udev/udev-builtin-usb_id.c \
3390 src/udev/net/link-config.h \
3391 src/udev/net/link-config.c \
3392 src/udev/net/ethtool-util.h \
3393 src/udev/net/ethtool-util.c
3395 nodist_libudev_core_la_SOURCES = \
3396 src/udev/keyboard-keys-from-name.h \
3397 src/udev/keyboard-keys-to-name.h \
3398 src/udev/net/link-config-gperf.c
3401 $(nodist_libudev_core_la_SOURCES)
3404 src/udev/keyboard-keys-from-name.gperf \
3405 src/udev/keyboard-keys.txt \
3406 src/udev/net/link-config-gperf.c
3409 src/udev/net/link-config-gperf.gperf
3411 libudev_core_la_CFLAGS = \
3416 libudev_core_la_LIBADD = \
3417 libudev-internal.la \
3418 libsystemd-label.la \
3419 libsystemd-internal.la \
3420 libsystemd-network.la \
3421 libsystemd-shared.la \
3426 libudev_core_la_SOURCES += \
3427 src/udev/udev-builtin-kmod.c
3429 dist_udevrules_DATA += \
3430 rules/80-drivers.rules
3434 libudev_core_la_SOURCES += \
3435 src/udev/udev-builtin-blkid.c
3439 libudev_core_la_SOURCES += \
3440 src/udev/udev-builtin-uaccess.c \
3441 src/login/logind-acl.c \
3442 src/libsystemd/sd-login/sd-login.c \
3443 src/systemd/sd-login.h
3445 libudev_core_la_LIBADD += \
3449 systemd_udevd_SOURCES = \
3452 systemd_udevd_LDADD = \
3456 src/udev/udevadm.c \
3457 src/udev/udevadm-info.c \
3458 src/udev/udevadm-control.c \
3459 src/udev/udevadm-monitor.c \
3460 src/udev/udevadm-hwdb.c \
3461 src/udev/udevadm-settle.c \
3462 src/udev/udevadm-trigger.c \
3463 src/udev/udevadm-test.c \
3464 src/udev/udevadm-test-builtin.c
3469 # Update hwdb on installation. Do not bother if installing
3470 # in DESTDIR, since this is likely for packaging purposes.
3472 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
3474 INSTALL_DATA_HOOKS += \
3478 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3480 # ------------------------------------------------------------------------------
3489 test_libudev_SOURCES = \
3490 src/test/test-libudev.c
3492 test_libudev_LDADD = \
3493 libsystemd-label.la \
3494 libudev-internal.la \
3495 libsystemd-shared.la
3497 test_udev_SOURCES = \
3498 src/test/test-udev.c
3507 test_udev_LDADD += \
3514 # packed sysfs test tree
3516 $(AM_V_at)$(MKDIR_P) $(dir $@)
3517 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3521 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3526 test/rules-test.sh \
3527 test/rule-syntax-check.py
3529 # ------------------------------------------------------------------------------
3531 src/udev/ata_id/ata_id.c
3534 libudev-internal.la \
3535 libsystemd-shared.la
3537 udevlibexec_PROGRAMS += \
3540 # ------------------------------------------------------------------------------
3541 cdrom_id_SOURCES = \
3542 src/udev/cdrom_id/cdrom_id.c
3545 libudev-internal.la \
3546 libsystemd-shared.la
3548 udevlibexec_PROGRAMS += \
3551 dist_udevrules_DATA += \
3552 rules/60-cdrom_id.rules
3554 # ------------------------------------------------------------------------------
3556 src/udev/collect/collect.c
3559 libudev-internal.la \
3560 libsystemd-shared.la
3562 udevlibexec_PROGRAMS += \
3565 # ------------------------------------------------------------------------------
3567 src/udev/scsi_id/scsi_id.c \
3568 src/udev/scsi_id/scsi_serial.c \
3569 src/udev/scsi_id/scsi.h \
3570 src/udev/scsi_id/scsi_id.h
3573 libudev-internal.la \
3574 libsystemd-shared.la
3576 udevlibexec_PROGRAMS += \
3580 src/udev/scsi_id/README
3582 # ------------------------------------------------------------------------------
3584 src/udev/v4l_id/v4l_id.c
3589 udevlibexec_PROGRAMS += \
3592 dist_udevrules_DATA += \
3593 rules/60-persistent-v4l.rules
3595 # ------------------------------------------------------------------------------
3596 accelerometer_SOURCES = \
3597 src/udev/accelerometer/accelerometer.c
3599 accelerometer_LDADD = \
3600 libudev-internal.la -lm \
3601 libsystemd-shared.la
3603 udevlibexec_PROGRAMS += \
3606 dist_udevrules_DATA += \
3607 rules/61-accelerometer.rules
3609 # ------------------------------------------------------------------------------
3616 libgudev_includedir = \
3617 $(includedir)/gudev-1.0/gudev
3619 libgudev_include_HEADERS = \
3621 src/gudev/gudevenums.h \
3622 src/gudev/gudevenumtypes.h \
3623 src/gudev/gudevtypes.h \
3624 src/gudev/gudevclient.h \
3625 src/gudev/gudevdevice.h \
3626 src/gudev/gudevenumerator.h
3628 lib_LTLIBRARIES += libgudev-1.0.la
3630 pkgconfiglib_DATA += \
3631 src/gudev/gudev-1.0.pc
3634 src/gudev/gudev-1.0.pc
3636 libgudev_1_0_la_SOURCES = \
3637 src/gudev/libgudev-1.0.sym \
3638 src/gudev/gudevenums.h \
3639 src/gudev/gudevenumtypes.h \
3640 src/gudev/gudevenumtypes.h\
3641 src/gudev/gudevtypes.h \
3642 src/gudev/gudevclient.h \
3643 src/gudev/gudevclient.c \
3644 src/gudev/gudevdevice.h \
3645 src/gudev/gudevdevice.c \
3646 src/gudev/gudevenumerator.h \
3647 src/gudev/gudevenumerator.c \
3648 src/gudev/gudevprivate.h
3650 nodist_libgudev_1_0_la_SOURCES = \
3651 src/gudev/gudevmarshal.h \
3652 src/gudev/gudevmarshal.c \
3653 src/gudev/gudevenumtypes.h \
3654 src/gudev/gudevenumtypes.c
3657 $(nodist_libgudev_1_0_la_SOURCES)
3659 libgudev_1_0_la_CPPFLAGS = \
3661 -I$(top_builddir)/src\
3662 -I$(top_srcdir)/src\
3663 -I$(top_builddir)/src/gudev \
3664 -I$(top_srcdir)/src/gudev \
3665 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3666 -D_GUDEV_COMPILATION \
3667 -DG_LOG_DOMAIN=\"GUdev\"
3669 libgudev_1_0_la_CFLAGS = \
3671 -fvisibility=default \
3674 libgudev_1_0_la_LIBADD = \
3678 libgudev_1_0_la_LDFLAGS = \
3680 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3683 -Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym
3685 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3686 $(AM_V_at)$(MKDIR_P) $(dir $@)
3687 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3689 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3690 $(AM_V_at)$(MKDIR_P) $(dir $@)
3691 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3692 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3694 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3695 $(AM_V_at)$(MKDIR_P) $(dir $@)
3696 $(AM_V_GEN)glib-mkenums --template $^ > $@
3698 if HAVE_INTROSPECTION
3699 -include $(INTROSPECTION_MAKEFILE)
3701 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3703 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3705 src_gudev_GUdev_1_0_gir_CFLAGS = \
3708 -D_GUDEV_COMPILATION \
3709 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3710 -I$(top_srcdir)/src \
3711 -I$(top_builddir)/src \
3712 -I$(top_srcdir)/src/gudev \
3713 -I$(top_builddir)/src/gudev
3715 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
3717 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
3718 --pkg-export=gudev-1.0 \
3721 src_gudev_GUdev_1_0_gir_FILES = \
3723 src/gudev/gudevtypes.h \
3724 src/gudev/gudevenums.h \
3725 src/gudev/gudevenumtypes.h \
3726 src/gudev/gudevclient.h \
3727 src/gudev/gudevdevice.h \
3728 src/gudev/gudevenumerator.h \
3729 src/gudev/gudevclient.c \
3730 src/gudev/gudevdevice.c \
3731 src/gudev/gudevenumerator.c
3733 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
3734 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
3736 girdir = $(datadir)/gir-1.0
3738 src/gudev/GUdev-1.0.gir
3740 typelibsdir = $(libdir)/girepository-1.0
3742 src/gudev/GUdev-1.0.typelib
3744 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
3745 endif # HAVE_INTROSPECTION
3749 src/gudev/gudev-1.0.pc.in \
3750 src/gudev/gudevmarshal.list \
3751 src/gudev/gudevenumtypes.h.template \
3752 src/gudev/gudevenumtypes.c.template \
3753 src/gudev/gjs-example.js \
3754 src/gudev/seed-example-enum.js \
3755 src/gudev/seed-example.js
3757 # ------------------------------------------------------------------------------
3758 mtd_probe_SOURCES = \
3759 src/udev/mtd_probe/mtd_probe.c \
3760 src/udev/mtd_probe/mtd_probe.h \
3761 src/udev/mtd_probe/probe_smartmedia.c
3763 dist_udevrules_DATA += \
3764 rules/75-probe_mtd.rules
3766 udevlibexec_PROGRAMS += \
3769 # ------------------------------------------------------------------------------
3770 test_id128_SOURCES = \
3771 src/test/test-id128.c
3773 test_id128_LDADD = \
3774 libsystemd-internal.la \
3775 libsystemd-shared.la
3780 # ------------------------------------------------------------------------------
3782 rootlibexec_PROGRAMS += \
3785 systemd_activate_SOURCES = \
3786 src/activate/activate.c
3788 systemd_activate_LDADD = \
3789 libsystemd-label.la \
3790 libsystemd-internal.la \
3791 libsystemd-shared.la
3793 # ------------------------------------------------------------------------------
3794 systemd_journald_SOURCES = \
3795 src/journal/journald.c \
3796 src/journal/journald-server.h
3798 systemd_journald_LDADD = \
3799 libsystemd-journal-core.la \
3800 libsystemd-internal.la \
3801 libsystemd-shared.la
3803 systemd_cat_SOURCES = \
3806 systemd_cat_LDADD = \
3807 libsystemd-journal-core.la
3810 rootlibexec_PROGRAMS += \
3811 systemd-journal-remote
3813 systemd_journal_remote_SOURCES = \
3814 src/journal-remote/journal-remote-parse.h \
3815 src/journal-remote/journal-remote-parse.c \
3816 src/journal-remote/journal-remote-write.h \
3817 src/journal-remote/journal-remote-write.c \
3818 src/journal-remote/journal-remote.h \
3819 src/journal-remote/journal-remote.c
3821 systemd_journal_remote_LDADD = \
3822 libsystemd-internal.la \
3823 libsystemd-journal-core.la
3825 systemd_journal_remote_SOURCES += \
3826 src/journal-remote/microhttpd-util.h \
3827 src/journal-remote/microhttpd-util.c
3829 systemd_journal_remote_CFLAGS = \
3831 $(MICROHTTPD_CFLAGS)
3833 systemd_journal_remote_LDADD += \
3837 systemd_journal_remote_LDADD += \
3840 # systemd-journal-remote make sense mostly with full crypto stack
3841 dist_systemunit_DATA += \
3842 units/systemd-journal-remote.socket
3844 nodist_systemunit_DATA += \
3845 units/systemd-journal-remote.service
3848 units/systemd-journal-remote.service.in
3850 journal-remote-install-hook: journal-install-hook
3851 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
3852 -chown 0:0 $(DESTDIR)/var/log/journal/remote
3853 -chmod 755 $(DESTDIR)/var/log/journal/remote
3855 INSTALL_EXEC_HOOKS += journal-remote-install-hook
3859 nodist_pkgsysconf_DATA += \
3860 src/journal-remote/journal-remote.conf
3863 src/journal-remote/journal-remote.conf.in
3866 src/journal-remote/journal-remote.conf
3870 rootlibexec_PROGRAMS += \
3871 systemd-journal-upload
3873 systemd_journal_upload_SOURCES = \
3874 src/journal-remote/journal-upload.h \
3875 src/journal-remote/journal-upload.c \
3876 src/journal-remote/journal-upload-journal.c
3878 systemd_journal_upload_CFLAGS = \
3882 systemd_journal_upload_LDADD = \
3883 libsystemd-core.la \
3884 libsystemd-internal.la \
3885 libsystemd-journal-internal.la \
3886 libsystemd-shared.la \
3889 nodist_systemunit_DATA += \
3890 units/systemd-journal-upload.service
3893 units/systemd-journal-upload.service.in
3895 nodist_pkgsysconf_DATA += \
3896 src/journal-remote/journal-upload.conf
3899 src/journal-remote/journal-upload.conf.in
3902 src/journal-remote/journal-upload.conf
3905 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3906 journalctl_CFLAGS = \
3909 journalctl_SOURCES = \
3910 src/journal/journalctl.c
3912 journalctl_LDADD = \
3913 libsystemd-journal-internal.la \
3914 libsystemd-internal.la \
3915 libsystemd-logs.la \
3916 libsystemd-shared.la
3919 journalctl_LDADD += \
3924 journalctl_SOURCES += \
3925 src/journal/journal-qrcode.c \
3926 src/journal/journal-qrcode.h
3928 journalctl_CFLAGS += \
3931 journalctl_LDADD += \
3935 test_journal_SOURCES = \
3936 src/journal/test-journal.c
3938 test_journal_LDADD = \
3939 libsystemd-journal-core.la
3941 test_journal_send_SOURCES = \
3942 src/journal/test-journal-send.c
3944 test_journal_send_LDADD = \
3945 libsystemd-journal-core.la
3947 test_journal_syslog_SOURCES = \
3948 src/journal/test-journal-syslog.c
3950 test_journal_syslog_LDADD = \
3951 libsystemd-journal-core.la
3953 test_journal_match_SOURCES = \
3954 src/journal/test-journal-match.c
3956 test_journal_match_LDADD = \
3957 libsystemd-journal-core.la
3959 test_journal_enum_SOURCES = \
3960 src/journal/test-journal-enum.c
3962 test_journal_enum_LDADD = \
3963 libsystemd-journal-core.la
3965 test_journal_stream_SOURCES = \
3966 src/journal/test-journal-stream.c
3968 test_journal_stream_LDADD = \
3969 libsystemd-journal-core.la
3971 test_journal_flush_SOURCES = \
3972 src/journal/test-journal-flush.c
3974 test_journal_flush_LDADD = \
3975 libsystemd-journal-core.la
3977 test_journal_init_SOURCES = \
3978 src/journal/test-journal-init.c
3980 test_journal_init_LDADD = \
3981 libsystemd-journal-core.la
3983 test_journal_verify_SOURCES = \
3984 src/journal/test-journal-verify.c
3986 test_journal_verify_LDADD = \
3987 libsystemd-journal-core.la
3989 test_journal_interleaving_SOURCES = \
3990 src/journal/test-journal-interleaving.c
3992 test_journal_interleaving_LDADD = \
3993 libsystemd-journal-core.la
3995 test_mmap_cache_SOURCES = \
3996 src/journal/test-mmap-cache.c
3998 test_mmap_cache_LDADD = \
3999 libsystemd-journal-core.la
4001 test_catalog_SOURCES = \
4002 src/journal/test-catalog.c
4004 test_catalog_CPPFLAGS = \
4006 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
4008 test_catalog_LDADD = \
4009 libsystemd-journal-core.la
4011 test_compress_SOURCES = \
4012 src/journal/test-compress.c
4014 test_compress_LDADD = \
4015 libsystemd-journal-internal.la \
4016 libsystemd-shared.la
4018 test_compress_benchmark_SOURCES = \
4019 src/journal/test-compress-benchmark.c
4021 test_compress_benchmark_LDADD = \
4022 libsystemd-journal-internal.la \
4023 libsystemd-shared.la
4025 libsystemd_journal_core_la_SOURCES = \
4026 src/journal/journald-kmsg.c \
4027 src/journal/journald-kmsg.h \
4028 src/journal/journald-syslog.c \
4029 src/journal/journald-syslog.h \
4030 src/journal/journald-stream.c \
4031 src/journal/journald-stream.h \
4032 src/journal/journald-server.c \
4033 src/journal/journald-server.h \
4034 src/journal/journald-console.c \
4035 src/journal/journald-console.h \
4036 src/journal/journald-wall.c \
4037 src/journal/journald-wall.h \
4038 src/journal/journald-native.c \
4039 src/journal/journald-native.h \
4040 src/journal/journald-rate-limit.c \
4041 src/journal/journald-rate-limit.h \
4042 src/journal/journal-internal.h
4044 nodist_libsystemd_journal_core_la_SOURCES = \
4045 src/journal/journald-gperf.c
4047 libsystemd_journal_core_la_LIBADD = \
4048 libsystemd-journal-internal.la \
4049 libudev-internal.la \
4050 libsystemd-capability.la \
4051 libsystemd-label.la \
4052 libsystemd-internal.la \
4053 libsystemd-shared.la
4056 libsystemd_journal_core_la_LIBADD += \
4060 noinst_LTLIBRARIES += \
4061 libsystemd-journal-core.la
4063 journal-install-hook:
4064 -$(MKDIR_P) $(DESTDIR)/var/log/journal
4065 -chown 0:0 $(DESTDIR)/var/log/journal
4066 -chmod 755 $(DESTDIR)/var/log/journal
4067 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4068 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4070 journal-uninstall-hook:
4071 -rmdir $(DESTDIR)/var/log/journal/remote
4072 -rmdir $(DESTDIR)/var/log/journal/
4074 INSTALL_EXEC_HOOKS += journal-install-hook
4075 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4077 # ------------------------------------------------------------------------------
4078 # Update catalog on installation. Do not bother if installing
4079 # in DESTDIR, since this is likely for packaging purposes.
4080 catalog-update-hook:
4081 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4083 INSTALL_DATA_HOOKS += \
4086 catalog-remove-hook:
4087 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4089 UNINSTALL_DATA_HOOKS += \
4098 test-journal-syslog \
4099 test-journal-match \
4100 test-journal-stream \
4102 test-journal-verify \
4103 test-journal-interleaving \
4104 test-journal-flush \
4111 test-compress-benchmark
4114 pkginclude_HEADERS += \
4115 src/systemd/sd-journal.h \
4116 src/systemd/sd-messages.h \
4117 src/systemd/_sd-common.h
4119 libsystemd_journal_internal_la_SOURCES = \
4120 src/journal/sd-journal.c \
4121 src/systemd/sd-journal.h \
4122 src/systemd/_sd-common.h \
4123 src/journal/journal-file.c \
4124 src/journal/journal-file.h \
4125 src/journal/journal-vacuum.c \
4126 src/journal/journal-vacuum.h \
4127 src/journal/journal-verify.c \
4128 src/journal/journal-verify.h \
4129 src/journal/lookup3.c \
4130 src/journal/lookup3.h \
4131 src/journal/journal-send.c \
4132 src/journal/journal-def.h \
4133 src/journal/compress.h \
4134 src/journal/catalog.c \
4135 src/journal/catalog.h \
4136 src/journal/mmap-cache.c \
4137 src/journal/mmap-cache.h
4139 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4140 libsystemd_journal_internal_la_CFLAGS = \
4143 libsystemd_journal_internal_la_LIBADD =
4145 libsystemd_journal_internal_la_SOURCES += \
4146 src/journal/compress.c
4149 libsystemd_journal_internal_la_CFLAGS += \
4152 libsystemd_journal_internal_la_LIBADD += \
4157 libsystemd_journal_internal_la_LIBADD += \
4162 libsystemd_journal_internal_la_SOURCES += \
4163 src/journal/journal-authenticate.c \
4164 src/journal/journal-authenticate.h \
4165 src/journal/fsprg.c \
4168 libsystemd_journal_internal_la_LIBADD += \
4171 # fsprg.c is a drop-in file using void pointer arithmetic
4172 libsystemd_journal_internal_la_CFLAGS += \
4177 noinst_LTLIBRARIES += \
4178 libsystemd-journal-internal.la
4180 rootlibexec_PROGRAMS += \
4183 rootbin_PROGRAMS += \
4189 dist_systemunit_DATA += \
4190 units/systemd-journald.socket \
4191 units/systemd-journald-dev-log.socket
4193 nodist_systemunit_DATA += \
4194 units/systemd-journald.service \
4195 units/systemd-journal-flush.service \
4196 units/systemd-journal-catalog-update.service
4198 dist_pkgsysconf_DATA += \
4199 src/journal/journald.conf
4201 dist_catalog_DATA = \
4202 catalog/systemd.fr.catalog \
4203 catalog/systemd.it.catalog \
4204 catalog/systemd.pl.catalog \
4205 catalog/systemd.ru.catalog \
4206 catalog/systemd.catalog
4208 SOCKETS_TARGET_WANTS += \
4209 systemd-journald.socket \
4210 systemd-journald-dev-log.socket
4212 SYSINIT_TARGET_WANTS += \
4213 systemd-journald.service \
4214 systemd-journal-flush.service \
4215 systemd-journal-catalog-update.service
4218 units/systemd-journald.service.in \
4219 units/systemd-journal-flush.service.in \
4220 units/systemd-journal-catalog-update.service.in \
4221 src/journal/journald-gperf.gperf
4224 src/journal/journald-gperf.c
4226 # ------------------------------------------------------------------------------
4228 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4230 rootlibexec_PROGRAMS += \
4231 systemd-journal-gatewayd
4233 systemd_journal_gatewayd_SOURCES = \
4234 src/journal-remote/journal-gatewayd.c \
4235 src/journal-remote/microhttpd-util.h \
4236 src/journal-remote/microhttpd-util.c
4238 systemd_journal_gatewayd_LDADD = \
4239 libsystemd-logs.la \
4240 libsystemd-journal-internal.la \
4241 libsystemd-internal.la \
4242 libsystemd-shared.la \
4246 systemd_journal_gatewayd_LDADD += \
4250 systemd_journal_gatewayd_CFLAGS = \
4252 $(MICROHTTPD_CFLAGS)
4254 systemd_journal_gatewayd_CPPFLAGS = \
4256 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4258 dist_systemunit_DATA += \
4259 units/systemd-journal-gatewayd.socket
4261 nodist_systemunit_DATA += \
4262 units/systemd-journal-gatewayd.service
4264 dist_gatewayddocumentroot_DATA = \
4265 src/journal-remote/browse.html
4270 units/systemd-journal-gatewayd.service.in
4272 # ------------------------------------------------------------------------------
4274 systemd_socket_proxyd_SOURCES = \
4275 src/socket-proxy/socket-proxyd.c
4277 systemd_socket_proxyd_LDADD = \
4278 libsystemd-logs.la \
4279 libsystemd-internal.la \
4280 libsystemd-journal-internal.la \
4281 libsystemd-shared.la \
4282 libsystemd-resolve.la
4284 # ------------------------------------------------------------------------------
4286 systemd_coredump_SOURCES = \
4287 src/journal/coredump.c \
4288 src/journal/coredump-vacuum.c \
4289 src/journal/coredump-vacuum.h
4291 systemd_coredump_LDADD = \
4292 libsystemd-journal-internal.la \
4293 libsystemd-label.la \
4294 libsystemd-internal.la \
4295 libsystemd-shared.la
4298 systemd_coredump_SOURCES += \
4299 src/journal/stacktrace.c \
4300 src/journal/stacktrace.h
4302 systemd_coredump_LDADD += \
4306 rootlibexec_PROGRAMS += \
4309 dist_pkgsysconf_DATA += \
4310 src/journal/coredump.conf
4313 systemd_coredump_LDADD += \
4317 coredumpctl_SOURCES = \
4318 src/journal/coredumpctl.c
4320 coredumpctl_LDADD = \
4321 libsystemd-journal-internal.la \
4322 libsystemd-internal.la \
4323 libsystemd-shared.la
4329 test-coredump-vacuum
4331 test_coredump_vacuum_SOURCES = \
4332 src/journal/test-coredump-vacuum.c \
4333 src/journal/coredump-vacuum.c \
4334 src/journal/coredump-vacuum.h
4336 test_coredump_vacuum_LDADD = \
4337 libsystemd-internal.la \
4338 libsystemd-shared.la
4340 dist_bashcompletion_DATA += \
4341 shell-completion/bash/coredumpctl
4343 dist_zshcompletion_DATA += \
4344 shell-completion/zsh/_coredumpctl
4347 sysctl.d/50-coredump.conf
4350 sysctl.d/50-coredump.conf
4354 sysctl.d/50-coredump.conf.in
4356 # ------------------------------------------------------------------------------
4358 systemd_binfmt_SOURCES = \
4361 systemd_binfmt_LDADD = \
4362 libsystemd-shared.la
4364 rootlibexec_PROGRAMS += \
4367 dist_systemunit_DATA += \
4368 units/proc-sys-fs-binfmt_misc.automount \
4369 units/proc-sys-fs-binfmt_misc.mount
4371 nodist_systemunit_DATA += \
4372 units/systemd-binfmt.service
4375 $(prefix)/lib/binfmt.d \
4376 $(sysconfdir)/binfmt.d
4378 SYSINIT_TARGET_WANTS += \
4379 systemd-binfmt.service \
4380 proc-sys-fs-binfmt_misc.automount
4385 units/systemd-binfmt.service.in
4387 # ------------------------------------------------------------------------------
4389 systemd_vconsole_setup_SOURCES = \
4390 src/vconsole/vconsole-setup.c
4392 systemd_vconsole_setup_LDADD = \
4393 libsystemd-shared.la
4395 rootlibexec_PROGRAMS += \
4396 systemd-vconsole-setup
4398 nodist_systemunit_DATA += \
4399 units/systemd-vconsole-setup.service
4401 SYSINIT_TARGET_WANTS += \
4402 systemd-vconsole-setup.service
4406 units/systemd-vconsole-setup.service.in
4408 # ------------------------------------------------------------------------------
4410 systemd_bootchart_SOURCES = \
4411 src/bootchart/bootchart.c \
4412 src/bootchart/bootchart.h \
4413 src/bootchart/store.c \
4414 src/bootchart/store.h \
4415 src/bootchart/svg.c \
4418 systemd_bootchart_LDADD = \
4419 libsystemd-journal-internal.la \
4420 libsystemd-shared.la
4422 rootlibexec_PROGRAMS += \
4425 dist_pkgsysconf_DATA += \
4426 src/bootchart/bootchart.conf
4429 # ------------------------------------------------------------------------------
4430 if ENABLE_QUOTACHECK
4431 rootlibexec_PROGRAMS += \
4434 nodist_systemunit_DATA += \
4435 units/systemd-quotacheck.service
4437 systemd_quotacheck_SOURCES = \
4438 src/quotacheck/quotacheck.c
4440 systemd_quotacheck_LDADD = \
4441 libsystemd-shared.la
4445 units/systemd-quotacheck.service.in
4447 nodist_systemunit_DATA += \
4448 units/quotaon.service
4450 # ------------------------------------------------------------------------------
4451 if ENABLE_RANDOMSEED
4452 rootlibexec_PROGRAMS += \
4455 nodist_systemunit_DATA += \
4456 units/systemd-random-seed.service
4458 systemd_random_seed_SOURCES = \
4459 src/random-seed/random-seed.c
4461 systemd_random_seed_LDADD = \
4462 libsystemd-label.la \
4463 libsystemd-shared.la
4465 SYSINIT_TARGET_WANTS += \
4466 systemd-random-seed.service
4471 units/systemd-random-seed.service.in
4473 # ------------------------------------------------------------------------------
4475 rootlibexec_PROGRAMS += \
4478 nodist_systemunit_DATA += \
4479 units/systemd-backlight@.service
4481 systemd_backlight_SOURCES = \
4482 src/backlight/backlight.c
4484 systemd_backlight_LDADD = \
4485 libsystemd-label.la \
4486 libudev-internal.la \
4487 libsystemd-shared.la
4491 units/systemd-backlight@.service.in
4493 # ------------------------------------------------------------------------------
4495 rootlibexec_PROGRAMS += \
4498 nodist_systemunit_DATA += \
4499 units/systemd-rfkill@.service
4501 systemd_rfkill_SOURCES = \
4504 systemd_rfkill_LDADD = \
4505 libsystemd-label.la \
4506 libudev-internal.la \
4507 libsystemd-shared.la
4511 units/systemd-rfkill@.service.in
4513 # ------------------------------------------------------------------------------
4514 if HAVE_LIBCRYPTSETUP
4515 rootlibexec_PROGRAMS += \
4518 systemgenerator_PROGRAMS += \
4519 systemd-cryptsetup-generator
4521 dist_systemunit_DATA += \
4522 units/cryptsetup.target \
4523 units/cryptsetup-pre.target
4525 systemd_cryptsetup_SOURCES = \
4526 src/cryptsetup/cryptsetup.c
4528 systemd_cryptsetup_CFLAGS = \
4530 $(LIBCRYPTSETUP_CFLAGS)
4532 systemd_cryptsetup_LDADD = \
4533 libsystemd-label.la \
4534 libudev-internal.la \
4535 libsystemd-shared.la \
4536 $(LIBCRYPTSETUP_LIBS)
4538 systemd_cryptsetup_generator_SOURCES = \
4539 src/cryptsetup/cryptsetup-generator.c
4541 systemd_cryptsetup_generator_LDADD = \
4542 libsystemd-label.la \
4543 libsystemd-shared.la
4545 SYSINIT_TARGET_WANTS += \
4550 # ------------------------------------------------------------------------------
4552 systemd_hostnamed_SOURCES = \
4553 src/hostname/hostnamed.c
4555 systemd_hostnamed_LDADD = \
4556 libsystemd-label.la \
4557 libsystemd-internal.la \
4558 libsystemd-shared.la
4560 rootlibexec_PROGRAMS += \
4563 nodist_systemunit_DATA += \
4564 units/systemd-hostnamed.service
4566 dist_systemunit_DATA_busnames += \
4567 units/org.freedesktop.hostname1.busname
4569 dist_dbuspolicy_DATA += \
4570 src/hostname/org.freedesktop.hostname1.conf
4572 dist_dbussystemservice_DATA += \
4573 src/hostname/org.freedesktop.hostname1.service
4575 polkitpolicy_files += \
4576 src/hostname/org.freedesktop.hostname1.policy
4578 SYSTEM_UNIT_ALIASES += \
4579 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4581 BUSNAMES_TARGET_WANTS += \
4582 org.freedesktop.hostname1.busname
4584 hostnamectl_SOURCES = \
4585 src/hostname/hostnamectl.c
4587 hostnamectl_LDADD = \
4588 libsystemd-internal.la \
4589 libsystemd-shared.la
4594 dist_bashcompletion_DATA += \
4595 shell-completion/bash/hostnamectl
4597 dist_zshcompletion_DATA += \
4598 shell-completion/zsh/_hostnamectl
4602 polkitpolicy_in_files += \
4603 src/hostname/org.freedesktop.hostname1.policy.in
4606 units/systemd-hostnamed.service.in
4608 # ------------------------------------------------------------------------------
4609 dist_systemunit_DATA_busnames += \
4610 units/org.freedesktop.systemd1.busname
4612 BUSNAMES_TARGET_WANTS += \
4613 org.freedesktop.systemd1.busname
4615 # ------------------------------------------------------------------------------
4617 systemd_localed_SOURCES = \
4618 src/locale/localed.c
4620 systemd_localed_LDADD = \
4621 libsystemd-label.la \
4622 libsystemd-internal.la \
4623 libsystemd-shared.la
4625 nodist_systemunit_DATA += \
4626 units/systemd-localed.service
4628 dist_systemunit_DATA_busnames += \
4629 units/org.freedesktop.locale1.busname
4631 rootlibexec_PROGRAMS += \
4634 dist_dbuspolicy_DATA += \
4635 src/locale/org.freedesktop.locale1.conf
4637 dist_dbussystemservice_DATA += \
4638 src/locale/org.freedesktop.locale1.service
4640 polkitpolicy_files += \
4641 src/locale/org.freedesktop.locale1.policy
4643 SYSTEM_UNIT_ALIASES += \
4644 systemd-localed.service dbus-org.freedesktop.locale1.service
4646 BUSNAMES_TARGET_WANTS += \
4647 org.freedesktop.locale1.busname
4649 dist_pkgdata_DATA += \
4650 src/locale/kbd-model-map
4652 dist_noinst_SCRIPT = \
4653 src/locale/generate-kbd-model-map
4655 localectl_SOURCES = \
4656 src/locale/localectl.c
4659 libsystemd-internal.la \
4660 libsystemd-shared.la
4665 dist_bashcompletion_DATA += \
4666 shell-completion/bash/localectl
4668 dist_zshcompletion_DATA += \
4669 shell-completion/zsh/_localectl
4673 .PHONY: update-kbd-model-map
4675 polkitpolicy_in_files += \
4676 src/locale/org.freedesktop.locale1.policy.in
4679 units/systemd-localed.service.in
4681 # ------------------------------------------------------------------------------
4683 systemd_timedated_SOURCES = \
4684 src/timedate/timedated.c
4686 systemd_timedated_LDADD = \
4687 libsystemd-label.la \
4688 libsystemd-internal.la \
4689 libsystemd-shared.la
4691 rootlibexec_PROGRAMS += \
4694 dist_dbussystemservice_DATA += \
4695 src/timedate/org.freedesktop.timedate1.service
4697 dist_dbuspolicy_DATA += \
4698 src/timedate/org.freedesktop.timedate1.conf
4700 nodist_systemunit_DATA += \
4701 units/systemd-timedated.service
4703 dist_systemunit_DATA_busnames += \
4704 units/org.freedesktop.timedate1.busname
4706 polkitpolicy_files += \
4707 src/timedate/org.freedesktop.timedate1.policy
4709 SYSTEM_UNIT_ALIASES += \
4710 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4712 BUSNAMES_TARGET_WANTS += \
4713 org.freedesktop.timedate1.busname
4715 timedatectl_SOURCES = \
4716 src/timedate/timedatectl.c
4718 timedatectl_LDADD = \
4719 libsystemd-internal.la \
4720 libsystemd-shared.la
4725 dist_bashcompletion_DATA += \
4726 shell-completion/bash/timedatectl
4728 dist_zshcompletion_DATA += \
4729 shell-completion/zsh/_timedatectl
4732 polkitpolicy_in_files += \
4733 src/timedate/org.freedesktop.timedate1.policy.in
4736 units/systemd-timedated.service.in
4738 # ------------------------------------------------------------------------------
4740 systemd_timesyncd_SOURCES = \
4741 src/timesync/timesyncd.c \
4742 src/timesync/timesyncd-manager.c \
4743 src/timesync/timesyncd-manager.h \
4744 src/timesync/timesyncd-conf.c \
4745 src/timesync/timesyncd-conf.h \
4746 src/timesync/timesyncd-server.c \
4747 src/timesync/timesyncd-server.h
4749 nodist_systemd_timesyncd_SOURCES = \
4750 src/timesync/timesyncd-gperf.c
4753 src/timesync/timesyncd-gperf.gperf
4756 src/timesync/timesyncd-gperf.c
4758 systemd_timesyncd_LDADD = \
4759 libsystemd-resolve.la \
4760 libsystemd-network.la \
4761 libsystemd-label.la \
4762 libsystemd-capability.la \
4763 libsystemd-internal.la \
4764 libsystemd-shared.la \
4767 rootlibexec_PROGRAMS += \
4770 nodist_systemunit_DATA += \
4771 units/systemd-timesyncd.service
4773 GENERAL_ALIASES += \
4774 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
4777 units/systemd-timesyncd.service.in
4779 nodist_pkgsysconf_DATA += \
4780 src/timesync/timesyncd.conf
4783 src/timesync/timesyncd.conf.in
4786 src/timesync/timesyncd.conf
4789 # ------------------------------------------------------------------------------
4791 libnss_myhostname_la_SOURCES = \
4792 src/nss-myhostname/nss-myhostname.sym \
4793 src/nss-myhostname/nss-myhostname.c
4795 libnss_myhostname_la_LDFLAGS = \
4802 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
4804 libnss_myhostname_la_LIBADD = \
4805 libsystemd-shared.la \
4806 libsystemd-internal.la
4808 lib_LTLIBRARIES += \
4809 libnss_myhostname.la
4812 # ------------------------------------------------------------------------------
4814 systemd_machined_SOURCES = \
4815 src/machine/machined.c \
4816 src/machine/machined.h
4818 systemd_machined_LDADD = \
4819 libsystemd-machine-core.la
4821 rootlibexec_PROGRAMS += \
4824 libsystemd_machine_core_la_SOURCES = \
4825 src/machine/machined-dbus.c \
4826 src/machine/machine.c \
4827 src/machine/machine.h \
4828 src/machine/machine-dbus.c
4830 libsystemd_machine_core_la_LIBADD = \
4831 libsystemd-label.la \
4832 libsystemd-internal.la \
4833 libudev-internal.la \
4834 libsystemd-shared.la
4836 noinst_LTLIBRARIES += \
4837 libsystemd-machine-core.la
4839 machinectl_SOURCES = \
4840 src/machine/machinectl.c
4842 machinectl_LDADD = \
4843 libsystemd-internal.la \
4844 libsystemd-shared.la
4846 rootbin_PROGRAMS += \
4849 dist_bashcompletion_DATA += \
4850 shell-completion/bash/machinectl
4852 test_machine_tables_SOURCES = \
4853 src/machine/test-machine-tables.c
4855 test_machine_tables_LDADD = \
4856 libsystemd-machine-core.la
4861 nodist_systemunit_DATA += \
4862 units/systemd-machined.service
4864 dist_systemunit_DATA += \
4867 dist_systemunit_DATA_busnames += \
4868 units/org.freedesktop.machine1.busname
4870 dist_dbussystemservice_DATA += \
4871 src/machine/org.freedesktop.machine1.service
4873 dist_dbuspolicy_DATA += \
4874 src/machine/org.freedesktop.machine1.conf
4876 dist_zshcompletion_DATA += \
4877 shell-completion/zsh/_machinectl \
4878 shell-completion/zsh/_sd_machines
4880 SYSTEM_UNIT_ALIASES += \
4881 systemd-machined.service dbus-org.freedesktop.machine1.service
4883 BUSNAMES_TARGET_WANTS += \
4884 org.freedesktop.machine1.busname
4887 units/systemd-machined.service.in
4889 libnss_mymachines_la_SOURCES = \
4890 src/nss-mymachines/nss-mymachines.sym \
4891 src/nss-mymachines/nss-mymachines.c
4893 libnss_mymachines_la_LDFLAGS = \
4900 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
4902 libnss_mymachines_la_LIBADD = \
4903 libsystemd-shared.la \
4904 libsystemd-internal.la
4906 lib_LTLIBRARIES += \
4907 libnss_mymachines.la
4910 # ------------------------------------------------------------------------------
4912 systemd_resolved_SOURCES = \
4913 src/resolve/resolved.c \
4914 src/resolve/resolved-manager.c \
4915 src/resolve/resolved-manager.h \
4916 src/resolve/resolved-conf.c \
4917 src/resolve/resolved-conf.h \
4918 src/resolve/resolved-bus.c \
4919 src/resolve/resolved-bus.h \
4920 src/resolve/resolved-link.h \
4921 src/resolve/resolved-link.c \
4922 src/resolve/resolved-def.h \
4923 src/resolve/resolved-dns-domain.h \
4924 src/resolve/resolved-dns-domain.c \
4925 src/resolve/resolved-dns-rr.h \
4926 src/resolve/resolved-dns-rr.c \
4927 src/resolve/resolved-dns-question.h \
4928 src/resolve/resolved-dns-question.c \
4929 src/resolve/resolved-dns-answer.h \
4930 src/resolve/resolved-dns-answer.c \
4931 src/resolve/resolved-dns-packet.h \
4932 src/resolve/resolved-dns-packet.c \
4933 src/resolve/resolved-dns-query.h \
4934 src/resolve/resolved-dns-query.c \
4935 src/resolve/resolved-dns-transaction.h \
4936 src/resolve/resolved-dns-transaction.c \
4937 src/resolve/resolved-dns-scope.h \
4938 src/resolve/resolved-dns-scope.c \
4939 src/resolve/resolved-dns-server.h \
4940 src/resolve/resolved-dns-server.c \
4941 src/resolve/resolved-dns-cache.h \
4942 src/resolve/resolved-dns-cache.c \
4943 src/resolve/resolved-dns-zone.h \
4944 src/resolve/resolved-dns-zone.c \
4945 src/resolve/resolved-dns-stream.h \
4946 src/resolve/resolved-dns-stream.c \
4947 src/resolve/dns-type.c \
4948 src/resolve/dns-type.h \
4949 src/resolve/dns_type-from-name.h \
4950 src/resolve/dns_type-to-name.h
4952 nodist_systemd_resolved_SOURCES = \
4953 src/resolve/resolved-gperf.c
4956 src/resolve/resolved-gperf.gperf \
4957 src/resolve/dns_type-from-name.gperf
4960 src/resolve/resolved-gperf.c
4962 systemd_resolved_LDADD = \
4963 libsystemd-capability.la \
4964 libsystemd-network.la \
4965 libsystemd-label.la \
4966 libsystemd-internal.la \
4967 libsystemd-shared.la \
4971 rootlibexec_PROGRAMS += \
4974 nodist_systemunit_DATA += \
4975 units/systemd-resolved.service
4977 dist_systemunit_DATA_busnames += \
4978 units/org.freedesktop.resolve1.busname
4980 dist_dbuspolicy_DATA += \
4981 src/resolve/org.freedesktop.resolve1.conf
4983 dist_dbussystemservice_DATA += \
4984 src/resolve/org.freedesktop.resolve1.service
4987 units/systemd-resolved.service.in
4989 SYSTEM_UNIT_ALIASES += \
4990 systemd-resolved.service dbus-org.freedesktop.resolve1.service
4992 BUSNAMES_TARGET_WANTS += \
4993 org.freedesktop.resolve1.busname
4995 GENERAL_ALIASES += \
4996 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
4998 nodist_pkgsysconf_DATA += \
4999 src/resolve/resolved.conf
5002 src/resolve/resolved.conf.in
5005 src/resolve/resolved.conf
5010 test_dns_domain_SOURCES = \
5011 src/resolve/resolved-dns-domain.h \
5012 src/resolve/resolved-dns-domain.c \
5013 src/resolve/test-dns-domain.c
5015 test_dns_domain_LDADD = \
5016 libsystemd-capability.la \
5017 libsystemd-network.la \
5018 libsystemd-label.la \
5019 libsystemd-internal.la \
5020 libsystemd-shared.la \
5023 libnss_resolve_la_SOURCES = \
5024 src/nss-resolve/nss-resolve.sym \
5025 src/nss-resolve/nss-resolve.c
5027 libnss_resolve_la_LDFLAGS = \
5034 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
5036 libnss_resolve_la_LIBADD = \
5037 libsystemd-shared.la \
5038 libsystemd-internal.la
5040 lib_LTLIBRARIES += \
5043 systemd_resolve_host_SOURCES = \
5044 src/resolve-host/resolve-host.c \
5045 src/resolve/resolved-dns-packet.c \
5046 src/resolve/resolved-dns-packet.h \
5047 src/resolve/resolved-dns-rr.c \
5048 src/resolve/resolved-dns-rr.h \
5049 src/resolve/resolved-dns-answer.c \
5050 src/resolve/resolved-dns-answer.h \
5051 src/resolve/resolved-dns-question.c \
5052 src/resolve/resolved-dns-question.h \
5053 src/resolve/resolved-dns-domain.c \
5054 src/resolve/resolved-dns-domain.h \
5055 src/resolve/dns-type.c \
5056 src/resolve/dns-type.h \
5057 src/resolve/dns_type-from-name.h \
5058 src/resolve/dns_type-to-name.h
5060 systemd_resolve_host_LDADD = \
5061 libsystemd-internal.la \
5062 libsystemd-shared.la \
5066 rootlibexec_PROGRAMS += \
5067 systemd-resolve-host
5071 # ------------------------------------------------------------------------------
5073 rootlibexec_PROGRAMS += \
5076 systemd_networkd_SOURCES = \
5077 src/network/networkd.c
5079 systemd_networkd_LDADD = \
5080 libsystemd-networkd-core.la \
5081 libsystemd-capability.la
5083 noinst_LTLIBRARIES += \
5084 libsystemd-networkd-core.la
5086 libsystemd_networkd_core_la_CFLAGS = \
5089 libsystemd_networkd_core_la_SOURCES = \
5090 src/libsystemd-network/network-internal.h \
5091 src/network/networkd.h \
5092 src/network/networkd-link.h \
5093 src/network/networkd-netdev.h \
5094 src/network/networkd-netdev-tunnel.h \
5095 src/network/networkd-netdev-veth.h \
5096 src/network/networkd-netdev-vxlan.h \
5097 src/network/networkd-netdev-vlan.h \
5098 src/network/networkd-netdev-macvlan.h \
5099 src/network/networkd-netdev-dummy.h \
5100 src/network/networkd-netdev-tuntap.h \
5101 src/network/networkd-netdev-bond.h \
5102 src/network/networkd-netdev-bridge.h \
5103 src/network/networkd-netdev.c \
5104 src/network/networkd-netdev-tunnel.c \
5105 src/network/networkd-netdev-veth.c \
5106 src/network/networkd-netdev-vxlan.c \
5107 src/network/networkd-netdev-vlan.c \
5108 src/network/networkd-netdev-macvlan.c \
5109 src/network/networkd-netdev-dummy.c \
5110 src/network/networkd-netdev-tuntap.c \
5111 src/network/networkd-netdev-bond.c \
5112 src/network/networkd-netdev-bridge.c \
5113 src/network/networkd-link.c \
5114 src/network/networkd-ipv4ll.c \
5115 src/network/networkd-dhcp4.c \
5116 src/network/networkd-network.c \
5117 src/network/networkd-address.c \
5118 src/network/networkd-route.c \
5119 src/network/networkd-manager.c \
5120 src/network/networkd-address-pool.c
5122 nodist_libsystemd_networkd_core_la_SOURCES = \
5123 src/network/networkd-network-gperf.c \
5124 src/network/networkd-netdev-gperf.c
5126 libsystemd_networkd_core_la_LIBADD = \
5127 libudev-internal.la \
5128 libsystemd-internal.la \
5129 libsystemd-network.la \
5130 libsystemd-label.la \
5131 libsystemd-shared.la
5133 rootlibexec_PROGRAMS += \
5134 systemd-networkd-wait-online
5136 systemd_networkd_wait_online_CFLAGS = \
5139 systemd_networkd_wait_online_SOURCES = \
5140 src/libsystemd-network/network-internal.h \
5141 src/network/networkd-wait-online.h \
5142 src/network/networkd-wait-online-link.h \
5143 src/network/networkd-wait-online.c \
5144 src/network/networkd-wait-online-manager.c \
5145 src/network/networkd-wait-online-link.c
5147 systemd_networkd_wait_online_LDADD = \
5148 libsystemd-network.la \
5149 libudev-internal.la \
5150 libsystemd-internal.la \
5151 libsystemd-shared.la
5153 rootbin_PROGRAMS += \
5156 networkctl_SOURCES = \
5157 src/network/networkctl.c
5159 networkctl_LDADD = \
5160 libsystemd-internal.la \
5161 libudev-internal.la \
5162 libsystemd-shared.la \
5163 libsystemd-network.la
5165 test_network_SOURCES = \
5166 src/network/test-network.c
5168 test_network_CFLAGS = \
5171 test_network_LDADD = \
5172 libsystemd-networkd-core.la
5174 test_network_tables_SOURCES = \
5175 src/network/test-network-tables.c \
5176 src/shared/test-tables.h
5178 test_network_tables_LDADD = \
5179 libsystemd-networkd-core.la \
5186 nodist_systemunit_DATA += \
5187 units/systemd-networkd.service \
5188 units/systemd-networkd-wait-online.service
5190 GENERAL_ALIASES += \
5191 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5192 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5195 src/network/networkd-network-gperf.gperf \
5196 src/network/networkd-netdev-gperf.gperf \
5197 units/systemd-networkd.service.in \
5198 units/systemd-networkd-wait-online.service.in
5201 src/network/networkd-network-gperf.c \
5202 src/network/networkd-netdev-gperf.c
5205 # ------------------------------------------------------------------------------
5207 systemd_logind_SOURCES = \
5208 src/login/logind.c \
5211 nodist_systemd_logind_SOURCES = \
5212 src/login/logind-gperf.c
5214 systemd_logind_LDADD = \
5215 libsystemd-logind-core.la
5217 libsystemd_logind_core_la_SOURCES = \
5218 src/login/logind-core.c \
5219 src/login/logind-device.c \
5220 src/login/logind-device.h \
5221 src/login/logind-button.c \
5222 src/login/logind-button.h \
5223 src/login/logind-action.c \
5224 src/login/logind-action.h \
5225 src/login/logind-seat.c \
5226 src/login/logind-seat.h \
5227 src/login/logind-session.c \
5228 src/login/logind-session.h \
5229 src/login/logind-session-device.c \
5230 src/login/logind-session-device.h \
5231 src/login/logind-user.c \
5232 src/login/logind-user.h \
5233 src/login/logind-inhibit.c \
5234 src/login/logind-inhibit.h \
5235 src/login/logind-dbus.c \
5236 src/login/logind-session-dbus.c \
5237 src/login/logind-seat-dbus.c \
5238 src/login/logind-user-dbus.c \
5239 src/login/logind-acl.h
5241 libsystemd_logind_core_la_LIBADD = \
5242 libsystemd-label.la \
5243 libsystemd-capability.la \
5244 libsystemd-internal.la \
5245 libudev-internal.la \
5246 libsystemd-shared.la
5249 libsystemd_logind_core_la_SOURCES += \
5250 src/login/logind-acl.c
5252 libsystemd_logind_core_la_LIBADD += \
5256 noinst_LTLIBRARIES += \
5257 libsystemd-logind-core.la
5259 systemd_user_sessions_SOURCES = \
5260 src/login/user-sessions.c
5262 systemd_user_sessions_LDADD = \
5263 libsystemd-shared.la
5265 rootlibexec_PROGRAMS += \
5267 systemd-user-sessions
5269 loginctl_SOURCES = \
5270 src/login/loginctl.c \
5271 src/login/sysfs-show.c
5274 libsystemd-internal.la \
5275 libudev-internal.la \
5276 libsystemd-shared.la
5278 rootbin_PROGRAMS += \
5281 dist_bashcompletion_DATA += \
5282 shell-completion/bash/loginctl
5284 dist_zshcompletion_DATA += \
5285 shell-completion/zsh/_loginctl \
5286 shell-completion/zsh/_systemd-inhibit
5288 systemd_inhibit_SOURCES = \
5291 systemd_inhibit_LDADD = \
5292 libsystemd-internal.la \
5293 libsystemd-shared.la
5295 rootbin_PROGRAMS += \
5298 test_login_SOURCES = \
5299 src/libsystemd/sd-login/test-login.c
5301 test_login_LDADD = \
5302 libsystemd-internal.la \
5303 libsystemd-shared.la
5305 test_login_shared_SOURCES = \
5306 src/login/test-login-shared.c
5308 test_login_shared_LDADD = \
5309 libsystemd-internal.la \
5310 libsystemd-shared.la
5312 test_inhibit_SOURCES = \
5313 src/login/test-inhibit.c
5315 test_inhibit_LDADD = \
5316 libsystemd-internal.la \
5317 libsystemd-shared.la
5319 test_login_tables_SOURCES = \
5320 src/login/test-login-tables.c
5322 test_login_tables_LDADD = \
5323 libsystemd-logind-core.la
5334 pam_systemd_la_SOURCES = \
5335 src/login/pam_systemd.sym \
5336 src/login/pam_systemd.c
5338 pam_systemd_la_CFLAGS = \
5343 pam_systemd_la_LDFLAGS = \
5349 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5351 pam_systemd_la_LIBADD = \
5352 libsystemd-capability.la \
5353 libsystemd-internal.la \
5354 libsystemd-shared.la \
5357 pamlib_LTLIBRARIES = \
5360 dist_pamconf_DATA = \
5361 src/login/systemd-user
5364 nodist_systemunit_DATA += \
5365 units/systemd-logind.service \
5366 units/systemd-user-sessions.service
5368 dist_systemunit_DATA += \
5371 dist_systemunit_DATA_busnames += \
5372 units/org.freedesktop.login1.busname
5374 dist_dbussystemservice_DATA += \
5375 src/login/org.freedesktop.login1.service
5377 dist_dbuspolicy_DATA += \
5378 src/login/org.freedesktop.login1.conf
5380 dist_pkgsysconf_DATA += \
5381 src/login/logind.conf
5383 polkitpolicy_files += \
5384 src/login/org.freedesktop.login1.policy
5389 MULTI_USER_TARGET_WANTS += \
5390 systemd-logind.service \
5391 systemd-user-sessions.service
5393 SYSTEM_UNIT_ALIASES += \
5394 systemd-logind.service dbus-org.freedesktop.login1.service
5396 BUSNAMES_TARGET_WANTS += \
5397 org.freedesktop.login1.busname
5399 dist_udevrules_DATA += \
5400 src/login/70-uaccess.rules \
5401 src/login/70-power-switch.rules
5403 nodist_udevrules_DATA += \
5404 src/login/71-seat.rules \
5405 src/login/73-seat-late.rules
5408 src/login/logind-gperf.c \
5409 src/login/71-seat.rules \
5410 src/login/73-seat-late.rules
5413 polkitpolicy_in_files += \
5414 src/login/org.freedesktop.login1.policy.in
5417 src/login/logind-gperf.gperf \
5418 src/login/71-seat.rules.in \
5419 src/login/73-seat-late.rules.in \
5420 units/systemd-logind.service.in \
5421 units/systemd-user-sessions.service.in
5423 # ------------------------------------------------------------------------------
5424 if HAVE_PYTHON_DEVEL
5425 pkgpyexec_LTLIBRARIES = \
5432 _journal_la_SOURCES = \
5433 src/python-systemd/_journal.c
5435 _journal_la_CFLAGS = \
5437 -fvisibility=default \
5438 $(PYTHON_DEVEL_CFLAGS)
5440 _journal_la_LDFLAGS = \
5446 _journal_la_LIBADD = \
5447 $(PYTHON_DEVEL_LIBS) \
5450 id128_la_SOURCES = \
5451 src/python-systemd/id128.c \
5452 src/python-systemd/pyutil.c \
5453 src/python-systemd/pyutil.h
5455 nodist_id128_la_SOURCES = \
5456 src/python-systemd/id128-constants.h
5460 -fvisibility=default \
5461 $(PYTHON_DEVEL_CFLAGS) \
5462 -I$(top_builddir)/src/python-systemd
5464 id128_la_LDFLAGS = \
5471 $(PYTHON_DEVEL_LIBS) \
5472 libsystemd-shared.la \
5475 _daemon_la_SOURCES = \
5476 src/python-systemd/_daemon.c \
5477 src/python-systemd/pyutil.c \
5478 src/python-systemd/pyutil.h
5480 _daemon_la_CFLAGS = \
5482 -fvisibility=default \
5483 $(PYTHON_DEVEL_CFLAGS) \
5484 -I$(top_builddir)/src/python-systemd
5486 _daemon_la_LDFLAGS = \
5492 _daemon_la_LIBADD = \
5493 $(PYTHON_DEVEL_LIBS) \
5494 libsystemd-shared.la \
5497 _reader_la_SOURCES = \
5498 src/python-systemd/_reader.c \
5499 src/python-systemd/pyutil.c \
5500 src/python-systemd/pyutil.h
5502 _reader_la_CFLAGS = \
5504 -fvisibility=default \
5505 $(PYTHON_DEVEL_CFLAGS)
5507 _reader_la_LDFLAGS = \
5513 _reader_la_LIBADD = \
5514 $(PYTHON_DEVEL_LIBS) \
5515 libsystemd-shared.la \
5518 login_la_SOURCES = \
5519 src/python-systemd/login.c \
5520 src/python-systemd/pyutil.c \
5521 src/python-systemd/pyutil.h
5525 -fvisibility=default \
5526 $(PYTHON_DEVEL_CFLAGS)
5528 login_la_LDFLAGS = \
5535 $(PYTHON_DEVEL_LIBS) \
5536 libsystemd-shared.la \
5539 dist_pkgpyexec_PYTHON = \
5540 src/python-systemd/journal.py \
5541 src/python-systemd/daemon.py \
5542 src/python-systemd/__init__.py
5544 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
5545 $(AM_V_at)$(MKDIR_P) $(dir $@)
5546 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
5549 src/python-systemd/id128-constants.h
5551 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
5553 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
5554 $(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/
5555 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
5558 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
5559 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
5562 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
5563 $(MAKE) DESTDIR="$$dir" install && \
5564 $(MAKE) DESTDIR="$$dir" sphinx-html && \
5569 CLEAN_LOCAL_HOOKS += clean-sphinx
5571 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
5574 -rm -rf docs/html/python-systemd/
5576 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
5578 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
5579 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
5581 # ------------------------------------------------------------------------------
5582 if ENABLE_COMPAT_LIBS
5584 src/compat-libs/linkwarning.h
5586 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
5587 $(AM_V_at)$(MKDIR_P) $(dir $@)
5588 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
5591 libsystemd-journal.c \
5592 libsystemd-login.c \
5593 libsystemd-id128.c \
5596 libsystemd_journal_la_SOURCES = \
5597 libsystemd-journal.c \
5598 src/compat-libs/libsystemd-journal.sym
5600 libsystemd_journal_la_CPPFLAGS = \
5602 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5604 libsystemd_journal_la_LDFLAGS = \
5606 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
5607 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
5609 libsystemd_journal_la_LIBADD = \
5610 libsystemd-journal-internal.la \
5611 libsystemd-internal.la \
5612 libsystemd-shared.la
5614 libsystemd_login_la_SOURCES = \
5615 libsystemd-login.c \
5616 src/compat-libs/libsystemd-login.sym
5618 libsystemd_login_la_CPPFLAGS = \
5620 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5622 libsystemd_login_la_LDFLAGS = \
5624 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
5625 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
5627 libsystemd_login_la_LIBADD = \
5628 libsystemd-internal.la \
5629 libsystemd-shared.la
5631 libsystemd_id128_la_SOURCES = \
5632 libsystemd-id128.c \
5633 src/compat-libs/libsystemd-id128.sym
5635 libsystemd_id128_la_CPPFLAGS = \
5637 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5639 libsystemd_id128_la_LDFLAGS = \
5641 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
5642 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
5644 libsystemd_id128_la_LIBADD = \
5645 libsystemd-internal.la \
5646 libsystemd-shared.la
5648 libsystemd_daemon_la_SOURCES = \
5649 libsystemd-daemon.c \
5650 src/compat-libs/libsystemd-daemon.sym
5652 libsystemd_daemon_la_CPPFLAGS = \
5654 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5656 libsystemd_daemon_la_LDFLAGS = \
5658 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
5659 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
5661 libsystemd_daemon_la_LIBADD = \
5662 libsystemd-internal.la \
5663 libsystemd-shared.la
5665 lib_LTLIBRARIES += \
5666 libsystemd-journal.la \
5667 libsystemd-login.la \
5668 libsystemd-id128.la \
5669 libsystemd-daemon.la
5671 pkgconfiglib_DATA += \
5672 src/compat-libs/libsystemd-journal.pc \
5673 src/compat-libs/libsystemd-login.pc \
5674 src/compat-libs/libsystemd-id128.pc \
5675 src/compat-libs/libsystemd-daemon.pc
5677 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
5678 compat-lib-install-hook:
5679 libname=libsystemd-login.so && $(move-to-rootlibdir)
5680 libname=libsystemd-journal.so && $(move-to-rootlibdir)
5681 libname=libsystemd-id128.so && $(move-to-rootlibdir)
5682 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
5684 compat-lib-uninstall-hook:
5685 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
5686 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
5687 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
5688 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
5690 INSTALL_EXEC_HOOKS += compat-lib-install-hook
5691 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
5695 src/compat-libs/libsystemd-journal.pc.in \
5696 src/compat-libs/libsystemd-login.pc.in \
5697 src/compat-libs/libsystemd-id128.pc.in \
5698 src/compat-libs/libsystemd-daemon.pc.in
5700 # ------------------------------------------------------------------------------
5702 '|rootlibexecdir=$(rootlibexecdir)|' \
5703 '|rootbindir=$(rootbindir)|' \
5704 '|bindir=$(bindir)|' \
5705 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5706 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5707 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5708 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5709 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
5710 '|pkgdatadir=$(pkgdatadir)|' \
5711 '|systemunitdir=$(systemunitdir)|' \
5712 '|userunitdir=$(userunitdir)|' \
5713 '|systempresetdir=$(systempresetdir)|' \
5714 '|userpresetdir=$(userpresetdir)|' \
5715 '|udevhwdbdir=$(udevhwdbdir)|' \
5716 '|udevrulesdir=$(udevrulesdir)|' \
5717 '|catalogdir=$(catalogdir)|' \
5718 '|tmpfilesdir=$(tmpfilesdir)|' \
5719 '|sysusersdir=$(sysusersdir)|' \
5720 '|sysctldir=$(sysctldir)|' \
5721 '|systemgeneratordir=$(systemgeneratordir)|' \
5722 '|usergeneratordir=$(usergeneratordir)|' \
5723 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
5724 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
5725 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
5726 '|PACKAGE_URL=$(PACKAGE_URL)|' \
5727 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
5728 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
5729 '|prefix=$(prefix)|' \
5730 '|exec_prefix=$(exec_prefix)|' \
5731 '|libdir=$(libdir)|' \
5732 '|includedir=$(includedir)|' \
5733 '|VERSION=$(VERSION)|' \
5734 '|rootprefix=$(rootprefix)|' \
5735 '|udevlibexecdir=$(udevlibexecdir)|' \
5736 '|SUSHELL=$(SUSHELL)|' \
5737 '|DEBUGTTY=$(DEBUGTTY)|' \
5740 '|MKDIR_P=$(MKDIR_P)|' \
5741 '|QUOTAON=$(QUOTAON)|' \
5742 '|QUOTACHECK=$(QUOTACHECK)|' \
5743 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
5744 '|VARLOGDIR=$(varlogdir)|' \
5745 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
5746 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
5747 '|PYTHON=$(PYTHON)|' \
5748 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
5749 '|NTP_SERVERS=$(NTP_SERVERS)|' \
5750 '|DNS_SERVERS=$(DNS_SERVERS)|' \
5751 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
5752 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
5753 '|TTY_GID=$(TTY_GID)|' \
5754 '|systemsleepdir=$(systemsleepdir)|' \
5755 '|systemshutdowndir=$(systemshutdowndir)|' \
5756 '|binfmtdir=$(binfmtdir)|' \
5757 '|modulesloaddir=$(modulesloaddir)|'
5760 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
5761 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
5770 sysctl.d/%: sysctl.d/%.in
5779 src/core/macros.%: src/core/macros.%.in
5782 src/%.policy.in: src/%.policy.in.in
5785 shell-completion/%: shell-completion/%.in
5796 $(AM_V_GEN)chmod +x $@
5798 src/%.c: src/%.gperf
5799 $(AM_V_at)$(MKDIR_P) $(dir $@)
5800 $(AM_V_GPERF)$(GPERF) < $< > $@
5803 $(AM_V_at)$(MKDIR_P) $(dir $@)
5804 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5806 tmpfiles.d/%: tmpfiles.d/%.m4
5807 $(AM_V_at)$(MKDIR_P) $(dir $@)
5808 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5812 $(AM_V_at)$(MKDIR_P) $(dir $@)
5813 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
5815 units/user/%: units/%.m4
5816 $(AM_V_at)$(MKDIR_P) $(dir $@)
5817 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
5820 nodist_polkitpolicy_DATA = \
5821 $(polkitpolicy_files) \
5822 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
5826 $(polkitpolicy_in_files) \
5827 $(polkitpolicy_in_in_files)
5830 $(nodist_systemunit_DATA) \
5831 $(nodist_userunit_DATA) \
5832 $(pkgconfigdata_DATA) \
5833 $(pkgconfiglib_DATA) \
5834 $(nodist_polkitpolicy_DATA)
5836 # ------------------------------------------------------------------------------
5838 man/custom-entities.ent: configure.ac
5839 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
5840 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
5841 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
5845 man/custom-entities.ent
5850 --stringparam man.output.quietly 1 \
5851 --stringparam funcsynopsis.style ansi \
5852 --stringparam man.authors.section.enabled 0 \
5853 --stringparam man.copyright.section.enabled 0 \
5854 --stringparam systemd.version $(VERSION) \
5855 --path '$(builddir)/man:$(srcdir)/man'
5857 XSLTPROC_PROCESS_MAN = \
5858 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
5860 XSLTPROC_PROCESS_HTML = \
5861 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
5863 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
5864 $(XSLTPROC_PROCESS_MAN)
5866 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
5867 $(XSLTPROC_PROCESS_MAN)
5869 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
5870 $(XSLTPROC_PROCESS_MAN)
5872 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
5873 $(XSLTPROC_PROCESS_MAN)
5875 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
5876 $(XSLTPROC_PROCESS_MAN)
5878 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
5879 $(XSLTPROC_PROCESS_HTML)
5882 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
5888 man/custom-html.xsl \
5891 # ------------------------------------------------------------------------------
5894 docs/sysvinit/README
5899 docs/sysvinit/README: docs/sysvinit/README.in
5902 docs/var-log/README: docs/var-log/README.in
5906 docs/sysvinit/README \
5911 docs/sysvinit/README.in \
5912 docs/var-log/README.in
5914 SOCKETS_TARGET_WANTS += \
5915 systemd-initctl.socket \
5916 systemd-shutdownd.socket
5920 RUNLEVEL1_TARGET_WANTS += \
5921 systemd-update-utmp-runlevel.service
5922 RUNLEVEL2_TARGET_WANTS += \
5923 systemd-update-utmp-runlevel.service
5924 RUNLEVEL3_TARGET_WANTS += \
5925 systemd-update-utmp-runlevel.service
5926 RUNLEVEL4_TARGET_WANTS += \
5927 systemd-update-utmp-runlevel.service
5928 RUNLEVEL5_TARGET_WANTS += \
5929 systemd-update-utmp-runlevel.service
5932 SYSINIT_TARGET_WANTS += \
5933 systemd-update-utmp.service
5936 SYSINIT_TARGET_WANTS += \
5937 systemd-update-done.service
5939 LOCAL_FS_TARGET_WANTS += \
5940 systemd-remount-fs.service \
5943 MULTI_USER_TARGET_WANTS += \
5945 systemd-ask-password-wall.path
5947 SYSINIT_TARGET_WANTS += \
5948 dev-hugepages.mount \
5950 sys-kernel-config.mount \
5951 sys-kernel-debug.mount \
5952 sys-fs-fuse-connections.mount \
5953 systemd-sysctl.service \
5954 systemd-ask-password-console.path
5957 SYSTEM_UNIT_ALIASES += \
5958 poweroff.target runlevel0.target \
5959 rescue.target runlevel1.target \
5960 multi-user.target runlevel2.target \
5961 multi-user.target runlevel3.target \
5962 multi-user.target runlevel4.target \
5963 graphical.target runlevel5.target \
5964 reboot.target runlevel6.target
5967 SYSTEM_UNIT_ALIASES += \
5968 graphical.target default.target \
5969 reboot.target ctrl-alt-del.target \
5970 getty@.service autovt@.service
5972 USER_UNIT_ALIASES += \
5973 $(systemunitdir)/shutdown.target shutdown.target \
5974 $(systemunitdir)/sockets.target sockets.target \
5975 $(systemunitdir)/timers.target timers.target \
5976 $(systemunitdir)/paths.target paths.target \
5977 $(systemunitdir)/bluetooth.target bluetooth.target \
5978 $(systemunitdir)/printer.target printer.target \
5979 $(systemunitdir)/sound.target sound.target \
5980 $(systemunitdir)/smartcard.target smartcard.target
5983 USER_UNIT_ALIASES += \
5984 $(systemunitdir)/busnames.target busnames.target
5987 GENERAL_ALIASES += \
5988 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
5989 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
5990 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
5991 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
5995 $(systemunitdir)/runlevel1.target.wants \
5996 $(systemunitdir)/runlevel2.target.wants \
5997 $(systemunitdir)/runlevel3.target.wants \
5998 $(systemunitdir)/runlevel4.target.wants \
5999 $(systemunitdir)/runlevel5.target.wants
6003 $(prefix)/lib/modules-load.d \
6004 $(sysconfdir)/modules-load.d \
6005 $(prefix)/lib/systemd/network \
6006 $(sysconfdir)/systemd/network \
6007 $(prefix)/lib/sysctl.d \
6008 $(sysconfdir)/sysctl.d \
6009 $(prefix)/lib/kernel/install.d \
6010 $(sysconfdir)/kernel/install.d \
6011 $(systemshutdowndir) \
6013 $(systemgeneratordir) \
6014 $(usergeneratordir) \
6017 $(pkgsysconfdir)/system \
6018 $(pkgsysconfdir)/system/multi-user.target.wants \
6019 $(pkgsysconfdir)/system/getty.target.wants \
6020 $(pkgsysconfdir)/user \
6021 $(dbussessionservicedir) \
6022 $(sysconfdir)/xdg/systemd
6024 install-exec-hook: $(INSTALL_EXEC_HOOKS)
6026 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
6028 install-data-hook: $(INSTALL_DATA_HOOKS)
6030 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
6032 clean-local: $(CLEAN_LOCAL_HOOKS)
6033 rm -rf $(abs_srcdir)/install-tree
6034 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
6035 $(abs_srcdir)/hwdb/iab.txt
6037 DISTCHECK_CONFIGURE_FLAGS = \
6038 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
6039 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6040 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
6041 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
6042 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
6043 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
6044 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
6045 --with-rootprefix=$$dc_install_base \
6046 --disable-split-usr \
6048 --enable-compat-libs
6051 DISTCHECK_CONFIGURE_FLAGS += \
6052 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
6053 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
6055 DISTCHECK_CONFIGURE_FLAGS += \
6056 --with-sysvinit-path= \
6057 --with-sysvrcnd-path=
6061 DISTCHECK_CONFIGURE_FLAGS += \
6066 DISTCHECK_CONFIGURE_FLAGS += \
6071 # Require python when making dist
6073 .PHONY: dist-check-python
6076 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
6080 dist-check-compat-libs:
6081 if !ENABLE_COMPAT_LIBS
6082 @echo "*** compat-libs must be enabled in order to make dist"
6086 dist: dist-check-python dist-check-compat-libs
6088 # check "broken" platforms limited toolchains for link breakage before we release
6091 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
6095 ( cd $(top_srcdir)/hwdb && \
6096 wget -N http://www.linux-usb.org/usb.ids \
6097 http://pci-ids.ucw.cz/v2.2/pci.ids \
6098 http://standards.ieee.org/develop/regauth/oui/oui.txt \
6099 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
6102 .PHONY: kdbus-update
6104 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
6105 wget -N https://d-bus.googlecode.com/git/kdbus.h )
6109 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6111 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6113 upload: all check dist
6114 scp systemd-$(VERSION).tar.xz $(www_target)
6117 doc-sync: all destdir-sphinx
6118 gtkdoc-rebase --html-dir=docs/libudev/html --online
6119 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
6120 gtkdoc-rebase --html-dir=docs/gudev/html --online
6121 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
6122 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6123 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
6127 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
6128 scp man/*.html tango:public/systemd-man/
6130 .PHONY: install-tree
6132 rm -rf $(abs_srcdir)/install-tree
6133 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6134 tree $(abs_srcdir)/install-tree
6136 # Let's run all tests of the test suite, but under valgrind. Let's
6137 # exclude the one perl script we have in there
6138 .PHONY: valgrind-tests
6139 valgrind-tests: $(TESTS)
6140 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
6141 if file $$f | grep -q shell; then \
6142 echo -e "$${x}Skipping non-binary $$f"; else \
6143 echo -e "$${x}Running $$f"; \
6144 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6149 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6151 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6152 $(AM_V_GEN)cat $^ > $@
6154 .PHONY: check-api-docs
6155 check-api-docs: exported man
6156 $(AM_V_GEN)for symbol in `cat exported` ; do \
6157 if test -f $(builddir)/man/$$symbol.html ; then \
6158 echo " Symbol $$symbol() is documented." ; \
6160 echo "‣ Symbol $$symbol() lacks documentation." ; \
6164 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6165 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6167 undefined defined: $(ALL_OBJECTS)
6168 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6169 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6170 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6176 .PHONY: check-api-unused
6177 check-api-unused: defined undefined exported
6178 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6180 .PHONY: check-includes
6181 check-includes: $(top_srcdir)/tools/check-includes.pl
6182 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6183 | xargs $(top_srcdir)/tools/check-includes.pl
6186 $(top_srcdir)/tools/check-includes.pl
6188 # Stupid test that everything purported to be exported really is
6189 define generate-sym-test
6190 $(AM_V_at)$(MKDIR_P) $(dir $@)
6191 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6192 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6193 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6194 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6195 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6196 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6197 $(AM_V_at)printf 'return 0; }\n' >> $@
6200 test-libsystemd-sym.c: \
6201 $(top_builddir)/src/libsystemd/libsystemd.sym \
6202 src/systemd/sd-journal.h \
6203 src/systemd/sd-daemon.h \
6204 src/systemd/sd-login.h \
6205 src/systemd/sd-bus.h \
6206 src/systemd/sd-utf8.h \
6207 src/systemd/sd-resolve.h \
6208 src/systemd/sd-path.h
6209 $(generate-sym-test)
6211 test-libudev-sym.c: \
6212 src/libudev/libudev.sym \
6214 $(generate-sym-test)
6216 test_libsystemd_sym_SOURCES = \
6217 test-libsystemd-sym.c
6218 test_libsystemd_sym_LDADD = \
6221 test_libudev_sym_SOURCES = \
6223 test_libudev_sym_CFLAGS = \
6225 -Wno-deprecated-declarations
6226 test_libudev_sym_LDADD = \
6230 $(test_libsystemd_sym_SOURCES) \
6231 $(test_libudev_sym_SOURCES)
6234 test-libsystemd-sym \
6239 cppcheck --enable=all -q $(top_srcdir)
6241 # Used to extract compile flags for YCM.
6246 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u
6249 tools/gdb-sd_dump_hashmaps.py