1 # -*- Mode: makefile; indent-tabs-mode: t -*-
3 # This file is part of systemd.
5 # Copyright 2010-2012 Lennart Poettering
6 # Copyright 2010-2012 Kay Sievers
7 # Copyright 2013 Zbigniew Jędrzejewski-Szmek
8 # Copyright 2013 David Strauss
10 # systemd is free software; you can redistribute it and/or modify it
11 # under the terms of the GNU Lesser General Public License as published by
12 # the Free Software Foundation; either version 2.1 of the License, or
13 # (at your option) any later version.
15 # systemd is distributed in the hope that it will be useful, but
16 # WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 # Lesser General Public License for more details.
20 # You should have received a copy of the GNU Lesser General Public License
21 # along with systemd; If not, see <http://www.gnu.org/licenses/>.
23 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
24 AM_MAKEFLAGS = --no-print-directory
25 AUTOMAKE_OPTIONS = color-tests parallel-tests
27 GCC_COLORS ?= 'ooh, shiny!'
32 # remove targets if the command fails
35 # keep intermediate files
38 # Keep the test-suite.log
39 .PRECIOUS: $(TEST_SUITE_LOG) Makefile
53 # The following four libraries only exist for compatibility reasons,
54 # their version info should not be bumped anymore
55 LIBSYSTEMD_LOGIN_CURRENT=9
56 LIBSYSTEMD_LOGIN_REVISION=3
57 LIBSYSTEMD_LOGIN_AGE=9
59 LIBSYSTEMD_DAEMON_CURRENT=0
60 LIBSYSTEMD_DAEMON_REVISION=12
61 LIBSYSTEMD_DAEMON_AGE=0
63 LIBSYSTEMD_ID128_CURRENT=0
64 LIBSYSTEMD_ID128_REVISION=28
65 LIBSYSTEMD_ID128_AGE=0
67 LIBSYSTEMD_JOURNAL_CURRENT=11
68 LIBSYSTEMD_JOURNAL_REVISION=5
69 LIBSYSTEMD_JOURNAL_AGE=11
71 # Dirs of external packages
72 dbuspolicydir=@dbuspolicydir@
73 dbussessionservicedir=@dbussessionservicedir@
74 dbussystemservicedir=@dbussystemservicedir@
76 pamconfdir=@pamconfdir@
77 pkgconfigdatadir=$(datadir)/pkgconfig
78 pkgconfiglibdir=$(libdir)/pkgconfig
79 polkitpolicydir=$(datadir)/polkit-1/actions
80 bashcompletiondir=@bashcompletiondir@
81 zshcompletiondir=@zshcompletiondir@
82 rpmmacrosdir=$(prefix)/lib/rpm/macros.d
83 sysvinitdir=$(SYSTEM_SYSVINIT_PATH)
84 sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
85 varlogdir=$(localstatedir)/log
86 systemdstatedir=$(localstatedir)/lib/systemd
87 catalogstatedir=$(systemdstatedir)/catalog
89 # Our own, non-special dirs
90 pkgsysconfdir=$(sysconfdir)/systemd
91 userunitdir=$(prefix)/lib/systemd/user
92 userpresetdir=$(prefix)/lib/systemd/user-preset
93 tmpfilesdir=$(prefix)/lib/tmpfiles.d
94 sysusersdir=$(prefix)/lib/sysusers.d
95 sysctldir=$(prefix)/lib/sysctl.d
96 binfmtdir=$(prefix)/lib/binfmt.d
97 modulesloaddir=$(prefix)/lib/modules-load.d
98 networkdir=$(rootprefix)/lib/systemd/network
99 pkgincludedir=$(includedir)/systemd
100 systemgeneratordir=$(rootlibexecdir)/system-generators
101 usergeneratordir=$(prefix)/lib/systemd/user-generators
102 systemshutdowndir=$(rootlibexecdir)/system-shutdown
103 systemsleepdir=$(rootlibexecdir)/system-sleep
104 systemunitdir=$(rootprefix)/lib/systemd/system
105 systempresetdir=$(rootprefix)/lib/systemd/system-preset
106 udevlibexecdir=$(rootprefix)/lib/udev
107 udevhomedir=$(udevlibexecdir)
108 udevrulesdir=$(udevlibexecdir)/rules.d
109 udevhwdbdir=$(udevlibexecdir)/hwdb.d
110 catalogdir=$(prefix)/lib/systemd/catalog
111 kernelinstalldir = $(prefix)/lib/kernel/install.d
112 factory_etcdir = $(prefix)/share/factory/etc
113 factory_pamdir = $(prefix)/share/factory/etc/pam.d
115 # And these are the special ones for /
116 rootprefix=@rootprefix@
117 rootbindir=$(rootprefix)/bin
118 rootlibexecdir=$(rootprefix)/lib/systemd
120 CLEANFILES = $(BUILT_SOURCES)
125 UNINSTALL_EXEC_HOOKS =
127 UNINSTALL_DATA_HOOKS =
128 DISTCLEAN_LOCAL_HOOKS =
136 polkitpolicy_in_in_files =
137 polkitpolicy_in_files =
139 dist_udevrules_DATA =
140 nodist_udevrules_DATA =
141 dist_pkgsysconf_DATA =
142 nodist_pkgsysconf_DATA =
144 dist_dbuspolicy_DATA =
145 dist_dbussystemservice_DATA =
146 dist_systemunit_DATA_busnames =
152 noinst_PROGRAMS = $(manual_tests) $(tests)
158 udevlibexec_PROGRAMS =
160 .PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \
161 $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \
162 $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS)
165 -include $(top_builddir)/config.h \
166 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
167 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
168 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
169 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
170 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
171 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
172 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
173 -DCERTIFICATE_ROOT=\"$(CERTIFICATEROOT)\" \
174 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
175 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
176 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
177 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
178 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
179 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
180 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
181 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
182 -DROOTPREFIX=\"$(rootprefix)\" \
183 -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \
184 -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
185 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
186 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
187 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
188 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
189 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
190 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
191 -DX_SERVER=\"$(bindir)/X\" \
192 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
193 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
194 -DQUOTACHECK=\"$(QUOTACHECK)\" \
195 -DKEXEC=\"$(KEXEC)\" \
196 -DLIBDIR=\"$(libdir)\" \
197 -DROOTLIBDIR=\"$(rootlibdir)\" \
198 -DTEST_DIR=\"$(abs_top_srcdir)/test\" \
199 -I $(top_srcdir)/src \
200 -I $(top_builddir)/src/shared \
201 -I $(top_srcdir)/src/shared \
202 -I $(top_srcdir)/src/network \
203 -I $(top_srcdir)/src/login \
204 -I $(top_srcdir)/src/journal \
205 -I $(top_srcdir)/src/timedate \
206 -I $(top_srcdir)/src/timesync \
207 -I $(top_srcdir)/src/resolve \
208 -I $(top_builddir)/src/resolve \
209 -I $(top_srcdir)/src/systemd \
210 -I $(top_builddir)/src/core \
211 -I $(top_srcdir)/src/core \
212 -I $(top_srcdir)/src/libudev \
213 -I $(top_srcdir)/src/udev \
214 -I $(top_srcdir)/src/udev/net \
215 -I $(top_builddir)/src/udev \
216 -I $(top_srcdir)/src/libsystemd/sd-bus \
217 -I $(top_srcdir)/src/libsystemd/sd-event \
218 -I $(top_srcdir)/src/libsystemd/sd-rtnl \
219 -I $(top_srcdir)/src/libsystemd/sd-network \
220 -I $(top_srcdir)/src/libsystemd-network \
221 -I $(top_srcdir)/src/libsystemd-terminal \
224 AM_CFLAGS = $(OUR_CFLAGS)
225 AM_LDFLAGS = $(OUR_LDFLAGS)
227 # ------------------------------------------------------------------------------
228 define move-to-rootlibdir
229 if test "$(libdir)" != "$(rootlibdir)"; then \
230 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
231 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
232 rm -f $(DESTDIR)$(libdir)/$$libname && \
233 $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
234 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
240 RUNLEVEL1_TARGET_WANTS =
241 RUNLEVEL2_TARGET_WANTS =
242 RUNLEVEL3_TARGET_WANTS =
243 RUNLEVEL4_TARGET_WANTS =
244 RUNLEVEL5_TARGET_WANTS =
245 SHUTDOWN_TARGET_WANTS =
246 LOCAL_FS_TARGET_WANTS =
247 MULTI_USER_TARGET_WANTS =
248 SYSINIT_TARGET_WANTS =
249 SOCKETS_TARGET_WANTS =
250 BUSNAMES_TARGET_WANTS =
251 TIMERS_TARGET_WANTS =
252 USER_SOCKETS_TARGET_WANTS =
253 USER_DEFAULT_TARGET_WANTS =
254 USER_BUSNAMES_TARGET_WANTS =
256 SYSTEM_UNIT_ALIASES =
260 install-target-wants-hook:
261 what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && dir=$(systemunitdir) && $(add-wants)
262 what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && dir=$(systemunitdir) && $(add-wants)
263 what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && dir=$(systemunitdir) && $(add-wants)
264 what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && dir=$(systemunitdir) && $(add-wants)
265 what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && dir=$(systemunitdir) && $(add-wants)
266 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
267 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
268 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
269 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
270 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
271 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
272 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
273 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
274 what="$(USER_DEFAULT_TARGET_WANTS)" && wants=default.target && dir=$(userunitdir) && $(add-wants)
276 install-busnames-target-wants-hook:
277 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
278 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
281 [ -z "$$what" ] || ( \
282 dir=$(DESTDIR)$$dir/$$wants.wants && \
283 $(MKDIR_P) -m 0755 $$dir && \
286 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
289 install-directories-hook:
290 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
292 install-aliases-hook:
293 set -- $(SYSTEM_UNIT_ALIASES) && \
294 dir=$(systemunitdir) && $(install-aliases)
295 set -- $(USER_UNIT_ALIASES) && \
296 dir=$(userunitdir) && $(install-relative-aliases)
297 set -- $(GENERAL_ALIASES) && \
298 dir= && $(install-relative-aliases)
300 define install-aliases
301 while [ -n "$$1" ]; do \
302 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
303 rm -f $(DESTDIR)$$dir/$$2 && \
304 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
305 shift 2 || exit $$?; \
309 define install-relative-aliases
310 while [ -n "$$1" ]; do \
311 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
312 rm -f $(DESTDIR)$$dir/$$2 && \
313 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
314 shift 2 || exit $$?; \
318 install-touch-usr-hook:
319 touch -c $(DESTDIR)/$(prefix)
321 INSTALL_EXEC_HOOKS += \
322 install-target-wants-hook \
323 install-directories-hook \
324 install-aliases-hook \
325 install-touch-usr-hook
328 INSTALL_EXEC_HOOKS += \
329 install-busnames-target-wants-hook
332 # ------------------------------------------------------------------------------
333 AM_V_M4 = $(AM_V_M4_$(V))
334 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
335 AM_V_M4_0 = @echo " M4 " $@;
337 AM_V_XSLT = $(AM_V_XSLT_$(V))
338 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
339 AM_V_XSLT_0 = @echo " XSLT " $@;
341 AM_V_GPERF = $(AM_V_GPERF_$(V))
342 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
343 AM_V_GPERF_0 = @echo " GPERF " $@;
345 AM_V_LN = $(AM_V_LN_$(V))
346 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
347 AM_V_LN_0 = @echo " LN " $@;
349 AM_V_RM = $(AM_V_RM_$(V))
350 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
351 AM_V_RM_0 = @echo " RM " $@;
353 # ------------------------------------------------------------------------------
357 systemd-ask-password \
358 systemd-tty-ask-password-agent \
359 systemd-machine-id-setup \
366 systemd-detect-virt \
373 src/kernel-install/kernel-install
375 dist_kernelinstall_SCRIPTS = \
376 src/kernel-install/50-depmod.install \
377 src/kernel-install/90-loaderentry.install
379 rootlibexec_PROGRAMS = \
381 systemd-cgroups-agent \
386 systemd-reply-password \
392 systemd-socket-proxyd \
396 rootlibexec_PROGRAMS += \
400 systemgenerator_PROGRAMS = \
401 systemd-getty-generator \
402 systemd-fstab-generator \
403 systemd-system-update-generator \
404 systemd-debug-generator
406 dist_bashcompletion_DATA = \
407 shell-completion/bash/busctl \
408 shell-completion/bash/journalctl \
409 shell-completion/bash/systemd-analyze \
410 shell-completion/bash/systemd-cat \
411 shell-completion/bash/systemd-cgls \
412 shell-completion/bash/systemd-cgtop \
413 shell-completion/bash/systemd-delta \
414 shell-completion/bash/systemd-detect-virt \
415 shell-completion/bash/systemd-nspawn \
416 shell-completion/bash/systemd-run \
417 shell-completion/bash/udevadm \
418 shell-completion/bash/kernel-install
420 nodist_bashcompletion_DATA = \
421 shell-completion/bash/systemctl
423 dist_zshcompletion_DATA = \
424 shell-completion/zsh/_journalctl \
425 shell-completion/zsh/_udevadm \
426 shell-completion/zsh/_kernel-install \
427 shell-completion/zsh/_systemd-nspawn \
428 shell-completion/zsh/_systemd-analyze \
429 shell-completion/zsh/_systemd-run \
430 shell-completion/zsh/_sd_hosts_or_user_at_host \
431 shell-completion/zsh/_sd_outputmodes \
432 shell-completion/zsh/_sd_unit_files \
433 shell-completion/zsh/_systemd-delta \
434 shell-completion/zsh/_systemd
436 nodist_zshcompletion_DATA = \
437 shell-completion/zsh/_systemctl
440 shell-completion/bash/systemctl.in \
441 shell-completion/zsh/_systemctl.in
444 $(nodist_bashcompletion_DATA) \
445 $(nodist_zshcompletion_DATA)
448 sysctl.d/50-default.conf
450 dist_systemunit_DATA = \
451 units/graphical.target \
452 units/multi-user.target \
453 units/emergency.target \
454 units/sysinit.target \
459 units/local-fs.target \
460 units/local-fs-pre.target \
461 units/initrd.target \
462 units/initrd-fs.target \
463 units/initrd-root-fs.target \
464 units/remote-fs.target \
465 units/remote-fs-pre.target \
466 units/network.target \
467 units/network-pre.target \
468 units/network-online.target \
469 units/nss-lookup.target \
470 units/nss-user-lookup.target \
471 units/poweroff.target \
472 units/reboot.target \
473 units/rescue.target \
474 units/rpcbind.target \
475 units/time-sync.target \
476 units/shutdown.target \
478 units/umount.target \
479 units/sigpwr.target \
481 units/sockets.target \
482 units/timers.target \
484 units/suspend.target \
486 units/slices.target \
489 units/systemd-initctl.socket \
490 units/systemd-shutdownd.socket \
491 units/syslog.socket \
492 units/dev-hugepages.mount \
493 units/dev-mqueue.mount \
494 units/sys-kernel-config.mount \
495 units/sys-kernel-debug.mount \
496 units/sys-fs-fuse-connections.mount \
498 units/printer.target \
500 units/bluetooth.target \
501 units/smartcard.target \
502 units/systemd-ask-password-wall.path \
503 units/systemd-ask-password-console.path \
504 units/systemd-udevd-control.socket \
505 units/systemd-udevd-kernel.socket \
506 units/system-update.target \
507 units/initrd-switch-root.target
510 dist_systemunit_DATA += \
511 $(dist_systemunit_DATA_busnames)
514 dist_systemunit_DATA_busnames += \
515 units/busnames.target
517 nodist_systemunit_DATA = \
518 units/getty@.service \
519 units/serial-getty@.service \
520 units/console-shell.service \
521 units/console-getty.service \
522 units/container-getty@.service \
523 units/systemd-initctl.service \
524 units/systemd-shutdownd.service \
525 units/systemd-remount-fs.service \
526 units/systemd-ask-password-wall.service \
527 units/systemd-ask-password-console.service \
528 units/systemd-sysctl.service \
529 units/emergency.service \
530 units/rescue.service \
531 units/user@.service \
532 units/systemd-suspend.service \
533 units/systemd-halt.service \
534 units/systemd-poweroff.service \
535 units/systemd-reboot.service \
536 units/systemd-kexec.service \
537 units/systemd-fsck@.service \
538 units/systemd-fsck-root.service \
539 units/systemd-udevd.service \
540 units/systemd-udev-trigger.service \
541 units/systemd-udev-settle.service \
542 units/systemd-udev-hwdb-update.service \
543 units/debug-shell.service \
544 units/initrd-parse-etc.service \
545 units/initrd-cleanup.service \
546 units/initrd-udevadm-cleanup-db.service \
547 units/initrd-switch-root.service \
548 units/systemd-nspawn@.service \
549 units/systemd-update-done.service
552 nodist_systemunit_DATA += \
553 units/systemd-update-utmp.service \
554 units/systemd-update-utmp-runlevel.service
557 dist_userunit_DATA = \
558 units/user/basic.target \
559 units/user/default.target \
560 units/user/exit.target
562 nodist_userunit_DATA = \
563 units/user/systemd-exit.service
565 dist_systempreset_DATA = \
566 system-preset/90-systemd.preset
569 units/getty@.service.m4 \
570 units/serial-getty@.service.m4 \
571 units/console-shell.service.m4.in \
572 units/console-getty.service.m4.in \
573 units/container-getty@.service.m4.in \
574 units/rescue.service.in \
575 units/systemd-initctl.service.in \
576 units/systemd-shutdownd.service.in \
577 units/systemd-remount-fs.service.in \
578 units/systemd-update-utmp.service.in \
579 units/systemd-update-utmp-runlevel.service.in \
580 units/systemd-ask-password-wall.service.in \
581 units/systemd-ask-password-console.service.in \
582 units/systemd-sysctl.service.in \
583 units/emergency.service.in \
584 units/systemd-halt.service.in \
585 units/systemd-poweroff.service.in \
586 units/systemd-reboot.service.in \
587 units/systemd-kexec.service.in \
588 units/user/systemd-exit.service.in \
589 units/systemd-fsck@.service.in \
590 units/systemd-fsck-root.service.in \
591 units/user@.service.in \
592 units/debug-shell.service.in \
593 units/systemd-suspend.service.in \
594 units/quotaon.service.in \
595 units/initrd-parse-etc.service.in \
596 units/initrd-cleanup.service.in \
597 units/initrd-udevadm-cleanup-db.service.in \
598 units/initrd-switch-root.service.in \
599 units/systemd-nspawn@.service.in \
600 units/systemd-update-done.service.in
603 units/console-shell.service.m4 \
604 units/console-getty.service.m4 \
605 units/container-getty@.service.m4 \
606 units/user@.service.m4
609 nodist_systemunit_DATA += \
610 units/rc-local.service \
611 units/halt-local.service
613 systemgenerator_PROGRAMS += \
614 systemd-sysv-generator \
615 systemd-rc-local-generator
619 units/rc-local.service.in \
620 units/halt-local.service.in
622 # automake is broken and can't handle files with a dash in front
623 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
625 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
627 units-uninstall-hook:
628 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
630 INSTALL_DATA_HOOKS += units-install-hook
631 UNINSTALL_DATA_HOOKS += units-uninstall-hook
640 src/libsystemd/sd-bus/PORTING-DBUS1 \
641 src/libsystemd/sd-bus/DIFFERENCES \
642 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
644 @INTLTOOL_POLICY_RULE@
646 # ------------------------------------------------------------------------------
651 include Makefile-man.am
653 .PHONY: man update-man-list
654 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
657 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
659 ${XML_FILES:.xml=.html}
661 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
678 $(AM_V_at)$(MKDIR_P) $(dir $@)
679 $(AM_V_LN)$(LN_S) -f ../../man $@
688 man/index.html: man/systemd.index.html
689 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
697 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
698 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
699 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
701 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB)
702 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
703 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
704 @echo "Makefile-man.am has been regenerated"
706 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
707 $(AM_V_at)$(MKDIR_P) $(dir $@)
708 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
710 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py $(SOURCE_XML_FILES)
711 $(AM_V_at)$(MKDIR_P) $(dir $@)
712 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
715 man/systemd.index.xml \
717 man/systemd.directives.xml \
718 man/glib-event-glue.c
721 man/systemd.index.xml \
722 man/systemd.directives.xml
733 tools/make-man-index.py \
734 tools/make-directive-index.py \
737 # ------------------------------------------------------------------------------
738 noinst_LTLIBRARIES += \
741 libsystemd_shared_la_SOURCES = \
742 src/shared/linux/auto_dev-ioctl.h \
743 src/shared/ioprio.h \
744 src/shared/missing.h \
745 src/shared/initreq.h \
746 src/shared/securebits.h \
747 src/shared/special.h \
749 src/shared/unaligned.h \
752 src/shared/sparse-endian.h \
753 src/shared/refcnt.h \
754 src/shared/udev-util.h \
755 src/shared/bus-errors.h \
756 src/shared/bus-errors.c \
757 src/shared/device-nodes.c \
758 src/shared/device-nodes.h \
763 src/shared/architecture.c \
764 src/shared/architecture.h \
765 src/shared/efivars.c \
766 src/shared/efivars.h \
767 src/shared/path-util.c \
768 src/shared/path-util.h \
769 src/shared/time-util.c \
770 src/shared/time-util.h \
771 src/shared/locale-util.c \
772 src/shared/locale-util.h \
773 src/shared/mempool.c \
774 src/shared/mempool.h \
775 src/shared/hashmap.c \
776 src/shared/hashmap.h \
777 src/shared/siphash24.c \
778 src/shared/siphash24.h \
784 src/shared/sleep-config.c \
785 src/shared/sleep-config.h \
788 src/shared/env-util.c \
789 src/shared/env-util.h \
790 src/shared/strbuf.c \
791 src/shared/strbuf.h \
792 src/shared/strxcpyx.c \
793 src/shared/strxcpyx.h \
794 src/shared/conf-parser.c \
795 src/shared/conf-parser.h \
798 src/shared/ratelimit.h \
799 src/shared/ratelimit.c \
800 src/shared/exit-status.c \
801 src/shared/exit-status.h \
804 src/shared/gunicode.c \
805 src/shared/gunicode.h \
808 src/shared/socket-util.c \
809 src/shared/socket-util.h \
810 src/shared/in-addr-util.c \
811 src/shared/in-addr-util.h \
812 src/shared/conf-files.c \
813 src/shared/conf-files.h \
814 src/shared/cgroup-util.c \
815 src/shared/cgroup-util.h \
816 src/shared/cgroup-show.c \
817 src/shared/cgroup-show.h \
818 src/shared/unit-name.c \
819 src/shared/unit-name.h \
820 src/shared/utmp-wtmp.h \
821 src/shared/watchdog.c \
822 src/shared/watchdog.h \
823 src/shared/spawn-ask-password-agent.c \
824 src/shared/spawn-ask-password-agent.h \
825 src/shared/replace-var.c \
826 src/shared/replace-var.h \
827 src/shared/spawn-polkit-agent.c \
828 src/shared/spawn-polkit-agent.h \
829 src/shared/clock-util.c \
830 src/shared/clock-util.h \
831 src/shared/time-dst.c \
832 src/shared/time-dst.h \
833 src/shared/calendarspec.c \
834 src/shared/calendarspec.h \
835 src/shared/fileio.c \
836 src/shared/fileio.h \
837 src/shared/output-mode.h \
838 src/shared/MurmurHash2.c \
839 src/shared/MurmurHash2.h \
840 src/shared/acpi-fpdt.h \
841 src/shared/acpi-fpdt.c \
842 src/shared/boot-timestamps.h \
843 src/shared/boot-timestamps.c \
846 src/shared/smack-util.c \
847 src/shared/smack-util.h \
848 src/shared/apparmor-util.c \
849 src/shared/apparmor-util.h \
850 src/shared/ima-util.c \
851 src/shared/ima-util.h \
852 src/shared/ptyfwd.c \
853 src/shared/ptyfwd.h \
854 src/shared/errno-list.c \
855 src/shared/errno-list.h \
856 src/shared/af-list.c \
857 src/shared/af-list.h \
858 src/shared/arphrd-list.c \
859 src/shared/arphrd-list.h \
864 src/shared/condition-util.c \
865 src/shared/condition-util.h \
866 src/shared/bus-label.c \
867 src/shared/bus-label.h \
869 src/shared/clean-ipc.h \
870 src/shared/clean-ipc.c \
871 src/shared/login-shared.c \
872 src/shared/login-shared.h \
875 src/shared/barrier.c \
876 src/shared/barrier.h \
883 src/shared/base-filesystem.c \
884 src/shared/base-filesystem.h \
885 src/shared/memfd-util.c \
886 src/shared/memfd-util.h \
887 src/shared/uid-range.c \
888 src/shared/uid-range.h \
889 src/shared/nss-util.h
892 libsystemd_shared_la_SOURCES += \
893 src/shared/utmp-wtmp.c
896 nodist_libsystemd_shared_la_SOURCES = \
897 src/shared/errno-from-name.h \
898 src/shared/errno-to-name.h \
899 src/shared/af-from-name.h \
900 src/shared/af-to-name.h \
901 src/shared/arphrd-from-name.h \
902 src/shared/arphrd-to-name.h
904 libsystemd_shared_la_CFLAGS = \
909 # ------------------------------------------------------------------------------
910 noinst_LTLIBRARIES += \
913 libsystemd_units_la_SOURCES = \
914 src/shared/install.c \
915 src/shared/install.h \
916 src/shared/install-printf.c \
917 src/shared/install-printf.h \
918 src/shared/path-lookup.c \
919 src/shared/path-lookup.h \
920 src/shared/specifier.c \
921 src/shared/specifier.h
923 # ------------------------------------------------------------------------------
924 noinst_LTLIBRARIES += \
927 libsystemd_label_la_SOURCES = \
928 src/shared/socket-label.c \
931 src/shared/selinux-util.c \
932 src/shared/selinux-util.h \
933 src/shared/mkdir-label.c \
934 src/shared/ask-password-api.c \
935 src/shared/ask-password-api.h \
936 src/shared/switch-root.h \
937 src/shared/switch-root.c \
938 src/shared/fileio-label.c \
939 src/shared/fileio-label.h \
940 src/shared/dev-setup.c \
941 src/shared/dev-setup.h \
942 src/shared/dropin.c \
943 src/shared/dropin.h \
944 src/shared/generator.h \
945 src/shared/generator.c
947 libsystemd_label_la_CFLAGS = \
951 libsystemd_label_la_LIBADD = \
954 # -----------------------------------------------------------------------------
957 dist_systemunit_DATA += \
958 units/ldconfig.service
960 SYSINIT_TARGET_WANTS += \
964 # ------------------------------------------------------------------------------
967 noinst_LTLIBRARIES += \
968 libsystemd-seccomp.la
970 libsystemd_seccomp_la_SOURCES = \
971 src/shared/seccomp-util.h \
972 src/shared/seccomp-util.c
974 libsystemd_seccomp_la_CFLAGS = \
978 libsystemd_seccomp_la_LIBADD = \
982 # ------------------------------------------------------------------------------
983 noinst_LTLIBRARIES += \
986 libsystemd_logs_la_SOURCES = \
987 src/shared/logs-show.c \
988 src/shared/logs-show.h
990 # ------------------------------------------------------------------------------
991 noinst_LTLIBRARIES += \
992 libsystemd-capability.la
994 libsystemd_capability_la_SOURCES = \
995 src/shared/capability.c \
996 src/shared/capability.h
998 libsystemd_capability_la_CFLAGS = \
1002 libsystemd_capability_la_LIBADD = \
1005 # ------------------------------------------------------------------------------
1007 noinst_LTLIBRARIES += \
1010 libsystemd_acl_la_SOURCES = \
1011 src/shared/acl-util.c \
1012 src/shared/acl-util.h
1014 libsystemd_acl_la_CFLAGS = \
1018 libsystemd_acl_la_LIBADD = \
1022 # ------------------------------------------------------------------------------
1023 noinst_LTLIBRARIES += \
1026 libsystemd_core_la_SOURCES = \
1029 src/core/unit-printf.c \
1030 src/core/unit-printf.h \
1033 src/core/manager.c \
1034 src/core/manager.h \
1035 src/core/transaction.c \
1036 src/core/transaction.h \
1037 src/core/load-fragment.c \
1038 src/core/load-fragment.h \
1039 src/core/service.c \
1040 src/core/service.h \
1043 src/core/busname.c \
1044 src/core/busname.h \
1045 src/core/bus-common.c \
1046 src/core/bus-common.h \
1047 src/core/bus-endpoint.c \
1048 src/core/bus-endpoint.h \
1051 src/core/snapshot.c \
1052 src/core/snapshot.h \
1057 src/core/automount.c \
1058 src/core/automount.h \
1069 src/core/load-dropin.c \
1070 src/core/load-dropin.h \
1071 src/core/execute.c \
1072 src/core/execute.h \
1077 src/core/dbus-manager.c \
1078 src/core/dbus-manager.h \
1079 src/core/dbus-unit.c \
1080 src/core/dbus-unit.h \
1081 src/core/dbus-job.c \
1082 src/core/dbus-job.h \
1083 src/core/dbus-service.c \
1084 src/core/dbus-service.h \
1085 src/core/dbus-socket.c \
1086 src/core/dbus-socket.h \
1087 src/core/dbus-busname.c \
1088 src/core/dbus-busname.h \
1089 src/core/dbus-target.c \
1090 src/core/dbus-target.h \
1091 src/core/dbus-snapshot.c \
1092 src/core/dbus-snapshot.h \
1093 src/core/dbus-device.c \
1094 src/core/dbus-device.h \
1095 src/core/dbus-mount.c \
1096 src/core/dbus-mount.h \
1097 src/core/dbus-automount.c \
1098 src/core/dbus-automount.h \
1099 src/core/dbus-swap.c \
1100 src/core/dbus-swap.h \
1101 src/core/dbus-timer.c \
1102 src/core/dbus-timer.h \
1103 src/core/dbus-path.c \
1104 src/core/dbus-path.h \
1105 src/core/dbus-slice.c \
1106 src/core/dbus-slice.h \
1107 src/core/dbus-scope.c \
1108 src/core/dbus-scope.h \
1109 src/core/dbus-execute.c \
1110 src/core/dbus-execute.h \
1111 src/core/dbus-kill.c \
1112 src/core/dbus-kill.h \
1113 src/core/dbus-cgroup.c \
1114 src/core/dbus-cgroup.h \
1117 src/core/selinux-access.c \
1118 src/core/selinux-access.h \
1119 src/core/selinux-setup.c \
1120 src/core/selinux-setup.h \
1121 src/core/smack-setup.c \
1122 src/core/smack-setup.h \
1123 src/core/ima-setup.c \
1124 src/core/ima-setup.h \
1125 src/core/locale-setup.h \
1126 src/core/locale-setup.c \
1127 src/core/hostname-setup.c \
1128 src/core/hostname-setup.h \
1129 src/core/machine-id-setup.c \
1130 src/core/machine-id-setup.h \
1131 src/core/mount-setup.c \
1132 src/core/mount-setup.h \
1133 src/core/loopback-setup.h \
1134 src/core/loopback-setup.c \
1135 src/core/condition.c \
1136 src/core/condition.h \
1137 src/core/namespace.c \
1138 src/core/namespace.h \
1140 src/core/sysfs-show.h \
1141 src/core/killall.h \
1142 src/core/killall.c \
1143 src/core/audit-fd.c \
1144 src/core/audit-fd.h \
1145 src/core/show-status.c \
1146 src/core/show-status.h \
1147 src/core/failure-action.c \
1148 src/core/failure-action.h
1151 libsystemd_core_la_SOURCES += \
1152 src/core/kmod-setup.c \
1153 src/core/kmod-setup.h
1156 nodist_libsystemd_core_la_SOURCES = \
1157 src/core/load-fragment-gperf.c \
1158 src/core/load-fragment-gperf-nulstr.c
1160 libsystemd_core_la_CFLAGS = \
1166 $(APPARMOR_CFLAGS) \
1170 libsystemd_core_la_LIBADD = \
1171 libsystemd-capability.la \
1172 libsystemd-units.la \
1173 libsystemd-label.la \
1174 libudev-internal.la \
1175 libsystemd-shared.la \
1176 libsystemd-internal.la \
1185 libsystemd_core_la_LIBADD += \
1186 libsystemd-seccomp.la
1189 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1190 $(AM_V_at)$(MKDIR_P) $(dir $@)
1191 $(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 ";" }' < $< > $@
1194 src/core/load-fragment-gperf.gperf.m4
1197 src/core/load-fragment-gperf.gperf \
1198 src/core/load-fragment-gperf.c \
1199 src/core/load-fragment-gperf-nulstr.c \
1200 src/shared/errno-list.txt \
1201 src/shared/errno-from-name.gperf \
1202 src/shared/af-list.txt \
1203 src/shared/af-from-name.gperf \
1204 src/shared/arphrd-list.txt \
1205 src/shared/arphrd-from-name.gperf \
1206 src/shared/dns_type-list.txt \
1207 src/shared/dns_type-from-name.gperf
1210 src/shared/errno-from-name.h \
1211 src/shared/errno-to-name.h \
1212 src/shared/af-from-name.h \
1213 src/shared/af-to-name.h \
1214 src/shared/arphrd-from-name.h \
1215 src/shared/arphrd-to-name.h \
1216 src/resolve/dns_type-from-name.h \
1217 src/resolve/dns_type-to-name.h
1219 %-from-name.gperf: %-list.txt
1220 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1222 %-from-name.h: %-from-name.gperf
1223 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1226 src/shared/errno-list.txt:
1227 $(AM_V_at)$(MKDIR_P) $(dir $@)
1228 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1230 src/shared/errno-to-name.h: src/shared/errno-list.txt
1231 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1234 src/shared/af-list.txt:
1235 $(AM_V_at)$(MKDIR_P) $(dir $@)
1236 $(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; }' >$@
1238 src/shared/af-to-name.h: src/shared/af-list.txt
1239 $(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 "};"}' <$< >$@
1241 src/shared/arphrd-list.txt:
1242 $(AM_V_at)$(MKDIR_P) $(dir $@)
1243 $(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_//' >$@
1245 src/shared/arphrd-to-name.h: src/shared/arphrd-list.txt
1246 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1248 src/shared/arphrd-from-name.gperf: src/shared/arphrd-list.txt
1249 $(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 }' <$< >$@
1252 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1253 $(AM_V_at)$(MKDIR_P) $(dir $@)
1254 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1256 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1257 $(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" }' <$< >$@
1259 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1260 $(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 }' <$< >$@
1262 # ------------------------------------------------------------------------------
1271 libsystemd-core.la \
1274 dist_pkgsysconf_DATA += \
1275 src/core/system.conf \
1278 dist_dbuspolicy_DATA += \
1279 src/core/org.freedesktop.systemd1.conf
1281 dist_dbussystemservice_DATA += \
1282 src/core/org.freedesktop.systemd1.service
1284 polkitpolicy_in_in_files += \
1285 src/core/org.freedesktop.systemd1.policy.in.in
1287 pkgconfigdata_DATA = \
1290 nodist_rpmmacros_DATA = \
1291 src/core/macros.systemd
1294 src/core/systemd.pc.in \
1295 src/core/macros.systemd.in
1298 src/core/macros.systemd \
1299 src/core/org.freedesktop.systemd1.policy.in
1301 # ------------------------------------------------------------------------------
1343 test-strip-tab-ansi \
1362 test-condition-util \
1373 test/daughter.service \
1378 test/grandchild.service \
1380 test/hello-after-sleep.target \
1381 test/hello.service \
1383 test/parent-deep.slice \
1386 test/sched_idle_bad.service \
1387 test/sched_idle_ok.service \
1388 test/sched_rr_bad.service \
1389 test/sched_rr_change.service \
1390 test/sched_rr_ok.service \
1391 test/shutdown.target \
1392 test/sleep.service \
1393 test/sockets.target \
1395 test/sysinit.target \
1396 test/testsuite.target \
1397 test/timers.target \
1398 test/unstoppable.service \
1399 test/bus-policy/hello.conf \
1400 test/bus-policy/methods.conf \
1401 test/bus-policy/ownerships.conf \
1402 test/bus-policy/signals.conf
1406 src/test/test-helper.h
1408 test_device_nodes_SOURCES = \
1409 src/test/test-device-nodes.c
1411 test_device_nodes_LDADD = \
1412 libsystemd-shared.la
1414 test_engine_SOURCES = \
1415 src/test/test-engine.c
1417 test_engine_CFLAGS = \
1421 test_engine_LDADD = \
1422 libsystemd-core.la \
1425 test_job_type_SOURCES = \
1426 src/test/test-job-type.c
1428 test_job_type_CFLAGS = \
1432 test_job_type_LDADD = \
1433 libsystemd-core.la \
1446 test_loopback_SOURCES = \
1447 src/test/test-loopback.c
1449 test_loopback_LDADD = \
1452 test_hostname_SOURCES = \
1453 src/test/test-hostname.c
1455 test_hostname_LDADD = \
1462 test_boot_timestamp_SOURCES = \
1463 src/test/test-boot-timestamps.c
1465 test_boot_timestamp_LDADD = \
1466 libsystemd-shared.la
1469 test_unit_name_SOURCES = \
1470 src/test/test-unit-name.c
1472 test_unit_name_CFLAGS = \
1476 test_unit_name_LDADD = \
1477 libsystemd-core.la \
1480 test_unit_file_SOURCES = \
1481 src/test/test-unit-file.c
1483 test_unit_file_CFLAGS = \
1487 test_unit_file_LDADD = \
1488 libsystemd-core.la \
1491 test_utf8_SOURCES = \
1492 src/test/test-utf8.c
1495 libsystemd-shared.la
1497 test_capability_SOURCES = \
1498 src/test/test-capability.c
1500 test_capability_LDADD = \
1501 libsystemd-shared.la \
1502 libsystemd-capability.la
1504 test_async_SOURCES = \
1505 src/test/test-async.c
1507 test_async_LDADD = \
1508 libsystemd-shared.la
1510 test_locale_util_SOURCES = \
1511 src/test/test-locale-util.c
1513 test_locale_util_LDADD = \
1514 libsystemd-shared.la
1516 test_copy_SOURCES = \
1517 src/test/test-copy.c
1520 libsystemd-shared.la
1522 test_condition_util_SOURCES = \
1523 src/test/test-condition-util.c
1525 test_condition_util_LDADD = \
1526 libsystemd-shared.la \
1527 libsystemd-internal.la \
1528 libsystemd-capability.la \
1531 test_fdset_SOURCES = \
1532 src/test/test-fdset.c
1534 test_fdset_LDADD = \
1537 test_ratelimit_SOURCES = \
1538 src/test/test-ratelimit.c
1540 test_ratelimit_LDADD = \
1541 libsystemd-shared.la
1543 test_util_SOURCES = \
1544 src/test/test-util.c
1550 test_uid_range_SOURCES = \
1551 src/test/test-uid-range.c
1553 test_uid_range_LDADD = \
1556 test_socket_util_SOURCES = \
1557 src/test/test-socket-util.c
1559 test_socket_util_LDADD = \
1562 test_ring_SOURCES = \
1563 src/test/test-ring.c
1568 test_barrier_SOURCES = \
1569 src/test/test-barrier.c
1571 test_barrier_LDADD = \
1574 test_pty_SOURCES = \
1580 test_tmpfiles_SOURCES = \
1581 src/test/test-tmpfiles.c
1583 test_tmpfiles_LDADD = \
1584 libsystemd-shared.la
1586 test_namespace_SOURCES = \
1587 src/test/test-namespace.c
1589 test_namespace_LDADD = \
1593 src/test/test-hashmap-ordered.c
1596 src/test/test-hashmap-ordered.c
1598 src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c
1599 $(AM_V_at)$(MKDIR_P) $(dir $@)
1600 $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \
1601 { if (!match($$0, "^#include")) \
1602 gsub(/hashmap/, "ordered_hashmap"); \
1603 gsub(/HASHMAP/, "ORDERED_HASHMAP"); \
1604 gsub(/Hashmap/, "OrderedHashmap"); \
1607 nodist_test_hashmap_SOURCES = \
1608 src/test/test-hashmap-ordered.c
1610 test_hashmap_SOURCES = \
1611 src/test/test-hashmap.c \
1612 src/test/test-hashmap-plain.c
1614 test_hashmap_LDADD = \
1617 test_set_SOURCES = \
1623 test_xml_SOURCES = \
1627 libsystemd-shared.la
1629 test_list_SOURCES = \
1630 src/test/test-list.c
1632 test_unaligned_LDADD = \
1635 test_unaligned_SOURCES = \
1636 src/test/test-unaligned.c
1641 test_tables_SOURCES = \
1642 src/test/test-tables.c \
1643 src/shared/test-tables.h \
1644 src/bus-proxyd/bus-policy.c \
1645 src/bus-proxyd/bus-policy.h \
1646 src/journal/journald-server.c \
1647 src/journal/journald-server.h
1649 test_tables_CPPFLAGS = \
1651 -I$(top_srcdir)/src/bus-proxyd
1653 test_tables_CFLAGS = \
1657 test_tables_LDADD = \
1658 libsystemd-logs.la \
1659 libsystemd-journal-internal.la \
1660 libsystemd-journal-core.la \
1661 libsystemd-core.la \
1665 test_prioq_SOURCES = \
1666 src/test/test-prioq.c
1668 test_prioq_LDADD = \
1671 test_fileio_SOURCES = \
1672 src/test/test-fileio.c
1674 test_fileio_LDADD = \
1677 test_time_SOURCES = \
1678 src/test/test-time.c
1683 test_architecture_SOURCES = \
1684 src/test/test-architecture.c
1686 test_architecture_LDADD = \
1687 libsystemd-shared.la
1689 test_log_SOURCES = \
1695 test_ipcrm_SOURCES = \
1696 src/test/test-ipcrm.c
1698 test_ipcrm_LDADD = \
1699 libsystemd-shared.la \
1702 test_rtnl_manual_SOURCES = \
1703 src/test/test-rtnl-manual.c
1705 test_rtnl_manual_CFLAGS = \
1709 test_rtnl_manual_LDADD = \
1710 libsystemd-internal.la \
1711 libsystemd-shared.la \
1714 test_ellipsize_SOURCES = \
1715 src/test/test-ellipsize.c
1717 test_ellipsize_LDADD = \
1720 test_date_SOURCES = \
1721 src/test/test-date.c
1726 test_sleep_SOURCES = \
1727 src/test/test-sleep.c
1729 test_sleep_LDADD = \
1732 test_replace_var_SOURCES = \
1733 src/test/test-replace-var.c
1735 test_replace_var_LDADD = \
1736 libsystemd-shared.la
1738 test_calendarspec_SOURCES = \
1739 src/test/test-calendarspec.c
1741 test_calendarspec_LDADD = \
1742 libsystemd-shared.la
1744 test_strip_tab_ansi_SOURCES = \
1745 src/test/test-strip-tab-ansi.c
1747 test_strip_tab_ansi_LDADD = \
1748 libsystemd-shared.la
1750 test_daemon_SOURCES = \
1751 src/test/test-daemon.c
1753 test_daemon_LDADD = \
1754 libsystemd-internal.la \
1755 libsystemd-shared.la
1757 test_cgroup_SOURCES = \
1758 src/test/test-cgroup.c
1760 test_cgroup_LDADD = \
1761 libsystemd-label.la \
1762 libsystemd-shared.la \
1763 libsystemd-internal.la
1765 test_cgroup_mask_SOURCES = \
1766 src/test/test-cgroup-mask.c
1768 test_cgroup_mask_CPPFLAGS = \
1770 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1772 test_cgroup_mask_CFLAGS = \
1776 test_cgroup_mask_LDADD = \
1777 libsystemd-core.la \
1780 test_cgroup_util_SOURCES = \
1781 src/test/test-cgroup-util.c
1783 test_cgroup_util_LDADD = \
1784 libsystemd-label.la \
1785 libsystemd-internal.la \
1786 libsystemd-shared.la
1788 test_env_replace_SOURCES = \
1789 src/test/test-env-replace.c
1791 test_env_replace_LDADD = \
1792 libsystemd-shared.la
1794 test_strbuf_SOURCES = \
1795 src/test/test-strbuf.c
1797 test_strbuf_LDADD = \
1798 libsystemd-shared.la
1800 test_strv_SOURCES = \
1801 src/test/test-strv.c
1804 libsystemd-units.la \
1805 libsystemd-internal.la \
1806 libsystemd-shared.la
1808 test_path_util_SOURCES = \
1809 src/test/test-path-util.c
1811 test_path_util_LDADD = \
1812 libsystemd-shared.la
1814 test_strxcpyx_SOURCES = \
1815 src/test/test-strxcpyx.c
1817 test_strxcpyx_LDADD = \
1818 libsystemd-shared.la
1820 test_install_SOURCES = \
1821 src/test/test-install.c
1823 test_install_LDADD = \
1824 libsystemd-units.la \
1825 libsystemd-label.la \
1826 libsystemd-shared.la \
1827 libsystemd-internal.la
1829 test_watchdog_SOURCES = \
1830 src/test/test-watchdog.c
1832 test_watchdog_LDADD = \
1833 libsystemd-shared.la
1835 test_sched_prio_SOURCES = \
1836 src/test/test-sched-prio.c
1838 test_sched_prio_CPPFLAGS = \
1840 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1842 test_sched_prio_CFLAGS = \
1846 test_sched_prio_LDADD = \
1847 libsystemd-core.la \
1850 test_conf_files_SOURCES = \
1851 src/test/test-conf-files.c
1853 test_conf_files_LDADD = \
1854 libsystemd-shared.la
1856 test_bus_policy_SOURCES = \
1857 src/bus-proxyd/test-bus-policy.c \
1858 src/bus-proxyd/bus-policy.c \
1859 src/bus-proxyd/bus-policy.h
1861 test_bus_policy_LDADD = \
1862 libsystemd-capability.la \
1863 libsystemd-internal.la \
1864 libsystemd-shared.la
1866 # ------------------------------------------------------------------------------
1867 ## .PHONY so it always rebuilds it
1868 .PHONY: coverage lcov-run lcov-report coverage-sync
1870 # run lcov from scratch, always
1875 coverage_dir = coverage
1876 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1879 # reset run coverage tests
1881 @rm -rf $(coverage_dir)
1882 lcov $(coverage_opts) --zerocounters
1885 # generate report based on current coverage data
1887 $(MKDIR_P) $(coverage_dir)
1888 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1889 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1890 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1891 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1893 # lcov doesn't work properly with vpath builds, make sure that bad
1894 # output is not uploaded by mistake.
1895 coverage-sync: coverage
1896 test "$(builddir)" = "$(srcdir)"
1897 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1900 lcov-run lcov-report:
1901 echo "Need to reconfigure with --enable-coverage"
1904 # ------------------------------------------------------------------------------
1905 systemd_analyze_SOURCES = \
1906 src/analyze/analyze.c \
1907 src/analyze/analyze-verify.c \
1908 src/analyze/analyze-verify.h
1910 systemd_verify_CFLAGS = \
1914 systemd_analyze_LDADD = \
1915 libsystemd-core.la \
1916 libsystemd-internal.la \
1917 libsystemd-shared.la \
1920 # ------------------------------------------------------------------------------
1921 systemd_initctl_SOURCES = \
1922 src/initctl/initctl.c
1924 systemd_initctl_LDADD = \
1925 libsystemd-internal.la \
1926 libsystemd-shared.la
1928 # ------------------------------------------------------------------------------
1929 systemd_update_utmp_SOURCES = \
1930 src/update-utmp/update-utmp.c
1932 systemd_update_utmp_CFLAGS = \
1936 systemd_update_utmp_LDADD = \
1937 libsystemd-internal.la \
1938 libsystemd-shared.la \
1941 # ------------------------------------------------------------------------------
1942 systemd_update_done_SOURCES = \
1943 src/update-done/update-done.c
1945 systemd_update_done_LDADD = \
1946 libsystemd-internal.la \
1947 libsystemd-label.la \
1948 libsystemd-shared.la
1950 # ------------------------------------------------------------------------------
1951 systemd_shutdownd_SOURCES = \
1952 src/shutdownd/shutdownd.c
1954 systemd_shutdownd_LDADD = \
1955 libsystemd-label.la \
1956 libsystemd-internal.la \
1957 libsystemd-shared.la
1960 src/systemd/sd-shutdown.h
1962 # ------------------------------------------------------------------------------
1963 systemd_shutdown_SOURCES = \
1966 src/core/shutdown.c \
1967 src/core/mount-setup.c \
1968 src/core/mount-setup.h \
1969 src/core/killall.h \
1972 systemd_shutdown_LDADD = \
1973 libsystemd-label.la \
1974 libudev-internal.la \
1975 libsystemd-shared.la
1977 # ------------------------------------------------------------------------------
1979 systemd_modules_load_SOURCES = \
1980 src/modules-load/modules-load.c
1982 systemd_modules_load_CFLAGS = \
1986 systemd_modules_load_LDADD = \
1987 libsystemd-shared.la \
1990 rootlibexec_PROGRAMS += \
1991 systemd-modules-load
1993 nodist_systemunit_DATA += \
1994 units/systemd-modules-load.service
1996 SYSINIT_TARGET_WANTS += \
1997 systemd-modules-load.service
2000 nodist_systemunit_DATA += \
2001 units/kmod-static-nodes.service
2003 SYSINIT_TARGET_WANTS += \
2004 kmod-static-nodes.service
2009 units/systemd-modules-load.service.in \
2010 units/kmod-static-nodes.service.in
2012 # ------------------------------------------------------------------------------
2014 systemd_tmpfiles_SOURCES = \
2015 src/tmpfiles/tmpfiles.c
2017 systemd_tmpfiles_LDADD = \
2018 libsystemd-units.la \
2019 libsystemd-label.la \
2020 libsystemd-capability.la \
2021 libsystemd-internal.la \
2022 libsystemd-shared.la
2024 rootbin_PROGRAMS += \
2027 dist_systemunit_DATA += \
2028 units/systemd-tmpfiles-clean.timer
2030 nodist_systemunit_DATA += \
2031 units/systemd-tmpfiles-setup-dev.service \
2032 units/systemd-tmpfiles-setup.service \
2033 units/systemd-tmpfiles-clean.service
2035 nodist_tmpfiles_DATA = \
2038 dist_tmpfiles_DATA = \
2039 tmpfiles.d/systemd.conf \
2040 tmpfiles.d/systemd-nologin.conf \
2041 tmpfiles.d/systemd-remote.conf \
2042 tmpfiles.d/tmp.conf \
2043 tmpfiles.d/x11.conf \
2047 dist_tmpfiles_DATA += \
2048 tmpfiles.d/legacy.conf
2051 SYSINIT_TARGET_WANTS += \
2052 systemd-tmpfiles-setup-dev.service \
2053 systemd-tmpfiles-setup.service
2055 dist_zshcompletion_DATA += \
2056 shell-completion/zsh/_systemd-tmpfiles
2058 TIMERS_TARGET_WANTS += \
2059 systemd-tmpfiles-clean.timer
2063 $(sysconfdir)/tmpfiles.d
2067 tmpfiles.d/etc.conf.m4 \
2068 units/systemd-tmpfiles-setup-dev.service.in \
2069 units/systemd-tmpfiles-setup.service.in \
2070 units/systemd-tmpfiles-clean.service.in
2075 # ------------------------------------------------------------------------------
2077 systemd_sysusers_SOURCES = \
2078 src/sysusers/sysusers.c
2080 systemd_sysusers_LDADD = \
2081 libsystemd-units.la \
2082 libsystemd-label.la \
2083 libsystemd-capability.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-capability.la \
2133 libsystemd-internal.la \
2134 libsystemd-shared.la \
2137 rootbin_PROGRAMS += \
2140 nodist_systemunit_DATA += \
2141 units/systemd-firstboot.service
2144 units/systemd-firstboot.service.in
2146 SYSINIT_TARGET_WANTS += \
2147 systemd-firstboot.service
2150 # ------------------------------------------------------------------------------
2151 systemd_machine_id_setup_SOURCES = \
2152 src/machine-id-setup/machine-id-setup-main.c \
2153 src/core/machine-id-setup.c \
2154 src/core/machine-id-setup.h
2156 systemd_machine_id_setup_LDADD = \
2157 libsystemd-label.la \
2158 libsystemd-internal.la \
2159 libsystemd-shared.la
2161 # ------------------------------------------------------------------------------
2162 systemd_sysctl_SOURCES = \
2165 systemd_sysctl_LDADD = \
2166 libsystemd-shared.la
2168 # ------------------------------------------------------------------------------
2169 systemd_sleep_SOURCES = \
2172 systemd_sleep_LDADD = \
2173 libsystemd-shared.la
2175 # ------------------------------------------------------------------------------
2176 systemd_fsck_SOURCES = \
2179 systemd_fsck_LDADD = \
2180 libsystemd-internal.la \
2181 libudev-internal.la \
2182 libsystemd-shared.la
2184 # ------------------------------------------------------------------------------
2185 systemd_ac_power_SOURCES = \
2186 src/ac-power/ac-power.c
2188 systemd_ac_power_LDADD = \
2189 libudev-internal.la \
2190 libsystemd-shared.la
2192 # ------------------------------------------------------------------------------
2193 systemd_detect_virt_SOURCES = \
2194 src/detect-virt/detect-virt.c
2196 systemd_detect_virt_LDADD = \
2197 libsystemd-shared.la
2199 INSTALL_EXEC_HOOKS += \
2200 systemd-detect-virt-install-hook
2202 # ------------------------------------------------------------------------------
2203 systemd_delta_SOURCES = \
2206 systemd_delta_LDADD = \
2207 libsystemd-shared.la
2209 # ------------------------------------------------------------------------------
2210 systemd_getty_generator_SOURCES = \
2211 src/getty-generator/getty-generator.c
2213 systemd_getty_generator_LDADD = \
2214 libsystemd-label.la \
2215 libsystemd-shared.la
2217 # ------------------------------------------------------------------------------
2218 systemd_debug_generator_SOURCES = \
2219 src/debug-generator/debug-generator.c
2221 systemd_debug_generator_LDADD = \
2222 libsystemd-label.la \
2223 libsystemd-shared.la
2225 # ------------------------------------------------------------------------------
2226 systemd_fstab_generator_SOURCES = \
2227 src/fstab-generator/fstab-generator.c \
2228 src/core/mount-setup.c
2230 systemd_fstab_generator_LDADD = \
2231 libsystemd-label.la \
2232 libsystemd-shared.la
2234 # ------------------------------------------------------------------------------
2235 systemd_system_update_generator_SOURCES = \
2236 src/system-update-generator/system-update-generator.c
2238 systemd_system_update_generator_LDADD = \
2239 libsystemd-label.la \
2240 libsystemd-shared.la
2242 # ------------------------------------------------------------------------------
2244 systemgenerator_PROGRAMS += \
2245 systemd-hibernate-resume-generator
2247 rootlibexec_PROGRAMS += \
2248 systemd-hibernate-resume
2250 systemd_hibernate_resume_SOURCES = \
2251 src/hibernate-resume/hibernate-resume.c
2253 systemd_hibernate_resume_LDADD = \
2254 libsystemd-internal.la \
2255 libsystemd-shared.la
2257 systemd_hibernate_resume_generator_SOURCES = \
2258 src/hibernate-resume/hibernate-resume-generator.c
2260 systemd_hibernate_resume_generator_LDADD = \
2261 libsystemd-label.la \
2262 libsystemd-shared.la
2265 units/systemd-hibernate.service.in \
2266 units/systemd-hibernate-resume@.service.in \
2267 units/systemd-hybrid-sleep.service.in
2269 dist_systemunit_DATA += \
2270 units/hibernate.target \
2271 units/hybrid-sleep.target
2273 nodist_systemunit_DATA += \
2274 units/systemd-hibernate.service \
2275 units/systemd-hibernate-resume@.service \
2276 units/systemd-hybrid-sleep.service
2279 # ------------------------------------------------------------------------------
2281 systemgenerator_PROGRAMS += \
2282 systemd-efi-boot-generator
2284 systemd_efi_boot_generator_SOURCES = \
2285 src/efi-boot-generator/efi-boot-generator.c
2287 systemd_efi_boot_generator_LDADD = \
2288 libsystemd-label.la \
2289 libsystemd-shared.la
2291 # ------------------------------------------------------------------------------
2294 src/boot/boot-loader.h \
2295 src/boot/bootctl.c \
2296 src/boot/boot-loader.c \
2300 libsystemd-shared.la \
2301 libsystemd-internal.la
2306 dist_bashcompletion_DATA += \
2307 shell-completion/bash/bootctl
2309 dist_zshcompletion_DATA += \
2310 shell-completion/zsh/_bootctl
2314 # ------------------------------------------------------------------------------
2316 systemgenerator_PROGRAMS += \
2317 systemd-gpt-auto-generator
2319 systemd_gpt_auto_generator_SOURCES = \
2320 src/gpt-auto-generator/gpt-auto-generator.c \
2321 src/shared/blkid-util.h
2323 systemd_gpt_auto_generator_LDADD = \
2324 libsystemd-label.la \
2325 libsystemd-internal.la \
2326 libudev-internal.la \
2327 libsystemd-shared.la \
2330 systemd_gpt_auto_generator_CFLAGS = \
2335 # ------------------------------------------------------------------------------
2337 systemgenerator_PROGRAMS += \
2338 systemd-dbus1-generator
2340 systemd_dbus1_generator_SOURCES = \
2341 src/dbus1-generator/dbus1-generator.c
2343 systemd_dbus1_generator_LDADD = \
2344 libsystemd-label.la \
2345 libsystemd-shared.la \
2346 libsystemd-internal.la
2348 dbus1-generator-install-hook:
2349 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2350 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2351 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2353 dbus1-generator-uninstall-hook:
2354 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2356 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2357 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2360 # ------------------------------------------------------------------------------
2361 systemd_sysv_generator_SOURCES = \
2362 src/sysv-generator/sysv-generator.c
2364 systemd_sysv_generator_LDADD = \
2365 libsystemd-core.la \
2366 libsystemd-label.la \
2367 libsystemd-shared.la
2369 # ------------------------------------------------------------------------------
2370 systemd_rc_local_generator_SOURCES = \
2371 src/rc-local-generator/rc-local-generator.c
2373 systemd_rc_local_generator_LDADD = \
2374 libsystemd-label.la \
2375 libsystemd-shared.la
2377 # ------------------------------------------------------------------------------
2378 systemd_remount_fs_SOURCES = \
2379 src/remount-fs/remount-fs.c \
2380 src/core/mount-setup.c \
2381 src/core/mount-setup.h
2383 systemd_remount_fs_LDADD = \
2384 libsystemd-label.la \
2385 libsystemd-shared.la
2387 # ------------------------------------------------------------------------------
2388 systemd_cgroups_agent_SOURCES = \
2389 src/cgroups-agent/cgroups-agent.c
2391 systemd_cgroups_agent_LDADD = \
2392 libsystemd-internal.la \
2393 libsystemd-shared.la
2395 # ------------------------------------------------------------------------------
2396 systemd_escape_SOURCES = \
2399 systemd_escape_LDADD = \
2400 libsystemd-shared.la
2402 # -----------------------------------------------------------------------------
2403 systemctl_SOURCES = \
2404 src/systemctl/systemctl.c
2407 libsystemd-units.la \
2408 libsystemd-label.la \
2409 libsystemd-internal.la \
2410 libsystemd-logs.la \
2411 libsystemd-journal-internal.la \
2412 libsystemd-shared.la
2414 # ------------------------------------------------------------------------------
2415 systemd_notify_SOURCES = \
2418 systemd_notify_LDADD = \
2419 libsystemd-internal.la \
2420 libsystemd-shared.la
2422 # ------------------------------------------------------------------------------
2423 systemd_path_SOURCES = \
2426 systemd_path_LDADD = \
2427 libsystemd-internal.la \
2428 libsystemd-shared.la
2430 # ------------------------------------------------------------------------------
2431 systemd_ask_password_SOURCES = \
2432 src/ask-password/ask-password.c
2434 systemd_ask_password_LDADD = \
2435 libsystemd-label.la \
2436 libsystemd-shared.la
2438 # ------------------------------------------------------------------------------
2439 systemd_reply_password_SOURCES = \
2440 src/reply-password/reply-password.c
2442 systemd_reply_password_LDADD = \
2443 libsystemd-shared.la
2445 # ------------------------------------------------------------------------------
2446 systemd_cgls_SOURCES = \
2449 systemd_cgls_LDADD = \
2450 libsystemd-internal.la \
2451 libsystemd-shared.la
2453 # ------------------------------------------------------------------------------
2454 systemd_cgtop_SOURCES = \
2457 systemd_cgtop_LDADD = \
2458 libsystemd-shared.la
2460 # ------------------------------------------------------------------------------
2461 systemd_nspawn_SOURCES = \
2462 src/nspawn/nspawn.c \
2463 src/core/mount-setup.c \
2464 src/core/mount-setup.h \
2465 src/core/loopback-setup.c \
2466 src/core/loopback-setup.h
2468 systemd_nspawn_CFLAGS = \
2473 systemd_nspawn_LDADD = \
2474 libsystemd-label.la \
2475 libsystemd-capability.la \
2476 libsystemd-internal.la \
2477 libudev-internal.la \
2478 libsystemd-shared.la \
2482 systemd_nspawn_LDADD += \
2483 libsystemd-seccomp.la \
2487 # ------------------------------------------------------------------------------
2488 systemd_run_SOURCES = \
2491 systemd_run_LDADD = \
2492 libsystemd-label.la \
2493 libsystemd-capability.la \
2494 libsystemd-internal.la \
2495 libsystemd-shared.la
2497 # ------------------------------------------------------------------------------
2498 systemd_bus_proxyd_SOURCES = \
2499 src/bus-proxyd/bus-proxyd.c \
2500 src/bus-proxyd/bus-policy.c \
2501 src/bus-proxyd/bus-policy.h
2503 systemd_bus_proxyd_LDADD = \
2504 libsystemd-capability.la \
2505 libsystemd-internal.la \
2506 libsystemd-shared.la
2508 bus-proxyd-install-hook:
2509 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
2510 $(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2511 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
2513 bus-proxyd-uninstall-hook:
2514 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2516 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
2517 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
2520 nodist_systemunit_DATA += \
2521 units/systemd-bus-proxyd@.service
2523 dist_systemunit_DATA += \
2524 units/systemd-bus-proxyd.socket
2526 nodist_userunit_DATA += \
2527 units/user/systemd-bus-proxyd@.service
2529 dist_userunit_DATA += \
2530 units/user/systemd-bus-proxyd.socket
2534 units/systemd-bus-proxyd@.service.in \
2535 units/user/systemd-bus-proxyd@.service.in
2537 # ------------------------------------------------------------------------------
2538 systemd_tty_ask_password_agent_SOURCES = \
2539 src/tty-ask-password-agent/tty-ask-password-agent.c
2541 systemd_tty_ask_password_agent_LDADD = \
2542 libsystemd-label.la \
2543 libsystemd-shared.la
2545 # ------------------------------------------------------------------------------
2546 libsystemd_internal_la_SOURCES = \
2547 src/systemd/sd-bus.h \
2548 src/systemd/sd-bus-protocol.h \
2549 src/systemd/sd-bus-vtable.h \
2550 src/systemd/sd-utf8.h \
2551 src/systemd/sd-event.h \
2552 src/systemd/sd-rtnl.h \
2553 src/systemd/sd-resolve.h \
2554 src/systemd/sd-login.h \
2555 src/systemd/sd-id128.h \
2556 src/systemd/sd-daemon.h \
2557 src/systemd/sd-path.h \
2558 src/systemd/sd-network.h \
2559 src/libsystemd/sd-bus/sd-bus.c \
2560 src/libsystemd/sd-bus/bus-control.c \
2561 src/libsystemd/sd-bus/bus-control.h \
2562 src/libsystemd/sd-bus/bus-error.c \
2563 src/libsystemd/sd-bus/bus-error.h \
2564 src/libsystemd/sd-bus/bus-internal.c \
2565 src/libsystemd/sd-bus/bus-internal.h \
2566 src/libsystemd/sd-bus/bus-socket.c \
2567 src/libsystemd/sd-bus/bus-socket.h \
2568 src/libsystemd/sd-bus/bus-kernel.c \
2569 src/libsystemd/sd-bus/bus-kernel.h \
2570 src/libsystemd/sd-bus/bus-container.c \
2571 src/libsystemd/sd-bus/bus-container.h \
2572 src/libsystemd/sd-bus/bus-message.c \
2573 src/libsystemd/sd-bus/bus-message.h \
2574 src/libsystemd/sd-bus/bus-creds.c \
2575 src/libsystemd/sd-bus/bus-creds.h \
2576 src/libsystemd/sd-bus/bus-signature.c \
2577 src/libsystemd/sd-bus/bus-signature.h \
2578 src/libsystemd/sd-bus/bus-type.c \
2579 src/libsystemd/sd-bus/bus-type.h \
2580 src/libsystemd/sd-bus/bus-match.c \
2581 src/libsystemd/sd-bus/bus-match.h \
2582 src/libsystemd/sd-bus/bus-bloom.c \
2583 src/libsystemd/sd-bus/bus-bloom.h \
2584 src/libsystemd/sd-bus/bus-introspect.c \
2585 src/libsystemd/sd-bus/bus-introspect.h \
2586 src/libsystemd/sd-bus/bus-objects.c \
2587 src/libsystemd/sd-bus/bus-objects.h \
2588 src/libsystemd/sd-bus/bus-gvariant.c \
2589 src/libsystemd/sd-bus/bus-gvariant.h \
2590 src/libsystemd/sd-bus/bus-convenience.c \
2591 src/libsystemd/sd-bus/bus-track.c \
2592 src/libsystemd/sd-bus/bus-track.h \
2593 src/libsystemd/sd-bus/bus-util.c \
2594 src/libsystemd/sd-bus/bus-util.h \
2595 src/libsystemd/sd-bus/bus-slot.c \
2596 src/libsystemd/sd-bus/bus-slot.h \
2597 src/libsystemd/sd-bus/bus-protocol.h \
2598 src/libsystemd/sd-bus/kdbus.h \
2599 src/libsystemd/sd-utf8/sd-utf8.c \
2600 src/libsystemd/sd-event/sd-event.c \
2601 src/libsystemd/sd-event/event-util.h \
2602 src/libsystemd/sd-rtnl/sd-rtnl.c \
2603 src/libsystemd/sd-rtnl/rtnl-internal.h \
2604 src/libsystemd/sd-rtnl/rtnl-message.c \
2605 src/libsystemd/sd-rtnl/rtnl-types.h \
2606 src/libsystemd/sd-rtnl/rtnl-types.c \
2607 src/libsystemd/sd-rtnl/rtnl-util.h \
2608 src/libsystemd/sd-rtnl/rtnl-util.c \
2609 src/libsystemd/sd-rtnl/local-addresses.h \
2610 src/libsystemd/sd-rtnl/local-addresses.c \
2611 src/libsystemd/sd-id128/sd-id128.c \
2612 src/libsystemd/sd-daemon/sd-daemon.c \
2613 src/libsystemd/sd-login/sd-login.c \
2614 src/libsystemd/sd-path/sd-path.c \
2615 src/libsystemd/sd-network/sd-network.c \
2616 src/libsystemd/sd-network/network-util.h \
2617 src/libsystemd/sd-network/network-util.c
2619 nodist_libsystemd_internal_la_SOURCES = \
2620 src/libsystemd/libsystemd.sym
2622 libsystemd_internal_la_CFLAGS = \
2626 libsystemd_internal_la_LIBADD = \
2629 libsystemd_resolve_la_SOURCES = \
2630 src/libsystemd/sd-resolve/sd-resolve.c \
2631 src/libsystemd/sd-resolve/resolve-util.h
2633 libsystemd_resolve_la_CFLAGS = \
2637 libsystemd_resolve_la_LIBADD = \
2640 noinst_LTLIBRARIES += \
2641 libsystemd-internal.la \
2642 libsystemd-resolve.la
2644 libsystemd_dump_la_SOURCES = \
2645 src/libsystemd/sd-bus/bus-dump.c \
2646 src/libsystemd/sd-bus/bus-dump.h
2648 libsystemd_dump_la_CFLAGS = \
2652 noinst_LTLIBRARIES += \
2656 src/libsystemd/libsystemd.sym.m4 \
2657 src/libsystemd/libsystemd.pc.in \
2658 src/libsystemd/sd-bus/DIFFERENCES \
2659 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2662 src/libsystemd/libsystemd.sym
2665 src/libsystemd/libsystemd.sym
2667 libsystemd_la_SOURCES = \
2668 $(libsystemd_internal_la_SOURCES) \
2669 $(libsystemd_resolve_la_SOURCES) \
2670 $(libsystemd_journal_internal_la_SOURCES)
2672 nodist_libsystemd_la_SOURCES = \
2673 $(nodist_libsystemd_internal_la_SOURCES)
2675 libsystemd_la_CFLAGS = \
2676 $(libsystemd_internal_la_CFLAGS) \
2677 $(libsystemd_resolve_la_CFLAGS) \
2678 $(libsystemd_journal_internal_la_CFLAGS)
2680 libsystemd_la_LDFLAGS = \
2682 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2683 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2685 libsystemd_la_LIBADD = \
2686 libsystemd-shared.la \
2687 $(libsystemd_internal_la_LIBADD) \
2688 $(libsystemd_journal_internal_la_LIBADD) \
2689 $(libsystemd_resolve_la_LIBADD)
2691 libsystemd-install-hook:
2692 libname=libsystemd.so && $(move-to-rootlibdir)
2694 libsystemd-uninstall-hook:
2695 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2697 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2698 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2700 pkgconfiglib_DATA += \
2701 src/libsystemd/libsystemd.pc
2703 pkginclude_HEADERS += \
2704 src/systemd/sd-login.h \
2705 src/systemd/sd-id128.h \
2706 src/systemd/sd-daemon.h
2709 pkginclude_HEADERS += \
2710 src/systemd/sd-bus.h \
2711 src/systemd/sd-bus-protocol.h \
2712 src/systemd/sd-bus-vtable.h \
2713 src/systemd/sd-utf8.h \
2714 src/systemd/sd-event.h \
2715 src/systemd/sd-rtnl.h \
2716 src/systemd/sd-resolve.h \
2717 src/systemd/sd-path.h
2720 lib_LTLIBRARIES += \
2725 test-bus-signature \
2731 test-bus-kernel-bloom \
2732 test-bus-kernel-benchmark \
2733 test-bus-zero-copy \
2734 test-bus-introspect \
2746 test_bus_marshal_SOURCES = \
2747 src/libsystemd/sd-bus/test-bus-marshal.c
2749 test_bus_marshal_LDADD = \
2750 libsystemd-internal.la \
2751 libsystemd-shared.la \
2752 libsystemd-dump.la \
2753 libsystemd-capability.la \
2758 test_bus_marshal_CFLAGS = \
2764 test_bus_signature_SOURCES = \
2765 src/libsystemd/sd-bus/test-bus-signature.c
2767 test_bus_signature_LDADD = \
2768 libsystemd-shared.la \
2769 libsystemd-internal.la
2771 test_bus_chat_SOURCES = \
2772 src/libsystemd/sd-bus/test-bus-chat.c
2774 test_bus_chat_CFLAGS = \
2778 test_bus_chat_LDADD = \
2779 libsystemd-internal.la \
2780 libsystemd-shared.la
2782 test_bus_cleanup_SOURCES = \
2783 src/libsystemd/sd-bus/test-bus-cleanup.c
2785 test_bus_cleanup_CFLAGS = \
2789 test_bus_cleanup_LDADD = \
2790 libsystemd-internal.la \
2791 libsystemd-shared.la
2793 test_bus_server_SOURCES = \
2794 src/libsystemd/sd-bus/test-bus-server.c
2796 test_bus_server_CFLAGS = \
2800 test_bus_server_LDADD = \
2801 libsystemd-internal.la \
2802 libsystemd-shared.la
2804 test_bus_objects_SOURCES = \
2805 src/libsystemd/sd-bus/test-bus-objects.c
2807 test_bus_objects_CFLAGS = \
2812 test_bus_objects_LDADD = \
2813 libsystemd-internal.la \
2814 libsystemd-shared.la \
2815 libsystemd-dump.la \
2816 libsystemd-capability.la \
2819 test_bus_error_SOURCES = \
2820 src/libsystemd/sd-bus/test-bus-error.c
2822 test_bus_error_LDADD = \
2823 libsystemd-internal.la \
2824 libsystemd-shared.la
2826 test_bus_gvariant_SOURCES = \
2827 src/libsystemd/sd-bus/test-bus-gvariant.c
2829 test_bus_gvariant_LDADD = \
2830 libsystemd-internal.la \
2831 libsystemd-shared.la \
2832 libsystemd-dump.la \
2833 libsystemd-capability.la \
2837 test_bus_gvariant_CFLAGS = \
2842 test_bus_creds_SOURCES = \
2843 src/libsystemd/sd-bus/test-bus-creds.c
2845 test_bus_creds_LDADD = \
2846 libsystemd-internal.la \
2847 libsystemd-shared.la \
2848 libsystemd-dump.la \
2849 libsystemd-capability.la
2851 test_bus_match_SOURCES = \
2852 src/libsystemd/sd-bus/test-bus-match.c
2854 test_bus_match_LDADD = \
2855 libsystemd-internal.la \
2856 libsystemd-shared.la
2858 test_bus_kernel_SOURCES = \
2859 src/libsystemd/sd-bus/test-bus-kernel.c
2861 test_bus_kernel_LDADD = \
2862 libsystemd-internal.la \
2863 libsystemd-shared.la \
2864 libsystemd-dump.la \
2865 libsystemd-capability.la \
2868 test_bus_kernel_CFLAGS = \
2872 test_bus_kernel_bloom_SOURCES = \
2873 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
2875 test_bus_kernel_bloom_LDADD = \
2876 libsystemd-internal.la \
2877 libsystemd-shared.la
2879 test_bus_kernel_benchmark_SOURCES = \
2880 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
2882 test_bus_kernel_benchmark_LDADD = \
2883 libsystemd-internal.la \
2884 libsystemd-shared.la
2886 test_bus_zero_copy_SOURCES = \
2887 src/libsystemd/sd-bus/test-bus-zero-copy.c
2889 test_bus_zero_copy_LDADD = \
2890 libsystemd-internal.la \
2891 libsystemd-shared.la \
2892 libsystemd-dump.la \
2893 libsystemd-capability.la \
2896 test_bus_zero_copy_CFLAGS = \
2900 test_bus_introspect_SOURCES = \
2901 src/libsystemd/sd-bus/test-bus-introspect.c
2903 test_bus_introspect_LDADD = \
2904 libsystemd-internal.la \
2905 libsystemd-shared.la
2907 test_event_SOURCES = \
2908 src/libsystemd/sd-event/test-event.c
2910 test_event_LDADD = \
2911 libsystemd-internal.la \
2912 libsystemd-shared.la
2914 test_rtnl_SOURCES = \
2915 src/libsystemd/sd-rtnl/test-rtnl.c
2918 libsystemd-internal.la \
2919 libsystemd-shared.la
2921 test_resolve_SOURCES = \
2922 src/libsystemd/sd-resolve/test-resolve.c
2924 test_resolve_LDADD = \
2925 libsystemd-resolve.la \
2926 libsystemd-internal.la \
2927 libsystemd-shared.la
2929 test_resolve_CFLAGS = \
2934 src/libsystemd/sd-bus/busctl.c
2937 libsystemd-internal.la \
2938 libsystemd-shared.la \
2939 libsystemd-dump.la \
2940 libsystemd-capability.la \
2947 # ------------------------------------------------------------------------------
2948 noinst_LTLIBRARIES += \
2949 libsystemd-network.la
2951 libsystemd_network_la_CFLAGS = \
2955 libsystemd_network_la_SOURCES = \
2956 src/systemd/sd-dhcp-client.h \
2957 src/systemd/sd-dhcp-server.h \
2958 src/systemd/sd-dhcp-lease.h \
2959 src/systemd/sd-ipv4ll.h \
2960 src/systemd/sd-icmp6-nd.h \
2961 src/systemd/sd-dhcp6-client.h \
2962 src/systemd/sd-dhcp6-lease.h \
2963 src/systemd/sd-pppoe.h \
2964 src/libsystemd-network/sd-dhcp-client.c \
2965 src/libsystemd-network/sd-dhcp-server.c \
2966 src/libsystemd-network/dhcp-network.c \
2967 src/libsystemd-network/dhcp-option.c \
2968 src/libsystemd-network/dhcp-packet.c \
2969 src/libsystemd-network/dhcp-internal.h \
2970 src/libsystemd-network/dhcp-server-internal.h \
2971 src/libsystemd-network/dhcp-protocol.h \
2972 src/libsystemd-network/dhcp-lease-internal.h \
2973 src/libsystemd-network/sd-dhcp-lease.c \
2974 src/libsystemd-network/sd-ipv4ll.c \
2975 src/libsystemd-network/ipv4ll-network.c \
2976 src/libsystemd-network/ipv4ll-packet.c \
2977 src/libsystemd-network/ipv4ll-internal.h \
2978 src/libsystemd-network/sd-pppoe.c \
2979 src/libsystemd-network/network-internal.c \
2980 src/libsystemd-network/network-internal.h \
2981 src/libsystemd-network/sd-icmp6-nd.c \
2982 src/libsystemd-network/sd-dhcp6-client.c \
2983 src/libsystemd-network/dhcp6-internal.h \
2984 src/libsystemd-network/dhcp6-protocol.h \
2985 src/libsystemd-network/dhcp6-network.c \
2986 src/libsystemd-network/dhcp6-option.c \
2987 src/libsystemd-network/dhcp6-lease-internal.h \
2988 src/libsystemd-network/sd-dhcp6-lease.c
2990 libsystemd_network_la_LIBADD = \
2991 libudev-internal.la \
2992 libsystemd-label.la \
2993 libsystemd-internal.la \
2994 libsystemd-shared.la \
2997 test_dhcp_option_SOURCES = \
2998 src/libsystemd-network/dhcp-protocol.h \
2999 src/libsystemd-network/dhcp-internal.h \
3000 src/libsystemd-network/test-dhcp-option.c
3002 test_dhcp_option_LDADD = \
3003 libsystemd-network.la \
3004 libsystemd-internal.la \
3005 libsystemd-shared.la
3007 test_dhcp_client_SOURCES = \
3008 src/systemd/sd-dhcp-client.h \
3009 src/libsystemd-network/dhcp-protocol.h \
3010 src/libsystemd-network/dhcp-internal.h \
3011 src/libsystemd-network/test-dhcp-client.c
3013 test_dhcp_client_LDADD = \
3014 libsystemd-network.la \
3015 libsystemd-label.la \
3016 libsystemd-internal.la \
3017 libsystemd-shared.la
3019 test_dhcp_server_SOURCES = \
3020 src/libsystemd-network/test-dhcp-server.c
3022 test_dhcp_server_LDADD = \
3023 libsystemd-network.la \
3024 libsystemd-internal.la \
3025 libsystemd-shared.la
3027 test_ipv4ll_SOURCES = \
3028 src/systemd/sd-ipv4ll.h \
3029 src/libsystemd-network/ipv4ll-internal.h \
3030 src/libsystemd-network/test-ipv4ll.c
3032 test_ipv4ll_LDADD = \
3033 libsystemd-network.la \
3034 libsystemd-label.la \
3035 libsystemd-internal.la \
3036 libsystemd-shared.la
3038 test_pppoe_SOURCES = \
3039 src/systemd/sd-pppoe.h \
3040 src/libsystemd-network/test-pppoe.c
3042 test_pppoe_LDADD = \
3043 libsystemd-network.la \
3044 libsystemd-shared.la
3046 test_icmp6_rs_SOURCES = \
3047 src/systemd/sd-dhcp6-client.h \
3048 src/systemd/sd-icmp6-nd.h \
3049 src/libsystemd-network/dhcp6-internal.h \
3050 src/libsystemd-network/test-icmp6-rs.c
3052 test_icmp6_rs_LDADD = \
3053 libsystemd-network.la \
3054 libsystemd-internal.la \
3055 libsystemd-shared.la
3057 test_dhcp6_client_SOURCES = \
3058 src/systemd/sd-dhcp6-client.h \
3059 src/libsystemd-network/dhcp6-internal.h \
3060 src/libsystemd-network/test-dhcp6-client.c
3062 test_dhcp6_client_LDADD = \
3063 libsystemd-network.la \
3064 libsystemd-internal.la \
3065 libsystemd-shared.la
3078 # ------------------------------------------------------------------------------
3080 noinst_LTLIBRARIES += \
3081 libsystemd-terminal.la
3083 rootlibexec_PROGRAMS += \
3086 noinst_PROGRAMS += \
3091 dist_pkgdata_DATA += \
3092 src/libsystemd-terminal/unifont-glyph-array.bin
3094 nodist_userunit_DATA += \
3095 units/user/systemd-consoled.service
3097 USER_DEFAULT_TARGET_WANTS += \
3098 systemd-consoled.service
3101 units/user/systemd-consoled.service.in
3109 libsystemd_terminal_la_CFLAGS = \
3113 libsystemd_terminal_la_SOURCES = \
3114 src/libsystemd-terminal/grdev.h \
3115 src/libsystemd-terminal/grdev-internal.h \
3116 src/libsystemd-terminal/grdev.c \
3117 src/libsystemd-terminal/grdev-drm.c \
3118 src/libsystemd-terminal/idev.h \
3119 src/libsystemd-terminal/idev-internal.h \
3120 src/libsystemd-terminal/idev.c \
3121 src/libsystemd-terminal/idev-evdev.c \
3122 src/libsystemd-terminal/idev-keyboard.c \
3123 src/libsystemd-terminal/sysview.h \
3124 src/libsystemd-terminal/sysview-internal.h \
3125 src/libsystemd-terminal/sysview.c \
3126 src/libsystemd-terminal/term.h \
3127 src/libsystemd-terminal/term-internal.h \
3128 src/libsystemd-terminal/term-charset.c \
3129 src/libsystemd-terminal/term-page.c \
3130 src/libsystemd-terminal/term-parser.c \
3131 src/libsystemd-terminal/term-screen.c \
3132 src/libsystemd-terminal/term-wcwidth.c \
3133 src/libsystemd-terminal/unifont.h \
3134 src/libsystemd-terminal/unifont-def.h \
3135 src/libsystemd-terminal/unifont.c
3137 libsystemd_terminal_la_LIBADD = \
3138 libudev-internal.la \
3139 libsystemd-internal.la \
3140 libsystemd-shared.la \
3143 systemd_consoled_CFLAGS = \
3147 systemd_consoled_SOURCES = \
3148 src/console/consoled.h \
3149 src/console/consoled.c \
3150 src/console/consoled-display.c \
3151 src/console/consoled-manager.c \
3152 src/console/consoled-session.c \
3153 src/console/consoled-terminal.c \
3154 src/console/consoled-workspace.c
3156 systemd_consoled_LDADD = \
3157 libsystemd-terminal.la \
3158 libsystemd-internal.la \
3159 libsystemd-shared.la \
3162 systemd_evcat_CFLAGS = \
3166 systemd_evcat_SOURCES = \
3167 src/libsystemd-terminal/evcat.c
3169 systemd_evcat_LDADD = \
3170 libsystemd-terminal.la \
3171 libsystemd-internal.la \
3172 libsystemd-shared.la \
3175 systemd_modeset_CFLAGS = \
3179 systemd_modeset_SOURCES = \
3180 src/libsystemd-terminal/modeset.c
3182 systemd_modeset_LDADD = \
3183 libsystemd-terminal.la \
3184 libsystemd-internal.la \
3185 libsystemd-shared.la \
3188 systemd_subterm_SOURCES = \
3189 src/libsystemd-terminal/subterm.c
3191 systemd_subterm_LDADD = \
3192 libsystemd-terminal.la \
3193 libsystemd-internal.la \
3194 libsystemd-shared.la
3196 test_term_page_SOURCES = \
3197 src/libsystemd-terminal/test-term-page.c
3199 test_term_page_LDADD = \
3200 libsystemd-terminal.la \
3201 libsystemd-internal.la \
3202 libsystemd-shared.la
3204 test_term_parser_SOURCES = \
3205 src/libsystemd-terminal/test-term-parser.c
3207 test_term_parser_LDADD = \
3208 libsystemd-terminal.la \
3209 libsystemd-internal.la \
3210 libsystemd-shared.la
3212 test_unifont_SOURCES = \
3213 src/libsystemd-terminal/test-unifont.c
3215 test_unifont_LDADD = \
3216 libsystemd-terminal.la \
3217 libsystemd-internal.la \
3218 libsystemd-shared.la
3220 .PHONY: update-unifont
3221 update-unifont: tools/compile-unifont.py
3222 $(AM_V_GEN)$(PYTHON) $< \
3223 <$(top_srcdir)/src/libsystemd-terminal/unifont.hex \
3224 >$(top_srcdir)/src/libsystemd-terminal/unifont-glyph-array.bin
3225 @echo "unifont-glyph-array.bin has been regenerated"
3227 # ------------------------------------------------------------------------------
3237 include_HEADERS += \
3238 src/libudev/libudev.h
3240 lib_LTLIBRARIES += \
3243 libudev_la_SOURCES =\
3244 src/libudev/libudev.sym \
3245 src/libudev/libudev-private.h \
3246 src/libudev/libudev.c \
3247 src/libudev/libudev-list.c \
3248 src/libudev/libudev-util.c \
3249 src/libudev/libudev-device.c \
3250 src/libudev/libudev-enumerate.c \
3251 src/libudev/libudev-monitor.c \
3252 src/libudev/libudev-queue.c \
3253 src/libudev/libudev-hwdb-def.h \
3254 src/libudev/libudev-hwdb.c
3256 libudev_la_CFLAGS = \
3260 libudev_la_LDFLAGS = \
3262 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3263 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3265 libudev_la_LIBADD = \
3266 libsystemd-internal.la \
3267 libsystemd-shared.la
3269 pkgconfiglib_DATA += \
3270 src/libudev/libudev.pc
3273 src/libudev/libudev.pc.in
3276 src/libudev/libudev.pc \
3281 $(AM_V_at)$(MKDIR_P) $(dir $@)
3282 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
3285 $(AM_V_at)$(MKDIR_P) $(dir $@)
3286 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
3288 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3289 libudev-install-hook:
3290 libname=libudev.so && $(move-to-rootlibdir)
3292 libudev-uninstall-hook:
3293 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3295 INSTALL_EXEC_HOOKS += libudev-install-hook
3296 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3298 # ------------------------------------------------------------------------------
3299 noinst_LTLIBRARIES += \
3302 libudev_internal_la_SOURCES =\
3303 $(libudev_la_SOURCES) \
3304 src/libudev/libudev-device-private.c
3306 libudev_internal_la_CFLAGS = \
3308 -fvisibility=default
3310 # ------------------------------------------------------------------------------
3312 $(sysconfdir)/udev/rules.d \
3313 $(sysconfdir)/udev/hwdb.d
3315 dist_network_DATA = \
3316 network/99-default.link \
3317 network/80-container-host0.network \
3318 network/80-container-ve.network
3320 dist_udevrules_DATA += \
3321 rules/42-usb-hid-pm.rules \
3322 rules/50-udev-default.rules \
3323 rules/60-drm.rules \
3324 rules/60-keyboard.rules \
3325 rules/60-persistent-storage-tape.rules \
3326 rules/60-persistent-serial.rules \
3327 rules/60-persistent-input.rules \
3328 rules/60-persistent-alsa.rules \
3329 rules/60-persistent-storage.rules \
3330 rules/64-btrfs.rules \
3331 rules/75-net-description.rules \
3332 rules/75-tty-description.rules \
3333 rules/78-sound-card.rules \
3334 rules/80-net-setup-link.rules \
3335 rules/95-udev-late.rules
3337 nodist_udevrules_DATA += \
3338 rules/99-systemd.rules
3340 dist_udevhwdb_DATA = \
3341 hwdb/20-pci-vendor-model.hwdb \
3342 hwdb/20-pci-classes.hwdb \
3343 hwdb/20-usb-vendor-model.hwdb \
3344 hwdb/20-usb-classes.hwdb \
3345 hwdb/20-sdio-vendor-model.hwdb \
3346 hwdb/20-sdio-classes.hwdb \
3347 hwdb/20-bluetooth-vendor-product.hwdb \
3348 hwdb/20-acpi-vendor.hwdb \
3350 hwdb/20-net-ifname.hwdb \
3351 hwdb/60-keyboard.hwdb
3353 udevconfdir = $(sysconfdir)/udev
3354 dist_udevconf_DATA = \
3357 sharepkgconfigdir = $(datadir)/pkgconfig
3358 sharepkgconfig_DATA = \
3362 rules/99-systemd.rules.in \
3366 rules/99-systemd.rules \
3370 units/systemd-udevd.service.in \
3371 units/systemd-udev-trigger.service.in \
3372 units/systemd-udev-settle.service.in \
3373 units/systemd-udev-hwdb-update.service.in
3376 units/systemd-udevd.service \
3377 units/systemd-udev-trigger.service \
3378 units/systemd-udev-settle.service \
3379 units/systemd-udev-hwdb-update.service
3381 SOCKETS_TARGET_WANTS += \
3382 systemd-udevd-control.socket \
3383 systemd-udevd-kernel.socket
3385 SYSINIT_TARGET_WANTS += \
3386 systemd-udevd.service \
3387 systemd-udev-trigger.service \
3388 systemd-udev-hwdb-update.service
3390 rootbin_PROGRAMS += \
3393 rootlibexec_PROGRAMS += \
3396 noinst_LTLIBRARIES += \
3399 src/udev/keyboard-keys.txt:
3400 $(AM_V_at)$(MKDIR_P) $(dir $@)
3401 $(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/' > $@
3403 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
3404 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3406 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3407 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3409 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
3410 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
3412 libudev_core_la_SOURCES = \
3414 src/udev/udev-event.c \
3415 src/udev/udev-watch.c \
3416 src/udev/udev-node.c \
3417 src/udev/udev-rules.c \
3418 src/udev/udev-ctrl.c \
3419 src/udev/udev-builtin.c \
3420 src/udev/udev-builtin-btrfs.c \
3421 src/udev/udev-builtin-hwdb.c \
3422 src/udev/udev-builtin-input_id.c \
3423 src/udev/udev-builtin-keyboard.c \
3424 src/udev/udev-builtin-net_id.c \
3425 src/udev/udev-builtin-net_setup_link.c \
3426 src/udev/udev-builtin-path_id.c \
3427 src/udev/udev-builtin-usb_id.c \
3428 src/udev/net/link-config.h \
3429 src/udev/net/link-config.c \
3430 src/udev/net/ethtool-util.h \
3431 src/udev/net/ethtool-util.c
3433 nodist_libudev_core_la_SOURCES = \
3434 src/udev/keyboard-keys-from-name.h \
3435 src/udev/keyboard-keys-to-name.h \
3436 src/udev/net/link-config-gperf.c
3439 $(nodist_libudev_core_la_SOURCES)
3442 src/udev/keyboard-keys-from-name.gperf \
3443 src/udev/keyboard-keys.txt \
3444 src/udev/net/link-config-gperf.c
3447 src/udev/net/link-config-gperf.gperf
3449 libudev_core_la_CFLAGS = \
3454 libudev_core_la_LIBADD = \
3455 libudev-internal.la \
3456 libsystemd-label.la \
3457 libsystemd-internal.la \
3458 libsystemd-network.la \
3459 libsystemd-shared.la \
3464 libudev_core_la_SOURCES += \
3465 src/udev/udev-builtin-kmod.c
3467 dist_udevrules_DATA += \
3468 rules/80-drivers.rules
3472 libudev_core_la_SOURCES += \
3473 src/udev/udev-builtin-blkid.c
3477 libudev_core_la_SOURCES += \
3478 src/udev/udev-builtin-uaccess.c \
3479 src/login/logind-acl.c \
3480 src/libsystemd/sd-login/sd-login.c \
3481 src/systemd/sd-login.h
3483 libudev_core_la_LIBADD += \
3487 systemd_udevd_SOURCES = \
3490 systemd_udevd_LDADD = \
3494 src/udev/udevadm.c \
3495 src/udev/udevadm-info.c \
3496 src/udev/udevadm-control.c \
3497 src/udev/udevadm-monitor.c \
3498 src/udev/udevadm-hwdb.c \
3499 src/udev/udevadm-settle.c \
3500 src/udev/udevadm-trigger.c \
3501 src/udev/udevadm-test.c \
3502 src/udev/udevadm-test-builtin.c
3507 # Update hwdb on installation. Do not bother if installing
3508 # in DESTDIR, since this is likely for packaging purposes.
3510 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
3512 INSTALL_DATA_HOOKS += \
3516 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3518 # ------------------------------------------------------------------------------
3527 test_libudev_SOURCES = \
3528 src/test/test-libudev.c
3530 test_libudev_LDADD = \
3531 libsystemd-label.la \
3532 libudev-internal.la \
3533 libsystemd-shared.la
3535 test_udev_SOURCES = \
3536 src/test/test-udev.c
3545 test_udev_LDADD += \
3552 # packed sysfs test tree
3554 $(AM_V_at)$(MKDIR_P) $(dir $@)
3555 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3559 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3564 test/rules-test.sh \
3565 test/rule-syntax-check.py
3567 # ------------------------------------------------------------------------------
3569 src/udev/ata_id/ata_id.c
3572 libudev-internal.la \
3573 libsystemd-shared.la
3575 udevlibexec_PROGRAMS += \
3578 # ------------------------------------------------------------------------------
3579 cdrom_id_SOURCES = \
3580 src/udev/cdrom_id/cdrom_id.c
3583 libudev-internal.la \
3584 libsystemd-shared.la
3586 udevlibexec_PROGRAMS += \
3589 dist_udevrules_DATA += \
3590 rules/60-cdrom_id.rules
3592 # ------------------------------------------------------------------------------
3594 src/udev/collect/collect.c
3597 libudev-internal.la \
3598 libsystemd-shared.la
3600 udevlibexec_PROGRAMS += \
3603 # ------------------------------------------------------------------------------
3605 src/udev/scsi_id/scsi_id.c \
3606 src/udev/scsi_id/scsi_serial.c \
3607 src/udev/scsi_id/scsi.h \
3608 src/udev/scsi_id/scsi_id.h
3611 libudev-internal.la \
3612 libsystemd-shared.la
3614 udevlibexec_PROGRAMS += \
3618 src/udev/scsi_id/README
3620 # ------------------------------------------------------------------------------
3622 src/udev/v4l_id/v4l_id.c
3627 udevlibexec_PROGRAMS += \
3630 dist_udevrules_DATA += \
3631 rules/60-persistent-v4l.rules
3633 # ------------------------------------------------------------------------------
3634 accelerometer_SOURCES = \
3635 src/udev/accelerometer/accelerometer.c
3637 accelerometer_LDADD = \
3638 libudev-internal.la -lm \
3639 libsystemd-shared.la
3641 udevlibexec_PROGRAMS += \
3644 dist_udevrules_DATA += \
3645 rules/61-accelerometer.rules
3647 # ------------------------------------------------------------------------------
3654 libgudev_includedir = \
3655 $(includedir)/gudev-1.0/gudev
3657 libgudev_include_HEADERS = \
3659 src/gudev/gudevenums.h \
3660 src/gudev/gudevenumtypes.h \
3661 src/gudev/gudevtypes.h \
3662 src/gudev/gudevclient.h \
3663 src/gudev/gudevdevice.h \
3664 src/gudev/gudevenumerator.h
3666 lib_LTLIBRARIES += libgudev-1.0.la
3668 pkgconfiglib_DATA += \
3669 src/gudev/gudev-1.0.pc
3672 src/gudev/gudev-1.0.pc
3674 libgudev_1_0_la_SOURCES = \
3675 src/gudev/libgudev-1.0.sym \
3676 src/gudev/gudevenums.h \
3677 src/gudev/gudevenumtypes.h \
3678 src/gudev/gudevenumtypes.h\
3679 src/gudev/gudevtypes.h \
3680 src/gudev/gudevclient.h \
3681 src/gudev/gudevclient.c \
3682 src/gudev/gudevdevice.h \
3683 src/gudev/gudevdevice.c \
3684 src/gudev/gudevenumerator.h \
3685 src/gudev/gudevenumerator.c \
3686 src/gudev/gudevprivate.h
3688 nodist_libgudev_1_0_la_SOURCES = \
3689 src/gudev/gudevmarshal.h \
3690 src/gudev/gudevmarshal.c \
3691 src/gudev/gudevenumtypes.h \
3692 src/gudev/gudevenumtypes.c
3695 $(nodist_libgudev_1_0_la_SOURCES)
3697 libgudev_1_0_la_CPPFLAGS = \
3699 -I$(top_builddir)/src\
3700 -I$(top_srcdir)/src\
3701 -I$(top_builddir)/src/gudev \
3702 -I$(top_srcdir)/src/gudev \
3703 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3704 -D_GUDEV_COMPILATION \
3705 -DG_LOG_DOMAIN=\"GUdev\"
3707 libgudev_1_0_la_CFLAGS = \
3709 -fvisibility=default \
3712 libgudev_1_0_la_LIBADD = \
3716 libgudev_1_0_la_LDFLAGS = \
3718 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3721 -Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym
3723 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3724 $(AM_V_at)$(MKDIR_P) $(dir $@)
3725 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3727 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3728 $(AM_V_at)$(MKDIR_P) $(dir $@)
3729 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3730 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3732 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3733 $(AM_V_at)$(MKDIR_P) $(dir $@)
3734 $(AM_V_GEN)glib-mkenums --template $^ > $@
3736 if HAVE_INTROSPECTION
3737 -include $(INTROSPECTION_MAKEFILE)
3739 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3741 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3743 src_gudev_GUdev_1_0_gir_CFLAGS = \
3746 -D_GUDEV_COMPILATION \
3747 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3748 -I$(top_srcdir)/src \
3749 -I$(top_builddir)/src \
3750 -I$(top_srcdir)/src/gudev \
3751 -I$(top_builddir)/src/gudev
3753 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
3755 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
3756 --pkg-export=gudev-1.0 \
3759 src_gudev_GUdev_1_0_gir_FILES = \
3761 src/gudev/gudevtypes.h \
3762 src/gudev/gudevenums.h \
3763 src/gudev/gudevenumtypes.h \
3764 src/gudev/gudevclient.h \
3765 src/gudev/gudevdevice.h \
3766 src/gudev/gudevenumerator.h \
3767 src/gudev/gudevclient.c \
3768 src/gudev/gudevdevice.c \
3769 src/gudev/gudevenumerator.c
3771 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
3772 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
3774 girdir = $(datadir)/gir-1.0
3776 src/gudev/GUdev-1.0.gir
3778 typelibsdir = $(libdir)/girepository-1.0
3780 src/gudev/GUdev-1.0.typelib
3782 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
3783 endif # HAVE_INTROSPECTION
3787 src/gudev/gudev-1.0.pc.in \
3788 src/gudev/gudevmarshal.list \
3789 src/gudev/gudevenumtypes.h.template \
3790 src/gudev/gudevenumtypes.c.template \
3791 src/gudev/gjs-example.js \
3792 src/gudev/seed-example-enum.js \
3793 src/gudev/seed-example.js
3795 # ------------------------------------------------------------------------------
3796 mtd_probe_SOURCES = \
3797 src/udev/mtd_probe/mtd_probe.c \
3798 src/udev/mtd_probe/mtd_probe.h \
3799 src/udev/mtd_probe/probe_smartmedia.c
3801 dist_udevrules_DATA += \
3802 rules/75-probe_mtd.rules
3804 udevlibexec_PROGRAMS += \
3807 # ------------------------------------------------------------------------------
3808 test_id128_SOURCES = \
3809 src/test/test-id128.c
3811 test_id128_LDADD = \
3812 libsystemd-internal.la \
3813 libsystemd-shared.la
3818 # ------------------------------------------------------------------------------
3820 rootlibexec_PROGRAMS += \
3823 systemd_activate_SOURCES = \
3824 src/activate/activate.c
3826 systemd_activate_LDADD = \
3827 libsystemd-label.la \
3828 libsystemd-internal.la \
3829 libsystemd-shared.la
3831 # ------------------------------------------------------------------------------
3832 systemd_journald_SOURCES = \
3833 src/journal/journald.c \
3834 src/journal/journald-server.h
3836 systemd_journald_LDADD = \
3837 libsystemd-journal-core.la \
3838 libsystemd-internal.la \
3839 libsystemd-shared.la
3841 systemd_cat_SOURCES = \
3844 systemd_cat_LDADD = \
3845 libsystemd-journal-core.la
3848 rootlibexec_PROGRAMS += \
3849 systemd-journal-remote
3851 systemd_journal_remote_SOURCES = \
3852 src/journal-remote/journal-remote-parse.h \
3853 src/journal-remote/journal-remote-parse.c \
3854 src/journal-remote/journal-remote-write.h \
3855 src/journal-remote/journal-remote-write.c \
3856 src/journal-remote/journal-remote.h \
3857 src/journal-remote/journal-remote.c
3859 systemd_journal_remote_LDADD = \
3860 libsystemd-internal.la \
3861 libsystemd-journal-core.la
3863 systemd_journal_remote_SOURCES += \
3864 src/journal-remote/microhttpd-util.h \
3865 src/journal-remote/microhttpd-util.c
3867 systemd_journal_remote_CFLAGS = \
3869 $(MICROHTTPD_CFLAGS)
3871 systemd_journal_remote_LDADD += \
3875 systemd_journal_remote_LDADD += \
3878 # systemd-journal-remote make sense mostly with full crypto stack
3879 dist_systemunit_DATA += \
3880 units/systemd-journal-remote.socket
3882 nodist_systemunit_DATA += \
3883 units/systemd-journal-remote.service
3886 units/systemd-journal-remote.service.in
3888 journal-remote-install-hook: journal-install-hook
3889 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
3890 -chown 0:0 $(DESTDIR)/var/log/journal/remote
3891 -chmod 755 $(DESTDIR)/var/log/journal/remote
3893 INSTALL_EXEC_HOOKS += journal-remote-install-hook
3897 nodist_pkgsysconf_DATA += \
3898 src/journal-remote/journal-remote.conf
3901 src/journal-remote/journal-remote.conf.in
3904 src/journal-remote/journal-remote.conf
3908 rootlibexec_PROGRAMS += \
3909 systemd-journal-upload
3911 systemd_journal_upload_SOURCES = \
3912 src/journal-remote/journal-upload.h \
3913 src/journal-remote/journal-upload.c \
3914 src/journal-remote/journal-upload-journal.c
3916 systemd_journal_upload_CFLAGS = \
3920 systemd_journal_upload_LDADD = \
3921 libsystemd-core.la \
3922 libsystemd-internal.la \
3923 libsystemd-journal-internal.la \
3924 libsystemd-shared.la \
3927 nodist_systemunit_DATA += \
3928 units/systemd-journal-upload.service
3931 units/systemd-journal-upload.service.in
3933 nodist_pkgsysconf_DATA += \
3934 src/journal-remote/journal-upload.conf
3937 src/journal-remote/journal-upload.conf.in
3940 src/journal-remote/journal-upload.conf
3943 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3944 journalctl_CFLAGS = \
3947 journalctl_SOURCES = \
3948 src/journal/journalctl.c
3950 journalctl_LDADD = \
3951 libsystemd-journal-internal.la \
3952 libsystemd-internal.la \
3953 libsystemd-logs.la \
3954 libsystemd-shared.la
3957 journalctl_LDADD += \
3962 journalctl_SOURCES += \
3963 src/journal/journal-qrcode.c \
3964 src/journal/journal-qrcode.h
3966 journalctl_CFLAGS += \
3969 journalctl_LDADD += \
3973 test_journal_SOURCES = \
3974 src/journal/test-journal.c
3976 test_journal_LDADD = \
3977 libsystemd-journal-core.la
3979 test_journal_send_SOURCES = \
3980 src/journal/test-journal-send.c
3982 test_journal_send_LDADD = \
3983 libsystemd-journal-core.la
3985 test_journal_syslog_SOURCES = \
3986 src/journal/test-journal-syslog.c
3988 test_journal_syslog_LDADD = \
3989 libsystemd-journal-core.la
3991 test_journal_match_SOURCES = \
3992 src/journal/test-journal-match.c
3994 test_journal_match_LDADD = \
3995 libsystemd-journal-core.la
3997 test_journal_enum_SOURCES = \
3998 src/journal/test-journal-enum.c
4000 test_journal_enum_LDADD = \
4001 libsystemd-journal-core.la
4003 test_journal_stream_SOURCES = \
4004 src/journal/test-journal-stream.c
4006 test_journal_stream_LDADD = \
4007 libsystemd-journal-core.la
4009 test_journal_flush_SOURCES = \
4010 src/journal/test-journal-flush.c
4012 test_journal_flush_LDADD = \
4013 libsystemd-journal-core.la
4015 test_journal_init_SOURCES = \
4016 src/journal/test-journal-init.c
4018 test_journal_init_LDADD = \
4019 libsystemd-journal-core.la
4021 test_journal_verify_SOURCES = \
4022 src/journal/test-journal-verify.c
4024 test_journal_verify_LDADD = \
4025 libsystemd-journal-core.la
4027 test_journal_interleaving_SOURCES = \
4028 src/journal/test-journal-interleaving.c
4030 test_journal_interleaving_LDADD = \
4031 libsystemd-journal-core.la
4033 test_mmap_cache_SOURCES = \
4034 src/journal/test-mmap-cache.c
4036 test_mmap_cache_LDADD = \
4037 libsystemd-journal-core.la
4039 test_catalog_SOURCES = \
4040 src/journal/test-catalog.c
4042 test_catalog_CPPFLAGS = \
4044 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
4046 test_catalog_LDADD = \
4047 libsystemd-journal-core.la
4049 test_compress_SOURCES = \
4050 src/journal/test-compress.c
4052 test_compress_LDADD = \
4053 libsystemd-journal-internal.la \
4054 libsystemd-shared.la
4056 test_compress_benchmark_SOURCES = \
4057 src/journal/test-compress-benchmark.c
4059 test_compress_benchmark_LDADD = \
4060 libsystemd-journal-internal.la \
4061 libsystemd-shared.la
4063 libsystemd_journal_core_la_SOURCES = \
4064 src/journal/journald-kmsg.c \
4065 src/journal/journald-kmsg.h \
4066 src/journal/journald-syslog.c \
4067 src/journal/journald-syslog.h \
4068 src/journal/journald-stream.c \
4069 src/journal/journald-stream.h \
4070 src/journal/journald-server.c \
4071 src/journal/journald-server.h \
4072 src/journal/journald-console.c \
4073 src/journal/journald-console.h \
4074 src/journal/journald-wall.c \
4075 src/journal/journald-wall.h \
4076 src/journal/journald-native.c \
4077 src/journal/journald-native.h \
4078 src/journal/journald-audit.c \
4079 src/journal/journald-audit.h \
4080 src/journal/journald-rate-limit.c \
4081 src/journal/journald-rate-limit.h \
4082 src/journal/journal-internal.h
4084 nodist_libsystemd_journal_core_la_SOURCES = \
4085 src/journal/journald-gperf.c
4087 libsystemd_journal_core_la_LIBADD = \
4088 libsystemd-journal-internal.la \
4089 libudev-internal.la \
4090 libsystemd-capability.la \
4091 libsystemd-label.la \
4092 libsystemd-internal.la \
4093 libsystemd-shared.la
4096 libsystemd_journal_core_la_LIBADD += \
4100 noinst_LTLIBRARIES += \
4101 libsystemd-journal-core.la
4103 journal-install-hook:
4104 -$(MKDIR_P) $(DESTDIR)/var/log/journal
4105 -chown 0:0 $(DESTDIR)/var/log/journal
4106 -chmod 755 $(DESTDIR)/var/log/journal
4107 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4108 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4110 journal-uninstall-hook:
4111 -rmdir $(DESTDIR)/var/log/journal/remote
4112 -rmdir $(DESTDIR)/var/log/journal/
4114 INSTALL_EXEC_HOOKS += journal-install-hook
4115 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4117 # ------------------------------------------------------------------------------
4118 # Update catalog on installation. Do not bother if installing
4119 # in DESTDIR, since this is likely for packaging purposes.
4120 catalog-update-hook:
4121 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4123 INSTALL_DATA_HOOKS += \
4126 catalog-remove-hook:
4127 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4129 UNINSTALL_DATA_HOOKS += \
4138 test-journal-syslog \
4139 test-journal-match \
4140 test-journal-stream \
4142 test-journal-verify \
4143 test-journal-interleaving \
4144 test-journal-flush \
4151 test-compress-benchmark
4154 pkginclude_HEADERS += \
4155 src/systemd/sd-journal.h \
4156 src/systemd/sd-messages.h \
4157 src/systemd/_sd-common.h
4159 libsystemd_journal_internal_la_SOURCES = \
4160 src/journal/sd-journal.c \
4161 src/systemd/sd-journal.h \
4162 src/systemd/_sd-common.h \
4163 src/journal/journal-file.c \
4164 src/journal/journal-file.h \
4165 src/journal/journal-vacuum.c \
4166 src/journal/journal-vacuum.h \
4167 src/journal/journal-verify.c \
4168 src/journal/journal-verify.h \
4169 src/journal/lookup3.c \
4170 src/journal/lookup3.h \
4171 src/journal/journal-send.c \
4172 src/journal/journal-def.h \
4173 src/journal/compress.h \
4174 src/journal/catalog.c \
4175 src/journal/catalog.h \
4176 src/journal/mmap-cache.c \
4177 src/journal/mmap-cache.h
4179 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4180 libsystemd_journal_internal_la_CFLAGS = \
4183 libsystemd_journal_internal_la_LIBADD =
4185 libsystemd_journal_internal_la_SOURCES += \
4186 src/journal/compress.c
4189 libsystemd_journal_internal_la_CFLAGS += \
4192 libsystemd_journal_internal_la_LIBADD += \
4197 libsystemd_journal_internal_la_LIBADD += \
4202 libsystemd_journal_internal_la_SOURCES += \
4203 src/journal/journal-authenticate.c \
4204 src/journal/journal-authenticate.h \
4205 src/journal/fsprg.c \
4208 libsystemd_journal_internal_la_LIBADD += \
4211 # fsprg.c is a drop-in file using void pointer arithmetic
4212 libsystemd_journal_internal_la_CFLAGS += \
4217 noinst_LTLIBRARIES += \
4218 libsystemd-journal-internal.la
4220 rootlibexec_PROGRAMS += \
4223 rootbin_PROGRAMS += \
4229 dist_systemunit_DATA += \
4230 units/systemd-journald.socket \
4231 units/systemd-journald-dev-log.socket \
4232 units/systemd-journald-audit.socket
4234 nodist_systemunit_DATA += \
4235 units/systemd-journald.service \
4236 units/systemd-journal-flush.service \
4237 units/systemd-journal-catalog-update.service
4239 dist_pkgsysconf_DATA += \
4240 src/journal/journald.conf
4242 dist_catalog_DATA = \
4243 catalog/systemd.fr.catalog \
4244 catalog/systemd.it.catalog \
4245 catalog/systemd.pl.catalog \
4246 catalog/systemd.ru.catalog \
4247 catalog/systemd.catalog
4249 SOCKETS_TARGET_WANTS += \
4250 systemd-journald.socket \
4251 systemd-journald-dev-log.socket \
4252 systemd-journald-audit.socket
4254 SYSINIT_TARGET_WANTS += \
4255 systemd-journald.service \
4256 systemd-journal-flush.service \
4257 systemd-journal-catalog-update.service
4260 units/systemd-journald.service.in \
4261 units/systemd-journal-flush.service.in \
4262 units/systemd-journal-catalog-update.service.in \
4263 src/journal/journald-gperf.gperf
4266 src/journal/journald-gperf.c
4268 # ------------------------------------------------------------------------------
4270 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4272 rootlibexec_PROGRAMS += \
4273 systemd-journal-gatewayd
4275 systemd_journal_gatewayd_SOURCES = \
4276 src/journal-remote/journal-gatewayd.c \
4277 src/journal-remote/microhttpd-util.h \
4278 src/journal-remote/microhttpd-util.c
4280 systemd_journal_gatewayd_LDADD = \
4281 libsystemd-logs.la \
4282 libsystemd-journal-internal.la \
4283 libsystemd-internal.la \
4284 libsystemd-shared.la \
4288 systemd_journal_gatewayd_LDADD += \
4292 systemd_journal_gatewayd_CFLAGS = \
4294 $(MICROHTTPD_CFLAGS)
4296 systemd_journal_gatewayd_CPPFLAGS = \
4298 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4300 dist_systemunit_DATA += \
4301 units/systemd-journal-gatewayd.socket
4303 nodist_systemunit_DATA += \
4304 units/systemd-journal-gatewayd.service
4306 dist_gatewayddocumentroot_DATA = \
4307 src/journal-remote/browse.html
4312 units/systemd-journal-gatewayd.service.in
4314 # ------------------------------------------------------------------------------
4316 systemd_socket_proxyd_SOURCES = \
4317 src/socket-proxy/socket-proxyd.c
4319 systemd_socket_proxyd_LDADD = \
4320 libsystemd-logs.la \
4321 libsystemd-internal.la \
4322 libsystemd-journal-internal.la \
4323 libsystemd-shared.la \
4324 libsystemd-resolve.la
4326 # ------------------------------------------------------------------------------
4328 systemd_coredump_SOURCES = \
4329 src/journal/coredump.c \
4330 src/journal/coredump-vacuum.c \
4331 src/journal/coredump-vacuum.h
4333 systemd_coredump_LDADD = \
4334 libsystemd-journal-internal.la \
4335 libsystemd-label.la \
4336 libsystemd-internal.la \
4337 libsystemd-shared.la
4340 systemd_coredump_SOURCES += \
4341 src/journal/stacktrace.c \
4342 src/journal/stacktrace.h
4344 systemd_coredump_LDADD += \
4348 rootlibexec_PROGRAMS += \
4351 dist_pkgsysconf_DATA += \
4352 src/journal/coredump.conf
4355 systemd_coredump_LDADD += \
4359 coredumpctl_SOURCES = \
4360 src/journal/coredumpctl.c
4362 coredumpctl_LDADD = \
4363 libsystemd-journal-internal.la \
4364 libsystemd-internal.la \
4365 libsystemd-shared.la
4371 test-coredump-vacuum
4373 test_coredump_vacuum_SOURCES = \
4374 src/journal/test-coredump-vacuum.c \
4375 src/journal/coredump-vacuum.c \
4376 src/journal/coredump-vacuum.h
4378 test_coredump_vacuum_LDADD = \
4379 libsystemd-internal.la \
4380 libsystemd-shared.la
4382 dist_bashcompletion_DATA += \
4383 shell-completion/bash/coredumpctl
4385 dist_zshcompletion_DATA += \
4386 shell-completion/zsh/_coredumpctl
4389 sysctl.d/50-coredump.conf
4392 sysctl.d/50-coredump.conf
4396 sysctl.d/50-coredump.conf.in
4398 # ------------------------------------------------------------------------------
4400 systemd_binfmt_SOURCES = \
4403 systemd_binfmt_LDADD = \
4404 libsystemd-shared.la
4406 rootlibexec_PROGRAMS += \
4409 dist_systemunit_DATA += \
4410 units/proc-sys-fs-binfmt_misc.automount \
4411 units/proc-sys-fs-binfmt_misc.mount
4413 nodist_systemunit_DATA += \
4414 units/systemd-binfmt.service
4417 $(prefix)/lib/binfmt.d \
4418 $(sysconfdir)/binfmt.d
4420 SYSINIT_TARGET_WANTS += \
4421 systemd-binfmt.service \
4422 proc-sys-fs-binfmt_misc.automount
4427 units/systemd-binfmt.service.in
4429 # ------------------------------------------------------------------------------
4431 systemd_vconsole_setup_SOURCES = \
4432 src/vconsole/vconsole-setup.c
4434 systemd_vconsole_setup_LDADD = \
4435 libsystemd-shared.la
4437 rootlibexec_PROGRAMS += \
4438 systemd-vconsole-setup
4440 nodist_systemunit_DATA += \
4441 units/systemd-vconsole-setup.service
4443 dist_udevrules_DATA += \
4444 src/vconsole/90-vconsole.rules
4446 SYSINIT_TARGET_WANTS += \
4447 systemd-vconsole-setup.service
4451 units/systemd-vconsole-setup.service.in
4453 # ------------------------------------------------------------------------------
4455 systemd_bootchart_SOURCES = \
4456 src/bootchart/bootchart.c \
4457 src/bootchart/bootchart.h \
4458 src/bootchart/store.c \
4459 src/bootchart/store.h \
4460 src/bootchart/svg.c \
4463 systemd_bootchart_LDADD = \
4464 libsystemd-journal-internal.la \
4465 libsystemd-shared.la
4467 rootlibexec_PROGRAMS += \
4470 dist_pkgsysconf_DATA += \
4471 src/bootchart/bootchart.conf
4474 # ------------------------------------------------------------------------------
4475 if ENABLE_QUOTACHECK
4476 rootlibexec_PROGRAMS += \
4479 nodist_systemunit_DATA += \
4480 units/systemd-quotacheck.service
4482 systemd_quotacheck_SOURCES = \
4483 src/quotacheck/quotacheck.c
4485 systemd_quotacheck_LDADD = \
4486 libsystemd-shared.la
4490 units/systemd-quotacheck.service.in
4492 nodist_systemunit_DATA += \
4493 units/quotaon.service
4495 # ------------------------------------------------------------------------------
4496 if ENABLE_RANDOMSEED
4497 rootlibexec_PROGRAMS += \
4500 nodist_systemunit_DATA += \
4501 units/systemd-random-seed.service
4503 systemd_random_seed_SOURCES = \
4504 src/random-seed/random-seed.c
4506 systemd_random_seed_LDADD = \
4507 libsystemd-label.la \
4508 libsystemd-shared.la
4510 SYSINIT_TARGET_WANTS += \
4511 systemd-random-seed.service
4516 units/systemd-random-seed.service.in
4518 # ------------------------------------------------------------------------------
4520 rootlibexec_PROGRAMS += \
4523 nodist_systemunit_DATA += \
4524 units/systemd-backlight@.service
4526 systemd_backlight_SOURCES = \
4527 src/backlight/backlight.c
4529 systemd_backlight_LDADD = \
4530 libsystemd-label.la \
4531 libudev-internal.la \
4532 libsystemd-shared.la
4536 units/systemd-backlight@.service.in
4538 # ------------------------------------------------------------------------------
4540 rootlibexec_PROGRAMS += \
4543 nodist_systemunit_DATA += \
4544 units/systemd-rfkill@.service
4546 systemd_rfkill_SOURCES = \
4549 systemd_rfkill_LDADD = \
4550 libsystemd-label.la \
4551 libudev-internal.la \
4552 libsystemd-shared.la
4556 units/systemd-rfkill@.service.in
4558 # ------------------------------------------------------------------------------
4559 if HAVE_LIBCRYPTSETUP
4560 rootlibexec_PROGRAMS += \
4563 systemgenerator_PROGRAMS += \
4564 systemd-cryptsetup-generator
4566 dist_systemunit_DATA += \
4567 units/cryptsetup.target \
4568 units/cryptsetup-pre.target
4570 systemd_cryptsetup_SOURCES = \
4571 src/cryptsetup/cryptsetup.c
4573 systemd_cryptsetup_CFLAGS = \
4575 $(LIBCRYPTSETUP_CFLAGS)
4577 systemd_cryptsetup_LDADD = \
4578 libsystemd-label.la \
4579 libudev-internal.la \
4580 libsystemd-shared.la \
4581 $(LIBCRYPTSETUP_LIBS)
4583 systemd_cryptsetup_generator_SOURCES = \
4584 src/cryptsetup/cryptsetup-generator.c
4586 systemd_cryptsetup_generator_LDADD = \
4587 libsystemd-label.la \
4588 libsystemd-shared.la
4590 SYSINIT_TARGET_WANTS += \
4595 # ------------------------------------------------------------------------------
4597 systemd_hostnamed_SOURCES = \
4598 src/hostname/hostnamed.c
4600 systemd_hostnamed_LDADD = \
4601 libsystemd-label.la \
4602 libsystemd-internal.la \
4603 libsystemd-shared.la
4605 rootlibexec_PROGRAMS += \
4608 nodist_systemunit_DATA += \
4609 units/systemd-hostnamed.service
4611 dist_systemunit_DATA_busnames += \
4612 units/org.freedesktop.hostname1.busname
4614 dist_dbuspolicy_DATA += \
4615 src/hostname/org.freedesktop.hostname1.conf
4617 dist_dbussystemservice_DATA += \
4618 src/hostname/org.freedesktop.hostname1.service
4620 polkitpolicy_files += \
4621 src/hostname/org.freedesktop.hostname1.policy
4623 SYSTEM_UNIT_ALIASES += \
4624 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4626 BUSNAMES_TARGET_WANTS += \
4627 org.freedesktop.hostname1.busname
4629 hostnamectl_SOURCES = \
4630 src/hostname/hostnamectl.c
4632 hostnamectl_LDADD = \
4633 libsystemd-internal.la \
4634 libsystemd-shared.la
4639 dist_bashcompletion_DATA += \
4640 shell-completion/bash/hostnamectl
4642 dist_zshcompletion_DATA += \
4643 shell-completion/zsh/_hostnamectl
4647 polkitpolicy_in_files += \
4648 src/hostname/org.freedesktop.hostname1.policy.in
4651 units/systemd-hostnamed.service.in
4653 # ------------------------------------------------------------------------------
4654 dist_systemunit_DATA_busnames += \
4655 units/org.freedesktop.systemd1.busname
4657 BUSNAMES_TARGET_WANTS += \
4658 org.freedesktop.systemd1.busname
4660 # ------------------------------------------------------------------------------
4662 systemd_localed_SOURCES = \
4663 src/locale/localed.c
4665 systemd_localed_LDADD = \
4666 libsystemd-label.la \
4667 libsystemd-internal.la \
4668 libsystemd-shared.la
4670 nodist_systemunit_DATA += \
4671 units/systemd-localed.service
4673 dist_systemunit_DATA_busnames += \
4674 units/org.freedesktop.locale1.busname
4676 rootlibexec_PROGRAMS += \
4679 dist_dbuspolicy_DATA += \
4680 src/locale/org.freedesktop.locale1.conf
4682 dist_dbussystemservice_DATA += \
4683 src/locale/org.freedesktop.locale1.service
4685 polkitpolicy_files += \
4686 src/locale/org.freedesktop.locale1.policy
4688 SYSTEM_UNIT_ALIASES += \
4689 systemd-localed.service dbus-org.freedesktop.locale1.service
4691 BUSNAMES_TARGET_WANTS += \
4692 org.freedesktop.locale1.busname
4694 dist_pkgdata_DATA += \
4695 src/locale/kbd-model-map
4697 dist_noinst_SCRIPT = \
4698 src/locale/generate-kbd-model-map
4700 localectl_SOURCES = \
4701 src/locale/localectl.c
4704 libsystemd-internal.la \
4705 libsystemd-shared.la
4710 dist_bashcompletion_DATA += \
4711 shell-completion/bash/localectl
4713 dist_zshcompletion_DATA += \
4714 shell-completion/zsh/_localectl
4718 .PHONY: update-kbd-model-map
4720 polkitpolicy_in_files += \
4721 src/locale/org.freedesktop.locale1.policy.in
4724 units/systemd-localed.service.in
4726 # ------------------------------------------------------------------------------
4728 systemd_timedated_SOURCES = \
4729 src/timedate/timedated.c
4731 systemd_timedated_LDADD = \
4732 libsystemd-label.la \
4733 libsystemd-internal.la \
4734 libsystemd-shared.la
4736 rootlibexec_PROGRAMS += \
4739 dist_dbussystemservice_DATA += \
4740 src/timedate/org.freedesktop.timedate1.service
4742 dist_dbuspolicy_DATA += \
4743 src/timedate/org.freedesktop.timedate1.conf
4745 nodist_systemunit_DATA += \
4746 units/systemd-timedated.service
4748 dist_systemunit_DATA_busnames += \
4749 units/org.freedesktop.timedate1.busname
4751 polkitpolicy_files += \
4752 src/timedate/org.freedesktop.timedate1.policy
4754 SYSTEM_UNIT_ALIASES += \
4755 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4757 BUSNAMES_TARGET_WANTS += \
4758 org.freedesktop.timedate1.busname
4760 timedatectl_SOURCES = \
4761 src/timedate/timedatectl.c
4763 timedatectl_LDADD = \
4764 libsystemd-internal.la \
4765 libsystemd-shared.la
4770 dist_bashcompletion_DATA += \
4771 shell-completion/bash/timedatectl
4773 dist_zshcompletion_DATA += \
4774 shell-completion/zsh/_timedatectl
4777 polkitpolicy_in_files += \
4778 src/timedate/org.freedesktop.timedate1.policy.in
4781 units/systemd-timedated.service.in
4783 # ------------------------------------------------------------------------------
4785 systemd_timesyncd_SOURCES = \
4786 src/timesync/timesyncd.c \
4787 src/timesync/timesyncd-manager.c \
4788 src/timesync/timesyncd-manager.h \
4789 src/timesync/timesyncd-conf.c \
4790 src/timesync/timesyncd-conf.h \
4791 src/timesync/timesyncd-server.c \
4792 src/timesync/timesyncd-server.h
4794 nodist_systemd_timesyncd_SOURCES = \
4795 src/timesync/timesyncd-gperf.c
4798 src/timesync/timesyncd-gperf.gperf
4801 src/timesync/timesyncd-gperf.c
4803 systemd_timesyncd_LDADD = \
4804 libsystemd-resolve.la \
4805 libsystemd-network.la \
4806 libsystemd-label.la \
4807 libsystemd-capability.la \
4808 libsystemd-internal.la \
4809 libsystemd-shared.la \
4812 rootlibexec_PROGRAMS += \
4815 nodist_systemunit_DATA += \
4816 units/systemd-timesyncd.service
4818 GENERAL_ALIASES += \
4819 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
4822 units/systemd-timesyncd.service.in
4824 nodist_pkgsysconf_DATA += \
4825 src/timesync/timesyncd.conf
4828 src/timesync/timesyncd.conf.in
4831 src/timesync/timesyncd.conf
4834 # ------------------------------------------------------------------------------
4836 libnss_myhostname_la_SOURCES = \
4837 src/nss-myhostname/nss-myhostname.sym \
4838 src/nss-myhostname/nss-myhostname.c
4840 libnss_myhostname_la_LDFLAGS = \
4847 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
4849 libnss_myhostname_la_LIBADD = \
4850 libsystemd-shared.la \
4851 libsystemd-internal.la
4853 lib_LTLIBRARIES += \
4854 libnss_myhostname.la
4857 # ------------------------------------------------------------------------------
4859 systemd_machined_SOURCES = \
4860 src/machine/machined.c \
4861 src/machine/machined.h
4863 systemd_machined_LDADD = \
4864 libsystemd-machine-core.la
4866 rootlibexec_PROGRAMS += \
4869 libsystemd_machine_core_la_SOURCES = \
4870 src/machine/machined-dbus.c \
4871 src/machine/machine.c \
4872 src/machine/machine.h \
4873 src/machine/machine-dbus.c
4875 libsystemd_machine_core_la_LIBADD = \
4876 libsystemd-label.la \
4877 libsystemd-internal.la \
4878 libudev-internal.la \
4879 libsystemd-shared.la
4881 noinst_LTLIBRARIES += \
4882 libsystemd-machine-core.la
4884 machinectl_SOURCES = \
4885 src/machine/machinectl.c
4887 machinectl_LDADD = \
4888 libsystemd-internal.la \
4889 libsystemd-shared.la
4891 rootbin_PROGRAMS += \
4894 dist_bashcompletion_DATA += \
4895 shell-completion/bash/machinectl
4897 test_machine_tables_SOURCES = \
4898 src/machine/test-machine-tables.c
4900 test_machine_tables_LDADD = \
4901 libsystemd-machine-core.la
4906 nodist_systemunit_DATA += \
4907 units/systemd-machined.service
4909 dist_systemunit_DATA += \
4912 dist_systemunit_DATA_busnames += \
4913 units/org.freedesktop.machine1.busname
4915 dist_dbussystemservice_DATA += \
4916 src/machine/org.freedesktop.machine1.service
4918 dist_dbuspolicy_DATA += \
4919 src/machine/org.freedesktop.machine1.conf
4921 dist_zshcompletion_DATA += \
4922 shell-completion/zsh/_machinectl \
4923 shell-completion/zsh/_sd_machines
4925 SYSTEM_UNIT_ALIASES += \
4926 systemd-machined.service dbus-org.freedesktop.machine1.service
4928 BUSNAMES_TARGET_WANTS += \
4929 org.freedesktop.machine1.busname
4932 units/systemd-machined.service.in
4934 libnss_mymachines_la_SOURCES = \
4935 src/nss-mymachines/nss-mymachines.sym \
4936 src/nss-mymachines/nss-mymachines.c
4938 libnss_mymachines_la_LDFLAGS = \
4945 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
4947 libnss_mymachines_la_LIBADD = \
4948 libsystemd-shared.la \
4949 libsystemd-internal.la
4951 lib_LTLIBRARIES += \
4952 libnss_mymachines.la
4955 # ------------------------------------------------------------------------------
4957 systemd_resolved_SOURCES = \
4958 src/resolve/resolved.c \
4959 src/resolve/resolved-manager.c \
4960 src/resolve/resolved-manager.h \
4961 src/resolve/resolved-conf.c \
4962 src/resolve/resolved-conf.h \
4963 src/resolve/resolved-bus.c \
4964 src/resolve/resolved-bus.h \
4965 src/resolve/resolved-link.h \
4966 src/resolve/resolved-link.c \
4967 src/resolve/resolved-def.h \
4968 src/resolve/resolved-dns-domain.h \
4969 src/resolve/resolved-dns-domain.c \
4970 src/resolve/resolved-dns-rr.h \
4971 src/resolve/resolved-dns-rr.c \
4972 src/resolve/resolved-dns-question.h \
4973 src/resolve/resolved-dns-question.c \
4974 src/resolve/resolved-dns-answer.h \
4975 src/resolve/resolved-dns-answer.c \
4976 src/resolve/resolved-dns-packet.h \
4977 src/resolve/resolved-dns-packet.c \
4978 src/resolve/resolved-dns-query.h \
4979 src/resolve/resolved-dns-query.c \
4980 src/resolve/resolved-dns-transaction.h \
4981 src/resolve/resolved-dns-transaction.c \
4982 src/resolve/resolved-dns-scope.h \
4983 src/resolve/resolved-dns-scope.c \
4984 src/resolve/resolved-dns-server.h \
4985 src/resolve/resolved-dns-server.c \
4986 src/resolve/resolved-dns-cache.h \
4987 src/resolve/resolved-dns-cache.c \
4988 src/resolve/resolved-dns-zone.h \
4989 src/resolve/resolved-dns-zone.c \
4990 src/resolve/resolved-dns-stream.h \
4991 src/resolve/resolved-dns-stream.c \
4992 src/resolve/dns-type.c \
4993 src/resolve/dns-type.h \
4994 src/resolve/dns_type-from-name.h \
4995 src/resolve/dns_type-to-name.h
4997 nodist_systemd_resolved_SOURCES = \
4998 src/resolve/resolved-gperf.c
5001 src/resolve/resolved-gperf.gperf \
5002 src/resolve/dns_type-from-name.gperf
5005 src/resolve/resolved-gperf.c
5007 systemd_resolved_LDADD = \
5008 libsystemd-capability.la \
5009 libsystemd-network.la \
5010 libsystemd-label.la \
5011 libsystemd-internal.la \
5012 libsystemd-shared.la \
5016 rootlibexec_PROGRAMS += \
5019 nodist_systemunit_DATA += \
5020 units/systemd-resolved.service
5022 dist_systemunit_DATA_busnames += \
5023 units/org.freedesktop.resolve1.busname
5025 dist_dbuspolicy_DATA += \
5026 src/resolve/org.freedesktop.resolve1.conf
5028 dist_dbussystemservice_DATA += \
5029 src/resolve/org.freedesktop.resolve1.service
5032 units/systemd-resolved.service.in
5034 SYSTEM_UNIT_ALIASES += \
5035 systemd-resolved.service dbus-org.freedesktop.resolve1.service
5037 BUSNAMES_TARGET_WANTS += \
5038 org.freedesktop.resolve1.busname
5040 GENERAL_ALIASES += \
5041 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
5043 nodist_pkgsysconf_DATA += \
5044 src/resolve/resolved.conf
5047 src/resolve/resolved.conf.in
5050 src/resolve/resolved.conf
5055 test_dns_domain_SOURCES = \
5056 src/resolve/resolved-dns-domain.h \
5057 src/resolve/resolved-dns-domain.c \
5058 src/resolve/test-dns-domain.c
5060 test_dns_domain_LDADD = \
5061 libsystemd-capability.la \
5062 libsystemd-network.la \
5063 libsystemd-label.la \
5064 libsystemd-internal.la \
5065 libsystemd-shared.la \
5068 libnss_resolve_la_SOURCES = \
5069 src/nss-resolve/nss-resolve.sym \
5070 src/nss-resolve/nss-resolve.c
5072 libnss_resolve_la_LDFLAGS = \
5079 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
5081 libnss_resolve_la_LIBADD = \
5082 libsystemd-shared.la \
5083 libsystemd-internal.la
5085 lib_LTLIBRARIES += \
5088 systemd_resolve_host_SOURCES = \
5089 src/resolve-host/resolve-host.c \
5090 src/resolve/resolved-dns-packet.c \
5091 src/resolve/resolved-dns-packet.h \
5092 src/resolve/resolved-dns-rr.c \
5093 src/resolve/resolved-dns-rr.h \
5094 src/resolve/resolved-dns-answer.c \
5095 src/resolve/resolved-dns-answer.h \
5096 src/resolve/resolved-dns-question.c \
5097 src/resolve/resolved-dns-question.h \
5098 src/resolve/resolved-dns-domain.c \
5099 src/resolve/resolved-dns-domain.h \
5100 src/resolve/dns-type.c \
5101 src/resolve/dns-type.h \
5102 src/resolve/dns_type-from-name.h \
5103 src/resolve/dns_type-to-name.h
5105 systemd_resolve_host_LDADD = \
5106 libsystemd-internal.la \
5107 libsystemd-shared.la \
5111 rootlibexec_PROGRAMS += \
5112 systemd-resolve-host
5116 # ------------------------------------------------------------------------------
5118 rootlibexec_PROGRAMS += \
5121 systemd_networkd_SOURCES = \
5122 src/network/networkd.c
5124 systemd_networkd_LDADD = \
5125 libsystemd-networkd-core.la \
5126 libsystemd-capability.la
5128 noinst_LTLIBRARIES += \
5129 libsystemd-networkd-core.la
5131 libsystemd_networkd_core_la_CFLAGS = \
5134 libsystemd_networkd_core_la_SOURCES = \
5135 src/libsystemd-network/network-internal.h \
5136 src/network/networkd.h \
5137 src/network/networkd-link.h \
5138 src/network/networkd-netdev.h \
5139 src/network/networkd-netdev-tunnel.h \
5140 src/network/networkd-netdev-veth.h \
5141 src/network/networkd-netdev-vxlan.h \
5142 src/network/networkd-netdev-vlan.h \
5143 src/network/networkd-netdev-macvlan.h \
5144 src/network/networkd-netdev-dummy.h \
5145 src/network/networkd-netdev-tuntap.h \
5146 src/network/networkd-netdev-bond.h \
5147 src/network/networkd-netdev-bridge.h \
5148 src/network/networkd-netdev.c \
5149 src/network/networkd-netdev-tunnel.c \
5150 src/network/networkd-netdev-veth.c \
5151 src/network/networkd-netdev-vxlan.c \
5152 src/network/networkd-netdev-vlan.c \
5153 src/network/networkd-netdev-macvlan.c \
5154 src/network/networkd-netdev-dummy.c \
5155 src/network/networkd-netdev-tuntap.c \
5156 src/network/networkd-netdev-bond.c \
5157 src/network/networkd-netdev-bridge.c \
5158 src/network/networkd-link.c \
5159 src/network/networkd-ipv4ll.c \
5160 src/network/networkd-dhcp4.c \
5161 src/network/networkd-network.c \
5162 src/network/networkd-address.c \
5163 src/network/networkd-route.c \
5164 src/network/networkd-manager.c \
5165 src/network/networkd-address-pool.c
5167 nodist_libsystemd_networkd_core_la_SOURCES = \
5168 src/network/networkd-network-gperf.c \
5169 src/network/networkd-netdev-gperf.c
5171 libsystemd_networkd_core_la_LIBADD = \
5172 libudev-internal.la \
5173 libsystemd-internal.la \
5174 libsystemd-network.la \
5175 libsystemd-label.la \
5176 libsystemd-shared.la
5178 rootlibexec_PROGRAMS += \
5179 systemd-networkd-wait-online
5181 systemd_networkd_wait_online_CFLAGS = \
5184 systemd_networkd_wait_online_SOURCES = \
5185 src/libsystemd-network/network-internal.h \
5186 src/network/networkd-wait-online.h \
5187 src/network/networkd-wait-online-link.h \
5188 src/network/networkd-wait-online.c \
5189 src/network/networkd-wait-online-manager.c \
5190 src/network/networkd-wait-online-link.c
5192 systemd_networkd_wait_online_LDADD = \
5193 libsystemd-network.la \
5194 libudev-internal.la \
5195 libsystemd-internal.la \
5196 libsystemd-shared.la
5198 rootbin_PROGRAMS += \
5201 networkctl_SOURCES = \
5202 src/network/networkctl.c
5204 networkctl_LDADD = \
5205 libsystemd-internal.la \
5206 libudev-internal.la \
5207 libsystemd-shared.la \
5208 libsystemd-network.la
5210 test_network_SOURCES = \
5211 src/network/test-network.c
5213 test_network_CFLAGS = \
5216 test_network_LDADD = \
5217 libsystemd-networkd-core.la
5219 test_network_tables_SOURCES = \
5220 src/network/test-network-tables.c \
5221 src/shared/test-tables.h
5223 test_network_tables_LDADD = \
5224 libsystemd-networkd-core.la \
5231 nodist_systemunit_DATA += \
5232 units/systemd-networkd.service \
5233 units/systemd-networkd-wait-online.service
5235 GENERAL_ALIASES += \
5236 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5237 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5240 src/network/networkd-network-gperf.gperf \
5241 src/network/networkd-netdev-gperf.gperf \
5242 units/systemd-networkd.service.in \
5243 units/systemd-networkd-wait-online.service.in
5246 src/network/networkd-network-gperf.c \
5247 src/network/networkd-netdev-gperf.c
5250 # ------------------------------------------------------------------------------
5252 systemd_logind_SOURCES = \
5253 src/login/logind.c \
5256 nodist_systemd_logind_SOURCES = \
5257 src/login/logind-gperf.c
5259 systemd_logind_LDADD = \
5260 libsystemd-logind-core.la
5262 libsystemd_logind_core_la_SOURCES = \
5263 src/login/logind-core.c \
5264 src/login/logind-device.c \
5265 src/login/logind-device.h \
5266 src/login/logind-button.c \
5267 src/login/logind-button.h \
5268 src/login/logind-action.c \
5269 src/login/logind-action.h \
5270 src/login/logind-seat.c \
5271 src/login/logind-seat.h \
5272 src/login/logind-session.c \
5273 src/login/logind-session.h \
5274 src/login/logind-session-device.c \
5275 src/login/logind-session-device.h \
5276 src/login/logind-user.c \
5277 src/login/logind-user.h \
5278 src/login/logind-inhibit.c \
5279 src/login/logind-inhibit.h \
5280 src/login/logind-dbus.c \
5281 src/login/logind-session-dbus.c \
5282 src/login/logind-seat-dbus.c \
5283 src/login/logind-user-dbus.c \
5284 src/login/logind-acl.h
5286 libsystemd_logind_core_la_LIBADD = \
5287 libsystemd-label.la \
5288 libsystemd-capability.la \
5289 libsystemd-internal.la \
5290 libudev-internal.la \
5291 libsystemd-shared.la
5294 libsystemd_logind_core_la_SOURCES += \
5295 src/login/logind-acl.c
5297 libsystemd_logind_core_la_LIBADD += \
5301 noinst_LTLIBRARIES += \
5302 libsystemd-logind-core.la
5304 systemd_user_sessions_SOURCES = \
5305 src/login/user-sessions.c
5307 systemd_user_sessions_LDADD = \
5308 libsystemd-shared.la
5310 rootlibexec_PROGRAMS += \
5312 systemd-user-sessions
5314 loginctl_SOURCES = \
5315 src/login/loginctl.c \
5316 src/login/sysfs-show.c
5319 libsystemd-internal.la \
5320 libudev-internal.la \
5321 libsystemd-shared.la
5323 rootbin_PROGRAMS += \
5326 dist_bashcompletion_DATA += \
5327 shell-completion/bash/loginctl
5329 dist_zshcompletion_DATA += \
5330 shell-completion/zsh/_loginctl \
5331 shell-completion/zsh/_systemd-inhibit
5333 systemd_inhibit_SOURCES = \
5336 systemd_inhibit_LDADD = \
5337 libsystemd-internal.la \
5338 libsystemd-shared.la
5340 rootbin_PROGRAMS += \
5343 test_login_SOURCES = \
5344 src/libsystemd/sd-login/test-login.c
5346 test_login_LDADD = \
5347 libsystemd-internal.la \
5348 libsystemd-shared.la
5350 test_login_shared_SOURCES = \
5351 src/login/test-login-shared.c
5353 test_login_shared_LDADD = \
5354 libsystemd-internal.la \
5355 libsystemd-shared.la
5357 test_inhibit_SOURCES = \
5358 src/login/test-inhibit.c
5360 test_inhibit_LDADD = \
5361 libsystemd-internal.la \
5362 libsystemd-shared.la
5364 test_login_tables_SOURCES = \
5365 src/login/test-login-tables.c
5367 test_login_tables_LDADD = \
5368 libsystemd-logind-core.la
5379 pam_systemd_la_SOURCES = \
5380 src/login/pam_systemd.sym \
5381 src/login/pam_systemd.c
5383 pam_systemd_la_CFLAGS = \
5388 pam_systemd_la_LDFLAGS = \
5394 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5396 pam_systemd_la_LIBADD = \
5397 libsystemd-capability.la \
5398 libsystemd-internal.la \
5399 libsystemd-shared.la \
5402 pamlib_LTLIBRARIES = \
5405 dist_pamconf_DATA = \
5406 src/login/systemd-user
5409 nodist_systemunit_DATA += \
5410 units/systemd-logind.service \
5411 units/systemd-user-sessions.service
5413 dist_systemunit_DATA += \
5416 dist_systemunit_DATA_busnames += \
5417 units/org.freedesktop.login1.busname
5419 dist_dbussystemservice_DATA += \
5420 src/login/org.freedesktop.login1.service
5422 dist_dbuspolicy_DATA += \
5423 src/login/org.freedesktop.login1.conf
5425 dist_pkgsysconf_DATA += \
5426 src/login/logind.conf
5428 polkitpolicy_files += \
5429 src/login/org.freedesktop.login1.policy
5434 MULTI_USER_TARGET_WANTS += \
5435 systemd-logind.service \
5436 systemd-user-sessions.service
5438 SYSTEM_UNIT_ALIASES += \
5439 systemd-logind.service dbus-org.freedesktop.login1.service
5441 BUSNAMES_TARGET_WANTS += \
5442 org.freedesktop.login1.busname
5444 dist_udevrules_DATA += \
5445 src/login/70-uaccess.rules \
5446 src/login/70-power-switch.rules
5448 nodist_udevrules_DATA += \
5449 src/login/71-seat.rules \
5450 src/login/73-seat-late.rules
5453 src/login/logind-gperf.c \
5454 src/login/71-seat.rules \
5455 src/login/73-seat-late.rules
5458 polkitpolicy_in_files += \
5459 src/login/org.freedesktop.login1.policy.in
5462 src/login/logind-gperf.gperf \
5463 src/login/71-seat.rules.in \
5464 src/login/73-seat-late.rules.in \
5465 units/systemd-logind.service.in \
5466 units/systemd-user-sessions.service.in
5468 # ------------------------------------------------------------------------------
5469 if HAVE_PYTHON_DEVEL
5470 pkgpyexec_LTLIBRARIES = \
5477 _journal_la_SOURCES = \
5478 src/python-systemd/_journal.c
5480 _journal_la_CFLAGS = \
5482 -fvisibility=default \
5483 $(PYTHON_DEVEL_CFLAGS)
5485 _journal_la_LDFLAGS = \
5491 _journal_la_LIBADD = \
5492 $(PYTHON_DEVEL_LIBS) \
5495 id128_la_SOURCES = \
5496 src/python-systemd/id128.c \
5497 src/python-systemd/pyutil.c \
5498 src/python-systemd/pyutil.h
5500 nodist_id128_la_SOURCES = \
5501 src/python-systemd/id128-constants.h
5505 -fvisibility=default \
5506 $(PYTHON_DEVEL_CFLAGS) \
5507 -I$(top_builddir)/src/python-systemd
5509 id128_la_LDFLAGS = \
5516 $(PYTHON_DEVEL_LIBS) \
5517 libsystemd-shared.la \
5520 _daemon_la_SOURCES = \
5521 src/python-systemd/_daemon.c \
5522 src/python-systemd/pyutil.c \
5523 src/python-systemd/pyutil.h
5525 _daemon_la_CFLAGS = \
5527 -fvisibility=default \
5528 $(PYTHON_DEVEL_CFLAGS) \
5529 -I$(top_builddir)/src/python-systemd
5531 _daemon_la_LDFLAGS = \
5537 _daemon_la_LIBADD = \
5538 $(PYTHON_DEVEL_LIBS) \
5539 libsystemd-shared.la \
5542 _reader_la_SOURCES = \
5543 src/python-systemd/_reader.c \
5544 src/python-systemd/pyutil.c \
5545 src/python-systemd/pyutil.h
5547 _reader_la_CFLAGS = \
5549 -fvisibility=default \
5550 $(PYTHON_DEVEL_CFLAGS)
5552 _reader_la_LDFLAGS = \
5558 _reader_la_LIBADD = \
5559 $(PYTHON_DEVEL_LIBS) \
5560 libsystemd-shared.la \
5563 login_la_SOURCES = \
5564 src/python-systemd/login.c \
5565 src/python-systemd/pyutil.c \
5566 src/python-systemd/pyutil.h
5570 -fvisibility=default \
5571 $(PYTHON_DEVEL_CFLAGS)
5573 login_la_LDFLAGS = \
5580 $(PYTHON_DEVEL_LIBS) \
5581 libsystemd-shared.la \
5584 dist_pkgpyexec_PYTHON = \
5585 src/python-systemd/journal.py \
5586 src/python-systemd/daemon.py \
5587 src/python-systemd/__init__.py
5589 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
5590 $(AM_V_at)$(MKDIR_P) $(dir $@)
5591 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
5594 src/python-systemd/id128-constants.h
5596 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
5598 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
5599 $(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/
5600 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
5603 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
5604 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
5607 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
5608 $(MAKE) DESTDIR="$$dir" install && \
5609 $(MAKE) DESTDIR="$$dir" sphinx-html && \
5614 CLEAN_LOCAL_HOOKS += clean-sphinx
5616 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
5619 -rm -rf docs/html/python-systemd/
5621 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
5623 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
5624 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
5626 # ------------------------------------------------------------------------------
5627 if ENABLE_COMPAT_LIBS
5629 src/compat-libs/linkwarning.h
5631 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
5632 $(AM_V_at)$(MKDIR_P) $(dir $@)
5633 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
5636 libsystemd-journal.c \
5637 libsystemd-login.c \
5638 libsystemd-id128.c \
5641 libsystemd_journal_la_SOURCES = \
5642 libsystemd-journal.c \
5643 src/compat-libs/libsystemd-journal.sym
5645 libsystemd_journal_la_CPPFLAGS = \
5647 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5649 libsystemd_journal_la_LDFLAGS = \
5651 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
5652 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
5654 libsystemd_journal_la_LIBADD = \
5655 libsystemd-journal-internal.la \
5656 libsystemd-internal.la \
5657 libsystemd-shared.la
5659 libsystemd_login_la_SOURCES = \
5660 libsystemd-login.c \
5661 src/compat-libs/libsystemd-login.sym
5663 libsystemd_login_la_CPPFLAGS = \
5665 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5667 libsystemd_login_la_LDFLAGS = \
5669 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
5670 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
5672 libsystemd_login_la_LIBADD = \
5673 libsystemd-internal.la \
5674 libsystemd-shared.la
5676 libsystemd_id128_la_SOURCES = \
5677 libsystemd-id128.c \
5678 src/compat-libs/libsystemd-id128.sym
5680 libsystemd_id128_la_CPPFLAGS = \
5682 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5684 libsystemd_id128_la_LDFLAGS = \
5686 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
5687 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
5689 libsystemd_id128_la_LIBADD = \
5690 libsystemd-internal.la \
5691 libsystemd-shared.la
5693 libsystemd_daemon_la_SOURCES = \
5694 libsystemd-daemon.c \
5695 src/compat-libs/libsystemd-daemon.sym
5697 libsystemd_daemon_la_CPPFLAGS = \
5699 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5701 libsystemd_daemon_la_LDFLAGS = \
5703 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
5704 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
5706 libsystemd_daemon_la_LIBADD = \
5707 libsystemd-internal.la \
5708 libsystemd-shared.la
5710 lib_LTLIBRARIES += \
5711 libsystemd-journal.la \
5712 libsystemd-login.la \
5713 libsystemd-id128.la \
5714 libsystemd-daemon.la
5716 pkgconfiglib_DATA += \
5717 src/compat-libs/libsystemd-journal.pc \
5718 src/compat-libs/libsystemd-login.pc \
5719 src/compat-libs/libsystemd-id128.pc \
5720 src/compat-libs/libsystemd-daemon.pc
5722 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
5723 compat-lib-install-hook:
5724 libname=libsystemd-login.so && $(move-to-rootlibdir)
5725 libname=libsystemd-journal.so && $(move-to-rootlibdir)
5726 libname=libsystemd-id128.so && $(move-to-rootlibdir)
5727 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
5729 compat-lib-uninstall-hook:
5730 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
5731 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
5732 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
5733 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
5735 INSTALL_EXEC_HOOKS += compat-lib-install-hook
5736 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
5740 src/compat-libs/libsystemd-journal.pc.in \
5741 src/compat-libs/libsystemd-login.pc.in \
5742 src/compat-libs/libsystemd-id128.pc.in \
5743 src/compat-libs/libsystemd-daemon.pc.in
5745 # ------------------------------------------------------------------------------
5747 '|rootlibexecdir=$(rootlibexecdir)|' \
5748 '|rootbindir=$(rootbindir)|' \
5749 '|bindir=$(bindir)|' \
5750 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5751 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5752 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5753 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5754 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
5755 '|pkgdatadir=$(pkgdatadir)|' \
5756 '|systemunitdir=$(systemunitdir)|' \
5757 '|userunitdir=$(userunitdir)|' \
5758 '|systempresetdir=$(systempresetdir)|' \
5759 '|userpresetdir=$(userpresetdir)|' \
5760 '|udevhwdbdir=$(udevhwdbdir)|' \
5761 '|udevrulesdir=$(udevrulesdir)|' \
5762 '|catalogdir=$(catalogdir)|' \
5763 '|tmpfilesdir=$(tmpfilesdir)|' \
5764 '|sysusersdir=$(sysusersdir)|' \
5765 '|sysctldir=$(sysctldir)|' \
5766 '|systemgeneratordir=$(systemgeneratordir)|' \
5767 '|usergeneratordir=$(usergeneratordir)|' \
5768 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
5769 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
5770 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
5771 '|PACKAGE_URL=$(PACKAGE_URL)|' \
5772 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
5773 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
5774 '|prefix=$(prefix)|' \
5775 '|exec_prefix=$(exec_prefix)|' \
5776 '|libdir=$(libdir)|' \
5777 '|includedir=$(includedir)|' \
5778 '|VERSION=$(VERSION)|' \
5779 '|rootprefix=$(rootprefix)|' \
5780 '|udevlibexecdir=$(udevlibexecdir)|' \
5781 '|SUSHELL=$(SUSHELL)|' \
5782 '|DEBUGTTY=$(DEBUGTTY)|' \
5785 '|MKDIR_P=$(MKDIR_P)|' \
5786 '|QUOTAON=$(QUOTAON)|' \
5787 '|QUOTACHECK=$(QUOTACHECK)|' \
5788 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
5789 '|VARLOGDIR=$(varlogdir)|' \
5790 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
5791 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
5792 '|PYTHON=$(PYTHON)|' \
5793 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
5794 '|NTP_SERVERS=$(NTP_SERVERS)|' \
5795 '|DNS_SERVERS=$(DNS_SERVERS)|' \
5796 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
5797 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
5798 '|TTY_GID=$(TTY_GID)|' \
5799 '|systemsleepdir=$(systemsleepdir)|' \
5800 '|systemshutdowndir=$(systemshutdowndir)|' \
5801 '|binfmtdir=$(binfmtdir)|' \
5802 '|modulesloaddir=$(modulesloaddir)|'
5805 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
5806 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
5815 sysctl.d/%: sysctl.d/%.in
5824 src/core/macros.%: src/core/macros.%.in
5827 src/%.policy.in: src/%.policy.in.in
5830 shell-completion/%: shell-completion/%.in
5841 $(AM_V_GEN)chmod +x $@
5843 src/%.c: src/%.gperf
5844 $(AM_V_at)$(MKDIR_P) $(dir $@)
5845 $(AM_V_GPERF)$(GPERF) < $< > $@
5848 $(AM_V_at)$(MKDIR_P) $(dir $@)
5849 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5851 tmpfiles.d/%: tmpfiles.d/%.m4
5852 $(AM_V_at)$(MKDIR_P) $(dir $@)
5853 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5857 $(AM_V_at)$(MKDIR_P) $(dir $@)
5858 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
5860 units/user/%: units/%.m4
5861 $(AM_V_at)$(MKDIR_P) $(dir $@)
5862 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
5865 nodist_polkitpolicy_DATA = \
5866 $(polkitpolicy_files) \
5867 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
5871 $(polkitpolicy_in_files) \
5872 $(polkitpolicy_in_in_files)
5875 $(nodist_systemunit_DATA) \
5876 $(nodist_userunit_DATA) \
5877 $(pkgconfigdata_DATA) \
5878 $(pkgconfiglib_DATA) \
5879 $(nodist_polkitpolicy_DATA)
5881 # ------------------------------------------------------------------------------
5883 man/custom-entities.ent: configure.ac
5884 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
5885 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
5886 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
5890 man/custom-entities.ent
5895 --stringparam man.output.quietly 1 \
5896 --stringparam funcsynopsis.style ansi \
5897 --stringparam man.authors.section.enabled 0 \
5898 --stringparam man.copyright.section.enabled 0 \
5899 --stringparam systemd.version $(VERSION) \
5900 --path '$(builddir)/man:$(srcdir)/man'
5902 XSLTPROC_PROCESS_MAN = \
5903 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
5905 XSLTPROC_PROCESS_HTML = \
5906 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
5908 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
5909 $(XSLTPROC_PROCESS_MAN)
5911 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
5912 $(XSLTPROC_PROCESS_MAN)
5914 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
5915 $(XSLTPROC_PROCESS_MAN)
5917 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
5918 $(XSLTPROC_PROCESS_MAN)
5920 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
5921 $(XSLTPROC_PROCESS_MAN)
5923 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
5924 $(XSLTPROC_PROCESS_HTML)
5927 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
5933 man/custom-html.xsl \
5936 # ------------------------------------------------------------------------------
5939 docs/sysvinit/README
5944 docs/sysvinit/README: docs/sysvinit/README.in
5947 docs/var-log/README: docs/var-log/README.in
5951 docs/sysvinit/README \
5956 docs/sysvinit/README.in \
5957 docs/var-log/README.in
5959 SOCKETS_TARGET_WANTS += \
5960 systemd-initctl.socket \
5961 systemd-shutdownd.socket
5965 RUNLEVEL1_TARGET_WANTS += \
5966 systemd-update-utmp-runlevel.service
5967 RUNLEVEL2_TARGET_WANTS += \
5968 systemd-update-utmp-runlevel.service
5969 RUNLEVEL3_TARGET_WANTS += \
5970 systemd-update-utmp-runlevel.service
5971 RUNLEVEL4_TARGET_WANTS += \
5972 systemd-update-utmp-runlevel.service
5973 RUNLEVEL5_TARGET_WANTS += \
5974 systemd-update-utmp-runlevel.service
5977 SYSINIT_TARGET_WANTS += \
5978 systemd-update-utmp.service
5981 SYSINIT_TARGET_WANTS += \
5982 systemd-update-done.service
5984 LOCAL_FS_TARGET_WANTS += \
5985 systemd-remount-fs.service \
5988 MULTI_USER_TARGET_WANTS += \
5990 systemd-ask-password-wall.path
5992 SYSINIT_TARGET_WANTS += \
5993 dev-hugepages.mount \
5995 sys-kernel-config.mount \
5996 sys-kernel-debug.mount \
5997 sys-fs-fuse-connections.mount \
5998 systemd-sysctl.service \
5999 systemd-ask-password-console.path
6002 SYSTEM_UNIT_ALIASES += \
6003 poweroff.target runlevel0.target \
6004 rescue.target runlevel1.target \
6005 multi-user.target runlevel2.target \
6006 multi-user.target runlevel3.target \
6007 multi-user.target runlevel4.target \
6008 graphical.target runlevel5.target \
6009 reboot.target runlevel6.target
6012 SYSTEM_UNIT_ALIASES += \
6013 graphical.target default.target \
6014 reboot.target ctrl-alt-del.target \
6015 getty@.service autovt@.service
6017 USER_UNIT_ALIASES += \
6018 $(systemunitdir)/shutdown.target shutdown.target \
6019 $(systemunitdir)/sockets.target sockets.target \
6020 $(systemunitdir)/timers.target timers.target \
6021 $(systemunitdir)/paths.target paths.target \
6022 $(systemunitdir)/bluetooth.target bluetooth.target \
6023 $(systemunitdir)/printer.target printer.target \
6024 $(systemunitdir)/sound.target sound.target \
6025 $(systemunitdir)/smartcard.target smartcard.target
6028 USER_UNIT_ALIASES += \
6029 $(systemunitdir)/busnames.target busnames.target
6032 GENERAL_ALIASES += \
6033 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
6034 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
6035 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
6036 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
6040 $(systemunitdir)/runlevel1.target.wants \
6041 $(systemunitdir)/runlevel2.target.wants \
6042 $(systemunitdir)/runlevel3.target.wants \
6043 $(systemunitdir)/runlevel4.target.wants \
6044 $(systemunitdir)/runlevel5.target.wants
6048 $(prefix)/lib/modules-load.d \
6049 $(sysconfdir)/modules-load.d \
6050 $(prefix)/lib/systemd/network \
6051 $(sysconfdir)/systemd/network \
6052 $(prefix)/lib/sysctl.d \
6053 $(sysconfdir)/sysctl.d \
6054 $(prefix)/lib/kernel/install.d \
6055 $(sysconfdir)/kernel/install.d \
6056 $(systemshutdowndir) \
6058 $(systemgeneratordir) \
6059 $(usergeneratordir) \
6062 $(pkgsysconfdir)/system \
6063 $(pkgsysconfdir)/system/multi-user.target.wants \
6064 $(pkgsysconfdir)/system/getty.target.wants \
6065 $(pkgsysconfdir)/user \
6066 $(dbussessionservicedir) \
6067 $(sysconfdir)/xdg/systemd
6069 install-exec-hook: $(INSTALL_EXEC_HOOKS)
6071 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
6073 install-data-hook: $(INSTALL_DATA_HOOKS)
6075 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
6077 clean-local: $(CLEAN_LOCAL_HOOKS)
6078 rm -rf $(abs_srcdir)/install-tree
6079 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
6080 $(abs_srcdir)/hwdb/iab.txt
6082 DISTCHECK_CONFIGURE_FLAGS = \
6083 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
6084 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6085 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
6086 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
6087 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
6088 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
6089 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
6090 --with-rootprefix=$$dc_install_base \
6091 --disable-split-usr \
6093 --enable-compat-libs
6096 DISTCHECK_CONFIGURE_FLAGS += \
6097 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
6098 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
6100 DISTCHECK_CONFIGURE_FLAGS += \
6101 --with-sysvinit-path= \
6102 --with-sysvrcnd-path=
6106 DISTCHECK_CONFIGURE_FLAGS += \
6111 DISTCHECK_CONFIGURE_FLAGS += \
6116 # Require python when making dist
6118 .PHONY: dist-check-python
6121 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
6125 dist-check-compat-libs:
6126 if !ENABLE_COMPAT_LIBS
6127 @echo "*** compat-libs must be enabled in order to make dist"
6131 dist: dist-check-python dist-check-compat-libs
6133 # check "broken" platforms limited toolchains for link breakage before we release
6136 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
6140 ( cd $(top_srcdir)/hwdb && \
6141 wget -N http://www.linux-usb.org/usb.ids \
6142 http://pci-ids.ucw.cz/v2.2/pci.ids \
6143 http://standards.ieee.org/develop/regauth/oui/oui.txt \
6144 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
6147 .PHONY: kdbus-update
6149 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
6150 wget -N https://d-bus.googlecode.com/git/kdbus.h )
6154 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6156 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6158 upload: all check dist
6159 scp systemd-$(VERSION).tar.xz $(www_target)
6162 doc-sync: all destdir-sphinx
6163 gtkdoc-rebase --html-dir=docs/libudev/html --online
6164 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
6165 gtkdoc-rebase --html-dir=docs/gudev/html --online
6166 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
6167 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6168 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
6172 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
6173 scp man/*.html tango:public/systemd-man/
6175 .PHONY: install-tree
6177 rm -rf $(abs_srcdir)/install-tree
6178 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6179 tree $(abs_srcdir)/install-tree
6181 # Let's run all tests of the test suite, but under valgrind. Let's
6182 # exclude the one perl script we have in there
6183 .PHONY: valgrind-tests
6184 valgrind-tests: $(TESTS)
6185 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
6186 if file $$f | grep -q shell; then \
6187 echo -e "$${x}Skipping non-binary $$f"; else \
6188 echo -e "$${x}Running $$f"; \
6189 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6194 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6196 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6197 $(AM_V_GEN)cat $^ > $@
6199 .PHONY: check-api-docs
6200 check-api-docs: exported man
6201 $(AM_V_GEN)for symbol in `cat exported` ; do \
6202 if test -f $(builddir)/man/$$symbol.html ; then \
6203 echo " Symbol $$symbol() is documented." ; \
6205 echo "‣ Symbol $$symbol() lacks documentation." ; \
6209 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6210 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6212 undefined defined: $(ALL_OBJECTS)
6213 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6214 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6215 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6221 .PHONY: check-api-unused
6222 check-api-unused: defined undefined exported
6223 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6225 .PHONY: check-includes
6226 check-includes: $(top_srcdir)/tools/check-includes.pl
6227 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6228 | xargs $(top_srcdir)/tools/check-includes.pl
6231 $(top_srcdir)/tools/check-includes.pl
6233 # Stupid test that everything purported to be exported really is
6234 define generate-sym-test
6235 $(AM_V_at)$(MKDIR_P) $(dir $@)
6236 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6237 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6238 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6239 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6240 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6241 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6242 $(AM_V_at)printf 'return 0; }\n' >> $@
6245 test-libsystemd-sym.c: \
6246 $(top_builddir)/src/libsystemd/libsystemd.sym \
6247 src/systemd/sd-journal.h \
6248 src/systemd/sd-daemon.h \
6249 src/systemd/sd-login.h \
6250 src/systemd/sd-bus.h \
6251 src/systemd/sd-utf8.h \
6252 src/systemd/sd-resolve.h \
6253 src/systemd/sd-path.h
6254 $(generate-sym-test)
6256 test-libudev-sym.c: \
6257 src/libudev/libudev.sym \
6259 $(generate-sym-test)
6261 test_libsystemd_sym_SOURCES = \
6262 test-libsystemd-sym.c
6263 test_libsystemd_sym_LDADD = \
6266 test_libudev_sym_SOURCES = \
6268 test_libudev_sym_CFLAGS = \
6270 -Wno-deprecated-declarations
6271 test_libudev_sym_LDADD = \
6275 $(test_libsystemd_sym_SOURCES) \
6276 $(test_libudev_sym_SOURCES)
6279 test-libsystemd-sym \
6284 cppcheck --enable=all -q $(top_srcdir)
6286 # Used to extract compile flags for YCM.
6291 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u
6294 tools/gdb-sd_dump_hashmaps.py