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 \
388 systemd-machine-id-commit \
393 systemd-socket-proxyd \
397 rootlibexec_PROGRAMS += \
401 systemgenerator_PROGRAMS = \
402 systemd-getty-generator \
403 systemd-fstab-generator \
404 systemd-system-update-generator \
405 systemd-debug-generator
407 dist_bashcompletion_DATA = \
408 shell-completion/bash/busctl \
409 shell-completion/bash/journalctl \
410 shell-completion/bash/systemd-analyze \
411 shell-completion/bash/systemd-cat \
412 shell-completion/bash/systemd-cgls \
413 shell-completion/bash/systemd-cgtop \
414 shell-completion/bash/systemd-delta \
415 shell-completion/bash/systemd-detect-virt \
416 shell-completion/bash/systemd-nspawn \
417 shell-completion/bash/systemd-run \
418 shell-completion/bash/udevadm \
419 shell-completion/bash/kernel-install
421 nodist_bashcompletion_DATA = \
422 shell-completion/bash/systemctl
424 dist_zshcompletion_DATA = \
425 shell-completion/zsh/_journalctl \
426 shell-completion/zsh/_udevadm \
427 shell-completion/zsh/_kernel-install \
428 shell-completion/zsh/_systemd-nspawn \
429 shell-completion/zsh/_systemd-analyze \
430 shell-completion/zsh/_systemd-run \
431 shell-completion/zsh/_sd_hosts_or_user_at_host \
432 shell-completion/zsh/_sd_outputmodes \
433 shell-completion/zsh/_sd_unit_files \
434 shell-completion/zsh/_systemd-delta \
435 shell-completion/zsh/_systemd
437 nodist_zshcompletion_DATA = \
438 shell-completion/zsh/_systemctl
441 shell-completion/bash/systemctl.in \
442 shell-completion/zsh/_systemctl.in
445 $(nodist_bashcompletion_DATA) \
446 $(nodist_zshcompletion_DATA)
449 sysctl.d/50-default.conf
451 dist_systemunit_DATA = \
452 units/graphical.target \
453 units/multi-user.target \
454 units/emergency.target \
455 units/sysinit.target \
460 units/local-fs.target \
461 units/local-fs-pre.target \
462 units/initrd.target \
463 units/initrd-fs.target \
464 units/initrd-root-fs.target \
465 units/remote-fs.target \
466 units/remote-fs-pre.target \
467 units/network.target \
468 units/network-pre.target \
469 units/network-online.target \
470 units/nss-lookup.target \
471 units/nss-user-lookup.target \
472 units/poweroff.target \
473 units/reboot.target \
474 units/rescue.target \
475 units/rpcbind.target \
476 units/time-sync.target \
477 units/shutdown.target \
479 units/umount.target \
480 units/sigpwr.target \
482 units/sockets.target \
483 units/timers.target \
485 units/suspend.target \
487 units/slices.target \
490 units/systemd-initctl.socket \
491 units/systemd-shutdownd.socket \
492 units/syslog.socket \
493 units/dev-hugepages.mount \
494 units/dev-mqueue.mount \
495 units/sys-kernel-config.mount \
496 units/sys-kernel-debug.mount \
497 units/sys-fs-fuse-connections.mount \
499 units/printer.target \
501 units/bluetooth.target \
502 units/smartcard.target \
503 units/systemd-ask-password-wall.path \
504 units/systemd-ask-password-console.path \
505 units/systemd-udevd-control.socket \
506 units/systemd-udevd-kernel.socket \
507 units/system-update.target \
508 units/initrd-switch-root.target
511 dist_systemunit_DATA += \
512 $(dist_systemunit_DATA_busnames)
515 dist_systemunit_DATA_busnames += \
516 units/busnames.target
518 nodist_systemunit_DATA = \
519 units/getty@.service \
520 units/serial-getty@.service \
521 units/console-shell.service \
522 units/console-getty.service \
523 units/container-getty@.service \
524 units/systemd-initctl.service \
525 units/systemd-shutdownd.service \
526 units/systemd-remount-fs.service \
527 units/systemd-ask-password-wall.service \
528 units/systemd-ask-password-console.service \
529 units/systemd-sysctl.service \
530 units/emergency.service \
531 units/rescue.service \
532 units/user@.service \
533 units/systemd-suspend.service \
534 units/systemd-halt.service \
535 units/systemd-poweroff.service \
536 units/systemd-reboot.service \
537 units/systemd-kexec.service \
538 units/systemd-fsck@.service \
539 units/systemd-fsck-root.service \
540 units/systemd-machine-id-commit.service \
541 units/systemd-udevd.service \
542 units/systemd-udev-trigger.service \
543 units/systemd-udev-settle.service \
544 units/systemd-udev-hwdb-update.service \
545 units/debug-shell.service \
546 units/initrd-parse-etc.service \
547 units/initrd-cleanup.service \
548 units/initrd-udevadm-cleanup-db.service \
549 units/initrd-switch-root.service \
550 units/systemd-nspawn@.service \
551 units/systemd-update-done.service
554 nodist_systemunit_DATA += \
555 units/systemd-update-utmp.service \
556 units/systemd-update-utmp-runlevel.service
559 dist_userunit_DATA = \
560 units/user/basic.target \
561 units/user/default.target \
562 units/user/exit.target
564 nodist_userunit_DATA = \
565 units/user/systemd-exit.service
567 dist_systempreset_DATA = \
568 system-preset/90-systemd.preset
571 units/getty@.service.m4 \
572 units/serial-getty@.service.m4 \
573 units/console-shell.service.m4.in \
574 units/console-getty.service.m4.in \
575 units/container-getty@.service.m4.in \
576 units/rescue.service.in \
577 units/systemd-initctl.service.in \
578 units/systemd-shutdownd.service.in \
579 units/systemd-remount-fs.service.in \
580 units/systemd-update-utmp.service.in \
581 units/systemd-update-utmp-runlevel.service.in \
582 units/systemd-ask-password-wall.service.in \
583 units/systemd-ask-password-console.service.in \
584 units/systemd-sysctl.service.in \
585 units/emergency.service.in \
586 units/systemd-halt.service.in \
587 units/systemd-poweroff.service.in \
588 units/systemd-reboot.service.in \
589 units/systemd-kexec.service.in \
590 units/user/systemd-exit.service.in \
591 units/systemd-fsck@.service.in \
592 units/systemd-fsck-root.service.in \
593 units/systemd-machine-id-commit.service.in \
594 units/user@.service.in \
595 units/debug-shell.service.in \
596 units/systemd-suspend.service.in \
597 units/quotaon.service.in \
598 units/initrd-parse-etc.service.in \
599 units/initrd-cleanup.service.in \
600 units/initrd-udevadm-cleanup-db.service.in \
601 units/initrd-switch-root.service.in \
602 units/systemd-nspawn@.service.in \
603 units/systemd-update-done.service.in
606 units/console-shell.service.m4 \
607 units/console-getty.service.m4 \
608 units/container-getty@.service.m4 \
609 units/user@.service.m4
612 nodist_systemunit_DATA += \
613 units/rc-local.service \
614 units/halt-local.service
616 systemgenerator_PROGRAMS += \
617 systemd-sysv-generator \
618 systemd-rc-local-generator
622 units/rc-local.service.in \
623 units/halt-local.service.in
625 # automake is broken and can't handle files with a dash in front
626 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
628 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
630 units-uninstall-hook:
631 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
633 INSTALL_DATA_HOOKS += units-install-hook
634 UNINSTALL_DATA_HOOKS += units-uninstall-hook
643 src/libsystemd/sd-bus/PORTING-DBUS1 \
644 src/libsystemd/sd-bus/DIFFERENCES \
645 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
647 @INTLTOOL_POLICY_RULE@
649 # ------------------------------------------------------------------------------
654 include Makefile-man.am
656 .PHONY: man update-man-list
657 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
660 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
662 ${XML_FILES:.xml=.html}
664 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
681 $(AM_V_at)$(MKDIR_P) $(dir $@)
682 $(AM_V_LN)$(LN_S) -f ../../man $@
691 man/index.html: man/systemd.index.html
692 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
700 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
701 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
702 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
704 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB)
705 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
706 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
707 @echo "Makefile-man.am has been regenerated"
709 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
710 $(AM_V_at)$(MKDIR_P) $(dir $@)
711 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
713 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py $(SOURCE_XML_FILES)
714 $(AM_V_at)$(MKDIR_P) $(dir $@)
715 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
718 man/systemd.index.xml \
720 man/systemd.directives.xml \
721 man/glib-event-glue.c
724 man/systemd.index.xml \
725 man/systemd.directives.xml
736 tools/make-man-index.py \
737 tools/make-directive-index.py \
740 # ------------------------------------------------------------------------------
741 noinst_LTLIBRARIES += \
744 libsystemd_shared_la_SOURCES = \
745 src/shared/capability.c \
746 src/shared/capability.h \
747 src/shared/linux/auto_dev-ioctl.h \
748 src/shared/ioprio.h \
749 src/shared/missing.h \
750 src/shared/initreq.h \
751 src/shared/securebits.h \
752 src/shared/special.h \
754 src/shared/unaligned.h \
757 src/shared/sparse-endian.h \
758 src/shared/refcnt.h \
759 src/shared/udev-util.h \
760 src/shared/bus-errors.h \
761 src/shared/bus-errors.c \
762 src/shared/device-nodes.c \
763 src/shared/device-nodes.h \
768 src/shared/architecture.c \
769 src/shared/architecture.h \
770 src/shared/efivars.c \
771 src/shared/efivars.h \
772 src/shared/path-util.c \
773 src/shared/path-util.h \
774 src/shared/time-util.c \
775 src/shared/time-util.h \
776 src/shared/locale-util.c \
777 src/shared/locale-util.h \
778 src/shared/mempool.c \
779 src/shared/mempool.h \
780 src/shared/hashmap.c \
781 src/shared/hashmap.h \
782 src/shared/siphash24.c \
783 src/shared/siphash24.h \
789 src/shared/sleep-config.c \
790 src/shared/sleep-config.h \
793 src/shared/env-util.c \
794 src/shared/env-util.h \
795 src/shared/strbuf.c \
796 src/shared/strbuf.h \
797 src/shared/strxcpyx.c \
798 src/shared/strxcpyx.h \
799 src/shared/conf-parser.c \
800 src/shared/conf-parser.h \
803 src/shared/ratelimit.h \
804 src/shared/ratelimit.c \
805 src/shared/exit-status.c \
806 src/shared/exit-status.h \
809 src/shared/gunicode.c \
810 src/shared/gunicode.h \
813 src/shared/socket-util.c \
814 src/shared/socket-util.h \
815 src/shared/in-addr-util.c \
816 src/shared/in-addr-util.h \
817 src/shared/ether-addr-util.h \
818 src/shared/conf-files.c \
819 src/shared/conf-files.h \
820 src/shared/cgroup-util.c \
821 src/shared/cgroup-util.h \
822 src/shared/cgroup-show.c \
823 src/shared/cgroup-show.h \
824 src/shared/unit-name.c \
825 src/shared/unit-name.h \
826 src/shared/utmp-wtmp.h \
827 src/shared/watchdog.c \
828 src/shared/watchdog.h \
829 src/shared/spawn-ask-password-agent.c \
830 src/shared/spawn-ask-password-agent.h \
831 src/shared/replace-var.c \
832 src/shared/replace-var.h \
833 src/shared/spawn-polkit-agent.c \
834 src/shared/spawn-polkit-agent.h \
835 src/shared/clock-util.c \
836 src/shared/clock-util.h \
837 src/shared/time-dst.c \
838 src/shared/time-dst.h \
839 src/shared/calendarspec.c \
840 src/shared/calendarspec.h \
841 src/shared/fileio.c \
842 src/shared/fileio.h \
843 src/shared/output-mode.h \
844 src/shared/MurmurHash2.c \
845 src/shared/MurmurHash2.h \
846 src/shared/acpi-fpdt.h \
847 src/shared/acpi-fpdt.c \
848 src/shared/boot-timestamps.h \
849 src/shared/boot-timestamps.c \
852 src/shared/smack-util.c \
853 src/shared/smack-util.h \
854 src/shared/apparmor-util.c \
855 src/shared/apparmor-util.h \
856 src/shared/ima-util.c \
857 src/shared/ima-util.h \
858 src/shared/ptyfwd.c \
859 src/shared/ptyfwd.h \
860 src/shared/errno-list.c \
861 src/shared/errno-list.h \
862 src/shared/af-list.c \
863 src/shared/af-list.h \
864 src/shared/arphrd-list.c \
865 src/shared/arphrd-list.h \
870 src/shared/bus-label.c \
871 src/shared/bus-label.h \
873 src/shared/clean-ipc.h \
874 src/shared/clean-ipc.c \
875 src/shared/login-shared.c \
876 src/shared/login-shared.h \
879 src/shared/barrier.c \
880 src/shared/barrier.h \
887 src/shared/base-filesystem.c \
888 src/shared/base-filesystem.h \
889 src/shared/memfd-util.c \
890 src/shared/memfd-util.h \
891 src/shared/uid-range.c \
892 src/shared/uid-range.h \
893 src/shared/nss-util.h
896 libsystemd_shared_la_SOURCES += \
897 src/shared/utmp-wtmp.c
900 nodist_libsystemd_shared_la_SOURCES = \
901 src/shared/errno-from-name.h \
902 src/shared/errno-to-name.h \
903 src/shared/af-from-name.h \
904 src/shared/af-to-name.h \
905 src/shared/arphrd-from-name.h \
906 src/shared/arphrd-to-name.h
908 libsystemd_shared_la_CFLAGS = \
914 libsystemd_shared_la_LIBADD = \
917 # ------------------------------------------------------------------------------
918 noinst_LTLIBRARIES += \
921 libsystemd_units_la_SOURCES = \
922 src/shared/install.c \
923 src/shared/install.h \
924 src/shared/install-printf.c \
925 src/shared/install-printf.h \
926 src/shared/path-lookup.c \
927 src/shared/path-lookup.h \
928 src/shared/specifier.c \
929 src/shared/specifier.h
931 # ------------------------------------------------------------------------------
932 noinst_LTLIBRARIES += \
935 libsystemd_label_la_SOURCES = \
936 src/shared/socket-label.c \
939 src/shared/selinux-util.c \
940 src/shared/selinux-util.h \
941 src/shared/mkdir-label.c \
942 src/shared/ask-password-api.c \
943 src/shared/ask-password-api.h \
944 src/shared/switch-root.h \
945 src/shared/switch-root.c \
946 src/shared/fileio-label.c \
947 src/shared/fileio-label.h \
948 src/shared/dev-setup.c \
949 src/shared/dev-setup.h \
950 src/shared/dropin.c \
951 src/shared/dropin.h \
952 src/shared/condition.c \
953 src/shared/condition.h \
954 src/shared/generator.h \
955 src/shared/generator.c
957 libsystemd_label_la_CFLAGS = \
961 libsystemd_label_la_LIBADD = \
964 # -----------------------------------------------------------------------------
967 dist_systemunit_DATA += \
968 units/ldconfig.service
970 SYSINIT_TARGET_WANTS += \
974 # ------------------------------------------------------------------------------
977 noinst_LTLIBRARIES += \
978 libsystemd-seccomp.la
980 libsystemd_seccomp_la_SOURCES = \
981 src/shared/seccomp-util.h \
982 src/shared/seccomp-util.c
984 libsystemd_seccomp_la_CFLAGS = \
988 libsystemd_seccomp_la_LIBADD = \
992 # ------------------------------------------------------------------------------
993 noinst_LTLIBRARIES += \
996 libsystemd_logs_la_SOURCES = \
997 src/shared/logs-show.c \
998 src/shared/logs-show.h
1000 # ------------------------------------------------------------------------------
1002 noinst_LTLIBRARIES += \
1005 libsystemd_acl_la_SOURCES = \
1006 src/shared/acl-util.c \
1007 src/shared/acl-util.h
1009 libsystemd_acl_la_CFLAGS = \
1013 libsystemd_acl_la_LIBADD = \
1017 # ------------------------------------------------------------------------------
1018 noinst_LTLIBRARIES += \
1021 libsystemd_core_la_SOURCES = \
1024 src/core/unit-printf.c \
1025 src/core/unit-printf.h \
1028 src/core/manager.c \
1029 src/core/manager.h \
1030 src/core/transaction.c \
1031 src/core/transaction.h \
1032 src/core/load-fragment.c \
1033 src/core/load-fragment.h \
1034 src/core/service.c \
1035 src/core/service.h \
1038 src/core/busname.c \
1039 src/core/busname.h \
1040 src/core/bus-common.c \
1041 src/core/bus-common.h \
1042 src/core/bus-endpoint.c \
1043 src/core/bus-endpoint.h \
1046 src/core/snapshot.c \
1047 src/core/snapshot.h \
1052 src/core/automount.c \
1053 src/core/automount.h \
1064 src/core/load-dropin.c \
1065 src/core/load-dropin.h \
1066 src/core/execute.c \
1067 src/core/execute.h \
1072 src/core/dbus-manager.c \
1073 src/core/dbus-manager.h \
1074 src/core/dbus-unit.c \
1075 src/core/dbus-unit.h \
1076 src/core/dbus-job.c \
1077 src/core/dbus-job.h \
1078 src/core/dbus-service.c \
1079 src/core/dbus-service.h \
1080 src/core/dbus-socket.c \
1081 src/core/dbus-socket.h \
1082 src/core/dbus-busname.c \
1083 src/core/dbus-busname.h \
1084 src/core/dbus-target.c \
1085 src/core/dbus-target.h \
1086 src/core/dbus-snapshot.c \
1087 src/core/dbus-snapshot.h \
1088 src/core/dbus-device.c \
1089 src/core/dbus-device.h \
1090 src/core/dbus-mount.c \
1091 src/core/dbus-mount.h \
1092 src/core/dbus-automount.c \
1093 src/core/dbus-automount.h \
1094 src/core/dbus-swap.c \
1095 src/core/dbus-swap.h \
1096 src/core/dbus-timer.c \
1097 src/core/dbus-timer.h \
1098 src/core/dbus-path.c \
1099 src/core/dbus-path.h \
1100 src/core/dbus-slice.c \
1101 src/core/dbus-slice.h \
1102 src/core/dbus-scope.c \
1103 src/core/dbus-scope.h \
1104 src/core/dbus-execute.c \
1105 src/core/dbus-execute.h \
1106 src/core/dbus-kill.c \
1107 src/core/dbus-kill.h \
1108 src/core/dbus-cgroup.c \
1109 src/core/dbus-cgroup.h \
1112 src/core/selinux-access.c \
1113 src/core/selinux-access.h \
1114 src/core/selinux-setup.c \
1115 src/core/selinux-setup.h \
1116 src/core/smack-setup.c \
1117 src/core/smack-setup.h \
1118 src/core/ima-setup.c \
1119 src/core/ima-setup.h \
1120 src/core/locale-setup.h \
1121 src/core/locale-setup.c \
1122 src/core/hostname-setup.c \
1123 src/core/hostname-setup.h \
1124 src/core/machine-id-setup.c \
1125 src/core/machine-id-setup.h \
1126 src/core/mount-setup.c \
1127 src/core/mount-setup.h \
1128 src/core/kmod-setup.c \
1129 src/core/kmod-setup.h \
1130 src/core/loopback-setup.h \
1131 src/core/loopback-setup.c \
1132 src/core/namespace.c \
1133 src/core/namespace.h \
1135 src/core/sysfs-show.h \
1136 src/core/killall.h \
1137 src/core/killall.c \
1138 src/core/audit-fd.c \
1139 src/core/audit-fd.h \
1140 src/core/show-status.c \
1141 src/core/show-status.h \
1142 src/core/failure-action.c \
1143 src/core/failure-action.h
1145 nodist_libsystemd_core_la_SOURCES = \
1146 src/core/load-fragment-gperf.c \
1147 src/core/load-fragment-gperf-nulstr.c
1149 libsystemd_core_la_CFLAGS = \
1154 $(APPARMOR_CFLAGS) \
1159 libsystemd_core_la_LIBADD = \
1160 libsystemd-units.la \
1161 libsystemd-label.la \
1162 libudev-internal.la \
1163 libsystemd-shared.la \
1164 libsystemd-internal.la \
1173 libsystemd_core_la_LIBADD += \
1174 libsystemd-seccomp.la
1177 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1178 $(AM_V_at)$(MKDIR_P) $(dir $@)
1179 $(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 ";" }' < $< > $@
1182 src/core/load-fragment-gperf.gperf.m4
1185 src/core/load-fragment-gperf.gperf \
1186 src/core/load-fragment-gperf.c \
1187 src/core/load-fragment-gperf-nulstr.c \
1188 src/shared/errno-list.txt \
1189 src/shared/errno-from-name.gperf \
1190 src/shared/af-list.txt \
1191 src/shared/af-from-name.gperf \
1192 src/shared/arphrd-list.txt \
1193 src/shared/arphrd-from-name.gperf \
1194 src/shared/dns_type-list.txt \
1195 src/shared/dns_type-from-name.gperf
1198 src/shared/errno-from-name.h \
1199 src/shared/errno-to-name.h \
1200 src/shared/af-from-name.h \
1201 src/shared/af-to-name.h \
1202 src/shared/arphrd-from-name.h \
1203 src/shared/arphrd-to-name.h \
1204 src/resolve/dns_type-from-name.h \
1205 src/resolve/dns_type-to-name.h
1207 %-from-name.gperf: %-list.txt
1208 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1210 %-from-name.h: %-from-name.gperf
1211 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1214 src/shared/errno-list.txt:
1215 $(AM_V_at)$(MKDIR_P) $(dir $@)
1216 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1218 src/shared/errno-to-name.h: src/shared/errno-list.txt
1219 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1222 src/shared/af-list.txt:
1223 $(AM_V_at)$(MKDIR_P) $(dir $@)
1224 $(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; }' >$@
1226 src/shared/af-to-name.h: src/shared/af-list.txt
1227 $(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 "};"}' <$< >$@
1229 src/shared/arphrd-list.txt:
1230 $(AM_V_at)$(MKDIR_P) $(dir $@)
1231 $(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_//' >$@
1233 src/shared/arphrd-to-name.h: src/shared/arphrd-list.txt
1234 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1236 src/shared/arphrd-from-name.gperf: src/shared/arphrd-list.txt
1237 $(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 }' <$< >$@
1240 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1241 $(AM_V_at)$(MKDIR_P) $(dir $@)
1242 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1244 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1245 $(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" }' <$< >$@
1247 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1248 $(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 }' <$< >$@
1250 # ------------------------------------------------------------------------------
1259 libsystemd-core.la \
1262 dist_pkgsysconf_DATA += \
1263 src/core/system.conf \
1266 dist_dbuspolicy_DATA += \
1267 src/core/org.freedesktop.systemd1.conf
1269 dist_dbussystemservice_DATA += \
1270 src/core/org.freedesktop.systemd1.service
1272 polkitpolicy_in_in_files += \
1273 src/core/org.freedesktop.systemd1.policy.in.in
1275 pkgconfigdata_DATA = \
1278 nodist_rpmmacros_DATA = \
1279 src/core/macros.systemd
1282 src/core/systemd.pc.in \
1283 src/core/macros.systemd.in
1286 src/core/macros.systemd \
1287 src/core/org.freedesktop.systemd1.policy.in
1289 # ------------------------------------------------------------------------------
1332 test-strip-tab-ansi \
1363 test/daughter.service \
1368 test/grandchild.service \
1370 test/hello-after-sleep.target \
1371 test/hello.service \
1373 test/parent-deep.slice \
1376 test/sched_idle_bad.service \
1377 test/sched_idle_ok.service \
1378 test/sched_rr_bad.service \
1379 test/sched_rr_change.service \
1380 test/sched_rr_ok.service \
1381 test/shutdown.target \
1382 test/sleep.service \
1383 test/sockets.target \
1385 test/sysinit.target \
1386 test/testsuite.target \
1387 test/timers.target \
1388 test/unstoppable.service \
1389 test/path-changed.service \
1390 test/path-directorynotempty.service \
1391 test/path-existsglob.service \
1392 test/path-exists.service \
1393 test/path-makedirectory.service \
1394 test/path-modified.service \
1395 test/path-mycustomunit.service \
1396 test/path-service.service \
1397 test/path-changed.path \
1398 test/path-directorynotempty.path \
1399 test/path-existsglob.path \
1400 test/path-exists.path \
1401 test/path-makedirectory.path \
1402 test/path-modified.path \
1403 test/path-unit.path \
1404 test/exec-environment-empty.service \
1405 test/exec-environment-multiple.service \
1406 test/exec-environment.service \
1407 test/exec-group.service \
1408 test/exec-ignoresigpipe-no.service \
1409 test/exec-ignoresigpipe-yes.service \
1410 test/exec-personality-x86-64.service \
1411 test/exec-personality-x86.service \
1412 test/exec-privatedevices-no.service \
1413 test/exec-privatedevices-yes.service \
1414 test/exec-privatetmp-no.service \
1415 test/exec-privatetmp-yes.service \
1416 test/exec-systemcallerrornumber.service \
1417 test/exec-systemcallfilter-failing2.service \
1418 test/exec-systemcallfilter-failing.service \
1419 test/exec-systemcallfilter-not-failing2.service \
1420 test/exec-systemcallfilter-not-failing.service \
1421 test/exec-user.service \
1422 test/exec-workingdirectory.service \
1423 test/bus-policy/hello.conf \
1424 test/bus-policy/methods.conf \
1425 test/bus-policy/ownerships.conf \
1426 test/bus-policy/signals.conf \
1427 test/bus-policy/check-own-rules.conf \
1428 test/bus-policy/many-rules.conf \
1429 test/bus-policy/test.conf
1433 src/test/test-helper.h
1435 test_device_nodes_SOURCES = \
1436 src/test/test-device-nodes.c
1438 test_device_nodes_LDADD = \
1439 libsystemd-shared.la
1441 test_engine_SOURCES = \
1442 src/test/test-engine.c
1444 test_engine_CFLAGS = \
1448 test_engine_LDADD = \
1449 libsystemd-core.la \
1452 test_job_type_SOURCES = \
1453 src/test/test-job-type.c
1455 test_job_type_CFLAGS = \
1459 test_job_type_LDADD = \
1460 libsystemd-core.la \
1473 test_loopback_SOURCES = \
1474 src/test/test-loopback.c
1476 test_loopback_LDADD = \
1479 test_hostname_SOURCES = \
1480 src/test/test-hostname.c
1482 test_hostname_LDADD = \
1489 test_boot_timestamp_SOURCES = \
1490 src/test/test-boot-timestamps.c
1492 test_boot_timestamp_LDADD = \
1493 libsystemd-shared.la
1496 test_unit_name_SOURCES = \
1497 src/test/test-unit-name.c
1499 test_unit_name_CFLAGS = \
1503 test_unit_name_LDADD = \
1504 libsystemd-core.la \
1507 test_unit_file_SOURCES = \
1508 src/test/test-unit-file.c
1510 test_unit_file_CFLAGS = \
1514 test_unit_file_LDADD = \
1515 libsystemd-core.la \
1518 test_utf8_SOURCES = \
1519 src/test/test-utf8.c
1522 libsystemd-shared.la
1524 test_capability_SOURCES = \
1525 src/test/test-capability.c
1527 test_capability_LDADD = \
1528 libsystemd-shared.la
1530 test_async_SOURCES = \
1531 src/test/test-async.c
1533 test_async_LDADD = \
1534 libsystemd-shared.la
1536 test_locale_util_SOURCES = \
1537 src/test/test-locale-util.c
1539 test_locale_util_LDADD = \
1540 libsystemd-shared.la
1542 test_copy_SOURCES = \
1543 src/test/test-copy.c
1546 libsystemd-shared.la
1548 test_condition_SOURCES = \
1549 src/test/test-condition.c
1551 test_condition_LDADD = \
1552 libsystemd-label.la \
1553 libsystemd-internal.la \
1554 libsystemd-shared.la
1556 test_fdset_SOURCES = \
1557 src/test/test-fdset.c
1559 test_fdset_LDADD = \
1560 libsystemd-shared.la \
1561 libsystemd-internal.la
1563 test_ratelimit_SOURCES = \
1564 src/test/test-ratelimit.c
1566 test_ratelimit_LDADD = \
1567 libsystemd-shared.la
1569 test_util_SOURCES = \
1570 src/test/test-util.c
1574 libsystemd-shared.la
1576 test_uid_range_SOURCES = \
1577 src/test/test-uid-range.c
1579 test_uid_range_LDADD = \
1580 libsystemd-shared.la
1582 test_socket_util_SOURCES = \
1583 src/test/test-socket-util.c
1585 test_socket_util_LDADD = \
1586 libsystemd-shared.la
1588 test_ring_SOURCES = \
1589 src/test/test-ring.c
1592 libsystemd-shared.la
1594 test_barrier_SOURCES = \
1595 src/test/test-barrier.c
1597 test_barrier_LDADD = \
1598 libsystemd-shared.la
1600 test_pty_SOURCES = \
1606 test_tmpfiles_SOURCES = \
1607 src/test/test-tmpfiles.c
1609 test_tmpfiles_LDADD = \
1610 libsystemd-shared.la
1612 test_namespace_SOURCES = \
1613 src/test/test-namespace.c
1615 test_namespace_LDADD = \
1619 src/test/test-hashmap-ordered.c
1622 src/test/test-hashmap-ordered.c
1624 src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c
1625 $(AM_V_at)$(MKDIR_P) $(dir $@)
1626 $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \
1627 { if (!match($$0, "^#include")) \
1628 gsub(/hashmap/, "ordered_hashmap"); \
1629 gsub(/HASHMAP/, "ORDERED_HASHMAP"); \
1630 gsub(/Hashmap/, "OrderedHashmap"); \
1633 nodist_test_hashmap_SOURCES = \
1634 src/test/test-hashmap-ordered.c
1636 test_hashmap_SOURCES = \
1637 src/test/test-hashmap.c \
1638 src/test/test-hashmap-plain.c
1640 test_hashmap_LDADD = \
1641 libsystemd-shared.la
1643 test_set_SOURCES = \
1647 libsystemd-shared.la
1649 test_xml_SOURCES = \
1653 libsystemd-shared.la
1655 test_list_SOURCES = \
1656 src/test/test-list.c
1659 libsystemd-shared.la
1661 test_unaligned_LDADD = \
1662 libsystemd-shared.la
1664 test_unaligned_SOURCES = \
1665 src/test/test-unaligned.c
1667 test_tables_SOURCES = \
1668 src/test/test-tables.c \
1669 src/shared/test-tables.h \
1670 src/bus-proxyd/bus-policy.c \
1671 src/bus-proxyd/bus-policy.h \
1672 src/journal/journald-server.c \
1673 src/journal/journald-server.h
1675 test_tables_CPPFLAGS = \
1677 -I$(top_srcdir)/src/bus-proxyd
1679 test_tables_CFLAGS = \
1683 test_tables_LDADD = \
1684 libsystemd-logs.la \
1685 libsystemd-journal-internal.la \
1686 libsystemd-journal-core.la \
1687 libsystemd-core.la \
1691 test_prioq_SOURCES = \
1692 src/test/test-prioq.c
1694 test_prioq_LDADD = \
1695 libsystemd-shared.la
1697 test_fileio_SOURCES = \
1698 src/test/test-fileio.c
1700 test_fileio_LDADD = \
1701 libsystemd-shared.la
1703 test_time_SOURCES = \
1704 src/test/test-time.c
1707 libsystemd-shared.la
1709 test_architecture_SOURCES = \
1710 src/test/test-architecture.c
1712 test_architecture_LDADD = \
1713 libsystemd-shared.la
1715 test_log_SOURCES = \
1719 libsystemd-shared.la
1721 test_ipcrm_SOURCES = \
1722 src/test/test-ipcrm.c
1724 test_ipcrm_LDADD = \
1725 libsystemd-shared.la \
1728 test_rtnl_manual_SOURCES = \
1729 src/test/test-rtnl-manual.c
1731 test_rtnl_manual_CFLAGS = \
1735 test_rtnl_manual_LDADD = \
1736 libsystemd-internal.la \
1737 libsystemd-shared.la \
1740 test_ellipsize_SOURCES = \
1741 src/test/test-ellipsize.c
1743 test_ellipsize_LDADD = \
1744 libsystemd-shared.la
1746 test_date_SOURCES = \
1747 src/test/test-date.c
1750 libsystemd-shared.la
1752 test_sleep_SOURCES = \
1753 src/test/test-sleep.c
1755 test_sleep_LDADD = \
1758 test_replace_var_SOURCES = \
1759 src/test/test-replace-var.c
1761 test_replace_var_LDADD = \
1762 libsystemd-shared.la
1764 test_calendarspec_SOURCES = \
1765 src/test/test-calendarspec.c
1767 test_calendarspec_LDADD = \
1768 libsystemd-shared.la
1770 test_strip_tab_ansi_SOURCES = \
1771 src/test/test-strip-tab-ansi.c
1773 test_strip_tab_ansi_LDADD = \
1774 libsystemd-shared.la
1776 test_daemon_SOURCES = \
1777 src/test/test-daemon.c
1779 test_daemon_LDADD = \
1780 libsystemd-internal.la \
1781 libsystemd-shared.la
1783 test_cgroup_SOURCES = \
1784 src/test/test-cgroup.c
1786 test_cgroup_LDADD = \
1787 libsystemd-label.la \
1788 libsystemd-shared.la \
1789 libsystemd-internal.la
1791 test_cgroup_mask_SOURCES = \
1792 src/test/test-cgroup-mask.c
1794 test_cgroup_mask_CPPFLAGS = \
1797 test_cgroup_mask_CFLAGS = \
1801 test_cgroup_mask_LDADD = \
1802 libsystemd-core.la \
1805 test_cgroup_util_SOURCES = \
1806 src/test/test-cgroup-util.c
1808 test_cgroup_util_LDADD = \
1809 libsystemd-label.la \
1810 libsystemd-internal.la \
1811 libsystemd-shared.la
1813 test_env_replace_SOURCES = \
1814 src/test/test-env-replace.c
1816 test_env_replace_LDADD = \
1817 libsystemd-shared.la
1819 test_strbuf_SOURCES = \
1820 src/test/test-strbuf.c
1822 test_strbuf_LDADD = \
1823 libsystemd-shared.la
1825 test_strv_SOURCES = \
1826 src/test/test-strv.c
1829 libsystemd-units.la \
1830 libsystemd-internal.la \
1831 libsystemd-shared.la
1833 test_path_util_SOURCES = \
1834 src/test/test-path-util.c
1836 test_path_util_LDADD = \
1837 libsystemd-shared.la
1839 test_path_SOURCES = \
1840 src/test/test-path.c
1842 test_path_CFLAGS = \
1848 test_execute_SOURCES = \
1849 src/test/test-execute.c
1851 test_execute_CFLAGS = \
1854 test_execute_LDADD = \
1857 test_strxcpyx_SOURCES = \
1858 src/test/test-strxcpyx.c
1860 test_strxcpyx_LDADD = \
1861 libsystemd-shared.la
1863 test_install_SOURCES = \
1864 src/test/test-install.c
1866 test_install_LDADD = \
1867 libsystemd-units.la \
1868 libsystemd-label.la \
1869 libsystemd-shared.la \
1870 libsystemd-internal.la
1872 test_watchdog_SOURCES = \
1873 src/test/test-watchdog.c
1875 test_watchdog_LDADD = \
1876 libsystemd-shared.la
1878 test_sched_prio_SOURCES = \
1879 src/test/test-sched-prio.c
1881 test_sched_prio_CPPFLAGS = \
1884 test_sched_prio_CFLAGS = \
1888 test_sched_prio_LDADD = \
1889 libsystemd-core.la \
1892 test_conf_files_SOURCES = \
1893 src/test/test-conf-files.c
1895 test_conf_files_LDADD = \
1896 libsystemd-shared.la
1898 test_bus_policy_SOURCES = \
1899 src/bus-proxyd/test-bus-policy.c \
1900 src/bus-proxyd/bus-policy.c \
1901 src/bus-proxyd/bus-policy.h
1903 test_bus_policy_LDADD = \
1904 libsystemd-internal.la \
1905 libsystemd-shared.la
1907 # ------------------------------------------------------------------------------
1908 ## .PHONY so it always rebuilds it
1909 .PHONY: coverage lcov-run lcov-report coverage-sync
1911 # run lcov from scratch, always
1916 coverage_dir = coverage
1917 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1920 # reset run coverage tests
1922 @rm -rf $(coverage_dir)
1923 lcov $(coverage_opts) --zerocounters
1926 # generate report based on current coverage data
1928 $(MKDIR_P) $(coverage_dir)
1929 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1930 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1931 lcov --remove $(coverage_dir)/.lcov.info --output-file $(coverage_dir)/.lcov-clean.info 'test-*'
1932 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov-clean.info
1933 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1935 # lcov doesn't work properly with vpath builds, make sure that bad
1936 # output is not uploaded by mistake.
1937 coverage-sync: coverage
1938 test "$(builddir)" = "$(srcdir)"
1939 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1942 lcov-run lcov-report:
1943 echo "Need to reconfigure with --enable-coverage"
1946 # ------------------------------------------------------------------------------
1947 systemd_analyze_SOURCES = \
1948 src/analyze/analyze.c \
1949 src/analyze/analyze-verify.c \
1950 src/analyze/analyze-verify.h
1952 systemd_verify_CFLAGS = \
1956 systemd_analyze_LDADD = \
1957 libsystemd-core.la \
1958 libsystemd-internal.la \
1959 libsystemd-shared.la \
1962 # ------------------------------------------------------------------------------
1963 systemd_initctl_SOURCES = \
1964 src/initctl/initctl.c
1966 systemd_initctl_LDADD = \
1967 libsystemd-internal.la \
1968 libsystemd-shared.la
1970 # ------------------------------------------------------------------------------
1971 systemd_update_utmp_SOURCES = \
1972 src/update-utmp/update-utmp.c
1974 systemd_update_utmp_CFLAGS = \
1978 systemd_update_utmp_LDADD = \
1979 libsystemd-internal.la \
1980 libsystemd-shared.la \
1983 # ------------------------------------------------------------------------------
1984 systemd_update_done_SOURCES = \
1985 src/update-done/update-done.c
1987 systemd_update_done_LDADD = \
1988 libsystemd-internal.la \
1989 libsystemd-label.la \
1990 libsystemd-shared.la
1992 # ------------------------------------------------------------------------------
1993 systemd_shutdownd_SOURCES = \
1994 src/shutdownd/shutdownd.c
1996 systemd_shutdownd_LDADD = \
1997 libsystemd-label.la \
1998 libsystemd-internal.la \
1999 libsystemd-shared.la
2002 src/systemd/sd-shutdown.h
2004 # ------------------------------------------------------------------------------
2005 systemd_shutdown_SOURCES = \
2008 src/core/shutdown.c \
2009 src/core/mount-setup.c \
2010 src/core/mount-setup.h \
2011 src/core/killall.h \
2014 systemd_shutdown_LDADD = \
2015 libsystemd-label.la \
2016 libudev-internal.la \
2017 libsystemd-shared.la
2019 # ------------------------------------------------------------------------------
2021 systemd_modules_load_SOURCES = \
2022 src/modules-load/modules-load.c
2024 systemd_modules_load_CFLAGS = \
2028 systemd_modules_load_LDADD = \
2029 libsystemd-shared.la \
2032 rootlibexec_PROGRAMS += \
2033 systemd-modules-load
2035 nodist_systemunit_DATA += \
2036 units/systemd-modules-load.service
2038 SYSINIT_TARGET_WANTS += \
2039 systemd-modules-load.service
2042 nodist_systemunit_DATA += \
2043 units/kmod-static-nodes.service
2045 SYSINIT_TARGET_WANTS += \
2046 kmod-static-nodes.service
2051 units/systemd-modules-load.service.in \
2052 units/kmod-static-nodes.service.in
2054 # ------------------------------------------------------------------------------
2056 systemd_tmpfiles_SOURCES = \
2057 src/tmpfiles/tmpfiles.c
2059 systemd_tmpfiles_LDADD = \
2060 libsystemd-units.la \
2061 libsystemd-label.la \
2062 libsystemd-internal.la \
2063 libsystemd-shared.la
2065 rootbin_PROGRAMS += \
2068 dist_systemunit_DATA += \
2069 units/systemd-tmpfiles-clean.timer
2071 nodist_systemunit_DATA += \
2072 units/systemd-tmpfiles-setup-dev.service \
2073 units/systemd-tmpfiles-setup.service \
2074 units/systemd-tmpfiles-clean.service
2076 nodist_tmpfiles_DATA = \
2079 dist_tmpfiles_DATA = \
2080 tmpfiles.d/systemd.conf \
2081 tmpfiles.d/systemd-nologin.conf \
2082 tmpfiles.d/tmp.conf \
2083 tmpfiles.d/x11.conf \
2087 dist_tmpfiles_DATA += \
2088 tmpfiles.d/legacy.conf
2091 SYSINIT_TARGET_WANTS += \
2092 systemd-tmpfiles-setup-dev.service \
2093 systemd-tmpfiles-setup.service
2095 dist_zshcompletion_DATA += \
2096 shell-completion/zsh/_systemd-tmpfiles
2098 TIMERS_TARGET_WANTS += \
2099 systemd-tmpfiles-clean.timer
2103 $(sysconfdir)/tmpfiles.d
2107 tmpfiles.d/etc.conf.m4 \
2108 units/systemd-tmpfiles-setup-dev.service.in \
2109 units/systemd-tmpfiles-setup.service.in \
2110 units/systemd-tmpfiles-clean.service.in
2115 # ------------------------------------------------------------------------------
2117 systemd_sysusers_SOURCES = \
2118 src/sysusers/sysusers.c
2120 systemd_sysusers_LDADD = \
2121 libsystemd-units.la \
2122 libsystemd-label.la \
2123 libsystemd-internal.la \
2124 libsystemd-shared.la
2126 rootbin_PROGRAMS += \
2129 nodist_systemunit_DATA += \
2130 units/systemd-sysusers.service
2132 SYSINIT_TARGET_WANTS += \
2133 systemd-sysusers.service
2135 dist_sysusers_DATA = \
2136 sysusers.d/systemd.conf
2138 nodist_sysusers_DATA = \
2139 sysusers.d/basic.conf
2142 units/systemd-sysusers.service.in \
2143 sysusers.d/basic.conf.in
2146 sysusers.d/basic.conf
2152 # ------------------------------------------------------------------------------
2153 dist_factory_etc_DATA = \
2154 factory/etc/nsswitch.conf
2157 dist_factory_pam_DATA = \
2158 factory/etc/pam.d/system-auth \
2159 factory/etc/pam.d/other
2162 # ------------------------------------------------------------------------------
2164 systemd_firstboot_SOURCES = \
2165 src/firstboot/firstboot.c
2167 systemd_firstboot_LDADD = \
2168 libsystemd-units.la \
2169 libsystemd-label.la \
2170 libsystemd-internal.la \
2171 libsystemd-shared.la \
2174 rootbin_PROGRAMS += \
2177 nodist_systemunit_DATA += \
2178 units/systemd-firstboot.service
2181 units/systemd-firstboot.service.in
2183 SYSINIT_TARGET_WANTS += \
2184 systemd-firstboot.service
2187 # ------------------------------------------------------------------------------
2188 systemd_machine_id_setup_SOURCES = \
2189 src/machine-id-setup/machine-id-setup-main.c \
2190 src/core/machine-id-setup.c \
2191 src/core/machine-id-setup.h
2193 systemd_machine_id_setup_LDADD = \
2194 libsystemd-label.la \
2195 libsystemd-internal.la \
2196 libsystemd-shared.la
2198 # ------------------------------------------------------------------------------
2199 systemd_sysctl_SOURCES = \
2202 systemd_sysctl_LDADD = \
2203 libsystemd-shared.la
2205 # ------------------------------------------------------------------------------
2206 systemd_sleep_SOURCES = \
2209 systemd_sleep_LDADD = \
2210 libsystemd-shared.la
2212 # ------------------------------------------------------------------------------
2213 systemd_fsck_SOURCES = \
2216 systemd_fsck_LDADD = \
2217 libsystemd-internal.la \
2218 libudev-internal.la \
2219 libsystemd-shared.la
2221 # ------------------------------------------------------------------------------
2222 systemd_machine_id_commit_SOURCES = \
2223 src/machine-id-commit/machine-id-commit.c \
2224 src/core/machine-id-setup.c \
2225 src/core/machine-id-setup.h
2227 systemd_machine_id_commit_LDADD = \
2228 libsystemd-label.la \
2229 libsystemd-internal.la \
2230 libsystemd-shared.la
2232 SYSINIT_TARGET_WANTS += \
2233 systemd-machine-id-commit.service
2235 # ------------------------------------------------------------------------------
2236 systemd_ac_power_SOURCES = \
2237 src/ac-power/ac-power.c
2239 systemd_ac_power_LDADD = \
2240 libudev-internal.la \
2241 libsystemd-shared.la
2243 # ------------------------------------------------------------------------------
2244 systemd_detect_virt_SOURCES = \
2245 src/detect-virt/detect-virt.c
2247 systemd_detect_virt_LDADD = \
2248 libsystemd-shared.la
2250 INSTALL_EXEC_HOOKS += \
2251 systemd-detect-virt-install-hook
2253 # ------------------------------------------------------------------------------
2254 systemd_delta_SOURCES = \
2257 systemd_delta_LDADD = \
2258 libsystemd-shared.la
2260 # ------------------------------------------------------------------------------
2261 systemd_getty_generator_SOURCES = \
2262 src/getty-generator/getty-generator.c
2264 systemd_getty_generator_LDADD = \
2265 libsystemd-label.la \
2266 libsystemd-shared.la
2268 # ------------------------------------------------------------------------------
2269 systemd_debug_generator_SOURCES = \
2270 src/debug-generator/debug-generator.c
2272 systemd_debug_generator_LDADD = \
2273 libsystemd-label.la \
2274 libsystemd-shared.la
2276 # ------------------------------------------------------------------------------
2277 systemd_fstab_generator_SOURCES = \
2278 src/fstab-generator/fstab-generator.c \
2279 src/core/mount-setup.c
2281 systemd_fstab_generator_LDADD = \
2282 libsystemd-label.la \
2283 libsystemd-shared.la
2285 # ------------------------------------------------------------------------------
2286 systemd_system_update_generator_SOURCES = \
2287 src/system-update-generator/system-update-generator.c
2289 systemd_system_update_generator_LDADD = \
2290 libsystemd-label.la \
2291 libsystemd-shared.la
2293 # ------------------------------------------------------------------------------
2295 systemgenerator_PROGRAMS += \
2296 systemd-hibernate-resume-generator
2298 rootlibexec_PROGRAMS += \
2299 systemd-hibernate-resume
2301 systemd_hibernate_resume_SOURCES = \
2302 src/hibernate-resume/hibernate-resume.c
2304 systemd_hibernate_resume_LDADD = \
2305 libsystemd-internal.la \
2306 libsystemd-shared.la
2308 systemd_hibernate_resume_generator_SOURCES = \
2309 src/hibernate-resume/hibernate-resume-generator.c
2311 systemd_hibernate_resume_generator_LDADD = \
2312 libsystemd-label.la \
2313 libsystemd-shared.la
2316 units/systemd-hibernate.service.in \
2317 units/systemd-hibernate-resume@.service.in \
2318 units/systemd-hybrid-sleep.service.in
2320 dist_systemunit_DATA += \
2321 units/hibernate.target \
2322 units/hybrid-sleep.target
2324 nodist_systemunit_DATA += \
2325 units/systemd-hibernate.service \
2326 units/systemd-hibernate-resume@.service \
2327 units/systemd-hybrid-sleep.service
2330 # ------------------------------------------------------------------------------
2332 systemgenerator_PROGRAMS += \
2333 systemd-efi-boot-generator
2335 systemd_efi_boot_generator_SOURCES = \
2336 src/efi-boot-generator/efi-boot-generator.c
2338 systemd_efi_boot_generator_LDADD = \
2339 libsystemd-label.la \
2340 libsystemd-shared.la
2342 # ------------------------------------------------------------------------------
2345 src/boot/boot-loader.h \
2346 src/boot/bootctl.c \
2347 src/boot/boot-loader.c \
2351 libsystemd-shared.la \
2352 libsystemd-internal.la
2357 dist_bashcompletion_DATA += \
2358 shell-completion/bash/bootctl
2360 dist_zshcompletion_DATA += \
2361 shell-completion/zsh/_bootctl
2365 # ------------------------------------------------------------------------------
2367 systemgenerator_PROGRAMS += \
2368 systemd-gpt-auto-generator
2370 systemd_gpt_auto_generator_SOURCES = \
2371 src/gpt-auto-generator/gpt-auto-generator.c \
2372 src/shared/blkid-util.h
2374 systemd_gpt_auto_generator_LDADD = \
2375 libsystemd-label.la \
2376 libsystemd-internal.la \
2377 libudev-internal.la \
2378 libsystemd-shared.la \
2381 systemd_gpt_auto_generator_CFLAGS = \
2386 # ------------------------------------------------------------------------------
2388 systemgenerator_PROGRAMS += \
2389 systemd-dbus1-generator
2391 systemd_dbus1_generator_SOURCES = \
2392 src/dbus1-generator/dbus1-generator.c
2394 systemd_dbus1_generator_LDADD = \
2395 libsystemd-label.la \
2396 libsystemd-shared.la \
2397 libsystemd-internal.la
2399 dbus1-generator-install-hook:
2400 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2401 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2402 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2404 dbus1-generator-uninstall-hook:
2405 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2407 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2408 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2411 # ------------------------------------------------------------------------------
2412 systemd_sysv_generator_SOURCES = \
2413 src/sysv-generator/sysv-generator.c
2415 systemd_sysv_generator_LDADD = \
2416 libsystemd-core.la \
2417 libsystemd-label.la \
2418 libsystemd-shared.la
2420 # ------------------------------------------------------------------------------
2421 systemd_rc_local_generator_SOURCES = \
2422 src/rc-local-generator/rc-local-generator.c
2424 systemd_rc_local_generator_LDADD = \
2425 libsystemd-label.la \
2426 libsystemd-shared.la
2428 # ------------------------------------------------------------------------------
2429 systemd_remount_fs_SOURCES = \
2430 src/remount-fs/remount-fs.c \
2431 src/core/mount-setup.c \
2432 src/core/mount-setup.h
2434 systemd_remount_fs_LDADD = \
2435 libsystemd-label.la \
2436 libsystemd-shared.la
2438 # ------------------------------------------------------------------------------
2439 systemd_cgroups_agent_SOURCES = \
2440 src/cgroups-agent/cgroups-agent.c
2442 systemd_cgroups_agent_LDADD = \
2443 libsystemd-internal.la \
2444 libsystemd-shared.la
2446 # ------------------------------------------------------------------------------
2447 systemd_escape_SOURCES = \
2450 systemd_escape_LDADD = \
2451 libsystemd-shared.la
2453 # -----------------------------------------------------------------------------
2454 systemctl_SOURCES = \
2455 src/systemctl/systemctl.c
2458 libsystemd-units.la \
2459 libsystemd-label.la \
2460 libsystemd-internal.la \
2461 libsystemd-logs.la \
2462 libsystemd-journal-internal.la \
2463 libsystemd-shared.la
2465 # ------------------------------------------------------------------------------
2466 systemd_notify_SOURCES = \
2469 systemd_notify_LDADD = \
2470 libsystemd-internal.la \
2471 libsystemd-shared.la
2473 # ------------------------------------------------------------------------------
2474 systemd_path_SOURCES = \
2477 systemd_path_LDADD = \
2478 libsystemd-internal.la \
2479 libsystemd-shared.la
2481 # ------------------------------------------------------------------------------
2482 systemd_ask_password_SOURCES = \
2483 src/ask-password/ask-password.c
2485 systemd_ask_password_LDADD = \
2486 libsystemd-label.la \
2487 libsystemd-shared.la
2489 # ------------------------------------------------------------------------------
2490 systemd_reply_password_SOURCES = \
2491 src/reply-password/reply-password.c
2493 systemd_reply_password_LDADD = \
2494 libsystemd-shared.la
2496 # ------------------------------------------------------------------------------
2497 systemd_cgls_SOURCES = \
2500 systemd_cgls_LDADD = \
2501 libsystemd-internal.la \
2502 libsystemd-shared.la
2504 # ------------------------------------------------------------------------------
2505 systemd_cgtop_SOURCES = \
2508 systemd_cgtop_LDADD = \
2509 libsystemd-shared.la
2511 # ------------------------------------------------------------------------------
2512 systemd_nspawn_SOURCES = \
2513 src/nspawn/nspawn.c \
2514 src/core/mount-setup.c \
2515 src/core/mount-setup.h \
2516 src/core/loopback-setup.c \
2517 src/core/loopback-setup.h
2519 systemd_nspawn_CFLAGS = \
2524 systemd_nspawn_LDADD = \
2525 libsystemd-label.la \
2526 libsystemd-internal.la \
2527 libudev-internal.la \
2528 libsystemd-shared.la \
2532 systemd_nspawn_LDADD += \
2533 libsystemd-seccomp.la \
2537 # ------------------------------------------------------------------------------
2538 systemd_run_SOURCES = \
2541 systemd_run_LDADD = \
2542 libsystemd-label.la \
2543 libsystemd-internal.la \
2544 libsystemd-shared.la
2546 # ------------------------------------------------------------------------------
2547 systemd_bus_proxyd_SOURCES = \
2548 src/bus-proxyd/bus-proxyd.c \
2549 src/bus-proxyd/bus-policy.c \
2550 src/bus-proxyd/bus-policy.h
2552 systemd_bus_proxyd_LDADD = \
2553 libsystemd-internal.la \
2554 libsystemd-shared.la
2556 bus-proxyd-install-hook:
2557 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
2558 $(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2559 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
2561 bus-proxyd-uninstall-hook:
2562 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2564 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
2565 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
2568 nodist_systemunit_DATA += \
2569 units/systemd-bus-proxyd@.service
2571 dist_systemunit_DATA += \
2572 units/systemd-bus-proxyd.socket
2574 nodist_userunit_DATA += \
2575 units/user/systemd-bus-proxyd@.service
2577 dist_userunit_DATA += \
2578 units/user/systemd-bus-proxyd.socket
2582 units/systemd-bus-proxyd@.service.in \
2583 units/user/systemd-bus-proxyd@.service.in
2585 # ------------------------------------------------------------------------------
2586 systemd_tty_ask_password_agent_SOURCES = \
2587 src/tty-ask-password-agent/tty-ask-password-agent.c
2589 systemd_tty_ask_password_agent_LDADD = \
2590 libsystemd-label.la \
2591 libsystemd-shared.la
2593 # ------------------------------------------------------------------------------
2594 libsystemd_internal_la_SOURCES = \
2595 src/systemd/sd-bus.h \
2596 src/systemd/sd-bus-protocol.h \
2597 src/systemd/sd-bus-vtable.h \
2598 src/systemd/sd-utf8.h \
2599 src/systemd/sd-event.h \
2600 src/systemd/sd-rtnl.h \
2601 src/systemd/sd-resolve.h \
2602 src/systemd/sd-login.h \
2603 src/systemd/sd-id128.h \
2604 src/systemd/sd-daemon.h \
2605 src/systemd/sd-path.h \
2606 src/systemd/sd-network.h \
2607 src/libsystemd/sd-bus/sd-bus.c \
2608 src/libsystemd/sd-bus/bus-control.c \
2609 src/libsystemd/sd-bus/bus-control.h \
2610 src/libsystemd/sd-bus/bus-error.c \
2611 src/libsystemd/sd-bus/bus-error.h \
2612 src/libsystemd/sd-bus/bus-internal.c \
2613 src/libsystemd/sd-bus/bus-internal.h \
2614 src/libsystemd/sd-bus/bus-socket.c \
2615 src/libsystemd/sd-bus/bus-socket.h \
2616 src/libsystemd/sd-bus/bus-kernel.c \
2617 src/libsystemd/sd-bus/bus-kernel.h \
2618 src/libsystemd/sd-bus/bus-container.c \
2619 src/libsystemd/sd-bus/bus-container.h \
2620 src/libsystemd/sd-bus/bus-message.c \
2621 src/libsystemd/sd-bus/bus-message.h \
2622 src/libsystemd/sd-bus/bus-creds.c \
2623 src/libsystemd/sd-bus/bus-creds.h \
2624 src/libsystemd/sd-bus/bus-signature.c \
2625 src/libsystemd/sd-bus/bus-signature.h \
2626 src/libsystemd/sd-bus/bus-type.c \
2627 src/libsystemd/sd-bus/bus-type.h \
2628 src/libsystemd/sd-bus/bus-match.c \
2629 src/libsystemd/sd-bus/bus-match.h \
2630 src/libsystemd/sd-bus/bus-bloom.c \
2631 src/libsystemd/sd-bus/bus-bloom.h \
2632 src/libsystemd/sd-bus/bus-introspect.c \
2633 src/libsystemd/sd-bus/bus-introspect.h \
2634 src/libsystemd/sd-bus/bus-objects.c \
2635 src/libsystemd/sd-bus/bus-objects.h \
2636 src/libsystemd/sd-bus/bus-gvariant.c \
2637 src/libsystemd/sd-bus/bus-gvariant.h \
2638 src/libsystemd/sd-bus/bus-convenience.c \
2639 src/libsystemd/sd-bus/bus-track.c \
2640 src/libsystemd/sd-bus/bus-track.h \
2641 src/libsystemd/sd-bus/bus-util.c \
2642 src/libsystemd/sd-bus/bus-util.h \
2643 src/libsystemd/sd-bus/bus-slot.c \
2644 src/libsystemd/sd-bus/bus-slot.h \
2645 src/libsystemd/sd-bus/bus-protocol.h \
2646 src/libsystemd/sd-bus/kdbus.h \
2647 src/libsystemd/sd-utf8/sd-utf8.c \
2648 src/libsystemd/sd-event/sd-event.c \
2649 src/libsystemd/sd-event/event-util.h \
2650 src/libsystemd/sd-rtnl/sd-rtnl.c \
2651 src/libsystemd/sd-rtnl/rtnl-internal.h \
2652 src/libsystemd/sd-rtnl/rtnl-message.c \
2653 src/libsystemd/sd-rtnl/rtnl-types.h \
2654 src/libsystemd/sd-rtnl/rtnl-types.c \
2655 src/libsystemd/sd-rtnl/rtnl-util.h \
2656 src/libsystemd/sd-rtnl/rtnl-util.c \
2657 src/libsystemd/sd-rtnl/local-addresses.h \
2658 src/libsystemd/sd-rtnl/local-addresses.c \
2659 src/libsystemd/sd-id128/sd-id128.c \
2660 src/libsystemd/sd-daemon/sd-daemon.c \
2661 src/libsystemd/sd-login/sd-login.c \
2662 src/libsystemd/sd-path/sd-path.c \
2663 src/libsystemd/sd-network/sd-network.c \
2664 src/libsystemd/sd-network/network-util.h \
2665 src/libsystemd/sd-network/network-util.c
2667 nodist_libsystemd_internal_la_SOURCES = \
2668 src/libsystemd/libsystemd.sym
2670 libsystemd_internal_la_CFLAGS = \
2674 libsystemd_internal_la_LIBADD = \
2677 libsystemd_resolve_la_SOURCES = \
2678 src/libsystemd/sd-resolve/sd-resolve.c \
2679 src/libsystemd/sd-resolve/resolve-util.h
2681 libsystemd_resolve_la_CFLAGS = \
2685 libsystemd_resolve_la_LIBADD = \
2688 noinst_LTLIBRARIES += \
2689 libsystemd-internal.la \
2690 libsystemd-resolve.la
2692 libsystemd_dump_la_SOURCES = \
2693 src/libsystemd/sd-bus/bus-dump.c \
2694 src/libsystemd/sd-bus/bus-dump.h
2696 noinst_LTLIBRARIES += \
2700 src/libsystemd/libsystemd.sym.m4 \
2701 src/libsystemd/libsystemd.pc.in \
2702 src/libsystemd/sd-bus/DIFFERENCES \
2703 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2706 src/libsystemd/libsystemd.sym
2709 src/libsystemd/libsystemd.sym
2711 libsystemd_la_SOURCES = \
2712 $(libsystemd_internal_la_SOURCES) \
2713 $(libsystemd_resolve_la_SOURCES) \
2714 $(libsystemd_journal_internal_la_SOURCES)
2716 nodist_libsystemd_la_SOURCES = \
2717 $(nodist_libsystemd_internal_la_SOURCES)
2719 libsystemd_la_CFLAGS = \
2720 $(libsystemd_internal_la_CFLAGS) \
2721 $(libsystemd_resolve_la_CFLAGS) \
2722 $(libsystemd_journal_internal_la_CFLAGS)
2724 libsystemd_la_LDFLAGS = \
2726 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2727 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2729 libsystemd_la_LIBADD = \
2730 libsystemd-shared.la \
2731 $(libsystemd_internal_la_LIBADD) \
2732 $(libsystemd_journal_internal_la_LIBADD) \
2733 $(libsystemd_resolve_la_LIBADD)
2735 libsystemd-install-hook:
2736 libname=libsystemd.so && $(move-to-rootlibdir)
2738 libsystemd-uninstall-hook:
2739 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2741 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2742 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2744 pkgconfiglib_DATA += \
2745 src/libsystemd/libsystemd.pc
2747 pkginclude_HEADERS += \
2748 src/systemd/sd-login.h \
2749 src/systemd/sd-id128.h \
2750 src/systemd/sd-daemon.h
2753 pkginclude_HEADERS += \
2754 src/systemd/sd-bus.h \
2755 src/systemd/sd-bus-protocol.h \
2756 src/systemd/sd-bus-vtable.h \
2757 src/systemd/sd-utf8.h \
2758 src/systemd/sd-event.h \
2759 src/systemd/sd-rtnl.h \
2760 src/systemd/sd-resolve.h \
2761 src/systemd/sd-path.h
2764 lib_LTLIBRARIES += \
2769 test-bus-signature \
2775 test-bus-kernel-bloom \
2776 test-bus-kernel-benchmark \
2777 test-bus-zero-copy \
2778 test-bus-introspect \
2790 test_bus_marshal_SOURCES = \
2791 src/libsystemd/sd-bus/test-bus-marshal.c
2793 test_bus_marshal_LDADD = \
2794 libsystemd-dump.la \
2795 libsystemd-internal.la \
2796 libsystemd-shared.la \
2800 test_bus_marshal_CFLAGS = \
2805 test_bus_signature_SOURCES = \
2806 src/libsystemd/sd-bus/test-bus-signature.c
2808 test_bus_signature_LDADD = \
2809 libsystemd-shared.la \
2810 libsystemd-internal.la
2812 test_bus_chat_SOURCES = \
2813 src/libsystemd/sd-bus/test-bus-chat.c
2815 test_bus_chat_CFLAGS = \
2819 test_bus_chat_LDADD = \
2820 libsystemd-internal.la \
2821 libsystemd-shared.la
2823 test_bus_cleanup_SOURCES = \
2824 src/libsystemd/sd-bus/test-bus-cleanup.c
2826 test_bus_cleanup_CFLAGS = \
2830 test_bus_cleanup_LDADD = \
2831 libsystemd-internal.la \
2832 libsystemd-shared.la
2834 test_bus_server_SOURCES = \
2835 src/libsystemd/sd-bus/test-bus-server.c
2837 test_bus_server_CFLAGS = \
2841 test_bus_server_LDADD = \
2842 libsystemd-internal.la \
2843 libsystemd-shared.la
2845 test_bus_objects_SOURCES = \
2846 src/libsystemd/sd-bus/test-bus-objects.c
2848 test_bus_objects_CFLAGS = \
2852 test_bus_objects_LDADD = \
2853 libsystemd-dump.la \
2854 libsystemd-internal.la \
2855 libsystemd-shared.la
2857 test_bus_error_SOURCES = \
2858 src/libsystemd/sd-bus/test-bus-error.c
2860 test_bus_error_LDADD = \
2861 libsystemd-internal.la \
2862 libsystemd-shared.la
2864 test_bus_gvariant_SOURCES = \
2865 src/libsystemd/sd-bus/test-bus-gvariant.c
2867 test_bus_gvariant_LDADD = \
2868 libsystemd-dump.la \
2869 libsystemd-internal.la \
2870 libsystemd-shared.la \
2873 test_bus_gvariant_CFLAGS = \
2877 test_bus_creds_SOURCES = \
2878 src/libsystemd/sd-bus/test-bus-creds.c
2880 test_bus_creds_LDADD = \
2881 libsystemd-dump.la \
2882 libsystemd-internal.la \
2883 libsystemd-shared.la
2885 test_bus_match_SOURCES = \
2886 src/libsystemd/sd-bus/test-bus-match.c
2888 test_bus_match_LDADD = \
2889 libsystemd-internal.la \
2890 libsystemd-shared.la
2892 test_bus_kernel_SOURCES = \
2893 src/libsystemd/sd-bus/test-bus-kernel.c
2895 test_bus_kernel_LDADD = \
2896 libsystemd-dump.la \
2897 libsystemd-internal.la \
2898 libsystemd-shared.la
2900 test_bus_kernel_bloom_SOURCES = \
2901 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
2903 test_bus_kernel_bloom_LDADD = \
2904 libsystemd-internal.la \
2905 libsystemd-shared.la
2907 test_bus_kernel_benchmark_SOURCES = \
2908 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
2910 test_bus_kernel_benchmark_LDADD = \
2911 libsystemd-internal.la \
2912 libsystemd-shared.la
2914 test_bus_zero_copy_SOURCES = \
2915 src/libsystemd/sd-bus/test-bus-zero-copy.c
2917 test_bus_zero_copy_LDADD = \
2918 libsystemd-dump.la \
2919 libsystemd-internal.la \
2920 libsystemd-shared.la
2922 test_bus_introspect_SOURCES = \
2923 src/libsystemd/sd-bus/test-bus-introspect.c
2925 test_bus_introspect_LDADD = \
2926 libsystemd-internal.la \
2927 libsystemd-shared.la
2929 test_event_SOURCES = \
2930 src/libsystemd/sd-event/test-event.c
2932 test_event_LDADD = \
2933 libsystemd-internal.la \
2934 libsystemd-shared.la
2936 test_rtnl_SOURCES = \
2937 src/libsystemd/sd-rtnl/test-rtnl.c
2940 libsystemd-internal.la \
2941 libsystemd-shared.la
2943 test_resolve_SOURCES = \
2944 src/libsystemd/sd-resolve/test-resolve.c
2946 test_resolve_LDADD = \
2947 libsystemd-resolve.la \
2948 libsystemd-internal.la \
2949 libsystemd-shared.la
2951 test_resolve_CFLAGS = \
2956 src/libsystemd/sd-bus/busctl.c \
2957 src/libsystemd/sd-bus/busctl-introspect.c \
2958 src/libsystemd/sd-bus/busctl-introspect.h
2961 libsystemd-dump.la \
2962 libsystemd-internal.la \
2963 libsystemd-shared.la
2965 # ------------------------------------------------------------------------------
2966 noinst_LTLIBRARIES += \
2967 libsystemd-network.la
2969 libsystemd_network_la_CFLAGS = \
2973 libsystemd_network_la_SOURCES = \
2974 src/systemd/sd-dhcp-client.h \
2975 src/systemd/sd-dhcp-server.h \
2976 src/systemd/sd-dhcp-lease.h \
2977 src/systemd/sd-ipv4ll.h \
2978 src/systemd/sd-icmp6-nd.h \
2979 src/systemd/sd-dhcp6-client.h \
2980 src/systemd/sd-dhcp6-lease.h \
2981 src/systemd/sd-pppoe.h \
2982 src/libsystemd-network/sd-dhcp-client.c \
2983 src/libsystemd-network/sd-dhcp-server.c \
2984 src/libsystemd-network/dhcp-network.c \
2985 src/libsystemd-network/dhcp-option.c \
2986 src/libsystemd-network/dhcp-packet.c \
2987 src/libsystemd-network/dhcp-internal.h \
2988 src/libsystemd-network/dhcp-server-internal.h \
2989 src/libsystemd-network/dhcp-protocol.h \
2990 src/libsystemd-network/dhcp-lease-internal.h \
2991 src/libsystemd-network/sd-dhcp-lease.c \
2992 src/libsystemd-network/sd-ipv4ll.c \
2993 src/libsystemd-network/ipv4ll-network.c \
2994 src/libsystemd-network/ipv4ll-packet.c \
2995 src/libsystemd-network/ipv4ll-internal.h \
2996 src/libsystemd-network/sd-pppoe.c \
2997 src/libsystemd-network/network-internal.c \
2998 src/libsystemd-network/network-internal.h \
2999 src/libsystemd-network/sd-icmp6-nd.c \
3000 src/libsystemd-network/sd-dhcp6-client.c \
3001 src/libsystemd-network/dhcp6-internal.h \
3002 src/libsystemd-network/dhcp6-protocol.h \
3003 src/libsystemd-network/dhcp6-network.c \
3004 src/libsystemd-network/dhcp6-option.c \
3005 src/libsystemd-network/dhcp6-lease-internal.h \
3006 src/libsystemd-network/sd-dhcp6-lease.c
3008 libsystemd_network_la_LIBADD = \
3009 libudev-internal.la \
3010 libsystemd-label.la \
3011 libsystemd-internal.la \
3012 libsystemd-shared.la \
3015 test_dhcp_option_SOURCES = \
3016 src/libsystemd-network/dhcp-protocol.h \
3017 src/libsystemd-network/dhcp-internal.h \
3018 src/libsystemd-network/test-dhcp-option.c
3020 test_dhcp_option_LDADD = \
3021 libsystemd-network.la \
3022 libsystemd-internal.la \
3023 libsystemd-shared.la
3025 test_dhcp_client_SOURCES = \
3026 src/systemd/sd-dhcp-client.h \
3027 src/libsystemd-network/dhcp-protocol.h \
3028 src/libsystemd-network/dhcp-internal.h \
3029 src/libsystemd-network/test-dhcp-client.c
3031 test_dhcp_client_LDADD = \
3032 libsystemd-network.la \
3033 libsystemd-label.la \
3034 libsystemd-internal.la \
3035 libsystemd-shared.la
3037 test_dhcp_server_SOURCES = \
3038 src/libsystemd-network/test-dhcp-server.c
3040 test_dhcp_server_LDADD = \
3041 libsystemd-network.la \
3042 libsystemd-internal.la \
3043 libsystemd-shared.la
3045 test_ipv4ll_SOURCES = \
3046 src/systemd/sd-ipv4ll.h \
3047 src/libsystemd-network/ipv4ll-internal.h \
3048 src/libsystemd-network/test-ipv4ll.c
3050 test_ipv4ll_LDADD = \
3051 libsystemd-network.la \
3052 libsystemd-label.la \
3053 libsystemd-internal.la \
3054 libsystemd-shared.la
3056 test_pppoe_SOURCES = \
3057 src/systemd/sd-pppoe.h \
3058 src/libsystemd-network/test-pppoe.c
3060 test_pppoe_LDADD = \
3061 libsystemd-network.la \
3062 libsystemd-shared.la
3064 test_icmp6_rs_SOURCES = \
3065 src/systemd/sd-dhcp6-client.h \
3066 src/systemd/sd-icmp6-nd.h \
3067 src/libsystemd-network/dhcp6-internal.h \
3068 src/libsystemd-network/test-icmp6-rs.c
3070 test_icmp6_rs_LDADD = \
3071 libsystemd-network.la \
3072 libsystemd-internal.la \
3073 libsystemd-shared.la
3075 test_dhcp6_client_SOURCES = \
3076 src/systemd/sd-dhcp6-client.h \
3077 src/libsystemd-network/dhcp6-internal.h \
3078 src/libsystemd-network/test-dhcp6-client.c
3080 test_dhcp6_client_LDADD = \
3081 libsystemd-network.la \
3082 libsystemd-internal.la \
3083 libsystemd-shared.la
3096 # ------------------------------------------------------------------------------
3098 noinst_LTLIBRARIES += \
3099 libsystemd-terminal.la
3101 rootlibexec_PROGRAMS += \
3104 noinst_PROGRAMS += \
3109 dist_pkgdata_DATA += \
3110 src/libsystemd-terminal/unifont-glyph-array.bin
3112 nodist_userunit_DATA += \
3113 units/user/systemd-consoled.service
3115 USER_DEFAULT_TARGET_WANTS += \
3116 systemd-consoled.service
3119 units/user/systemd-consoled.service.in
3127 libsystemd_terminal_la_CFLAGS = \
3131 libsystemd_terminal_la_SOURCES = \
3132 src/libsystemd-terminal/grdev.h \
3133 src/libsystemd-terminal/grdev-internal.h \
3134 src/libsystemd-terminal/grdev.c \
3135 src/libsystemd-terminal/grdev-drm.c \
3136 src/libsystemd-terminal/idev.h \
3137 src/libsystemd-terminal/idev-internal.h \
3138 src/libsystemd-terminal/idev.c \
3139 src/libsystemd-terminal/idev-evdev.c \
3140 src/libsystemd-terminal/idev-keyboard.c \
3141 src/libsystemd-terminal/sysview.h \
3142 src/libsystemd-terminal/sysview-internal.h \
3143 src/libsystemd-terminal/sysview.c \
3144 src/libsystemd-terminal/term.h \
3145 src/libsystemd-terminal/term-internal.h \
3146 src/libsystemd-terminal/term-charset.c \
3147 src/libsystemd-terminal/term-page.c \
3148 src/libsystemd-terminal/term-parser.c \
3149 src/libsystemd-terminal/term-screen.c \
3150 src/libsystemd-terminal/term-wcwidth.c \
3151 src/libsystemd-terminal/unifont.h \
3152 src/libsystemd-terminal/unifont-def.h \
3153 src/libsystemd-terminal/unifont.c
3155 libsystemd_terminal_la_LIBADD = \
3156 libudev-internal.la \
3157 libsystemd-internal.la \
3158 libsystemd-shared.la \
3161 systemd_consoled_CFLAGS = \
3165 systemd_consoled_SOURCES = \
3166 src/console/consoled.h \
3167 src/console/consoled.c \
3168 src/console/consoled-display.c \
3169 src/console/consoled-manager.c \
3170 src/console/consoled-session.c \
3171 src/console/consoled-terminal.c \
3172 src/console/consoled-workspace.c
3174 systemd_consoled_LDADD = \
3175 libsystemd-terminal.la \
3176 libsystemd-internal.la \
3177 libsystemd-shared.la \
3180 systemd_evcat_CFLAGS = \
3184 systemd_evcat_SOURCES = \
3185 src/libsystemd-terminal/evcat.c
3187 systemd_evcat_LDADD = \
3188 libsystemd-terminal.la \
3189 libsystemd-internal.la \
3190 libsystemd-shared.la \
3193 systemd_modeset_CFLAGS = \
3197 systemd_modeset_SOURCES = \
3198 src/libsystemd-terminal/modeset.c
3200 systemd_modeset_LDADD = \
3201 libsystemd-terminal.la \
3202 libsystemd-internal.la \
3203 libsystemd-shared.la \
3206 systemd_subterm_SOURCES = \
3207 src/libsystemd-terminal/subterm.c
3209 systemd_subterm_LDADD = \
3210 libsystemd-terminal.la \
3211 libsystemd-internal.la \
3212 libsystemd-shared.la
3214 test_term_page_SOURCES = \
3215 src/libsystemd-terminal/test-term-page.c
3217 test_term_page_LDADD = \
3218 libsystemd-terminal.la \
3219 libsystemd-internal.la \
3220 libsystemd-shared.la
3222 test_term_parser_SOURCES = \
3223 src/libsystemd-terminal/test-term-parser.c
3225 test_term_parser_LDADD = \
3226 libsystemd-terminal.la \
3227 libsystemd-internal.la \
3228 libsystemd-shared.la
3230 test_unifont_SOURCES = \
3231 src/libsystemd-terminal/test-unifont.c
3233 test_unifont_LDADD = \
3234 libsystemd-terminal.la \
3235 libsystemd-internal.la \
3236 libsystemd-shared.la
3238 .PHONY: update-unifont
3239 update-unifont: tools/compile-unifont.py
3240 $(AM_V_GEN)$(PYTHON) $< \
3241 <$(top_srcdir)/src/libsystemd-terminal/unifont.hex \
3242 >$(top_srcdir)/src/libsystemd-terminal/unifont-glyph-array.bin
3243 @echo "unifont-glyph-array.bin has been regenerated"
3245 # ------------------------------------------------------------------------------
3255 include_HEADERS += \
3256 src/libudev/libudev.h
3258 lib_LTLIBRARIES += \
3261 libudev_la_SOURCES =\
3262 src/libudev/libudev.sym \
3263 src/libudev/libudev-private.h \
3264 src/libudev/libudev.c \
3265 src/libudev/libudev-list.c \
3266 src/libudev/libudev-util.c \
3267 src/libudev/libudev-device.c \
3268 src/libudev/libudev-enumerate.c \
3269 src/libudev/libudev-monitor.c \
3270 src/libudev/libudev-queue.c \
3271 src/libudev/libudev-hwdb-def.h \
3272 src/libudev/libudev-hwdb.c
3274 libudev_la_CFLAGS = \
3278 libudev_la_LDFLAGS = \
3280 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3281 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3283 libudev_la_LIBADD = \
3284 libsystemd-internal.la \
3285 libsystemd-shared.la
3287 pkgconfiglib_DATA += \
3288 src/libudev/libudev.pc
3291 src/libudev/libudev.pc.in
3294 src/libudev/libudev.pc \
3299 $(AM_V_at)$(MKDIR_P) $(dir $@)
3300 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
3303 $(AM_V_at)$(MKDIR_P) $(dir $@)
3304 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
3306 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3307 libudev-install-hook:
3308 libname=libudev.so && $(move-to-rootlibdir)
3310 libudev-uninstall-hook:
3311 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3313 INSTALL_EXEC_HOOKS += libudev-install-hook
3314 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3316 # ------------------------------------------------------------------------------
3317 noinst_LTLIBRARIES += \
3320 libudev_internal_la_SOURCES =\
3321 $(libudev_la_SOURCES) \
3322 src/libudev/libudev-device-private.c
3324 libudev_internal_la_CFLAGS = \
3326 -fvisibility=default
3328 # ------------------------------------------------------------------------------
3330 $(sysconfdir)/udev/rules.d \
3331 $(sysconfdir)/udev/hwdb.d
3333 dist_network_DATA = \
3334 network/99-default.link \
3335 network/80-container-host0.network \
3336 network/80-container-ve.network
3338 dist_udevrules_DATA += \
3339 rules/42-usb-hid-pm.rules \
3340 rules/50-udev-default.rules \
3341 rules/60-drm.rules \
3342 rules/60-keyboard.rules \
3343 rules/70-mouse.rules \
3344 rules/60-persistent-storage-tape.rules \
3345 rules/60-persistent-serial.rules \
3346 rules/60-persistent-input.rules \
3347 rules/60-persistent-alsa.rules \
3348 rules/60-persistent-storage.rules \
3349 rules/64-btrfs.rules \
3350 rules/75-net-description.rules \
3351 rules/75-tty-description.rules \
3352 rules/78-sound-card.rules \
3353 rules/80-net-setup-link.rules \
3354 rules/95-udev-late.rules
3356 nodist_udevrules_DATA += \
3357 rules/99-systemd.rules
3359 dist_udevhwdb_DATA = \
3360 hwdb/20-pci-vendor-model.hwdb \
3361 hwdb/20-pci-classes.hwdb \
3362 hwdb/20-usb-vendor-model.hwdb \
3363 hwdb/20-usb-classes.hwdb \
3364 hwdb/20-sdio-vendor-model.hwdb \
3365 hwdb/20-sdio-classes.hwdb \
3366 hwdb/20-bluetooth-vendor-product.hwdb \
3367 hwdb/20-acpi-vendor.hwdb \
3369 hwdb/20-net-ifname.hwdb \
3370 hwdb/60-keyboard.hwdb \
3373 udevconfdir = $(sysconfdir)/udev
3374 dist_udevconf_DATA = \
3377 sharepkgconfigdir = $(datadir)/pkgconfig
3378 sharepkgconfig_DATA = \
3382 rules/99-systemd.rules.in \
3386 rules/99-systemd.rules \
3390 units/systemd-udevd.service.in \
3391 units/systemd-udev-trigger.service.in \
3392 units/systemd-udev-settle.service.in \
3393 units/systemd-udev-hwdb-update.service.in
3396 units/systemd-udevd.service \
3397 units/systemd-udev-trigger.service \
3398 units/systemd-udev-settle.service \
3399 units/systemd-udev-hwdb-update.service
3401 SOCKETS_TARGET_WANTS += \
3402 systemd-udevd-control.socket \
3403 systemd-udevd-kernel.socket
3405 SYSINIT_TARGET_WANTS += \
3406 systemd-udevd.service \
3407 systemd-udev-trigger.service \
3408 systemd-udev-hwdb-update.service
3410 rootbin_PROGRAMS += \
3413 rootlibexec_PROGRAMS += \
3416 noinst_LTLIBRARIES += \
3419 src/udev/keyboard-keys.txt:
3420 $(AM_V_at)$(MKDIR_P) $(dir $@)
3421 $(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/' > $@
3423 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
3424 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3426 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3427 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3429 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
3430 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
3432 libudev_core_la_SOURCES = \
3434 src/udev/udev-event.c \
3435 src/udev/udev-watch.c \
3436 src/udev/udev-node.c \
3437 src/udev/udev-rules.c \
3438 src/udev/udev-ctrl.c \
3439 src/udev/udev-builtin.c \
3440 src/udev/udev-builtin-btrfs.c \
3441 src/udev/udev-builtin-hwdb.c \
3442 src/udev/udev-builtin-input_id.c \
3443 src/udev/udev-builtin-keyboard.c \
3444 src/udev/udev-builtin-net_id.c \
3445 src/udev/udev-builtin-net_setup_link.c \
3446 src/udev/udev-builtin-path_id.c \
3447 src/udev/udev-builtin-usb_id.c \
3448 src/udev/net/link-config.h \
3449 src/udev/net/link-config.c \
3450 src/udev/net/ethtool-util.h \
3451 src/udev/net/ethtool-util.c
3453 nodist_libudev_core_la_SOURCES = \
3454 src/udev/keyboard-keys-from-name.h \
3455 src/udev/keyboard-keys-to-name.h \
3456 src/udev/net/link-config-gperf.c
3459 $(nodist_libudev_core_la_SOURCES)
3462 src/udev/keyboard-keys-from-name.gperf \
3463 src/udev/keyboard-keys.txt \
3464 src/udev/net/link-config-gperf.c
3467 src/udev/net/link-config-gperf.gperf
3469 libudev_core_la_CFLAGS = \
3474 libudev_core_la_LIBADD = \
3475 libudev-internal.la \
3476 libsystemd-label.la \
3477 libsystemd-internal.la \
3478 libsystemd-network.la \
3479 libsystemd-shared.la \
3484 libudev_core_la_SOURCES += \
3485 src/udev/udev-builtin-kmod.c
3487 dist_udevrules_DATA += \
3488 rules/80-drivers.rules
3492 libudev_core_la_SOURCES += \
3493 src/udev/udev-builtin-blkid.c
3497 libudev_core_la_SOURCES += \
3498 src/udev/udev-builtin-uaccess.c \
3499 src/login/logind-acl.c \
3500 src/libsystemd/sd-login/sd-login.c \
3501 src/systemd/sd-login.h
3503 libudev_core_la_LIBADD += \
3507 systemd_udevd_SOURCES = \
3510 systemd_udevd_LDADD = \
3514 src/udev/udevadm.c \
3515 src/udev/udevadm-info.c \
3516 src/udev/udevadm-control.c \
3517 src/udev/udevadm-monitor.c \
3518 src/udev/udevadm-hwdb.c \
3519 src/udev/udevadm-settle.c \
3520 src/udev/udevadm-trigger.c \
3521 src/udev/udevadm-test.c \
3522 src/udev/udevadm-test-builtin.c \
3523 src/udev/udevadm-util.c \
3524 src/udev/udevadm-util.h
3529 # Update hwdb on installation. Do not bother if installing
3530 # in DESTDIR, since this is likely for packaging purposes.
3532 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
3534 INSTALL_DATA_HOOKS += \
3538 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3540 # ------------------------------------------------------------------------------
3549 test_libudev_SOURCES = \
3550 src/test/test-libudev.c
3552 test_libudev_LDADD = \
3553 libsystemd-label.la \
3554 libudev-internal.la \
3555 libsystemd-shared.la
3557 test_udev_SOURCES = \
3558 src/test/test-udev.c
3567 test_udev_LDADD += \
3574 # packed sysfs test tree
3576 $(AM_V_at)$(MKDIR_P) $(dir $@)
3577 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3581 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3586 test/rules-test.sh \
3587 test/rule-syntax-check.py
3589 # ------------------------------------------------------------------------------
3591 src/udev/ata_id/ata_id.c
3594 libudev-internal.la \
3595 libsystemd-shared.la
3597 udevlibexec_PROGRAMS += \
3600 # ------------------------------------------------------------------------------
3601 cdrom_id_SOURCES = \
3602 src/udev/cdrom_id/cdrom_id.c
3605 libudev-internal.la \
3606 libsystemd-shared.la
3608 udevlibexec_PROGRAMS += \
3611 dist_udevrules_DATA += \
3612 rules/60-cdrom_id.rules
3614 # ------------------------------------------------------------------------------
3616 src/udev/collect/collect.c
3619 libudev-internal.la \
3620 libsystemd-shared.la
3622 udevlibexec_PROGRAMS += \
3625 # ------------------------------------------------------------------------------
3627 src/udev/scsi_id/scsi_id.c \
3628 src/udev/scsi_id/scsi_serial.c \
3629 src/udev/scsi_id/scsi.h \
3630 src/udev/scsi_id/scsi_id.h
3633 libudev-internal.la \
3634 libsystemd-shared.la
3636 udevlibexec_PROGRAMS += \
3640 src/udev/scsi_id/README
3642 # ------------------------------------------------------------------------------
3644 src/udev/v4l_id/v4l_id.c
3649 udevlibexec_PROGRAMS += \
3652 dist_udevrules_DATA += \
3653 rules/60-persistent-v4l.rules
3655 # ------------------------------------------------------------------------------
3656 accelerometer_SOURCES = \
3657 src/udev/accelerometer/accelerometer.c
3659 accelerometer_LDADD = \
3660 libudev-internal.la -lm \
3661 libsystemd-shared.la
3663 udevlibexec_PROGRAMS += \
3666 dist_udevrules_DATA += \
3667 rules/61-accelerometer.rules
3669 # ------------------------------------------------------------------------------
3676 libgudev_includedir = \
3677 $(includedir)/gudev-1.0/gudev
3679 libgudev_include_HEADERS = \
3681 src/gudev/gudevenums.h \
3682 src/gudev/gudevenumtypes.h \
3683 src/gudev/gudevtypes.h \
3684 src/gudev/gudevclient.h \
3685 src/gudev/gudevdevice.h \
3686 src/gudev/gudevenumerator.h
3688 lib_LTLIBRARIES += libgudev-1.0.la
3690 pkgconfiglib_DATA += \
3691 src/gudev/gudev-1.0.pc
3694 src/gudev/gudev-1.0.pc
3696 libgudev_1_0_la_SOURCES = \
3697 src/gudev/libgudev-1.0.sym \
3698 src/gudev/gudevenums.h \
3699 src/gudev/gudevenumtypes.h \
3700 src/gudev/gudevenumtypes.h\
3701 src/gudev/gudevtypes.h \
3702 src/gudev/gudevclient.h \
3703 src/gudev/gudevclient.c \
3704 src/gudev/gudevdevice.h \
3705 src/gudev/gudevdevice.c \
3706 src/gudev/gudevenumerator.h \
3707 src/gudev/gudevenumerator.c \
3708 src/gudev/gudevprivate.h
3710 nodist_libgudev_1_0_la_SOURCES = \
3711 src/gudev/gudevmarshal.h \
3712 src/gudev/gudevmarshal.c \
3713 src/gudev/gudevenumtypes.h \
3714 src/gudev/gudevenumtypes.c
3717 $(nodist_libgudev_1_0_la_SOURCES)
3719 libgudev_1_0_la_CPPFLAGS = \
3721 -I$(top_builddir)/src\
3722 -I$(top_srcdir)/src\
3723 -I$(top_builddir)/src/gudev \
3724 -I$(top_srcdir)/src/gudev \
3725 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3726 -D_GUDEV_COMPILATION \
3727 -DG_LOG_DOMAIN=\"GUdev\"
3729 libgudev_1_0_la_CFLAGS = \
3731 -fvisibility=default \
3734 libgudev_1_0_la_LIBADD = \
3738 libgudev_1_0_la_LDFLAGS = \
3740 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3743 -Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym
3745 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3746 $(AM_V_at)$(MKDIR_P) $(dir $@)
3747 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3749 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3750 $(AM_V_at)$(MKDIR_P) $(dir $@)
3751 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3752 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3754 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3755 $(AM_V_at)$(MKDIR_P) $(dir $@)
3756 $(AM_V_GEN)glib-mkenums --template $^ > $@
3758 if HAVE_INTROSPECTION
3759 -include $(INTROSPECTION_MAKEFILE)
3761 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3763 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3765 src_gudev_GUdev_1_0_gir_CFLAGS = \
3768 -D_GUDEV_COMPILATION \
3769 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3770 -I$(top_srcdir)/src \
3771 -I$(top_builddir)/src \
3772 -I$(top_srcdir)/src/gudev \
3773 -I$(top_builddir)/src/gudev
3775 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
3777 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
3778 --pkg-export=gudev-1.0 \
3781 src_gudev_GUdev_1_0_gir_FILES = \
3783 src/gudev/gudevtypes.h \
3784 src/gudev/gudevenums.h \
3785 src/gudev/gudevenumtypes.h \
3786 src/gudev/gudevclient.h \
3787 src/gudev/gudevdevice.h \
3788 src/gudev/gudevenumerator.h \
3789 src/gudev/gudevclient.c \
3790 src/gudev/gudevdevice.c \
3791 src/gudev/gudevenumerator.c
3793 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
3794 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
3796 girdir = $(datadir)/gir-1.0
3798 src/gudev/GUdev-1.0.gir
3800 typelibsdir = $(libdir)/girepository-1.0
3802 src/gudev/GUdev-1.0.typelib
3804 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
3805 endif # HAVE_INTROSPECTION
3809 src/gudev/gudev-1.0.pc.in \
3810 src/gudev/gudevmarshal.list \
3811 src/gudev/gudevenumtypes.h.template \
3812 src/gudev/gudevenumtypes.c.template \
3813 src/gudev/gjs-example.js \
3814 src/gudev/seed-example-enum.js \
3815 src/gudev/seed-example.js
3817 # ------------------------------------------------------------------------------
3818 mtd_probe_SOURCES = \
3819 src/udev/mtd_probe/mtd_probe.c \
3820 src/udev/mtd_probe/mtd_probe.h \
3821 src/udev/mtd_probe/probe_smartmedia.c
3823 dist_udevrules_DATA += \
3824 rules/75-probe_mtd.rules
3826 udevlibexec_PROGRAMS += \
3829 # ------------------------------------------------------------------------------
3830 test_id128_SOURCES = \
3831 src/test/test-id128.c
3833 test_id128_LDADD = \
3834 libsystemd-internal.la \
3835 libsystemd-shared.la
3840 # ------------------------------------------------------------------------------
3842 rootlibexec_PROGRAMS += \
3845 systemd_activate_SOURCES = \
3846 src/activate/activate.c
3848 systemd_activate_LDADD = \
3849 libsystemd-label.la \
3850 libsystemd-internal.la \
3851 libsystemd-shared.la
3853 # ------------------------------------------------------------------------------
3854 systemd_journald_SOURCES = \
3855 src/journal/journald.c \
3856 src/journal/journald-server.h
3858 systemd_journald_LDADD = \
3859 libsystemd-journal-core.la \
3860 libsystemd-internal.la \
3861 libsystemd-shared.la
3863 systemd_cat_SOURCES = \
3866 systemd_cat_LDADD = \
3867 libsystemd-journal-core.la
3870 rootlibexec_PROGRAMS += \
3871 systemd-journal-remote
3873 systemd_journal_remote_SOURCES = \
3874 src/journal-remote/journal-remote-parse.h \
3875 src/journal-remote/journal-remote-parse.c \
3876 src/journal-remote/journal-remote-write.h \
3877 src/journal-remote/journal-remote-write.c \
3878 src/journal-remote/journal-remote.h \
3879 src/journal-remote/journal-remote.c
3881 systemd_journal_remote_LDADD = \
3882 libsystemd-internal.la \
3883 libsystemd-journal-core.la
3885 systemd_journal_remote_SOURCES += \
3886 src/journal-remote/microhttpd-util.h \
3887 src/journal-remote/microhttpd-util.c
3889 systemd_journal_remote_CFLAGS = \
3891 $(MICROHTTPD_CFLAGS)
3893 systemd_journal_remote_LDADD += \
3897 dist_sysusers_DATA += \
3898 sysusers.d/systemd-remote.conf
3902 dist_tmpfiles_DATA += \
3903 tmpfiles.d/systemd-remote.conf
3907 systemd_journal_remote_LDADD += \
3910 # systemd-journal-remote make sense mostly with full crypto stack
3911 dist_systemunit_DATA += \
3912 units/systemd-journal-remote.socket
3914 nodist_systemunit_DATA += \
3915 units/systemd-journal-remote.service
3918 units/systemd-journal-remote.service.in
3920 journal-remote-install-hook: journal-install-hook
3921 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
3922 -chown 0:0 $(DESTDIR)/var/log/journal/remote
3923 -chmod 755 $(DESTDIR)/var/log/journal/remote
3925 INSTALL_EXEC_HOOKS += journal-remote-install-hook
3929 nodist_pkgsysconf_DATA += \
3930 src/journal-remote/journal-remote.conf
3933 src/journal-remote/journal-remote.conf.in
3936 src/journal-remote/journal-remote.conf
3940 rootlibexec_PROGRAMS += \
3941 systemd-journal-upload
3943 systemd_journal_upload_SOURCES = \
3944 src/journal-remote/journal-upload.h \
3945 src/journal-remote/journal-upload.c \
3946 src/journal-remote/journal-upload-journal.c
3948 systemd_journal_upload_CFLAGS = \
3952 systemd_journal_upload_LDADD = \
3953 libsystemd-internal.la \
3954 libsystemd-journal-internal.la \
3955 libsystemd-shared.la \
3958 nodist_systemunit_DATA += \
3959 units/systemd-journal-upload.service
3962 units/systemd-journal-upload.service.in
3964 nodist_pkgsysconf_DATA += \
3965 src/journal-remote/journal-upload.conf
3968 src/journal-remote/journal-upload.conf.in
3971 src/journal-remote/journal-upload.conf
3974 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3975 journalctl_CFLAGS = \
3978 journalctl_SOURCES = \
3979 src/journal/journalctl.c
3981 journalctl_LDADD = \
3982 libsystemd-journal-internal.la \
3983 libsystemd-internal.la \
3984 libsystemd-logs.la \
3985 libsystemd-shared.la
3988 journalctl_LDADD += \
3993 journalctl_SOURCES += \
3994 src/journal/journal-qrcode.c \
3995 src/journal/journal-qrcode.h
3997 journalctl_CFLAGS += \
4000 journalctl_LDADD += \
4004 test_journal_SOURCES = \
4005 src/journal/test-journal.c
4007 test_journal_LDADD = \
4008 libsystemd-journal-core.la
4010 test_journal_send_SOURCES = \
4011 src/journal/test-journal-send.c
4013 test_journal_send_LDADD = \
4014 libsystemd-journal-core.la
4016 test_journal_syslog_SOURCES = \
4017 src/journal/test-journal-syslog.c
4019 test_journal_syslog_LDADD = \
4020 libsystemd-journal-core.la
4022 test_journal_match_SOURCES = \
4023 src/journal/test-journal-match.c
4025 test_journal_match_LDADD = \
4026 libsystemd-journal-core.la
4028 test_journal_enum_SOURCES = \
4029 src/journal/test-journal-enum.c
4031 test_journal_enum_LDADD = \
4032 libsystemd-journal-core.la
4034 test_journal_stream_SOURCES = \
4035 src/journal/test-journal-stream.c
4037 test_journal_stream_LDADD = \
4038 libsystemd-journal-core.la
4040 test_journal_flush_SOURCES = \
4041 src/journal/test-journal-flush.c
4043 test_journal_flush_LDADD = \
4044 libsystemd-journal-core.la
4046 test_journal_init_SOURCES = \
4047 src/journal/test-journal-init.c
4049 test_journal_init_LDADD = \
4050 libsystemd-journal-core.la
4052 test_journal_verify_SOURCES = \
4053 src/journal/test-journal-verify.c
4055 test_journal_verify_LDADD = \
4056 libsystemd-journal-core.la
4058 test_journal_interleaving_SOURCES = \
4059 src/journal/test-journal-interleaving.c
4061 test_journal_interleaving_LDADD = \
4062 libsystemd-journal-core.la
4064 test_mmap_cache_SOURCES = \
4065 src/journal/test-mmap-cache.c
4067 test_mmap_cache_LDADD = \
4068 libsystemd-journal-core.la
4070 test_catalog_SOURCES = \
4071 src/journal/test-catalog.c
4073 test_catalog_CPPFLAGS = \
4075 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
4077 test_catalog_LDADD = \
4078 libsystemd-journal-core.la
4080 test_compress_SOURCES = \
4081 src/journal/test-compress.c
4083 test_compress_LDADD = \
4084 libsystemd-journal-internal.la \
4085 libsystemd-shared.la
4087 test_compress_benchmark_SOURCES = \
4088 src/journal/test-compress-benchmark.c
4090 test_compress_benchmark_LDADD = \
4091 libsystemd-journal-internal.la \
4092 libsystemd-shared.la
4094 libsystemd_journal_core_la_SOURCES = \
4095 src/journal/journald-kmsg.c \
4096 src/journal/journald-kmsg.h \
4097 src/journal/journald-syslog.c \
4098 src/journal/journald-syslog.h \
4099 src/journal/journald-stream.c \
4100 src/journal/journald-stream.h \
4101 src/journal/journald-server.c \
4102 src/journal/journald-server.h \
4103 src/journal/journald-console.c \
4104 src/journal/journald-console.h \
4105 src/journal/journald-wall.c \
4106 src/journal/journald-wall.h \
4107 src/journal/journald-native.c \
4108 src/journal/journald-native.h \
4109 src/journal/journald-audit.c \
4110 src/journal/journald-audit.h \
4111 src/journal/journald-rate-limit.c \
4112 src/journal/journald-rate-limit.h \
4113 src/journal/journal-internal.h
4115 nodist_libsystemd_journal_core_la_SOURCES = \
4116 src/journal/journald-gperf.c
4118 libsystemd_journal_core_la_LIBADD = \
4119 libsystemd-journal-internal.la \
4120 libudev-internal.la \
4121 libsystemd-label.la \
4122 libsystemd-internal.la \
4123 libsystemd-shared.la
4126 libsystemd_journal_core_la_LIBADD += \
4130 noinst_LTLIBRARIES += \
4131 libsystemd-journal-core.la
4133 journal-install-hook:
4134 -$(MKDIR_P) $(DESTDIR)/var/log/journal
4135 -chown 0:0 $(DESTDIR)/var/log/journal
4136 -chmod 755 $(DESTDIR)/var/log/journal
4137 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4138 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4140 journal-uninstall-hook:
4141 -rmdir $(DESTDIR)/var/log/journal/remote
4142 -rmdir $(DESTDIR)/var/log/journal/
4144 INSTALL_EXEC_HOOKS += journal-install-hook
4145 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4147 # ------------------------------------------------------------------------------
4148 # Update catalog on installation. Do not bother if installing
4149 # in DESTDIR, since this is likely for packaging purposes.
4150 catalog-update-hook:
4151 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4153 INSTALL_DATA_HOOKS += \
4156 catalog-remove-hook:
4157 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4159 UNINSTALL_DATA_HOOKS += \
4168 test-journal-syslog \
4169 test-journal-match \
4170 test-journal-stream \
4172 test-journal-verify \
4173 test-journal-interleaving \
4174 test-journal-flush \
4181 test-compress-benchmark
4184 pkginclude_HEADERS += \
4185 src/systemd/sd-journal.h \
4186 src/systemd/sd-messages.h \
4187 src/systemd/_sd-common.h
4189 libsystemd_journal_internal_la_SOURCES = \
4190 src/journal/sd-journal.c \
4191 src/systemd/sd-journal.h \
4192 src/systemd/_sd-common.h \
4193 src/journal/journal-file.c \
4194 src/journal/journal-file.h \
4195 src/journal/journal-vacuum.c \
4196 src/journal/journal-vacuum.h \
4197 src/journal/journal-verify.c \
4198 src/journal/journal-verify.h \
4199 src/journal/lookup3.c \
4200 src/journal/lookup3.h \
4201 src/journal/journal-send.c \
4202 src/journal/journal-def.h \
4203 src/journal/compress.h \
4204 src/journal/catalog.c \
4205 src/journal/catalog.h \
4206 src/journal/mmap-cache.c \
4207 src/journal/mmap-cache.h
4209 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4210 libsystemd_journal_internal_la_CFLAGS = \
4213 libsystemd_journal_internal_la_LIBADD =
4215 libsystemd_journal_internal_la_SOURCES += \
4216 src/journal/compress.c
4219 libsystemd_journal_internal_la_CFLAGS += \
4222 libsystemd_journal_internal_la_LIBADD += \
4227 libsystemd_journal_internal_la_LIBADD += \
4232 libsystemd_journal_internal_la_SOURCES += \
4233 src/journal/journal-authenticate.c \
4234 src/journal/journal-authenticate.h \
4235 src/journal/fsprg.c \
4238 libsystemd_journal_internal_la_LIBADD += \
4241 # fsprg.c is a drop-in file using void pointer arithmetic
4242 libsystemd_journal_internal_la_CFLAGS += \
4247 noinst_LTLIBRARIES += \
4248 libsystemd-journal-internal.la
4250 rootlibexec_PROGRAMS += \
4253 rootbin_PROGRAMS += \
4259 dist_systemunit_DATA += \
4260 units/systemd-journald.socket \
4261 units/systemd-journald-dev-log.socket \
4262 units/systemd-journald-audit.socket
4264 nodist_systemunit_DATA += \
4265 units/systemd-journald.service \
4266 units/systemd-journal-flush.service \
4267 units/systemd-journal-catalog-update.service
4269 dist_pkgsysconf_DATA += \
4270 src/journal/journald.conf
4272 dist_catalog_DATA = \
4273 catalog/systemd.fr.catalog \
4274 catalog/systemd.it.catalog \
4275 catalog/systemd.pl.catalog \
4276 catalog/systemd.ru.catalog \
4277 catalog/systemd.catalog
4279 SOCKETS_TARGET_WANTS += \
4280 systemd-journald.socket \
4281 systemd-journald-dev-log.socket \
4282 systemd-journald-audit.socket
4284 SYSINIT_TARGET_WANTS += \
4285 systemd-journald.service \
4286 systemd-journal-flush.service \
4287 systemd-journal-catalog-update.service
4290 units/systemd-journald.service.in \
4291 units/systemd-journal-flush.service.in \
4292 units/systemd-journal-catalog-update.service.in \
4293 src/journal/journald-gperf.gperf
4296 src/journal/journald-gperf.c
4298 # ------------------------------------------------------------------------------
4300 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4302 rootlibexec_PROGRAMS += \
4303 systemd-journal-gatewayd
4305 systemd_journal_gatewayd_SOURCES = \
4306 src/journal-remote/journal-gatewayd.c \
4307 src/journal-remote/microhttpd-util.h \
4308 src/journal-remote/microhttpd-util.c
4310 systemd_journal_gatewayd_LDADD = \
4311 libsystemd-logs.la \
4312 libsystemd-journal-internal.la \
4313 libsystemd-internal.la \
4314 libsystemd-shared.la \
4318 systemd_journal_gatewayd_LDADD += \
4322 systemd_journal_gatewayd_CFLAGS = \
4324 $(MICROHTTPD_CFLAGS)
4326 systemd_journal_gatewayd_CPPFLAGS = \
4328 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4330 dist_systemunit_DATA += \
4331 units/systemd-journal-gatewayd.socket
4333 nodist_systemunit_DATA += \
4334 units/systemd-journal-gatewayd.service
4336 dist_gatewayddocumentroot_DATA = \
4337 src/journal-remote/browse.html
4342 units/systemd-journal-gatewayd.service.in
4344 # ------------------------------------------------------------------------------
4346 systemd_socket_proxyd_SOURCES = \
4347 src/socket-proxy/socket-proxyd.c
4349 systemd_socket_proxyd_LDADD = \
4350 libsystemd-logs.la \
4351 libsystemd-internal.la \
4352 libsystemd-journal-internal.la \
4353 libsystemd-shared.la \
4354 libsystemd-resolve.la
4356 # ------------------------------------------------------------------------------
4358 systemd_coredump_SOURCES = \
4359 src/journal/coredump.c \
4360 src/journal/coredump-vacuum.c \
4361 src/journal/coredump-vacuum.h
4363 systemd_coredump_LDADD = \
4364 libsystemd-journal-internal.la \
4365 libsystemd-label.la \
4366 libsystemd-internal.la \
4367 libsystemd-shared.la
4370 systemd_coredump_SOURCES += \
4371 src/journal/stacktrace.c \
4372 src/journal/stacktrace.h
4374 systemd_coredump_LDADD += \
4378 rootlibexec_PROGRAMS += \
4381 dist_pkgsysconf_DATA += \
4382 src/journal/coredump.conf
4385 systemd_coredump_LDADD += \
4389 coredumpctl_SOURCES = \
4390 src/journal/coredumpctl.c
4392 coredumpctl_LDADD = \
4393 libsystemd-journal-internal.la \
4394 libsystemd-internal.la \
4395 libsystemd-shared.la
4401 test-coredump-vacuum
4403 test_coredump_vacuum_SOURCES = \
4404 src/journal/test-coredump-vacuum.c \
4405 src/journal/coredump-vacuum.c \
4406 src/journal/coredump-vacuum.h
4408 test_coredump_vacuum_LDADD = \
4409 libsystemd-internal.la \
4410 libsystemd-shared.la
4412 dist_bashcompletion_DATA += \
4413 shell-completion/bash/coredumpctl
4415 dist_zshcompletion_DATA += \
4416 shell-completion/zsh/_coredumpctl
4419 sysctl.d/50-coredump.conf
4422 sysctl.d/50-coredump.conf
4426 sysctl.d/50-coredump.conf.in
4428 # ------------------------------------------------------------------------------
4430 systemd_binfmt_SOURCES = \
4433 systemd_binfmt_LDADD = \
4434 libsystemd-shared.la
4436 rootlibexec_PROGRAMS += \
4439 dist_systemunit_DATA += \
4440 units/proc-sys-fs-binfmt_misc.automount \
4441 units/proc-sys-fs-binfmt_misc.mount
4443 nodist_systemunit_DATA += \
4444 units/systemd-binfmt.service
4447 $(prefix)/lib/binfmt.d \
4448 $(sysconfdir)/binfmt.d
4450 SYSINIT_TARGET_WANTS += \
4451 systemd-binfmt.service \
4452 proc-sys-fs-binfmt_misc.automount
4457 units/systemd-binfmt.service.in
4459 # ------------------------------------------------------------------------------
4461 systemd_vconsole_setup_SOURCES = \
4462 src/vconsole/vconsole-setup.c
4464 systemd_vconsole_setup_LDADD = \
4465 libsystemd-shared.la
4467 rootlibexec_PROGRAMS += \
4468 systemd-vconsole-setup
4470 nodist_systemunit_DATA += \
4471 units/systemd-vconsole-setup.service
4473 dist_udevrules_DATA += \
4474 src/vconsole/90-vconsole.rules
4476 SYSINIT_TARGET_WANTS += \
4477 systemd-vconsole-setup.service
4481 units/systemd-vconsole-setup.service.in
4483 # ------------------------------------------------------------------------------
4485 systemd_bootchart_SOURCES = \
4486 src/bootchart/bootchart.c \
4487 src/bootchart/bootchart.h \
4488 src/bootchart/store.c \
4489 src/bootchart/store.h \
4490 src/bootchart/svg.c \
4493 systemd_bootchart_LDADD = \
4494 libsystemd-journal-internal.la \
4495 libsystemd-shared.la
4497 rootlibexec_PROGRAMS += \
4500 dist_pkgsysconf_DATA += \
4501 src/bootchart/bootchart.conf
4504 # ------------------------------------------------------------------------------
4505 if ENABLE_QUOTACHECK
4506 rootlibexec_PROGRAMS += \
4509 nodist_systemunit_DATA += \
4510 units/systemd-quotacheck.service
4512 systemd_quotacheck_SOURCES = \
4513 src/quotacheck/quotacheck.c
4515 systemd_quotacheck_LDADD = \
4516 libsystemd-shared.la
4520 units/systemd-quotacheck.service.in
4522 nodist_systemunit_DATA += \
4523 units/quotaon.service
4525 # ------------------------------------------------------------------------------
4526 if ENABLE_RANDOMSEED
4527 rootlibexec_PROGRAMS += \
4530 nodist_systemunit_DATA += \
4531 units/systemd-random-seed.service
4533 systemd_random_seed_SOURCES = \
4534 src/random-seed/random-seed.c
4536 systemd_random_seed_LDADD = \
4537 libsystemd-label.la \
4538 libsystemd-shared.la
4540 SYSINIT_TARGET_WANTS += \
4541 systemd-random-seed.service
4546 units/systemd-random-seed.service.in
4548 # ------------------------------------------------------------------------------
4550 rootlibexec_PROGRAMS += \
4553 nodist_systemunit_DATA += \
4554 units/systemd-backlight@.service
4556 systemd_backlight_SOURCES = \
4557 src/backlight/backlight.c
4559 systemd_backlight_LDADD = \
4560 libsystemd-label.la \
4561 libudev-internal.la \
4562 libsystemd-shared.la
4566 units/systemd-backlight@.service.in
4568 # ------------------------------------------------------------------------------
4570 rootlibexec_PROGRAMS += \
4573 nodist_systemunit_DATA += \
4574 units/systemd-rfkill@.service
4576 systemd_rfkill_SOURCES = \
4579 systemd_rfkill_LDADD = \
4580 libsystemd-label.la \
4581 libudev-internal.la \
4582 libsystemd-shared.la
4586 units/systemd-rfkill@.service.in
4588 # ------------------------------------------------------------------------------
4589 if HAVE_LIBCRYPTSETUP
4590 rootlibexec_PROGRAMS += \
4593 systemgenerator_PROGRAMS += \
4594 systemd-cryptsetup-generator
4596 dist_systemunit_DATA += \
4597 units/cryptsetup.target \
4598 units/cryptsetup-pre.target
4600 systemd_cryptsetup_SOURCES = \
4601 src/cryptsetup/cryptsetup.c
4603 systemd_cryptsetup_CFLAGS = \
4605 $(LIBCRYPTSETUP_CFLAGS)
4607 systemd_cryptsetup_LDADD = \
4608 libsystemd-label.la \
4609 libudev-internal.la \
4610 libsystemd-shared.la \
4611 $(LIBCRYPTSETUP_LIBS)
4613 systemd_cryptsetup_generator_SOURCES = \
4614 src/cryptsetup/cryptsetup-generator.c
4616 systemd_cryptsetup_generator_LDADD = \
4617 libsystemd-label.la \
4618 libsystemd-shared.la
4620 SYSINIT_TARGET_WANTS += \
4625 # ------------------------------------------------------------------------------
4627 systemd_hostnamed_SOURCES = \
4628 src/hostname/hostnamed.c
4630 systemd_hostnamed_LDADD = \
4631 libsystemd-label.la \
4632 libsystemd-internal.la \
4633 libsystemd-shared.la
4635 rootlibexec_PROGRAMS += \
4638 nodist_systemunit_DATA += \
4639 units/systemd-hostnamed.service
4641 dist_systemunit_DATA_busnames += \
4642 units/org.freedesktop.hostname1.busname
4644 dist_dbuspolicy_DATA += \
4645 src/hostname/org.freedesktop.hostname1.conf
4647 dist_dbussystemservice_DATA += \
4648 src/hostname/org.freedesktop.hostname1.service
4650 polkitpolicy_files += \
4651 src/hostname/org.freedesktop.hostname1.policy
4653 SYSTEM_UNIT_ALIASES += \
4654 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4656 BUSNAMES_TARGET_WANTS += \
4657 org.freedesktop.hostname1.busname
4659 hostnamectl_SOURCES = \
4660 src/hostname/hostnamectl.c
4662 hostnamectl_LDADD = \
4663 libsystemd-internal.la \
4664 libsystemd-shared.la
4669 dist_bashcompletion_DATA += \
4670 shell-completion/bash/hostnamectl
4672 dist_zshcompletion_DATA += \
4673 shell-completion/zsh/_hostnamectl
4677 polkitpolicy_in_files += \
4678 src/hostname/org.freedesktop.hostname1.policy.in
4681 units/systemd-hostnamed.service.in
4683 # ------------------------------------------------------------------------------
4684 dist_systemunit_DATA_busnames += \
4685 units/org.freedesktop.systemd1.busname
4687 BUSNAMES_TARGET_WANTS += \
4688 org.freedesktop.systemd1.busname
4690 # ------------------------------------------------------------------------------
4692 systemd_localed_SOURCES = \
4693 src/locale/localed.c
4695 systemd_localed_LDADD = \
4696 libsystemd-label.la \
4697 libsystemd-internal.la \
4698 libsystemd-shared.la \
4701 systemd_localed_CFLAGS = \
4705 nodist_systemunit_DATA += \
4706 units/systemd-localed.service
4708 dist_systemunit_DATA_busnames += \
4709 units/org.freedesktop.locale1.busname
4711 rootlibexec_PROGRAMS += \
4714 dist_dbuspolicy_DATA += \
4715 src/locale/org.freedesktop.locale1.conf
4717 dist_dbussystemservice_DATA += \
4718 src/locale/org.freedesktop.locale1.service
4720 polkitpolicy_files += \
4721 src/locale/org.freedesktop.locale1.policy
4723 SYSTEM_UNIT_ALIASES += \
4724 systemd-localed.service dbus-org.freedesktop.locale1.service
4726 BUSNAMES_TARGET_WANTS += \
4727 org.freedesktop.locale1.busname
4729 dist_pkgdata_DATA += \
4730 src/locale/kbd-model-map
4732 dist_noinst_SCRIPT = \
4733 src/locale/generate-kbd-model-map
4735 localectl_SOURCES = \
4736 src/locale/localectl.c
4739 libsystemd-internal.la \
4740 libsystemd-shared.la
4745 dist_bashcompletion_DATA += \
4746 shell-completion/bash/localectl
4748 dist_zshcompletion_DATA += \
4749 shell-completion/zsh/_localectl
4753 .PHONY: update-kbd-model-map
4755 polkitpolicy_in_files += \
4756 src/locale/org.freedesktop.locale1.policy.in
4759 units/systemd-localed.service.in
4761 # ------------------------------------------------------------------------------
4763 systemd_timedated_SOURCES = \
4764 src/timedate/timedated.c
4766 systemd_timedated_LDADD = \
4767 libsystemd-label.la \
4768 libsystemd-internal.la \
4769 libsystemd-shared.la
4771 rootlibexec_PROGRAMS += \
4774 dist_dbussystemservice_DATA += \
4775 src/timedate/org.freedesktop.timedate1.service
4777 dist_dbuspolicy_DATA += \
4778 src/timedate/org.freedesktop.timedate1.conf
4780 nodist_systemunit_DATA += \
4781 units/systemd-timedated.service
4783 dist_systemunit_DATA_busnames += \
4784 units/org.freedesktop.timedate1.busname
4786 polkitpolicy_files += \
4787 src/timedate/org.freedesktop.timedate1.policy
4789 SYSTEM_UNIT_ALIASES += \
4790 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4792 BUSNAMES_TARGET_WANTS += \
4793 org.freedesktop.timedate1.busname
4795 timedatectl_SOURCES = \
4796 src/timedate/timedatectl.c
4798 timedatectl_LDADD = \
4799 libsystemd-internal.la \
4800 libsystemd-shared.la
4805 dist_bashcompletion_DATA += \
4806 shell-completion/bash/timedatectl
4808 dist_zshcompletion_DATA += \
4809 shell-completion/zsh/_timedatectl
4812 polkitpolicy_in_files += \
4813 src/timedate/org.freedesktop.timedate1.policy.in
4816 units/systemd-timedated.service.in
4818 # ------------------------------------------------------------------------------
4820 systemd_timesyncd_SOURCES = \
4821 src/timesync/timesyncd.c \
4822 src/timesync/timesyncd-manager.c \
4823 src/timesync/timesyncd-manager.h \
4824 src/timesync/timesyncd-conf.c \
4825 src/timesync/timesyncd-conf.h \
4826 src/timesync/timesyncd-server.c \
4827 src/timesync/timesyncd-server.h
4829 nodist_systemd_timesyncd_SOURCES = \
4830 src/timesync/timesyncd-gperf.c
4833 src/timesync/timesyncd-gperf.gperf
4836 src/timesync/timesyncd-gperf.c
4838 systemd_timesyncd_LDADD = \
4839 libsystemd-resolve.la \
4840 libsystemd-network.la \
4841 libsystemd-label.la \
4842 libsystemd-internal.la \
4843 libsystemd-shared.la \
4846 rootlibexec_PROGRAMS += \
4849 nodist_systemunit_DATA += \
4850 units/systemd-timesyncd.service
4852 GENERAL_ALIASES += \
4853 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
4856 units/systemd-timesyncd.service.in
4858 nodist_pkgsysconf_DATA += \
4859 src/timesync/timesyncd.conf
4862 src/timesync/timesyncd.conf.in
4865 src/timesync/timesyncd.conf
4868 # ------------------------------------------------------------------------------
4870 libnss_myhostname_la_SOURCES = \
4871 src/nss-myhostname/nss-myhostname.sym \
4872 src/nss-myhostname/nss-myhostname.c
4874 libnss_myhostname_la_LDFLAGS = \
4881 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
4883 libnss_myhostname_la_LIBADD = \
4884 libsystemd-shared.la \
4885 libsystemd-internal.la
4887 lib_LTLIBRARIES += \
4888 libnss_myhostname.la
4891 # ------------------------------------------------------------------------------
4893 systemd_machined_SOURCES = \
4894 src/machine/machined.c \
4895 src/machine/machined.h
4897 systemd_machined_LDADD = \
4898 libsystemd-machine-core.la
4900 rootlibexec_PROGRAMS += \
4903 libsystemd_machine_core_la_SOURCES = \
4904 src/machine/machined-dbus.c \
4905 src/machine/machine.c \
4906 src/machine/machine.h \
4907 src/machine/machine-dbus.c
4909 libsystemd_machine_core_la_LIBADD = \
4910 libsystemd-label.la \
4911 libsystemd-internal.la \
4912 libudev-internal.la \
4913 libsystemd-shared.la
4915 noinst_LTLIBRARIES += \
4916 libsystemd-machine-core.la
4918 machinectl_SOURCES = \
4919 src/machine/machinectl.c
4921 machinectl_LDADD = \
4922 libsystemd-internal.la \
4923 libsystemd-shared.la
4925 rootbin_PROGRAMS += \
4928 dist_bashcompletion_DATA += \
4929 shell-completion/bash/machinectl
4931 test_machine_tables_SOURCES = \
4932 src/machine/test-machine-tables.c
4934 test_machine_tables_LDADD = \
4935 libsystemd-machine-core.la
4940 nodist_systemunit_DATA += \
4941 units/systemd-machined.service
4943 dist_systemunit_DATA += \
4946 dist_systemunit_DATA_busnames += \
4947 units/org.freedesktop.machine1.busname
4949 dist_dbussystemservice_DATA += \
4950 src/machine/org.freedesktop.machine1.service
4952 dist_dbuspolicy_DATA += \
4953 src/machine/org.freedesktop.machine1.conf
4955 dist_zshcompletion_DATA += \
4956 shell-completion/zsh/_machinectl \
4957 shell-completion/zsh/_sd_machines
4959 SYSTEM_UNIT_ALIASES += \
4960 systemd-machined.service dbus-org.freedesktop.machine1.service
4962 BUSNAMES_TARGET_WANTS += \
4963 org.freedesktop.machine1.busname
4966 units/systemd-machined.service.in
4968 libnss_mymachines_la_SOURCES = \
4969 src/nss-mymachines/nss-mymachines.sym \
4970 src/nss-mymachines/nss-mymachines.c
4972 libnss_mymachines_la_LDFLAGS = \
4979 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
4981 libnss_mymachines_la_LIBADD = \
4982 libsystemd-shared.la \
4983 libsystemd-internal.la
4985 lib_LTLIBRARIES += \
4986 libnss_mymachines.la
4989 # ------------------------------------------------------------------------------
4991 systemd_resolved_SOURCES = \
4992 src/resolve/resolved.c \
4993 src/resolve/resolved-manager.c \
4994 src/resolve/resolved-manager.h \
4995 src/resolve/resolved-conf.c \
4996 src/resolve/resolved-conf.h \
4997 src/resolve/resolved-bus.c \
4998 src/resolve/resolved-bus.h \
4999 src/resolve/resolved-link.h \
5000 src/resolve/resolved-link.c \
5001 src/resolve/resolved-def.h \
5002 src/resolve/resolved-dns-domain.h \
5003 src/resolve/resolved-dns-domain.c \
5004 src/resolve/resolved-dns-rr.h \
5005 src/resolve/resolved-dns-rr.c \
5006 src/resolve/resolved-dns-question.h \
5007 src/resolve/resolved-dns-question.c \
5008 src/resolve/resolved-dns-answer.h \
5009 src/resolve/resolved-dns-answer.c \
5010 src/resolve/resolved-dns-packet.h \
5011 src/resolve/resolved-dns-packet.c \
5012 src/resolve/resolved-dns-query.h \
5013 src/resolve/resolved-dns-query.c \
5014 src/resolve/resolved-dns-transaction.h \
5015 src/resolve/resolved-dns-transaction.c \
5016 src/resolve/resolved-dns-scope.h \
5017 src/resolve/resolved-dns-scope.c \
5018 src/resolve/resolved-dns-server.h \
5019 src/resolve/resolved-dns-server.c \
5020 src/resolve/resolved-dns-cache.h \
5021 src/resolve/resolved-dns-cache.c \
5022 src/resolve/resolved-dns-zone.h \
5023 src/resolve/resolved-dns-zone.c \
5024 src/resolve/resolved-dns-stream.h \
5025 src/resolve/resolved-dns-stream.c \
5026 src/resolve/dns-type.c \
5027 src/resolve/dns-type.h \
5028 src/resolve/dns_type-from-name.h \
5029 src/resolve/dns_type-to-name.h
5031 nodist_systemd_resolved_SOURCES = \
5032 src/resolve/resolved-gperf.c
5035 src/resolve/resolved-gperf.gperf \
5036 src/resolve/dns_type-from-name.gperf
5039 src/resolve/resolved-gperf.c
5041 systemd_resolved_LDADD = \
5042 libsystemd-network.la \
5043 libsystemd-label.la \
5044 libsystemd-internal.la \
5045 libsystemd-shared.la \
5049 rootlibexec_PROGRAMS += \
5052 nodist_systemunit_DATA += \
5053 units/systemd-resolved.service
5055 dist_systemunit_DATA_busnames += \
5056 units/org.freedesktop.resolve1.busname
5058 dist_dbuspolicy_DATA += \
5059 src/resolve/org.freedesktop.resolve1.conf
5061 dist_dbussystemservice_DATA += \
5062 src/resolve/org.freedesktop.resolve1.service
5065 units/systemd-resolved.service.in
5067 SYSTEM_UNIT_ALIASES += \
5068 systemd-resolved.service dbus-org.freedesktop.resolve1.service
5070 BUSNAMES_TARGET_WANTS += \
5071 org.freedesktop.resolve1.busname
5073 GENERAL_ALIASES += \
5074 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
5076 nodist_pkgsysconf_DATA += \
5077 src/resolve/resolved.conf
5080 src/resolve/resolved.conf.in
5083 src/resolve/resolved.conf
5088 test_dns_domain_SOURCES = \
5089 src/resolve/resolved-dns-domain.h \
5090 src/resolve/resolved-dns-domain.c \
5091 src/resolve/test-dns-domain.c
5093 test_dns_domain_LDADD = \
5094 libsystemd-network.la \
5095 libsystemd-label.la \
5096 libsystemd-internal.la \
5097 libsystemd-shared.la \
5100 libnss_resolve_la_SOURCES = \
5101 src/nss-resolve/nss-resolve.sym \
5102 src/nss-resolve/nss-resolve.c
5104 libnss_resolve_la_LDFLAGS = \
5111 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
5113 libnss_resolve_la_LIBADD = \
5114 libsystemd-shared.la \
5115 libsystemd-internal.la
5117 lib_LTLIBRARIES += \
5120 systemd_resolve_host_SOURCES = \
5121 src/resolve-host/resolve-host.c \
5122 src/resolve/resolved-dns-packet.c \
5123 src/resolve/resolved-dns-packet.h \
5124 src/resolve/resolved-dns-rr.c \
5125 src/resolve/resolved-dns-rr.h \
5126 src/resolve/resolved-dns-answer.c \
5127 src/resolve/resolved-dns-answer.h \
5128 src/resolve/resolved-dns-question.c \
5129 src/resolve/resolved-dns-question.h \
5130 src/resolve/resolved-dns-domain.c \
5131 src/resolve/resolved-dns-domain.h \
5132 src/resolve/dns-type.c \
5133 src/resolve/dns-type.h \
5134 src/resolve/dns_type-from-name.h \
5135 src/resolve/dns_type-to-name.h
5137 systemd_resolve_host_LDADD = \
5138 libsystemd-internal.la \
5139 libsystemd-shared.la \
5143 rootlibexec_PROGRAMS += \
5144 systemd-resolve-host
5148 # ------------------------------------------------------------------------------
5150 rootlibexec_PROGRAMS += \
5153 systemd_networkd_SOURCES = \
5154 src/network/networkd.c
5156 systemd_networkd_LDADD = \
5157 libsystemd-networkd-core.la
5159 noinst_LTLIBRARIES += \
5160 libsystemd-networkd-core.la
5162 libsystemd_networkd_core_la_CFLAGS = \
5165 libsystemd_networkd_core_la_SOURCES = \
5166 src/libsystemd-network/network-internal.h \
5167 src/network/networkd.h \
5168 src/network/networkd-link.h \
5169 src/network/networkd-netdev.h \
5170 src/network/networkd-netdev-tunnel.h \
5171 src/network/networkd-netdev-veth.h \
5172 src/network/networkd-netdev-vxlan.h \
5173 src/network/networkd-netdev-vlan.h \
5174 src/network/networkd-netdev-macvlan.h \
5175 src/network/networkd-netdev-dummy.h \
5176 src/network/networkd-netdev-tuntap.h \
5177 src/network/networkd-netdev-bond.h \
5178 src/network/networkd-netdev-bridge.h \
5179 src/network/networkd-netdev.c \
5180 src/network/networkd-netdev-tunnel.c \
5181 src/network/networkd-netdev-veth.c \
5182 src/network/networkd-netdev-vxlan.c \
5183 src/network/networkd-netdev-vlan.c \
5184 src/network/networkd-netdev-macvlan.c \
5185 src/network/networkd-netdev-dummy.c \
5186 src/network/networkd-netdev-tuntap.c \
5187 src/network/networkd-netdev-bond.c \
5188 src/network/networkd-netdev-bridge.c \
5189 src/network/networkd-link.c \
5190 src/network/networkd-ipv4ll.c \
5191 src/network/networkd-dhcp4.c \
5192 src/network/networkd-network.c \
5193 src/network/networkd-address.c \
5194 src/network/networkd-route.c \
5195 src/network/networkd-manager.c \
5196 src/network/networkd-address-pool.c
5198 nodist_libsystemd_networkd_core_la_SOURCES = \
5199 src/network/networkd-network-gperf.c \
5200 src/network/networkd-netdev-gperf.c
5202 libsystemd_networkd_core_la_LIBADD = \
5203 libudev-internal.la \
5204 libsystemd-internal.la \
5205 libsystemd-network.la \
5206 libsystemd-label.la \
5207 libsystemd-shared.la
5209 rootlibexec_PROGRAMS += \
5210 systemd-networkd-wait-online
5212 systemd_networkd_wait_online_CFLAGS = \
5215 systemd_networkd_wait_online_SOURCES = \
5216 src/libsystemd-network/network-internal.h \
5217 src/network/networkd-wait-online.h \
5218 src/network/networkd-wait-online-link.h \
5219 src/network/networkd-wait-online.c \
5220 src/network/networkd-wait-online-manager.c \
5221 src/network/networkd-wait-online-link.c
5223 systemd_networkd_wait_online_LDADD = \
5224 libsystemd-network.la \
5225 libudev-internal.la \
5226 libsystemd-internal.la \
5227 libsystemd-shared.la
5229 rootbin_PROGRAMS += \
5232 networkctl_SOURCES = \
5233 src/network/networkctl.c
5235 networkctl_LDADD = \
5236 libsystemd-internal.la \
5237 libudev-internal.la \
5238 libsystemd-shared.la \
5239 libsystemd-network.la
5241 test_network_SOURCES = \
5242 src/network/test-network.c
5244 test_network_LDADD = \
5245 libsystemd-networkd-core.la
5247 test_network_tables_SOURCES = \
5248 src/network/test-network-tables.c \
5249 src/shared/test-tables.h
5251 test_network_tables_LDADD = \
5252 libsystemd-networkd-core.la \
5259 nodist_systemunit_DATA += \
5260 units/systemd-networkd.service \
5261 units/systemd-networkd-wait-online.service
5263 GENERAL_ALIASES += \
5264 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5265 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5268 src/network/networkd-network-gperf.gperf \
5269 src/network/networkd-netdev-gperf.gperf \
5270 units/systemd-networkd.service.in \
5271 units/systemd-networkd-wait-online.service.in
5274 src/network/networkd-network-gperf.c \
5275 src/network/networkd-netdev-gperf.c
5278 # ------------------------------------------------------------------------------
5280 systemd_logind_SOURCES = \
5281 src/login/logind.c \
5284 nodist_systemd_logind_SOURCES = \
5285 src/login/logind-gperf.c
5287 systemd_logind_LDADD = \
5288 libsystemd-logind-core.la
5290 libsystemd_logind_core_la_SOURCES = \
5291 src/login/logind-core.c \
5292 src/login/logind-device.c \
5293 src/login/logind-device.h \
5294 src/login/logind-button.c \
5295 src/login/logind-button.h \
5296 src/login/logind-action.c \
5297 src/login/logind-action.h \
5298 src/login/logind-seat.c \
5299 src/login/logind-seat.h \
5300 src/login/logind-session.c \
5301 src/login/logind-session.h \
5302 src/login/logind-session-device.c \
5303 src/login/logind-session-device.h \
5304 src/login/logind-user.c \
5305 src/login/logind-user.h \
5306 src/login/logind-inhibit.c \
5307 src/login/logind-inhibit.h \
5308 src/login/logind-dbus.c \
5309 src/login/logind-session-dbus.c \
5310 src/login/logind-seat-dbus.c \
5311 src/login/logind-user-dbus.c \
5312 src/login/logind-acl.h
5314 libsystemd_logind_core_la_LIBADD = \
5315 libsystemd-label.la \
5316 libsystemd-internal.la \
5317 libudev-internal.la \
5318 libsystemd-shared.la
5321 libsystemd_logind_core_la_SOURCES += \
5322 src/login/logind-acl.c
5324 libsystemd_logind_core_la_LIBADD += \
5328 noinst_LTLIBRARIES += \
5329 libsystemd-logind-core.la
5331 systemd_user_sessions_SOURCES = \
5332 src/login/user-sessions.c
5334 systemd_user_sessions_LDADD = \
5335 libsystemd-shared.la
5337 rootlibexec_PROGRAMS += \
5339 systemd-user-sessions
5341 loginctl_SOURCES = \
5342 src/login/loginctl.c \
5343 src/login/sysfs-show.c
5346 libsystemd-internal.la \
5347 libudev-internal.la \
5348 libsystemd-shared.la
5350 rootbin_PROGRAMS += \
5353 dist_bashcompletion_DATA += \
5354 shell-completion/bash/loginctl
5356 dist_zshcompletion_DATA += \
5357 shell-completion/zsh/_loginctl \
5358 shell-completion/zsh/_systemd-inhibit
5360 systemd_inhibit_SOURCES = \
5363 systemd_inhibit_LDADD = \
5364 libsystemd-internal.la \
5365 libsystemd-shared.la
5367 rootbin_PROGRAMS += \
5370 test_login_SOURCES = \
5371 src/libsystemd/sd-login/test-login.c
5373 test_login_LDADD = \
5374 libsystemd-internal.la \
5375 libsystemd-shared.la
5377 test_login_shared_SOURCES = \
5378 src/login/test-login-shared.c
5380 test_login_shared_LDADD = \
5381 libsystemd-internal.la \
5382 libsystemd-shared.la
5384 test_inhibit_SOURCES = \
5385 src/login/test-inhibit.c
5387 test_inhibit_LDADD = \
5388 libsystemd-internal.la \
5389 libsystemd-shared.la
5391 test_login_tables_SOURCES = \
5392 src/login/test-login-tables.c
5394 test_login_tables_LDADD = \
5395 libsystemd-logind-core.la
5406 pam_systemd_la_SOURCES = \
5407 src/login/pam_systemd.sym \
5408 src/login/pam_systemd.c
5410 pam_systemd_la_CFLAGS = \
5415 pam_systemd_la_LDFLAGS = \
5421 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5423 pam_systemd_la_LIBADD = \
5424 libsystemd-internal.la \
5425 libsystemd-shared.la \
5428 pamlib_LTLIBRARIES = \
5431 dist_pamconf_DATA = \
5432 src/login/systemd-user
5435 nodist_systemunit_DATA += \
5436 units/systemd-logind.service \
5437 units/systemd-user-sessions.service
5439 dist_systemunit_DATA += \
5442 dist_systemunit_DATA_busnames += \
5443 units/org.freedesktop.login1.busname
5445 dist_dbussystemservice_DATA += \
5446 src/login/org.freedesktop.login1.service
5448 dist_dbuspolicy_DATA += \
5449 src/login/org.freedesktop.login1.conf
5451 dist_pkgsysconf_DATA += \
5452 src/login/logind.conf
5454 polkitpolicy_files += \
5455 src/login/org.freedesktop.login1.policy
5460 MULTI_USER_TARGET_WANTS += \
5461 systemd-logind.service \
5462 systemd-user-sessions.service
5464 SYSTEM_UNIT_ALIASES += \
5465 systemd-logind.service dbus-org.freedesktop.login1.service
5467 BUSNAMES_TARGET_WANTS += \
5468 org.freedesktop.login1.busname
5470 dist_udevrules_DATA += \
5471 src/login/70-uaccess.rules \
5472 src/login/70-power-switch.rules
5474 nodist_udevrules_DATA += \
5475 src/login/71-seat.rules \
5476 src/login/73-seat-late.rules
5479 src/login/logind-gperf.c \
5480 src/login/71-seat.rules \
5481 src/login/73-seat-late.rules
5484 polkitpolicy_in_files += \
5485 src/login/org.freedesktop.login1.policy.in
5488 src/login/logind-gperf.gperf \
5489 src/login/71-seat.rules.in \
5490 src/login/73-seat-late.rules.in \
5491 units/systemd-logind.service.in \
5492 units/systemd-user-sessions.service.in
5494 # ------------------------------------------------------------------------------
5495 if HAVE_PYTHON_DEVEL
5496 pkgpyexec_LTLIBRARIES = \
5503 _journal_la_SOURCES = \
5504 src/python-systemd/_journal.c
5506 _journal_la_CFLAGS = \
5508 -fvisibility=default \
5509 $(PYTHON_DEVEL_CFLAGS)
5511 _journal_la_LDFLAGS = \
5517 _journal_la_LIBADD = \
5518 $(PYTHON_DEVEL_LIBS) \
5521 id128_la_SOURCES = \
5522 src/python-systemd/id128.c \
5523 src/python-systemd/pyutil.c \
5524 src/python-systemd/pyutil.h
5526 nodist_id128_la_SOURCES = \
5527 src/python-systemd/id128-constants.h
5531 -fvisibility=default \
5532 $(PYTHON_DEVEL_CFLAGS) \
5533 -I$(top_builddir)/src/python-systemd
5535 id128_la_LDFLAGS = \
5542 $(PYTHON_DEVEL_LIBS) \
5543 libsystemd-shared.la \
5546 _daemon_la_SOURCES = \
5547 src/python-systemd/_daemon.c \
5548 src/python-systemd/pyutil.c \
5549 src/python-systemd/pyutil.h
5551 _daemon_la_CFLAGS = \
5553 -fvisibility=default \
5554 $(PYTHON_DEVEL_CFLAGS) \
5555 -I$(top_builddir)/src/python-systemd
5557 _daemon_la_LDFLAGS = \
5563 _daemon_la_LIBADD = \
5564 $(PYTHON_DEVEL_LIBS) \
5565 libsystemd-shared.la \
5568 _reader_la_SOURCES = \
5569 src/python-systemd/_reader.c \
5570 src/python-systemd/pyutil.c \
5571 src/python-systemd/pyutil.h
5573 _reader_la_CFLAGS = \
5575 -fvisibility=default \
5576 $(PYTHON_DEVEL_CFLAGS)
5578 _reader_la_LDFLAGS = \
5584 _reader_la_LIBADD = \
5585 $(PYTHON_DEVEL_LIBS) \
5586 libsystemd-shared.la \
5589 login_la_SOURCES = \
5590 src/python-systemd/login.c \
5591 src/python-systemd/pyutil.c \
5592 src/python-systemd/pyutil.h
5596 -fvisibility=default \
5597 $(PYTHON_DEVEL_CFLAGS)
5599 login_la_LDFLAGS = \
5606 $(PYTHON_DEVEL_LIBS) \
5607 libsystemd-shared.la \
5610 dist_pkgpyexec_PYTHON = \
5611 src/python-systemd/journal.py \
5612 src/python-systemd/daemon.py \
5613 src/python-systemd/__init__.py
5615 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
5616 $(AM_V_at)$(MKDIR_P) $(dir $@)
5617 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
5620 src/python-systemd/id128-constants.h
5622 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
5624 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
5625 $(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/
5626 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
5629 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
5630 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
5633 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
5634 $(MAKE) DESTDIR="$$dir" install && \
5635 $(MAKE) DESTDIR="$$dir" sphinx-html && \
5640 CLEAN_LOCAL_HOOKS += clean-sphinx
5642 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
5645 -rm -rf docs/html/python-systemd/
5647 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
5649 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
5650 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
5652 # ------------------------------------------------------------------------------
5653 if ENABLE_COMPAT_LIBS
5655 src/compat-libs/linkwarning.h
5657 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
5658 $(AM_V_at)$(MKDIR_P) $(dir $@)
5659 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
5662 libsystemd-journal.c \
5663 libsystemd-login.c \
5664 libsystemd-id128.c \
5667 libsystemd_journal_la_SOURCES = \
5668 libsystemd-journal.c \
5669 src/compat-libs/libsystemd-journal.sym
5671 libsystemd_journal_la_CPPFLAGS = \
5673 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5675 libsystemd_journal_la_LDFLAGS = \
5677 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
5678 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
5680 libsystemd_journal_la_LIBADD = \
5681 libsystemd-journal-internal.la \
5682 libsystemd-internal.la \
5683 libsystemd-shared.la
5685 libsystemd_login_la_SOURCES = \
5686 libsystemd-login.c \
5687 src/compat-libs/libsystemd-login.sym
5689 libsystemd_login_la_CPPFLAGS = \
5691 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5693 libsystemd_login_la_LDFLAGS = \
5695 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
5696 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
5698 libsystemd_login_la_LIBADD = \
5699 libsystemd-internal.la \
5700 libsystemd-shared.la
5702 libsystemd_id128_la_SOURCES = \
5703 libsystemd-id128.c \
5704 src/compat-libs/libsystemd-id128.sym
5706 libsystemd_id128_la_CPPFLAGS = \
5708 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5710 libsystemd_id128_la_LDFLAGS = \
5712 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
5713 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
5715 libsystemd_id128_la_LIBADD = \
5716 libsystemd-internal.la \
5717 libsystemd-shared.la
5719 libsystemd_daemon_la_SOURCES = \
5720 libsystemd-daemon.c \
5721 src/compat-libs/libsystemd-daemon.sym
5723 libsystemd_daemon_la_CPPFLAGS = \
5725 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5727 libsystemd_daemon_la_LDFLAGS = \
5729 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
5730 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
5732 libsystemd_daemon_la_LIBADD = \
5733 libsystemd-internal.la \
5734 libsystemd-shared.la
5736 lib_LTLIBRARIES += \
5737 libsystemd-journal.la \
5738 libsystemd-login.la \
5739 libsystemd-id128.la \
5740 libsystemd-daemon.la
5742 pkgconfiglib_DATA += \
5743 src/compat-libs/libsystemd-journal.pc \
5744 src/compat-libs/libsystemd-login.pc \
5745 src/compat-libs/libsystemd-id128.pc \
5746 src/compat-libs/libsystemd-daemon.pc
5748 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
5749 compat-lib-install-hook:
5750 libname=libsystemd-login.so && $(move-to-rootlibdir)
5751 libname=libsystemd-journal.so && $(move-to-rootlibdir)
5752 libname=libsystemd-id128.so && $(move-to-rootlibdir)
5753 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
5755 compat-lib-uninstall-hook:
5756 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
5757 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
5758 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
5759 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
5761 INSTALL_EXEC_HOOKS += compat-lib-install-hook
5762 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
5766 src/compat-libs/libsystemd-journal.pc.in \
5767 src/compat-libs/libsystemd-login.pc.in \
5768 src/compat-libs/libsystemd-id128.pc.in \
5769 src/compat-libs/libsystemd-daemon.pc.in
5771 # ------------------------------------------------------------------------------
5773 '|rootlibexecdir=$(rootlibexecdir)|' \
5774 '|rootbindir=$(rootbindir)|' \
5775 '|bindir=$(bindir)|' \
5776 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5777 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5778 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5779 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5780 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
5781 '|pkgdatadir=$(pkgdatadir)|' \
5782 '|systemunitdir=$(systemunitdir)|' \
5783 '|userunitdir=$(userunitdir)|' \
5784 '|systempresetdir=$(systempresetdir)|' \
5785 '|userpresetdir=$(userpresetdir)|' \
5786 '|udevhwdbdir=$(udevhwdbdir)|' \
5787 '|udevrulesdir=$(udevrulesdir)|' \
5788 '|catalogdir=$(catalogdir)|' \
5789 '|tmpfilesdir=$(tmpfilesdir)|' \
5790 '|sysusersdir=$(sysusersdir)|' \
5791 '|sysctldir=$(sysctldir)|' \
5792 '|systemgeneratordir=$(systemgeneratordir)|' \
5793 '|usergeneratordir=$(usergeneratordir)|' \
5794 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
5795 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
5796 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
5797 '|PACKAGE_URL=$(PACKAGE_URL)|' \
5798 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
5799 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
5800 '|prefix=$(prefix)|' \
5801 '|exec_prefix=$(exec_prefix)|' \
5802 '|libdir=$(libdir)|' \
5803 '|includedir=$(includedir)|' \
5804 '|VERSION=$(VERSION)|' \
5805 '|rootprefix=$(rootprefix)|' \
5806 '|udevlibexecdir=$(udevlibexecdir)|' \
5807 '|SUSHELL=$(SUSHELL)|' \
5808 '|DEBUGTTY=$(DEBUGTTY)|' \
5811 '|MKDIR_P=$(MKDIR_P)|' \
5812 '|QUOTAON=$(QUOTAON)|' \
5813 '|QUOTACHECK=$(QUOTACHECK)|' \
5814 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
5815 '|VARLOGDIR=$(varlogdir)|' \
5816 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
5817 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
5818 '|PYTHON=$(PYTHON)|' \
5819 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
5820 '|NTP_SERVERS=$(NTP_SERVERS)|' \
5821 '|DNS_SERVERS=$(DNS_SERVERS)|' \
5822 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
5823 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
5824 '|TTY_GID=$(TTY_GID)|' \
5825 '|systemsleepdir=$(systemsleepdir)|' \
5826 '|systemshutdowndir=$(systemshutdowndir)|' \
5827 '|binfmtdir=$(binfmtdir)|' \
5828 '|modulesloaddir=$(modulesloaddir)|'
5831 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
5832 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
5841 sysctl.d/%: sysctl.d/%.in
5850 src/core/macros.%: src/core/macros.%.in
5853 src/%.policy.in: src/%.policy.in.in
5856 shell-completion/%: shell-completion/%.in
5867 $(AM_V_GEN)chmod +x $@
5869 src/%.c: src/%.gperf
5870 $(AM_V_at)$(MKDIR_P) $(dir $@)
5871 $(AM_V_GPERF)$(GPERF) < $< > $@
5874 $(AM_V_at)$(MKDIR_P) $(dir $@)
5875 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5877 sysusers.d/%: sysusers.d/%.m4
5878 $(AM_V_at)$(MKDIR_P) $(dir $@)
5879 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5881 tmpfiles.d/%: tmpfiles.d/%.m4
5882 $(AM_V_at)$(MKDIR_P) $(dir $@)
5883 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5887 $(AM_V_at)$(MKDIR_P) $(dir $@)
5888 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
5890 units/user/%: units/%.m4
5891 $(AM_V_at)$(MKDIR_P) $(dir $@)
5892 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
5895 nodist_polkitpolicy_DATA = \
5896 $(polkitpolicy_files) \
5897 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
5901 $(polkitpolicy_in_files) \
5902 $(polkitpolicy_in_in_files)
5905 $(nodist_systemunit_DATA) \
5906 $(nodist_userunit_DATA) \
5907 $(pkgconfigdata_DATA) \
5908 $(pkgconfiglib_DATA) \
5909 $(nodist_polkitpolicy_DATA)
5911 # ------------------------------------------------------------------------------
5913 man/custom-entities.ent: configure.ac
5914 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
5915 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
5916 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
5920 man/custom-entities.ent
5925 --stringparam man.output.quietly 1 \
5926 --stringparam funcsynopsis.style ansi \
5927 --stringparam man.authors.section.enabled 0 \
5928 --stringparam man.copyright.section.enabled 0 \
5929 --stringparam systemd.version $(VERSION) \
5930 --path '$(builddir)/man:$(srcdir)/man'
5932 XSLTPROC_PROCESS_MAN = \
5933 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
5935 XSLTPROC_PROCESS_HTML = \
5936 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
5938 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
5939 $(XSLTPROC_PROCESS_MAN)
5941 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
5942 $(XSLTPROC_PROCESS_MAN)
5944 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
5945 $(XSLTPROC_PROCESS_MAN)
5947 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
5948 $(XSLTPROC_PROCESS_MAN)
5950 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
5951 $(XSLTPROC_PROCESS_MAN)
5953 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
5954 $(XSLTPROC_PROCESS_HTML)
5957 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
5963 man/custom-html.xsl \
5966 # ------------------------------------------------------------------------------
5969 docs/sysvinit/README
5974 docs/sysvinit/README: docs/sysvinit/README.in
5977 docs/var-log/README: docs/var-log/README.in
5981 docs/sysvinit/README \
5986 docs/sysvinit/README.in \
5987 docs/var-log/README.in
5989 SOCKETS_TARGET_WANTS += \
5990 systemd-initctl.socket \
5991 systemd-shutdownd.socket
5995 RUNLEVEL1_TARGET_WANTS += \
5996 systemd-update-utmp-runlevel.service
5997 RUNLEVEL2_TARGET_WANTS += \
5998 systemd-update-utmp-runlevel.service
5999 RUNLEVEL3_TARGET_WANTS += \
6000 systemd-update-utmp-runlevel.service
6001 RUNLEVEL4_TARGET_WANTS += \
6002 systemd-update-utmp-runlevel.service
6003 RUNLEVEL5_TARGET_WANTS += \
6004 systemd-update-utmp-runlevel.service
6007 SYSINIT_TARGET_WANTS += \
6008 systemd-update-utmp.service
6011 SYSINIT_TARGET_WANTS += \
6012 systemd-update-done.service
6014 LOCAL_FS_TARGET_WANTS += \
6015 systemd-remount-fs.service \
6018 MULTI_USER_TARGET_WANTS += \
6020 systemd-ask-password-wall.path
6022 SYSINIT_TARGET_WANTS += \
6023 dev-hugepages.mount \
6025 sys-kernel-config.mount \
6026 sys-kernel-debug.mount \
6027 sys-fs-fuse-connections.mount \
6028 systemd-sysctl.service \
6029 systemd-ask-password-console.path
6032 SYSTEM_UNIT_ALIASES += \
6033 poweroff.target runlevel0.target \
6034 rescue.target runlevel1.target \
6035 multi-user.target runlevel2.target \
6036 multi-user.target runlevel3.target \
6037 multi-user.target runlevel4.target \
6038 graphical.target runlevel5.target \
6039 reboot.target runlevel6.target
6042 SYSTEM_UNIT_ALIASES += \
6043 graphical.target default.target \
6044 reboot.target ctrl-alt-del.target \
6045 getty@.service autovt@.service
6047 USER_UNIT_ALIASES += \
6048 $(systemunitdir)/shutdown.target shutdown.target \
6049 $(systemunitdir)/sockets.target sockets.target \
6050 $(systemunitdir)/timers.target timers.target \
6051 $(systemunitdir)/paths.target paths.target \
6052 $(systemunitdir)/bluetooth.target bluetooth.target \
6053 $(systemunitdir)/printer.target printer.target \
6054 $(systemunitdir)/sound.target sound.target \
6055 $(systemunitdir)/smartcard.target smartcard.target
6058 USER_UNIT_ALIASES += \
6059 $(systemunitdir)/busnames.target busnames.target
6062 GENERAL_ALIASES += \
6063 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
6064 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
6065 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
6066 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
6070 $(systemunitdir)/runlevel1.target.wants \
6071 $(systemunitdir)/runlevel2.target.wants \
6072 $(systemunitdir)/runlevel3.target.wants \
6073 $(systemunitdir)/runlevel4.target.wants \
6074 $(systemunitdir)/runlevel5.target.wants
6078 $(prefix)/lib/modules-load.d \
6079 $(sysconfdir)/modules-load.d \
6080 $(prefix)/lib/systemd/network \
6081 $(sysconfdir)/systemd/network \
6082 $(prefix)/lib/sysctl.d \
6083 $(sysconfdir)/sysctl.d \
6084 $(prefix)/lib/kernel/install.d \
6085 $(sysconfdir)/kernel/install.d \
6086 $(systemshutdowndir) \
6088 $(systemgeneratordir) \
6089 $(usergeneratordir) \
6092 $(pkgsysconfdir)/system \
6093 $(pkgsysconfdir)/system/multi-user.target.wants \
6094 $(pkgsysconfdir)/system/getty.target.wants \
6095 $(pkgsysconfdir)/user \
6096 $(dbussessionservicedir) \
6097 $(sysconfdir)/xdg/systemd
6099 install-exec-hook: $(INSTALL_EXEC_HOOKS)
6101 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
6103 install-data-hook: $(INSTALL_DATA_HOOKS)
6105 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
6107 clean-local: $(CLEAN_LOCAL_HOOKS)
6108 rm -rf $(abs_srcdir)/install-tree
6109 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
6110 $(abs_srcdir)/hwdb/iab.txt
6112 DISTCHECK_CONFIGURE_FLAGS = \
6113 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
6114 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6115 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
6116 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
6117 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
6118 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
6119 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
6120 --with-rootprefix=$$dc_install_base \
6121 --disable-split-usr \
6123 --enable-compat-libs
6126 DISTCHECK_CONFIGURE_FLAGS += \
6127 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
6128 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
6130 DISTCHECK_CONFIGURE_FLAGS += \
6131 --with-sysvinit-path= \
6132 --with-sysvrcnd-path=
6136 DISTCHECK_CONFIGURE_FLAGS += \
6141 DISTCHECK_CONFIGURE_FLAGS += \
6146 # Require python when making dist
6148 .PHONY: dist-check-python
6151 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
6155 dist-check-compat-libs:
6156 if !ENABLE_COMPAT_LIBS
6157 @echo "*** compat-libs must be enabled in order to make dist"
6161 dist: dist-check-python dist-check-compat-libs
6163 # check "broken" platforms limited toolchains for link breakage before we release
6166 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
6170 ( cd $(top_srcdir)/hwdb && \
6171 wget -N http://www.linux-usb.org/usb.ids \
6172 http://pci-ids.ucw.cz/v2.2/pci.ids \
6173 http://standards.ieee.org/develop/regauth/oui/oui.txt \
6174 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
6177 .PHONY: kdbus-update
6179 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
6180 wget -N https://d-bus.googlecode.com/git/kdbus.h )
6184 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6186 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6188 upload: all check dist
6189 scp systemd-$(VERSION).tar.xz $(www_target)
6192 doc-sync: all destdir-sphinx
6193 gtkdoc-rebase --html-dir=docs/libudev/html --online
6194 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
6195 gtkdoc-rebase --html-dir=docs/gudev/html --online
6196 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
6197 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6198 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
6202 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
6203 scp man/*.html tango:public/systemd-man/
6205 .PHONY: install-tree
6207 rm -rf $(abs_srcdir)/install-tree
6208 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6209 tree $(abs_srcdir)/install-tree
6211 # Let's run all tests of the test suite, but under valgrind. Let's
6212 # exclude the one perl script we have in there
6213 .PHONY: valgrind-tests
6214 valgrind-tests: $(TESTS)
6215 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
6216 if file $$f | grep -q shell; then \
6217 echo -e "$${x}Skipping non-binary $$f"; else \
6218 echo -e "$${x}Running $$f"; \
6219 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6224 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6226 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6227 $(AM_V_GEN)cat $^ > $@
6229 .PHONY: check-api-docs
6230 check-api-docs: exported man
6231 $(AM_V_GEN)for symbol in `cat exported` ; do \
6232 if test -f $(builddir)/man/$$symbol.html ; then \
6233 echo " Symbol $$symbol() is documented." ; \
6235 echo "‣ Symbol $$symbol() lacks documentation." ; \
6239 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6240 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6242 undefined defined: $(ALL_OBJECTS)
6243 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6244 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6245 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6251 .PHONY: check-api-unused
6252 check-api-unused: defined undefined exported
6253 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6255 .PHONY: check-includes
6256 check-includes: $(top_srcdir)/tools/check-includes.pl
6257 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6258 | xargs $(top_srcdir)/tools/check-includes.pl
6261 $(top_srcdir)/tools/check-includes.pl
6263 # Stupid test that everything purported to be exported really is
6264 define generate-sym-test
6265 $(AM_V_at)$(MKDIR_P) $(dir $@)
6266 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6267 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6268 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6269 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6270 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6271 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6272 $(AM_V_at)printf 'return 0; }\n' >> $@
6275 test-libsystemd-sym.c: \
6276 $(top_builddir)/src/libsystemd/libsystemd.sym \
6277 src/systemd/sd-journal.h \
6278 src/systemd/sd-daemon.h \
6279 src/systemd/sd-login.h \
6280 src/systemd/sd-bus.h \
6281 src/systemd/sd-utf8.h \
6282 src/systemd/sd-resolve.h \
6283 src/systemd/sd-path.h
6284 $(generate-sym-test)
6286 test-libudev-sym.c: \
6287 src/libudev/libudev.sym \
6289 $(generate-sym-test)
6291 test_libsystemd_sym_SOURCES = \
6292 test-libsystemd-sym.c
6293 test_libsystemd_sym_LDADD = \
6296 test_libudev_sym_SOURCES = \
6298 test_libudev_sym_CFLAGS = \
6300 -Wno-deprecated-declarations
6301 test_libudev_sym_LDADD = \
6305 $(test_libsystemd_sym_SOURCES) \
6306 $(test_libudev_sym_SOURCES)
6309 test-libsystemd-sym \
6314 cppcheck --enable=all -q $(top_srcdir)
6316 # Used to extract compile flags for YCM.
6321 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u
6324 tools/gdb-sd_dump_hashmaps.py