1 # -*- Mode: makefile; indent-tabs-mode: t -*-
3 # This file is part of systemd.
5 # Copyright 2010-2012 Lennart Poettering
6 # Copyright 2010-2012 Kay Sievers
7 # Copyright 2013 Zbigniew Jędrzejewski-Szmek
8 # Copyright 2013 David Strauss
10 # systemd is free software; you can redistribute it and/or modify it
11 # under the terms of the GNU Lesser General Public License as published by
12 # the Free Software Foundation; either version 2.1 of the License, or
13 # (at your option) any later version.
15 # systemd is distributed in the hope that it will be useful, but
16 # WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 # Lesser General Public License for more details.
20 # You should have received a copy of the GNU Lesser General Public License
21 # along with systemd; If not, see <http://www.gnu.org/licenses/>.
23 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
24 AM_MAKEFLAGS = --no-print-directory
25 AUTOMAKE_OPTIONS = color-tests parallel-tests
27 GCC_COLORS ?= 'ooh, shiny!'
32 # remove targets if the command fails
35 # keep intermediate files
38 # Keep the test-suite.log
39 .PRECIOUS: $(TEST_SUITE_LOG) Makefile
53 # The following four libraries only exist for compatibility reasons,
54 # their version info should not be bumped anymore
55 LIBSYSTEMD_LOGIN_CURRENT=9
56 LIBSYSTEMD_LOGIN_REVISION=3
57 LIBSYSTEMD_LOGIN_AGE=9
59 LIBSYSTEMD_DAEMON_CURRENT=0
60 LIBSYSTEMD_DAEMON_REVISION=12
61 LIBSYSTEMD_DAEMON_AGE=0
63 LIBSYSTEMD_ID128_CURRENT=0
64 LIBSYSTEMD_ID128_REVISION=28
65 LIBSYSTEMD_ID128_AGE=0
67 LIBSYSTEMD_JOURNAL_CURRENT=11
68 LIBSYSTEMD_JOURNAL_REVISION=5
69 LIBSYSTEMD_JOURNAL_AGE=11
71 # Dirs of external packages
72 dbuspolicydir=@dbuspolicydir@
73 dbussessionservicedir=@dbussessionservicedir@
74 dbussystemservicedir=@dbussystemservicedir@
76 pamconfdir=@pamconfdir@
77 pkgconfigdatadir=$(datadir)/pkgconfig
78 pkgconfiglibdir=$(libdir)/pkgconfig
79 polkitpolicydir=$(datadir)/polkit-1/actions
80 bashcompletiondir=@bashcompletiondir@
81 zshcompletiondir=@zshcompletiondir@
82 rpmmacrosdir=$(prefix)/lib/rpm/macros.d
83 sysvinitdir=$(SYSTEM_SYSVINIT_PATH)
84 sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
85 varlogdir=$(localstatedir)/log
86 systemdstatedir=$(localstatedir)/lib/systemd
87 catalogstatedir=$(systemdstatedir)/catalog
89 # Our own, non-special dirs
90 pkgsysconfdir=$(sysconfdir)/systemd
91 userunitdir=$(prefix)/lib/systemd/user
92 userpresetdir=$(prefix)/lib/systemd/user-preset
93 tmpfilesdir=$(prefix)/lib/tmpfiles.d
94 sysusersdir=$(prefix)/lib/sysusers.d
95 sysctldir=$(prefix)/lib/sysctl.d
96 binfmtdir=$(prefix)/lib/binfmt.d
97 modulesloaddir=$(prefix)/lib/modules-load.d
98 networkdir=$(rootprefix)/lib/systemd/network
99 pkgincludedir=$(includedir)/systemd
100 systemgeneratordir=$(rootlibexecdir)/system-generators
101 usergeneratordir=$(prefix)/lib/systemd/user-generators
102 systemshutdowndir=$(rootlibexecdir)/system-shutdown
103 systemsleepdir=$(rootlibexecdir)/system-sleep
104 systemunitdir=$(rootprefix)/lib/systemd/system
105 systempresetdir=$(rootprefix)/lib/systemd/system-preset
106 udevlibexecdir=$(rootprefix)/lib/udev
107 udevhomedir=$(udevlibexecdir)
108 udevrulesdir=$(udevlibexecdir)/rules.d
109 udevhwdbdir=$(udevlibexecdir)/hwdb.d
110 catalogdir=$(prefix)/lib/systemd/catalog
111 kernelinstalldir = $(prefix)/lib/kernel/install.d
112 factory_etcdir = $(prefix)/share/factory/etc
113 factory_pamdir = $(prefix)/share/factory/etc/pam.d
115 # And these are the special ones for /
116 rootprefix=@rootprefix@
117 rootbindir=$(rootprefix)/bin
118 rootlibexecdir=$(rootprefix)/lib/systemd
120 CLEANFILES = $(BUILT_SOURCES)
125 UNINSTALL_EXEC_HOOKS =
127 UNINSTALL_DATA_HOOKS =
128 DISTCLEAN_LOCAL_HOOKS =
136 polkitpolicy_in_in_files =
137 polkitpolicy_in_files =
139 dist_udevrules_DATA =
140 nodist_udevrules_DATA =
141 dist_pkgsysconf_DATA =
142 nodist_pkgsysconf_DATA =
144 dist_dbuspolicy_DATA =
145 dist_dbussystemservice_DATA =
146 dist_systemunit_DATA_busnames =
152 noinst_PROGRAMS = $(manual_tests) $(tests)
158 udevlibexec_PROGRAMS =
160 .PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \
161 $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \
162 $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS)
165 -include $(top_builddir)/config.h \
166 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
167 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
168 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
169 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
170 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
171 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
172 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
173 -DCERTIFICATE_ROOT=\"$(CERTIFICATEROOT)\" \
174 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
175 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
176 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
177 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
178 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
179 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
180 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
181 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
182 -DROOTPREFIX=\"$(rootprefix)\" \
183 -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \
184 -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
185 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
186 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
187 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
188 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
189 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
190 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
191 -DX_SERVER=\"$(bindir)/X\" \
192 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
193 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
194 -DQUOTACHECK=\"$(QUOTACHECK)\" \
195 -DKEXEC=\"$(KEXEC)\" \
196 -DLIBDIR=\"$(libdir)\" \
197 -DROOTLIBDIR=\"$(rootlibdir)\" \
198 -DTEST_DIR=\"$(abs_top_srcdir)/test\" \
199 -I $(top_srcdir)/src \
200 -I $(top_builddir)/src/shared \
201 -I $(top_srcdir)/src/shared \
202 -I $(top_srcdir)/src/network \
203 -I $(top_srcdir)/src/login \
204 -I $(top_srcdir)/src/journal \
205 -I $(top_srcdir)/src/timedate \
206 -I $(top_srcdir)/src/timesync \
207 -I $(top_srcdir)/src/resolve \
208 -I $(top_builddir)/src/resolve \
209 -I $(top_srcdir)/src/systemd \
210 -I $(top_builddir)/src/core \
211 -I $(top_srcdir)/src/core \
212 -I $(top_srcdir)/src/libudev \
213 -I $(top_srcdir)/src/udev \
214 -I $(top_srcdir)/src/udev/net \
215 -I $(top_builddir)/src/udev \
216 -I $(top_srcdir)/src/libsystemd/sd-bus \
217 -I $(top_srcdir)/src/libsystemd/sd-event \
218 -I $(top_srcdir)/src/libsystemd/sd-rtnl \
219 -I $(top_srcdir)/src/libsystemd/sd-network \
220 -I $(top_srcdir)/src/libsystemd-network \
221 -I $(top_srcdir)/src/libsystemd-terminal \
224 AM_CFLAGS = $(OUR_CFLAGS)
225 AM_LDFLAGS = $(OUR_LDFLAGS)
227 # ------------------------------------------------------------------------------
228 define move-to-rootlibdir
229 if test "$(libdir)" != "$(rootlibdir)"; then \
230 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
231 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
232 rm -f $(DESTDIR)$(libdir)/$$libname && \
233 $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
234 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
240 RUNLEVEL1_TARGET_WANTS =
241 RUNLEVEL2_TARGET_WANTS =
242 RUNLEVEL3_TARGET_WANTS =
243 RUNLEVEL4_TARGET_WANTS =
244 RUNLEVEL5_TARGET_WANTS =
245 SHUTDOWN_TARGET_WANTS =
246 LOCAL_FS_TARGET_WANTS =
247 MULTI_USER_TARGET_WANTS =
248 SYSINIT_TARGET_WANTS =
249 SOCKETS_TARGET_WANTS =
250 BUSNAMES_TARGET_WANTS =
251 TIMERS_TARGET_WANTS =
252 USER_SOCKETS_TARGET_WANTS =
253 USER_DEFAULT_TARGET_WANTS =
254 USER_BUSNAMES_TARGET_WANTS =
256 SYSTEM_UNIT_ALIASES =
260 install-target-wants-hook:
261 what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && dir=$(systemunitdir) && $(add-wants)
262 what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && dir=$(systemunitdir) && $(add-wants)
263 what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && dir=$(systemunitdir) && $(add-wants)
264 what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && dir=$(systemunitdir) && $(add-wants)
265 what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && dir=$(systemunitdir) && $(add-wants)
266 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
267 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
268 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
269 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
270 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
271 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
272 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
273 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
274 what="$(USER_DEFAULT_TARGET_WANTS)" && wants=default.target && dir=$(userunitdir) && $(add-wants)
276 install-busnames-target-wants-hook:
277 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
278 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
281 [ -z "$$what" ] || ( \
282 dir=$(DESTDIR)$$dir/$$wants.wants && \
283 $(MKDIR_P) -m 0755 $$dir && \
286 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
289 install-directories-hook:
290 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
292 install-aliases-hook:
293 set -- $(SYSTEM_UNIT_ALIASES) && \
294 dir=$(systemunitdir) && $(install-aliases)
295 set -- $(USER_UNIT_ALIASES) && \
296 dir=$(userunitdir) && $(install-relative-aliases)
297 set -- $(GENERAL_ALIASES) && \
298 dir= && $(install-relative-aliases)
300 define install-aliases
301 while [ -n "$$1" ]; do \
302 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
303 rm -f $(DESTDIR)$$dir/$$2 && \
304 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
305 shift 2 || exit $$?; \
309 define install-relative-aliases
310 while [ -n "$$1" ]; do \
311 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
312 rm -f $(DESTDIR)$$dir/$$2 && \
313 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
314 shift 2 || exit $$?; \
318 install-touch-usr-hook:
319 touch -c $(DESTDIR)/$(prefix)
321 INSTALL_EXEC_HOOKS += \
322 install-target-wants-hook \
323 install-directories-hook \
324 install-aliases-hook \
325 install-touch-usr-hook
328 INSTALL_EXEC_HOOKS += \
329 install-busnames-target-wants-hook
332 # ------------------------------------------------------------------------------
333 AM_V_M4 = $(AM_V_M4_$(V))
334 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
335 AM_V_M4_0 = @echo " M4 " $@;
337 AM_V_XSLT = $(AM_V_XSLT_$(V))
338 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
339 AM_V_XSLT_0 = @echo " XSLT " $@;
341 AM_V_GPERF = $(AM_V_GPERF_$(V))
342 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
343 AM_V_GPERF_0 = @echo " GPERF " $@;
345 AM_V_LN = $(AM_V_LN_$(V))
346 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
347 AM_V_LN_0 = @echo " LN " $@;
349 AM_V_RM = $(AM_V_RM_$(V))
350 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
351 AM_V_RM_0 = @echo " RM " $@;
353 # ------------------------------------------------------------------------------
357 systemd-ask-password \
358 systemd-tty-ask-password-agent \
359 systemd-machine-id-setup \
366 systemd-detect-virt \
373 src/kernel-install/kernel-install
375 dist_kernelinstall_SCRIPTS = \
376 src/kernel-install/50-depmod.install \
377 src/kernel-install/90-loaderentry.install
379 rootlibexec_PROGRAMS = \
381 systemd-cgroups-agent \
386 systemd-reply-password \
392 systemd-socket-proxyd \
396 rootlibexec_PROGRAMS += \
400 systemgenerator_PROGRAMS = \
401 systemd-getty-generator \
402 systemd-fstab-generator \
403 systemd-system-update-generator \
404 systemd-debug-generator
406 dist_bashcompletion_DATA = \
407 shell-completion/bash/busctl \
408 shell-completion/bash/journalctl \
409 shell-completion/bash/systemd-analyze \
410 shell-completion/bash/systemd-cat \
411 shell-completion/bash/systemd-cgls \
412 shell-completion/bash/systemd-cgtop \
413 shell-completion/bash/systemd-delta \
414 shell-completion/bash/systemd-detect-virt \
415 shell-completion/bash/systemd-nspawn \
416 shell-completion/bash/systemd-run \
417 shell-completion/bash/udevadm \
418 shell-completion/bash/kernel-install
420 nodist_bashcompletion_DATA = \
421 shell-completion/bash/systemctl
423 dist_zshcompletion_DATA = \
424 shell-completion/zsh/_journalctl \
425 shell-completion/zsh/_udevadm \
426 shell-completion/zsh/_kernel-install \
427 shell-completion/zsh/_systemd-nspawn \
428 shell-completion/zsh/_systemd-analyze \
429 shell-completion/zsh/_systemd-run \
430 shell-completion/zsh/_sd_hosts_or_user_at_host \
431 shell-completion/zsh/_sd_outputmodes \
432 shell-completion/zsh/_sd_unit_files \
433 shell-completion/zsh/_systemd-delta \
434 shell-completion/zsh/_systemd
436 nodist_zshcompletion_DATA = \
437 shell-completion/zsh/_systemctl
440 shell-completion/bash/systemctl.in \
441 shell-completion/zsh/_systemctl.in
444 $(nodist_bashcompletion_DATA) \
445 $(nodist_zshcompletion_DATA)
448 sysctl.d/50-default.conf
450 dist_systemunit_DATA = \
451 units/graphical.target \
452 units/multi-user.target \
453 units/emergency.target \
454 units/sysinit.target \
459 units/local-fs.target \
460 units/local-fs-pre.target \
461 units/initrd.target \
462 units/initrd-fs.target \
463 units/initrd-root-fs.target \
464 units/remote-fs.target \
465 units/remote-fs-pre.target \
466 units/network.target \
467 units/network-pre.target \
468 units/network-online.target \
469 units/nss-lookup.target \
470 units/nss-user-lookup.target \
471 units/poweroff.target \
472 units/reboot.target \
473 units/rescue.target \
474 units/rpcbind.target \
475 units/time-sync.target \
476 units/shutdown.target \
478 units/umount.target \
479 units/sigpwr.target \
481 units/sockets.target \
482 units/timers.target \
484 units/suspend.target \
486 units/slices.target \
489 units/systemd-initctl.socket \
490 units/systemd-shutdownd.socket \
491 units/syslog.socket \
492 units/dev-hugepages.mount \
493 units/dev-mqueue.mount \
494 units/sys-kernel-config.mount \
495 units/sys-kernel-debug.mount \
496 units/sys-fs-fuse-connections.mount \
498 units/printer.target \
500 units/bluetooth.target \
501 units/smartcard.target \
502 units/systemd-ask-password-wall.path \
503 units/systemd-ask-password-console.path \
504 units/systemd-udevd-control.socket \
505 units/systemd-udevd-kernel.socket \
506 units/system-update.target \
507 units/initrd-switch-root.target
510 dist_systemunit_DATA += \
511 $(dist_systemunit_DATA_busnames)
514 dist_systemunit_DATA_busnames += \
515 units/busnames.target
517 nodist_systemunit_DATA = \
518 units/getty@.service \
519 units/serial-getty@.service \
520 units/console-shell.service \
521 units/console-getty.service \
522 units/container-getty@.service \
523 units/systemd-initctl.service \
524 units/systemd-shutdownd.service \
525 units/systemd-remount-fs.service \
526 units/systemd-ask-password-wall.service \
527 units/systemd-ask-password-console.service \
528 units/systemd-sysctl.service \
529 units/emergency.service \
530 units/rescue.service \
531 units/user@.service \
532 units/systemd-suspend.service \
533 units/systemd-halt.service \
534 units/systemd-poweroff.service \
535 units/systemd-reboot.service \
536 units/systemd-kexec.service \
537 units/systemd-fsck@.service \
538 units/systemd-fsck-root.service \
539 units/systemd-udevd.service \
540 units/systemd-udev-trigger.service \
541 units/systemd-udev-settle.service \
542 units/systemd-udev-hwdb-update.service \
543 units/debug-shell.service \
544 units/initrd-parse-etc.service \
545 units/initrd-cleanup.service \
546 units/initrd-udevadm-cleanup-db.service \
547 units/initrd-switch-root.service \
548 units/systemd-nspawn@.service \
549 units/systemd-update-done.service
552 nodist_systemunit_DATA += \
553 units/systemd-update-utmp.service \
554 units/systemd-update-utmp-runlevel.service
557 dist_userunit_DATA = \
558 units/user/basic.target \
559 units/user/default.target \
560 units/user/exit.target
562 nodist_userunit_DATA = \
563 units/user/systemd-exit.service
565 dist_systempreset_DATA = \
566 system-preset/90-systemd.preset
569 units/getty@.service.m4 \
570 units/serial-getty@.service.m4 \
571 units/console-shell.service.m4.in \
572 units/console-getty.service.m4.in \
573 units/container-getty@.service.m4.in \
574 units/rescue.service.in \
575 units/systemd-initctl.service.in \
576 units/systemd-shutdownd.service.in \
577 units/systemd-remount-fs.service.in \
578 units/systemd-update-utmp.service.in \
579 units/systemd-update-utmp-runlevel.service.in \
580 units/systemd-ask-password-wall.service.in \
581 units/systemd-ask-password-console.service.in \
582 units/systemd-sysctl.service.in \
583 units/emergency.service.in \
584 units/systemd-halt.service.in \
585 units/systemd-poweroff.service.in \
586 units/systemd-reboot.service.in \
587 units/systemd-kexec.service.in \
588 units/user/systemd-exit.service.in \
589 units/systemd-fsck@.service.in \
590 units/systemd-fsck-root.service.in \
591 units/user@.service.in \
592 units/debug-shell.service.in \
593 units/systemd-suspend.service.in \
594 units/quotaon.service.in \
595 units/initrd-parse-etc.service.in \
596 units/initrd-cleanup.service.in \
597 units/initrd-udevadm-cleanup-db.service.in \
598 units/initrd-switch-root.service.in \
599 units/systemd-nspawn@.service.in \
600 units/systemd-update-done.service.in
603 units/console-shell.service.m4 \
604 units/console-getty.service.m4 \
605 units/container-getty@.service.m4 \
606 units/user@.service.m4
609 nodist_systemunit_DATA += \
610 units/rc-local.service \
611 units/halt-local.service
613 systemgenerator_PROGRAMS += \
614 systemd-sysv-generator \
615 systemd-rc-local-generator
619 units/rc-local.service.in \
620 units/halt-local.service.in
622 # automake is broken and can't handle files with a dash in front
623 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
625 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
627 units-uninstall-hook:
628 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
630 INSTALL_DATA_HOOKS += units-install-hook
631 UNINSTALL_DATA_HOOKS += units-uninstall-hook
640 src/libsystemd/sd-bus/PORTING-DBUS1 \
641 src/libsystemd/sd-bus/DIFFERENCES \
642 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
644 @INTLTOOL_POLICY_RULE@
646 # ------------------------------------------------------------------------------
651 include Makefile-man.am
653 .PHONY: man update-man-list
654 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
657 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
659 ${XML_FILES:.xml=.html}
661 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
678 $(AM_V_at)$(MKDIR_P) $(dir $@)
679 $(AM_V_LN)$(LN_S) -f ../../man $@
688 man/index.html: man/systemd.index.html
689 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
697 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
698 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
699 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
701 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB)
702 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
703 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
704 @echo "Makefile-man.am has been regenerated"
706 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
707 $(AM_V_at)$(MKDIR_P) $(dir $@)
708 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
710 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py $(SOURCE_XML_FILES)
711 $(AM_V_at)$(MKDIR_P) $(dir $@)
712 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
715 man/systemd.index.xml \
717 man/systemd.directives.xml \
718 man/glib-event-glue.c
721 man/systemd.index.xml \
722 man/systemd.directives.xml
733 tools/make-man-index.py \
734 tools/make-directive-index.py \
737 # ------------------------------------------------------------------------------
738 noinst_LTLIBRARIES += \
741 libsystemd_shared_la_SOURCES = \
742 src/shared/capability.c \
743 src/shared/capability.h \
744 src/shared/linux/auto_dev-ioctl.h \
745 src/shared/ioprio.h \
746 src/shared/missing.h \
747 src/shared/initreq.h \
748 src/shared/securebits.h \
749 src/shared/special.h \
751 src/shared/unaligned.h \
754 src/shared/sparse-endian.h \
755 src/shared/refcnt.h \
756 src/shared/udev-util.h \
757 src/shared/bus-errors.h \
758 src/shared/bus-errors.c \
759 src/shared/device-nodes.c \
760 src/shared/device-nodes.h \
765 src/shared/architecture.c \
766 src/shared/architecture.h \
767 src/shared/efivars.c \
768 src/shared/efivars.h \
769 src/shared/path-util.c \
770 src/shared/path-util.h \
771 src/shared/time-util.c \
772 src/shared/time-util.h \
773 src/shared/locale-util.c \
774 src/shared/locale-util.h \
775 src/shared/mempool.c \
776 src/shared/mempool.h \
777 src/shared/hashmap.c \
778 src/shared/hashmap.h \
779 src/shared/siphash24.c \
780 src/shared/siphash24.h \
786 src/shared/sleep-config.c \
787 src/shared/sleep-config.h \
790 src/shared/env-util.c \
791 src/shared/env-util.h \
792 src/shared/strbuf.c \
793 src/shared/strbuf.h \
794 src/shared/strxcpyx.c \
795 src/shared/strxcpyx.h \
796 src/shared/conf-parser.c \
797 src/shared/conf-parser.h \
800 src/shared/ratelimit.h \
801 src/shared/ratelimit.c \
802 src/shared/exit-status.c \
803 src/shared/exit-status.h \
806 src/shared/gunicode.c \
807 src/shared/gunicode.h \
810 src/shared/socket-util.c \
811 src/shared/socket-util.h \
812 src/shared/in-addr-util.c \
813 src/shared/in-addr-util.h \
814 src/shared/conf-files.c \
815 src/shared/conf-files.h \
816 src/shared/cgroup-util.c \
817 src/shared/cgroup-util.h \
818 src/shared/cgroup-show.c \
819 src/shared/cgroup-show.h \
820 src/shared/unit-name.c \
821 src/shared/unit-name.h \
822 src/shared/utmp-wtmp.h \
823 src/shared/watchdog.c \
824 src/shared/watchdog.h \
825 src/shared/spawn-ask-password-agent.c \
826 src/shared/spawn-ask-password-agent.h \
827 src/shared/replace-var.c \
828 src/shared/replace-var.h \
829 src/shared/spawn-polkit-agent.c \
830 src/shared/spawn-polkit-agent.h \
831 src/shared/clock-util.c \
832 src/shared/clock-util.h \
833 src/shared/time-dst.c \
834 src/shared/time-dst.h \
835 src/shared/calendarspec.c \
836 src/shared/calendarspec.h \
837 src/shared/fileio.c \
838 src/shared/fileio.h \
839 src/shared/output-mode.h \
840 src/shared/MurmurHash2.c \
841 src/shared/MurmurHash2.h \
842 src/shared/acpi-fpdt.h \
843 src/shared/acpi-fpdt.c \
844 src/shared/boot-timestamps.h \
845 src/shared/boot-timestamps.c \
848 src/shared/smack-util.c \
849 src/shared/smack-util.h \
850 src/shared/apparmor-util.c \
851 src/shared/apparmor-util.h \
852 src/shared/ima-util.c \
853 src/shared/ima-util.h \
854 src/shared/ptyfwd.c \
855 src/shared/ptyfwd.h \
856 src/shared/errno-list.c \
857 src/shared/errno-list.h \
858 src/shared/af-list.c \
859 src/shared/af-list.h \
860 src/shared/arphrd-list.c \
861 src/shared/arphrd-list.h \
866 src/shared/bus-label.c \
867 src/shared/bus-label.h \
869 src/shared/clean-ipc.h \
870 src/shared/clean-ipc.c \
871 src/shared/login-shared.c \
872 src/shared/login-shared.h \
875 src/shared/barrier.c \
876 src/shared/barrier.h \
883 src/shared/base-filesystem.c \
884 src/shared/base-filesystem.h \
885 src/shared/memfd-util.c \
886 src/shared/memfd-util.h \
887 src/shared/uid-range.c \
888 src/shared/uid-range.h \
889 src/shared/nss-util.h
892 libsystemd_shared_la_SOURCES += \
893 src/shared/utmp-wtmp.c
896 nodist_libsystemd_shared_la_SOURCES = \
897 src/shared/errno-from-name.h \
898 src/shared/errno-to-name.h \
899 src/shared/af-from-name.h \
900 src/shared/af-to-name.h \
901 src/shared/arphrd-from-name.h \
902 src/shared/arphrd-to-name.h
904 libsystemd_shared_la_CFLAGS = \
910 libsystemd_shared_la_LIBADD = \
913 # ------------------------------------------------------------------------------
914 noinst_LTLIBRARIES += \
917 libsystemd_units_la_SOURCES = \
918 src/shared/install.c \
919 src/shared/install.h \
920 src/shared/install-printf.c \
921 src/shared/install-printf.h \
922 src/shared/path-lookup.c \
923 src/shared/path-lookup.h \
924 src/shared/specifier.c \
925 src/shared/specifier.h
927 # ------------------------------------------------------------------------------
928 noinst_LTLIBRARIES += \
931 libsystemd_label_la_SOURCES = \
932 src/shared/socket-label.c \
935 src/shared/selinux-util.c \
936 src/shared/selinux-util.h \
937 src/shared/mkdir-label.c \
938 src/shared/ask-password-api.c \
939 src/shared/ask-password-api.h \
940 src/shared/switch-root.h \
941 src/shared/switch-root.c \
942 src/shared/fileio-label.c \
943 src/shared/fileio-label.h \
944 src/shared/dev-setup.c \
945 src/shared/dev-setup.h \
946 src/shared/dropin.c \
947 src/shared/dropin.h \
948 src/shared/condition.c \
949 src/shared/condition.h \
950 src/shared/generator.h \
951 src/shared/generator.c
953 libsystemd_label_la_CFLAGS = \
957 libsystemd_label_la_LIBADD = \
960 # -----------------------------------------------------------------------------
963 dist_systemunit_DATA += \
964 units/ldconfig.service
966 SYSINIT_TARGET_WANTS += \
970 # ------------------------------------------------------------------------------
973 noinst_LTLIBRARIES += \
974 libsystemd-seccomp.la
976 libsystemd_seccomp_la_SOURCES = \
977 src/shared/seccomp-util.h \
978 src/shared/seccomp-util.c
980 libsystemd_seccomp_la_CFLAGS = \
984 libsystemd_seccomp_la_LIBADD = \
988 # ------------------------------------------------------------------------------
989 noinst_LTLIBRARIES += \
992 libsystemd_logs_la_SOURCES = \
993 src/shared/logs-show.c \
994 src/shared/logs-show.h
996 # ------------------------------------------------------------------------------
998 noinst_LTLIBRARIES += \
1001 libsystemd_acl_la_SOURCES = \
1002 src/shared/acl-util.c \
1003 src/shared/acl-util.h
1005 libsystemd_acl_la_CFLAGS = \
1009 libsystemd_acl_la_LIBADD = \
1013 # ------------------------------------------------------------------------------
1014 noinst_LTLIBRARIES += \
1017 libsystemd_core_la_SOURCES = \
1020 src/core/unit-printf.c \
1021 src/core/unit-printf.h \
1024 src/core/manager.c \
1025 src/core/manager.h \
1026 src/core/transaction.c \
1027 src/core/transaction.h \
1028 src/core/load-fragment.c \
1029 src/core/load-fragment.h \
1030 src/core/service.c \
1031 src/core/service.h \
1034 src/core/busname.c \
1035 src/core/busname.h \
1036 src/core/bus-common.c \
1037 src/core/bus-common.h \
1038 src/core/bus-endpoint.c \
1039 src/core/bus-endpoint.h \
1042 src/core/snapshot.c \
1043 src/core/snapshot.h \
1048 src/core/automount.c \
1049 src/core/automount.h \
1060 src/core/load-dropin.c \
1061 src/core/load-dropin.h \
1062 src/core/execute.c \
1063 src/core/execute.h \
1068 src/core/dbus-manager.c \
1069 src/core/dbus-manager.h \
1070 src/core/dbus-unit.c \
1071 src/core/dbus-unit.h \
1072 src/core/dbus-job.c \
1073 src/core/dbus-job.h \
1074 src/core/dbus-service.c \
1075 src/core/dbus-service.h \
1076 src/core/dbus-socket.c \
1077 src/core/dbus-socket.h \
1078 src/core/dbus-busname.c \
1079 src/core/dbus-busname.h \
1080 src/core/dbus-target.c \
1081 src/core/dbus-target.h \
1082 src/core/dbus-snapshot.c \
1083 src/core/dbus-snapshot.h \
1084 src/core/dbus-device.c \
1085 src/core/dbus-device.h \
1086 src/core/dbus-mount.c \
1087 src/core/dbus-mount.h \
1088 src/core/dbus-automount.c \
1089 src/core/dbus-automount.h \
1090 src/core/dbus-swap.c \
1091 src/core/dbus-swap.h \
1092 src/core/dbus-timer.c \
1093 src/core/dbus-timer.h \
1094 src/core/dbus-path.c \
1095 src/core/dbus-path.h \
1096 src/core/dbus-slice.c \
1097 src/core/dbus-slice.h \
1098 src/core/dbus-scope.c \
1099 src/core/dbus-scope.h \
1100 src/core/dbus-execute.c \
1101 src/core/dbus-execute.h \
1102 src/core/dbus-kill.c \
1103 src/core/dbus-kill.h \
1104 src/core/dbus-cgroup.c \
1105 src/core/dbus-cgroup.h \
1108 src/core/selinux-access.c \
1109 src/core/selinux-access.h \
1110 src/core/selinux-setup.c \
1111 src/core/selinux-setup.h \
1112 src/core/smack-setup.c \
1113 src/core/smack-setup.h \
1114 src/core/ima-setup.c \
1115 src/core/ima-setup.h \
1116 src/core/locale-setup.h \
1117 src/core/locale-setup.c \
1118 src/core/hostname-setup.c \
1119 src/core/hostname-setup.h \
1120 src/core/machine-id-setup.c \
1121 src/core/machine-id-setup.h \
1122 src/core/mount-setup.c \
1123 src/core/mount-setup.h \
1124 src/core/kmod-setup.c \
1125 src/core/kmod-setup.h \
1126 src/core/loopback-setup.h \
1127 src/core/loopback-setup.c \
1128 src/core/namespace.c \
1129 src/core/namespace.h \
1131 src/core/sysfs-show.h \
1132 src/core/killall.h \
1133 src/core/killall.c \
1134 src/core/audit-fd.c \
1135 src/core/audit-fd.h \
1136 src/core/show-status.c \
1137 src/core/show-status.h \
1138 src/core/failure-action.c \
1139 src/core/failure-action.h
1141 nodist_libsystemd_core_la_SOURCES = \
1142 src/core/load-fragment-gperf.c \
1143 src/core/load-fragment-gperf-nulstr.c
1145 libsystemd_core_la_CFLAGS = \
1150 $(APPARMOR_CFLAGS) \
1154 libsystemd_core_la_LIBADD = \
1155 libsystemd-units.la \
1156 libsystemd-label.la \
1157 libudev-internal.la \
1158 libsystemd-shared.la \
1159 libsystemd-internal.la \
1167 libsystemd_core_la_LIBADD += \
1168 libsystemd-seccomp.la
1171 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1172 $(AM_V_at)$(MKDIR_P) $(dir $@)
1173 $(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 ";" }' < $< > $@
1176 src/core/load-fragment-gperf.gperf.m4
1179 src/core/load-fragment-gperf.gperf \
1180 src/core/load-fragment-gperf.c \
1181 src/core/load-fragment-gperf-nulstr.c \
1182 src/shared/errno-list.txt \
1183 src/shared/errno-from-name.gperf \
1184 src/shared/af-list.txt \
1185 src/shared/af-from-name.gperf \
1186 src/shared/arphrd-list.txt \
1187 src/shared/arphrd-from-name.gperf \
1188 src/shared/dns_type-list.txt \
1189 src/shared/dns_type-from-name.gperf
1192 src/shared/errno-from-name.h \
1193 src/shared/errno-to-name.h \
1194 src/shared/af-from-name.h \
1195 src/shared/af-to-name.h \
1196 src/shared/arphrd-from-name.h \
1197 src/shared/arphrd-to-name.h \
1198 src/resolve/dns_type-from-name.h \
1199 src/resolve/dns_type-to-name.h
1201 %-from-name.gperf: %-list.txt
1202 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1204 %-from-name.h: %-from-name.gperf
1205 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1208 src/shared/errno-list.txt:
1209 $(AM_V_at)$(MKDIR_P) $(dir $@)
1210 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1212 src/shared/errno-to-name.h: src/shared/errno-list.txt
1213 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1216 src/shared/af-list.txt:
1217 $(AM_V_at)$(MKDIR_P) $(dir $@)
1218 $(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; }' >$@
1220 src/shared/af-to-name.h: src/shared/af-list.txt
1221 $(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 "};"}' <$< >$@
1223 src/shared/arphrd-list.txt:
1224 $(AM_V_at)$(MKDIR_P) $(dir $@)
1225 $(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_//' >$@
1227 src/shared/arphrd-to-name.h: src/shared/arphrd-list.txt
1228 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1230 src/shared/arphrd-from-name.gperf: src/shared/arphrd-list.txt
1231 $(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 }' <$< >$@
1234 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1235 $(AM_V_at)$(MKDIR_P) $(dir $@)
1236 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1238 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1239 $(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" }' <$< >$@
1241 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1242 $(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 }' <$< >$@
1244 # ------------------------------------------------------------------------------
1253 libsystemd-core.la \
1256 dist_pkgsysconf_DATA += \
1257 src/core/system.conf \
1260 dist_dbuspolicy_DATA += \
1261 src/core/org.freedesktop.systemd1.conf
1263 dist_dbussystemservice_DATA += \
1264 src/core/org.freedesktop.systemd1.service
1266 polkitpolicy_in_in_files += \
1267 src/core/org.freedesktop.systemd1.policy.in.in
1269 pkgconfigdata_DATA = \
1272 nodist_rpmmacros_DATA = \
1273 src/core/macros.systemd
1276 src/core/systemd.pc.in \
1277 src/core/macros.systemd.in
1280 src/core/macros.systemd \
1281 src/core/org.freedesktop.systemd1.policy.in
1283 # ------------------------------------------------------------------------------
1326 test-strip-tab-ansi \
1357 test/daughter.service \
1362 test/grandchild.service \
1364 test/hello-after-sleep.target \
1365 test/hello.service \
1367 test/parent-deep.slice \
1370 test/sched_idle_bad.service \
1371 test/sched_idle_ok.service \
1372 test/sched_rr_bad.service \
1373 test/sched_rr_change.service \
1374 test/sched_rr_ok.service \
1375 test/shutdown.target \
1376 test/sleep.service \
1377 test/sockets.target \
1379 test/sysinit.target \
1380 test/testsuite.target \
1381 test/timers.target \
1382 test/unstoppable.service \
1383 test/bus-policy/hello.conf \
1384 test/bus-policy/methods.conf \
1385 test/bus-policy/ownerships.conf \
1386 test/bus-policy/signals.conf \
1387 test/bus-policy/check-own-rules.conf \
1388 test/bus-policy/many-rules.conf \
1389 test/bus-policy/test.conf
1393 src/test/test-helper.h
1395 test_device_nodes_SOURCES = \
1396 src/test/test-device-nodes.c
1398 test_device_nodes_LDADD = \
1399 libsystemd-shared.la
1401 test_engine_SOURCES = \
1402 src/test/test-engine.c
1404 test_engine_CFLAGS = \
1408 test_engine_LDADD = \
1409 libsystemd-core.la \
1412 test_job_type_SOURCES = \
1413 src/test/test-job-type.c
1415 test_job_type_CFLAGS = \
1419 test_job_type_LDADD = \
1420 libsystemd-core.la \
1433 test_loopback_SOURCES = \
1434 src/test/test-loopback.c
1436 test_loopback_LDADD = \
1439 test_hostname_SOURCES = \
1440 src/test/test-hostname.c
1442 test_hostname_LDADD = \
1449 test_boot_timestamp_SOURCES = \
1450 src/test/test-boot-timestamps.c
1452 test_boot_timestamp_LDADD = \
1453 libsystemd-shared.la
1456 test_unit_name_SOURCES = \
1457 src/test/test-unit-name.c
1459 test_unit_name_CFLAGS = \
1463 test_unit_name_LDADD = \
1464 libsystemd-core.la \
1467 test_unit_file_SOURCES = \
1468 src/test/test-unit-file.c
1470 test_unit_file_CFLAGS = \
1474 test_unit_file_LDADD = \
1475 libsystemd-core.la \
1478 test_utf8_SOURCES = \
1479 src/test/test-utf8.c
1482 libsystemd-shared.la
1484 test_capability_SOURCES = \
1485 src/test/test-capability.c
1487 test_capability_LDADD = \
1488 libsystemd-shared.la
1490 test_async_SOURCES = \
1491 src/test/test-async.c
1493 test_async_LDADD = \
1494 libsystemd-shared.la
1496 test_locale_util_SOURCES = \
1497 src/test/test-locale-util.c
1499 test_locale_util_LDADD = \
1500 libsystemd-shared.la
1502 test_copy_SOURCES = \
1503 src/test/test-copy.c
1506 libsystemd-shared.la
1508 test_condition_SOURCES = \
1509 src/test/test-condition.c
1511 test_condition_LDADD = \
1512 libsystemd-label.la \
1513 libsystemd-internal.la \
1514 libsystemd-shared.la
1516 test_fdset_SOURCES = \
1517 src/test/test-fdset.c
1519 test_fdset_LDADD = \
1520 libsystemd-shared.la \
1521 libsystemd-internal.la
1523 test_ratelimit_SOURCES = \
1524 src/test/test-ratelimit.c
1526 test_ratelimit_LDADD = \
1527 libsystemd-shared.la
1529 test_util_SOURCES = \
1530 src/test/test-util.c
1534 libsystemd-shared.la
1536 test_uid_range_SOURCES = \
1537 src/test/test-uid-range.c
1539 test_uid_range_LDADD = \
1540 libsystemd-shared.la
1542 test_socket_util_SOURCES = \
1543 src/test/test-socket-util.c
1545 test_socket_util_LDADD = \
1546 libsystemd-shared.la
1548 test_ring_SOURCES = \
1549 src/test/test-ring.c
1552 libsystemd-shared.la
1554 test_barrier_SOURCES = \
1555 src/test/test-barrier.c
1557 test_barrier_LDADD = \
1558 libsystemd-shared.la
1560 test_pty_SOURCES = \
1566 test_tmpfiles_SOURCES = \
1567 src/test/test-tmpfiles.c
1569 test_tmpfiles_LDADD = \
1570 libsystemd-shared.la
1572 test_namespace_SOURCES = \
1573 src/test/test-namespace.c
1575 test_namespace_LDADD = \
1579 src/test/test-hashmap-ordered.c
1582 src/test/test-hashmap-ordered.c
1584 src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c
1585 $(AM_V_at)$(MKDIR_P) $(dir $@)
1586 $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \
1587 { if (!match($$0, "^#include")) \
1588 gsub(/hashmap/, "ordered_hashmap"); \
1589 gsub(/HASHMAP/, "ORDERED_HASHMAP"); \
1590 gsub(/Hashmap/, "OrderedHashmap"); \
1593 nodist_test_hashmap_SOURCES = \
1594 src/test/test-hashmap-ordered.c
1596 test_hashmap_SOURCES = \
1597 src/test/test-hashmap.c \
1598 src/test/test-hashmap-plain.c
1600 test_hashmap_LDADD = \
1601 libsystemd-shared.la
1603 test_set_SOURCES = \
1607 libsystemd-shared.la
1609 test_xml_SOURCES = \
1613 libsystemd-shared.la
1615 test_list_SOURCES = \
1616 src/test/test-list.c
1619 libsystemd-shared.la
1621 test_unaligned_LDADD = \
1622 libsystemd-shared.la
1624 test_unaligned_SOURCES = \
1625 src/test/test-unaligned.c
1627 test_tables_SOURCES = \
1628 src/test/test-tables.c \
1629 src/shared/test-tables.h \
1630 src/bus-proxyd/bus-policy.c \
1631 src/bus-proxyd/bus-policy.h \
1632 src/journal/journald-server.c \
1633 src/journal/journald-server.h
1635 test_tables_CPPFLAGS = \
1637 -I$(top_srcdir)/src/bus-proxyd
1639 test_tables_CFLAGS = \
1643 test_tables_LDADD = \
1644 libsystemd-logs.la \
1645 libsystemd-journal-internal.la \
1646 libsystemd-journal-core.la \
1647 libsystemd-core.la \
1651 test_prioq_SOURCES = \
1652 src/test/test-prioq.c
1654 test_prioq_LDADD = \
1655 libsystemd-shared.la
1657 test_fileio_SOURCES = \
1658 src/test/test-fileio.c
1660 test_fileio_LDADD = \
1661 libsystemd-shared.la
1663 test_time_SOURCES = \
1664 src/test/test-time.c
1667 libsystemd-shared.la
1669 test_architecture_SOURCES = \
1670 src/test/test-architecture.c
1672 test_architecture_LDADD = \
1673 libsystemd-shared.la
1675 test_log_SOURCES = \
1679 libsystemd-shared.la
1681 test_ipcrm_SOURCES = \
1682 src/test/test-ipcrm.c
1684 test_ipcrm_LDADD = \
1685 libsystemd-shared.la \
1688 test_rtnl_manual_SOURCES = \
1689 src/test/test-rtnl-manual.c
1691 test_rtnl_manual_CFLAGS = \
1695 test_rtnl_manual_LDADD = \
1696 libsystemd-internal.la \
1697 libsystemd-shared.la \
1700 test_ellipsize_SOURCES = \
1701 src/test/test-ellipsize.c
1703 test_ellipsize_LDADD = \
1704 libsystemd-shared.la
1706 test_date_SOURCES = \
1707 src/test/test-date.c
1710 libsystemd-shared.la
1712 test_sleep_SOURCES = \
1713 src/test/test-sleep.c
1715 test_sleep_LDADD = \
1718 test_replace_var_SOURCES = \
1719 src/test/test-replace-var.c
1721 test_replace_var_LDADD = \
1722 libsystemd-shared.la
1724 test_calendarspec_SOURCES = \
1725 src/test/test-calendarspec.c
1727 test_calendarspec_LDADD = \
1728 libsystemd-shared.la
1730 test_strip_tab_ansi_SOURCES = \
1731 src/test/test-strip-tab-ansi.c
1733 test_strip_tab_ansi_LDADD = \
1734 libsystemd-shared.la
1736 test_daemon_SOURCES = \
1737 src/test/test-daemon.c
1739 test_daemon_LDADD = \
1740 libsystemd-internal.la \
1741 libsystemd-shared.la
1743 test_cgroup_SOURCES = \
1744 src/test/test-cgroup.c
1746 test_cgroup_LDADD = \
1747 libsystemd-label.la \
1748 libsystemd-shared.la \
1749 libsystemd-internal.la
1751 test_cgroup_mask_SOURCES = \
1752 src/test/test-cgroup-mask.c
1754 test_cgroup_mask_CPPFLAGS = \
1757 test_cgroup_mask_CFLAGS = \
1761 test_cgroup_mask_LDADD = \
1762 libsystemd-core.la \
1765 test_cgroup_util_SOURCES = \
1766 src/test/test-cgroup-util.c
1768 test_cgroup_util_LDADD = \
1769 libsystemd-label.la \
1770 libsystemd-internal.la \
1771 libsystemd-shared.la
1773 test_env_replace_SOURCES = \
1774 src/test/test-env-replace.c
1776 test_env_replace_LDADD = \
1777 libsystemd-shared.la
1779 test_strbuf_SOURCES = \
1780 src/test/test-strbuf.c
1782 test_strbuf_LDADD = \
1783 libsystemd-shared.la
1785 test_strv_SOURCES = \
1786 src/test/test-strv.c
1789 libsystemd-units.la \
1790 libsystemd-internal.la \
1791 libsystemd-shared.la
1793 test_path_util_SOURCES = \
1794 src/test/test-path-util.c
1796 test_path_util_LDADD = \
1797 libsystemd-shared.la
1799 test_path_SOURCES = \
1800 src/test/test-path.c
1802 test_path_CFLAGS = \
1808 test_execute_SOURCES = \
1809 src/test/test-execute.c
1811 test_execute_CFLAGS = \
1814 test_execute_LDADD = \
1817 test_strxcpyx_SOURCES = \
1818 src/test/test-strxcpyx.c
1820 test_strxcpyx_LDADD = \
1821 libsystemd-shared.la
1823 test_install_SOURCES = \
1824 src/test/test-install.c
1826 test_install_LDADD = \
1827 libsystemd-units.la \
1828 libsystemd-label.la \
1829 libsystemd-shared.la \
1830 libsystemd-internal.la
1832 test_watchdog_SOURCES = \
1833 src/test/test-watchdog.c
1835 test_watchdog_LDADD = \
1836 libsystemd-shared.la
1838 test_sched_prio_SOURCES = \
1839 src/test/test-sched-prio.c
1841 test_sched_prio_CPPFLAGS = \
1844 test_sched_prio_CFLAGS = \
1848 test_sched_prio_LDADD = \
1849 libsystemd-core.la \
1852 test_conf_files_SOURCES = \
1853 src/test/test-conf-files.c
1855 test_conf_files_LDADD = \
1856 libsystemd-shared.la
1858 test_bus_policy_SOURCES = \
1859 src/bus-proxyd/test-bus-policy.c \
1860 src/bus-proxyd/bus-policy.c \
1861 src/bus-proxyd/bus-policy.h
1863 test_bus_policy_LDADD = \
1864 libsystemd-internal.la \
1865 libsystemd-shared.la
1867 # ------------------------------------------------------------------------------
1868 ## .PHONY so it always rebuilds it
1869 .PHONY: coverage lcov-run lcov-report coverage-sync
1871 # run lcov from scratch, always
1876 coverage_dir = coverage
1877 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1880 # reset run coverage tests
1882 @rm -rf $(coverage_dir)
1883 lcov $(coverage_opts) --zerocounters
1886 # generate report based on current coverage data
1888 $(MKDIR_P) $(coverage_dir)
1889 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1890 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1891 lcov --remove $(coverage_dir)/.lcov.info --output-file $(coverage_dir)/.lcov-clean.info 'test-*'
1892 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov-clean.info
1893 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1895 # lcov doesn't work properly with vpath builds, make sure that bad
1896 # output is not uploaded by mistake.
1897 coverage-sync: coverage
1898 test "$(builddir)" = "$(srcdir)"
1899 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1902 lcov-run lcov-report:
1903 echo "Need to reconfigure with --enable-coverage"
1906 # ------------------------------------------------------------------------------
1907 systemd_analyze_SOURCES = \
1908 src/analyze/analyze.c \
1909 src/analyze/analyze-verify.c \
1910 src/analyze/analyze-verify.h
1912 systemd_verify_CFLAGS = \
1916 systemd_analyze_LDADD = \
1917 libsystemd-core.la \
1918 libsystemd-internal.la \
1919 libsystemd-shared.la \
1922 # ------------------------------------------------------------------------------
1923 systemd_initctl_SOURCES = \
1924 src/initctl/initctl.c
1926 systemd_initctl_LDADD = \
1927 libsystemd-internal.la \
1928 libsystemd-shared.la
1930 # ------------------------------------------------------------------------------
1931 systemd_update_utmp_SOURCES = \
1932 src/update-utmp/update-utmp.c
1934 systemd_update_utmp_CFLAGS = \
1938 systemd_update_utmp_LDADD = \
1939 libsystemd-internal.la \
1940 libsystemd-shared.la \
1943 # ------------------------------------------------------------------------------
1944 systemd_update_done_SOURCES = \
1945 src/update-done/update-done.c
1947 systemd_update_done_LDADD = \
1948 libsystemd-internal.la \
1949 libsystemd-label.la \
1950 libsystemd-shared.la
1952 # ------------------------------------------------------------------------------
1953 systemd_shutdownd_SOURCES = \
1954 src/shutdownd/shutdownd.c
1956 systemd_shutdownd_LDADD = \
1957 libsystemd-label.la \
1958 libsystemd-internal.la \
1959 libsystemd-shared.la
1962 src/systemd/sd-shutdown.h
1964 # ------------------------------------------------------------------------------
1965 systemd_shutdown_SOURCES = \
1968 src/core/shutdown.c \
1969 src/core/mount-setup.c \
1970 src/core/mount-setup.h \
1971 src/core/killall.h \
1974 systemd_shutdown_LDADD = \
1975 libsystemd-label.la \
1976 libudev-internal.la \
1977 libsystemd-shared.la
1979 # ------------------------------------------------------------------------------
1981 systemd_modules_load_SOURCES = \
1982 src/modules-load/modules-load.c
1984 systemd_modules_load_CFLAGS = \
1988 systemd_modules_load_LDADD = \
1989 libsystemd-shared.la \
1992 rootlibexec_PROGRAMS += \
1993 systemd-modules-load
1995 nodist_systemunit_DATA += \
1996 units/systemd-modules-load.service
1998 SYSINIT_TARGET_WANTS += \
1999 systemd-modules-load.service
2002 nodist_systemunit_DATA += \
2003 units/kmod-static-nodes.service
2005 SYSINIT_TARGET_WANTS += \
2006 kmod-static-nodes.service
2011 units/systemd-modules-load.service.in \
2012 units/kmod-static-nodes.service.in
2014 # ------------------------------------------------------------------------------
2016 systemd_tmpfiles_SOURCES = \
2017 src/tmpfiles/tmpfiles.c
2019 systemd_tmpfiles_LDADD = \
2020 libsystemd-units.la \
2021 libsystemd-label.la \
2022 libsystemd-internal.la \
2023 libsystemd-shared.la
2025 rootbin_PROGRAMS += \
2028 dist_systemunit_DATA += \
2029 units/systemd-tmpfiles-clean.timer
2031 nodist_systemunit_DATA += \
2032 units/systemd-tmpfiles-setup-dev.service \
2033 units/systemd-tmpfiles-setup.service \
2034 units/systemd-tmpfiles-clean.service
2036 nodist_tmpfiles_DATA = \
2039 dist_tmpfiles_DATA = \
2040 tmpfiles.d/systemd.conf \
2041 tmpfiles.d/systemd-nologin.conf \
2042 tmpfiles.d/systemd-remote.conf \
2043 tmpfiles.d/tmp.conf \
2044 tmpfiles.d/x11.conf \
2048 dist_tmpfiles_DATA += \
2049 tmpfiles.d/legacy.conf
2052 SYSINIT_TARGET_WANTS += \
2053 systemd-tmpfiles-setup-dev.service \
2054 systemd-tmpfiles-setup.service
2056 dist_zshcompletion_DATA += \
2057 shell-completion/zsh/_systemd-tmpfiles
2059 TIMERS_TARGET_WANTS += \
2060 systemd-tmpfiles-clean.timer
2064 $(sysconfdir)/tmpfiles.d
2068 tmpfiles.d/etc.conf.m4 \
2069 units/systemd-tmpfiles-setup-dev.service.in \
2070 units/systemd-tmpfiles-setup.service.in \
2071 units/systemd-tmpfiles-clean.service.in
2076 # ------------------------------------------------------------------------------
2078 systemd_sysusers_SOURCES = \
2079 src/sysusers/sysusers.c
2081 systemd_sysusers_LDADD = \
2082 libsystemd-units.la \
2083 libsystemd-label.la \
2084 libsystemd-internal.la \
2085 libsystemd-shared.la
2087 rootbin_PROGRAMS += \
2090 nodist_systemunit_DATA += \
2091 units/systemd-sysusers.service
2093 SYSINIT_TARGET_WANTS += \
2094 systemd-sysusers.service
2096 dist_sysusers_DATA = \
2097 sysusers.d/systemd.conf \
2098 sysusers.d/systemd-remote.conf
2100 nodist_sysusers_DATA = \
2101 sysusers.d/basic.conf
2104 units/systemd-sysusers.service.in \
2105 sysusers.d/basic.conf.in
2108 sysusers.d/basic.conf
2114 # ------------------------------------------------------------------------------
2115 dist_factory_etc_DATA = \
2116 factory/etc/nsswitch.conf
2119 dist_factory_pam_DATA = \
2120 factory/etc/pam.d/system-auth \
2121 factory/etc/pam.d/other
2124 # ------------------------------------------------------------------------------
2126 systemd_firstboot_SOURCES = \
2127 src/firstboot/firstboot.c
2129 systemd_firstboot_LDADD = \
2130 libsystemd-units.la \
2131 libsystemd-label.la \
2132 libsystemd-internal.la \
2133 libsystemd-shared.la \
2136 rootbin_PROGRAMS += \
2139 nodist_systemunit_DATA += \
2140 units/systemd-firstboot.service
2143 units/systemd-firstboot.service.in
2145 SYSINIT_TARGET_WANTS += \
2146 systemd-firstboot.service
2149 # ------------------------------------------------------------------------------
2150 systemd_machine_id_setup_SOURCES = \
2151 src/machine-id-setup/machine-id-setup-main.c \
2152 src/core/machine-id-setup.c \
2153 src/core/machine-id-setup.h
2155 systemd_machine_id_setup_LDADD = \
2156 libsystemd-label.la \
2157 libsystemd-internal.la \
2158 libsystemd-shared.la
2160 # ------------------------------------------------------------------------------
2161 systemd_sysctl_SOURCES = \
2164 systemd_sysctl_LDADD = \
2165 libsystemd-shared.la
2167 # ------------------------------------------------------------------------------
2168 systemd_sleep_SOURCES = \
2171 systemd_sleep_LDADD = \
2172 libsystemd-shared.la
2174 # ------------------------------------------------------------------------------
2175 systemd_fsck_SOURCES = \
2178 systemd_fsck_LDADD = \
2179 libsystemd-internal.la \
2180 libudev-internal.la \
2181 libsystemd-shared.la
2183 # ------------------------------------------------------------------------------
2184 systemd_ac_power_SOURCES = \
2185 src/ac-power/ac-power.c
2187 systemd_ac_power_LDADD = \
2188 libudev-internal.la \
2189 libsystemd-shared.la
2191 # ------------------------------------------------------------------------------
2192 systemd_detect_virt_SOURCES = \
2193 src/detect-virt/detect-virt.c
2195 systemd_detect_virt_LDADD = \
2196 libsystemd-shared.la
2198 INSTALL_EXEC_HOOKS += \
2199 systemd-detect-virt-install-hook
2201 # ------------------------------------------------------------------------------
2202 systemd_delta_SOURCES = \
2205 systemd_delta_LDADD = \
2206 libsystemd-shared.la
2208 # ------------------------------------------------------------------------------
2209 systemd_getty_generator_SOURCES = \
2210 src/getty-generator/getty-generator.c
2212 systemd_getty_generator_LDADD = \
2213 libsystemd-label.la \
2214 libsystemd-shared.la
2216 # ------------------------------------------------------------------------------
2217 systemd_debug_generator_SOURCES = \
2218 src/debug-generator/debug-generator.c
2220 systemd_debug_generator_LDADD = \
2221 libsystemd-label.la \
2222 libsystemd-shared.la
2224 # ------------------------------------------------------------------------------
2225 systemd_fstab_generator_SOURCES = \
2226 src/fstab-generator/fstab-generator.c \
2227 src/core/mount-setup.c
2229 systemd_fstab_generator_LDADD = \
2230 libsystemd-label.la \
2231 libsystemd-shared.la
2233 # ------------------------------------------------------------------------------
2234 systemd_system_update_generator_SOURCES = \
2235 src/system-update-generator/system-update-generator.c
2237 systemd_system_update_generator_LDADD = \
2238 libsystemd-label.la \
2239 libsystemd-shared.la
2241 # ------------------------------------------------------------------------------
2243 systemgenerator_PROGRAMS += \
2244 systemd-hibernate-resume-generator
2246 rootlibexec_PROGRAMS += \
2247 systemd-hibernate-resume
2249 systemd_hibernate_resume_SOURCES = \
2250 src/hibernate-resume/hibernate-resume.c
2252 systemd_hibernate_resume_LDADD = \
2253 libsystemd-internal.la \
2254 libsystemd-shared.la
2256 systemd_hibernate_resume_generator_SOURCES = \
2257 src/hibernate-resume/hibernate-resume-generator.c
2259 systemd_hibernate_resume_generator_LDADD = \
2260 libsystemd-label.la \
2261 libsystemd-shared.la
2264 units/systemd-hibernate.service.in \
2265 units/systemd-hibernate-resume@.service.in \
2266 units/systemd-hybrid-sleep.service.in
2268 dist_systemunit_DATA += \
2269 units/hibernate.target \
2270 units/hybrid-sleep.target
2272 nodist_systemunit_DATA += \
2273 units/systemd-hibernate.service \
2274 units/systemd-hibernate-resume@.service \
2275 units/systemd-hybrid-sleep.service
2278 # ------------------------------------------------------------------------------
2280 systemgenerator_PROGRAMS += \
2281 systemd-efi-boot-generator
2283 systemd_efi_boot_generator_SOURCES = \
2284 src/efi-boot-generator/efi-boot-generator.c
2286 systemd_efi_boot_generator_LDADD = \
2287 libsystemd-label.la \
2288 libsystemd-shared.la
2290 # ------------------------------------------------------------------------------
2293 src/boot/boot-loader.h \
2294 src/boot/bootctl.c \
2295 src/boot/boot-loader.c \
2299 libsystemd-shared.la \
2300 libsystemd-internal.la
2305 dist_bashcompletion_DATA += \
2306 shell-completion/bash/bootctl
2308 dist_zshcompletion_DATA += \
2309 shell-completion/zsh/_bootctl
2313 # ------------------------------------------------------------------------------
2315 systemgenerator_PROGRAMS += \
2316 systemd-gpt-auto-generator
2318 systemd_gpt_auto_generator_SOURCES = \
2319 src/gpt-auto-generator/gpt-auto-generator.c \
2320 src/shared/blkid-util.h
2322 systemd_gpt_auto_generator_LDADD = \
2323 libsystemd-label.la \
2324 libsystemd-internal.la \
2325 libudev-internal.la \
2326 libsystemd-shared.la \
2329 systemd_gpt_auto_generator_CFLAGS = \
2334 # ------------------------------------------------------------------------------
2336 systemgenerator_PROGRAMS += \
2337 systemd-dbus1-generator
2339 systemd_dbus1_generator_SOURCES = \
2340 src/dbus1-generator/dbus1-generator.c
2342 systemd_dbus1_generator_LDADD = \
2343 libsystemd-label.la \
2344 libsystemd-shared.la \
2345 libsystemd-internal.la
2347 dbus1-generator-install-hook:
2348 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2349 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2350 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2352 dbus1-generator-uninstall-hook:
2353 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2355 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2356 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2359 # ------------------------------------------------------------------------------
2360 systemd_sysv_generator_SOURCES = \
2361 src/sysv-generator/sysv-generator.c
2363 systemd_sysv_generator_LDADD = \
2364 libsystemd-core.la \
2365 libsystemd-label.la \
2366 libsystemd-shared.la
2368 # ------------------------------------------------------------------------------
2369 systemd_rc_local_generator_SOURCES = \
2370 src/rc-local-generator/rc-local-generator.c
2372 systemd_rc_local_generator_LDADD = \
2373 libsystemd-label.la \
2374 libsystemd-shared.la
2376 # ------------------------------------------------------------------------------
2377 systemd_remount_fs_SOURCES = \
2378 src/remount-fs/remount-fs.c \
2379 src/core/mount-setup.c \
2380 src/core/mount-setup.h
2382 systemd_remount_fs_LDADD = \
2383 libsystemd-label.la \
2384 libsystemd-shared.la
2386 # ------------------------------------------------------------------------------
2387 systemd_cgroups_agent_SOURCES = \
2388 src/cgroups-agent/cgroups-agent.c
2390 systemd_cgroups_agent_LDADD = \
2391 libsystemd-internal.la \
2392 libsystemd-shared.la
2394 # ------------------------------------------------------------------------------
2395 systemd_escape_SOURCES = \
2398 systemd_escape_LDADD = \
2399 libsystemd-shared.la
2401 # -----------------------------------------------------------------------------
2402 systemctl_SOURCES = \
2403 src/systemctl/systemctl.c
2406 libsystemd-units.la \
2407 libsystemd-label.la \
2408 libsystemd-internal.la \
2409 libsystemd-logs.la \
2410 libsystemd-journal-internal.la \
2411 libsystemd-shared.la
2413 # ------------------------------------------------------------------------------
2414 systemd_notify_SOURCES = \
2417 systemd_notify_LDADD = \
2418 libsystemd-internal.la \
2419 libsystemd-shared.la
2421 # ------------------------------------------------------------------------------
2422 systemd_path_SOURCES = \
2425 systemd_path_LDADD = \
2426 libsystemd-internal.la \
2427 libsystemd-shared.la
2429 # ------------------------------------------------------------------------------
2430 systemd_ask_password_SOURCES = \
2431 src/ask-password/ask-password.c
2433 systemd_ask_password_LDADD = \
2434 libsystemd-label.la \
2435 libsystemd-shared.la
2437 # ------------------------------------------------------------------------------
2438 systemd_reply_password_SOURCES = \
2439 src/reply-password/reply-password.c
2441 systemd_reply_password_LDADD = \
2442 libsystemd-shared.la
2444 # ------------------------------------------------------------------------------
2445 systemd_cgls_SOURCES = \
2448 systemd_cgls_LDADD = \
2449 libsystemd-internal.la \
2450 libsystemd-shared.la
2452 # ------------------------------------------------------------------------------
2453 systemd_cgtop_SOURCES = \
2456 systemd_cgtop_LDADD = \
2457 libsystemd-shared.la
2459 # ------------------------------------------------------------------------------
2460 systemd_nspawn_SOURCES = \
2461 src/nspawn/nspawn.c \
2462 src/core/mount-setup.c \
2463 src/core/mount-setup.h \
2464 src/core/loopback-setup.c \
2465 src/core/loopback-setup.h
2467 systemd_nspawn_CFLAGS = \
2472 systemd_nspawn_LDADD = \
2473 libsystemd-label.la \
2474 libsystemd-internal.la \
2475 libudev-internal.la \
2476 libsystemd-shared.la \
2480 systemd_nspawn_LDADD += \
2481 libsystemd-seccomp.la \
2485 # ------------------------------------------------------------------------------
2486 systemd_run_SOURCES = \
2489 systemd_run_LDADD = \
2490 libsystemd-label.la \
2491 libsystemd-internal.la \
2492 libsystemd-shared.la
2494 # ------------------------------------------------------------------------------
2495 systemd_bus_proxyd_SOURCES = \
2496 src/bus-proxyd/bus-proxyd.c \
2497 src/bus-proxyd/bus-policy.c \
2498 src/bus-proxyd/bus-policy.h
2500 systemd_bus_proxyd_LDADD = \
2501 libsystemd-internal.la \
2502 libsystemd-shared.la
2504 bus-proxyd-install-hook:
2505 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
2506 $(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2507 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
2509 bus-proxyd-uninstall-hook:
2510 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2512 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
2513 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
2516 nodist_systemunit_DATA += \
2517 units/systemd-bus-proxyd@.service
2519 dist_systemunit_DATA += \
2520 units/systemd-bus-proxyd.socket
2522 nodist_userunit_DATA += \
2523 units/user/systemd-bus-proxyd@.service
2525 dist_userunit_DATA += \
2526 units/user/systemd-bus-proxyd.socket
2530 units/systemd-bus-proxyd@.service.in \
2531 units/user/systemd-bus-proxyd@.service.in
2533 # ------------------------------------------------------------------------------
2534 systemd_tty_ask_password_agent_SOURCES = \
2535 src/tty-ask-password-agent/tty-ask-password-agent.c
2537 systemd_tty_ask_password_agent_LDADD = \
2538 libsystemd-label.la \
2539 libsystemd-shared.la
2541 # ------------------------------------------------------------------------------
2542 libsystemd_internal_la_SOURCES = \
2543 src/systemd/sd-bus.h \
2544 src/systemd/sd-bus-protocol.h \
2545 src/systemd/sd-bus-vtable.h \
2546 src/systemd/sd-utf8.h \
2547 src/systemd/sd-event.h \
2548 src/systemd/sd-rtnl.h \
2549 src/systemd/sd-resolve.h \
2550 src/systemd/sd-login.h \
2551 src/systemd/sd-id128.h \
2552 src/systemd/sd-daemon.h \
2553 src/systemd/sd-path.h \
2554 src/systemd/sd-network.h \
2555 src/libsystemd/sd-bus/sd-bus.c \
2556 src/libsystemd/sd-bus/bus-control.c \
2557 src/libsystemd/sd-bus/bus-control.h \
2558 src/libsystemd/sd-bus/bus-error.c \
2559 src/libsystemd/sd-bus/bus-error.h \
2560 src/libsystemd/sd-bus/bus-internal.c \
2561 src/libsystemd/sd-bus/bus-internal.h \
2562 src/libsystemd/sd-bus/bus-socket.c \
2563 src/libsystemd/sd-bus/bus-socket.h \
2564 src/libsystemd/sd-bus/bus-kernel.c \
2565 src/libsystemd/sd-bus/bus-kernel.h \
2566 src/libsystemd/sd-bus/bus-container.c \
2567 src/libsystemd/sd-bus/bus-container.h \
2568 src/libsystemd/sd-bus/bus-message.c \
2569 src/libsystemd/sd-bus/bus-message.h \
2570 src/libsystemd/sd-bus/bus-creds.c \
2571 src/libsystemd/sd-bus/bus-creds.h \
2572 src/libsystemd/sd-bus/bus-signature.c \
2573 src/libsystemd/sd-bus/bus-signature.h \
2574 src/libsystemd/sd-bus/bus-type.c \
2575 src/libsystemd/sd-bus/bus-type.h \
2576 src/libsystemd/sd-bus/bus-match.c \
2577 src/libsystemd/sd-bus/bus-match.h \
2578 src/libsystemd/sd-bus/bus-bloom.c \
2579 src/libsystemd/sd-bus/bus-bloom.h \
2580 src/libsystemd/sd-bus/bus-introspect.c \
2581 src/libsystemd/sd-bus/bus-introspect.h \
2582 src/libsystemd/sd-bus/bus-objects.c \
2583 src/libsystemd/sd-bus/bus-objects.h \
2584 src/libsystemd/sd-bus/bus-gvariant.c \
2585 src/libsystemd/sd-bus/bus-gvariant.h \
2586 src/libsystemd/sd-bus/bus-convenience.c \
2587 src/libsystemd/sd-bus/bus-track.c \
2588 src/libsystemd/sd-bus/bus-track.h \
2589 src/libsystemd/sd-bus/bus-util.c \
2590 src/libsystemd/sd-bus/bus-util.h \
2591 src/libsystemd/sd-bus/bus-slot.c \
2592 src/libsystemd/sd-bus/bus-slot.h \
2593 src/libsystemd/sd-bus/bus-protocol.h \
2594 src/libsystemd/sd-bus/kdbus.h \
2595 src/libsystemd/sd-utf8/sd-utf8.c \
2596 src/libsystemd/sd-event/sd-event.c \
2597 src/libsystemd/sd-event/event-util.h \
2598 src/libsystemd/sd-rtnl/sd-rtnl.c \
2599 src/libsystemd/sd-rtnl/rtnl-internal.h \
2600 src/libsystemd/sd-rtnl/rtnl-message.c \
2601 src/libsystemd/sd-rtnl/rtnl-types.h \
2602 src/libsystemd/sd-rtnl/rtnl-types.c \
2603 src/libsystemd/sd-rtnl/rtnl-util.h \
2604 src/libsystemd/sd-rtnl/rtnl-util.c \
2605 src/libsystemd/sd-rtnl/local-addresses.h \
2606 src/libsystemd/sd-rtnl/local-addresses.c \
2607 src/libsystemd/sd-id128/sd-id128.c \
2608 src/libsystemd/sd-daemon/sd-daemon.c \
2609 src/libsystemd/sd-login/sd-login.c \
2610 src/libsystemd/sd-path/sd-path.c \
2611 src/libsystemd/sd-network/sd-network.c \
2612 src/libsystemd/sd-network/network-util.h \
2613 src/libsystemd/sd-network/network-util.c
2615 nodist_libsystemd_internal_la_SOURCES = \
2616 src/libsystemd/libsystemd.sym
2618 libsystemd_internal_la_CFLAGS = \
2622 libsystemd_internal_la_LIBADD = \
2625 libsystemd_resolve_la_SOURCES = \
2626 src/libsystemd/sd-resolve/sd-resolve.c \
2627 src/libsystemd/sd-resolve/resolve-util.h
2629 libsystemd_resolve_la_CFLAGS = \
2633 libsystemd_resolve_la_LIBADD = \
2636 noinst_LTLIBRARIES += \
2637 libsystemd-internal.la \
2638 libsystemd-resolve.la
2640 libsystemd_dump_la_SOURCES = \
2641 src/libsystemd/sd-bus/bus-dump.c \
2642 src/libsystemd/sd-bus/bus-dump.h
2644 noinst_LTLIBRARIES += \
2648 src/libsystemd/libsystemd.sym.m4 \
2649 src/libsystemd/libsystemd.pc.in \
2650 src/libsystemd/sd-bus/DIFFERENCES \
2651 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2654 src/libsystemd/libsystemd.sym
2657 src/libsystemd/libsystemd.sym
2659 libsystemd_la_SOURCES = \
2660 $(libsystemd_internal_la_SOURCES) \
2661 $(libsystemd_resolve_la_SOURCES) \
2662 $(libsystemd_journal_internal_la_SOURCES)
2664 nodist_libsystemd_la_SOURCES = \
2665 $(nodist_libsystemd_internal_la_SOURCES)
2667 libsystemd_la_CFLAGS = \
2668 $(libsystemd_internal_la_CFLAGS) \
2669 $(libsystemd_resolve_la_CFLAGS) \
2670 $(libsystemd_journal_internal_la_CFLAGS)
2672 libsystemd_la_LDFLAGS = \
2674 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2675 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2677 libsystemd_la_LIBADD = \
2678 libsystemd-shared.la \
2679 $(libsystemd_internal_la_LIBADD) \
2680 $(libsystemd_journal_internal_la_LIBADD) \
2681 $(libsystemd_resolve_la_LIBADD)
2683 libsystemd-install-hook:
2684 libname=libsystemd.so && $(move-to-rootlibdir)
2686 libsystemd-uninstall-hook:
2687 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2689 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2690 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2692 pkgconfiglib_DATA += \
2693 src/libsystemd/libsystemd.pc
2695 pkginclude_HEADERS += \
2696 src/systemd/sd-login.h \
2697 src/systemd/sd-id128.h \
2698 src/systemd/sd-daemon.h
2701 pkginclude_HEADERS += \
2702 src/systemd/sd-bus.h \
2703 src/systemd/sd-bus-protocol.h \
2704 src/systemd/sd-bus-vtable.h \
2705 src/systemd/sd-utf8.h \
2706 src/systemd/sd-event.h \
2707 src/systemd/sd-rtnl.h \
2708 src/systemd/sd-resolve.h \
2709 src/systemd/sd-path.h
2712 lib_LTLIBRARIES += \
2717 test-bus-signature \
2723 test-bus-kernel-bloom \
2724 test-bus-kernel-benchmark \
2725 test-bus-zero-copy \
2726 test-bus-introspect \
2738 test_bus_marshal_SOURCES = \
2739 src/libsystemd/sd-bus/test-bus-marshal.c
2741 test_bus_marshal_LDADD = \
2742 libsystemd-dump.la \
2743 libsystemd-internal.la \
2744 libsystemd-shared.la \
2748 test_bus_marshal_CFLAGS = \
2753 test_bus_signature_SOURCES = \
2754 src/libsystemd/sd-bus/test-bus-signature.c
2756 test_bus_signature_LDADD = \
2757 libsystemd-shared.la \
2758 libsystemd-internal.la
2760 test_bus_chat_SOURCES = \
2761 src/libsystemd/sd-bus/test-bus-chat.c
2763 test_bus_chat_CFLAGS = \
2767 test_bus_chat_LDADD = \
2768 libsystemd-internal.la \
2769 libsystemd-shared.la
2771 test_bus_cleanup_SOURCES = \
2772 src/libsystemd/sd-bus/test-bus-cleanup.c
2774 test_bus_cleanup_CFLAGS = \
2778 test_bus_cleanup_LDADD = \
2779 libsystemd-internal.la \
2780 libsystemd-shared.la
2782 test_bus_server_SOURCES = \
2783 src/libsystemd/sd-bus/test-bus-server.c
2785 test_bus_server_CFLAGS = \
2789 test_bus_server_LDADD = \
2790 libsystemd-internal.la \
2791 libsystemd-shared.la
2793 test_bus_objects_SOURCES = \
2794 src/libsystemd/sd-bus/test-bus-objects.c
2796 test_bus_objects_CFLAGS = \
2800 test_bus_objects_LDADD = \
2801 libsystemd-dump.la \
2802 libsystemd-internal.la \
2803 libsystemd-shared.la
2805 test_bus_error_SOURCES = \
2806 src/libsystemd/sd-bus/test-bus-error.c
2808 test_bus_error_LDADD = \
2809 libsystemd-internal.la \
2810 libsystemd-shared.la
2812 test_bus_gvariant_SOURCES = \
2813 src/libsystemd/sd-bus/test-bus-gvariant.c
2815 test_bus_gvariant_LDADD = \
2816 libsystemd-dump.la \
2817 libsystemd-internal.la \
2818 libsystemd-shared.la \
2821 test_bus_gvariant_CFLAGS = \
2825 test_bus_creds_SOURCES = \
2826 src/libsystemd/sd-bus/test-bus-creds.c
2828 test_bus_creds_LDADD = \
2829 libsystemd-dump.la \
2830 libsystemd-internal.la \
2831 libsystemd-shared.la
2833 test_bus_match_SOURCES = \
2834 src/libsystemd/sd-bus/test-bus-match.c
2836 test_bus_match_LDADD = \
2837 libsystemd-internal.la \
2838 libsystemd-shared.la
2840 test_bus_kernel_SOURCES = \
2841 src/libsystemd/sd-bus/test-bus-kernel.c
2843 test_bus_kernel_LDADD = \
2844 libsystemd-dump.la \
2845 libsystemd-internal.la \
2846 libsystemd-shared.la
2848 test_bus_kernel_bloom_SOURCES = \
2849 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
2851 test_bus_kernel_bloom_LDADD = \
2852 libsystemd-internal.la \
2853 libsystemd-shared.la
2855 test_bus_kernel_benchmark_SOURCES = \
2856 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
2858 test_bus_kernel_benchmark_LDADD = \
2859 libsystemd-internal.la \
2860 libsystemd-shared.la
2862 test_bus_zero_copy_SOURCES = \
2863 src/libsystemd/sd-bus/test-bus-zero-copy.c
2865 test_bus_zero_copy_LDADD = \
2866 libsystemd-dump.la \
2867 libsystemd-internal.la \
2868 libsystemd-shared.la
2870 test_bus_introspect_SOURCES = \
2871 src/libsystemd/sd-bus/test-bus-introspect.c
2873 test_bus_introspect_LDADD = \
2874 libsystemd-internal.la \
2875 libsystemd-shared.la
2877 test_event_SOURCES = \
2878 src/libsystemd/sd-event/test-event.c
2880 test_event_LDADD = \
2881 libsystemd-internal.la \
2882 libsystemd-shared.la
2884 test_rtnl_SOURCES = \
2885 src/libsystemd/sd-rtnl/test-rtnl.c
2888 libsystemd-internal.la \
2889 libsystemd-shared.la
2891 test_resolve_SOURCES = \
2892 src/libsystemd/sd-resolve/test-resolve.c
2894 test_resolve_LDADD = \
2895 libsystemd-resolve.la \
2896 libsystemd-internal.la \
2897 libsystemd-shared.la
2899 test_resolve_CFLAGS = \
2904 src/libsystemd/sd-bus/busctl.c \
2905 src/libsystemd/sd-bus/busctl-introspect.c \
2906 src/libsystemd/sd-bus/busctl-introspect.h
2909 libsystemd-dump.la \
2910 libsystemd-internal.la \
2911 libsystemd-shared.la
2913 # ------------------------------------------------------------------------------
2914 noinst_LTLIBRARIES += \
2915 libsystemd-network.la
2917 libsystemd_network_la_CFLAGS = \
2921 libsystemd_network_la_SOURCES = \
2922 src/systemd/sd-dhcp-client.h \
2923 src/systemd/sd-dhcp-server.h \
2924 src/systemd/sd-dhcp-lease.h \
2925 src/systemd/sd-ipv4ll.h \
2926 src/systemd/sd-icmp6-nd.h \
2927 src/systemd/sd-dhcp6-client.h \
2928 src/systemd/sd-dhcp6-lease.h \
2929 src/systemd/sd-pppoe.h \
2930 src/libsystemd-network/sd-dhcp-client.c \
2931 src/libsystemd-network/sd-dhcp-server.c \
2932 src/libsystemd-network/dhcp-network.c \
2933 src/libsystemd-network/dhcp-option.c \
2934 src/libsystemd-network/dhcp-packet.c \
2935 src/libsystemd-network/dhcp-internal.h \
2936 src/libsystemd-network/dhcp-server-internal.h \
2937 src/libsystemd-network/dhcp-protocol.h \
2938 src/libsystemd-network/dhcp-lease-internal.h \
2939 src/libsystemd-network/sd-dhcp-lease.c \
2940 src/libsystemd-network/sd-ipv4ll.c \
2941 src/libsystemd-network/ipv4ll-network.c \
2942 src/libsystemd-network/ipv4ll-packet.c \
2943 src/libsystemd-network/ipv4ll-internal.h \
2944 src/libsystemd-network/sd-pppoe.c \
2945 src/libsystemd-network/network-internal.c \
2946 src/libsystemd-network/network-internal.h \
2947 src/libsystemd-network/sd-icmp6-nd.c \
2948 src/libsystemd-network/sd-dhcp6-client.c \
2949 src/libsystemd-network/dhcp6-internal.h \
2950 src/libsystemd-network/dhcp6-protocol.h \
2951 src/libsystemd-network/dhcp6-network.c \
2952 src/libsystemd-network/dhcp6-option.c \
2953 src/libsystemd-network/dhcp6-lease-internal.h \
2954 src/libsystemd-network/sd-dhcp6-lease.c
2956 libsystemd_network_la_LIBADD = \
2957 libudev-internal.la \
2958 libsystemd-label.la \
2959 libsystemd-internal.la \
2960 libsystemd-shared.la \
2963 test_dhcp_option_SOURCES = \
2964 src/libsystemd-network/dhcp-protocol.h \
2965 src/libsystemd-network/dhcp-internal.h \
2966 src/libsystemd-network/test-dhcp-option.c
2968 test_dhcp_option_LDADD = \
2969 libsystemd-network.la \
2970 libsystemd-internal.la \
2971 libsystemd-shared.la
2973 test_dhcp_client_SOURCES = \
2974 src/systemd/sd-dhcp-client.h \
2975 src/libsystemd-network/dhcp-protocol.h \
2976 src/libsystemd-network/dhcp-internal.h \
2977 src/libsystemd-network/test-dhcp-client.c
2979 test_dhcp_client_LDADD = \
2980 libsystemd-network.la \
2981 libsystemd-label.la \
2982 libsystemd-internal.la \
2983 libsystemd-shared.la
2985 test_dhcp_server_SOURCES = \
2986 src/libsystemd-network/test-dhcp-server.c
2988 test_dhcp_server_LDADD = \
2989 libsystemd-network.la \
2990 libsystemd-internal.la \
2991 libsystemd-shared.la
2993 test_ipv4ll_SOURCES = \
2994 src/systemd/sd-ipv4ll.h \
2995 src/libsystemd-network/ipv4ll-internal.h \
2996 src/libsystemd-network/test-ipv4ll.c
2998 test_ipv4ll_LDADD = \
2999 libsystemd-network.la \
3000 libsystemd-label.la \
3001 libsystemd-internal.la \
3002 libsystemd-shared.la
3004 test_pppoe_SOURCES = \
3005 src/systemd/sd-pppoe.h \
3006 src/libsystemd-network/test-pppoe.c
3008 test_pppoe_LDADD = \
3009 libsystemd-network.la \
3010 libsystemd-shared.la
3012 test_icmp6_rs_SOURCES = \
3013 src/systemd/sd-dhcp6-client.h \
3014 src/systemd/sd-icmp6-nd.h \
3015 src/libsystemd-network/dhcp6-internal.h \
3016 src/libsystemd-network/test-icmp6-rs.c
3018 test_icmp6_rs_LDADD = \
3019 libsystemd-network.la \
3020 libsystemd-internal.la \
3021 libsystemd-shared.la
3023 test_dhcp6_client_SOURCES = \
3024 src/systemd/sd-dhcp6-client.h \
3025 src/libsystemd-network/dhcp6-internal.h \
3026 src/libsystemd-network/test-dhcp6-client.c
3028 test_dhcp6_client_LDADD = \
3029 libsystemd-network.la \
3030 libsystemd-internal.la \
3031 libsystemd-shared.la
3044 # ------------------------------------------------------------------------------
3046 noinst_LTLIBRARIES += \
3047 libsystemd-terminal.la
3049 rootlibexec_PROGRAMS += \
3052 noinst_PROGRAMS += \
3057 dist_pkgdata_DATA += \
3058 src/libsystemd-terminal/unifont-glyph-array.bin
3060 nodist_userunit_DATA += \
3061 units/user/systemd-consoled.service
3063 USER_DEFAULT_TARGET_WANTS += \
3064 systemd-consoled.service
3067 units/user/systemd-consoled.service.in
3075 libsystemd_terminal_la_CFLAGS = \
3079 libsystemd_terminal_la_SOURCES = \
3080 src/libsystemd-terminal/grdev.h \
3081 src/libsystemd-terminal/grdev-internal.h \
3082 src/libsystemd-terminal/grdev.c \
3083 src/libsystemd-terminal/grdev-drm.c \
3084 src/libsystemd-terminal/idev.h \
3085 src/libsystemd-terminal/idev-internal.h \
3086 src/libsystemd-terminal/idev.c \
3087 src/libsystemd-terminal/idev-evdev.c \
3088 src/libsystemd-terminal/idev-keyboard.c \
3089 src/libsystemd-terminal/sysview.h \
3090 src/libsystemd-terminal/sysview-internal.h \
3091 src/libsystemd-terminal/sysview.c \
3092 src/libsystemd-terminal/term.h \
3093 src/libsystemd-terminal/term-internal.h \
3094 src/libsystemd-terminal/term-charset.c \
3095 src/libsystemd-terminal/term-page.c \
3096 src/libsystemd-terminal/term-parser.c \
3097 src/libsystemd-terminal/term-screen.c \
3098 src/libsystemd-terminal/term-wcwidth.c \
3099 src/libsystemd-terminal/unifont.h \
3100 src/libsystemd-terminal/unifont-def.h \
3101 src/libsystemd-terminal/unifont.c
3103 libsystemd_terminal_la_LIBADD = \
3104 libudev-internal.la \
3105 libsystemd-internal.la \
3106 libsystemd-shared.la \
3109 systemd_consoled_CFLAGS = \
3113 systemd_consoled_SOURCES = \
3114 src/console/consoled.h \
3115 src/console/consoled.c \
3116 src/console/consoled-display.c \
3117 src/console/consoled-manager.c \
3118 src/console/consoled-session.c \
3119 src/console/consoled-terminal.c \
3120 src/console/consoled-workspace.c
3122 systemd_consoled_LDADD = \
3123 libsystemd-terminal.la \
3124 libsystemd-internal.la \
3125 libsystemd-shared.la \
3128 systemd_evcat_CFLAGS = \
3132 systemd_evcat_SOURCES = \
3133 src/libsystemd-terminal/evcat.c
3135 systemd_evcat_LDADD = \
3136 libsystemd-terminal.la \
3137 libsystemd-internal.la \
3138 libsystemd-shared.la \
3141 systemd_modeset_CFLAGS = \
3145 systemd_modeset_SOURCES = \
3146 src/libsystemd-terminal/modeset.c
3148 systemd_modeset_LDADD = \
3149 libsystemd-terminal.la \
3150 libsystemd-internal.la \
3151 libsystemd-shared.la \
3154 systemd_subterm_SOURCES = \
3155 src/libsystemd-terminal/subterm.c
3157 systemd_subterm_LDADD = \
3158 libsystemd-terminal.la \
3159 libsystemd-internal.la \
3160 libsystemd-shared.la
3162 test_term_page_SOURCES = \
3163 src/libsystemd-terminal/test-term-page.c
3165 test_term_page_LDADD = \
3166 libsystemd-terminal.la \
3167 libsystemd-internal.la \
3168 libsystemd-shared.la
3170 test_term_parser_SOURCES = \
3171 src/libsystemd-terminal/test-term-parser.c
3173 test_term_parser_LDADD = \
3174 libsystemd-terminal.la \
3175 libsystemd-internal.la \
3176 libsystemd-shared.la
3178 test_unifont_SOURCES = \
3179 src/libsystemd-terminal/test-unifont.c
3181 test_unifont_LDADD = \
3182 libsystemd-terminal.la \
3183 libsystemd-internal.la \
3184 libsystemd-shared.la
3186 .PHONY: update-unifont
3187 update-unifont: tools/compile-unifont.py
3188 $(AM_V_GEN)$(PYTHON) $< \
3189 <$(top_srcdir)/src/libsystemd-terminal/unifont.hex \
3190 >$(top_srcdir)/src/libsystemd-terminal/unifont-glyph-array.bin
3191 @echo "unifont-glyph-array.bin has been regenerated"
3193 # ------------------------------------------------------------------------------
3203 include_HEADERS += \
3204 src/libudev/libudev.h
3206 lib_LTLIBRARIES += \
3209 libudev_la_SOURCES =\
3210 src/libudev/libudev.sym \
3211 src/libudev/libudev-private.h \
3212 src/libudev/libudev.c \
3213 src/libudev/libudev-list.c \
3214 src/libudev/libudev-util.c \
3215 src/libudev/libudev-device.c \
3216 src/libudev/libudev-enumerate.c \
3217 src/libudev/libudev-monitor.c \
3218 src/libudev/libudev-queue.c \
3219 src/libudev/libudev-hwdb-def.h \
3220 src/libudev/libudev-hwdb.c
3222 libudev_la_CFLAGS = \
3226 libudev_la_LDFLAGS = \
3228 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3229 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3231 libudev_la_LIBADD = \
3232 libsystemd-internal.la \
3233 libsystemd-shared.la
3235 pkgconfiglib_DATA += \
3236 src/libudev/libudev.pc
3239 src/libudev/libudev.pc.in
3242 src/libudev/libudev.pc \
3247 $(AM_V_at)$(MKDIR_P) $(dir $@)
3248 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
3251 $(AM_V_at)$(MKDIR_P) $(dir $@)
3252 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
3254 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3255 libudev-install-hook:
3256 libname=libudev.so && $(move-to-rootlibdir)
3258 libudev-uninstall-hook:
3259 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3261 INSTALL_EXEC_HOOKS += libudev-install-hook
3262 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3264 # ------------------------------------------------------------------------------
3265 noinst_LTLIBRARIES += \
3268 libudev_internal_la_SOURCES =\
3269 $(libudev_la_SOURCES) \
3270 src/libudev/libudev-device-private.c
3272 libudev_internal_la_CFLAGS = \
3274 -fvisibility=default
3276 # ------------------------------------------------------------------------------
3278 $(sysconfdir)/udev/rules.d \
3279 $(sysconfdir)/udev/hwdb.d
3281 dist_network_DATA = \
3282 network/99-default.link \
3283 network/80-container-host0.network \
3284 network/80-container-ve.network
3286 dist_udevrules_DATA += \
3287 rules/42-usb-hid-pm.rules \
3288 rules/50-udev-default.rules \
3289 rules/60-drm.rules \
3290 rules/60-keyboard.rules \
3291 rules/60-persistent-storage-tape.rules \
3292 rules/60-persistent-serial.rules \
3293 rules/60-persistent-input.rules \
3294 rules/60-persistent-alsa.rules \
3295 rules/60-persistent-storage.rules \
3296 rules/64-btrfs.rules \
3297 rules/75-net-description.rules \
3298 rules/75-tty-description.rules \
3299 rules/78-sound-card.rules \
3300 rules/80-net-setup-link.rules \
3301 rules/95-udev-late.rules
3303 nodist_udevrules_DATA += \
3304 rules/99-systemd.rules
3306 dist_udevhwdb_DATA = \
3307 hwdb/20-pci-vendor-model.hwdb \
3308 hwdb/20-pci-classes.hwdb \
3309 hwdb/20-usb-vendor-model.hwdb \
3310 hwdb/20-usb-classes.hwdb \
3311 hwdb/20-sdio-vendor-model.hwdb \
3312 hwdb/20-sdio-classes.hwdb \
3313 hwdb/20-bluetooth-vendor-product.hwdb \
3314 hwdb/20-acpi-vendor.hwdb \
3316 hwdb/20-net-ifname.hwdb \
3317 hwdb/60-keyboard.hwdb
3319 udevconfdir = $(sysconfdir)/udev
3320 dist_udevconf_DATA = \
3323 sharepkgconfigdir = $(datadir)/pkgconfig
3324 sharepkgconfig_DATA = \
3328 rules/99-systemd.rules.in \
3332 rules/99-systemd.rules \
3336 units/systemd-udevd.service.in \
3337 units/systemd-udev-trigger.service.in \
3338 units/systemd-udev-settle.service.in \
3339 units/systemd-udev-hwdb-update.service.in
3342 units/systemd-udevd.service \
3343 units/systemd-udev-trigger.service \
3344 units/systemd-udev-settle.service \
3345 units/systemd-udev-hwdb-update.service
3347 SOCKETS_TARGET_WANTS += \
3348 systemd-udevd-control.socket \
3349 systemd-udevd-kernel.socket
3351 SYSINIT_TARGET_WANTS += \
3352 systemd-udevd.service \
3353 systemd-udev-trigger.service \
3354 systemd-udev-hwdb-update.service
3356 rootbin_PROGRAMS += \
3359 rootlibexec_PROGRAMS += \
3362 noinst_LTLIBRARIES += \
3365 src/udev/keyboard-keys.txt:
3366 $(AM_V_at)$(MKDIR_P) $(dir $@)
3367 $(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/' > $@
3369 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
3370 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3372 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3373 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3375 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
3376 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
3378 libudev_core_la_SOURCES = \
3380 src/udev/udev-event.c \
3381 src/udev/udev-watch.c \
3382 src/udev/udev-node.c \
3383 src/udev/udev-rules.c \
3384 src/udev/udev-ctrl.c \
3385 src/udev/udev-builtin.c \
3386 src/udev/udev-builtin-btrfs.c \
3387 src/udev/udev-builtin-hwdb.c \
3388 src/udev/udev-builtin-input_id.c \
3389 src/udev/udev-builtin-keyboard.c \
3390 src/udev/udev-builtin-net_id.c \
3391 src/udev/udev-builtin-net_setup_link.c \
3392 src/udev/udev-builtin-path_id.c \
3393 src/udev/udev-builtin-usb_id.c \
3394 src/udev/net/link-config.h \
3395 src/udev/net/link-config.c \
3396 src/udev/net/ethtool-util.h \
3397 src/udev/net/ethtool-util.c
3399 nodist_libudev_core_la_SOURCES = \
3400 src/udev/keyboard-keys-from-name.h \
3401 src/udev/keyboard-keys-to-name.h \
3402 src/udev/net/link-config-gperf.c
3405 $(nodist_libudev_core_la_SOURCES)
3408 src/udev/keyboard-keys-from-name.gperf \
3409 src/udev/keyboard-keys.txt \
3410 src/udev/net/link-config-gperf.c
3413 src/udev/net/link-config-gperf.gperf
3415 libudev_core_la_CFLAGS = \
3420 libudev_core_la_LIBADD = \
3421 libudev-internal.la \
3422 libsystemd-label.la \
3423 libsystemd-internal.la \
3424 libsystemd-network.la \
3425 libsystemd-shared.la \
3430 libudev_core_la_SOURCES += \
3431 src/udev/udev-builtin-kmod.c
3433 dist_udevrules_DATA += \
3434 rules/80-drivers.rules
3438 libudev_core_la_SOURCES += \
3439 src/udev/udev-builtin-blkid.c
3443 libudev_core_la_SOURCES += \
3444 src/udev/udev-builtin-uaccess.c \
3445 src/login/logind-acl.c \
3446 src/libsystemd/sd-login/sd-login.c \
3447 src/systemd/sd-login.h
3449 libudev_core_la_LIBADD += \
3453 systemd_udevd_SOURCES = \
3456 systemd_udevd_LDADD = \
3460 src/udev/udevadm.c \
3461 src/udev/udevadm-info.c \
3462 src/udev/udevadm-control.c \
3463 src/udev/udevadm-monitor.c \
3464 src/udev/udevadm-hwdb.c \
3465 src/udev/udevadm-settle.c \
3466 src/udev/udevadm-trigger.c \
3467 src/udev/udevadm-test.c \
3468 src/udev/udevadm-test-builtin.c \
3469 src/udev/udevadm-util.c \
3470 src/udev/udevadm-util.h
3475 # Update hwdb on installation. Do not bother if installing
3476 # in DESTDIR, since this is likely for packaging purposes.
3478 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
3480 INSTALL_DATA_HOOKS += \
3484 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3486 # ------------------------------------------------------------------------------
3495 test_libudev_SOURCES = \
3496 src/test/test-libudev.c
3498 test_libudev_LDADD = \
3499 libsystemd-label.la \
3500 libudev-internal.la \
3501 libsystemd-shared.la
3503 test_udev_SOURCES = \
3504 src/test/test-udev.c
3513 test_udev_LDADD += \
3520 # packed sysfs test tree
3522 $(AM_V_at)$(MKDIR_P) $(dir $@)
3523 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3527 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3532 test/rules-test.sh \
3533 test/rule-syntax-check.py
3535 # ------------------------------------------------------------------------------
3537 src/udev/ata_id/ata_id.c
3540 libudev-internal.la \
3541 libsystemd-shared.la
3543 udevlibexec_PROGRAMS += \
3546 # ------------------------------------------------------------------------------
3547 cdrom_id_SOURCES = \
3548 src/udev/cdrom_id/cdrom_id.c
3551 libudev-internal.la \
3552 libsystemd-shared.la
3554 udevlibexec_PROGRAMS += \
3557 dist_udevrules_DATA += \
3558 rules/60-cdrom_id.rules
3560 # ------------------------------------------------------------------------------
3562 src/udev/collect/collect.c
3565 libudev-internal.la \
3566 libsystemd-shared.la
3568 udevlibexec_PROGRAMS += \
3571 # ------------------------------------------------------------------------------
3573 src/udev/scsi_id/scsi_id.c \
3574 src/udev/scsi_id/scsi_serial.c \
3575 src/udev/scsi_id/scsi.h \
3576 src/udev/scsi_id/scsi_id.h
3579 libudev-internal.la \
3580 libsystemd-shared.la
3582 udevlibexec_PROGRAMS += \
3586 src/udev/scsi_id/README
3588 # ------------------------------------------------------------------------------
3590 src/udev/v4l_id/v4l_id.c
3595 udevlibexec_PROGRAMS += \
3598 dist_udevrules_DATA += \
3599 rules/60-persistent-v4l.rules
3601 # ------------------------------------------------------------------------------
3602 accelerometer_SOURCES = \
3603 src/udev/accelerometer/accelerometer.c
3605 accelerometer_LDADD = \
3606 libudev-internal.la -lm \
3607 libsystemd-shared.la
3609 udevlibexec_PROGRAMS += \
3612 dist_udevrules_DATA += \
3613 rules/61-accelerometer.rules
3615 # ------------------------------------------------------------------------------
3622 libgudev_includedir = \
3623 $(includedir)/gudev-1.0/gudev
3625 libgudev_include_HEADERS = \
3627 src/gudev/gudevenums.h \
3628 src/gudev/gudevenumtypes.h \
3629 src/gudev/gudevtypes.h \
3630 src/gudev/gudevclient.h \
3631 src/gudev/gudevdevice.h \
3632 src/gudev/gudevenumerator.h
3634 lib_LTLIBRARIES += libgudev-1.0.la
3636 pkgconfiglib_DATA += \
3637 src/gudev/gudev-1.0.pc
3640 src/gudev/gudev-1.0.pc
3642 libgudev_1_0_la_SOURCES = \
3643 src/gudev/libgudev-1.0.sym \
3644 src/gudev/gudevenums.h \
3645 src/gudev/gudevenumtypes.h \
3646 src/gudev/gudevenumtypes.h\
3647 src/gudev/gudevtypes.h \
3648 src/gudev/gudevclient.h \
3649 src/gudev/gudevclient.c \
3650 src/gudev/gudevdevice.h \
3651 src/gudev/gudevdevice.c \
3652 src/gudev/gudevenumerator.h \
3653 src/gudev/gudevenumerator.c \
3654 src/gudev/gudevprivate.h
3656 nodist_libgudev_1_0_la_SOURCES = \
3657 src/gudev/gudevmarshal.h \
3658 src/gudev/gudevmarshal.c \
3659 src/gudev/gudevenumtypes.h \
3660 src/gudev/gudevenumtypes.c
3663 $(nodist_libgudev_1_0_la_SOURCES)
3665 libgudev_1_0_la_CPPFLAGS = \
3667 -I$(top_builddir)/src\
3668 -I$(top_srcdir)/src\
3669 -I$(top_builddir)/src/gudev \
3670 -I$(top_srcdir)/src/gudev \
3671 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3672 -D_GUDEV_COMPILATION \
3673 -DG_LOG_DOMAIN=\"GUdev\"
3675 libgudev_1_0_la_CFLAGS = \
3677 -fvisibility=default \
3680 libgudev_1_0_la_LIBADD = \
3684 libgudev_1_0_la_LDFLAGS = \
3686 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3689 -Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym
3691 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3692 $(AM_V_at)$(MKDIR_P) $(dir $@)
3693 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3695 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3696 $(AM_V_at)$(MKDIR_P) $(dir $@)
3697 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3698 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3700 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3701 $(AM_V_at)$(MKDIR_P) $(dir $@)
3702 $(AM_V_GEN)glib-mkenums --template $^ > $@
3704 if HAVE_INTROSPECTION
3705 -include $(INTROSPECTION_MAKEFILE)
3707 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3709 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3711 src_gudev_GUdev_1_0_gir_CFLAGS = \
3714 -D_GUDEV_COMPILATION \
3715 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3716 -I$(top_srcdir)/src \
3717 -I$(top_builddir)/src \
3718 -I$(top_srcdir)/src/gudev \
3719 -I$(top_builddir)/src/gudev
3721 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
3723 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
3724 --pkg-export=gudev-1.0 \
3727 src_gudev_GUdev_1_0_gir_FILES = \
3729 src/gudev/gudevtypes.h \
3730 src/gudev/gudevenums.h \
3731 src/gudev/gudevenumtypes.h \
3732 src/gudev/gudevclient.h \
3733 src/gudev/gudevdevice.h \
3734 src/gudev/gudevenumerator.h \
3735 src/gudev/gudevclient.c \
3736 src/gudev/gudevdevice.c \
3737 src/gudev/gudevenumerator.c
3739 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
3740 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
3742 girdir = $(datadir)/gir-1.0
3744 src/gudev/GUdev-1.0.gir
3746 typelibsdir = $(libdir)/girepository-1.0
3748 src/gudev/GUdev-1.0.typelib
3750 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
3751 endif # HAVE_INTROSPECTION
3755 src/gudev/gudev-1.0.pc.in \
3756 src/gudev/gudevmarshal.list \
3757 src/gudev/gudevenumtypes.h.template \
3758 src/gudev/gudevenumtypes.c.template \
3759 src/gudev/gjs-example.js \
3760 src/gudev/seed-example-enum.js \
3761 src/gudev/seed-example.js
3763 # ------------------------------------------------------------------------------
3764 mtd_probe_SOURCES = \
3765 src/udev/mtd_probe/mtd_probe.c \
3766 src/udev/mtd_probe/mtd_probe.h \
3767 src/udev/mtd_probe/probe_smartmedia.c
3769 dist_udevrules_DATA += \
3770 rules/75-probe_mtd.rules
3772 udevlibexec_PROGRAMS += \
3775 # ------------------------------------------------------------------------------
3776 test_id128_SOURCES = \
3777 src/test/test-id128.c
3779 test_id128_LDADD = \
3780 libsystemd-internal.la \
3781 libsystemd-shared.la
3786 # ------------------------------------------------------------------------------
3788 rootlibexec_PROGRAMS += \
3791 systemd_activate_SOURCES = \
3792 src/activate/activate.c
3794 systemd_activate_LDADD = \
3795 libsystemd-label.la \
3796 libsystemd-internal.la \
3797 libsystemd-shared.la
3799 # ------------------------------------------------------------------------------
3800 systemd_journald_SOURCES = \
3801 src/journal/journald.c \
3802 src/journal/journald-server.h
3804 systemd_journald_LDADD = \
3805 libsystemd-journal-core.la \
3806 libsystemd-internal.la \
3807 libsystemd-shared.la
3809 systemd_cat_SOURCES = \
3812 systemd_cat_LDADD = \
3813 libsystemd-journal-core.la
3816 rootlibexec_PROGRAMS += \
3817 systemd-journal-remote
3819 systemd_journal_remote_SOURCES = \
3820 src/journal-remote/journal-remote-parse.h \
3821 src/journal-remote/journal-remote-parse.c \
3822 src/journal-remote/journal-remote-write.h \
3823 src/journal-remote/journal-remote-write.c \
3824 src/journal-remote/journal-remote.h \
3825 src/journal-remote/journal-remote.c
3827 systemd_journal_remote_LDADD = \
3828 libsystemd-internal.la \
3829 libsystemd-journal-core.la
3831 systemd_journal_remote_SOURCES += \
3832 src/journal-remote/microhttpd-util.h \
3833 src/journal-remote/microhttpd-util.c
3835 systemd_journal_remote_CFLAGS = \
3837 $(MICROHTTPD_CFLAGS)
3839 systemd_journal_remote_LDADD += \
3843 systemd_journal_remote_LDADD += \
3846 # systemd-journal-remote make sense mostly with full crypto stack
3847 dist_systemunit_DATA += \
3848 units/systemd-journal-remote.socket
3850 nodist_systemunit_DATA += \
3851 units/systemd-journal-remote.service
3854 units/systemd-journal-remote.service.in
3856 journal-remote-install-hook: journal-install-hook
3857 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
3858 -chown 0:0 $(DESTDIR)/var/log/journal/remote
3859 -chmod 755 $(DESTDIR)/var/log/journal/remote
3861 INSTALL_EXEC_HOOKS += journal-remote-install-hook
3865 nodist_pkgsysconf_DATA += \
3866 src/journal-remote/journal-remote.conf
3869 src/journal-remote/journal-remote.conf.in
3872 src/journal-remote/journal-remote.conf
3876 rootlibexec_PROGRAMS += \
3877 systemd-journal-upload
3879 systemd_journal_upload_SOURCES = \
3880 src/journal-remote/journal-upload.h \
3881 src/journal-remote/journal-upload.c \
3882 src/journal-remote/journal-upload-journal.c
3884 systemd_journal_upload_CFLAGS = \
3888 systemd_journal_upload_LDADD = \
3889 libsystemd-internal.la \
3890 libsystemd-journal-internal.la \
3891 libsystemd-shared.la \
3894 nodist_systemunit_DATA += \
3895 units/systemd-journal-upload.service
3898 units/systemd-journal-upload.service.in
3900 nodist_pkgsysconf_DATA += \
3901 src/journal-remote/journal-upload.conf
3904 src/journal-remote/journal-upload.conf.in
3907 src/journal-remote/journal-upload.conf
3910 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3911 journalctl_CFLAGS = \
3914 journalctl_SOURCES = \
3915 src/journal/journalctl.c
3917 journalctl_LDADD = \
3918 libsystemd-journal-internal.la \
3919 libsystemd-internal.la \
3920 libsystemd-logs.la \
3921 libsystemd-shared.la
3924 journalctl_LDADD += \
3929 journalctl_SOURCES += \
3930 src/journal/journal-qrcode.c \
3931 src/journal/journal-qrcode.h
3933 journalctl_CFLAGS += \
3936 journalctl_LDADD += \
3940 test_journal_SOURCES = \
3941 src/journal/test-journal.c
3943 test_journal_LDADD = \
3944 libsystemd-journal-core.la
3946 test_journal_send_SOURCES = \
3947 src/journal/test-journal-send.c
3949 test_journal_send_LDADD = \
3950 libsystemd-journal-core.la
3952 test_journal_syslog_SOURCES = \
3953 src/journal/test-journal-syslog.c
3955 test_journal_syslog_LDADD = \
3956 libsystemd-journal-core.la
3958 test_journal_match_SOURCES = \
3959 src/journal/test-journal-match.c
3961 test_journal_match_LDADD = \
3962 libsystemd-journal-core.la
3964 test_journal_enum_SOURCES = \
3965 src/journal/test-journal-enum.c
3967 test_journal_enum_LDADD = \
3968 libsystemd-journal-core.la
3970 test_journal_stream_SOURCES = \
3971 src/journal/test-journal-stream.c
3973 test_journal_stream_LDADD = \
3974 libsystemd-journal-core.la
3976 test_journal_flush_SOURCES = \
3977 src/journal/test-journal-flush.c
3979 test_journal_flush_LDADD = \
3980 libsystemd-journal-core.la
3982 test_journal_init_SOURCES = \
3983 src/journal/test-journal-init.c
3985 test_journal_init_LDADD = \
3986 libsystemd-journal-core.la
3988 test_journal_verify_SOURCES = \
3989 src/journal/test-journal-verify.c
3991 test_journal_verify_LDADD = \
3992 libsystemd-journal-core.la
3994 test_journal_interleaving_SOURCES = \
3995 src/journal/test-journal-interleaving.c
3997 test_journal_interleaving_LDADD = \
3998 libsystemd-journal-core.la
4000 test_mmap_cache_SOURCES = \
4001 src/journal/test-mmap-cache.c
4003 test_mmap_cache_LDADD = \
4004 libsystemd-journal-core.la
4006 test_catalog_SOURCES = \
4007 src/journal/test-catalog.c
4009 test_catalog_CPPFLAGS = \
4011 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
4013 test_catalog_LDADD = \
4014 libsystemd-journal-core.la
4016 test_compress_SOURCES = \
4017 src/journal/test-compress.c
4019 test_compress_LDADD = \
4020 libsystemd-journal-internal.la \
4021 libsystemd-shared.la
4023 test_compress_benchmark_SOURCES = \
4024 src/journal/test-compress-benchmark.c
4026 test_compress_benchmark_LDADD = \
4027 libsystemd-journal-internal.la \
4028 libsystemd-shared.la
4030 libsystemd_journal_core_la_SOURCES = \
4031 src/journal/journald-kmsg.c \
4032 src/journal/journald-kmsg.h \
4033 src/journal/journald-syslog.c \
4034 src/journal/journald-syslog.h \
4035 src/journal/journald-stream.c \
4036 src/journal/journald-stream.h \
4037 src/journal/journald-server.c \
4038 src/journal/journald-server.h \
4039 src/journal/journald-console.c \
4040 src/journal/journald-console.h \
4041 src/journal/journald-wall.c \
4042 src/journal/journald-wall.h \
4043 src/journal/journald-native.c \
4044 src/journal/journald-native.h \
4045 src/journal/journald-audit.c \
4046 src/journal/journald-audit.h \
4047 src/journal/journald-rate-limit.c \
4048 src/journal/journald-rate-limit.h \
4049 src/journal/journal-internal.h
4051 nodist_libsystemd_journal_core_la_SOURCES = \
4052 src/journal/journald-gperf.c
4054 libsystemd_journal_core_la_LIBADD = \
4055 libsystemd-journal-internal.la \
4056 libudev-internal.la \
4057 libsystemd-label.la \
4058 libsystemd-internal.la \
4059 libsystemd-shared.la
4062 libsystemd_journal_core_la_LIBADD += \
4066 noinst_LTLIBRARIES += \
4067 libsystemd-journal-core.la
4069 journal-install-hook:
4070 -$(MKDIR_P) $(DESTDIR)/var/log/journal
4071 -chown 0:0 $(DESTDIR)/var/log/journal
4072 -chmod 755 $(DESTDIR)/var/log/journal
4073 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4074 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4076 journal-uninstall-hook:
4077 -rmdir $(DESTDIR)/var/log/journal/remote
4078 -rmdir $(DESTDIR)/var/log/journal/
4080 INSTALL_EXEC_HOOKS += journal-install-hook
4081 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4083 # ------------------------------------------------------------------------------
4084 # Update catalog on installation. Do not bother if installing
4085 # in DESTDIR, since this is likely for packaging purposes.
4086 catalog-update-hook:
4087 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4089 INSTALL_DATA_HOOKS += \
4092 catalog-remove-hook:
4093 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4095 UNINSTALL_DATA_HOOKS += \
4104 test-journal-syslog \
4105 test-journal-match \
4106 test-journal-stream \
4108 test-journal-verify \
4109 test-journal-interleaving \
4110 test-journal-flush \
4117 test-compress-benchmark
4120 pkginclude_HEADERS += \
4121 src/systemd/sd-journal.h \
4122 src/systemd/sd-messages.h \
4123 src/systemd/_sd-common.h
4125 libsystemd_journal_internal_la_SOURCES = \
4126 src/journal/sd-journal.c \
4127 src/systemd/sd-journal.h \
4128 src/systemd/_sd-common.h \
4129 src/journal/journal-file.c \
4130 src/journal/journal-file.h \
4131 src/journal/journal-vacuum.c \
4132 src/journal/journal-vacuum.h \
4133 src/journal/journal-verify.c \
4134 src/journal/journal-verify.h \
4135 src/journal/lookup3.c \
4136 src/journal/lookup3.h \
4137 src/journal/journal-send.c \
4138 src/journal/journal-def.h \
4139 src/journal/compress.h \
4140 src/journal/catalog.c \
4141 src/journal/catalog.h \
4142 src/journal/mmap-cache.c \
4143 src/journal/mmap-cache.h
4145 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4146 libsystemd_journal_internal_la_CFLAGS = \
4149 libsystemd_journal_internal_la_LIBADD =
4151 libsystemd_journal_internal_la_SOURCES += \
4152 src/journal/compress.c
4155 libsystemd_journal_internal_la_CFLAGS += \
4158 libsystemd_journal_internal_la_LIBADD += \
4163 libsystemd_journal_internal_la_LIBADD += \
4168 libsystemd_journal_internal_la_SOURCES += \
4169 src/journal/journal-authenticate.c \
4170 src/journal/journal-authenticate.h \
4171 src/journal/fsprg.c \
4174 libsystemd_journal_internal_la_LIBADD += \
4177 # fsprg.c is a drop-in file using void pointer arithmetic
4178 libsystemd_journal_internal_la_CFLAGS += \
4183 noinst_LTLIBRARIES += \
4184 libsystemd-journal-internal.la
4186 rootlibexec_PROGRAMS += \
4189 rootbin_PROGRAMS += \
4195 dist_systemunit_DATA += \
4196 units/systemd-journald.socket \
4197 units/systemd-journald-dev-log.socket \
4198 units/systemd-journald-audit.socket
4200 nodist_systemunit_DATA += \
4201 units/systemd-journald.service \
4202 units/systemd-journal-flush.service \
4203 units/systemd-journal-catalog-update.service
4205 dist_pkgsysconf_DATA += \
4206 src/journal/journald.conf
4208 dist_catalog_DATA = \
4209 catalog/systemd.fr.catalog \
4210 catalog/systemd.it.catalog \
4211 catalog/systemd.pl.catalog \
4212 catalog/systemd.ru.catalog \
4213 catalog/systemd.catalog
4215 SOCKETS_TARGET_WANTS += \
4216 systemd-journald.socket \
4217 systemd-journald-dev-log.socket \
4218 systemd-journald-audit.socket
4220 SYSINIT_TARGET_WANTS += \
4221 systemd-journald.service \
4222 systemd-journal-flush.service \
4223 systemd-journal-catalog-update.service
4226 units/systemd-journald.service.in \
4227 units/systemd-journal-flush.service.in \
4228 units/systemd-journal-catalog-update.service.in \
4229 src/journal/journald-gperf.gperf
4232 src/journal/journald-gperf.c
4234 # ------------------------------------------------------------------------------
4236 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4238 rootlibexec_PROGRAMS += \
4239 systemd-journal-gatewayd
4241 systemd_journal_gatewayd_SOURCES = \
4242 src/journal-remote/journal-gatewayd.c \
4243 src/journal-remote/microhttpd-util.h \
4244 src/journal-remote/microhttpd-util.c
4246 systemd_journal_gatewayd_LDADD = \
4247 libsystemd-logs.la \
4248 libsystemd-journal-internal.la \
4249 libsystemd-internal.la \
4250 libsystemd-shared.la \
4254 systemd_journal_gatewayd_LDADD += \
4258 systemd_journal_gatewayd_CFLAGS = \
4260 $(MICROHTTPD_CFLAGS)
4262 systemd_journal_gatewayd_CPPFLAGS = \
4264 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4266 dist_systemunit_DATA += \
4267 units/systemd-journal-gatewayd.socket
4269 nodist_systemunit_DATA += \
4270 units/systemd-journal-gatewayd.service
4272 dist_gatewayddocumentroot_DATA = \
4273 src/journal-remote/browse.html
4278 units/systemd-journal-gatewayd.service.in
4280 # ------------------------------------------------------------------------------
4282 systemd_socket_proxyd_SOURCES = \
4283 src/socket-proxy/socket-proxyd.c
4285 systemd_socket_proxyd_LDADD = \
4286 libsystemd-logs.la \
4287 libsystemd-internal.la \
4288 libsystemd-journal-internal.la \
4289 libsystemd-shared.la \
4290 libsystemd-resolve.la
4292 # ------------------------------------------------------------------------------
4294 systemd_coredump_SOURCES = \
4295 src/journal/coredump.c \
4296 src/journal/coredump-vacuum.c \
4297 src/journal/coredump-vacuum.h
4299 systemd_coredump_LDADD = \
4300 libsystemd-journal-internal.la \
4301 libsystemd-label.la \
4302 libsystemd-internal.la \
4303 libsystemd-shared.la
4306 systemd_coredump_SOURCES += \
4307 src/journal/stacktrace.c \
4308 src/journal/stacktrace.h
4310 systemd_coredump_LDADD += \
4314 rootlibexec_PROGRAMS += \
4317 dist_pkgsysconf_DATA += \
4318 src/journal/coredump.conf
4321 systemd_coredump_LDADD += \
4325 coredumpctl_SOURCES = \
4326 src/journal/coredumpctl.c
4328 coredumpctl_LDADD = \
4329 libsystemd-journal-internal.la \
4330 libsystemd-internal.la \
4331 libsystemd-shared.la
4337 test-coredump-vacuum
4339 test_coredump_vacuum_SOURCES = \
4340 src/journal/test-coredump-vacuum.c \
4341 src/journal/coredump-vacuum.c \
4342 src/journal/coredump-vacuum.h
4344 test_coredump_vacuum_LDADD = \
4345 libsystemd-internal.la \
4346 libsystemd-shared.la
4348 dist_bashcompletion_DATA += \
4349 shell-completion/bash/coredumpctl
4351 dist_zshcompletion_DATA += \
4352 shell-completion/zsh/_coredumpctl
4355 sysctl.d/50-coredump.conf
4358 sysctl.d/50-coredump.conf
4362 sysctl.d/50-coredump.conf.in
4364 # ------------------------------------------------------------------------------
4366 systemd_binfmt_SOURCES = \
4369 systemd_binfmt_LDADD = \
4370 libsystemd-shared.la
4372 rootlibexec_PROGRAMS += \
4375 dist_systemunit_DATA += \
4376 units/proc-sys-fs-binfmt_misc.automount \
4377 units/proc-sys-fs-binfmt_misc.mount
4379 nodist_systemunit_DATA += \
4380 units/systemd-binfmt.service
4383 $(prefix)/lib/binfmt.d \
4384 $(sysconfdir)/binfmt.d
4386 SYSINIT_TARGET_WANTS += \
4387 systemd-binfmt.service \
4388 proc-sys-fs-binfmt_misc.automount
4393 units/systemd-binfmt.service.in
4395 # ------------------------------------------------------------------------------
4397 systemd_vconsole_setup_SOURCES = \
4398 src/vconsole/vconsole-setup.c
4400 systemd_vconsole_setup_LDADD = \
4401 libsystemd-shared.la
4403 rootlibexec_PROGRAMS += \
4404 systemd-vconsole-setup
4406 nodist_systemunit_DATA += \
4407 units/systemd-vconsole-setup.service
4409 dist_udevrules_DATA += \
4410 src/vconsole/90-vconsole.rules
4412 SYSINIT_TARGET_WANTS += \
4413 systemd-vconsole-setup.service
4417 units/systemd-vconsole-setup.service.in
4419 # ------------------------------------------------------------------------------
4421 systemd_bootchart_SOURCES = \
4422 src/bootchart/bootchart.c \
4423 src/bootchart/bootchart.h \
4424 src/bootchart/store.c \
4425 src/bootchart/store.h \
4426 src/bootchart/svg.c \
4429 systemd_bootchart_LDADD = \
4430 libsystemd-journal-internal.la \
4431 libsystemd-shared.la
4433 rootlibexec_PROGRAMS += \
4436 dist_pkgsysconf_DATA += \
4437 src/bootchart/bootchart.conf
4440 # ------------------------------------------------------------------------------
4441 if ENABLE_QUOTACHECK
4442 rootlibexec_PROGRAMS += \
4445 nodist_systemunit_DATA += \
4446 units/systemd-quotacheck.service
4448 systemd_quotacheck_SOURCES = \
4449 src/quotacheck/quotacheck.c
4451 systemd_quotacheck_LDADD = \
4452 libsystemd-shared.la
4456 units/systemd-quotacheck.service.in
4458 nodist_systemunit_DATA += \
4459 units/quotaon.service
4461 # ------------------------------------------------------------------------------
4462 if ENABLE_RANDOMSEED
4463 rootlibexec_PROGRAMS += \
4466 nodist_systemunit_DATA += \
4467 units/systemd-random-seed.service
4469 systemd_random_seed_SOURCES = \
4470 src/random-seed/random-seed.c
4472 systemd_random_seed_LDADD = \
4473 libsystemd-label.la \
4474 libsystemd-shared.la
4476 SYSINIT_TARGET_WANTS += \
4477 systemd-random-seed.service
4482 units/systemd-random-seed.service.in
4484 # ------------------------------------------------------------------------------
4486 rootlibexec_PROGRAMS += \
4489 nodist_systemunit_DATA += \
4490 units/systemd-backlight@.service
4492 systemd_backlight_SOURCES = \
4493 src/backlight/backlight.c
4495 systemd_backlight_LDADD = \
4496 libsystemd-label.la \
4497 libudev-internal.la \
4498 libsystemd-shared.la
4502 units/systemd-backlight@.service.in
4504 # ------------------------------------------------------------------------------
4506 rootlibexec_PROGRAMS += \
4509 nodist_systemunit_DATA += \
4510 units/systemd-rfkill@.service
4512 systemd_rfkill_SOURCES = \
4515 systemd_rfkill_LDADD = \
4516 libsystemd-label.la \
4517 libudev-internal.la \
4518 libsystemd-shared.la
4522 units/systemd-rfkill@.service.in
4524 # ------------------------------------------------------------------------------
4525 if HAVE_LIBCRYPTSETUP
4526 rootlibexec_PROGRAMS += \
4529 systemgenerator_PROGRAMS += \
4530 systemd-cryptsetup-generator
4532 dist_systemunit_DATA += \
4533 units/cryptsetup.target \
4534 units/cryptsetup-pre.target
4536 systemd_cryptsetup_SOURCES = \
4537 src/cryptsetup/cryptsetup.c
4539 systemd_cryptsetup_CFLAGS = \
4541 $(LIBCRYPTSETUP_CFLAGS)
4543 systemd_cryptsetup_LDADD = \
4544 libsystemd-label.la \
4545 libudev-internal.la \
4546 libsystemd-shared.la \
4547 $(LIBCRYPTSETUP_LIBS)
4549 systemd_cryptsetup_generator_SOURCES = \
4550 src/cryptsetup/cryptsetup-generator.c
4552 systemd_cryptsetup_generator_LDADD = \
4553 libsystemd-label.la \
4554 libsystemd-shared.la
4556 SYSINIT_TARGET_WANTS += \
4561 # ------------------------------------------------------------------------------
4563 systemd_hostnamed_SOURCES = \
4564 src/hostname/hostnamed.c
4566 systemd_hostnamed_LDADD = \
4567 libsystemd-label.la \
4568 libsystemd-internal.la \
4569 libsystemd-shared.la
4571 rootlibexec_PROGRAMS += \
4574 nodist_systemunit_DATA += \
4575 units/systemd-hostnamed.service
4577 dist_systemunit_DATA_busnames += \
4578 units/org.freedesktop.hostname1.busname
4580 dist_dbuspolicy_DATA += \
4581 src/hostname/org.freedesktop.hostname1.conf
4583 dist_dbussystemservice_DATA += \
4584 src/hostname/org.freedesktop.hostname1.service
4586 polkitpolicy_files += \
4587 src/hostname/org.freedesktop.hostname1.policy
4589 SYSTEM_UNIT_ALIASES += \
4590 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4592 BUSNAMES_TARGET_WANTS += \
4593 org.freedesktop.hostname1.busname
4595 hostnamectl_SOURCES = \
4596 src/hostname/hostnamectl.c
4598 hostnamectl_LDADD = \
4599 libsystemd-internal.la \
4600 libsystemd-shared.la
4605 dist_bashcompletion_DATA += \
4606 shell-completion/bash/hostnamectl
4608 dist_zshcompletion_DATA += \
4609 shell-completion/zsh/_hostnamectl
4613 polkitpolicy_in_files += \
4614 src/hostname/org.freedesktop.hostname1.policy.in
4617 units/systemd-hostnamed.service.in
4619 # ------------------------------------------------------------------------------
4620 dist_systemunit_DATA_busnames += \
4621 units/org.freedesktop.systemd1.busname
4623 BUSNAMES_TARGET_WANTS += \
4624 org.freedesktop.systemd1.busname
4626 # ------------------------------------------------------------------------------
4628 systemd_localed_SOURCES = \
4629 src/locale/localed.c
4631 systemd_localed_LDADD = \
4632 libsystemd-label.la \
4633 libsystemd-internal.la \
4634 libsystemd-shared.la \
4637 systemd_localed_CFLAGS = \
4641 nodist_systemunit_DATA += \
4642 units/systemd-localed.service
4644 dist_systemunit_DATA_busnames += \
4645 units/org.freedesktop.locale1.busname
4647 rootlibexec_PROGRAMS += \
4650 dist_dbuspolicy_DATA += \
4651 src/locale/org.freedesktop.locale1.conf
4653 dist_dbussystemservice_DATA += \
4654 src/locale/org.freedesktop.locale1.service
4656 polkitpolicy_files += \
4657 src/locale/org.freedesktop.locale1.policy
4659 SYSTEM_UNIT_ALIASES += \
4660 systemd-localed.service dbus-org.freedesktop.locale1.service
4662 BUSNAMES_TARGET_WANTS += \
4663 org.freedesktop.locale1.busname
4665 dist_pkgdata_DATA += \
4666 src/locale/kbd-model-map
4668 dist_noinst_SCRIPT = \
4669 src/locale/generate-kbd-model-map
4671 localectl_SOURCES = \
4672 src/locale/localectl.c
4675 libsystemd-internal.la \
4676 libsystemd-shared.la
4681 dist_bashcompletion_DATA += \
4682 shell-completion/bash/localectl
4684 dist_zshcompletion_DATA += \
4685 shell-completion/zsh/_localectl
4689 .PHONY: update-kbd-model-map
4691 polkitpolicy_in_files += \
4692 src/locale/org.freedesktop.locale1.policy.in
4695 units/systemd-localed.service.in
4697 # ------------------------------------------------------------------------------
4699 systemd_timedated_SOURCES = \
4700 src/timedate/timedated.c
4702 systemd_timedated_LDADD = \
4703 libsystemd-label.la \
4704 libsystemd-internal.la \
4705 libsystemd-shared.la
4707 rootlibexec_PROGRAMS += \
4710 dist_dbussystemservice_DATA += \
4711 src/timedate/org.freedesktop.timedate1.service
4713 dist_dbuspolicy_DATA += \
4714 src/timedate/org.freedesktop.timedate1.conf
4716 nodist_systemunit_DATA += \
4717 units/systemd-timedated.service
4719 dist_systemunit_DATA_busnames += \
4720 units/org.freedesktop.timedate1.busname
4722 polkitpolicy_files += \
4723 src/timedate/org.freedesktop.timedate1.policy
4725 SYSTEM_UNIT_ALIASES += \
4726 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4728 BUSNAMES_TARGET_WANTS += \
4729 org.freedesktop.timedate1.busname
4731 timedatectl_SOURCES = \
4732 src/timedate/timedatectl.c
4734 timedatectl_LDADD = \
4735 libsystemd-internal.la \
4736 libsystemd-shared.la
4741 dist_bashcompletion_DATA += \
4742 shell-completion/bash/timedatectl
4744 dist_zshcompletion_DATA += \
4745 shell-completion/zsh/_timedatectl
4748 polkitpolicy_in_files += \
4749 src/timedate/org.freedesktop.timedate1.policy.in
4752 units/systemd-timedated.service.in
4754 # ------------------------------------------------------------------------------
4756 systemd_timesyncd_SOURCES = \
4757 src/timesync/timesyncd.c \
4758 src/timesync/timesyncd-manager.c \
4759 src/timesync/timesyncd-manager.h \
4760 src/timesync/timesyncd-conf.c \
4761 src/timesync/timesyncd-conf.h \
4762 src/timesync/timesyncd-server.c \
4763 src/timesync/timesyncd-server.h
4765 nodist_systemd_timesyncd_SOURCES = \
4766 src/timesync/timesyncd-gperf.c
4769 src/timesync/timesyncd-gperf.gperf
4772 src/timesync/timesyncd-gperf.c
4774 systemd_timesyncd_LDADD = \
4775 libsystemd-resolve.la \
4776 libsystemd-network.la \
4777 libsystemd-label.la \
4778 libsystemd-internal.la \
4779 libsystemd-shared.la \
4782 rootlibexec_PROGRAMS += \
4785 nodist_systemunit_DATA += \
4786 units/systemd-timesyncd.service
4788 GENERAL_ALIASES += \
4789 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
4792 units/systemd-timesyncd.service.in
4794 nodist_pkgsysconf_DATA += \
4795 src/timesync/timesyncd.conf
4798 src/timesync/timesyncd.conf.in
4801 src/timesync/timesyncd.conf
4804 # ------------------------------------------------------------------------------
4806 libnss_myhostname_la_SOURCES = \
4807 src/nss-myhostname/nss-myhostname.sym \
4808 src/nss-myhostname/nss-myhostname.c
4810 libnss_myhostname_la_LDFLAGS = \
4817 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
4819 libnss_myhostname_la_LIBADD = \
4820 libsystemd-shared.la \
4821 libsystemd-internal.la
4823 lib_LTLIBRARIES += \
4824 libnss_myhostname.la
4827 # ------------------------------------------------------------------------------
4829 systemd_machined_SOURCES = \
4830 src/machine/machined.c \
4831 src/machine/machined.h
4833 systemd_machined_LDADD = \
4834 libsystemd-machine-core.la
4836 rootlibexec_PROGRAMS += \
4839 libsystemd_machine_core_la_SOURCES = \
4840 src/machine/machined-dbus.c \
4841 src/machine/machine.c \
4842 src/machine/machine.h \
4843 src/machine/machine-dbus.c
4845 libsystemd_machine_core_la_LIBADD = \
4846 libsystemd-label.la \
4847 libsystemd-internal.la \
4848 libudev-internal.la \
4849 libsystemd-shared.la
4851 noinst_LTLIBRARIES += \
4852 libsystemd-machine-core.la
4854 machinectl_SOURCES = \
4855 src/machine/machinectl.c
4857 machinectl_LDADD = \
4858 libsystemd-internal.la \
4859 libsystemd-shared.la
4861 rootbin_PROGRAMS += \
4864 dist_bashcompletion_DATA += \
4865 shell-completion/bash/machinectl
4867 test_machine_tables_SOURCES = \
4868 src/machine/test-machine-tables.c
4870 test_machine_tables_LDADD = \
4871 libsystemd-machine-core.la
4876 nodist_systemunit_DATA += \
4877 units/systemd-machined.service
4879 dist_systemunit_DATA += \
4882 dist_systemunit_DATA_busnames += \
4883 units/org.freedesktop.machine1.busname
4885 dist_dbussystemservice_DATA += \
4886 src/machine/org.freedesktop.machine1.service
4888 dist_dbuspolicy_DATA += \
4889 src/machine/org.freedesktop.machine1.conf
4891 dist_zshcompletion_DATA += \
4892 shell-completion/zsh/_machinectl \
4893 shell-completion/zsh/_sd_machines
4895 SYSTEM_UNIT_ALIASES += \
4896 systemd-machined.service dbus-org.freedesktop.machine1.service
4898 BUSNAMES_TARGET_WANTS += \
4899 org.freedesktop.machine1.busname
4902 units/systemd-machined.service.in
4904 libnss_mymachines_la_SOURCES = \
4905 src/nss-mymachines/nss-mymachines.sym \
4906 src/nss-mymachines/nss-mymachines.c
4908 libnss_mymachines_la_LDFLAGS = \
4915 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
4917 libnss_mymachines_la_LIBADD = \
4918 libsystemd-shared.la \
4919 libsystemd-internal.la
4921 lib_LTLIBRARIES += \
4922 libnss_mymachines.la
4925 # ------------------------------------------------------------------------------
4927 systemd_resolved_SOURCES = \
4928 src/resolve/resolved.c \
4929 src/resolve/resolved-manager.c \
4930 src/resolve/resolved-manager.h \
4931 src/resolve/resolved-conf.c \
4932 src/resolve/resolved-conf.h \
4933 src/resolve/resolved-bus.c \
4934 src/resolve/resolved-bus.h \
4935 src/resolve/resolved-link.h \
4936 src/resolve/resolved-link.c \
4937 src/resolve/resolved-def.h \
4938 src/resolve/resolved-dns-domain.h \
4939 src/resolve/resolved-dns-domain.c \
4940 src/resolve/resolved-dns-rr.h \
4941 src/resolve/resolved-dns-rr.c \
4942 src/resolve/resolved-dns-question.h \
4943 src/resolve/resolved-dns-question.c \
4944 src/resolve/resolved-dns-answer.h \
4945 src/resolve/resolved-dns-answer.c \
4946 src/resolve/resolved-dns-packet.h \
4947 src/resolve/resolved-dns-packet.c \
4948 src/resolve/resolved-dns-query.h \
4949 src/resolve/resolved-dns-query.c \
4950 src/resolve/resolved-dns-transaction.h \
4951 src/resolve/resolved-dns-transaction.c \
4952 src/resolve/resolved-dns-scope.h \
4953 src/resolve/resolved-dns-scope.c \
4954 src/resolve/resolved-dns-server.h \
4955 src/resolve/resolved-dns-server.c \
4956 src/resolve/resolved-dns-cache.h \
4957 src/resolve/resolved-dns-cache.c \
4958 src/resolve/resolved-dns-zone.h \
4959 src/resolve/resolved-dns-zone.c \
4960 src/resolve/resolved-dns-stream.h \
4961 src/resolve/resolved-dns-stream.c \
4962 src/resolve/dns-type.c \
4963 src/resolve/dns-type.h \
4964 src/resolve/dns_type-from-name.h \
4965 src/resolve/dns_type-to-name.h
4967 nodist_systemd_resolved_SOURCES = \
4968 src/resolve/resolved-gperf.c
4971 src/resolve/resolved-gperf.gperf \
4972 src/resolve/dns_type-from-name.gperf
4975 src/resolve/resolved-gperf.c
4977 systemd_resolved_LDADD = \
4978 libsystemd-network.la \
4979 libsystemd-label.la \
4980 libsystemd-internal.la \
4981 libsystemd-shared.la \
4985 rootlibexec_PROGRAMS += \
4988 nodist_systemunit_DATA += \
4989 units/systemd-resolved.service
4991 dist_systemunit_DATA_busnames += \
4992 units/org.freedesktop.resolve1.busname
4994 dist_dbuspolicy_DATA += \
4995 src/resolve/org.freedesktop.resolve1.conf
4997 dist_dbussystemservice_DATA += \
4998 src/resolve/org.freedesktop.resolve1.service
5001 units/systemd-resolved.service.in
5003 SYSTEM_UNIT_ALIASES += \
5004 systemd-resolved.service dbus-org.freedesktop.resolve1.service
5006 BUSNAMES_TARGET_WANTS += \
5007 org.freedesktop.resolve1.busname
5009 GENERAL_ALIASES += \
5010 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
5012 nodist_pkgsysconf_DATA += \
5013 src/resolve/resolved.conf
5016 src/resolve/resolved.conf.in
5019 src/resolve/resolved.conf
5024 test_dns_domain_SOURCES = \
5025 src/resolve/resolved-dns-domain.h \
5026 src/resolve/resolved-dns-domain.c \
5027 src/resolve/test-dns-domain.c
5029 test_dns_domain_LDADD = \
5030 libsystemd-network.la \
5031 libsystemd-label.la \
5032 libsystemd-internal.la \
5033 libsystemd-shared.la \
5036 libnss_resolve_la_SOURCES = \
5037 src/nss-resolve/nss-resolve.sym \
5038 src/nss-resolve/nss-resolve.c
5040 libnss_resolve_la_LDFLAGS = \
5047 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
5049 libnss_resolve_la_LIBADD = \
5050 libsystemd-shared.la \
5051 libsystemd-internal.la
5053 lib_LTLIBRARIES += \
5056 systemd_resolve_host_SOURCES = \
5057 src/resolve-host/resolve-host.c \
5058 src/resolve/resolved-dns-packet.c \
5059 src/resolve/resolved-dns-packet.h \
5060 src/resolve/resolved-dns-rr.c \
5061 src/resolve/resolved-dns-rr.h \
5062 src/resolve/resolved-dns-answer.c \
5063 src/resolve/resolved-dns-answer.h \
5064 src/resolve/resolved-dns-question.c \
5065 src/resolve/resolved-dns-question.h \
5066 src/resolve/resolved-dns-domain.c \
5067 src/resolve/resolved-dns-domain.h \
5068 src/resolve/dns-type.c \
5069 src/resolve/dns-type.h \
5070 src/resolve/dns_type-from-name.h \
5071 src/resolve/dns_type-to-name.h
5073 systemd_resolve_host_LDADD = \
5074 libsystemd-internal.la \
5075 libsystemd-shared.la \
5079 rootlibexec_PROGRAMS += \
5080 systemd-resolve-host
5084 # ------------------------------------------------------------------------------
5086 rootlibexec_PROGRAMS += \
5089 systemd_networkd_SOURCES = \
5090 src/network/networkd.c
5092 systemd_networkd_LDADD = \
5093 libsystemd-networkd-core.la
5095 noinst_LTLIBRARIES += \
5096 libsystemd-networkd-core.la
5098 libsystemd_networkd_core_la_CFLAGS = \
5101 libsystemd_networkd_core_la_SOURCES = \
5102 src/libsystemd-network/network-internal.h \
5103 src/network/networkd.h \
5104 src/network/networkd-link.h \
5105 src/network/networkd-netdev.h \
5106 src/network/networkd-netdev-tunnel.h \
5107 src/network/networkd-netdev-veth.h \
5108 src/network/networkd-netdev-vxlan.h \
5109 src/network/networkd-netdev-vlan.h \
5110 src/network/networkd-netdev-macvlan.h \
5111 src/network/networkd-netdev-dummy.h \
5112 src/network/networkd-netdev-tuntap.h \
5113 src/network/networkd-netdev-bond.h \
5114 src/network/networkd-netdev-bridge.h \
5115 src/network/networkd-netdev.c \
5116 src/network/networkd-netdev-tunnel.c \
5117 src/network/networkd-netdev-veth.c \
5118 src/network/networkd-netdev-vxlan.c \
5119 src/network/networkd-netdev-vlan.c \
5120 src/network/networkd-netdev-macvlan.c \
5121 src/network/networkd-netdev-dummy.c \
5122 src/network/networkd-netdev-tuntap.c \
5123 src/network/networkd-netdev-bond.c \
5124 src/network/networkd-netdev-bridge.c \
5125 src/network/networkd-link.c \
5126 src/network/networkd-ipv4ll.c \
5127 src/network/networkd-dhcp4.c \
5128 src/network/networkd-network.c \
5129 src/network/networkd-address.c \
5130 src/network/networkd-route.c \
5131 src/network/networkd-manager.c \
5132 src/network/networkd-address-pool.c
5134 nodist_libsystemd_networkd_core_la_SOURCES = \
5135 src/network/networkd-network-gperf.c \
5136 src/network/networkd-netdev-gperf.c
5138 libsystemd_networkd_core_la_LIBADD = \
5139 libudev-internal.la \
5140 libsystemd-internal.la \
5141 libsystemd-network.la \
5142 libsystemd-label.la \
5143 libsystemd-shared.la
5145 rootlibexec_PROGRAMS += \
5146 systemd-networkd-wait-online
5148 systemd_networkd_wait_online_CFLAGS = \
5151 systemd_networkd_wait_online_SOURCES = \
5152 src/libsystemd-network/network-internal.h \
5153 src/network/networkd-wait-online.h \
5154 src/network/networkd-wait-online-link.h \
5155 src/network/networkd-wait-online.c \
5156 src/network/networkd-wait-online-manager.c \
5157 src/network/networkd-wait-online-link.c
5159 systemd_networkd_wait_online_LDADD = \
5160 libsystemd-network.la \
5161 libudev-internal.la \
5162 libsystemd-internal.la \
5163 libsystemd-shared.la
5165 rootbin_PROGRAMS += \
5168 networkctl_SOURCES = \
5169 src/network/networkctl.c
5171 networkctl_LDADD = \
5172 libsystemd-internal.la \
5173 libudev-internal.la \
5174 libsystemd-shared.la \
5175 libsystemd-network.la
5177 test_network_SOURCES = \
5178 src/network/test-network.c
5180 test_network_LDADD = \
5181 libsystemd-networkd-core.la
5183 test_network_tables_SOURCES = \
5184 src/network/test-network-tables.c \
5185 src/shared/test-tables.h
5187 test_network_tables_LDADD = \
5188 libsystemd-networkd-core.la \
5195 nodist_systemunit_DATA += \
5196 units/systemd-networkd.service \
5197 units/systemd-networkd-wait-online.service
5199 GENERAL_ALIASES += \
5200 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5201 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5204 src/network/networkd-network-gperf.gperf \
5205 src/network/networkd-netdev-gperf.gperf \
5206 units/systemd-networkd.service.in \
5207 units/systemd-networkd-wait-online.service.in
5210 src/network/networkd-network-gperf.c \
5211 src/network/networkd-netdev-gperf.c
5214 # ------------------------------------------------------------------------------
5216 systemd_logind_SOURCES = \
5217 src/login/logind.c \
5220 nodist_systemd_logind_SOURCES = \
5221 src/login/logind-gperf.c
5223 systemd_logind_LDADD = \
5224 libsystemd-logind-core.la
5226 libsystemd_logind_core_la_SOURCES = \
5227 src/login/logind-core.c \
5228 src/login/logind-device.c \
5229 src/login/logind-device.h \
5230 src/login/logind-button.c \
5231 src/login/logind-button.h \
5232 src/login/logind-action.c \
5233 src/login/logind-action.h \
5234 src/login/logind-seat.c \
5235 src/login/logind-seat.h \
5236 src/login/logind-session.c \
5237 src/login/logind-session.h \
5238 src/login/logind-session-device.c \
5239 src/login/logind-session-device.h \
5240 src/login/logind-user.c \
5241 src/login/logind-user.h \
5242 src/login/logind-inhibit.c \
5243 src/login/logind-inhibit.h \
5244 src/login/logind-dbus.c \
5245 src/login/logind-session-dbus.c \
5246 src/login/logind-seat-dbus.c \
5247 src/login/logind-user-dbus.c \
5248 src/login/logind-acl.h
5250 libsystemd_logind_core_la_LIBADD = \
5251 libsystemd-label.la \
5252 libsystemd-internal.la \
5253 libudev-internal.la \
5254 libsystemd-shared.la
5257 libsystemd_logind_core_la_SOURCES += \
5258 src/login/logind-acl.c
5260 libsystemd_logind_core_la_LIBADD += \
5264 noinst_LTLIBRARIES += \
5265 libsystemd-logind-core.la
5267 systemd_user_sessions_SOURCES = \
5268 src/login/user-sessions.c
5270 systemd_user_sessions_LDADD = \
5271 libsystemd-shared.la
5273 rootlibexec_PROGRAMS += \
5275 systemd-user-sessions
5277 loginctl_SOURCES = \
5278 src/login/loginctl.c \
5279 src/login/sysfs-show.c
5282 libsystemd-internal.la \
5283 libudev-internal.la \
5284 libsystemd-shared.la
5286 rootbin_PROGRAMS += \
5289 dist_bashcompletion_DATA += \
5290 shell-completion/bash/loginctl
5292 dist_zshcompletion_DATA += \
5293 shell-completion/zsh/_loginctl \
5294 shell-completion/zsh/_systemd-inhibit
5296 systemd_inhibit_SOURCES = \
5299 systemd_inhibit_LDADD = \
5300 libsystemd-internal.la \
5301 libsystemd-shared.la
5303 rootbin_PROGRAMS += \
5306 test_login_SOURCES = \
5307 src/libsystemd/sd-login/test-login.c
5309 test_login_LDADD = \
5310 libsystemd-internal.la \
5311 libsystemd-shared.la
5313 test_login_shared_SOURCES = \
5314 src/login/test-login-shared.c
5316 test_login_shared_LDADD = \
5317 libsystemd-internal.la \
5318 libsystemd-shared.la
5320 test_inhibit_SOURCES = \
5321 src/login/test-inhibit.c
5323 test_inhibit_LDADD = \
5324 libsystemd-internal.la \
5325 libsystemd-shared.la
5327 test_login_tables_SOURCES = \
5328 src/login/test-login-tables.c
5330 test_login_tables_LDADD = \
5331 libsystemd-logind-core.la
5342 pam_systemd_la_SOURCES = \
5343 src/login/pam_systemd.sym \
5344 src/login/pam_systemd.c
5346 pam_systemd_la_CFLAGS = \
5351 pam_systemd_la_LDFLAGS = \
5357 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5359 pam_systemd_la_LIBADD = \
5360 libsystemd-internal.la \
5361 libsystemd-shared.la \
5364 pamlib_LTLIBRARIES = \
5367 dist_pamconf_DATA = \
5368 src/login/systemd-user
5371 nodist_systemunit_DATA += \
5372 units/systemd-logind.service \
5373 units/systemd-user-sessions.service
5375 dist_systemunit_DATA += \
5378 dist_systemunit_DATA_busnames += \
5379 units/org.freedesktop.login1.busname
5381 dist_dbussystemservice_DATA += \
5382 src/login/org.freedesktop.login1.service
5384 dist_dbuspolicy_DATA += \
5385 src/login/org.freedesktop.login1.conf
5387 dist_pkgsysconf_DATA += \
5388 src/login/logind.conf
5390 polkitpolicy_files += \
5391 src/login/org.freedesktop.login1.policy
5396 MULTI_USER_TARGET_WANTS += \
5397 systemd-logind.service \
5398 systemd-user-sessions.service
5400 SYSTEM_UNIT_ALIASES += \
5401 systemd-logind.service dbus-org.freedesktop.login1.service
5403 BUSNAMES_TARGET_WANTS += \
5404 org.freedesktop.login1.busname
5406 dist_udevrules_DATA += \
5407 src/login/70-uaccess.rules \
5408 src/login/70-power-switch.rules
5410 nodist_udevrules_DATA += \
5411 src/login/71-seat.rules \
5412 src/login/73-seat-late.rules
5415 src/login/logind-gperf.c \
5416 src/login/71-seat.rules \
5417 src/login/73-seat-late.rules
5420 polkitpolicy_in_files += \
5421 src/login/org.freedesktop.login1.policy.in
5424 src/login/logind-gperf.gperf \
5425 src/login/71-seat.rules.in \
5426 src/login/73-seat-late.rules.in \
5427 units/systemd-logind.service.in \
5428 units/systemd-user-sessions.service.in
5430 # ------------------------------------------------------------------------------
5431 if HAVE_PYTHON_DEVEL
5432 pkgpyexec_LTLIBRARIES = \
5439 _journal_la_SOURCES = \
5440 src/python-systemd/_journal.c
5442 _journal_la_CFLAGS = \
5444 -fvisibility=default \
5445 $(PYTHON_DEVEL_CFLAGS)
5447 _journal_la_LDFLAGS = \
5453 _journal_la_LIBADD = \
5454 $(PYTHON_DEVEL_LIBS) \
5457 id128_la_SOURCES = \
5458 src/python-systemd/id128.c \
5459 src/python-systemd/pyutil.c \
5460 src/python-systemd/pyutil.h
5462 nodist_id128_la_SOURCES = \
5463 src/python-systemd/id128-constants.h
5467 -fvisibility=default \
5468 $(PYTHON_DEVEL_CFLAGS) \
5469 -I$(top_builddir)/src/python-systemd
5471 id128_la_LDFLAGS = \
5478 $(PYTHON_DEVEL_LIBS) \
5479 libsystemd-shared.la \
5482 _daemon_la_SOURCES = \
5483 src/python-systemd/_daemon.c \
5484 src/python-systemd/pyutil.c \
5485 src/python-systemd/pyutil.h
5487 _daemon_la_CFLAGS = \
5489 -fvisibility=default \
5490 $(PYTHON_DEVEL_CFLAGS) \
5491 -I$(top_builddir)/src/python-systemd
5493 _daemon_la_LDFLAGS = \
5499 _daemon_la_LIBADD = \
5500 $(PYTHON_DEVEL_LIBS) \
5501 libsystemd-shared.la \
5504 _reader_la_SOURCES = \
5505 src/python-systemd/_reader.c \
5506 src/python-systemd/pyutil.c \
5507 src/python-systemd/pyutil.h
5509 _reader_la_CFLAGS = \
5511 -fvisibility=default \
5512 $(PYTHON_DEVEL_CFLAGS)
5514 _reader_la_LDFLAGS = \
5520 _reader_la_LIBADD = \
5521 $(PYTHON_DEVEL_LIBS) \
5522 libsystemd-shared.la \
5525 login_la_SOURCES = \
5526 src/python-systemd/login.c \
5527 src/python-systemd/pyutil.c \
5528 src/python-systemd/pyutil.h
5532 -fvisibility=default \
5533 $(PYTHON_DEVEL_CFLAGS)
5535 login_la_LDFLAGS = \
5542 $(PYTHON_DEVEL_LIBS) \
5543 libsystemd-shared.la \
5546 dist_pkgpyexec_PYTHON = \
5547 src/python-systemd/journal.py \
5548 src/python-systemd/daemon.py \
5549 src/python-systemd/__init__.py
5551 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
5552 $(AM_V_at)$(MKDIR_P) $(dir $@)
5553 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
5556 src/python-systemd/id128-constants.h
5558 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
5560 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
5561 $(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/
5562 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
5565 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
5566 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
5569 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
5570 $(MAKE) DESTDIR="$$dir" install && \
5571 $(MAKE) DESTDIR="$$dir" sphinx-html && \
5576 CLEAN_LOCAL_HOOKS += clean-sphinx
5578 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
5581 -rm -rf docs/html/python-systemd/
5583 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
5585 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
5586 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
5588 # ------------------------------------------------------------------------------
5589 if ENABLE_COMPAT_LIBS
5591 src/compat-libs/linkwarning.h
5593 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
5594 $(AM_V_at)$(MKDIR_P) $(dir $@)
5595 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
5598 libsystemd-journal.c \
5599 libsystemd-login.c \
5600 libsystemd-id128.c \
5603 libsystemd_journal_la_SOURCES = \
5604 libsystemd-journal.c \
5605 src/compat-libs/libsystemd-journal.sym
5607 libsystemd_journal_la_CPPFLAGS = \
5609 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5611 libsystemd_journal_la_LDFLAGS = \
5613 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
5614 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
5616 libsystemd_journal_la_LIBADD = \
5617 libsystemd-journal-internal.la \
5618 libsystemd-internal.la \
5619 libsystemd-shared.la
5621 libsystemd_login_la_SOURCES = \
5622 libsystemd-login.c \
5623 src/compat-libs/libsystemd-login.sym
5625 libsystemd_login_la_CPPFLAGS = \
5627 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5629 libsystemd_login_la_LDFLAGS = \
5631 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
5632 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
5634 libsystemd_login_la_LIBADD = \
5635 libsystemd-internal.la \
5636 libsystemd-shared.la
5638 libsystemd_id128_la_SOURCES = \
5639 libsystemd-id128.c \
5640 src/compat-libs/libsystemd-id128.sym
5642 libsystemd_id128_la_CPPFLAGS = \
5644 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5646 libsystemd_id128_la_LDFLAGS = \
5648 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
5649 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
5651 libsystemd_id128_la_LIBADD = \
5652 libsystemd-internal.la \
5653 libsystemd-shared.la
5655 libsystemd_daemon_la_SOURCES = \
5656 libsystemd-daemon.c \
5657 src/compat-libs/libsystemd-daemon.sym
5659 libsystemd_daemon_la_CPPFLAGS = \
5661 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5663 libsystemd_daemon_la_LDFLAGS = \
5665 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
5666 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
5668 libsystemd_daemon_la_LIBADD = \
5669 libsystemd-internal.la \
5670 libsystemd-shared.la
5672 lib_LTLIBRARIES += \
5673 libsystemd-journal.la \
5674 libsystemd-login.la \
5675 libsystemd-id128.la \
5676 libsystemd-daemon.la
5678 pkgconfiglib_DATA += \
5679 src/compat-libs/libsystemd-journal.pc \
5680 src/compat-libs/libsystemd-login.pc \
5681 src/compat-libs/libsystemd-id128.pc \
5682 src/compat-libs/libsystemd-daemon.pc
5684 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
5685 compat-lib-install-hook:
5686 libname=libsystemd-login.so && $(move-to-rootlibdir)
5687 libname=libsystemd-journal.so && $(move-to-rootlibdir)
5688 libname=libsystemd-id128.so && $(move-to-rootlibdir)
5689 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
5691 compat-lib-uninstall-hook:
5692 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
5693 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
5694 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
5695 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
5697 INSTALL_EXEC_HOOKS += compat-lib-install-hook
5698 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
5702 src/compat-libs/libsystemd-journal.pc.in \
5703 src/compat-libs/libsystemd-login.pc.in \
5704 src/compat-libs/libsystemd-id128.pc.in \
5705 src/compat-libs/libsystemd-daemon.pc.in
5707 # ------------------------------------------------------------------------------
5709 '|rootlibexecdir=$(rootlibexecdir)|' \
5710 '|rootbindir=$(rootbindir)|' \
5711 '|bindir=$(bindir)|' \
5712 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5713 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5714 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5715 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5716 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
5717 '|pkgdatadir=$(pkgdatadir)|' \
5718 '|systemunitdir=$(systemunitdir)|' \
5719 '|userunitdir=$(userunitdir)|' \
5720 '|systempresetdir=$(systempresetdir)|' \
5721 '|userpresetdir=$(userpresetdir)|' \
5722 '|udevhwdbdir=$(udevhwdbdir)|' \
5723 '|udevrulesdir=$(udevrulesdir)|' \
5724 '|catalogdir=$(catalogdir)|' \
5725 '|tmpfilesdir=$(tmpfilesdir)|' \
5726 '|sysusersdir=$(sysusersdir)|' \
5727 '|sysctldir=$(sysctldir)|' \
5728 '|systemgeneratordir=$(systemgeneratordir)|' \
5729 '|usergeneratordir=$(usergeneratordir)|' \
5730 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
5731 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
5732 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
5733 '|PACKAGE_URL=$(PACKAGE_URL)|' \
5734 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
5735 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
5736 '|prefix=$(prefix)|' \
5737 '|exec_prefix=$(exec_prefix)|' \
5738 '|libdir=$(libdir)|' \
5739 '|includedir=$(includedir)|' \
5740 '|VERSION=$(VERSION)|' \
5741 '|rootprefix=$(rootprefix)|' \
5742 '|udevlibexecdir=$(udevlibexecdir)|' \
5743 '|SUSHELL=$(SUSHELL)|' \
5744 '|DEBUGTTY=$(DEBUGTTY)|' \
5747 '|MKDIR_P=$(MKDIR_P)|' \
5748 '|QUOTAON=$(QUOTAON)|' \
5749 '|QUOTACHECK=$(QUOTACHECK)|' \
5750 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
5751 '|VARLOGDIR=$(varlogdir)|' \
5752 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
5753 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
5754 '|PYTHON=$(PYTHON)|' \
5755 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
5756 '|NTP_SERVERS=$(NTP_SERVERS)|' \
5757 '|DNS_SERVERS=$(DNS_SERVERS)|' \
5758 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
5759 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
5760 '|TTY_GID=$(TTY_GID)|' \
5761 '|systemsleepdir=$(systemsleepdir)|' \
5762 '|systemshutdowndir=$(systemshutdowndir)|' \
5763 '|binfmtdir=$(binfmtdir)|' \
5764 '|modulesloaddir=$(modulesloaddir)|'
5767 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
5768 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
5777 sysctl.d/%: sysctl.d/%.in
5786 src/core/macros.%: src/core/macros.%.in
5789 src/%.policy.in: src/%.policy.in.in
5792 shell-completion/%: shell-completion/%.in
5803 $(AM_V_GEN)chmod +x $@
5805 src/%.c: src/%.gperf
5806 $(AM_V_at)$(MKDIR_P) $(dir $@)
5807 $(AM_V_GPERF)$(GPERF) < $< > $@
5810 $(AM_V_at)$(MKDIR_P) $(dir $@)
5811 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5813 tmpfiles.d/%: tmpfiles.d/%.m4
5814 $(AM_V_at)$(MKDIR_P) $(dir $@)
5815 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5819 $(AM_V_at)$(MKDIR_P) $(dir $@)
5820 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
5822 units/user/%: units/%.m4
5823 $(AM_V_at)$(MKDIR_P) $(dir $@)
5824 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
5827 nodist_polkitpolicy_DATA = \
5828 $(polkitpolicy_files) \
5829 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
5833 $(polkitpolicy_in_files) \
5834 $(polkitpolicy_in_in_files)
5837 $(nodist_systemunit_DATA) \
5838 $(nodist_userunit_DATA) \
5839 $(pkgconfigdata_DATA) \
5840 $(pkgconfiglib_DATA) \
5841 $(nodist_polkitpolicy_DATA)
5843 # ------------------------------------------------------------------------------
5845 man/custom-entities.ent: configure.ac
5846 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
5847 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
5848 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
5852 man/custom-entities.ent
5857 --stringparam man.output.quietly 1 \
5858 --stringparam funcsynopsis.style ansi \
5859 --stringparam man.authors.section.enabled 0 \
5860 --stringparam man.copyright.section.enabled 0 \
5861 --stringparam systemd.version $(VERSION) \
5862 --path '$(builddir)/man:$(srcdir)/man'
5864 XSLTPROC_PROCESS_MAN = \
5865 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
5867 XSLTPROC_PROCESS_HTML = \
5868 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
5870 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
5871 $(XSLTPROC_PROCESS_MAN)
5873 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
5874 $(XSLTPROC_PROCESS_MAN)
5876 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
5877 $(XSLTPROC_PROCESS_MAN)
5879 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
5880 $(XSLTPROC_PROCESS_MAN)
5882 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
5883 $(XSLTPROC_PROCESS_MAN)
5885 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
5886 $(XSLTPROC_PROCESS_HTML)
5889 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
5895 man/custom-html.xsl \
5898 # ------------------------------------------------------------------------------
5901 docs/sysvinit/README
5906 docs/sysvinit/README: docs/sysvinit/README.in
5909 docs/var-log/README: docs/var-log/README.in
5913 docs/sysvinit/README \
5918 docs/sysvinit/README.in \
5919 docs/var-log/README.in
5921 SOCKETS_TARGET_WANTS += \
5922 systemd-initctl.socket \
5923 systemd-shutdownd.socket
5927 RUNLEVEL1_TARGET_WANTS += \
5928 systemd-update-utmp-runlevel.service
5929 RUNLEVEL2_TARGET_WANTS += \
5930 systemd-update-utmp-runlevel.service
5931 RUNLEVEL3_TARGET_WANTS += \
5932 systemd-update-utmp-runlevel.service
5933 RUNLEVEL4_TARGET_WANTS += \
5934 systemd-update-utmp-runlevel.service
5935 RUNLEVEL5_TARGET_WANTS += \
5936 systemd-update-utmp-runlevel.service
5939 SYSINIT_TARGET_WANTS += \
5940 systemd-update-utmp.service
5943 SYSINIT_TARGET_WANTS += \
5944 systemd-update-done.service
5946 LOCAL_FS_TARGET_WANTS += \
5947 systemd-remount-fs.service \
5950 MULTI_USER_TARGET_WANTS += \
5952 systemd-ask-password-wall.path
5954 SYSINIT_TARGET_WANTS += \
5955 dev-hugepages.mount \
5957 sys-kernel-config.mount \
5958 sys-kernel-debug.mount \
5959 sys-fs-fuse-connections.mount \
5960 systemd-sysctl.service \
5961 systemd-ask-password-console.path
5964 SYSTEM_UNIT_ALIASES += \
5965 poweroff.target runlevel0.target \
5966 rescue.target runlevel1.target \
5967 multi-user.target runlevel2.target \
5968 multi-user.target runlevel3.target \
5969 multi-user.target runlevel4.target \
5970 graphical.target runlevel5.target \
5971 reboot.target runlevel6.target
5974 SYSTEM_UNIT_ALIASES += \
5975 graphical.target default.target \
5976 reboot.target ctrl-alt-del.target \
5977 getty@.service autovt@.service
5979 USER_UNIT_ALIASES += \
5980 $(systemunitdir)/shutdown.target shutdown.target \
5981 $(systemunitdir)/sockets.target sockets.target \
5982 $(systemunitdir)/timers.target timers.target \
5983 $(systemunitdir)/paths.target paths.target \
5984 $(systemunitdir)/bluetooth.target bluetooth.target \
5985 $(systemunitdir)/printer.target printer.target \
5986 $(systemunitdir)/sound.target sound.target \
5987 $(systemunitdir)/smartcard.target smartcard.target
5990 USER_UNIT_ALIASES += \
5991 $(systemunitdir)/busnames.target busnames.target
5994 GENERAL_ALIASES += \
5995 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
5996 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
5997 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
5998 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
6002 $(systemunitdir)/runlevel1.target.wants \
6003 $(systemunitdir)/runlevel2.target.wants \
6004 $(systemunitdir)/runlevel3.target.wants \
6005 $(systemunitdir)/runlevel4.target.wants \
6006 $(systemunitdir)/runlevel5.target.wants
6010 $(prefix)/lib/modules-load.d \
6011 $(sysconfdir)/modules-load.d \
6012 $(prefix)/lib/systemd/network \
6013 $(sysconfdir)/systemd/network \
6014 $(prefix)/lib/sysctl.d \
6015 $(sysconfdir)/sysctl.d \
6016 $(prefix)/lib/kernel/install.d \
6017 $(sysconfdir)/kernel/install.d \
6018 $(systemshutdowndir) \
6020 $(systemgeneratordir) \
6021 $(usergeneratordir) \
6024 $(pkgsysconfdir)/system \
6025 $(pkgsysconfdir)/system/multi-user.target.wants \
6026 $(pkgsysconfdir)/system/getty.target.wants \
6027 $(pkgsysconfdir)/user \
6028 $(dbussessionservicedir) \
6029 $(sysconfdir)/xdg/systemd
6031 install-exec-hook: $(INSTALL_EXEC_HOOKS)
6033 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
6035 install-data-hook: $(INSTALL_DATA_HOOKS)
6037 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
6039 clean-local: $(CLEAN_LOCAL_HOOKS)
6040 rm -rf $(abs_srcdir)/install-tree
6041 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
6042 $(abs_srcdir)/hwdb/iab.txt
6044 DISTCHECK_CONFIGURE_FLAGS = \
6045 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
6046 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6047 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
6048 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
6049 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
6050 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
6051 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
6052 --with-rootprefix=$$dc_install_base \
6053 --disable-split-usr \
6055 --enable-compat-libs
6058 DISTCHECK_CONFIGURE_FLAGS += \
6059 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
6060 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
6062 DISTCHECK_CONFIGURE_FLAGS += \
6063 --with-sysvinit-path= \
6064 --with-sysvrcnd-path=
6068 DISTCHECK_CONFIGURE_FLAGS += \
6073 DISTCHECK_CONFIGURE_FLAGS += \
6078 # Require python when making dist
6080 .PHONY: dist-check-python
6083 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
6087 dist-check-compat-libs:
6088 if !ENABLE_COMPAT_LIBS
6089 @echo "*** compat-libs must be enabled in order to make dist"
6093 dist: dist-check-python dist-check-compat-libs
6095 # check "broken" platforms limited toolchains for link breakage before we release
6098 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
6102 ( cd $(top_srcdir)/hwdb && \
6103 wget -N http://www.linux-usb.org/usb.ids \
6104 http://pci-ids.ucw.cz/v2.2/pci.ids \
6105 http://standards.ieee.org/develop/regauth/oui/oui.txt \
6106 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
6109 .PHONY: kdbus-update
6111 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
6112 wget -N https://d-bus.googlecode.com/git/kdbus.h )
6116 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6118 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6120 upload: all check dist
6121 scp systemd-$(VERSION).tar.xz $(www_target)
6124 doc-sync: all destdir-sphinx
6125 gtkdoc-rebase --html-dir=docs/libudev/html --online
6126 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
6127 gtkdoc-rebase --html-dir=docs/gudev/html --online
6128 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
6129 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6130 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
6134 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
6135 scp man/*.html tango:public/systemd-man/
6137 .PHONY: install-tree
6139 rm -rf $(abs_srcdir)/install-tree
6140 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6141 tree $(abs_srcdir)/install-tree
6143 # Let's run all tests of the test suite, but under valgrind. Let's
6144 # exclude the one perl script we have in there
6145 .PHONY: valgrind-tests
6146 valgrind-tests: $(TESTS)
6147 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
6148 if file $$f | grep -q shell; then \
6149 echo -e "$${x}Skipping non-binary $$f"; else \
6150 echo -e "$${x}Running $$f"; \
6151 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6156 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6158 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6159 $(AM_V_GEN)cat $^ > $@
6161 .PHONY: check-api-docs
6162 check-api-docs: exported man
6163 $(AM_V_GEN)for symbol in `cat exported` ; do \
6164 if test -f $(builddir)/man/$$symbol.html ; then \
6165 echo " Symbol $$symbol() is documented." ; \
6167 echo "‣ Symbol $$symbol() lacks documentation." ; \
6171 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6172 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6174 undefined defined: $(ALL_OBJECTS)
6175 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6176 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6177 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6183 .PHONY: check-api-unused
6184 check-api-unused: defined undefined exported
6185 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6187 .PHONY: check-includes
6188 check-includes: $(top_srcdir)/tools/check-includes.pl
6189 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6190 | xargs $(top_srcdir)/tools/check-includes.pl
6193 $(top_srcdir)/tools/check-includes.pl
6195 # Stupid test that everything purported to be exported really is
6196 define generate-sym-test
6197 $(AM_V_at)$(MKDIR_P) $(dir $@)
6198 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6199 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6200 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6201 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6202 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6203 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6204 $(AM_V_at)printf 'return 0; }\n' >> $@
6207 test-libsystemd-sym.c: \
6208 $(top_builddir)/src/libsystemd/libsystemd.sym \
6209 src/systemd/sd-journal.h \
6210 src/systemd/sd-daemon.h \
6211 src/systemd/sd-login.h \
6212 src/systemd/sd-bus.h \
6213 src/systemd/sd-utf8.h \
6214 src/systemd/sd-resolve.h \
6215 src/systemd/sd-path.h
6216 $(generate-sym-test)
6218 test-libudev-sym.c: \
6219 src/libudev/libudev.sym \
6221 $(generate-sym-test)
6223 test_libsystemd_sym_SOURCES = \
6224 test-libsystemd-sym.c
6225 test_libsystemd_sym_LDADD = \
6228 test_libudev_sym_SOURCES = \
6230 test_libudev_sym_CFLAGS = \
6232 -Wno-deprecated-declarations
6233 test_libudev_sym_LDADD = \
6237 $(test_libsystemd_sym_SOURCES) \
6238 $(test_libudev_sym_SOURCES)
6241 test-libsystemd-sym \
6246 cppcheck --enable=all -q $(top_srcdir)
6248 # Used to extract compile flags for YCM.
6253 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u
6256 tools/gdb-sd_dump_hashmaps.py