1 # -*- Mode: makefile; indent-tabs-mode: t -*-
3 # This file is part of systemd.
5 # Copyright 2010-2012 Lennart Poettering
6 # Copyright 2010-2012 Kay Sievers
7 # Copyright 2013 Zbigniew Jędrzejewski-Szmek
8 # Copyright 2013 David Strauss
10 # systemd is free software; you can redistribute it and/or modify it
11 # under the terms of the GNU Lesser General Public License as published by
12 # the Free Software Foundation; either version 2.1 of the License, or
13 # (at your option) any later version.
15 # systemd is distributed in the hope that it will be useful, but
16 # WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 # Lesser General Public License for more details.
20 # You should have received a copy of the GNU Lesser General Public License
21 # along with systemd; If not, see <http://www.gnu.org/licenses/>.
23 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
24 AM_MAKEFLAGS = --no-print-directory
25 AUTOMAKE_OPTIONS = color-tests parallel-tests
27 GCC_COLORS ?= 'ooh, shiny!'
32 # remove targets if the command fails
35 # keep intermediate files
38 # Keep the test-suite.log
39 .PRECIOUS: $(TEST_SUITE_LOG) Makefile
53 # The following four libraries only exist for compatibility reasons,
54 # their version info should not be bumped anymore
55 LIBSYSTEMD_LOGIN_CURRENT=9
56 LIBSYSTEMD_LOGIN_REVISION=3
57 LIBSYSTEMD_LOGIN_AGE=9
59 LIBSYSTEMD_DAEMON_CURRENT=0
60 LIBSYSTEMD_DAEMON_REVISION=12
61 LIBSYSTEMD_DAEMON_AGE=0
63 LIBSYSTEMD_ID128_CURRENT=0
64 LIBSYSTEMD_ID128_REVISION=28
65 LIBSYSTEMD_ID128_AGE=0
67 LIBSYSTEMD_JOURNAL_CURRENT=11
68 LIBSYSTEMD_JOURNAL_REVISION=5
69 LIBSYSTEMD_JOURNAL_AGE=11
71 # Dirs of external packages
72 dbuspolicydir=@dbuspolicydir@
73 dbussessionservicedir=@dbussessionservicedir@
74 dbussystemservicedir=@dbussystemservicedir@
76 pamconfdir=@pamconfdir@
77 pkgconfigdatadir=$(datadir)/pkgconfig
78 pkgconfiglibdir=$(libdir)/pkgconfig
79 polkitpolicydir=$(datadir)/polkit-1/actions
80 bashcompletiondir=@bashcompletiondir@
81 zshcompletiondir=@zshcompletiondir@
82 rpmmacrosdir=$(prefix)/lib/rpm/macros.d
83 sysvinitdir=$(SYSTEM_SYSVINIT_PATH)
84 sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
85 varlogdir=$(localstatedir)/log
86 systemdstatedir=$(localstatedir)/lib/systemd
87 catalogstatedir=$(systemdstatedir)/catalog
89 # Our own, non-special dirs
90 pkgsysconfdir=$(sysconfdir)/systemd
91 userunitdir=$(prefix)/lib/systemd/user
92 userpresetdir=$(prefix)/lib/systemd/user-preset
93 tmpfilesdir=$(prefix)/lib/tmpfiles.d
94 sysusersdir=$(prefix)/lib/sysusers.d
95 sysctldir=$(prefix)/lib/sysctl.d
96 binfmtdir=$(prefix)/lib/binfmt.d
97 modulesloaddir=$(prefix)/lib/modules-load.d
98 networkdir=$(rootprefix)/lib/systemd/network
99 pkgincludedir=$(includedir)/systemd
100 systemgeneratordir=$(rootlibexecdir)/system-generators
101 usergeneratordir=$(prefix)/lib/systemd/user-generators
102 systemshutdowndir=$(rootlibexecdir)/system-shutdown
103 systemsleepdir=$(rootlibexecdir)/system-sleep
104 systemunitdir=$(rootprefix)/lib/systemd/system
105 systempresetdir=$(rootprefix)/lib/systemd/system-preset
106 udevlibexecdir=$(rootprefix)/lib/udev
107 udevhomedir=$(udevlibexecdir)
108 udevrulesdir=$(udevlibexecdir)/rules.d
109 udevhwdbdir=$(udevlibexecdir)/hwdb.d
110 catalogdir=$(prefix)/lib/systemd/catalog
111 kernelinstalldir = $(prefix)/lib/kernel/install.d
112 factory_etcdir = $(prefix)/share/factory/etc
113 factory_pamdir = $(prefix)/share/factory/etc/pam.d
115 # And these are the special ones for /
116 rootprefix=@rootprefix@
117 rootbindir=$(rootprefix)/bin
118 rootlibexecdir=$(rootprefix)/lib/systemd
120 CLEANFILES = $(BUILT_SOURCES)
125 UNINSTALL_EXEC_HOOKS =
127 UNINSTALL_DATA_HOOKS =
128 DISTCLEAN_LOCAL_HOOKS =
136 polkitpolicy_in_in_files =
137 polkitpolicy_in_files =
139 dist_udevrules_DATA =
140 nodist_udevrules_DATA =
141 dist_pkgsysconf_DATA =
142 nodist_pkgsysconf_DATA =
144 dist_dbuspolicy_DATA =
145 dist_dbussystemservice_DATA =
146 dist_systemunit_DATA_busnames =
152 noinst_PROGRAMS = $(manual_tests) $(tests)
158 udevlibexec_PROGRAMS =
160 .PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \
161 $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \
162 $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS)
165 -include $(top_builddir)/config.h \
166 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
167 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
168 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
169 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
170 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
171 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
172 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
173 -DCERTIFICATE_ROOT=\"$(CERTIFICATEROOT)\" \
174 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
175 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
176 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
177 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
178 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
179 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
180 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
181 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
182 -DROOTPREFIX=\"$(rootprefix)\" \
183 -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \
184 -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
185 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
186 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
187 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
188 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
189 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
190 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
191 -DX_SERVER=\"$(bindir)/X\" \
192 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
193 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
194 -DQUOTACHECK=\"$(QUOTACHECK)\" \
195 -DKEXEC=\"$(KEXEC)\" \
196 -DLIBDIR=\"$(libdir)\" \
197 -DROOTLIBDIR=\"$(rootlibdir)\" \
198 -DTEST_DIR=\"$(abs_top_srcdir)/test\" \
199 -I $(top_srcdir)/src \
200 -I $(top_builddir)/src/shared \
201 -I $(top_srcdir)/src/shared \
202 -I $(top_srcdir)/src/network \
203 -I $(top_srcdir)/src/login \
204 -I $(top_srcdir)/src/journal \
205 -I $(top_srcdir)/src/timedate \
206 -I $(top_srcdir)/src/timesync \
207 -I $(top_srcdir)/src/resolve \
208 -I $(top_builddir)/src/resolve \
209 -I $(top_srcdir)/src/systemd \
210 -I $(top_builddir)/src/core \
211 -I $(top_srcdir)/src/core \
212 -I $(top_srcdir)/src/libudev \
213 -I $(top_srcdir)/src/udev \
214 -I $(top_srcdir)/src/udev/net \
215 -I $(top_builddir)/src/udev \
216 -I $(top_srcdir)/src/libsystemd/sd-bus \
217 -I $(top_srcdir)/src/libsystemd/sd-event \
218 -I $(top_srcdir)/src/libsystemd/sd-rtnl \
219 -I $(top_srcdir)/src/libsystemd/sd-network \
220 -I $(top_srcdir)/src/libsystemd-network \
221 -I $(top_srcdir)/src/libsystemd-terminal \
224 AM_CFLAGS = $(OUR_CFLAGS)
225 AM_LDFLAGS = $(OUR_LDFLAGS)
227 # ------------------------------------------------------------------------------
228 define move-to-rootlibdir
229 if test "$(libdir)" != "$(rootlibdir)"; then \
230 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
231 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
232 rm -f $(DESTDIR)$(libdir)/$$libname && \
233 $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
234 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
240 RUNLEVEL1_TARGET_WANTS =
241 RUNLEVEL2_TARGET_WANTS =
242 RUNLEVEL3_TARGET_WANTS =
243 RUNLEVEL4_TARGET_WANTS =
244 RUNLEVEL5_TARGET_WANTS =
245 SHUTDOWN_TARGET_WANTS =
246 LOCAL_FS_TARGET_WANTS =
247 MULTI_USER_TARGET_WANTS =
248 SYSINIT_TARGET_WANTS =
249 SOCKETS_TARGET_WANTS =
250 BUSNAMES_TARGET_WANTS =
251 TIMERS_TARGET_WANTS =
252 USER_SOCKETS_TARGET_WANTS =
253 USER_DEFAULT_TARGET_WANTS =
254 USER_BUSNAMES_TARGET_WANTS =
256 SYSTEM_UNIT_ALIASES =
260 install-target-wants-hook:
261 what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && dir=$(systemunitdir) && $(add-wants)
262 what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && dir=$(systemunitdir) && $(add-wants)
263 what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && dir=$(systemunitdir) && $(add-wants)
264 what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && dir=$(systemunitdir) && $(add-wants)
265 what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && dir=$(systemunitdir) && $(add-wants)
266 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
267 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
268 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
269 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
270 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
271 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
272 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
273 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
274 what="$(USER_DEFAULT_TARGET_WANTS)" && wants=default.target && dir=$(userunitdir) && $(add-wants)
276 install-busnames-target-wants-hook:
277 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
278 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
281 [ -z "$$what" ] || ( \
282 dir=$(DESTDIR)$$dir/$$wants.wants && \
283 $(MKDIR_P) -m 0755 $$dir && \
286 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
289 install-directories-hook:
290 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
292 install-aliases-hook:
293 set -- $(SYSTEM_UNIT_ALIASES) && \
294 dir=$(systemunitdir) && $(install-aliases)
295 set -- $(USER_UNIT_ALIASES) && \
296 dir=$(userunitdir) && $(install-relative-aliases)
297 set -- $(GENERAL_ALIASES) && \
298 dir= && $(install-relative-aliases)
300 define install-aliases
301 while [ -n "$$1" ]; do \
302 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
303 rm -f $(DESTDIR)$$dir/$$2 && \
304 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
305 shift 2 || exit $$?; \
309 define install-relative-aliases
310 while [ -n "$$1" ]; do \
311 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
312 rm -f $(DESTDIR)$$dir/$$2 && \
313 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
314 shift 2 || exit $$?; \
318 install-touch-usr-hook:
319 touch -c $(DESTDIR)/$(prefix)
321 INSTALL_EXEC_HOOKS += \
322 install-target-wants-hook \
323 install-directories-hook \
324 install-aliases-hook \
325 install-touch-usr-hook
328 INSTALL_EXEC_HOOKS += \
329 install-busnames-target-wants-hook
332 # ------------------------------------------------------------------------------
333 AM_V_M4 = $(AM_V_M4_$(V))
334 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
335 AM_V_M4_0 = @echo " M4 " $@;
337 AM_V_XSLT = $(AM_V_XSLT_$(V))
338 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
339 AM_V_XSLT_0 = @echo " XSLT " $@;
341 AM_V_GPERF = $(AM_V_GPERF_$(V))
342 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
343 AM_V_GPERF_0 = @echo " GPERF " $@;
345 AM_V_LN = $(AM_V_LN_$(V))
346 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
347 AM_V_LN_0 = @echo " LN " $@;
349 AM_V_RM = $(AM_V_RM_$(V))
350 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
351 AM_V_RM_0 = @echo " RM " $@;
353 # ------------------------------------------------------------------------------
357 systemd-ask-password \
358 systemd-tty-ask-password-agent \
359 systemd-machine-id-setup \
366 systemd-detect-virt \
373 src/kernel-install/kernel-install
375 dist_kernelinstall_SCRIPTS = \
376 src/kernel-install/50-depmod.install \
377 src/kernel-install/90-loaderentry.install
379 rootlibexec_PROGRAMS = \
381 systemd-cgroups-agent \
386 systemd-reply-password \
392 systemd-socket-proxyd \
396 rootlibexec_PROGRAMS += \
400 systemgenerator_PROGRAMS = \
401 systemd-getty-generator \
402 systemd-fstab-generator \
403 systemd-system-update-generator \
404 systemd-debug-generator
406 dist_bashcompletion_DATA = \
407 shell-completion/bash/busctl \
408 shell-completion/bash/journalctl \
409 shell-completion/bash/systemd-analyze \
410 shell-completion/bash/systemd-cat \
411 shell-completion/bash/systemd-cgls \
412 shell-completion/bash/systemd-cgtop \
413 shell-completion/bash/systemd-delta \
414 shell-completion/bash/systemd-detect-virt \
415 shell-completion/bash/systemd-nspawn \
416 shell-completion/bash/systemd-run \
417 shell-completion/bash/udevadm \
418 shell-completion/bash/kernel-install
420 nodist_bashcompletion_DATA = \
421 shell-completion/bash/systemctl
423 dist_zshcompletion_DATA = \
424 shell-completion/zsh/_journalctl \
425 shell-completion/zsh/_udevadm \
426 shell-completion/zsh/_kernel-install \
427 shell-completion/zsh/_systemd-nspawn \
428 shell-completion/zsh/_systemd-analyze \
429 shell-completion/zsh/_systemd-run \
430 shell-completion/zsh/_sd_hosts_or_user_at_host \
431 shell-completion/zsh/_sd_outputmodes \
432 shell-completion/zsh/_sd_unit_files \
433 shell-completion/zsh/_systemd-delta \
434 shell-completion/zsh/_systemd
436 nodist_zshcompletion_DATA = \
437 shell-completion/zsh/_systemctl
440 shell-completion/bash/systemctl.in \
441 shell-completion/zsh/_systemctl.in
444 $(nodist_bashcompletion_DATA) \
445 $(nodist_zshcompletion_DATA)
448 sysctl.d/50-default.conf
450 dist_systemunit_DATA = \
451 units/graphical.target \
452 units/multi-user.target \
453 units/emergency.target \
454 units/sysinit.target \
459 units/local-fs.target \
460 units/local-fs-pre.target \
461 units/initrd.target \
462 units/initrd-fs.target \
463 units/initrd-root-fs.target \
464 units/remote-fs.target \
465 units/remote-fs-pre.target \
466 units/network.target \
467 units/network-pre.target \
468 units/network-online.target \
469 units/nss-lookup.target \
470 units/nss-user-lookup.target \
471 units/poweroff.target \
472 units/reboot.target \
473 units/rescue.target \
474 units/rpcbind.target \
475 units/time-sync.target \
476 units/shutdown.target \
478 units/umount.target \
479 units/sigpwr.target \
481 units/sockets.target \
482 units/timers.target \
484 units/suspend.target \
486 units/slices.target \
489 units/systemd-initctl.socket \
490 units/systemd-shutdownd.socket \
491 units/syslog.socket \
492 units/dev-hugepages.mount \
493 units/dev-mqueue.mount \
494 units/sys-kernel-config.mount \
495 units/sys-kernel-debug.mount \
496 units/sys-fs-fuse-connections.mount \
498 units/printer.target \
500 units/bluetooth.target \
501 units/smartcard.target \
502 units/systemd-ask-password-wall.path \
503 units/systemd-ask-password-console.path \
504 units/systemd-udevd-control.socket \
505 units/systemd-udevd-kernel.socket \
506 units/system-update.target \
507 units/initrd-switch-root.target
510 dist_systemunit_DATA += \
511 $(dist_systemunit_DATA_busnames)
514 dist_systemunit_DATA_busnames += \
515 units/busnames.target
517 nodist_systemunit_DATA = \
518 units/getty@.service \
519 units/serial-getty@.service \
520 units/console-shell.service \
521 units/console-getty.service \
522 units/container-getty@.service \
523 units/systemd-initctl.service \
524 units/systemd-shutdownd.service \
525 units/systemd-remount-fs.service \
526 units/systemd-ask-password-wall.service \
527 units/systemd-ask-password-console.service \
528 units/systemd-sysctl.service \
529 units/emergency.service \
530 units/rescue.service \
531 units/user@.service \
532 units/systemd-suspend.service \
533 units/systemd-halt.service \
534 units/systemd-poweroff.service \
535 units/systemd-reboot.service \
536 units/systemd-kexec.service \
537 units/systemd-fsck@.service \
538 units/systemd-fsck-root.service \
539 units/systemd-udevd.service \
540 units/systemd-udev-trigger.service \
541 units/systemd-udev-settle.service \
542 units/systemd-udev-hwdb-update.service \
543 units/debug-shell.service \
544 units/initrd-parse-etc.service \
545 units/initrd-cleanup.service \
546 units/initrd-udevadm-cleanup-db.service \
547 units/initrd-switch-root.service \
548 units/systemd-nspawn@.service \
549 units/systemd-update-done.service
552 nodist_systemunit_DATA += \
553 units/systemd-update-utmp.service \
554 units/systemd-update-utmp-runlevel.service
557 dist_userunit_DATA = \
558 units/user/basic.target \
559 units/user/default.target \
560 units/user/exit.target
562 nodist_userunit_DATA = \
563 units/user/systemd-exit.service
565 dist_systempreset_DATA = \
566 system-preset/90-systemd.preset
569 units/getty@.service.m4 \
570 units/serial-getty@.service.m4 \
571 units/console-shell.service.m4.in \
572 units/console-getty.service.m4.in \
573 units/container-getty@.service.m4.in \
574 units/rescue.service.in \
575 units/systemd-initctl.service.in \
576 units/systemd-shutdownd.service.in \
577 units/systemd-remount-fs.service.in \
578 units/systemd-update-utmp.service.in \
579 units/systemd-update-utmp-runlevel.service.in \
580 units/systemd-ask-password-wall.service.in \
581 units/systemd-ask-password-console.service.in \
582 units/systemd-sysctl.service.in \
583 units/emergency.service.in \
584 units/systemd-halt.service.in \
585 units/systemd-poweroff.service.in \
586 units/systemd-reboot.service.in \
587 units/systemd-kexec.service.in \
588 units/user/systemd-exit.service.in \
589 units/systemd-fsck@.service.in \
590 units/systemd-fsck-root.service.in \
591 units/user@.service.in \
592 units/debug-shell.service.in \
593 units/systemd-suspend.service.in \
594 units/quotaon.service.in \
595 units/initrd-parse-etc.service.in \
596 units/initrd-cleanup.service.in \
597 units/initrd-udevadm-cleanup-db.service.in \
598 units/initrd-switch-root.service.in \
599 units/systemd-nspawn@.service.in \
600 units/systemd-update-done.service.in
603 units/console-shell.service.m4 \
604 units/console-getty.service.m4 \
605 units/container-getty@.service.m4 \
606 units/user@.service.m4
609 nodist_systemunit_DATA += \
610 units/rc-local.service \
611 units/halt-local.service
613 systemgenerator_PROGRAMS += \
614 systemd-sysv-generator \
615 systemd-rc-local-generator
619 units/rc-local.service.in \
620 units/halt-local.service.in
622 # automake is broken and can't handle files with a dash in front
623 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
625 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
627 units-uninstall-hook:
628 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
630 INSTALL_DATA_HOOKS += units-install-hook
631 UNINSTALL_DATA_HOOKS += units-uninstall-hook
640 src/libsystemd/sd-bus/PORTING-DBUS1 \
641 src/libsystemd/sd-bus/DIFFERENCES \
642 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
644 @INTLTOOL_POLICY_RULE@
646 # ------------------------------------------------------------------------------
651 include Makefile-man.am
653 .PHONY: man update-man-list
654 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
657 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
659 ${XML_FILES:.xml=.html}
661 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
678 $(AM_V_at)$(MKDIR_P) $(dir $@)
679 $(AM_V_LN)$(LN_S) -f ../../man $@
688 man/index.html: man/systemd.index.html
689 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
697 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
698 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
699 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
701 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB)
702 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
703 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
704 @echo "Makefile-man.am has been regenerated"
706 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
707 $(AM_V_at)$(MKDIR_P) $(dir $@)
708 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
710 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py $(SOURCE_XML_FILES)
711 $(AM_V_at)$(MKDIR_P) $(dir $@)
712 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
715 man/systemd.index.xml \
717 man/systemd.directives.xml \
718 man/glib-event-glue.c
721 man/systemd.index.xml \
722 man/systemd.directives.xml
733 tools/make-man-index.py \
734 tools/make-directive-index.py \
737 # ------------------------------------------------------------------------------
738 noinst_LTLIBRARIES += \
741 libsystemd_shared_la_SOURCES = \
742 src/shared/linux/auto_dev-ioctl.h \
743 src/shared/ioprio.h \
744 src/shared/missing.h \
745 src/shared/initreq.h \
746 src/shared/securebits.h \
747 src/shared/special.h \
751 src/shared/sparse-endian.h \
752 src/shared/refcnt.h \
753 src/shared/udev-util.h \
754 src/shared/bus-errors.h \
755 src/shared/device-nodes.c \
756 src/shared/device-nodes.h \
761 src/shared/architecture.c \
762 src/shared/architecture.h \
763 src/shared/efivars.c \
764 src/shared/efivars.h \
765 src/shared/path-util.c \
766 src/shared/path-util.h \
767 src/shared/time-util.c \
768 src/shared/time-util.h \
769 src/shared/locale-util.c \
770 src/shared/locale-util.h \
771 src/shared/hashmap.c \
772 src/shared/hashmap.h \
773 src/shared/siphash24.c \
774 src/shared/siphash24.h \
781 src/shared/sleep-config.c \
782 src/shared/sleep-config.h \
785 src/shared/env-util.c \
786 src/shared/env-util.h \
787 src/shared/strbuf.c \
788 src/shared/strbuf.h \
789 src/shared/strxcpyx.c \
790 src/shared/strxcpyx.h \
791 src/shared/conf-parser.c \
792 src/shared/conf-parser.h \
795 src/shared/ratelimit.h \
796 src/shared/ratelimit.c \
797 src/shared/exit-status.c \
798 src/shared/exit-status.h \
801 src/shared/gunicode.c \
802 src/shared/gunicode.h \
805 src/shared/socket-util.c \
806 src/shared/socket-util.h \
807 src/shared/in-addr-util.c \
808 src/shared/in-addr-util.h \
809 src/shared/conf-files.c \
810 src/shared/conf-files.h \
811 src/shared/cgroup-util.c \
812 src/shared/cgroup-util.h \
813 src/shared/cgroup-show.c \
814 src/shared/cgroup-show.h \
815 src/shared/unit-name.c \
816 src/shared/unit-name.h \
817 src/shared/utmp-wtmp.h \
818 src/shared/watchdog.c \
819 src/shared/watchdog.h \
820 src/shared/spawn-ask-password-agent.c \
821 src/shared/spawn-ask-password-agent.h \
822 src/shared/replace-var.c \
823 src/shared/replace-var.h \
824 src/shared/spawn-polkit-agent.c \
825 src/shared/spawn-polkit-agent.h \
826 src/shared/clock-util.c \
827 src/shared/clock-util.h \
828 src/shared/time-dst.c \
829 src/shared/time-dst.h \
830 src/shared/calendarspec.c \
831 src/shared/calendarspec.h \
832 src/shared/fileio.c \
833 src/shared/fileio.h \
834 src/shared/output-mode.h \
835 src/shared/MurmurHash2.c \
836 src/shared/MurmurHash2.h \
837 src/shared/acpi-fpdt.h \
838 src/shared/acpi-fpdt.c \
839 src/shared/boot-timestamps.h \
840 src/shared/boot-timestamps.c \
843 src/shared/smack-util.c \
844 src/shared/smack-util.h \
845 src/shared/apparmor-util.c \
846 src/shared/apparmor-util.h \
847 src/shared/ima-util.c \
848 src/shared/ima-util.h \
849 src/shared/ptyfwd.c \
850 src/shared/ptyfwd.h \
851 src/shared/errno-list.c \
852 src/shared/errno-list.h \
853 src/shared/af-list.c \
854 src/shared/af-list.h \
855 src/shared/arphrd-list.c \
856 src/shared/arphrd-list.h \
861 src/shared/condition-util.c \
862 src/shared/condition-util.h \
863 src/shared/bus-label.c \
864 src/shared/bus-label.h \
866 src/shared/clean-ipc.h \
867 src/shared/clean-ipc.c \
868 src/shared/login-shared.c \
869 src/shared/login-shared.h \
872 src/shared/barrier.c \
873 src/shared/barrier.h \
880 src/shared/base-filesystem.c \
881 src/shared/base-filesystem.h \
884 src/shared/uid-range.c \
885 src/shared/uid-range.h \
886 src/shared/switch-root.h \
887 src/shared/switch-root.c \
888 src/shared/nss-util.h
891 libsystemd_shared_la_SOURCES += \
892 src/shared/utmp-wtmp.c
895 nodist_libsystemd_shared_la_SOURCES = \
896 src/shared/errno-from-name.h \
897 src/shared/errno-to-name.h \
898 src/shared/af-from-name.h \
899 src/shared/af-to-name.h \
900 src/shared/arphrd-from-name.h \
901 src/shared/arphrd-to-name.h
903 libsystemd_shared_la_CFLAGS = \
908 # ------------------------------------------------------------------------------
909 noinst_LTLIBRARIES += \
912 libsystemd_units_la_SOURCES = \
913 src/shared/install.c \
914 src/shared/install.h \
915 src/shared/install-printf.c \
916 src/shared/install-printf.h \
917 src/shared/path-lookup.c \
918 src/shared/path-lookup.h \
919 src/shared/specifier.c \
920 src/shared/specifier.h
922 # ------------------------------------------------------------------------------
923 noinst_LTLIBRARIES += \
926 libsystemd_label_la_SOURCES = \
927 src/shared/socket-label.c \
930 src/shared/selinux-util.c \
931 src/shared/selinux-util.h \
932 src/shared/mkdir-label.c \
933 src/shared/ask-password-api.c \
934 src/shared/ask-password-api.h \
935 src/shared/fileio-label.c \
936 src/shared/fileio-label.h \
937 src/shared/dev-setup.c \
938 src/shared/dev-setup.h \
939 src/shared/dropin.c \
940 src/shared/dropin.h \
941 src/shared/generator.h \
942 src/shared/generator.c
944 libsystemd_label_la_CFLAGS = \
948 libsystemd_label_la_LIBADD = \
951 # -----------------------------------------------------------------------------
954 dist_systemunit_DATA += \
955 units/ldconfig.service
957 SYSINIT_TARGET_WANTS += \
961 # ------------------------------------------------------------------------------
964 noinst_LTLIBRARIES += \
965 libsystemd-seccomp.la
967 libsystemd_seccomp_la_SOURCES = \
968 src/shared/seccomp-util.h \
969 src/shared/seccomp-util.c
971 libsystemd_seccomp_la_CFLAGS = \
975 libsystemd_seccomp_la_LIBADD = \
979 # ------------------------------------------------------------------------------
980 noinst_LTLIBRARIES += \
983 libsystemd_logs_la_SOURCES = \
984 src/shared/logs-show.c \
985 src/shared/logs-show.h
987 # ------------------------------------------------------------------------------
988 noinst_LTLIBRARIES += \
989 libsystemd-capability.la
991 libsystemd_capability_la_SOURCES = \
992 src/shared/capability.c \
993 src/shared/capability.h
995 libsystemd_capability_la_CFLAGS = \
999 libsystemd_capability_la_LIBADD = \
1002 # ------------------------------------------------------------------------------
1004 noinst_LTLIBRARIES += \
1007 libsystemd_acl_la_SOURCES = \
1008 src/shared/acl-util.c \
1009 src/shared/acl-util.h
1011 libsystemd_acl_la_CFLAGS = \
1015 libsystemd_acl_la_LIBADD = \
1019 # ------------------------------------------------------------------------------
1020 noinst_LTLIBRARIES += \
1023 libsystemd_core_la_SOURCES = \
1026 src/core/unit-printf.c \
1027 src/core/unit-printf.h \
1030 src/core/manager.c \
1031 src/core/manager.h \
1032 src/core/transaction.c \
1033 src/core/transaction.h \
1034 src/core/load-fragment.c \
1035 src/core/load-fragment.h \
1036 src/core/service.c \
1037 src/core/service.h \
1040 src/core/busname.c \
1041 src/core/busname.h \
1042 src/core/bus-common.c \
1043 src/core/bus-common.h \
1044 src/core/bus-endpoint.c \
1045 src/core/bus-endpoint.h \
1048 src/core/snapshot.c \
1049 src/core/snapshot.h \
1054 src/core/automount.c \
1055 src/core/automount.h \
1066 src/core/load-dropin.c \
1067 src/core/load-dropin.h \
1068 src/core/execute.c \
1069 src/core/execute.h \
1074 src/core/dbus-manager.c \
1075 src/core/dbus-manager.h \
1076 src/core/dbus-unit.c \
1077 src/core/dbus-unit.h \
1078 src/core/dbus-job.c \
1079 src/core/dbus-job.h \
1080 src/core/dbus-service.c \
1081 src/core/dbus-service.h \
1082 src/core/dbus-socket.c \
1083 src/core/dbus-socket.h \
1084 src/core/dbus-busname.c \
1085 src/core/dbus-busname.h \
1086 src/core/dbus-target.c \
1087 src/core/dbus-target.h \
1088 src/core/dbus-snapshot.c \
1089 src/core/dbus-snapshot.h \
1090 src/core/dbus-device.c \
1091 src/core/dbus-device.h \
1092 src/core/dbus-mount.c \
1093 src/core/dbus-mount.h \
1094 src/core/dbus-automount.c \
1095 src/core/dbus-automount.h \
1096 src/core/dbus-swap.c \
1097 src/core/dbus-swap.h \
1098 src/core/dbus-timer.c \
1099 src/core/dbus-timer.h \
1100 src/core/dbus-path.c \
1101 src/core/dbus-path.h \
1102 src/core/dbus-slice.c \
1103 src/core/dbus-slice.h \
1104 src/core/dbus-scope.c \
1105 src/core/dbus-scope.h \
1106 src/core/dbus-execute.c \
1107 src/core/dbus-execute.h \
1108 src/core/dbus-kill.c \
1109 src/core/dbus-kill.h \
1110 src/core/dbus-cgroup.c \
1111 src/core/dbus-cgroup.h \
1114 src/core/selinux-access.c \
1115 src/core/selinux-access.h \
1116 src/core/selinux-setup.c \
1117 src/core/selinux-setup.h \
1118 src/core/smack-setup.c \
1119 src/core/smack-setup.h \
1120 src/core/ima-setup.c \
1121 src/core/ima-setup.h \
1122 src/core/locale-setup.h \
1123 src/core/locale-setup.c \
1124 src/core/hostname-setup.c \
1125 src/core/hostname-setup.h \
1126 src/core/machine-id-setup.c \
1127 src/core/machine-id-setup.h \
1128 src/core/mount-setup.c \
1129 src/core/mount-setup.h \
1130 src/core/loopback-setup.h \
1131 src/core/loopback-setup.c \
1132 src/core/condition.c \
1133 src/core/condition.h \
1134 src/core/namespace.c \
1135 src/core/namespace.h \
1137 src/core/sysfs-show.h \
1138 src/core/killall.h \
1139 src/core/killall.c \
1140 src/core/audit-fd.c \
1141 src/core/audit-fd.h \
1142 src/core/show-status.c \
1143 src/core/show-status.h \
1144 src/core/failure-action.c \
1145 src/core/failure-action.h
1148 libsystemd_core_la_SOURCES += \
1149 src/core/kmod-setup.c \
1150 src/core/kmod-setup.h
1153 nodist_libsystemd_core_la_SOURCES = \
1154 src/core/load-fragment-gperf.c \
1155 src/core/load-fragment-gperf-nulstr.c
1157 libsystemd_core_la_CFLAGS = \
1163 $(APPARMOR_CFLAGS) \
1167 libsystemd_core_la_LIBADD = \
1168 libsystemd-capability.la \
1169 libsystemd-units.la \
1170 libsystemd-label.la \
1171 libudev-internal.la \
1172 libsystemd-shared.la \
1173 libsystemd-internal.la \
1182 libsystemd_core_la_LIBADD += \
1183 libsystemd-seccomp.la
1186 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1187 $(AM_V_at)$(MKDIR_P) $(dir $@)
1188 $(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 ";" }' < $< > $@
1191 src/core/load-fragment-gperf.gperf.m4
1194 src/core/load-fragment-gperf.gperf \
1195 src/core/load-fragment-gperf.c \
1196 src/core/load-fragment-gperf-nulstr.c \
1197 src/shared/errno-list.txt \
1198 src/shared/errno-from-name.gperf \
1199 src/shared/af-list.txt \
1200 src/shared/af-from-name.gperf \
1201 src/shared/arphrd-list.txt \
1202 src/shared/arphrd-from-name.gperf \
1203 src/shared/dns_type-list.txt \
1204 src/shared/dns_type-from-name.gperf
1207 src/shared/errno-from-name.h \
1208 src/shared/errno-to-name.h \
1209 src/shared/af-from-name.h \
1210 src/shared/af-to-name.h \
1211 src/shared/arphrd-from-name.h \
1212 src/shared/arphrd-to-name.h \
1213 src/resolve/dns_type-from-name.h \
1214 src/resolve/dns_type-to-name.h
1216 %-from-name.gperf: %-list.txt
1217 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1219 %-from-name.h: %-from-name.gperf
1220 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1223 src/shared/errno-list.txt:
1224 $(AM_V_at)$(MKDIR_P) $(dir $@)
1225 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1227 src/shared/errno-to-name.h: src/shared/errno-list.txt
1228 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1231 src/shared/af-list.txt:
1232 $(AM_V_at)$(MKDIR_P) $(dir $@)
1233 $(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; }' >$@
1235 src/shared/af-to-name.h: src/shared/af-list.txt
1236 $(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 "};"}' <$< >$@
1238 src/shared/arphrd-list.txt:
1239 $(AM_V_at)$(MKDIR_P) $(dir $@)
1240 $(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_//' >$@
1242 src/shared/arphrd-to-name.h: src/shared/arphrd-list.txt
1243 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1245 src/shared/arphrd-from-name.gperf: src/shared/arphrd-list.txt
1246 $(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 }' <$< >$@
1249 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1250 $(AM_V_at)$(MKDIR_P) $(dir $@)
1251 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1253 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1254 $(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" }' <$< >$@
1256 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1257 $(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 }' <$< >$@
1259 # ------------------------------------------------------------------------------
1268 libsystemd-core.la \
1271 dist_pkgsysconf_DATA += \
1272 src/core/system.conf \
1275 dist_dbuspolicy_DATA += \
1276 src/core/org.freedesktop.systemd1.conf
1278 dist_dbussystemservice_DATA += \
1279 src/core/org.freedesktop.systemd1.service
1281 polkitpolicy_in_in_files += \
1282 src/core/org.freedesktop.systemd1.policy.in.in
1284 pkgconfigdata_DATA = \
1287 nodist_rpmmacros_DATA = \
1288 src/core/macros.systemd
1291 src/core/systemd.pc.in \
1292 src/core/macros.systemd.in
1295 src/core/macros.systemd \
1296 src/core/org.freedesktop.systemd1.policy.in
1298 # ------------------------------------------------------------------------------
1340 test-strip-tab-ansi \
1358 test-condition-util \
1367 test/daughter.service \
1372 test/grandchild.service \
1374 test/hello-after-sleep.target \
1375 test/hello.service \
1377 test/parent-deep.slice \
1380 test/sched_idle_bad.service \
1381 test/sched_idle_ok.service \
1382 test/sched_rr_bad.service \
1383 test/sched_rr_change.service \
1384 test/sched_rr_ok.service \
1385 test/shutdown.target \
1386 test/sleep.service \
1387 test/sockets.target \
1389 test/sysinit.target \
1390 test/testsuite.target \
1391 test/timers.target \
1392 test/unstoppable.service \
1393 test/bus-policy/hello.conf \
1394 test/bus-policy/methods.conf \
1395 test/bus-policy/ownerships.conf \
1396 test/bus-policy/signals.conf
1400 src/test/test-helper.h
1402 test_device_nodes_SOURCES = \
1403 src/test/test-device-nodes.c
1405 test_device_nodes_LDADD = \
1406 libsystemd-shared.la
1408 test_engine_SOURCES = \
1409 src/test/test-engine.c
1411 test_engine_CFLAGS = \
1415 test_engine_LDADD = \
1416 libsystemd-core.la \
1419 test_job_type_SOURCES = \
1420 src/test/test-job-type.c
1422 test_job_type_CFLAGS = \
1426 test_job_type_LDADD = \
1427 libsystemd-core.la \
1440 test_loopback_SOURCES = \
1441 src/test/test-loopback.c
1443 test_loopback_LDADD = \
1446 test_hostname_SOURCES = \
1447 src/test/test-hostname.c
1449 test_hostname_LDADD = \
1456 test_boot_timestamp_SOURCES = \
1457 src/test/test-boot-timestamps.c
1459 test_boot_timestamp_LDADD = \
1460 libsystemd-shared.la
1463 test_unit_name_SOURCES = \
1464 src/test/test-unit-name.c
1466 test_unit_name_CFLAGS = \
1470 test_unit_name_LDADD = \
1471 libsystemd-core.la \
1474 test_unit_file_SOURCES = \
1475 src/test/test-unit-file.c
1477 test_unit_file_CFLAGS = \
1481 test_unit_file_LDADD = \
1482 libsystemd-core.la \
1485 test_utf8_SOURCES = \
1486 src/test/test-utf8.c
1489 libsystemd-shared.la
1491 test_capability_SOURCES = \
1492 src/test/test-capability.c
1494 test_capability_LDADD = \
1495 libsystemd-shared.la \
1496 libsystemd-capability.la
1498 test_async_SOURCES = \
1499 src/test/test-async.c
1501 test_async_LDADD = \
1502 libsystemd-shared.la
1504 test_condition_util_SOURCES = \
1505 src/test/test-condition-util.c
1507 test_condition_util_LDADD = \
1508 libsystemd-shared.la \
1509 libsystemd-internal.la
1512 test_fdset_SOURCES = \
1513 src/test/test-fdset.c
1515 test_fdset_LDADD = \
1518 test_ratelimit_SOURCES = \
1519 src/test/test-ratelimit.c
1521 test_ratelimit_LDADD = \
1522 libsystemd-shared.la
1524 test_util_SOURCES = \
1525 src/test/test-util.c
1530 test_uid_range_SOURCES = \
1531 src/test/test-uid-range.c
1533 test_uid_range_LDADD = \
1536 test_socket_util_SOURCES = \
1537 src/test/test-socket-util.c
1539 test_socket_util_LDADD = \
1542 test_ring_SOURCES = \
1543 src/test/test-ring.c
1548 test_barrier_SOURCES = \
1549 src/test/test-barrier.c
1551 test_barrier_LDADD = \
1554 test_pty_SOURCES = \
1560 test_tmpfiles_SOURCES = \
1561 src/test/test-tmpfiles.c
1563 test_tmpfiles_LDADD = \
1564 libsystemd-shared.la
1566 test_namespace_SOURCES = \
1567 src/test/test-namespace.c
1569 test_namespace_LDADD = \
1573 src/test/test-hashmap-ordered.c
1576 src/test/test-hashmap-ordered.c
1578 src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c
1579 $(AM_V_at)$(MKDIR_P) $(dir $@)
1580 $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \
1581 { if (!match($$0, "^#include")) \
1582 gsub(/hashmap/, "ordered_hashmap"); \
1583 gsub(/HASHMAP/, "ORDERED_HASHMAP"); \
1584 gsub(/Hashmap/, "OrderedHashmap"); \
1587 nodist_test_hashmap_SOURCES = \
1588 src/test/test-hashmap-ordered.c
1590 test_hashmap_SOURCES = \
1591 src/test/test-hashmap.c \
1592 src/test/test-hashmap-plain.c
1594 test_hashmap_LDADD = \
1597 test_set_SOURCES = \
1603 test_xml_SOURCES = \
1607 libsystemd-shared.la
1609 test_list_SOURCES = \
1610 src/test/test-list.c
1615 test_tables_SOURCES = \
1616 src/test/test-tables.c \
1617 src/shared/test-tables.h \
1618 src/bus-proxyd/bus-policy.c \
1619 src/bus-proxyd/bus-policy.h \
1620 src/journal/journald-server.c \
1621 src/journal/journald-server.h
1623 test_tables_CPPFLAGS = \
1625 -I$(top_srcdir)/src/bus-proxyd
1627 test_tables_CFLAGS = \
1631 test_tables_LDADD = \
1632 libsystemd-logs.la \
1633 libsystemd-journal-internal.la \
1634 libsystemd-journal-core.la \
1635 libsystemd-core.la \
1639 test_prioq_SOURCES = \
1640 src/test/test-prioq.c
1642 test_prioq_LDADD = \
1645 test_fileio_SOURCES = \
1646 src/test/test-fileio.c
1648 test_fileio_LDADD = \
1651 test_time_SOURCES = \
1652 src/test/test-time.c
1657 test_architecture_SOURCES = \
1658 src/test/test-architecture.c
1660 test_architecture_LDADD = \
1661 libsystemd-shared.la
1663 test_log_SOURCES = \
1669 test_ipcrm_SOURCES = \
1670 src/test/test-ipcrm.c
1672 test_ipcrm_LDADD = \
1673 libsystemd-shared.la \
1676 test_rtnl_manual_SOURCES = \
1677 src/test/test-rtnl-manual.c
1679 test_rtnl_manual_CFLAGS = \
1683 test_rtnl_manual_LDADD = \
1684 libsystemd-internal.la \
1685 libsystemd-shared.la \
1688 test_ellipsize_SOURCES = \
1689 src/test/test-ellipsize.c
1691 test_ellipsize_LDADD = \
1694 test_date_SOURCES = \
1695 src/test/test-date.c
1700 test_sleep_SOURCES = \
1701 src/test/test-sleep.c
1703 test_sleep_LDADD = \
1706 test_replace_var_SOURCES = \
1707 src/test/test-replace-var.c
1709 test_replace_var_LDADD = \
1710 libsystemd-shared.la
1712 test_calendarspec_SOURCES = \
1713 src/test/test-calendarspec.c
1715 test_calendarspec_LDADD = \
1716 libsystemd-shared.la
1718 test_strip_tab_ansi_SOURCES = \
1719 src/test/test-strip-tab-ansi.c
1721 test_strip_tab_ansi_LDADD = \
1722 libsystemd-shared.la
1724 test_daemon_SOURCES = \
1725 src/test/test-daemon.c
1727 test_daemon_LDADD = \
1728 libsystemd-internal.la \
1729 libsystemd-shared.la
1731 test_cgroup_SOURCES = \
1732 src/test/test-cgroup.c
1734 test_cgroup_LDADD = \
1735 libsystemd-label.la \
1736 libsystemd-shared.la \
1737 libsystemd-internal.la
1739 test_cgroup_mask_SOURCES = \
1740 src/test/test-cgroup-mask.c
1742 test_cgroup_mask_CPPFLAGS = \
1744 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1746 test_cgroup_mask_CFLAGS = \
1750 test_cgroup_mask_LDADD = \
1751 libsystemd-core.la \
1754 test_cgroup_util_SOURCES = \
1755 src/test/test-cgroup-util.c
1757 test_cgroup_util_LDADD = \
1758 libsystemd-label.la \
1759 libsystemd-internal.la \
1760 libsystemd-shared.la
1762 test_env_replace_SOURCES = \
1763 src/test/test-env-replace.c
1765 test_env_replace_LDADD = \
1766 libsystemd-shared.la
1768 test_strbuf_SOURCES = \
1769 src/test/test-strbuf.c
1771 test_strbuf_LDADD = \
1772 libsystemd-shared.la
1774 test_strv_SOURCES = \
1775 src/test/test-strv.c
1778 libsystemd-units.la \
1779 libsystemd-internal.la \
1780 libsystemd-shared.la
1782 test_path_util_SOURCES = \
1783 src/test/test-path-util.c
1785 test_path_util_LDADD = \
1786 libsystemd-shared.la
1788 test_strxcpyx_SOURCES = \
1789 src/test/test-strxcpyx.c
1791 test_strxcpyx_LDADD = \
1792 libsystemd-shared.la
1794 test_install_SOURCES = \
1795 src/test/test-install.c
1797 test_install_LDADD = \
1798 libsystemd-units.la \
1799 libsystemd-label.la \
1800 libsystemd-shared.la \
1801 libsystemd-internal.la
1803 test_watchdog_SOURCES = \
1804 src/test/test-watchdog.c
1806 test_watchdog_LDADD = \
1807 libsystemd-shared.la
1809 test_sched_prio_SOURCES = \
1810 src/test/test-sched-prio.c
1812 test_sched_prio_CPPFLAGS = \
1814 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1816 test_sched_prio_CFLAGS = \
1820 test_sched_prio_LDADD = \
1821 libsystemd-core.la \
1824 test_conf_files_SOURCES = \
1825 src/test/test-conf-files.c
1827 test_conf_files_LDADD = \
1828 libsystemd-shared.la
1830 test_bus_policy_SOURCES = \
1831 src/bus-proxyd/test-bus-policy.c \
1832 src/bus-proxyd/bus-policy.c \
1833 src/bus-proxyd/bus-policy.h
1835 test_bus_policy_LDADD = \
1836 libsystemd-capability.la \
1837 libsystemd-internal.la \
1838 libsystemd-shared.la
1840 # ------------------------------------------------------------------------------
1841 ## .PHONY so it always rebuilds it
1842 .PHONY: coverage lcov-run lcov-report coverage-sync
1844 # run lcov from scratch, always
1849 coverage_dir = coverage
1850 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1853 # reset run coverage tests
1855 @rm -rf $(coverage_dir)
1856 lcov $(coverage_opts) --zerocounters
1859 # generate report based on current coverage data
1861 $(MKDIR_P) $(coverage_dir)
1862 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1863 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1864 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1865 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1867 # lcov doesn't work properly with vpath builds, make sure that bad
1868 # output is not uploaded by mistake.
1869 coverage-sync: coverage
1870 test "$(builddir)" = "$(srcdir)"
1871 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1874 lcov-run lcov-report:
1875 echo "Need to reconfigure with --enable-coverage"
1878 # ------------------------------------------------------------------------------
1879 systemd_analyze_SOURCES = \
1880 src/analyze/analyze.c \
1881 src/analyze/analyze-verify.c \
1882 src/analyze/analyze-verify.h
1884 systemd_verify_CFLAGS = \
1888 systemd_analyze_LDADD = \
1889 libsystemd-core.la \
1890 libsystemd-internal.la \
1891 libsystemd-shared.la \
1894 # ------------------------------------------------------------------------------
1895 systemd_initctl_SOURCES = \
1896 src/initctl/initctl.c
1898 systemd_initctl_LDADD = \
1899 libsystemd-internal.la \
1900 libsystemd-shared.la
1902 # ------------------------------------------------------------------------------
1903 systemd_update_utmp_SOURCES = \
1904 src/update-utmp/update-utmp.c
1906 systemd_update_utmp_CFLAGS = \
1910 systemd_update_utmp_LDADD = \
1911 libsystemd-internal.la \
1912 libsystemd-shared.la \
1915 # ------------------------------------------------------------------------------
1916 systemd_update_done_SOURCES = \
1917 src/update-done/update-done.c
1919 systemd_update_done_LDADD = \
1920 libsystemd-internal.la \
1921 libsystemd-label.la \
1922 libsystemd-shared.la
1924 # ------------------------------------------------------------------------------
1925 systemd_shutdownd_SOURCES = \
1926 src/shutdownd/shutdownd.c
1928 systemd_shutdownd_LDADD = \
1929 libsystemd-label.la \
1930 libsystemd-internal.la \
1931 libsystemd-shared.la
1934 src/systemd/sd-shutdown.h
1936 # ------------------------------------------------------------------------------
1937 systemd_shutdown_SOURCES = \
1940 src/core/shutdown.c \
1941 src/core/mount-setup.c \
1942 src/core/mount-setup.h \
1943 src/core/killall.h \
1946 systemd_shutdown_LDADD = \
1947 libsystemd-label.la \
1948 libudev-internal.la \
1949 libsystemd-shared.la
1951 # ------------------------------------------------------------------------------
1953 systemd_modules_load_SOURCES = \
1954 src/modules-load/modules-load.c
1956 systemd_modules_load_CFLAGS = \
1960 systemd_modules_load_LDADD = \
1961 libsystemd-shared.la \
1964 rootlibexec_PROGRAMS += \
1965 systemd-modules-load
1967 nodist_systemunit_DATA += \
1968 units/systemd-modules-load.service
1970 SYSINIT_TARGET_WANTS += \
1971 systemd-modules-load.service
1974 nodist_systemunit_DATA += \
1975 units/kmod-static-nodes.service
1977 SYSINIT_TARGET_WANTS += \
1978 kmod-static-nodes.service
1983 units/systemd-modules-load.service.in \
1984 units/kmod-static-nodes.service.in
1986 # ------------------------------------------------------------------------------
1988 systemd_tmpfiles_SOURCES = \
1989 src/tmpfiles/tmpfiles.c
1991 systemd_tmpfiles_LDADD = \
1992 libsystemd-units.la \
1993 libsystemd-label.la \
1994 libsystemd-capability.la \
1995 libsystemd-internal.la \
1996 libsystemd-shared.la
1998 rootbin_PROGRAMS += \
2001 dist_systemunit_DATA += \
2002 units/systemd-tmpfiles-clean.timer
2004 nodist_systemunit_DATA += \
2005 units/systemd-tmpfiles-setup-dev.service \
2006 units/systemd-tmpfiles-setup.service \
2007 units/systemd-tmpfiles-clean.service
2009 nodist_tmpfiles_DATA = \
2012 dist_tmpfiles_DATA = \
2013 tmpfiles.d/systemd.conf \
2014 tmpfiles.d/systemd-nologin.conf \
2015 tmpfiles.d/systemd-remote.conf \
2016 tmpfiles.d/tmp.conf \
2017 tmpfiles.d/x11.conf \
2021 dist_tmpfiles_DATA += \
2022 tmpfiles.d/legacy.conf
2025 SYSINIT_TARGET_WANTS += \
2026 systemd-tmpfiles-setup-dev.service \
2027 systemd-tmpfiles-setup.service
2029 dist_zshcompletion_DATA += \
2030 shell-completion/zsh/_systemd-tmpfiles
2032 TIMERS_TARGET_WANTS += \
2033 systemd-tmpfiles-clean.timer
2037 $(sysconfdir)/tmpfiles.d
2041 tmpfiles.d/etc.conf.m4 \
2042 units/systemd-tmpfiles-setup-dev.service.in \
2043 units/systemd-tmpfiles-setup.service.in \
2044 units/systemd-tmpfiles-clean.service.in
2049 # ------------------------------------------------------------------------------
2051 systemd_sysusers_SOURCES = \
2052 src/sysusers/sysusers.c
2054 systemd_sysusers_LDADD = \
2055 libsystemd-units.la \
2056 libsystemd-label.la \
2057 libsystemd-capability.la \
2058 libsystemd-internal.la \
2059 libsystemd-shared.la
2061 rootbin_PROGRAMS += \
2064 nodist_systemunit_DATA += \
2065 units/systemd-sysusers.service
2067 SYSINIT_TARGET_WANTS += \
2068 systemd-sysusers.service
2070 dist_sysusers_DATA = \
2071 sysusers.d/systemd.conf \
2072 sysusers.d/systemd-remote.conf
2074 nodist_sysusers_DATA = \
2075 sysusers.d/basic.conf
2078 units/systemd-sysusers.service.in \
2079 sysusers.d/basic.conf.in
2082 sysusers.d/basic.conf
2088 # ------------------------------------------------------------------------------
2089 dist_factory_etc_DATA = \
2090 factory/etc/nsswitch.conf
2093 dist_factory_pam_DATA = \
2094 factory/etc/pam.d/system-auth \
2095 factory/etc/pam.d/other
2098 # ------------------------------------------------------------------------------
2100 systemd_firstboot_SOURCES = \
2101 src/firstboot/firstboot.c
2103 systemd_firstboot_LDADD = \
2104 libsystemd-units.la \
2105 libsystemd-label.la \
2106 libsystemd-capability.la \
2107 libsystemd-internal.la \
2108 libsystemd-shared.la \
2111 rootbin_PROGRAMS += \
2114 nodist_systemunit_DATA += \
2115 units/systemd-firstboot.service
2118 units/systemd-firstboot.service.in
2120 SYSINIT_TARGET_WANTS += \
2121 systemd-firstboot.service
2124 # ------------------------------------------------------------------------------
2125 systemd_machine_id_setup_SOURCES = \
2126 src/machine-id-setup/machine-id-setup-main.c \
2127 src/core/machine-id-setup.c \
2128 src/core/machine-id-setup.h
2130 systemd_machine_id_setup_LDADD = \
2131 libsystemd-label.la \
2132 libsystemd-internal.la \
2133 libsystemd-shared.la
2135 # ------------------------------------------------------------------------------
2136 systemd_sysctl_SOURCES = \
2139 systemd_sysctl_LDADD = \
2140 libsystemd-shared.la
2142 # ------------------------------------------------------------------------------
2143 systemd_sleep_SOURCES = \
2146 systemd_sleep_LDADD = \
2147 libsystemd-shared.la
2149 # ------------------------------------------------------------------------------
2150 systemd_fsck_SOURCES = \
2153 systemd_fsck_LDADD = \
2154 libsystemd-internal.la \
2155 libudev-internal.la \
2156 libsystemd-shared.la
2158 # ------------------------------------------------------------------------------
2159 systemd_ac_power_SOURCES = \
2160 src/ac-power/ac-power.c
2162 systemd_ac_power_LDADD = \
2163 libudev-internal.la \
2164 libsystemd-shared.la
2166 # ------------------------------------------------------------------------------
2167 systemd_detect_virt_SOURCES = \
2168 src/detect-virt/detect-virt.c
2170 systemd_detect_virt_LDADD = \
2171 libsystemd-shared.la
2173 INSTALL_EXEC_HOOKS += \
2174 systemd-detect-virt-install-hook
2176 # ------------------------------------------------------------------------------
2177 systemd_delta_SOURCES = \
2180 systemd_delta_LDADD = \
2181 libsystemd-shared.la
2183 # ------------------------------------------------------------------------------
2184 systemd_getty_generator_SOURCES = \
2185 src/getty-generator/getty-generator.c
2187 systemd_getty_generator_LDADD = \
2188 libsystemd-label.la \
2189 libsystemd-shared.la
2191 # ------------------------------------------------------------------------------
2192 systemd_debug_generator_SOURCES = \
2193 src/debug-generator/debug-generator.c
2195 systemd_debug_generator_LDADD = \
2196 libsystemd-label.la \
2197 libsystemd-shared.la
2199 # ------------------------------------------------------------------------------
2200 systemd_fstab_generator_SOURCES = \
2201 src/fstab-generator/fstab-generator.c \
2202 src/core/mount-setup.c
2204 systemd_fstab_generator_LDADD = \
2205 libsystemd-label.la \
2206 libsystemd-shared.la
2208 # ------------------------------------------------------------------------------
2209 systemd_system_update_generator_SOURCES = \
2210 src/system-update-generator/system-update-generator.c
2212 systemd_system_update_generator_LDADD = \
2213 libsystemd-label.la \
2214 libsystemd-shared.la
2216 # ------------------------------------------------------------------------------
2218 systemgenerator_PROGRAMS += \
2219 systemd-hibernate-resume-generator
2221 rootlibexec_PROGRAMS += \
2222 systemd-hibernate-resume
2224 systemd_hibernate_resume_SOURCES = \
2225 src/hibernate-resume/hibernate-resume.c
2227 systemd_hibernate_resume_LDADD = \
2228 libsystemd-internal.la \
2229 libsystemd-shared.la
2231 systemd_hibernate_resume_generator_SOURCES = \
2232 src/hibernate-resume/hibernate-resume-generator.c
2234 systemd_hibernate_resume_generator_LDADD = \
2235 libsystemd-label.la \
2236 libsystemd-shared.la
2239 units/systemd-hibernate.service.in \
2240 units/systemd-hibernate-resume@.service.in \
2241 units/systemd-hybrid-sleep.service.in
2243 dist_systemunit_DATA += \
2244 units/hibernate.target \
2245 units/hybrid-sleep.target
2247 nodist_systemunit_DATA += \
2248 units/systemd-hibernate.service \
2249 units/systemd-hibernate-resume@.service \
2250 units/systemd-hybrid-sleep.service
2253 # ------------------------------------------------------------------------------
2255 systemgenerator_PROGRAMS += \
2256 systemd-efi-boot-generator
2258 systemd_efi_boot_generator_SOURCES = \
2259 src/efi-boot-generator/efi-boot-generator.c
2261 systemd_efi_boot_generator_LDADD = \
2262 libsystemd-label.la \
2263 libsystemd-shared.la
2265 # ------------------------------------------------------------------------------
2268 src/boot/boot-loader.h \
2269 src/boot/bootctl.c \
2270 src/boot/boot-loader.c \
2274 libsystemd-shared.la \
2275 libsystemd-internal.la
2280 dist_bashcompletion_DATA += \
2281 shell-completion/bash/bootctl
2283 dist_zshcompletion_DATA += \
2284 shell-completion/zsh/_bootctl
2288 # ------------------------------------------------------------------------------
2290 systemgenerator_PROGRAMS += \
2291 systemd-gpt-auto-generator
2293 systemd_gpt_auto_generator_SOURCES = \
2294 src/gpt-auto-generator/gpt-auto-generator.c \
2295 src/shared/blkid-util.h
2297 systemd_gpt_auto_generator_LDADD = \
2298 libsystemd-label.la \
2299 libsystemd-internal.la \
2300 libudev-internal.la \
2301 libsystemd-shared.la \
2304 systemd_gpt_auto_generator_CFLAGS = \
2309 # ------------------------------------------------------------------------------
2311 systemgenerator_PROGRAMS += \
2312 systemd-dbus1-generator
2314 systemd_dbus1_generator_SOURCES = \
2315 src/dbus1-generator/dbus1-generator.c
2317 systemd_dbus1_generator_LDADD = \
2318 libsystemd-label.la \
2319 libsystemd-shared.la \
2320 libsystemd-internal.la
2322 dbus1-generator-install-hook:
2323 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2324 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2325 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2327 dbus1-generator-uninstall-hook:
2328 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2330 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2331 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2334 # ------------------------------------------------------------------------------
2335 systemd_sysv_generator_SOURCES = \
2336 src/sysv-generator/sysv-generator.c
2338 systemd_sysv_generator_LDADD = \
2339 libsystemd-core.la \
2340 libsystemd-label.la \
2341 libsystemd-shared.la
2343 # ------------------------------------------------------------------------------
2344 systemd_rc_local_generator_SOURCES = \
2345 src/rc-local-generator/rc-local-generator.c
2347 systemd_rc_local_generator_LDADD = \
2348 libsystemd-label.la \
2349 libsystemd-shared.la
2351 # ------------------------------------------------------------------------------
2352 systemd_remount_fs_SOURCES = \
2353 src/remount-fs/remount-fs.c \
2354 src/core/mount-setup.c \
2355 src/core/mount-setup.h
2357 systemd_remount_fs_LDADD = \
2358 libsystemd-label.la \
2359 libsystemd-shared.la
2361 # ------------------------------------------------------------------------------
2362 systemd_cgroups_agent_SOURCES = \
2363 src/cgroups-agent/cgroups-agent.c
2365 systemd_cgroups_agent_LDADD = \
2366 libsystemd-internal.la \
2367 libsystemd-shared.la
2369 # ------------------------------------------------------------------------------
2370 systemd_escape_SOURCES = \
2373 systemd_escape_LDADD = \
2374 libsystemd-shared.la
2376 # -----------------------------------------------------------------------------
2377 systemctl_SOURCES = \
2378 src/systemctl/systemctl.c
2381 libsystemd-units.la \
2382 libsystemd-label.la \
2383 libsystemd-internal.la \
2384 libsystemd-logs.la \
2385 libsystemd-journal-internal.la \
2386 libsystemd-shared.la
2388 # ------------------------------------------------------------------------------
2389 systemd_notify_SOURCES = \
2392 systemd_notify_LDADD = \
2393 libsystemd-internal.la \
2394 libsystemd-shared.la
2396 # ------------------------------------------------------------------------------
2397 systemd_path_SOURCES = \
2400 systemd_path_LDADD = \
2401 libsystemd-internal.la \
2402 libsystemd-shared.la
2404 # ------------------------------------------------------------------------------
2405 systemd_ask_password_SOURCES = \
2406 src/ask-password/ask-password.c
2408 systemd_ask_password_LDADD = \
2409 libsystemd-label.la \
2410 libsystemd-shared.la
2412 # ------------------------------------------------------------------------------
2413 systemd_reply_password_SOURCES = \
2414 src/reply-password/reply-password.c
2416 systemd_reply_password_LDADD = \
2417 libsystemd-shared.la
2419 # ------------------------------------------------------------------------------
2420 systemd_cgls_SOURCES = \
2423 systemd_cgls_LDADD = \
2424 libsystemd-internal.la \
2425 libsystemd-shared.la
2427 # ------------------------------------------------------------------------------
2428 systemd_cgtop_SOURCES = \
2431 systemd_cgtop_LDADD = \
2432 libsystemd-shared.la
2434 # ------------------------------------------------------------------------------
2435 systemd_nspawn_SOURCES = \
2436 src/nspawn/nspawn.c \
2437 src/core/mount-setup.c \
2438 src/core/mount-setup.h \
2439 src/core/loopback-setup.c \
2440 src/core/loopback-setup.h
2442 systemd_nspawn_CFLAGS = \
2447 systemd_nspawn_LDADD = \
2448 libsystemd-label.la \
2449 libsystemd-capability.la \
2450 libsystemd-internal.la \
2451 libudev-internal.la \
2452 libsystemd-shared.la \
2456 systemd_nspawn_LDADD += \
2457 libsystemd-seccomp.la \
2461 # ------------------------------------------------------------------------------
2462 systemd_run_SOURCES = \
2465 systemd_run_LDADD = \
2466 libsystemd-label.la \
2467 libsystemd-capability.la \
2468 libsystemd-internal.la \
2469 libsystemd-shared.la
2471 # ------------------------------------------------------------------------------
2472 systemd_bus_proxyd_SOURCES = \
2473 src/bus-proxyd/bus-proxyd.c \
2474 src/bus-proxyd/bus-policy.c \
2475 src/bus-proxyd/bus-policy.h
2477 systemd_bus_proxyd_LDADD = \
2478 libsystemd-capability.la \
2479 libsystemd-internal.la \
2480 libsystemd-shared.la
2482 bus-proxyd-install-hook:
2483 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
2484 $(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2485 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
2487 bus-proxyd-uninstall-hook:
2488 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2490 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
2491 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
2494 nodist_systemunit_DATA += \
2495 units/systemd-bus-proxyd@.service
2497 dist_systemunit_DATA += \
2498 units/systemd-bus-proxyd.socket
2500 nodist_userunit_DATA += \
2501 units/user/systemd-bus-proxyd@.service
2503 dist_userunit_DATA += \
2504 units/user/systemd-bus-proxyd.socket
2508 units/systemd-bus-proxyd@.service.in \
2509 units/user/systemd-bus-proxyd@.service.in
2511 # ------------------------------------------------------------------------------
2512 systemd_tty_ask_password_agent_SOURCES = \
2513 src/tty-ask-password-agent/tty-ask-password-agent.c
2515 systemd_tty_ask_password_agent_LDADD = \
2516 libsystemd-label.la \
2517 libsystemd-shared.la
2519 # ------------------------------------------------------------------------------
2520 libsystemd_internal_la_SOURCES = \
2521 src/systemd/sd-bus.h \
2522 src/systemd/sd-bus-protocol.h \
2523 src/systemd/sd-bus-vtable.h \
2524 src/systemd/sd-utf8.h \
2525 src/systemd/sd-event.h \
2526 src/systemd/sd-rtnl.h \
2527 src/systemd/sd-resolve.h \
2528 src/systemd/sd-login.h \
2529 src/systemd/sd-id128.h \
2530 src/systemd/sd-daemon.h \
2531 src/systemd/sd-path.h \
2532 src/systemd/sd-network.h \
2533 src/libsystemd/sd-bus/sd-bus.c \
2534 src/libsystemd/sd-bus/bus-control.c \
2535 src/libsystemd/sd-bus/bus-control.h \
2536 src/libsystemd/sd-bus/bus-error.c \
2537 src/libsystemd/sd-bus/bus-error.h \
2538 src/libsystemd/sd-bus/bus-internal.c \
2539 src/libsystemd/sd-bus/bus-internal.h \
2540 src/libsystemd/sd-bus/bus-socket.c \
2541 src/libsystemd/sd-bus/bus-socket.h \
2542 src/libsystemd/sd-bus/bus-kernel.c \
2543 src/libsystemd/sd-bus/bus-kernel.h \
2544 src/libsystemd/sd-bus/bus-container.c \
2545 src/libsystemd/sd-bus/bus-container.h \
2546 src/libsystemd/sd-bus/bus-message.c \
2547 src/libsystemd/sd-bus/bus-message.h \
2548 src/libsystemd/sd-bus/bus-creds.c \
2549 src/libsystemd/sd-bus/bus-creds.h \
2550 src/libsystemd/sd-bus/bus-signature.c \
2551 src/libsystemd/sd-bus/bus-signature.h \
2552 src/libsystemd/sd-bus/bus-type.c \
2553 src/libsystemd/sd-bus/bus-type.h \
2554 src/libsystemd/sd-bus/bus-match.c \
2555 src/libsystemd/sd-bus/bus-match.h \
2556 src/libsystemd/sd-bus/bus-bloom.c \
2557 src/libsystemd/sd-bus/bus-bloom.h \
2558 src/libsystemd/sd-bus/bus-introspect.c \
2559 src/libsystemd/sd-bus/bus-introspect.h \
2560 src/libsystemd/sd-bus/bus-objects.c \
2561 src/libsystemd/sd-bus/bus-objects.h \
2562 src/libsystemd/sd-bus/bus-gvariant.c \
2563 src/libsystemd/sd-bus/bus-gvariant.h \
2564 src/libsystemd/sd-bus/bus-convenience.c \
2565 src/libsystemd/sd-bus/bus-track.c \
2566 src/libsystemd/sd-bus/bus-track.h \
2567 src/libsystemd/sd-bus/bus-util.c \
2568 src/libsystemd/sd-bus/bus-util.h \
2569 src/libsystemd/sd-bus/bus-slot.c \
2570 src/libsystemd/sd-bus/bus-slot.h \
2571 src/libsystemd/sd-bus/bus-protocol.h \
2572 src/libsystemd/sd-bus/kdbus.h \
2573 src/libsystemd/sd-utf8/sd-utf8.c \
2574 src/libsystemd/sd-event/sd-event.c \
2575 src/libsystemd/sd-event/event-util.h \
2576 src/libsystemd/sd-rtnl/sd-rtnl.c \
2577 src/libsystemd/sd-rtnl/rtnl-internal.h \
2578 src/libsystemd/sd-rtnl/rtnl-message.c \
2579 src/libsystemd/sd-rtnl/rtnl-types.h \
2580 src/libsystemd/sd-rtnl/rtnl-types.c \
2581 src/libsystemd/sd-rtnl/rtnl-util.h \
2582 src/libsystemd/sd-rtnl/rtnl-util.c \
2583 src/libsystemd/sd-rtnl/local-addresses.h \
2584 src/libsystemd/sd-rtnl/local-addresses.c \
2585 src/libsystemd/sd-id128/sd-id128.c \
2586 src/libsystemd/sd-daemon/sd-daemon.c \
2587 src/libsystemd/sd-login/sd-login.c \
2588 src/libsystemd/sd-path/sd-path.c \
2589 src/libsystemd/sd-network/sd-network.c \
2590 src/libsystemd/sd-network/network-util.h \
2591 src/libsystemd/sd-network/network-util.c
2593 nodist_libsystemd_internal_la_SOURCES = \
2594 src/libsystemd/libsystemd.sym \
2595 src/libsystemd/sd-bus/bus-error-mapping.c
2597 libsystemd_internal_la_CFLAGS = \
2601 libsystemd_internal_la_LIBADD = \
2604 libsystemd_resolve_la_SOURCES = \
2605 src/libsystemd/sd-resolve/sd-resolve.c \
2606 src/libsystemd/sd-resolve/resolve-util.h
2608 libsystemd_resolve_la_CFLAGS = \
2612 libsystemd_resolve_la_LIBADD = \
2615 noinst_LTLIBRARIES += \
2616 libsystemd-internal.la \
2617 libsystemd-resolve.la
2619 libsystemd_dump_la_SOURCES = \
2620 src/libsystemd/sd-bus/bus-dump.c \
2621 src/libsystemd/sd-bus/bus-dump.h
2623 libsystemd_dump_la_CFLAGS = \
2627 noinst_LTLIBRARIES += \
2631 src/libsystemd/libsystemd.sym.m4 \
2632 src/libsystemd/libsystemd.pc.in \
2633 src/libsystemd/sd-bus/bus-error-mapping.gperf \
2634 src/libsystemd/sd-bus/DIFFERENCES \
2635 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2638 src/libsystemd/libsystemd.sym \
2639 src/libsystemd/sd-bus/bus-error-mapping.c
2642 src/libsystemd/libsystemd.sym
2644 libsystemd_la_SOURCES = \
2645 $(libsystemd_internal_la_SOURCES) \
2646 $(libsystemd_resolve_la_SOURCES) \
2647 $(libsystemd_journal_internal_la_SOURCES)
2649 nodist_libsystemd_la_SOURCES = \
2650 $(nodist_libsystemd_internal_la_SOURCES)
2652 libsystemd_la_CFLAGS = \
2653 $(libsystemd_internal_la_CFLAGS) \
2654 $(libsystemd_resolve_la_CFLAGS) \
2655 $(libsystemd_journal_internal_la_CFLAGS)
2657 libsystemd_la_LDFLAGS = \
2659 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2660 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2662 libsystemd_la_LIBADD = \
2663 libsystemd-shared.la \
2664 $(libsystemd_internal_la_LIBADD) \
2665 $(libsystemd_journal_internal_la_LIBADD) \
2666 $(libsystemd_resolve_la_LIBADD)
2668 libsystemd-install-hook:
2669 libname=libsystemd.so && $(move-to-rootlibdir)
2671 libsystemd-uninstall-hook:
2672 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2674 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2675 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2677 pkgconfiglib_DATA += \
2678 src/libsystemd/libsystemd.pc
2680 pkginclude_HEADERS += \
2681 src/systemd/sd-login.h \
2682 src/systemd/sd-id128.h \
2683 src/systemd/sd-daemon.h
2686 pkginclude_HEADERS += \
2687 src/systemd/sd-bus.h \
2688 src/systemd/sd-bus-protocol.h \
2689 src/systemd/sd-bus-vtable.h \
2690 src/systemd/sd-utf8.h \
2691 src/systemd/sd-event.h \
2692 src/systemd/sd-rtnl.h \
2693 src/systemd/sd-resolve.h \
2694 src/systemd/sd-path.h
2697 lib_LTLIBRARIES += \
2702 test-bus-signature \
2708 test-bus-kernel-bloom \
2709 test-bus-kernel-benchmark \
2710 test-bus-zero-copy \
2711 test-bus-introspect \
2723 test_bus_marshal_SOURCES = \
2724 src/libsystemd/sd-bus/test-bus-marshal.c
2726 test_bus_marshal_LDADD = \
2727 libsystemd-internal.la \
2728 libsystemd-shared.la \
2729 libsystemd-dump.la \
2730 libsystemd-capability.la \
2735 test_bus_marshal_CFLAGS = \
2741 test_bus_signature_SOURCES = \
2742 src/libsystemd/sd-bus/test-bus-signature.c
2744 test_bus_signature_LDADD = \
2745 libsystemd-shared.la \
2746 libsystemd-internal.la
2748 test_bus_chat_SOURCES = \
2749 src/libsystemd/sd-bus/test-bus-chat.c
2751 test_bus_chat_CFLAGS = \
2755 test_bus_chat_LDADD = \
2756 libsystemd-internal.la \
2757 libsystemd-shared.la
2759 test_bus_cleanup_SOURCES = \
2760 src/libsystemd/sd-bus/test-bus-cleanup.c
2762 test_bus_cleanup_CFLAGS = \
2766 test_bus_cleanup_LDADD = \
2767 libsystemd-internal.la \
2768 libsystemd-shared.la
2770 test_bus_server_SOURCES = \
2771 src/libsystemd/sd-bus/test-bus-server.c
2773 test_bus_server_CFLAGS = \
2777 test_bus_server_LDADD = \
2778 libsystemd-internal.la \
2779 libsystemd-shared.la
2781 test_bus_objects_SOURCES = \
2782 src/libsystemd/sd-bus/test-bus-objects.c
2784 test_bus_objects_CFLAGS = \
2789 test_bus_objects_LDADD = \
2790 libsystemd-internal.la \
2791 libsystemd-shared.la \
2792 libsystemd-dump.la \
2793 libsystemd-capability.la \
2796 test_bus_error_SOURCES = \
2797 src/libsystemd/sd-bus/test-bus-error.c
2799 test_bus_error_LDADD = \
2800 libsystemd-internal.la \
2801 libsystemd-shared.la
2803 test_bus_gvariant_SOURCES = \
2804 src/libsystemd/sd-bus/test-bus-gvariant.c
2806 test_bus_gvariant_LDADD = \
2807 libsystemd-internal.la \
2808 libsystemd-shared.la \
2809 libsystemd-dump.la \
2810 libsystemd-capability.la \
2814 test_bus_gvariant_CFLAGS = \
2819 test_bus_creds_SOURCES = \
2820 src/libsystemd/sd-bus/test-bus-creds.c
2822 test_bus_creds_LDADD = \
2823 libsystemd-internal.la \
2824 libsystemd-shared.la \
2825 libsystemd-dump.la \
2826 libsystemd-capability.la
2828 test_bus_match_SOURCES = \
2829 src/libsystemd/sd-bus/test-bus-match.c
2831 test_bus_match_LDADD = \
2832 libsystemd-internal.la \
2833 libsystemd-shared.la
2835 test_bus_kernel_SOURCES = \
2836 src/libsystemd/sd-bus/test-bus-kernel.c
2838 test_bus_kernel_LDADD = \
2839 libsystemd-internal.la \
2840 libsystemd-shared.la \
2841 libsystemd-dump.la \
2842 libsystemd-capability.la \
2845 test_bus_kernel_CFLAGS = \
2849 test_bus_kernel_bloom_SOURCES = \
2850 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
2852 test_bus_kernel_bloom_LDADD = \
2853 libsystemd-internal.la \
2854 libsystemd-shared.la
2856 test_bus_kernel_benchmark_SOURCES = \
2857 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
2859 test_bus_kernel_benchmark_LDADD = \
2860 libsystemd-internal.la \
2861 libsystemd-shared.la
2863 test_bus_zero_copy_SOURCES = \
2864 src/libsystemd/sd-bus/test-bus-zero-copy.c
2866 test_bus_zero_copy_LDADD = \
2867 libsystemd-internal.la \
2868 libsystemd-shared.la \
2869 libsystemd-dump.la \
2870 libsystemd-capability.la \
2873 test_bus_zero_copy_CFLAGS = \
2877 test_bus_introspect_SOURCES = \
2878 src/libsystemd/sd-bus/test-bus-introspect.c
2880 test_bus_introspect_LDADD = \
2881 libsystemd-internal.la \
2882 libsystemd-shared.la
2884 test_event_SOURCES = \
2885 src/libsystemd/sd-event/test-event.c
2887 test_event_LDADD = \
2888 libsystemd-internal.la \
2889 libsystemd-shared.la
2891 test_rtnl_SOURCES = \
2892 src/libsystemd/sd-rtnl/test-rtnl.c
2895 libsystemd-internal.la \
2896 libsystemd-shared.la
2898 test_resolve_SOURCES = \
2899 src/libsystemd/sd-resolve/test-resolve.c
2901 test_resolve_LDADD = \
2902 libsystemd-resolve.la \
2903 libsystemd-internal.la \
2904 libsystemd-shared.la
2906 test_resolve_CFLAGS = \
2911 src/libsystemd/sd-bus/busctl.c
2914 libsystemd-internal.la \
2915 libsystemd-shared.la \
2916 libsystemd-dump.la \
2917 libsystemd-capability.la \
2924 # ------------------------------------------------------------------------------
2925 noinst_LTLIBRARIES += \
2926 libsystemd-network.la
2928 libsystemd_network_la_CFLAGS = \
2932 libsystemd_network_la_SOURCES = \
2933 src/systemd/sd-dhcp-client.h \
2934 src/systemd/sd-dhcp-server.h \
2935 src/systemd/sd-dhcp-lease.h \
2936 src/systemd/sd-ipv4ll.h \
2937 src/systemd/sd-icmp6-nd.h \
2938 src/systemd/sd-dhcp6-client.h \
2939 src/systemd/sd-dhcp6-lease.h \
2940 src/libsystemd-network/sd-dhcp-client.c \
2941 src/libsystemd-network/sd-dhcp-server.c \
2942 src/libsystemd-network/dhcp-network.c \
2943 src/libsystemd-network/dhcp-option.c \
2944 src/libsystemd-network/dhcp-packet.c \
2945 src/libsystemd-network/dhcp-internal.h \
2946 src/libsystemd-network/dhcp-server-internal.h \
2947 src/libsystemd-network/dhcp-protocol.h \
2948 src/libsystemd-network/dhcp-lease-internal.h \
2949 src/libsystemd-network/sd-dhcp-lease.c \
2950 src/libsystemd-network/sd-ipv4ll.c \
2951 src/libsystemd-network/ipv4ll-network.c \
2952 src/libsystemd-network/ipv4ll-packet.c \
2953 src/libsystemd-network/ipv4ll-internal.h \
2954 src/libsystemd-network/network-internal.c \
2955 src/libsystemd-network/network-internal.h \
2956 src/libsystemd-network/sd-icmp6-nd.c \
2957 src/libsystemd-network/sd-dhcp6-client.c \
2958 src/libsystemd-network/dhcp6-internal.h \
2959 src/libsystemd-network/dhcp6-protocol.h \
2960 src/libsystemd-network/dhcp6-network.c \
2961 src/libsystemd-network/dhcp6-option.c \
2962 src/libsystemd-network/dhcp6-lease-internal.h \
2963 src/libsystemd-network/sd-dhcp6-lease.c
2965 libsystemd_network_la_LIBADD = \
2966 libudev-internal.la \
2967 libsystemd-label.la \
2968 libsystemd-internal.la \
2969 libsystemd-shared.la \
2972 test_dhcp_option_SOURCES = \
2973 src/libsystemd-network/dhcp-protocol.h \
2974 src/libsystemd-network/dhcp-internal.h \
2975 src/libsystemd-network/test-dhcp-option.c
2977 test_dhcp_option_LDADD = \
2978 libsystemd-network.la \
2979 libsystemd-internal.la \
2980 libsystemd-shared.la
2982 test_dhcp_client_SOURCES = \
2983 src/systemd/sd-dhcp-client.h \
2984 src/libsystemd-network/dhcp-protocol.h \
2985 src/libsystemd-network/dhcp-internal.h \
2986 src/libsystemd-network/test-dhcp-client.c
2988 test_dhcp_client_LDADD = \
2989 libsystemd-network.la \
2990 libsystemd-label.la \
2991 libsystemd-internal.la \
2992 libsystemd-shared.la
2994 test_dhcp_server_SOURCES = \
2995 src/libsystemd-network/test-dhcp-server.c
2997 test_dhcp_server_LDADD = \
2998 libsystemd-network.la \
2999 libsystemd-internal.la \
3000 libsystemd-shared.la
3002 test_ipv4ll_SOURCES = \
3003 src/systemd/sd-ipv4ll.h \
3004 src/libsystemd-network/ipv4ll-internal.h \
3005 src/libsystemd-network/test-ipv4ll.c
3007 test_ipv4ll_LDADD = \
3008 libsystemd-network.la \
3009 libsystemd-label.la \
3010 libsystemd-internal.la \
3011 libsystemd-shared.la
3013 test_icmp6_rs_SOURCES = \
3014 src/systemd/sd-dhcp6-client.h \
3015 src/systemd/sd-icmp6-nd.h \
3016 src/libsystemd-network/dhcp6-internal.h \
3017 src/libsystemd-network/test-icmp6-rs.c
3019 test_icmp6_rs_LDADD = \
3020 libsystemd-network.la \
3021 libsystemd-internal.la \
3022 libsystemd-shared.la
3024 test_dhcp6_client_SOURCES = \
3025 src/systemd/sd-dhcp6-client.h \
3026 src/libsystemd-network/dhcp6-internal.h \
3027 src/libsystemd-network/test-dhcp6-client.c
3029 test_dhcp6_client_LDADD = \
3030 libsystemd-network.la \
3031 libsystemd-internal.la \
3032 libsystemd-shared.la
3042 # ------------------------------------------------------------------------------
3044 noinst_LTLIBRARIES += \
3045 libsystemd-terminal.la
3047 rootlibexec_PROGRAMS += \
3050 noinst_PROGRAMS += \
3055 dist_pkgdata_DATA += \
3056 src/libsystemd-terminal/unifont-glyph-array.bin
3058 nodist_userunit_DATA += \
3059 units/user/systemd-consoled.service
3061 USER_DEFAULT_TARGET_WANTS += \
3062 systemd-consoled.service
3065 units/user/systemd-consoled.service.in
3073 libsystemd_terminal_la_CFLAGS = \
3077 libsystemd_terminal_la_SOURCES = \
3078 src/libsystemd-terminal/grdev.h \
3079 src/libsystemd-terminal/grdev-internal.h \
3080 src/libsystemd-terminal/grdev.c \
3081 src/libsystemd-terminal/grdev-drm.c \
3082 src/libsystemd-terminal/idev.h \
3083 src/libsystemd-terminal/idev-internal.h \
3084 src/libsystemd-terminal/idev.c \
3085 src/libsystemd-terminal/idev-evdev.c \
3086 src/libsystemd-terminal/idev-keyboard.c \
3087 src/libsystemd-terminal/sysview.h \
3088 src/libsystemd-terminal/sysview-internal.h \
3089 src/libsystemd-terminal/sysview.c \
3090 src/libsystemd-terminal/term.h \
3091 src/libsystemd-terminal/term-internal.h \
3092 src/libsystemd-terminal/term-charset.c \
3093 src/libsystemd-terminal/term-page.c \
3094 src/libsystemd-terminal/term-parser.c \
3095 src/libsystemd-terminal/term-screen.c \
3096 src/libsystemd-terminal/term-wcwidth.c \
3097 src/libsystemd-terminal/unifont.h \
3098 src/libsystemd-terminal/unifont-def.h \
3099 src/libsystemd-terminal/unifont.c
3101 libsystemd_terminal_la_LIBADD = \
3102 libudev-internal.la \
3103 libsystemd-internal.la \
3104 libsystemd-shared.la \
3107 systemd_consoled_CFLAGS = \
3111 systemd_consoled_SOURCES = \
3112 src/console/consoled.h \
3113 src/console/consoled.c \
3114 src/console/consoled-display.c \
3115 src/console/consoled-manager.c \
3116 src/console/consoled-session.c \
3117 src/console/consoled-terminal.c \
3118 src/console/consoled-workspace.c
3120 systemd_consoled_LDADD = \
3121 libsystemd-terminal.la \
3122 libsystemd-internal.la \
3123 libsystemd-shared.la \
3126 systemd_evcat_CFLAGS = \
3130 systemd_evcat_SOURCES = \
3131 src/libsystemd-terminal/evcat.c
3133 systemd_evcat_LDADD = \
3134 libsystemd-terminal.la \
3135 libsystemd-internal.la \
3136 libsystemd-shared.la \
3139 systemd_modeset_CFLAGS = \
3143 systemd_modeset_SOURCES = \
3144 src/libsystemd-terminal/modeset.c
3146 systemd_modeset_LDADD = \
3147 libsystemd-terminal.la \
3148 libsystemd-internal.la \
3149 libsystemd-shared.la \
3152 systemd_subterm_SOURCES = \
3153 src/libsystemd-terminal/subterm.c
3155 systemd_subterm_LDADD = \
3156 libsystemd-terminal.la \
3157 libsystemd-internal.la \
3158 libsystemd-shared.la
3160 test_term_page_SOURCES = \
3161 src/libsystemd-terminal/test-term-page.c
3163 test_term_page_LDADD = \
3164 libsystemd-terminal.la \
3165 libsystemd-internal.la \
3166 libsystemd-shared.la
3168 test_term_parser_SOURCES = \
3169 src/libsystemd-terminal/test-term-parser.c
3171 test_term_parser_LDADD = \
3172 libsystemd-terminal.la \
3173 libsystemd-internal.la \
3174 libsystemd-shared.la
3176 test_unifont_SOURCES = \
3177 src/libsystemd-terminal/test-unifont.c
3179 test_unifont_LDADD = \
3180 libsystemd-terminal.la \
3181 libsystemd-internal.la \
3182 libsystemd-shared.la
3184 .PHONY: update-unifont
3185 update-unifont: tools/compile-unifont.py
3186 $(AM_V_GEN)$(PYTHON) $< \
3187 <$(top_srcdir)/src/libsystemd-terminal/unifont.hex \
3188 >$(top_srcdir)/src/libsystemd-terminal/unifont-glyph-array.bin
3189 @echo "unifont-glyph-array.bin has been regenerated"
3191 # ------------------------------------------------------------------------------
3201 include_HEADERS += \
3202 src/libudev/libudev.h
3204 lib_LTLIBRARIES += \
3207 libudev_la_SOURCES =\
3208 src/libudev/libudev.sym \
3209 src/libudev/libudev-private.h \
3210 src/libudev/libudev.c \
3211 src/libudev/libudev-list.c \
3212 src/libudev/libudev-util.c \
3213 src/libudev/libudev-device.c \
3214 src/libudev/libudev-enumerate.c \
3215 src/libudev/libudev-monitor.c \
3216 src/libudev/libudev-queue.c \
3217 src/libudev/libudev-hwdb-def.h \
3218 src/libudev/libudev-hwdb.c
3220 libudev_la_CFLAGS = \
3224 libudev_la_LDFLAGS = \
3226 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3227 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3229 libudev_la_LIBADD = \
3230 libsystemd-internal.la \
3231 libsystemd-shared.la
3233 pkgconfiglib_DATA += \
3234 src/libudev/libudev.pc
3237 src/libudev/libudev.pc.in
3240 src/libudev/libudev.pc \
3245 $(AM_V_at)$(MKDIR_P) $(dir $@)
3246 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
3249 $(AM_V_at)$(MKDIR_P) $(dir $@)
3250 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
3252 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3253 libudev-install-hook:
3254 libname=libudev.so && $(move-to-rootlibdir)
3256 libudev-uninstall-hook:
3257 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3259 INSTALL_EXEC_HOOKS += libudev-install-hook
3260 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3262 # ------------------------------------------------------------------------------
3263 noinst_LTLIBRARIES += \
3266 libudev_internal_la_SOURCES =\
3267 $(libudev_la_SOURCES) \
3268 src/libudev/libudev-device-private.c
3270 libudev_internal_la_CFLAGS = \
3272 -fvisibility=default
3274 # ------------------------------------------------------------------------------
3276 $(sysconfdir)/udev/rules.d \
3277 $(sysconfdir)/udev/hwdb.d
3279 dist_network_DATA = \
3280 network/99-default.link \
3281 network/80-container-host0.network \
3282 network/80-container-ve.network
3284 dist_udevrules_DATA += \
3285 rules/42-usb-hid-pm.rules \
3286 rules/50-udev-default.rules \
3287 rules/60-drm.rules \
3288 rules/60-keyboard.rules \
3289 rules/60-persistent-storage-tape.rules \
3290 rules/60-persistent-serial.rules \
3291 rules/60-persistent-input.rules \
3292 rules/60-persistent-alsa.rules \
3293 rules/60-persistent-storage.rules \
3294 rules/64-btrfs.rules \
3295 rules/75-net-description.rules \
3296 rules/75-tty-description.rules \
3297 rules/78-sound-card.rules \
3298 rules/80-net-setup-link.rules \
3299 rules/95-udev-late.rules
3301 nodist_udevrules_DATA += \
3302 rules/99-systemd.rules
3304 dist_udevhwdb_DATA = \
3305 hwdb/20-pci-vendor-model.hwdb \
3306 hwdb/20-pci-classes.hwdb \
3307 hwdb/20-usb-vendor-model.hwdb \
3308 hwdb/20-usb-classes.hwdb \
3309 hwdb/20-sdio-vendor-model.hwdb \
3310 hwdb/20-sdio-classes.hwdb \
3311 hwdb/20-bluetooth-vendor-product.hwdb \
3312 hwdb/20-acpi-vendor.hwdb \
3314 hwdb/20-net-ifname.hwdb \
3315 hwdb/60-keyboard.hwdb
3317 udevconfdir = $(sysconfdir)/udev
3318 dist_udevconf_DATA = \
3321 sharepkgconfigdir = $(datadir)/pkgconfig
3322 sharepkgconfig_DATA = \
3326 rules/99-systemd.rules.in \
3330 rules/99-systemd.rules \
3334 units/systemd-udevd.service.in \
3335 units/systemd-udev-trigger.service.in \
3336 units/systemd-udev-settle.service.in \
3337 units/systemd-udev-hwdb-update.service.in
3340 units/systemd-udevd.service \
3341 units/systemd-udev-trigger.service \
3342 units/systemd-udev-settle.service \
3343 units/systemd-udev-hwdb-update.service
3345 SOCKETS_TARGET_WANTS += \
3346 systemd-udevd-control.socket \
3347 systemd-udevd-kernel.socket
3349 SYSINIT_TARGET_WANTS += \
3350 systemd-udevd.service \
3351 systemd-udev-trigger.service \
3352 systemd-udev-hwdb-update.service
3354 rootbin_PROGRAMS += \
3357 rootlibexec_PROGRAMS += \
3360 noinst_LTLIBRARIES += \
3363 src/udev/keyboard-keys.txt:
3364 $(AM_V_at)$(MKDIR_P) $(dir $@)
3365 $(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/' > $@
3367 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
3368 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3370 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3371 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3373 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
3374 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
3376 libudev_core_la_SOURCES = \
3378 src/udev/udev-event.c \
3379 src/udev/udev-watch.c \
3380 src/udev/udev-node.c \
3381 src/udev/udev-rules.c \
3382 src/udev/udev-ctrl.c \
3383 src/udev/udev-builtin.c \
3384 src/udev/udev-builtin-btrfs.c \
3385 src/udev/udev-builtin-hwdb.c \
3386 src/udev/udev-builtin-input_id.c \
3387 src/udev/udev-builtin-keyboard.c \
3388 src/udev/udev-builtin-net_id.c \
3389 src/udev/udev-builtin-net_setup_link.c \
3390 src/udev/udev-builtin-path_id.c \
3391 src/udev/udev-builtin-usb_id.c \
3392 src/udev/net/link-config.h \
3393 src/udev/net/link-config.c \
3394 src/udev/net/ethtool-util.h \
3395 src/udev/net/ethtool-util.c
3397 nodist_libudev_core_la_SOURCES = \
3398 src/udev/keyboard-keys-from-name.h \
3399 src/udev/keyboard-keys-to-name.h \
3400 src/udev/net/link-config-gperf.c
3403 $(nodist_libudev_core_la_SOURCES)
3406 src/udev/keyboard-keys-from-name.gperf \
3407 src/udev/keyboard-keys.txt \
3408 src/udev/net/link-config-gperf.c
3411 src/udev/net/link-config-gperf.gperf
3413 libudev_core_la_CFLAGS = \
3418 libudev_core_la_LIBADD = \
3419 libudev-internal.la \
3420 libsystemd-label.la \
3421 libsystemd-internal.la \
3422 libsystemd-network.la \
3423 libsystemd-shared.la \
3428 libudev_core_la_SOURCES += \
3429 src/udev/udev-builtin-kmod.c
3431 dist_udevrules_DATA += \
3432 rules/80-drivers.rules
3436 libudev_core_la_SOURCES += \
3437 src/udev/udev-builtin-blkid.c
3441 libudev_core_la_SOURCES += \
3442 src/udev/udev-builtin-uaccess.c \
3443 src/login/logind-acl.c \
3444 src/libsystemd/sd-login/sd-login.c \
3445 src/systemd/sd-login.h
3447 libudev_core_la_LIBADD += \
3451 systemd_udevd_SOURCES = \
3454 systemd_udevd_LDADD = \
3458 src/udev/udevadm.c \
3459 src/udev/udevadm-info.c \
3460 src/udev/udevadm-control.c \
3461 src/udev/udevadm-monitor.c \
3462 src/udev/udevadm-hwdb.c \
3463 src/udev/udevadm-settle.c \
3464 src/udev/udevadm-trigger.c \
3465 src/udev/udevadm-test.c \
3466 src/udev/udevadm-test-builtin.c
3471 # Update hwdb on installation. Do not bother if installing
3472 # in DESTDIR, since this is likely for packaging purposes.
3474 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
3476 INSTALL_DATA_HOOKS += \
3480 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3482 # ------------------------------------------------------------------------------
3491 test_libudev_SOURCES = \
3492 src/test/test-libudev.c
3494 test_libudev_LDADD = \
3495 libsystemd-label.la \
3496 libudev-internal.la \
3497 libsystemd-shared.la
3499 test_udev_SOURCES = \
3500 src/test/test-udev.c
3509 test_udev_LDADD += \
3516 # packed sysfs test tree
3518 $(AM_V_at)$(MKDIR_P) $(dir $@)
3519 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3523 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3528 test/rules-test.sh \
3529 test/rule-syntax-check.py
3531 # ------------------------------------------------------------------------------
3533 src/udev/ata_id/ata_id.c
3536 libudev-internal.la \
3537 libsystemd-shared.la
3539 udevlibexec_PROGRAMS += \
3542 # ------------------------------------------------------------------------------
3543 cdrom_id_SOURCES = \
3544 src/udev/cdrom_id/cdrom_id.c
3547 libudev-internal.la \
3548 libsystemd-shared.la
3550 udevlibexec_PROGRAMS += \
3553 dist_udevrules_DATA += \
3554 rules/60-cdrom_id.rules
3556 # ------------------------------------------------------------------------------
3558 src/udev/collect/collect.c
3561 libudev-internal.la \
3562 libsystemd-shared.la
3564 udevlibexec_PROGRAMS += \
3567 # ------------------------------------------------------------------------------
3569 src/udev/scsi_id/scsi_id.c \
3570 src/udev/scsi_id/scsi_serial.c \
3571 src/udev/scsi_id/scsi.h \
3572 src/udev/scsi_id/scsi_id.h
3575 libudev-internal.la \
3576 libsystemd-shared.la
3578 udevlibexec_PROGRAMS += \
3582 src/udev/scsi_id/README
3584 # ------------------------------------------------------------------------------
3586 src/udev/v4l_id/v4l_id.c
3591 udevlibexec_PROGRAMS += \
3594 dist_udevrules_DATA += \
3595 rules/60-persistent-v4l.rules
3597 # ------------------------------------------------------------------------------
3598 accelerometer_SOURCES = \
3599 src/udev/accelerometer/accelerometer.c
3601 accelerometer_LDADD = \
3602 libudev-internal.la -lm \
3603 libsystemd-shared.la
3605 udevlibexec_PROGRAMS += \
3608 dist_udevrules_DATA += \
3609 rules/61-accelerometer.rules
3611 # ------------------------------------------------------------------------------
3618 libgudev_includedir = \
3619 $(includedir)/gudev-1.0/gudev
3621 libgudev_include_HEADERS = \
3623 src/gudev/gudevenums.h \
3624 src/gudev/gudevenumtypes.h \
3625 src/gudev/gudevtypes.h \
3626 src/gudev/gudevclient.h \
3627 src/gudev/gudevdevice.h \
3628 src/gudev/gudevenumerator.h
3630 lib_LTLIBRARIES += libgudev-1.0.la
3632 pkgconfiglib_DATA += \
3633 src/gudev/gudev-1.0.pc
3636 src/gudev/gudev-1.0.pc
3638 libgudev_1_0_la_SOURCES = \
3639 src/gudev/libgudev-1.0.sym \
3640 src/gudev/gudevenums.h \
3641 src/gudev/gudevenumtypes.h \
3642 src/gudev/gudevenumtypes.h\
3643 src/gudev/gudevtypes.h \
3644 src/gudev/gudevclient.h \
3645 src/gudev/gudevclient.c \
3646 src/gudev/gudevdevice.h \
3647 src/gudev/gudevdevice.c \
3648 src/gudev/gudevenumerator.h \
3649 src/gudev/gudevenumerator.c \
3650 src/gudev/gudevprivate.h
3652 nodist_libgudev_1_0_la_SOURCES = \
3653 src/gudev/gudevmarshal.h \
3654 src/gudev/gudevmarshal.c \
3655 src/gudev/gudevenumtypes.h \
3656 src/gudev/gudevenumtypes.c
3659 $(nodist_libgudev_1_0_la_SOURCES)
3661 libgudev_1_0_la_CPPFLAGS = \
3663 -I$(top_builddir)/src\
3664 -I$(top_srcdir)/src\
3665 -I$(top_builddir)/src/gudev \
3666 -I$(top_srcdir)/src/gudev \
3667 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3668 -D_GUDEV_COMPILATION \
3669 -DG_LOG_DOMAIN=\"GUdev\"
3671 libgudev_1_0_la_CFLAGS = \
3673 -fvisibility=default \
3676 libgudev_1_0_la_LIBADD = \
3680 libgudev_1_0_la_LDFLAGS = \
3682 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3685 -Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym
3687 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3688 $(AM_V_at)$(MKDIR_P) $(dir $@)
3689 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3691 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3692 $(AM_V_at)$(MKDIR_P) $(dir $@)
3693 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3694 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3696 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3697 $(AM_V_at)$(MKDIR_P) $(dir $@)
3698 $(AM_V_GEN)glib-mkenums --template $^ > $@
3700 if HAVE_INTROSPECTION
3701 -include $(INTROSPECTION_MAKEFILE)
3703 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3705 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3707 src_gudev_GUdev_1_0_gir_CFLAGS = \
3710 -D_GUDEV_COMPILATION \
3711 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3712 -I$(top_srcdir)/src \
3713 -I$(top_builddir)/src \
3714 -I$(top_srcdir)/src/gudev \
3715 -I$(top_builddir)/src/gudev
3717 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
3719 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
3720 --pkg-export=gudev-1.0 \
3723 src_gudev_GUdev_1_0_gir_FILES = \
3725 src/gudev/gudevtypes.h \
3726 src/gudev/gudevenums.h \
3727 src/gudev/gudevenumtypes.h \
3728 src/gudev/gudevclient.h \
3729 src/gudev/gudevdevice.h \
3730 src/gudev/gudevenumerator.h \
3731 src/gudev/gudevclient.c \
3732 src/gudev/gudevdevice.c \
3733 src/gudev/gudevenumerator.c
3735 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
3736 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
3738 girdir = $(datadir)/gir-1.0
3740 src/gudev/GUdev-1.0.gir
3742 typelibsdir = $(libdir)/girepository-1.0
3744 src/gudev/GUdev-1.0.typelib
3746 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
3747 endif # HAVE_INTROSPECTION
3751 src/gudev/gudev-1.0.pc.in \
3752 src/gudev/gudevmarshal.list \
3753 src/gudev/gudevenumtypes.h.template \
3754 src/gudev/gudevenumtypes.c.template \
3755 src/gudev/gjs-example.js \
3756 src/gudev/seed-example-enum.js \
3757 src/gudev/seed-example.js
3759 # ------------------------------------------------------------------------------
3760 mtd_probe_SOURCES = \
3761 src/udev/mtd_probe/mtd_probe.c \
3762 src/udev/mtd_probe/mtd_probe.h \
3763 src/udev/mtd_probe/probe_smartmedia.c
3765 dist_udevrules_DATA += \
3766 rules/75-probe_mtd.rules
3768 udevlibexec_PROGRAMS += \
3771 # ------------------------------------------------------------------------------
3772 test_id128_SOURCES = \
3773 src/test/test-id128.c
3775 test_id128_LDADD = \
3776 libsystemd-internal.la \
3777 libsystemd-shared.la
3782 # ------------------------------------------------------------------------------
3784 rootlibexec_PROGRAMS += \
3787 systemd_activate_SOURCES = \
3788 src/activate/activate.c
3790 systemd_activate_LDADD = \
3791 libsystemd-label.la \
3792 libsystemd-internal.la \
3793 libsystemd-shared.la
3795 # ------------------------------------------------------------------------------
3796 systemd_journald_SOURCES = \
3797 src/journal/journald.c \
3798 src/journal/journald-server.h
3800 systemd_journald_LDADD = \
3801 libsystemd-journal-core.la \
3802 libsystemd-internal.la \
3803 libsystemd-shared.la
3805 systemd_cat_SOURCES = \
3808 systemd_cat_LDADD = \
3809 libsystemd-journal-core.la
3812 rootlibexec_PROGRAMS += \
3813 systemd-journal-remote
3815 systemd_journal_remote_SOURCES = \
3816 src/journal-remote/journal-remote-parse.h \
3817 src/journal-remote/journal-remote-parse.c \
3818 src/journal-remote/journal-remote-write.h \
3819 src/journal-remote/journal-remote-write.c \
3820 src/journal-remote/journal-remote.h \
3821 src/journal-remote/journal-remote.c
3823 systemd_journal_remote_LDADD = \
3824 libsystemd-internal.la \
3825 libsystemd-journal-core.la
3827 systemd_journal_remote_SOURCES += \
3828 src/journal-remote/microhttpd-util.h \
3829 src/journal-remote/microhttpd-util.c
3831 systemd_journal_remote_CFLAGS = \
3833 $(MICROHTTPD_CFLAGS)
3835 systemd_journal_remote_LDADD += \
3839 systemd_journal_remote_LDADD += \
3842 # systemd-journal-remote make sense mostly with full crypto stack
3843 dist_systemunit_DATA += \
3844 units/systemd-journal-remote.socket
3846 nodist_systemunit_DATA += \
3847 units/systemd-journal-remote.service
3850 units/systemd-journal-remote.service.in
3852 journal-remote-install-hook: journal-install-hook
3853 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
3854 -chown 0:0 $(DESTDIR)/var/log/journal/remote
3855 -chmod 755 $(DESTDIR)/var/log/journal/remote
3857 INSTALL_EXEC_HOOKS += journal-remote-install-hook
3861 nodist_pkgsysconf_DATA += \
3862 src/journal-remote/journal-remote.conf
3865 src/journal-remote/journal-remote.conf.in
3868 src/journal-remote/journal-remote.conf
3872 rootlibexec_PROGRAMS += \
3873 systemd-journal-upload
3875 systemd_journal_upload_SOURCES = \
3876 src/journal-remote/journal-upload.h \
3877 src/journal-remote/journal-upload.c \
3878 src/journal-remote/journal-upload-journal.c
3880 systemd_journal_upload_CFLAGS = \
3884 systemd_journal_upload_LDADD = \
3885 libsystemd-core.la \
3886 libsystemd-internal.la \
3887 libsystemd-journal-internal.la \
3888 libsystemd-shared.la \
3891 nodist_systemunit_DATA += \
3892 units/systemd-journal-upload.service
3895 units/systemd-journal-upload.service.in
3897 nodist_pkgsysconf_DATA += \
3898 src/journal-remote/journal-upload.conf
3901 src/journal-remote/journal-upload.conf.in
3904 src/journal-remote/journal-upload.conf
3907 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3908 journalctl_CFLAGS = \
3911 journalctl_SOURCES = \
3912 src/journal/journalctl.c
3914 journalctl_LDADD = \
3915 libsystemd-journal-internal.la \
3916 libsystemd-internal.la \
3917 libsystemd-logs.la \
3918 libsystemd-shared.la
3921 journalctl_LDADD += \
3926 journalctl_SOURCES += \
3927 src/journal/journal-qrcode.c \
3928 src/journal/journal-qrcode.h
3930 journalctl_CFLAGS += \
3933 journalctl_LDADD += \
3937 test_journal_SOURCES = \
3938 src/journal/test-journal.c
3940 test_journal_LDADD = \
3941 libsystemd-journal-core.la
3943 test_journal_send_SOURCES = \
3944 src/journal/test-journal-send.c
3946 test_journal_send_LDADD = \
3947 libsystemd-journal-core.la
3949 test_journal_syslog_SOURCES = \
3950 src/journal/test-journal-syslog.c
3952 test_journal_syslog_LDADD = \
3953 libsystemd-journal-core.la
3955 test_journal_match_SOURCES = \
3956 src/journal/test-journal-match.c
3958 test_journal_match_LDADD = \
3959 libsystemd-journal-core.la
3961 test_journal_enum_SOURCES = \
3962 src/journal/test-journal-enum.c
3964 test_journal_enum_LDADD = \
3965 libsystemd-journal-core.la
3967 test_journal_stream_SOURCES = \
3968 src/journal/test-journal-stream.c
3970 test_journal_stream_LDADD = \
3971 libsystemd-journal-core.la
3973 test_journal_flush_SOURCES = \
3974 src/journal/test-journal-flush.c
3976 test_journal_flush_LDADD = \
3977 libsystemd-journal-core.la
3979 test_journal_init_SOURCES = \
3980 src/journal/test-journal-init.c
3982 test_journal_init_LDADD = \
3983 libsystemd-journal-core.la
3985 test_journal_verify_SOURCES = \
3986 src/journal/test-journal-verify.c
3988 test_journal_verify_LDADD = \
3989 libsystemd-journal-core.la
3991 test_journal_interleaving_SOURCES = \
3992 src/journal/test-journal-interleaving.c
3994 test_journal_interleaving_LDADD = \
3995 libsystemd-journal-core.la
3997 test_mmap_cache_SOURCES = \
3998 src/journal/test-mmap-cache.c
4000 test_mmap_cache_LDADD = \
4001 libsystemd-journal-core.la
4003 test_catalog_SOURCES = \
4004 src/journal/test-catalog.c
4006 test_catalog_CPPFLAGS = \
4008 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
4010 test_catalog_LDADD = \
4011 libsystemd-journal-core.la
4013 test_compress_SOURCES = \
4014 src/journal/test-compress.c
4016 test_compress_LDADD = \
4017 libsystemd-journal-internal.la \
4018 libsystemd-shared.la
4020 test_compress_benchmark_SOURCES = \
4021 src/journal/test-compress-benchmark.c
4023 test_compress_benchmark_LDADD = \
4024 libsystemd-journal-internal.la \
4025 libsystemd-shared.la
4027 libsystemd_journal_core_la_SOURCES = \
4028 src/journal/journald-kmsg.c \
4029 src/journal/journald-kmsg.h \
4030 src/journal/journald-syslog.c \
4031 src/journal/journald-syslog.h \
4032 src/journal/journald-stream.c \
4033 src/journal/journald-stream.h \
4034 src/journal/journald-server.c \
4035 src/journal/journald-server.h \
4036 src/journal/journald-console.c \
4037 src/journal/journald-console.h \
4038 src/journal/journald-wall.c \
4039 src/journal/journald-wall.h \
4040 src/journal/journald-native.c \
4041 src/journal/journald-native.h \
4042 src/journal/journald-rate-limit.c \
4043 src/journal/journald-rate-limit.h \
4044 src/journal/journal-internal.h
4046 nodist_libsystemd_journal_core_la_SOURCES = \
4047 src/journal/journald-gperf.c
4049 libsystemd_journal_core_la_LIBADD = \
4050 libsystemd-journal-internal.la \
4051 libudev-internal.la \
4052 libsystemd-capability.la \
4053 libsystemd-label.la \
4054 libsystemd-internal.la \
4055 libsystemd-shared.la
4058 libsystemd_journal_core_la_LIBADD += \
4062 noinst_LTLIBRARIES += \
4063 libsystemd-journal-core.la
4065 journal-install-hook:
4066 -$(MKDIR_P) $(DESTDIR)/var/log/journal
4067 -chown 0:0 $(DESTDIR)/var/log/journal
4068 -chmod 755 $(DESTDIR)/var/log/journal
4069 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4070 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4072 journal-uninstall-hook:
4073 -rmdir $(DESTDIR)/var/log/journal/remote
4074 -rmdir $(DESTDIR)/var/log/journal/
4076 INSTALL_EXEC_HOOKS += journal-install-hook
4077 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4079 # ------------------------------------------------------------------------------
4080 # Update catalog on installation. Do not bother if installing
4081 # in DESTDIR, since this is likely for packaging purposes.
4082 catalog-update-hook:
4083 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4085 INSTALL_DATA_HOOKS += \
4088 catalog-remove-hook:
4089 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4091 UNINSTALL_DATA_HOOKS += \
4100 test-journal-syslog \
4101 test-journal-match \
4102 test-journal-stream \
4104 test-journal-verify \
4105 test-journal-interleaving \
4106 test-journal-flush \
4113 test-compress-benchmark
4116 pkginclude_HEADERS += \
4117 src/systemd/sd-journal.h \
4118 src/systemd/sd-messages.h \
4119 src/systemd/_sd-common.h
4121 libsystemd_journal_internal_la_SOURCES = \
4122 src/journal/sd-journal.c \
4123 src/systemd/sd-journal.h \
4124 src/systemd/_sd-common.h \
4125 src/journal/journal-file.c \
4126 src/journal/journal-file.h \
4127 src/journal/journal-vacuum.c \
4128 src/journal/journal-vacuum.h \
4129 src/journal/journal-verify.c \
4130 src/journal/journal-verify.h \
4131 src/journal/lookup3.c \
4132 src/journal/lookup3.h \
4133 src/journal/journal-send.c \
4134 src/journal/journal-def.h \
4135 src/journal/compress.h \
4136 src/journal/catalog.c \
4137 src/journal/catalog.h \
4138 src/journal/mmap-cache.c \
4139 src/journal/mmap-cache.h
4141 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4142 libsystemd_journal_internal_la_CFLAGS = \
4145 libsystemd_journal_internal_la_LIBADD =
4147 libsystemd_journal_internal_la_SOURCES += \
4148 src/journal/compress.c
4151 libsystemd_journal_internal_la_CFLAGS += \
4154 libsystemd_journal_internal_la_LIBADD += \
4159 libsystemd_journal_internal_la_LIBADD += \
4164 libsystemd_journal_internal_la_SOURCES += \
4165 src/journal/journal-authenticate.c \
4166 src/journal/journal-authenticate.h \
4167 src/journal/fsprg.c \
4170 libsystemd_journal_internal_la_LIBADD += \
4173 # fsprg.c is a drop-in file using void pointer arithmetic
4174 libsystemd_journal_internal_la_CFLAGS += \
4179 noinst_LTLIBRARIES += \
4180 libsystemd-journal-internal.la
4182 rootlibexec_PROGRAMS += \
4185 rootbin_PROGRAMS += \
4191 dist_systemunit_DATA += \
4192 units/systemd-journald.socket \
4193 units/systemd-journald-dev-log.socket
4195 nodist_systemunit_DATA += \
4196 units/systemd-journald.service \
4197 units/systemd-journal-flush.service \
4198 units/systemd-journal-catalog-update.service
4200 dist_pkgsysconf_DATA += \
4201 src/journal/journald.conf
4203 dist_catalog_DATA = \
4204 catalog/systemd.fr.catalog \
4205 catalog/systemd.it.catalog \
4206 catalog/systemd.pl.catalog \
4207 catalog/systemd.ru.catalog \
4208 catalog/systemd.catalog
4210 SOCKETS_TARGET_WANTS += \
4211 systemd-journald.socket \
4212 systemd-journald-dev-log.socket
4214 SYSINIT_TARGET_WANTS += \
4215 systemd-journald.service \
4216 systemd-journal-flush.service \
4217 systemd-journal-catalog-update.service
4220 units/systemd-journald.service.in \
4221 units/systemd-journal-flush.service.in \
4222 units/systemd-journal-catalog-update.service.in \
4223 src/journal/journald-gperf.gperf
4226 src/journal/journald-gperf.c
4228 # ------------------------------------------------------------------------------
4230 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4232 rootlibexec_PROGRAMS += \
4233 systemd-journal-gatewayd
4235 systemd_journal_gatewayd_SOURCES = \
4236 src/journal-remote/journal-gatewayd.c \
4237 src/journal-remote/microhttpd-util.h \
4238 src/journal-remote/microhttpd-util.c
4240 systemd_journal_gatewayd_LDADD = \
4241 libsystemd-logs.la \
4242 libsystemd-journal-internal.la \
4243 libsystemd-internal.la \
4244 libsystemd-shared.la \
4248 systemd_journal_gatewayd_LDADD += \
4252 systemd_journal_gatewayd_CFLAGS = \
4254 $(MICROHTTPD_CFLAGS)
4256 systemd_journal_gatewayd_CPPFLAGS = \
4258 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4260 dist_systemunit_DATA += \
4261 units/systemd-journal-gatewayd.socket
4263 nodist_systemunit_DATA += \
4264 units/systemd-journal-gatewayd.service
4266 dist_gatewayddocumentroot_DATA = \
4267 src/journal-remote/browse.html
4272 units/systemd-journal-gatewayd.service.in
4274 # ------------------------------------------------------------------------------
4276 systemd_socket_proxyd_SOURCES = \
4277 src/socket-proxy/socket-proxyd.c
4279 systemd_socket_proxyd_LDADD = \
4280 libsystemd-logs.la \
4281 libsystemd-internal.la \
4282 libsystemd-journal-internal.la \
4283 libsystemd-shared.la \
4284 libsystemd-resolve.la
4286 # ------------------------------------------------------------------------------
4288 systemd_coredump_SOURCES = \
4289 src/journal/coredump.c \
4290 src/journal/coredump-vacuum.c \
4291 src/journal/coredump-vacuum.h
4293 systemd_coredump_LDADD = \
4294 libsystemd-journal-internal.la \
4295 libsystemd-label.la \
4296 libsystemd-internal.la \
4297 libsystemd-shared.la
4300 systemd_coredump_SOURCES += \
4301 src/journal/stacktrace.c \
4302 src/journal/stacktrace.h
4304 systemd_coredump_LDADD += \
4308 rootlibexec_PROGRAMS += \
4311 dist_pkgsysconf_DATA += \
4312 src/journal/coredump.conf
4315 systemd_coredump_LDADD += \
4319 coredumpctl_SOURCES = \
4320 src/journal/coredumpctl.c
4322 coredumpctl_LDADD = \
4323 libsystemd-journal-internal.la \
4324 libsystemd-internal.la \
4325 libsystemd-shared.la
4331 test-coredump-vacuum
4333 test_coredump_vacuum_SOURCES = \
4334 src/journal/test-coredump-vacuum.c \
4335 src/journal/coredump-vacuum.c \
4336 src/journal/coredump-vacuum.h
4338 test_coredump_vacuum_LDADD = \
4339 libsystemd-internal.la \
4340 libsystemd-shared.la
4342 dist_bashcompletion_DATA += \
4343 shell-completion/bash/coredumpctl
4345 dist_zshcompletion_DATA += \
4346 shell-completion/zsh/_coredumpctl
4349 sysctl.d/50-coredump.conf
4352 sysctl.d/50-coredump.conf
4356 sysctl.d/50-coredump.conf.in
4358 # ------------------------------------------------------------------------------
4360 systemd_binfmt_SOURCES = \
4363 systemd_binfmt_LDADD = \
4364 libsystemd-shared.la
4366 rootlibexec_PROGRAMS += \
4369 dist_systemunit_DATA += \
4370 units/proc-sys-fs-binfmt_misc.automount \
4371 units/proc-sys-fs-binfmt_misc.mount
4373 nodist_systemunit_DATA += \
4374 units/systemd-binfmt.service
4377 $(prefix)/lib/binfmt.d \
4378 $(sysconfdir)/binfmt.d
4380 SYSINIT_TARGET_WANTS += \
4381 systemd-binfmt.service \
4382 proc-sys-fs-binfmt_misc.automount
4387 units/systemd-binfmt.service.in
4389 # ------------------------------------------------------------------------------
4391 systemd_vconsole_setup_SOURCES = \
4392 src/vconsole/vconsole-setup.c
4394 systemd_vconsole_setup_LDADD = \
4395 libsystemd-shared.la
4397 rootlibexec_PROGRAMS += \
4398 systemd-vconsole-setup
4400 nodist_systemunit_DATA += \
4401 units/systemd-vconsole-setup.service
4403 SYSINIT_TARGET_WANTS += \
4404 systemd-vconsole-setup.service
4408 units/systemd-vconsole-setup.service.in
4410 # ------------------------------------------------------------------------------
4412 systemd_bootchart_SOURCES = \
4413 src/bootchart/bootchart.c \
4414 src/bootchart/bootchart.h \
4415 src/bootchart/store.c \
4416 src/bootchart/store.h \
4417 src/bootchart/svg.c \
4420 systemd_bootchart_LDADD = \
4421 libsystemd-journal-internal.la \
4422 libsystemd-shared.la
4424 rootlibexec_PROGRAMS += \
4427 dist_pkgsysconf_DATA += \
4428 src/bootchart/bootchart.conf
4431 # ------------------------------------------------------------------------------
4432 if ENABLE_QUOTACHECK
4433 rootlibexec_PROGRAMS += \
4436 nodist_systemunit_DATA += \
4437 units/systemd-quotacheck.service
4439 systemd_quotacheck_SOURCES = \
4440 src/quotacheck/quotacheck.c
4442 systemd_quotacheck_LDADD = \
4443 libsystemd-shared.la
4447 units/systemd-quotacheck.service.in
4449 nodist_systemunit_DATA += \
4450 units/quotaon.service
4452 # ------------------------------------------------------------------------------
4453 if ENABLE_RANDOMSEED
4454 rootlibexec_PROGRAMS += \
4457 nodist_systemunit_DATA += \
4458 units/systemd-random-seed.service
4460 systemd_random_seed_SOURCES = \
4461 src/random-seed/random-seed.c
4463 systemd_random_seed_LDADD = \
4464 libsystemd-label.la \
4465 libsystemd-shared.la
4467 SYSINIT_TARGET_WANTS += \
4468 systemd-random-seed.service
4473 units/systemd-random-seed.service.in
4475 # ------------------------------------------------------------------------------
4477 rootlibexec_PROGRAMS += \
4480 nodist_systemunit_DATA += \
4481 units/systemd-backlight@.service
4483 systemd_backlight_SOURCES = \
4484 src/backlight/backlight.c
4486 systemd_backlight_LDADD = \
4487 libsystemd-label.la \
4488 libudev-internal.la \
4489 libsystemd-shared.la
4493 units/systemd-backlight@.service.in
4495 # ------------------------------------------------------------------------------
4497 rootlibexec_PROGRAMS += \
4500 nodist_systemunit_DATA += \
4501 units/systemd-rfkill@.service
4503 systemd_rfkill_SOURCES = \
4506 systemd_rfkill_LDADD = \
4507 libsystemd-label.la \
4508 libudev-internal.la \
4509 libsystemd-shared.la
4513 units/systemd-rfkill@.service.in
4515 # ------------------------------------------------------------------------------
4516 if HAVE_LIBCRYPTSETUP
4517 rootlibexec_PROGRAMS += \
4520 systemgenerator_PROGRAMS += \
4521 systemd-cryptsetup-generator
4523 dist_systemunit_DATA += \
4524 units/cryptsetup.target \
4525 units/cryptsetup-pre.target
4527 systemd_cryptsetup_SOURCES = \
4528 src/cryptsetup/cryptsetup.c
4530 systemd_cryptsetup_CFLAGS = \
4532 $(LIBCRYPTSETUP_CFLAGS)
4534 systemd_cryptsetup_LDADD = \
4535 libsystemd-label.la \
4536 libudev-internal.la \
4537 libsystemd-shared.la \
4538 $(LIBCRYPTSETUP_LIBS)
4540 systemd_cryptsetup_generator_SOURCES = \
4541 src/cryptsetup/cryptsetup-generator.c
4543 systemd_cryptsetup_generator_LDADD = \
4544 libsystemd-label.la \
4545 libsystemd-shared.la
4547 SYSINIT_TARGET_WANTS += \
4552 # ------------------------------------------------------------------------------
4554 systemd_hostnamed_SOURCES = \
4555 src/hostname/hostnamed.c
4557 systemd_hostnamed_LDADD = \
4558 libsystemd-label.la \
4559 libsystemd-internal.la \
4560 libsystemd-shared.la
4562 rootlibexec_PROGRAMS += \
4565 nodist_systemunit_DATA += \
4566 units/systemd-hostnamed.service
4568 dist_systemunit_DATA_busnames += \
4569 units/org.freedesktop.hostname1.busname
4571 dist_dbuspolicy_DATA += \
4572 src/hostname/org.freedesktop.hostname1.conf
4574 dist_dbussystemservice_DATA += \
4575 src/hostname/org.freedesktop.hostname1.service
4577 polkitpolicy_files += \
4578 src/hostname/org.freedesktop.hostname1.policy
4580 SYSTEM_UNIT_ALIASES += \
4581 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4583 BUSNAMES_TARGET_WANTS += \
4584 org.freedesktop.hostname1.busname
4586 hostnamectl_SOURCES = \
4587 src/hostname/hostnamectl.c
4589 hostnamectl_LDADD = \
4590 libsystemd-internal.la \
4591 libsystemd-shared.la
4596 dist_bashcompletion_DATA += \
4597 shell-completion/bash/hostnamectl
4599 dist_zshcompletion_DATA += \
4600 shell-completion/zsh/_hostnamectl
4604 polkitpolicy_in_files += \
4605 src/hostname/org.freedesktop.hostname1.policy.in
4608 units/systemd-hostnamed.service.in
4610 # ------------------------------------------------------------------------------
4611 dist_systemunit_DATA_busnames += \
4612 units/org.freedesktop.systemd1.busname
4614 BUSNAMES_TARGET_WANTS += \
4615 org.freedesktop.systemd1.busname
4617 # ------------------------------------------------------------------------------
4619 systemd_localed_SOURCES = \
4620 src/locale/localed.c
4622 systemd_localed_LDADD = \
4623 libsystemd-label.la \
4624 libsystemd-internal.la \
4625 libsystemd-shared.la
4627 nodist_systemunit_DATA += \
4628 units/systemd-localed.service
4630 dist_systemunit_DATA_busnames += \
4631 units/org.freedesktop.locale1.busname
4633 rootlibexec_PROGRAMS += \
4636 dist_dbuspolicy_DATA += \
4637 src/locale/org.freedesktop.locale1.conf
4639 dist_dbussystemservice_DATA += \
4640 src/locale/org.freedesktop.locale1.service
4642 polkitpolicy_files += \
4643 src/locale/org.freedesktop.locale1.policy
4645 SYSTEM_UNIT_ALIASES += \
4646 systemd-localed.service dbus-org.freedesktop.locale1.service
4648 BUSNAMES_TARGET_WANTS += \
4649 org.freedesktop.locale1.busname
4651 dist_pkgdata_DATA += \
4652 src/locale/kbd-model-map
4654 dist_noinst_SCRIPT = \
4655 src/locale/generate-kbd-model-map
4657 localectl_SOURCES = \
4658 src/locale/localectl.c
4661 libsystemd-internal.la \
4662 libsystemd-shared.la
4667 dist_bashcompletion_DATA += \
4668 shell-completion/bash/localectl
4670 dist_zshcompletion_DATA += \
4671 shell-completion/zsh/_localectl
4675 .PHONY: update-kbd-model-map
4677 polkitpolicy_in_files += \
4678 src/locale/org.freedesktop.locale1.policy.in
4681 units/systemd-localed.service.in
4683 # ------------------------------------------------------------------------------
4685 systemd_timedated_SOURCES = \
4686 src/timedate/timedated.c
4688 systemd_timedated_LDADD = \
4689 libsystemd-label.la \
4690 libsystemd-internal.la \
4691 libsystemd-shared.la
4693 rootlibexec_PROGRAMS += \
4696 dist_dbussystemservice_DATA += \
4697 src/timedate/org.freedesktop.timedate1.service
4699 dist_dbuspolicy_DATA += \
4700 src/timedate/org.freedesktop.timedate1.conf
4702 nodist_systemunit_DATA += \
4703 units/systemd-timedated.service
4705 dist_systemunit_DATA_busnames += \
4706 units/org.freedesktop.timedate1.busname
4708 polkitpolicy_files += \
4709 src/timedate/org.freedesktop.timedate1.policy
4711 SYSTEM_UNIT_ALIASES += \
4712 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4714 BUSNAMES_TARGET_WANTS += \
4715 org.freedesktop.timedate1.busname
4717 timedatectl_SOURCES = \
4718 src/timedate/timedatectl.c
4720 timedatectl_LDADD = \
4721 libsystemd-internal.la \
4722 libsystemd-shared.la
4727 dist_bashcompletion_DATA += \
4728 shell-completion/bash/timedatectl
4730 dist_zshcompletion_DATA += \
4731 shell-completion/zsh/_timedatectl
4734 polkitpolicy_in_files += \
4735 src/timedate/org.freedesktop.timedate1.policy.in
4738 units/systemd-timedated.service.in
4740 # ------------------------------------------------------------------------------
4742 systemd_timesyncd_SOURCES = \
4743 src/timesync/timesyncd.c \
4744 src/timesync/timesyncd-manager.c \
4745 src/timesync/timesyncd-manager.h \
4746 src/timesync/timesyncd-conf.c \
4747 src/timesync/timesyncd-conf.h \
4748 src/timesync/timesyncd-server.c \
4749 src/timesync/timesyncd-server.h
4751 nodist_systemd_timesyncd_SOURCES = \
4752 src/timesync/timesyncd-gperf.c
4755 src/timesync/timesyncd-gperf.gperf
4758 src/timesync/timesyncd-gperf.c
4760 systemd_timesyncd_LDADD = \
4761 libsystemd-resolve.la \
4762 libsystemd-network.la \
4763 libsystemd-label.la \
4764 libsystemd-capability.la \
4765 libsystemd-internal.la \
4766 libsystemd-shared.la \
4769 rootlibexec_PROGRAMS += \
4772 nodist_systemunit_DATA += \
4773 units/systemd-timesyncd.service
4775 GENERAL_ALIASES += \
4776 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
4779 units/systemd-timesyncd.service.in
4781 nodist_pkgsysconf_DATA += \
4782 src/timesync/timesyncd.conf
4785 src/timesync/timesyncd.conf.in
4788 src/timesync/timesyncd.conf
4791 # ------------------------------------------------------------------------------
4793 libnss_myhostname_la_SOURCES = \
4794 src/nss-myhostname/nss-myhostname.sym \
4795 src/nss-myhostname/nss-myhostname.c
4797 libnss_myhostname_la_LDFLAGS = \
4804 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
4806 libnss_myhostname_la_LIBADD = \
4807 libsystemd-shared.la \
4808 libsystemd-internal.la
4810 lib_LTLIBRARIES += \
4811 libnss_myhostname.la
4814 # ------------------------------------------------------------------------------
4816 systemd_machined_SOURCES = \
4817 src/machine/machined.c \
4818 src/machine/machined.h
4820 systemd_machined_LDADD = \
4821 libsystemd-machine-core.la
4823 rootlibexec_PROGRAMS += \
4826 libsystemd_machine_core_la_SOURCES = \
4827 src/machine/machined-dbus.c \
4828 src/machine/machine.c \
4829 src/machine/machine.h \
4830 src/machine/machine-dbus.c
4832 libsystemd_machine_core_la_LIBADD = \
4833 libsystemd-label.la \
4834 libsystemd-internal.la \
4835 libudev-internal.la \
4836 libsystemd-shared.la
4838 noinst_LTLIBRARIES += \
4839 libsystemd-machine-core.la
4841 machinectl_SOURCES = \
4842 src/machine/machinectl.c
4844 machinectl_LDADD = \
4845 libsystemd-internal.la \
4846 libsystemd-shared.la
4848 rootbin_PROGRAMS += \
4851 dist_bashcompletion_DATA += \
4852 shell-completion/bash/machinectl
4854 test_machine_tables_SOURCES = \
4855 src/machine/test-machine-tables.c
4857 test_machine_tables_LDADD = \
4858 libsystemd-machine-core.la
4863 nodist_systemunit_DATA += \
4864 units/systemd-machined.service
4866 dist_systemunit_DATA += \
4869 dist_systemunit_DATA_busnames += \
4870 units/org.freedesktop.machine1.busname
4872 dist_dbussystemservice_DATA += \
4873 src/machine/org.freedesktop.machine1.service
4875 dist_dbuspolicy_DATA += \
4876 src/machine/org.freedesktop.machine1.conf
4878 dist_zshcompletion_DATA += \
4879 shell-completion/zsh/_machinectl \
4880 shell-completion/zsh/_sd_machines
4882 SYSTEM_UNIT_ALIASES += \
4883 systemd-machined.service dbus-org.freedesktop.machine1.service
4885 BUSNAMES_TARGET_WANTS += \
4886 org.freedesktop.machine1.busname
4889 units/systemd-machined.service.in
4891 libnss_mymachines_la_SOURCES = \
4892 src/nss-mymachines/nss-mymachines.sym \
4893 src/nss-mymachines/nss-mymachines.c
4895 libnss_mymachines_la_LDFLAGS = \
4902 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
4904 libnss_mymachines_la_LIBADD = \
4905 libsystemd-shared.la \
4906 libsystemd-internal.la
4908 lib_LTLIBRARIES += \
4909 libnss_mymachines.la
4912 # ------------------------------------------------------------------------------
4914 systemd_resolved_SOURCES = \
4915 src/resolve/resolved.c \
4916 src/resolve/resolved-manager.c \
4917 src/resolve/resolved-manager.h \
4918 src/resolve/resolved-conf.c \
4919 src/resolve/resolved-conf.h \
4920 src/resolve/resolved-bus.c \
4921 src/resolve/resolved-bus.h \
4922 src/resolve/resolved-link.h \
4923 src/resolve/resolved-link.c \
4924 src/resolve/resolved-def.h \
4925 src/resolve/resolved-dns-domain.h \
4926 src/resolve/resolved-dns-domain.c \
4927 src/resolve/resolved-dns-rr.h \
4928 src/resolve/resolved-dns-rr.c \
4929 src/resolve/resolved-dns-question.h \
4930 src/resolve/resolved-dns-question.c \
4931 src/resolve/resolved-dns-answer.h \
4932 src/resolve/resolved-dns-answer.c \
4933 src/resolve/resolved-dns-packet.h \
4934 src/resolve/resolved-dns-packet.c \
4935 src/resolve/resolved-dns-query.h \
4936 src/resolve/resolved-dns-query.c \
4937 src/resolve/resolved-dns-transaction.h \
4938 src/resolve/resolved-dns-transaction.c \
4939 src/resolve/resolved-dns-scope.h \
4940 src/resolve/resolved-dns-scope.c \
4941 src/resolve/resolved-dns-server.h \
4942 src/resolve/resolved-dns-server.c \
4943 src/resolve/resolved-dns-cache.h \
4944 src/resolve/resolved-dns-cache.c \
4945 src/resolve/resolved-dns-zone.h \
4946 src/resolve/resolved-dns-zone.c \
4947 src/resolve/resolved-dns-stream.h \
4948 src/resolve/resolved-dns-stream.c \
4949 src/resolve/dns-type.c \
4950 src/resolve/dns-type.h \
4951 src/resolve/dns_type-from-name.h \
4952 src/resolve/dns_type-to-name.h
4954 nodist_systemd_resolved_SOURCES = \
4955 src/resolve/resolved-gperf.c
4958 src/resolve/resolved-gperf.gperf \
4959 src/resolve/dns_type-from-name.gperf
4962 src/resolve/resolved-gperf.c
4964 systemd_resolved_LDADD = \
4965 libsystemd-capability.la \
4966 libsystemd-network.la \
4967 libsystemd-label.la \
4968 libsystemd-internal.la \
4969 libsystemd-shared.la \
4973 rootlibexec_PROGRAMS += \
4976 nodist_systemunit_DATA += \
4977 units/systemd-resolved.service
4979 dist_systemunit_DATA_busnames += \
4980 units/org.freedesktop.resolve1.busname
4982 dist_dbuspolicy_DATA += \
4983 src/resolve/org.freedesktop.resolve1.conf
4985 dist_dbussystemservice_DATA += \
4986 src/resolve/org.freedesktop.resolve1.service
4989 units/systemd-resolved.service.in
4991 SYSTEM_UNIT_ALIASES += \
4992 systemd-resolved.service dbus-org.freedesktop.resolve1.service
4994 BUSNAMES_TARGET_WANTS += \
4995 org.freedesktop.resolve1.busname
4997 GENERAL_ALIASES += \
4998 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
5000 nodist_pkgsysconf_DATA += \
5001 src/resolve/resolved.conf
5004 src/resolve/resolved.conf.in
5007 src/resolve/resolved.conf
5012 test_dns_domain_SOURCES = \
5013 src/resolve/resolved-dns-domain.h \
5014 src/resolve/resolved-dns-domain.c \
5015 src/resolve/test-dns-domain.c
5017 test_dns_domain_LDADD = \
5018 libsystemd-capability.la \
5019 libsystemd-network.la \
5020 libsystemd-label.la \
5021 libsystemd-internal.la \
5022 libsystemd-shared.la \
5025 libnss_resolve_la_SOURCES = \
5026 src/nss-resolve/nss-resolve.sym \
5027 src/nss-resolve/nss-resolve.c
5029 libnss_resolve_la_LDFLAGS = \
5036 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
5038 libnss_resolve_la_LIBADD = \
5039 libsystemd-shared.la \
5040 libsystemd-internal.la
5042 lib_LTLIBRARIES += \
5045 systemd_resolve_host_SOURCES = \
5046 src/resolve-host/resolve-host.c \
5047 src/resolve/resolved-dns-packet.c \
5048 src/resolve/resolved-dns-packet.h \
5049 src/resolve/resolved-dns-rr.c \
5050 src/resolve/resolved-dns-rr.h \
5051 src/resolve/resolved-dns-answer.c \
5052 src/resolve/resolved-dns-answer.h \
5053 src/resolve/resolved-dns-question.c \
5054 src/resolve/resolved-dns-question.h \
5055 src/resolve/resolved-dns-domain.c \
5056 src/resolve/resolved-dns-domain.h \
5057 src/resolve/dns-type.c \
5058 src/resolve/dns-type.h \
5059 src/resolve/dns_type-from-name.h \
5060 src/resolve/dns_type-to-name.h
5062 systemd_resolve_host_LDADD = \
5063 libsystemd-internal.la \
5064 libsystemd-shared.la \
5068 rootlibexec_PROGRAMS += \
5069 systemd-resolve-host
5073 # ------------------------------------------------------------------------------
5075 rootlibexec_PROGRAMS += \
5078 systemd_networkd_SOURCES = \
5079 src/network/networkd.c
5081 systemd_networkd_LDADD = \
5082 libsystemd-networkd-core.la \
5083 libsystemd-capability.la
5085 noinst_LTLIBRARIES += \
5086 libsystemd-networkd-core.la
5088 libsystemd_networkd_core_la_CFLAGS = \
5091 libsystemd_networkd_core_la_SOURCES = \
5092 src/libsystemd-network/network-internal.h \
5093 src/network/networkd.h \
5094 src/network/networkd-link.h \
5095 src/network/networkd-netdev.h \
5096 src/network/networkd-netdev-tunnel.h \
5097 src/network/networkd-netdev-veth.h \
5098 src/network/networkd-netdev-vxlan.h \
5099 src/network/networkd-netdev-vlan.h \
5100 src/network/networkd-netdev-macvlan.h \
5101 src/network/networkd-netdev-dummy.h \
5102 src/network/networkd-netdev-tuntap.h \
5103 src/network/networkd-netdev-bond.h \
5104 src/network/networkd-netdev-bridge.h \
5105 src/network/networkd-netdev.c \
5106 src/network/networkd-netdev-tunnel.c \
5107 src/network/networkd-netdev-veth.c \
5108 src/network/networkd-netdev-vxlan.c \
5109 src/network/networkd-netdev-vlan.c \
5110 src/network/networkd-netdev-macvlan.c \
5111 src/network/networkd-netdev-dummy.c \
5112 src/network/networkd-netdev-tuntap.c \
5113 src/network/networkd-netdev-bond.c \
5114 src/network/networkd-netdev-bridge.c \
5115 src/network/networkd-link.c \
5116 src/network/networkd-ipv4ll.c \
5117 src/network/networkd-dhcp4.c \
5118 src/network/networkd-network.c \
5119 src/network/networkd-address.c \
5120 src/network/networkd-route.c \
5121 src/network/networkd-manager.c \
5122 src/network/networkd-address-pool.c
5124 nodist_libsystemd_networkd_core_la_SOURCES = \
5125 src/network/networkd-network-gperf.c \
5126 src/network/networkd-netdev-gperf.c
5128 libsystemd_networkd_core_la_LIBADD = \
5129 libudev-internal.la \
5130 libsystemd-internal.la \
5131 libsystemd-network.la \
5132 libsystemd-label.la \
5133 libsystemd-shared.la
5135 rootlibexec_PROGRAMS += \
5136 systemd-networkd-wait-online
5138 systemd_networkd_wait_online_CFLAGS = \
5141 systemd_networkd_wait_online_SOURCES = \
5142 src/libsystemd-network/network-internal.h \
5143 src/network/networkd-wait-online.h \
5144 src/network/networkd-wait-online-link.h \
5145 src/network/networkd-wait-online.c \
5146 src/network/networkd-wait-online-manager.c \
5147 src/network/networkd-wait-online-link.c
5149 systemd_networkd_wait_online_LDADD = \
5150 libsystemd-network.la \
5151 libudev-internal.la \
5152 libsystemd-internal.la \
5153 libsystemd-shared.la
5155 rootbin_PROGRAMS += \
5158 networkctl_SOURCES = \
5159 src/network/networkctl.c
5161 networkctl_LDADD = \
5162 libsystemd-internal.la \
5163 libudev-internal.la \
5164 libsystemd-shared.la \
5165 libsystemd-network.la
5167 test_network_SOURCES = \
5168 src/network/test-network.c
5170 test_network_CFLAGS = \
5173 test_network_LDADD = \
5174 libsystemd-networkd-core.la
5176 test_network_tables_SOURCES = \
5177 src/network/test-network-tables.c \
5178 src/shared/test-tables.h
5180 test_network_tables_LDADD = \
5181 libsystemd-networkd-core.la \
5188 nodist_systemunit_DATA += \
5189 units/systemd-networkd.service \
5190 units/systemd-networkd-wait-online.service
5192 GENERAL_ALIASES += \
5193 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5194 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5197 src/network/networkd-network-gperf.gperf \
5198 src/network/networkd-netdev-gperf.gperf \
5199 units/systemd-networkd.service.in \
5200 units/systemd-networkd-wait-online.service.in
5203 src/network/networkd-network-gperf.c \
5204 src/network/networkd-netdev-gperf.c
5207 # ------------------------------------------------------------------------------
5209 systemd_logind_SOURCES = \
5210 src/login/logind.c \
5213 nodist_systemd_logind_SOURCES = \
5214 src/login/logind-gperf.c
5216 systemd_logind_LDADD = \
5217 libsystemd-logind-core.la
5219 libsystemd_logind_core_la_SOURCES = \
5220 src/login/logind-core.c \
5221 src/login/logind-device.c \
5222 src/login/logind-device.h \
5223 src/login/logind-button.c \
5224 src/login/logind-button.h \
5225 src/login/logind-action.c \
5226 src/login/logind-action.h \
5227 src/login/logind-seat.c \
5228 src/login/logind-seat.h \
5229 src/login/logind-session.c \
5230 src/login/logind-session.h \
5231 src/login/logind-session-device.c \
5232 src/login/logind-session-device.h \
5233 src/login/logind-user.c \
5234 src/login/logind-user.h \
5235 src/login/logind-inhibit.c \
5236 src/login/logind-inhibit.h \
5237 src/login/logind-dbus.c \
5238 src/login/logind-session-dbus.c \
5239 src/login/logind-seat-dbus.c \
5240 src/login/logind-user-dbus.c \
5241 src/login/logind-acl.h
5243 libsystemd_logind_core_la_LIBADD = \
5244 libsystemd-label.la \
5245 libsystemd-capability.la \
5246 libsystemd-internal.la \
5247 libudev-internal.la \
5248 libsystemd-shared.la
5251 libsystemd_logind_core_la_SOURCES += \
5252 src/login/logind-acl.c
5254 libsystemd_logind_core_la_LIBADD += \
5258 noinst_LTLIBRARIES += \
5259 libsystemd-logind-core.la
5261 systemd_user_sessions_SOURCES = \
5262 src/login/user-sessions.c
5264 systemd_user_sessions_LDADD = \
5265 libsystemd-shared.la
5267 rootlibexec_PROGRAMS += \
5269 systemd-user-sessions
5271 loginctl_SOURCES = \
5272 src/login/loginctl.c \
5273 src/login/sysfs-show.c
5276 libsystemd-internal.la \
5277 libudev-internal.la \
5278 libsystemd-shared.la
5280 rootbin_PROGRAMS += \
5283 dist_bashcompletion_DATA += \
5284 shell-completion/bash/loginctl
5286 dist_zshcompletion_DATA += \
5287 shell-completion/zsh/_loginctl \
5288 shell-completion/zsh/_systemd-inhibit
5290 systemd_inhibit_SOURCES = \
5293 systemd_inhibit_LDADD = \
5294 libsystemd-internal.la \
5295 libsystemd-shared.la
5297 rootbin_PROGRAMS += \
5300 test_login_SOURCES = \
5301 src/libsystemd/sd-login/test-login.c
5303 test_login_LDADD = \
5304 libsystemd-internal.la \
5305 libsystemd-shared.la
5307 test_login_shared_SOURCES = \
5308 src/login/test-login-shared.c
5310 test_login_shared_LDADD = \
5311 libsystemd-internal.la \
5312 libsystemd-shared.la
5314 test_inhibit_SOURCES = \
5315 src/login/test-inhibit.c
5317 test_inhibit_LDADD = \
5318 libsystemd-internal.la \
5319 libsystemd-shared.la
5321 test_login_tables_SOURCES = \
5322 src/login/test-login-tables.c
5324 test_login_tables_LDADD = \
5325 libsystemd-logind-core.la
5336 pam_systemd_la_SOURCES = \
5337 src/login/pam_systemd.sym \
5338 src/login/pam_systemd.c
5340 pam_systemd_la_CFLAGS = \
5345 pam_systemd_la_LDFLAGS = \
5351 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5353 pam_systemd_la_LIBADD = \
5354 libsystemd-capability.la \
5355 libsystemd-internal.la \
5356 libsystemd-shared.la \
5359 pamlib_LTLIBRARIES = \
5362 dist_pamconf_DATA = \
5363 src/login/systemd-user
5366 nodist_systemunit_DATA += \
5367 units/systemd-logind.service \
5368 units/systemd-user-sessions.service
5370 dist_systemunit_DATA += \
5373 dist_systemunit_DATA_busnames += \
5374 units/org.freedesktop.login1.busname
5376 dist_dbussystemservice_DATA += \
5377 src/login/org.freedesktop.login1.service
5379 dist_dbuspolicy_DATA += \
5380 src/login/org.freedesktop.login1.conf
5382 dist_pkgsysconf_DATA += \
5383 src/login/logind.conf
5385 polkitpolicy_files += \
5386 src/login/org.freedesktop.login1.policy
5391 MULTI_USER_TARGET_WANTS += \
5392 systemd-logind.service \
5393 systemd-user-sessions.service
5395 SYSTEM_UNIT_ALIASES += \
5396 systemd-logind.service dbus-org.freedesktop.login1.service
5398 BUSNAMES_TARGET_WANTS += \
5399 org.freedesktop.login1.busname
5401 if ENABLE_MULTI_SEAT_X
5403 systemd_multi_seat_x_SOURCES = \
5404 src/login/multi-seat-x.c
5406 systemd_multi_seat_x_LDADD = \
5407 libsystemd-label.la \
5408 libsystemd-shared.la
5410 rootlibexec_PROGRAMS += \
5411 systemd-multi-seat-x
5415 dist_udevrules_DATA += \
5416 src/login/70-uaccess.rules \
5417 src/login/70-power-switch.rules
5419 nodist_udevrules_DATA += \
5420 src/login/71-seat.rules \
5421 src/login/73-seat-late.rules
5424 src/login/logind-gperf.c \
5425 src/login/71-seat.rules \
5426 src/login/73-seat-late.rules
5429 polkitpolicy_in_files += \
5430 src/login/org.freedesktop.login1.policy.in
5433 src/login/logind-gperf.gperf \
5434 src/login/71-seat.rules.in \
5435 src/login/73-seat-late.rules.in \
5436 units/systemd-logind.service.in \
5437 units/systemd-user-sessions.service.in
5439 # ------------------------------------------------------------------------------
5440 if HAVE_PYTHON_DEVEL
5441 pkgpyexec_LTLIBRARIES = \
5448 _journal_la_SOURCES = \
5449 src/python-systemd/_journal.c
5451 _journal_la_CFLAGS = \
5453 -fvisibility=default \
5454 $(PYTHON_DEVEL_CFLAGS)
5456 _journal_la_LDFLAGS = \
5462 _journal_la_LIBADD = \
5463 $(PYTHON_DEVEL_LIBS) \
5466 id128_la_SOURCES = \
5467 src/python-systemd/id128.c \
5468 src/python-systemd/pyutil.c \
5469 src/python-systemd/pyutil.h
5471 nodist_id128_la_SOURCES = \
5472 src/python-systemd/id128-constants.h
5476 -fvisibility=default \
5477 $(PYTHON_DEVEL_CFLAGS) \
5478 -I$(top_builddir)/src/python-systemd
5480 id128_la_LDFLAGS = \
5487 $(PYTHON_DEVEL_LIBS) \
5488 libsystemd-shared.la \
5491 _daemon_la_SOURCES = \
5492 src/python-systemd/_daemon.c \
5493 src/python-systemd/pyutil.c \
5494 src/python-systemd/pyutil.h
5496 _daemon_la_CFLAGS = \
5498 -fvisibility=default \
5499 $(PYTHON_DEVEL_CFLAGS) \
5500 -I$(top_builddir)/src/python-systemd
5502 _daemon_la_LDFLAGS = \
5508 _daemon_la_LIBADD = \
5509 $(PYTHON_DEVEL_LIBS) \
5510 libsystemd-shared.la \
5513 _reader_la_SOURCES = \
5514 src/python-systemd/_reader.c \
5515 src/python-systemd/pyutil.c \
5516 src/python-systemd/pyutil.h
5518 _reader_la_CFLAGS = \
5520 -fvisibility=default \
5521 $(PYTHON_DEVEL_CFLAGS)
5523 _reader_la_LDFLAGS = \
5529 _reader_la_LIBADD = \
5530 $(PYTHON_DEVEL_LIBS) \
5531 libsystemd-shared.la \
5534 login_la_SOURCES = \
5535 src/python-systemd/login.c \
5536 src/python-systemd/pyutil.c \
5537 src/python-systemd/pyutil.h
5541 -fvisibility=default \
5542 $(PYTHON_DEVEL_CFLAGS)
5544 login_la_LDFLAGS = \
5551 $(PYTHON_DEVEL_LIBS) \
5552 libsystemd-shared.la \
5555 dist_pkgpyexec_PYTHON = \
5556 src/python-systemd/journal.py \
5557 src/python-systemd/daemon.py \
5558 src/python-systemd/__init__.py
5560 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
5561 $(AM_V_at)$(MKDIR_P) $(dir $@)
5562 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
5565 src/python-systemd/id128-constants.h
5567 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
5569 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
5570 $(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/
5571 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
5574 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
5575 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
5578 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
5579 $(MAKE) DESTDIR="$$dir" install && \
5580 $(MAKE) DESTDIR="$$dir" sphinx-html && \
5585 CLEAN_LOCAL_HOOKS += clean-sphinx
5587 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
5590 -rm -rf docs/html/python-systemd/
5592 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
5594 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
5595 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
5597 # ------------------------------------------------------------------------------
5598 if ENABLE_COMPAT_LIBS
5600 src/compat-libs/linkwarning.h
5602 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
5603 $(AM_V_at)$(MKDIR_P) $(dir $@)
5604 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
5607 libsystemd-journal.c \
5608 libsystemd-login.c \
5609 libsystemd-id128.c \
5612 libsystemd_journal_la_SOURCES = \
5613 libsystemd-journal.c \
5614 src/compat-libs/libsystemd-journal.sym
5616 libsystemd_journal_la_CPPFLAGS = \
5618 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5620 libsystemd_journal_la_LDFLAGS = \
5622 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
5623 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
5625 libsystemd_journal_la_LIBADD = \
5626 libsystemd-journal-internal.la \
5627 libsystemd-internal.la \
5628 libsystemd-shared.la
5630 libsystemd_login_la_SOURCES = \
5631 libsystemd-login.c \
5632 src/compat-libs/libsystemd-login.sym
5634 libsystemd_login_la_CPPFLAGS = \
5636 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5638 libsystemd_login_la_LDFLAGS = \
5640 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
5641 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
5643 libsystemd_login_la_LIBADD = \
5644 libsystemd-internal.la \
5645 libsystemd-shared.la
5647 libsystemd_id128_la_SOURCES = \
5648 libsystemd-id128.c \
5649 src/compat-libs/libsystemd-id128.sym
5651 libsystemd_id128_la_CPPFLAGS = \
5653 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5655 libsystemd_id128_la_LDFLAGS = \
5657 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
5658 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
5660 libsystemd_id128_la_LIBADD = \
5661 libsystemd-internal.la \
5662 libsystemd-shared.la
5664 libsystemd_daemon_la_SOURCES = \
5665 libsystemd-daemon.c \
5666 src/compat-libs/libsystemd-daemon.sym
5668 libsystemd_daemon_la_CPPFLAGS = \
5670 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5672 libsystemd_daemon_la_LDFLAGS = \
5674 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
5675 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
5677 libsystemd_daemon_la_LIBADD = \
5678 libsystemd-internal.la \
5679 libsystemd-shared.la
5681 lib_LTLIBRARIES += \
5682 libsystemd-journal.la \
5683 libsystemd-login.la \
5684 libsystemd-id128.la \
5685 libsystemd-daemon.la
5687 pkgconfiglib_DATA += \
5688 src/compat-libs/libsystemd-journal.pc \
5689 src/compat-libs/libsystemd-login.pc \
5690 src/compat-libs/libsystemd-id128.pc \
5691 src/compat-libs/libsystemd-daemon.pc
5693 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
5694 compat-lib-install-hook:
5695 libname=libsystemd-login.so && $(move-to-rootlibdir)
5696 libname=libsystemd-journal.so && $(move-to-rootlibdir)
5697 libname=libsystemd-id128.so && $(move-to-rootlibdir)
5698 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
5700 compat-lib-uninstall-hook:
5701 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
5702 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
5703 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
5704 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
5706 INSTALL_EXEC_HOOKS += compat-lib-install-hook
5707 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
5711 src/compat-libs/libsystemd-journal.pc.in \
5712 src/compat-libs/libsystemd-login.pc.in \
5713 src/compat-libs/libsystemd-id128.pc.in \
5714 src/compat-libs/libsystemd-daemon.pc.in
5716 # ------------------------------------------------------------------------------
5718 '|rootlibexecdir=$(rootlibexecdir)|' \
5719 '|rootbindir=$(rootbindir)|' \
5720 '|bindir=$(bindir)|' \
5721 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5722 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5723 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5724 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5725 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
5726 '|pkgdatadir=$(pkgdatadir)|' \
5727 '|systemunitdir=$(systemunitdir)|' \
5728 '|userunitdir=$(userunitdir)|' \
5729 '|systempresetdir=$(systempresetdir)|' \
5730 '|userpresetdir=$(userpresetdir)|' \
5731 '|udevhwdbdir=$(udevhwdbdir)|' \
5732 '|udevrulesdir=$(udevrulesdir)|' \
5733 '|catalogdir=$(catalogdir)|' \
5734 '|tmpfilesdir=$(tmpfilesdir)|' \
5735 '|sysusersdir=$(sysusersdir)|' \
5736 '|sysctldir=$(sysctldir)|' \
5737 '|systemgeneratordir=$(systemgeneratordir)|' \
5738 '|usergeneratordir=$(usergeneratordir)|' \
5739 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
5740 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
5741 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
5742 '|PACKAGE_URL=$(PACKAGE_URL)|' \
5743 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
5744 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
5745 '|prefix=$(prefix)|' \
5746 '|exec_prefix=$(exec_prefix)|' \
5747 '|libdir=$(libdir)|' \
5748 '|includedir=$(includedir)|' \
5749 '|VERSION=$(VERSION)|' \
5750 '|rootprefix=$(rootprefix)|' \
5751 '|udevlibexecdir=$(udevlibexecdir)|' \
5752 '|SUSHELL=$(SUSHELL)|' \
5753 '|DEBUGTTY=$(DEBUGTTY)|' \
5756 '|MKDIR_P=$(MKDIR_P)|' \
5757 '|QUOTAON=$(QUOTAON)|' \
5758 '|QUOTACHECK=$(QUOTACHECK)|' \
5759 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
5760 '|VARLOGDIR=$(varlogdir)|' \
5761 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
5762 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
5763 '|PYTHON=$(PYTHON)|' \
5764 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
5765 '|NTP_SERVERS=$(NTP_SERVERS)|' \
5766 '|DNS_SERVERS=$(DNS_SERVERS)|' \
5767 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
5768 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
5769 '|TTY_GID=$(TTY_GID)|' \
5770 '|systemsleepdir=$(systemsleepdir)|' \
5771 '|systemshutdowndir=$(systemshutdowndir)|' \
5772 '|binfmtdir=$(binfmtdir)|' \
5773 '|modulesloaddir=$(modulesloaddir)|'
5776 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
5777 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
5786 sysctl.d/%: sysctl.d/%.in
5795 src/core/macros.%: src/core/macros.%.in
5798 src/%.policy.in: src/%.policy.in.in
5801 shell-completion/%: shell-completion/%.in
5812 $(AM_V_GEN)chmod +x $@
5814 src/%.c: src/%.gperf
5815 $(AM_V_at)$(MKDIR_P) $(dir $@)
5816 $(AM_V_GPERF)$(GPERF) < $< > $@
5819 $(AM_V_at)$(MKDIR_P) $(dir $@)
5820 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5822 tmpfiles.d/%: tmpfiles.d/%.m4
5823 $(AM_V_at)$(MKDIR_P) $(dir $@)
5824 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5828 $(AM_V_at)$(MKDIR_P) $(dir $@)
5829 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
5831 units/user/%: units/%.m4
5832 $(AM_V_at)$(MKDIR_P) $(dir $@)
5833 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
5836 nodist_polkitpolicy_DATA = \
5837 $(polkitpolicy_files) \
5838 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
5842 $(polkitpolicy_in_files) \
5843 $(polkitpolicy_in_in_files)
5846 $(nodist_systemunit_DATA) \
5847 $(nodist_userunit_DATA) \
5848 $(pkgconfigdata_DATA) \
5849 $(pkgconfiglib_DATA) \
5850 $(nodist_polkitpolicy_DATA)
5852 # ------------------------------------------------------------------------------
5854 man/custom-entities.ent: configure.ac
5855 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
5856 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
5857 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
5861 man/custom-entities.ent
5866 --stringparam man.output.quietly 1 \
5867 --stringparam funcsynopsis.style ansi \
5868 --stringparam man.authors.section.enabled 0 \
5869 --stringparam man.copyright.section.enabled 0 \
5870 --stringparam systemd.version $(VERSION) \
5871 --path '$(builddir)/man:$(srcdir)/man'
5873 XSLTPROC_PROCESS_MAN = \
5874 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
5876 XSLTPROC_PROCESS_HTML = \
5877 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
5879 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
5880 $(XSLTPROC_PROCESS_MAN)
5882 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
5883 $(XSLTPROC_PROCESS_MAN)
5885 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
5886 $(XSLTPROC_PROCESS_MAN)
5888 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
5889 $(XSLTPROC_PROCESS_MAN)
5891 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
5892 $(XSLTPROC_PROCESS_MAN)
5894 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
5895 $(XSLTPROC_PROCESS_HTML)
5898 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
5904 man/custom-html.xsl \
5907 # ------------------------------------------------------------------------------
5910 docs/sysvinit/README
5915 docs/sysvinit/README: docs/sysvinit/README.in
5918 docs/var-log/README: docs/var-log/README.in
5922 docs/sysvinit/README \
5927 docs/sysvinit/README.in \
5928 docs/var-log/README.in
5930 SOCKETS_TARGET_WANTS += \
5931 systemd-initctl.socket \
5932 systemd-shutdownd.socket
5936 RUNLEVEL1_TARGET_WANTS += \
5937 systemd-update-utmp-runlevel.service
5938 RUNLEVEL2_TARGET_WANTS += \
5939 systemd-update-utmp-runlevel.service
5940 RUNLEVEL3_TARGET_WANTS += \
5941 systemd-update-utmp-runlevel.service
5942 RUNLEVEL4_TARGET_WANTS += \
5943 systemd-update-utmp-runlevel.service
5944 RUNLEVEL5_TARGET_WANTS += \
5945 systemd-update-utmp-runlevel.service
5948 SYSINIT_TARGET_WANTS += \
5949 systemd-update-utmp.service
5952 SYSINIT_TARGET_WANTS += \
5953 systemd-update-done.service
5955 LOCAL_FS_TARGET_WANTS += \
5956 systemd-remount-fs.service \
5959 MULTI_USER_TARGET_WANTS += \
5961 systemd-ask-password-wall.path
5963 SYSINIT_TARGET_WANTS += \
5964 dev-hugepages.mount \
5966 sys-kernel-config.mount \
5967 sys-kernel-debug.mount \
5968 sys-fs-fuse-connections.mount \
5969 systemd-sysctl.service \
5970 systemd-ask-password-console.path
5973 SYSTEM_UNIT_ALIASES += \
5974 poweroff.target runlevel0.target \
5975 rescue.target runlevel1.target \
5976 multi-user.target runlevel2.target \
5977 multi-user.target runlevel3.target \
5978 multi-user.target runlevel4.target \
5979 graphical.target runlevel5.target \
5980 reboot.target runlevel6.target
5983 SYSTEM_UNIT_ALIASES += \
5984 graphical.target default.target \
5985 reboot.target ctrl-alt-del.target \
5986 getty@.service autovt@.service
5988 USER_UNIT_ALIASES += \
5989 $(systemunitdir)/shutdown.target shutdown.target \
5990 $(systemunitdir)/sockets.target sockets.target \
5991 $(systemunitdir)/timers.target timers.target \
5992 $(systemunitdir)/paths.target paths.target \
5993 $(systemunitdir)/bluetooth.target bluetooth.target \
5994 $(systemunitdir)/printer.target printer.target \
5995 $(systemunitdir)/sound.target sound.target \
5996 $(systemunitdir)/smartcard.target smartcard.target
5999 USER_UNIT_ALIASES += \
6000 $(systemunitdir)/busnames.target busnames.target
6003 GENERAL_ALIASES += \
6004 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
6005 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
6006 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
6007 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
6011 $(systemunitdir)/runlevel1.target.wants \
6012 $(systemunitdir)/runlevel2.target.wants \
6013 $(systemunitdir)/runlevel3.target.wants \
6014 $(systemunitdir)/runlevel4.target.wants \
6015 $(systemunitdir)/runlevel5.target.wants
6019 $(prefix)/lib/modules-load.d \
6020 $(sysconfdir)/modules-load.d \
6021 $(prefix)/lib/systemd/network \
6022 $(sysconfdir)/systemd/network \
6023 $(prefix)/lib/sysctl.d \
6024 $(sysconfdir)/sysctl.d \
6025 $(prefix)/lib/kernel/install.d \
6026 $(sysconfdir)/kernel/install.d \
6027 $(systemshutdowndir) \
6029 $(systemgeneratordir) \
6030 $(usergeneratordir) \
6033 $(pkgsysconfdir)/system \
6034 $(pkgsysconfdir)/system/multi-user.target.wants \
6035 $(pkgsysconfdir)/system/getty.target.wants \
6036 $(pkgsysconfdir)/user \
6037 $(dbussessionservicedir) \
6038 $(sysconfdir)/xdg/systemd
6040 install-exec-hook: $(INSTALL_EXEC_HOOKS)
6042 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
6044 install-data-hook: $(INSTALL_DATA_HOOKS)
6046 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
6048 clean-local: $(CLEAN_LOCAL_HOOKS)
6049 rm -rf $(abs_srcdir)/install-tree
6050 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
6051 $(abs_srcdir)/hwdb/iab.txt
6053 DISTCHECK_CONFIGURE_FLAGS = \
6054 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
6055 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6056 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
6057 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
6058 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
6059 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
6060 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
6061 --with-rootprefix=$$dc_install_base \
6062 --disable-split-usr \
6064 --enable-compat-libs
6067 DISTCHECK_CONFIGURE_FLAGS += \
6068 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
6069 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
6071 DISTCHECK_CONFIGURE_FLAGS += \
6072 --with-sysvinit-path= \
6073 --with-sysvrcnd-path=
6077 DISTCHECK_CONFIGURE_FLAGS += \
6082 DISTCHECK_CONFIGURE_FLAGS += \
6087 # Require python when making dist
6089 .PHONY: dist-check-python
6092 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
6096 dist-check-compat-libs:
6097 if !ENABLE_COMPAT_LIBS
6098 @echo "*** compat-libs must be enabled in order to make dist"
6102 dist: dist-check-python dist-check-compat-libs
6104 # check "broken" platforms limited toolchains for link breakage before we release
6107 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
6111 ( cd $(top_srcdir)/hwdb && \
6112 wget -N http://www.linux-usb.org/usb.ids \
6113 http://pci-ids.ucw.cz/v2.2/pci.ids \
6114 http://standards.ieee.org/develop/regauth/oui/oui.txt \
6115 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
6118 .PHONY: kdbus-update
6120 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
6121 wget -N https://d-bus.googlecode.com/git/kdbus.h )
6125 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6127 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6129 upload: all check dist
6130 scp systemd-$(VERSION).tar.xz $(www_target)
6133 doc-sync: all destdir-sphinx
6134 gtkdoc-rebase --html-dir=docs/libudev/html --online
6135 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
6136 gtkdoc-rebase --html-dir=docs/gudev/html --online
6137 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
6138 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6139 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
6143 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
6144 scp man/*.html tango:public/systemd-man/
6146 .PHONY: install-tree
6148 rm -rf $(abs_srcdir)/install-tree
6149 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6150 tree $(abs_srcdir)/install-tree
6152 # Let's run all tests of the test suite, but under valgrind. Let's
6153 # exclude the one perl script we have in there
6154 .PHONY: valgrind-tests
6155 valgrind-tests: $(TESTS)
6156 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
6157 if file $$f | grep -q shell; then \
6158 echo -e "$${x}Skipping non-binary $$f"; else \
6159 echo -e "$${x}Running $$f"; \
6160 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6165 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6167 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6168 $(AM_V_GEN)cat $^ > $@
6170 .PHONY: check-api-docs
6171 check-api-docs: exported man
6172 $(AM_V_GEN)for symbol in `cat exported` ; do \
6173 if test -f $(builddir)/man/$$symbol.html ; then \
6174 echo " Symbol $$symbol() is documented." ; \
6176 echo "‣ Symbol $$symbol() lacks documentation." ; \
6180 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6181 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6183 undefined defined: $(ALL_OBJECTS)
6184 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6185 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6186 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6192 .PHONY: check-api-unused
6193 check-api-unused: defined undefined exported
6194 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6196 .PHONY: check-includes
6197 check-includes: $(top_srcdir)/tools/check-includes.pl
6198 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6199 | xargs $(top_srcdir)/tools/check-includes.pl
6202 $(top_srcdir)/tools/check-includes.pl
6204 # Stupid test that everything purported to be exported really is
6205 define generate-sym-test
6206 $(AM_V_at)$(MKDIR_P) $(dir $@)
6207 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6208 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6209 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6210 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6211 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6212 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6213 $(AM_V_at)printf 'return 0; }\n' >> $@
6216 test-libsystemd-sym.c: \
6217 $(top_builddir)/src/libsystemd/libsystemd.sym \
6218 src/systemd/sd-journal.h \
6219 src/systemd/sd-daemon.h \
6220 src/systemd/sd-login.h \
6221 src/systemd/sd-bus.h \
6222 src/systemd/sd-utf8.h \
6223 src/systemd/sd-resolve.h \
6224 src/systemd/sd-path.h
6225 $(generate-sym-test)
6227 test-libudev-sym.c: \
6228 src/libudev/libudev.sym \
6230 $(generate-sym-test)
6232 test_libsystemd_sym_SOURCES = \
6233 test-libsystemd-sym.c
6234 test_libsystemd_sym_LDADD = \
6237 test_libudev_sym_SOURCES = \
6239 test_libudev_sym_CFLAGS = \
6241 -Wno-deprecated-declarations
6242 test_libudev_sym_LDADD = \
6246 $(test_libsystemd_sym_SOURCES) \
6247 $(test_libudev_sym_SOURCES)
6250 test-libsystemd-sym \
6255 cppcheck --enable=all -q $(top_srcdir)
6257 # Used to extract compile flags for YCM.
6262 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u