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
29 # remove targets if the command fails
32 # keep intermediate files
35 # Keep the test-suite.log
36 .PRECIOUS: $(TEST_SUITE_LOG) Makefile
50 # The following four libraries only exist for compatibility reasons,
51 # their version info should not be bumped anymore
52 LIBSYSTEMD_LOGIN_CURRENT=9
53 LIBSYSTEMD_LOGIN_REVISION=3
54 LIBSYSTEMD_LOGIN_AGE=9
56 LIBSYSTEMD_DAEMON_CURRENT=0
57 LIBSYSTEMD_DAEMON_REVISION=12
58 LIBSYSTEMD_DAEMON_AGE=0
60 LIBSYSTEMD_ID128_CURRENT=0
61 LIBSYSTEMD_ID128_REVISION=28
62 LIBSYSTEMD_ID128_AGE=0
64 LIBSYSTEMD_JOURNAL_CURRENT=11
65 LIBSYSTEMD_JOURNAL_REVISION=5
66 LIBSYSTEMD_JOURNAL_AGE=11
68 # Dirs of external packages
69 dbuspolicydir=@dbuspolicydir@
70 dbussessionservicedir=@dbussessionservicedir@
71 dbussystemservicedir=@dbussystemservicedir@
73 pamconfdir=@pamconfdir@
74 pkgconfigdatadir=$(datadir)/pkgconfig
75 pkgconfiglibdir=$(libdir)/pkgconfig
76 polkitpolicydir=$(datadir)/polkit-1/actions
77 bashcompletiondir=@bashcompletiondir@
78 zshcompletiondir=@zshcompletiondir@
79 rpmmacrosdir=$(prefix)/lib/rpm/macros.d
80 sysvinitdir=$(SYSTEM_SYSVINIT_PATH)
81 sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
82 varlogdir=$(localstatedir)/log
83 systemdstatedir=$(localstatedir)/lib/systemd
84 catalogstatedir=$(systemdstatedir)/catalog
86 # Our own, non-special dirs
87 pkgsysconfdir=$(sysconfdir)/systemd
88 userunitdir=$(prefix)/lib/systemd/user
89 userpresetdir=$(prefix)/lib/systemd/user-preset
90 tmpfilesdir=$(prefix)/lib/tmpfiles.d
91 sysusersdir=$(prefix)/lib/sysusers.d
92 sysctldir=$(prefix)/lib/sysctl.d
93 networkdir=$(rootprefix)/lib/systemd/network
94 pkgincludedir=$(includedir)/systemd
95 systemgeneratordir=$(rootlibexecdir)/system-generators
96 usergeneratordir=$(prefix)/lib/systemd/user-generators
97 systemshutdowndir=$(rootlibexecdir)/system-shutdown
98 systemsleepdir=$(rootlibexecdir)/system-sleep
99 systemunitdir=$(rootprefix)/lib/systemd/system
100 systempresetdir=$(rootprefix)/lib/systemd/system-preset
101 udevlibexecdir=$(rootprefix)/lib/udev
102 udevhomedir=$(udevlibexecdir)
103 udevrulesdir=$(udevlibexecdir)/rules.d
104 udevhwdbdir=$(udevlibexecdir)/hwdb.d
105 catalogdir=$(prefix)/lib/systemd/catalog
106 kernelinstalldir = $(prefix)/lib/kernel/install.d
107 ntpunitsdir=$(prefix)/lib/systemd/ntp-units.d
109 # And these are the special ones for /
110 rootprefix=@rootprefix@
111 rootbindir=$(rootprefix)/bin
112 rootlibexecdir=$(rootprefix)/lib/systemd
114 CLEANFILES = $(BUILT_SOURCES)
119 UNINSTALL_EXEC_HOOKS =
121 UNINSTALL_DATA_HOOKS =
122 DISTCLEAN_LOCAL_HOOKS =
130 polkitpolicy_in_in_files =
131 polkitpolicy_in_files =
133 dist_udevrules_DATA =
134 nodist_udevrules_DATA =
135 nodist_pkgsysconf_DATA =
136 dist_pkgsysconf_DATA =
138 dist_dbuspolicy_DATA =
139 dist_dbussystemservice_DATA =
145 noinst_PROGRAMS = $(manual_tests) $(tests)
151 udevlibexec_PROGRAMS =
153 .PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \
154 $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \
155 $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS)
158 -include $(top_builddir)/config.h \
159 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
160 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
161 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
162 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
163 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
164 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
165 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
166 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
167 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
168 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
169 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
170 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
171 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
172 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
173 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
174 -DROOTPREFIX=\"$(rootprefix)\" \
175 -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \
176 -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
177 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
178 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
179 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
180 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
181 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
182 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
183 -DX_SERVER=\"$(bindir)/X\" \
184 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
185 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
186 -DQUOTACHECK=\"$(QUOTACHECK)\" \
187 -DKEXEC=\"$(KEXEC)\" \
188 -I $(top_srcdir)/src \
189 -I $(top_builddir)/src/shared \
190 -I $(top_srcdir)/src/shared \
191 -I $(top_srcdir)/src/network \
192 -I $(top_srcdir)/src/login \
193 -I $(top_srcdir)/src/journal \
194 -I $(top_srcdir)/src/timedate \
195 -I $(top_srcdir)/src/timesync \
196 -I $(top_srcdir)/src/resolve \
197 -I $(top_srcdir)/src/systemd \
198 -I $(top_builddir)/src/core \
199 -I $(top_srcdir)/src/core \
200 -I $(top_srcdir)/src/libudev \
201 -I $(top_srcdir)/src/udev \
202 -I $(top_srcdir)/src/udev/net \
203 -I $(top_builddir)/src/udev \
204 -I $(top_srcdir)/src/libsystemd/sd-bus \
205 -I $(top_srcdir)/src/libsystemd/sd-event \
206 -I $(top_srcdir)/src/libsystemd/sd-rtnl \
207 -I $(top_srcdir)/src/libsystemd-network \
210 AM_CFLAGS = $(OUR_CFLAGS)
211 AM_LDFLAGS = $(OUR_LDFLAGS)
213 # ------------------------------------------------------------------------------
214 define move-to-rootlibdir
215 if test "$(libdir)" != "$(rootlibdir)"; then \
216 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
217 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
218 rm -f $(DESTDIR)$(libdir)/$$libname && \
219 $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
220 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
226 RUNLEVEL1_TARGET_WANTS =
227 RUNLEVEL2_TARGET_WANTS =
228 RUNLEVEL3_TARGET_WANTS =
229 RUNLEVEL4_TARGET_WANTS =
230 RUNLEVEL5_TARGET_WANTS =
231 SHUTDOWN_TARGET_WANTS =
232 LOCAL_FS_TARGET_WANTS =
233 MULTI_USER_TARGET_WANTS =
234 SYSINIT_TARGET_WANTS =
235 SOCKETS_TARGET_WANTS =
236 BUSNAMES_TARGET_WANTS =
237 TIMERS_TARGET_WANTS =
238 USER_SOCKETS_TARGET_WANTS =
239 USER_BUSNAMES_TARGET_WANTS =
241 SYSTEM_UNIT_ALIASES =
245 install-target-wants-hook:
246 what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && dir=$(systemunitdir) && $(add-wants)
247 what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && dir=$(systemunitdir) && $(add-wants)
248 what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && dir=$(systemunitdir) && $(add-wants)
249 what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && dir=$(systemunitdir) && $(add-wants)
250 what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && dir=$(systemunitdir) && $(add-wants)
251 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
252 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
253 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
254 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
255 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
256 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
257 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
258 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
259 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
260 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
263 [ -z "$$what" ] || ( \
264 dir=$(DESTDIR)$$dir/$$wants.wants && \
265 $(MKDIR_P) -m 0755 $$dir && \
268 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
271 install-directories-hook:
272 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
274 install-aliases-hook:
275 set -- $(SYSTEM_UNIT_ALIASES) && \
276 dir=$(systemunitdir) && $(install-aliases)
277 set -- $(USER_UNIT_ALIASES) && \
278 dir=$(userunitdir) && $(install-relative-aliases)
279 set -- $(GENERAL_ALIASES) && \
280 dir= && $(install-relative-aliases)
282 define install-aliases
283 while [ -n "$$1" ]; do \
284 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
285 rm -f $(DESTDIR)$$dir/$$2 && \
286 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
287 shift 2 || exit $$?; \
291 define install-relative-aliases
292 while [ -n "$$1" ]; do \
293 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
294 rm -f $(DESTDIR)$$dir/$$2 && \
295 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
296 shift 2 || exit $$?; \
300 install-touch-usr-hook:
301 touch -c $(DESTDIR)/$(prefix)
303 INSTALL_EXEC_HOOKS += \
304 install-target-wants-hook \
305 install-directories-hook \
306 install-aliases-hook \
307 install-touch-usr-hook
309 # ------------------------------------------------------------------------------
310 AM_V_M4 = $(AM_V_M4_$(V))
311 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
312 AM_V_M4_0 = @echo " M4 " $@;
314 AM_V_XSLT = $(AM_V_XSLT_$(V))
315 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
316 AM_V_XSLT_0 = @echo " XSLT " $@;
318 AM_V_GPERF = $(AM_V_GPERF_$(V))
319 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
320 AM_V_GPERF_0 = @echo " GPERF " $@;
322 AM_V_LN = $(AM_V_LN_$(V))
323 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
324 AM_V_LN_0 = @echo " LN " $@;
326 AM_V_RM = $(AM_V_RM_$(V))
327 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
328 AM_V_RM_0 = @echo " RM " $@;
330 # ------------------------------------------------------------------------------
334 systemd-ask-password \
335 systemd-tty-ask-password-agent \
336 systemd-machine-id-setup
342 systemd-detect-virt \
348 src/kernel-install/kernel-install
350 dist_kernelinstall_SCRIPTS = \
351 src/kernel-install/50-depmod.install \
352 src/kernel-install/90-loaderentry.install
354 rootlibexec_PROGRAMS = \
356 systemd-cgroups-agent \
358 systemd-update-utmp \
362 systemd-reply-password \
368 systemd-socket-proxyd \
371 systemgenerator_PROGRAMS = \
372 systemd-getty-generator \
373 systemd-fstab-generator \
374 systemd-system-update-generator
376 dist_bashcompletion_DATA = \
377 shell-completion/bash/busctl \
378 shell-completion/bash/journalctl \
379 shell-completion/bash/systemctl \
380 shell-completion/bash/systemd-analyze \
381 shell-completion/bash/systemd-cat \
382 shell-completion/bash/systemd-cgls \
383 shell-completion/bash/systemd-cgtop \
384 shell-completion/bash/systemd-delta \
385 shell-completion/bash/systemd-detect-virt \
386 shell-completion/bash/systemd-nspawn \
387 shell-completion/bash/systemd-run \
388 shell-completion/bash/udevadm \
389 shell-completion/bash/kernel-install
391 dist_zshcompletion_DATA = \
392 shell-completion/zsh/_systemctl \
393 shell-completion/zsh/_journalctl \
394 shell-completion/zsh/_udevadm \
395 shell-completion/zsh/_kernel-install \
396 shell-completion/zsh/_systemd-nspawn \
397 shell-completion/zsh/_systemd-analyze \
398 shell-completion/zsh/_systemd-run \
399 shell-completion/zsh/_sd_hosts_or_user_at_host \
400 shell-completion/zsh/_systemd-delta \
401 shell-completion/zsh/_systemd
404 sysctl.d/50-default.conf
406 dist_systemunit_DATA = \
407 units/graphical.target \
408 units/multi-user.target \
409 units/emergency.service \
410 units/emergency.target \
411 units/sysinit.target \
416 units/local-fs.target \
417 units/local-fs-pre.target \
418 units/initrd.target \
419 units/initrd-fs.target \
420 units/initrd-root-fs.target \
421 units/remote-fs.target \
422 units/remote-fs-pre.target \
423 units/network.target \
424 units/network-pre.target \
425 units/network-online.target \
426 units/nss-lookup.target \
427 units/nss-user-lookup.target \
428 units/hibernate.target \
429 units/hybrid-sleep.target \
430 units/poweroff.target \
431 units/reboot.target \
432 units/rescue.target \
433 units/rpcbind.target \
434 units/time-sync.target \
435 units/shutdown.target \
437 units/umount.target \
438 units/sigpwr.target \
440 units/sockets.target \
441 units/busnames.target \
442 units/timers.target \
444 units/suspend.target \
446 units/slices.target \
449 units/systemd-initctl.socket \
450 units/systemd-shutdownd.socket \
451 units/syslog.socket \
452 units/dev-hugepages.mount \
453 units/dev-mqueue.mount \
454 units/sys-kernel-config.mount \
455 units/sys-kernel-debug.mount \
456 units/sys-fs-fuse-connections.mount \
458 units/printer.target \
460 units/bluetooth.target \
461 units/smartcard.target \
462 units/systemd-ask-password-wall.path \
463 units/systemd-ask-password-console.path \
464 units/systemd-udevd-control.socket \
465 units/systemd-udevd-kernel.socket \
466 units/system-update.target \
467 units/initrd-switch-root.target \
468 units/ldconfig.service
470 nodist_systemunit_DATA = \
471 units/getty@.service \
472 units/serial-getty@.service \
473 units/console-shell.service \
474 units/console-getty.service \
475 units/container-getty@.service \
476 units/systemd-initctl.service \
477 units/systemd-shutdownd.service \
478 units/systemd-remount-fs.service \
479 units/systemd-update-utmp.service \
480 units/systemd-update-utmp-runlevel.service \
481 units/systemd-ask-password-wall.service \
482 units/systemd-ask-password-console.service \
483 units/systemd-sysctl.service \
484 units/emergency.service \
485 units/rescue.service \
486 units/user@.service \
487 units/systemd-hibernate.service \
488 units/systemd-hybrid-sleep.service \
489 units/systemd-suspend.service \
490 units/systemd-halt.service \
491 units/systemd-poweroff.service \
492 units/systemd-reboot.service \
493 units/systemd-kexec.service \
494 units/systemd-fsck@.service \
495 units/systemd-fsck-root.service \
496 units/systemd-udevd.service \
497 units/systemd-udev-trigger.service \
498 units/systemd-udev-settle.service \
499 units/systemd-udev-hwdb-update.service \
500 units/debug-shell.service \
501 units/initrd-parse-etc.service \
502 units/initrd-cleanup.service \
503 units/initrd-udevadm-cleanup-db.service \
504 units/initrd-switch-root.service \
505 units/systemd-nspawn@.service \
506 units/systemd-update-done.service
508 dist_userunit_DATA = \
509 units/user/basic.target \
510 units/user/default.target \
511 units/user/exit.target
513 nodist_userunit_DATA = \
514 units/user/systemd-exit.service
516 dist_systempreset_DATA = \
517 system-preset/90-systemd.preset
520 units/getty@.service.m4 \
521 units/serial-getty@.service.m4 \
522 units/console-shell.service.m4.in \
523 units/console-getty.service.m4.in \
524 units/container-getty@.service.m4.in \
525 units/rescue.service.m4.in \
526 units/systemd-initctl.service.in \
527 units/systemd-shutdownd.service.in \
528 units/systemd-remount-fs.service.in \
529 units/systemd-update-utmp.service.in \
530 units/systemd-update-utmp-runlevel.service.in \
531 units/systemd-ask-password-wall.service.in \
532 units/systemd-ask-password-console.service.in \
533 units/systemd-sysctl.service.in \
534 units/emergency.service.in \
535 units/systemd-halt.service.in \
536 units/systemd-poweroff.service.in \
537 units/systemd-reboot.service.in \
538 units/systemd-kexec.service.in \
539 units/user/systemd-exit.service.in \
540 units/systemd-fsck@.service.in \
541 units/systemd-fsck-root.service.in \
542 units/user@.service.in \
543 units/debug-shell.service.in \
544 units/systemd-hibernate.service.in \
545 units/systemd-hybrid-sleep.service.in \
546 units/systemd-suspend.service.in \
547 units/quotaon.service.in \
548 units/initrd-parse-etc.service.in \
549 units/initrd-cleanup.service.in \
550 units/initrd-udevadm-cleanup-db.service.in \
551 units/initrd-switch-root.service.in \
552 units/systemd-nspawn@.service.in \
553 units/systemd-update-done.service.in
556 units/console-shell.service.m4 \
557 units/console-getty.service.m4 \
558 units/container-getty@.service.m4 \
559 units/rescue.service.m4 \
560 units/user@.service.m4
563 nodist_systemunit_DATA += \
564 units/rc-local.service \
565 units/halt-local.service
567 systemgenerator_PROGRAMS += \
568 systemd-sysv-generator \
569 systemd-rc-local-generator
573 units/rc-local.service.in \
574 units/halt-local.service.in
576 # automake is broken and can't handle files with a dash in front
577 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
579 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
581 units-uninstall-hook:
582 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
584 INSTALL_DATA_HOOKS += units-install-hook
585 UNINSTALL_DATA_HOOKS += units-uninstall-hook
594 src/libsystemd/sd-bus/PORTING-DBUS1 \
595 src/libsystemd/sd-bus/DIFFERENCES \
596 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
598 @INTLTOOL_POLICY_RULE@
600 # ------------------------------------------------------------------------------
605 include Makefile-man.am
607 .PHONY: man update-man-list
608 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
611 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
613 ${XML_FILES:.xml=.html}
615 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
632 $(AM_V_at)$(MKDIR_P) $(dir $@)
633 $(AM_V_LN)$(LN_S) -f ../../man $@
642 man/index.html: man/systemd.index.html
643 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
651 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
652 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
653 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
655 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB)
656 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
657 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
658 @echo "Makefile-man.am has been regenerated"
660 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
661 $(AM_V_at)$(MKDIR_P) $(dir $@)
662 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
664 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py $(SOURCE_XML_FILES)
665 $(AM_V_at)$(MKDIR_P) $(dir $@)
666 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
669 man/systemd.index.xml \
671 man/systemd.directives.xml
674 man/systemd.index.xml \
675 man/systemd.directives.xml
686 tools/make-man-index.py \
687 tools/make-directive-index.py \
688 tools/make-man-rules.py \
691 # ------------------------------------------------------------------------------
692 noinst_LTLIBRARIES += \
695 libsystemd_shared_la_SOURCES = \
696 src/shared/linux/auto_dev-ioctl.h \
697 src/shared/linux/fanotify.h \
698 src/shared/ioprio.h \
699 src/shared/missing.h \
700 src/shared/initreq.h \
701 src/shared/securebits.h \
702 src/shared/special.h \
706 src/shared/sparse-endian.h \
707 src/shared/refcnt.h \
708 src/shared/udev-util.h \
709 src/shared/bus-errors.h \
710 src/shared/device-nodes.c \
711 src/shared/device-nodes.h \
716 src/shared/architecture.c \
717 src/shared/architecture.h \
718 src/shared/efivars.c \
719 src/shared/efivars.h \
720 src/shared/path-util.c \
721 src/shared/path-util.h \
722 src/shared/time-util.c \
723 src/shared/time-util.h \
724 src/shared/hashmap.c \
725 src/shared/hashmap.h \
726 src/shared/siphash24.c \
727 src/shared/siphash24.h \
734 src/shared/sleep-config.c \
735 src/shared/sleep-config.h \
738 src/shared/env-util.c \
739 src/shared/env-util.h \
740 src/shared/strbuf.c \
741 src/shared/strbuf.h \
742 src/shared/strxcpyx.c \
743 src/shared/strxcpyx.h \
744 src/shared/conf-parser.c \
745 src/shared/conf-parser.h \
748 src/shared/ratelimit.h \
749 src/shared/ratelimit.c \
750 src/shared/exit-status.c \
751 src/shared/exit-status.h \
754 src/shared/gunicode.c \
755 src/shared/gunicode.h \
758 src/shared/socket-util.c \
759 src/shared/socket-util.h \
760 src/shared/conf-files.c \
761 src/shared/conf-files.h \
762 src/shared/cgroup-util.c \
763 src/shared/cgroup-util.h \
764 src/shared/cgroup-show.c \
765 src/shared/cgroup-show.h \
766 src/shared/unit-name.c \
767 src/shared/unit-name.h \
768 src/shared/utmp-wtmp.c \
769 src/shared/utmp-wtmp.h \
770 src/shared/watchdog.c \
771 src/shared/watchdog.h \
772 src/shared/spawn-ask-password-agent.c \
773 src/shared/spawn-ask-password-agent.h \
774 src/shared/replace-var.c \
775 src/shared/replace-var.h \
776 src/shared/spawn-polkit-agent.c \
777 src/shared/spawn-polkit-agent.h \
778 src/shared/clock-util.c \
779 src/shared/clock-util.h \
780 src/shared/time-dst.c \
781 src/shared/time-dst.h \
782 src/shared/calendarspec.c \
783 src/shared/calendarspec.h \
784 src/shared/fileio.c \
785 src/shared/fileio.h \
786 src/shared/output-mode.h \
787 src/shared/MurmurHash2.c \
788 src/shared/MurmurHash2.h \
789 src/shared/acpi-fpdt.h \
790 src/shared/acpi-fpdt.c \
791 src/shared/boot-timestamps.h \
792 src/shared/boot-timestamps.c \
795 src/shared/smack-util.c \
796 src/shared/smack-util.h \
797 src/shared/apparmor-util.c \
798 src/shared/apparmor-util.h \
799 src/shared/ima-util.c \
800 src/shared/ima-util.h \
801 src/shared/ptyfwd.c \
802 src/shared/ptyfwd.h \
803 src/shared/errno-list.c \
804 src/shared/errno-list.h \
805 src/shared/af-list.c \
806 src/shared/af-list.h \
811 src/shared/condition-util.c \
812 src/shared/condition-util.h \
813 src/shared/bus-label.c \
814 src/shared/bus-label.h \
816 src/shared/generator.h \
817 src/shared/generator.c \
818 src/shared/clean-ipc.h \
819 src/shared/clean-ipc.c \
820 src/shared/login-shared.c \
821 src/shared/login-shared.h \
826 src/shared/eventfd-util.c \
827 src/shared/eventfd-util.h \
831 nodist_libsystemd_shared_la_SOURCES = \
832 src/shared/errno-from-name.h \
833 src/shared/errno-to-name.h \
834 src/shared/af-from-name.h \
835 src/shared/af-to-name.h
837 libsystemd_shared_la_CFLAGS = \
841 # ------------------------------------------------------------------------------
842 noinst_LTLIBRARIES += \
845 libsystemd_units_la_SOURCES = \
846 src/shared/install.c \
847 src/shared/install.h \
848 src/shared/install-printf.c \
849 src/shared/install-printf.h \
850 src/shared/path-lookup.c \
851 src/shared/path-lookup.h \
852 src/shared/specifier.c \
853 src/shared/specifier.h
855 # ------------------------------------------------------------------------------
856 noinst_LTLIBRARIES += \
859 libsystemd_label_la_SOURCES = \
860 src/shared/socket-label.c \
863 src/shared/selinux-util.c \
864 src/shared/selinux-util.h \
865 src/shared/mkdir-label.c \
866 src/shared/ask-password-api.c \
867 src/shared/ask-password-api.h \
868 src/shared/fileio-label.c \
869 src/shared/fileio-label.h \
870 src/shared/dev-setup.c \
871 src/shared/dev-setup.h
873 libsystemd_label_la_CFLAGS = \
877 libsystemd_label_la_LIBADD = \
880 # ------------------------------------------------------------------------------
883 noinst_LTLIBRARIES += \
884 libsystemd-seccomp.la
886 libsystemd_seccomp_la_SOURCES = \
887 src/shared/seccomp-util.h \
888 src/shared/seccomp-util.c
890 libsystemd_seccomp_la_CFLAGS = \
894 libsystemd_seccomp_la_LIBADD = \
898 # ------------------------------------------------------------------------------
899 noinst_LTLIBRARIES += \
902 libsystemd_logs_la_SOURCES = \
903 src/shared/logs-show.c \
904 src/shared/logs-show.h
906 # ------------------------------------------------------------------------------
907 noinst_LTLIBRARIES += \
908 libsystemd-capability.la
910 libsystemd_capability_la_SOURCES = \
911 src/shared/capability.c \
912 src/shared/capability.h
914 libsystemd_capability_la_CFLAGS = \
918 libsystemd_capability_la_LIBADD = \
921 # ------------------------------------------------------------------------------
923 noinst_LTLIBRARIES += \
926 libsystemd_acl_la_SOURCES = \
927 src/shared/acl-util.c \
928 src/shared/acl-util.h
930 libsystemd_acl_la_CFLAGS = \
934 libsystemd_acl_la_LIBADD = \
938 # ------------------------------------------------------------------------------
939 noinst_LTLIBRARIES += \
942 libsystemd_core_la_SOURCES = \
945 src/core/unit-printf.c \
946 src/core/unit-printf.h \
951 src/core/transaction.c \
952 src/core/transaction.h \
953 src/core/load-fragment.c \
954 src/core/load-fragment.h \
963 src/core/snapshot.c \
964 src/core/snapshot.h \
969 src/core/automount.c \
970 src/core/automount.h \
981 src/core/load-dropin.c \
982 src/core/load-dropin.h \
989 src/core/dbus-manager.c \
990 src/core/dbus-manager.h \
991 src/core/dbus-unit.c \
992 src/core/dbus-unit.h \
993 src/core/dbus-job.c \
994 src/core/dbus-job.h \
995 src/core/dbus-service.c \
996 src/core/dbus-service.h \
997 src/core/dbus-socket.c \
998 src/core/dbus-socket.h \
999 src/core/dbus-busname.c \
1000 src/core/dbus-busname.h \
1001 src/core/dbus-target.c \
1002 src/core/dbus-target.h \
1003 src/core/dbus-snapshot.c \
1004 src/core/dbus-snapshot.h \
1005 src/core/dbus-device.c \
1006 src/core/dbus-device.h \
1007 src/core/dbus-mount.c \
1008 src/core/dbus-mount.h \
1009 src/core/dbus-automount.c \
1010 src/core/dbus-automount.h \
1011 src/core/dbus-swap.c \
1012 src/core/dbus-swap.h \
1013 src/core/dbus-timer.c \
1014 src/core/dbus-timer.h \
1015 src/core/dbus-path.c \
1016 src/core/dbus-path.h \
1017 src/core/dbus-slice.c \
1018 src/core/dbus-slice.h \
1019 src/core/dbus-scope.c \
1020 src/core/dbus-scope.h \
1021 src/core/dbus-execute.c \
1022 src/core/dbus-execute.h \
1023 src/core/dbus-kill.c \
1024 src/core/dbus-kill.h \
1025 src/core/dbus-cgroup.c \
1026 src/core/dbus-cgroup.h \
1029 src/core/selinux-access.c \
1030 src/core/selinux-access.h \
1031 src/core/selinux-setup.c \
1032 src/core/selinux-setup.h \
1033 src/core/smack-setup.c \
1034 src/core/smack-setup.h \
1035 src/core/ima-setup.c \
1036 src/core/ima-setup.h \
1037 src/core/locale-setup.h \
1038 src/core/locale-setup.c \
1039 src/core/hostname-setup.c \
1040 src/core/hostname-setup.h \
1041 src/core/machine-id-setup.c \
1042 src/core/machine-id-setup.h \
1043 src/core/mount-setup.c \
1044 src/core/mount-setup.h \
1045 src/core/loopback-setup.h \
1046 src/core/loopback-setup.c \
1047 src/core/condition.c \
1048 src/core/condition.h \
1049 src/core/namespace.c \
1050 src/core/namespace.h \
1052 src/core/sysfs-show.h \
1053 src/core/switch-root.h \
1054 src/core/switch-root.c \
1055 src/core/killall.h \
1056 src/core/killall.c \
1057 src/core/audit-fd.c \
1058 src/core/audit-fd.h \
1059 src/core/show-status.c \
1060 src/core/show-status.h
1063 libsystemd_core_la_SOURCES += \
1064 src/core/kmod-setup.c \
1065 src/core/kmod-setup.h
1068 nodist_libsystemd_core_la_SOURCES = \
1069 src/core/load-fragment-gperf.c \
1070 src/core/load-fragment-gperf-nulstr.c
1072 libsystemd_core_la_CFLAGS = \
1078 $(APPARMOR_CFLAGS) \
1082 libsystemd_core_la_LIBADD = \
1083 libsystemd-capability.la \
1084 libsystemd-units.la \
1085 libsystemd-label.la \
1086 libudev-internal.la \
1087 libsystemd-shared.la \
1088 libsystemd-internal.la \
1097 libsystemd_core_la_LIBADD += \
1098 libsystemd-seccomp.la
1101 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1102 $(AM_V_at)$(MKDIR_P) $(dir $@)
1103 $(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 ";" }' < $< > $@
1106 src/core/load-fragment-gperf.gperf.m4
1109 src/core/load-fragment-gperf.gperf \
1110 src/core/load-fragment-gperf.c \
1111 src/core/load-fragment-gperf-nulstr.c \
1112 src/shared/errno-list.txt \
1113 src/shared/errno-from-name.gperf \
1114 src/shared/af-list.txt \
1115 src/shared/af-from-name.gperf
1118 src/shared/errno-from-name.h \
1119 src/shared/errno-to-name.h \
1120 src/shared/af-from-name.h \
1121 src/shared/af-to-name.h
1123 src/shared/errno-list.txt:
1124 $(AM_V_at)$(MKDIR_P) $(dir $@)
1125 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - < /dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' > $@
1127 src/shared/errno-from-name.gperf: src/shared/errno-list.txt
1128 $(AM_V_at)$(MKDIR_P) $(dir $@)
1129 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct errno_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' < $< > $@
1131 src/shared/errno-from-name.h: src/shared/errno-from-name.gperf
1132 $(AM_V_at)$(MKDIR_P) $(dir $@)
1133 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_errno -H hash_errno_name -p -C < $< > $@
1135 src/shared/errno-to-name.h: src/shared/errno-list.txt
1136 $(AM_V_at)$(MKDIR_P) $(dir $@)
1137 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' < $< > $@
1139 src/shared/af-list.txt:
1140 $(AM_V_at)$(MKDIR_P) $(dir $@)
1141 $(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; }' > $@
1143 src/shared/af-from-name.gperf: src/shared/af-list.txt
1144 $(AM_V_at)$(MKDIR_P) $(dir $@)
1145 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct af_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' < $< > $@
1147 src/shared/af-from-name.h: src/shared/af-from-name.gperf
1148 $(AM_V_at)$(MKDIR_P) $(dir $@)
1149 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_af -H hash_af_name -p -C < $< > $@
1151 src/shared/af-to-name.h: src/shared/af-list.txt
1152 $(AM_V_at)$(MKDIR_P) $(dir $@)
1153 $(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 "};"}' < $< > $@
1155 # ------------------------------------------------------------------------------
1164 libsystemd-core.la \
1167 dist_pkgsysconf_DATA += \
1168 src/core/system.conf \
1171 dist_dbuspolicy_DATA += \
1172 src/core/org.freedesktop.systemd1.conf
1174 dist_dbussystemservice_DATA += \
1175 src/core/org.freedesktop.systemd1.service
1177 polkitpolicy_in_in_files += \
1178 src/core/org.freedesktop.systemd1.policy.in.in
1180 pkgconfigdata_DATA = \
1183 nodist_rpmmacros_DATA = \
1184 src/core/macros.systemd
1187 src/core/systemd.pc.in \
1188 src/core/macros.systemd.in
1191 src/core/macros.systemd \
1192 src/core/org.freedesktop.systemd1.policy.in
1194 # ------------------------------------------------------------------------------
1233 test-strip-tab-ansi \
1248 test/sched_idle_bad.service \
1249 test/sched_idle_ok.service \
1250 test/sched_rr_bad.service \
1251 test/sched_rr_ok.service \
1252 test/sched_rr_change.service \
1254 test/daughter.service \
1258 src/test/test-helper.h
1260 test_device_nodes_SOURCES = \
1261 src/test/test-device-nodes.c
1263 test_device_nodes_LDADD = \
1264 libsystemd-shared.la
1266 test_engine_SOURCES = \
1267 src/test/test-engine.c
1269 test_engine_CFLAGS = \
1273 test_engine_LDADD = \
1274 libsystemd-core.la \
1277 test_job_type_SOURCES = \
1278 src/test/test-job-type.c
1280 test_job_type_CFLAGS = \
1284 test_job_type_LDADD = \
1285 libsystemd-core.la \
1298 test_loopback_SOURCES = \
1299 src/test/test-loopback.c
1301 test_loopback_LDADD = \
1304 test_hostname_SOURCES = \
1305 src/test/test-hostname.c
1307 test_hostname_LDADD = \
1314 test_boot_timestamp_SOURCES = \
1315 src/test/test-boot-timestamps.c
1317 test_boot_timestamp_LDADD = \
1318 libsystemd-shared.la
1321 test_unit_name_SOURCES = \
1322 src/test/test-unit-name.c
1324 test_unit_name_CFLAGS = \
1328 test_unit_name_LDADD = \
1329 libsystemd-core.la \
1332 test_unit_file_SOURCES = \
1333 src/test/test-unit-file.c
1335 test_unit_file_CFLAGS = \
1339 test_unit_file_LDADD = \
1340 libsystemd-core.la \
1343 test_utf8_SOURCES = \
1344 src/test/test-utf8.c
1347 libsystemd-shared.la
1349 test_fdset_SOURCES = \
1350 src/test/test-fdset.c
1352 test_fdset_LDADD = \
1355 test_util_SOURCES = \
1356 src/test/test-util.c
1361 test_socket_util_SOURCES = \
1362 src/test/test-socket-util.c
1364 test_socket_util_LDADD = \
1367 test_ring_SOURCES = \
1368 src/test/test-ring.c
1373 test_tmpfiles_SOURCES = \
1374 src/test/test-tmpfiles.c
1376 test_tmpfiles_LDADD = \
1377 libsystemd-shared.la
1379 test_namespace_SOURCES = \
1380 src/test/test-namespace.c
1382 test_namespace_LDADD = \
1385 test_hashmap_SOURCES = \
1386 src/test/test-hashmap.c
1388 test_hashmap_LDADD = \
1391 test_xml_SOURCES = \
1395 libsystemd-shared.la
1397 test_list_SOURCES = \
1398 src/test/test-list.c
1403 test_tables_SOURCES = \
1404 src/test/test-tables.c \
1405 src/shared/test-tables.h
1407 test_tables_CFLAGS = \
1411 test_tables_LDADD = \
1412 libsystemd-logs.la \
1413 libsystemd-journal-internal.la \
1414 libsystemd-core.la \
1417 test_prioq_SOURCES = \
1418 src/test/test-prioq.c
1420 test_prioq_LDADD = \
1423 test_fileio_SOURCES = \
1424 src/test/test-fileio.c
1426 test_fileio_LDADD = \
1429 test_time_SOURCES = \
1430 src/test/test-time.c
1435 test_architecture_SOURCES = \
1436 src/test/test-architecture.c
1438 test_architecture_LDADD = \
1439 libsystemd-shared.la
1441 test_log_SOURCES = \
1447 test_ipcrm_SOURCES = \
1448 src/test/test-ipcrm.c
1450 test_ipcrm_LDADD = \
1451 libsystemd-shared.la \
1454 test_rtnl_manual_SOURCES = \
1455 src/test/test-rtnl-manual.c
1457 test_rtnl_manual_CFLAGS = \
1461 test_rtnl_manual_LDADD = \
1462 libsystemd-internal.la \
1463 libsystemd-shared.la \
1466 test_ellipsize_SOURCES = \
1467 src/test/test-ellipsize.c
1469 test_ellipsize_LDADD = \
1472 test_date_SOURCES = \
1473 src/test/test-date.c
1478 test_sleep_SOURCES = \
1479 src/test/test-sleep.c
1481 test_sleep_LDADD = \
1484 test_replace_var_SOURCES = \
1485 src/test/test-replace-var.c
1487 test_replace_var_LDADD = \
1488 libsystemd-shared.la
1490 test_calendarspec_SOURCES = \
1491 src/test/test-calendarspec.c
1493 test_calendarspec_LDADD = \
1494 libsystemd-shared.la
1496 test_strip_tab_ansi_SOURCES = \
1497 src/test/test-strip-tab-ansi.c
1499 test_strip_tab_ansi_LDADD = \
1500 libsystemd-shared.la
1502 test_daemon_SOURCES = \
1503 src/test/test-daemon.c
1505 test_daemon_LDADD = \
1506 libsystemd-internal.la \
1507 libsystemd-shared.la
1509 test_cgroup_SOURCES = \
1510 src/test/test-cgroup.c
1512 test_cgroup_LDADD = \
1513 libsystemd-label.la \
1514 libsystemd-shared.la \
1515 libsystemd-internal.la
1517 test_cgroup_mask_SOURCES = \
1518 src/test/test-cgroup-mask.c
1520 test_cgroup_mask_CPPFLAGS = \
1522 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1524 test_cgroup_mask_CFLAGS = \
1528 test_cgroup_mask_LDADD = \
1529 libsystemd-core.la \
1532 test_cgroup_util_SOURCES = \
1533 src/test/test-cgroup-util.c
1535 test_cgroup_util_LDADD = \
1536 libsystemd-label.la \
1537 libsystemd-internal.la \
1538 libsystemd-shared.la
1540 test_env_replace_SOURCES = \
1541 src/test/test-env-replace.c
1543 test_env_replace_LDADD = \
1544 libsystemd-shared.la
1546 test_strbuf_SOURCES = \
1547 src/test/test-strbuf.c
1549 test_strbuf_LDADD = \
1550 libsystemd-shared.la
1552 test_strv_SOURCES = \
1553 src/test/test-strv.c
1556 libsystemd-units.la \
1557 libsystemd-internal.la \
1558 libsystemd-shared.la
1560 test_path_util_SOURCES = \
1561 src/test/test-path-util.c
1563 test_path_util_LDADD = \
1564 libsystemd-shared.la
1566 test_strxcpyx_SOURCES = \
1567 src/test/test-strxcpyx.c
1569 test_strxcpyx_LDADD = \
1570 libsystemd-shared.la
1572 test_install_SOURCES = \
1573 src/test/test-install.c
1575 test_install_LDADD = \
1576 libsystemd-units.la \
1577 libsystemd-label.la \
1578 libsystemd-shared.la \
1579 libsystemd-internal.la
1581 test_watchdog_SOURCES = \
1582 src/test/test-watchdog.c
1584 test_watchdog_LDADD = \
1585 libsystemd-shared.la
1587 test_sched_prio_SOURCES = \
1588 src/test/test-sched-prio.c
1590 test_sched_prio_CPPFLAGS = \
1592 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1594 test_sched_prio_CFLAGS = \
1598 test_sched_prio_LDADD = \
1599 libsystemd-core.la \
1602 # ------------------------------------------------------------------------------
1603 ## .PHONY so it always rebuilds it
1604 .PHONY: coverage lcov-run lcov-report coverage-sync
1606 # run lcov from scratch, always
1611 coverage_dir = coverage
1612 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1615 # reset run coverage tests
1617 @rm -rf $(coverage_dir)
1618 lcov $(coverage_opts) --zerocounters
1621 # generate report based on current coverage data
1623 $(MKDIR_P) $(coverage_dir)
1624 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1625 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1626 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1627 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1629 # lcov doesn't work properly with vpath builds, make sure that bad
1630 # output is not uploaded by mistake.
1631 coverage-sync: coverage
1632 test "$(builddir)" = "$(srcdir)"
1633 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1636 lcov-run lcov-report:
1637 echo "Need to reconfigure with --enable-coverage"
1640 # ------------------------------------------------------------------------------
1641 systemd_analyze_SOURCES = \
1642 src/analyze/analyze.c
1644 systemd_analyze_LDADD = \
1645 libsystemd-internal.la \
1646 libsystemd-shared.la
1648 # ------------------------------------------------------------------------------
1649 systemd_initctl_SOURCES = \
1650 src/initctl/initctl.c
1652 systemd_initctl_LDADD = \
1653 libsystemd-internal.la \
1654 libsystemd-shared.la
1656 # ------------------------------------------------------------------------------
1657 systemd_update_utmp_SOURCES = \
1658 src/update-utmp/update-utmp.c
1660 systemd_update_utmp_CFLAGS = \
1664 systemd_update_utmp_LDADD = \
1665 libsystemd-internal.la \
1666 libsystemd-shared.la \
1669 # ------------------------------------------------------------------------------
1670 systemd_update_done_SOURCES = \
1671 src/update-done/update-done.c
1673 systemd_update_done_LDADD = \
1674 libsystemd-internal.la \
1675 libsystemd-shared.la
1677 # ------------------------------------------------------------------------------
1678 systemd_shutdownd_SOURCES = \
1679 src/shutdownd/shutdownd.c
1681 systemd_shutdownd_LDADD = \
1682 libsystemd-label.la \
1683 libsystemd-internal.la \
1684 libsystemd-shared.la
1687 src/systemd/sd-shutdown.h
1689 # ------------------------------------------------------------------------------
1690 systemd_shutdown_SOURCES = \
1693 src/core/shutdown.c \
1694 src/core/mount-setup.c \
1695 src/core/mount-setup.h \
1696 src/core/killall.h \
1699 systemd_shutdown_LDADD = \
1700 libsystemd-label.la \
1701 libudev-internal.la \
1702 libsystemd-shared.la
1704 # ------------------------------------------------------------------------------
1706 systemd_modules_load_SOURCES = \
1707 src/modules-load/modules-load.c
1709 systemd_modules_load_CFLAGS = \
1713 systemd_modules_load_LDADD = \
1714 libsystemd-shared.la \
1717 rootlibexec_PROGRAMS += \
1718 systemd-modules-load
1720 nodist_systemunit_DATA += \
1721 units/systemd-modules-load.service
1723 SYSINIT_TARGET_WANTS += \
1724 systemd-modules-load.service
1727 nodist_systemunit_DATA += \
1728 units/kmod-static-nodes.service
1730 SYSINIT_TARGET_WANTS += \
1731 kmod-static-nodes.service
1736 units/systemd-modules-load.service.in \
1737 units/kmod-static-nodes.service.in
1739 # ------------------------------------------------------------------------------
1741 systemd_tmpfiles_SOURCES = \
1742 src/tmpfiles/tmpfiles.c
1744 systemd_tmpfiles_LDADD = \
1745 libsystemd-units.la \
1746 libsystemd-label.la \
1747 libsystemd-capability.la \
1748 libsystemd-internal.la \
1749 libsystemd-shared.la
1751 rootbin_PROGRAMS += \
1754 dist_systemunit_DATA += \
1755 units/systemd-tmpfiles-clean.timer
1757 nodist_systemunit_DATA += \
1758 units/systemd-tmpfiles-setup-dev.service \
1759 units/systemd-tmpfiles-setup.service \
1760 units/systemd-tmpfiles-clean.service
1762 dist_tmpfiles_DATA = \
1763 tmpfiles.d/systemd.conf \
1764 tmpfiles.d/systemd-nologin.conf \
1765 tmpfiles.d/tmp.conf \
1766 tmpfiles.d/x11.conf \
1767 tmpfiles.d/var.conf \
1771 dist_tmpfiles_DATA += \
1772 tmpfiles.d/legacy.conf
1775 SYSINIT_TARGET_WANTS += \
1776 systemd-tmpfiles-setup-dev.service \
1777 systemd-tmpfiles-setup.service
1779 dist_zshcompletion_DATA += \
1780 shell-completion/zsh/_systemd-tmpfiles
1782 TIMERS_TARGET_WANTS += \
1783 systemd-tmpfiles-clean.timer
1787 $(sysconfdir)/tmpfiles.d
1791 units/systemd-tmpfiles-setup-dev.service.in \
1792 units/systemd-tmpfiles-setup.service.in \
1793 units/systemd-tmpfiles-clean.service.in
1795 # ------------------------------------------------------------------------------
1797 systemd_sysusers_SOURCES = \
1798 src/sysusers/sysusers.c
1800 systemd_sysusers_LDADD = \
1801 libsystemd-units.la \
1802 libsystemd-label.la \
1803 libsystemd-capability.la \
1804 libsystemd-internal.la \
1805 libsystemd-shared.la
1807 rootbin_PROGRAMS += \
1810 nodist_systemunit_DATA += \
1811 units/systemd-sysusers.service
1813 SYSINIT_TARGET_WANTS += \
1814 systemd-sysusers.service
1816 nodist_sysusers_DATA = \
1817 sysusers.d/systemd.conf
1820 units/systemd-sysusers.service.in \
1821 sysusers.d/systemd.conf.in
1827 # ------------------------------------------------------------------------------
1828 systemd_machine_id_setup_SOURCES = \
1829 src/machine-id-setup/machine-id-setup-main.c \
1830 src/core/machine-id-setup.c \
1831 src/core/machine-id-setup.h
1833 systemd_machine_id_setup_LDADD = \
1834 libsystemd-label.la \
1835 libsystemd-internal.la \
1836 libsystemd-shared.la
1838 # ------------------------------------------------------------------------------
1839 systemd_sysctl_SOURCES = \
1842 systemd_sysctl_LDADD = \
1843 libsystemd-shared.la
1845 # ------------------------------------------------------------------------------
1846 systemd_sleep_SOURCES = \
1849 systemd_sleep_LDADD = \
1850 libsystemd-shared.la
1852 # ------------------------------------------------------------------------------
1853 systemd_fsck_SOURCES = \
1856 systemd_fsck_LDADD = \
1857 libsystemd-internal.la \
1858 libudev-internal.la \
1859 libsystemd-shared.la
1861 # ------------------------------------------------------------------------------
1862 systemd_ac_power_SOURCES = \
1863 src/ac-power/ac-power.c
1865 systemd_ac_power_LDADD = \
1866 libudev-internal.la \
1867 libsystemd-shared.la
1869 # ------------------------------------------------------------------------------
1870 systemd_detect_virt_SOURCES = \
1871 src/detect-virt/detect-virt.c
1873 systemd_detect_virt_LDADD = \
1874 libsystemd-shared.la
1876 INSTALL_EXEC_HOOKS += \
1877 systemd-detect-virt-install-hook
1879 # ------------------------------------------------------------------------------
1880 systemd_delta_SOURCES = \
1883 systemd_delta_LDADD = \
1884 libsystemd-shared.la
1886 # ------------------------------------------------------------------------------
1887 systemd_getty_generator_SOURCES = \
1888 src/getty-generator/getty-generator.c
1890 systemd_getty_generator_LDADD = \
1891 libsystemd-label.la \
1892 libsystemd-shared.la
1894 # ------------------------------------------------------------------------------
1895 systemd_fstab_generator_SOURCES = \
1896 src/fstab-generator/fstab-generator.c \
1897 src/core/mount-setup.c
1899 systemd_fstab_generator_LDADD = \
1900 libsystemd-label.la \
1901 libsystemd-shared.la
1903 # ------------------------------------------------------------------------------
1904 systemd_system_update_generator_SOURCES = \
1905 src/system-update-generator/system-update-generator.c
1907 systemd_system_update_generator_LDADD = \
1908 libsystemd-label.la \
1909 libsystemd-shared.la
1912 # ------------------------------------------------------------------------------
1913 systemgenerator_PROGRAMS += \
1914 systemd-efi-boot-generator
1916 systemd_efi_boot_generator_SOURCES = \
1917 src/efi-boot-generator/efi-boot-generator.c
1919 systemd_efi_boot_generator_LDADD = \
1920 libsystemd-label.la \
1921 libsystemd-shared.la
1923 # ------------------------------------------------------------------------------
1926 src/boot/boot-loader.h \
1927 src/boot/bootctl.c \
1928 src/boot/boot-loader.c \
1932 libsystemd-shared.la \
1933 libsystemd-internal.la
1938 dist_bashcompletion_DATA += \
1939 shell-completion/bash/bootctl
1941 dist_zshcompletion_DATA += \
1942 shell-completion/zsh/_bootctl
1946 # ------------------------------------------------------------------------------
1948 systemgenerator_PROGRAMS += \
1949 systemd-gpt-auto-generator
1951 systemd_gpt_auto_generator_SOURCES = \
1952 src/gpt-auto-generator/gpt-auto-generator.c \
1953 src/shared/blkid-util.h
1955 systemd_gpt_auto_generator_LDADD = \
1956 libsystemd-label.la \
1957 libsystemd-internal.la \
1958 libudev-internal.la \
1959 libsystemd-shared.la \
1962 systemd_gpt_auto_generator_CFLAGS = \
1967 # ------------------------------------------------------------------------------
1969 systemgenerator_PROGRAMS += \
1970 systemd-dbus1-generator
1972 systemd_dbus1_generator_SOURCES = \
1973 src/dbus1-generator/dbus1-generator.c
1975 systemd_dbus1_generator_LDADD = \
1976 libsystemd-label.la \
1977 libsystemd-shared.la \
1978 libsystemd-internal.la
1980 dbus1-generator-install-hook:
1981 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
1982 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
1983 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
1985 dbus1-generator-uninstall-hook:
1986 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
1988 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
1989 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
1992 # ------------------------------------------------------------------------------
1993 systemd_sysv_generator_SOURCES = \
1994 src/sysv-generator/sysv-generator.c
1996 systemd_sysv_generator_LDADD = \
1997 libsystemd-core.la \
1998 libsystemd-label.la \
1999 libsystemd-shared.la
2001 # ------------------------------------------------------------------------------
2002 systemd_rc_local_generator_SOURCES = \
2003 src/rc-local-generator/rc-local-generator.c
2005 systemd_rc_local_generator_LDADD = \
2006 libsystemd-label.la \
2007 libsystemd-shared.la
2009 # ------------------------------------------------------------------------------
2010 systemd_remount_fs_SOURCES = \
2011 src/remount-fs/remount-fs.c \
2012 src/core/mount-setup.c \
2013 src/core/mount-setup.h
2015 systemd_remount_fs_LDADD = \
2016 libsystemd-label.la \
2017 libsystemd-shared.la
2019 # ------------------------------------------------------------------------------
2020 systemd_cgroups_agent_SOURCES = \
2021 src/cgroups-agent/cgroups-agent.c
2023 systemd_cgroups_agent_LDADD = \
2024 libsystemd-internal.la \
2025 libsystemd-shared.la
2027 # ------------------------------------------------------------------------------
2028 systemctl_SOURCES = \
2029 src/systemctl/systemctl.c
2032 libsystemd-units.la \
2033 libsystemd-label.la \
2034 libsystemd-internal.la \
2035 libsystemd-logs.la \
2036 libsystemd-journal-internal.la \
2037 libsystemd-shared.la
2039 # ------------------------------------------------------------------------------
2040 systemd_notify_SOURCES = \
2041 src/notify/notify.c \
2042 src/readahead/sd-readahead.c
2044 systemd_notify_LDADD = \
2045 libsystemd-internal.la \
2046 libsystemd-shared.la
2048 # ------------------------------------------------------------------------------
2049 systemd_ask_password_SOURCES = \
2050 src/ask-password/ask-password.c
2052 systemd_ask_password_LDADD = \
2053 libsystemd-label.la \
2054 libsystemd-shared.la
2056 # ------------------------------------------------------------------------------
2057 systemd_reply_password_SOURCES = \
2058 src/reply-password/reply-password.c
2060 systemd_reply_password_LDADD = \
2061 libsystemd-shared.la
2063 # ------------------------------------------------------------------------------
2064 systemd_cgls_SOURCES = \
2067 systemd_cgls_LDADD = \
2068 libsystemd-internal.la \
2069 libsystemd-shared.la
2071 # ------------------------------------------------------------------------------
2072 systemd_cgtop_SOURCES = \
2075 systemd_cgtop_LDADD = \
2076 libsystemd-shared.la
2078 # ------------------------------------------------------------------------------
2079 systemd_nspawn_SOURCES = \
2080 src/nspawn/nspawn.c \
2081 src/core/mount-setup.c \
2082 src/core/mount-setup.h \
2083 src/core/loopback-setup.c \
2084 src/core/loopback-setup.h
2086 systemd_nspawn_CFLAGS = \
2091 systemd_nspawn_LDADD = \
2092 libsystemd-label.la \
2093 libsystemd-capability.la \
2094 libsystemd-internal.la \
2095 libudev-internal.la \
2096 libsystemd-shared.la \
2100 systemd_nspawn_LDADD += \
2101 libsystemd-seccomp.la \
2105 # ------------------------------------------------------------------------------
2106 systemd_run_SOURCES = \
2109 systemd_run_LDADD = \
2110 libsystemd-label.la \
2111 libsystemd-capability.la \
2112 libsystemd-internal.la \
2113 libsystemd-shared.la
2115 # ------------------------------------------------------------------------------
2116 systemd_bus_proxyd_SOURCES = \
2117 src/bus-proxyd/bus-proxyd.c \
2118 src/bus-proxyd/bus-policy.c \
2119 src/bus-proxyd/bus-policy.h
2121 systemd_bus_proxyd_LDADD = \
2122 libsystemd-capability.la \
2123 libsystemd-internal.la \
2124 libsystemd-shared.la
2126 bus-proxyd-install-hook:
2127 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
2128 $(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2129 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
2131 bus-proxyd-uninstall-hook:
2132 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2134 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
2135 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
2138 nodist_systemunit_DATA += \
2139 units/systemd-bus-proxyd@.service
2141 dist_systemunit_DATA += \
2142 units/systemd-bus-proxyd.socket
2144 dist_userunit_DATA += \
2145 units/user/systemd-bus-proxyd.socket \
2146 units/user/systemd-bus-proxyd@.service
2150 units/systemd-bus-proxyd@.service.in
2152 # ------------------------------------------------------------------------------
2153 systemd_tty_ask_password_agent_SOURCES = \
2154 src/tty-ask-password-agent/tty-ask-password-agent.c
2156 systemd_tty_ask_password_agent_LDADD = \
2157 libsystemd-label.la \
2158 libsystemd-shared.la
2160 # ------------------------------------------------------------------------------
2161 libsystemd_internal_la_SOURCES = \
2162 src/systemd/sd-bus.h \
2163 src/systemd/sd-bus-protocol.h \
2164 src/systemd/sd-bus-vtable.h \
2165 src/systemd/sd-memfd.h \
2166 src/systemd/sd-utf8.h \
2167 src/systemd/sd-event.h \
2168 src/systemd/sd-rtnl.h \
2169 src/systemd/sd-resolve.h \
2170 src/systemd/sd-login.h \
2171 src/systemd/sd-id128.h \
2172 src/systemd/sd-daemon.h \
2173 src/libsystemd/sd-bus/sd-bus.c \
2174 src/libsystemd/sd-bus/bus-control.c \
2175 src/libsystemd/sd-bus/bus-control.h \
2176 src/libsystemd/sd-bus/bus-error.c \
2177 src/libsystemd/sd-bus/bus-error.h \
2178 src/libsystemd/sd-bus/bus-internal.c \
2179 src/libsystemd/sd-bus/bus-internal.h \
2180 src/libsystemd/sd-bus/bus-socket.c \
2181 src/libsystemd/sd-bus/bus-socket.h \
2182 src/libsystemd/sd-bus/bus-kernel.c \
2183 src/libsystemd/sd-bus/bus-kernel.h \
2184 src/libsystemd/sd-bus/bus-container.c \
2185 src/libsystemd/sd-bus/bus-container.h \
2186 src/libsystemd/sd-bus/bus-message.c \
2187 src/libsystemd/sd-bus/bus-message.h \
2188 src/libsystemd/sd-bus/bus-creds.c \
2189 src/libsystemd/sd-bus/bus-creds.h \
2190 src/libsystemd/sd-bus/bus-signature.c \
2191 src/libsystemd/sd-bus/bus-signature.h \
2192 src/libsystemd/sd-bus/bus-type.c \
2193 src/libsystemd/sd-bus/bus-type.h \
2194 src/libsystemd/sd-bus/bus-match.c \
2195 src/libsystemd/sd-bus/bus-match.h \
2196 src/libsystemd/sd-bus/bus-bloom.c \
2197 src/libsystemd/sd-bus/bus-bloom.h \
2198 src/libsystemd/sd-bus/bus-introspect.c \
2199 src/libsystemd/sd-bus/bus-introspect.h \
2200 src/libsystemd/sd-bus/bus-objects.c \
2201 src/libsystemd/sd-bus/bus-objects.h \
2202 src/libsystemd/sd-bus/bus-gvariant.c \
2203 src/libsystemd/sd-bus/bus-gvariant.h \
2204 src/libsystemd/sd-bus/bus-convenience.c \
2205 src/libsystemd/sd-bus/bus-track.c \
2206 src/libsystemd/sd-bus/bus-track.h \
2207 src/libsystemd/sd-bus/bus-util.c \
2208 src/libsystemd/sd-bus/bus-util.h \
2209 src/libsystemd/sd-bus/bus-slot.c \
2210 src/libsystemd/sd-bus/bus-slot.h \
2211 src/libsystemd/sd-bus/bus-protocol.h \
2212 src/libsystemd/sd-bus/kdbus.h \
2213 src/libsystemd/sd-bus/sd-memfd.c \
2214 src/libsystemd/sd-utf8/sd-utf8.c \
2215 src/libsystemd/sd-event/sd-event.c \
2216 src/libsystemd/sd-event/event-util.h \
2217 src/libsystemd/sd-rtnl/sd-rtnl.c \
2218 src/libsystemd/sd-rtnl/rtnl-internal.h \
2219 src/libsystemd/sd-rtnl/rtnl-message.c \
2220 src/libsystemd/sd-rtnl/rtnl-types.h \
2221 src/libsystemd/sd-rtnl/rtnl-types.c \
2222 src/libsystemd/sd-rtnl/rtnl-util.h \
2223 src/libsystemd/sd-rtnl/rtnl-util.c \
2224 src/libsystemd/sd-id128/sd-id128.c \
2225 src/libsystemd/sd-daemon/sd-daemon.c \
2226 src/libsystemd/sd-login/sd-login.c
2228 nodist_libsystemd_internal_la_SOURCES = \
2229 src/libsystemd/libsystemd.sym \
2230 src/libsystemd/sd-bus/bus-error-mapping.c
2232 libsystemd_internal_la_CFLAGS = \
2236 libsystemd_internal_la_LIBADD = \
2239 libsystemd_resolve_la_SOURCES = \
2240 src/libsystemd/sd-resolve/sd-resolve.c \
2241 src/libsystemd/sd-resolve/resolve-util.h
2243 libsystemd_resolve_la_CFLAGS = \
2247 libsystemd_resolve_la_LIBADD = \
2250 noinst_LTLIBRARIES += \
2251 libsystemd-internal.la \
2252 libsystemd-resolve.la
2254 libsystemd_dump_la_SOURCES = \
2255 src/libsystemd/sd-bus/bus-dump.c \
2256 src/libsystemd/sd-bus/bus-dump.h
2258 libsystemd_dump_la_CFLAGS = \
2262 noinst_LTLIBRARIES += \
2266 src/libsystemd/libsystemd.sym.m4 \
2267 src/libsystemd/libsystemd.pc.in \
2268 src/libsystemd/sd-bus/bus-error-mapping.gperf \
2269 src/libsystemd/sd-bus/DIFFERENCES \
2270 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2273 src/libsystemd/libsystemd.sym \
2274 src/libsystemd/sd-bus/bus-error-mapping.c
2277 src/libsystemd/libsystemd.sym
2279 libsystemd_la_SOURCES = \
2280 $(libsystemd_internal_la_SOURCES) \
2281 $(libsystemd_resolve_la_SOURCES) \
2282 $(libsystemd_journal_internal_la_SOURCES)
2284 nodist_libsystemd_la_SOURCES = \
2285 $(nodist_libsystemd_internal_la_SOURCES)
2287 libsystemd_la_CFLAGS = \
2288 $(libsystemd_internal_la_CFLAGS) \
2289 $(libsystemd_resolve_la_CFLAGS) \
2290 $(libsystemd_journal_internal_la_CFLAGS)
2292 libsystemd_la_LDFLAGS = \
2294 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2295 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2297 libsystemd_la_LIBADD = \
2298 libsystemd-shared.la \
2299 $(libsystemd_internal_la_LIBADD) \
2300 $(libsystemd_journal_internal_la_LIBADD) \
2301 $(libsystemd_resolve_la_LIBADD)
2303 libsystemd-install-hook:
2304 libname=libsystemd.so && $(move-to-rootlibdir)
2306 libsystemd-uninstall-hook:
2307 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2309 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2310 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2312 pkgconfiglib_DATA += \
2313 src/libsystemd/libsystemd.pc
2315 pkginclude_HEADERS += \
2316 src/systemd/sd-login.h \
2317 src/systemd/sd-id128.h \
2318 src/systemd/sd-daemon.h
2321 pkginclude_HEADERS += \
2322 src/systemd/sd-bus.h \
2323 src/systemd/sd-bus-protocol.h \
2324 src/systemd/sd-bus-vtable.h \
2325 src/systemd/sd-memfd.h \
2326 src/systemd/sd-utf8.h \
2327 src/systemd/sd-event.h \
2328 src/systemd/sd-rtnl.h \
2329 src/systemd/sd-resolve.h
2332 lib_LTLIBRARIES += \
2337 test-bus-signature \
2343 test-bus-kernel-bloom \
2344 test-bus-kernel-benchmark \
2346 test-bus-zero-copy \
2347 test-bus-introspect \
2359 test_bus_marshal_SOURCES = \
2360 src/libsystemd/sd-bus/test-bus-marshal.c
2362 test_bus_marshal_LDADD = \
2363 libsystemd-internal.la \
2364 libsystemd-shared.la \
2365 libsystemd-dump.la \
2366 libsystemd-capability.la \
2371 test_bus_marshal_CFLAGS = \
2377 test_bus_signature_SOURCES = \
2378 src/libsystemd/sd-bus/test-bus-signature.c
2380 test_bus_signature_LDADD = \
2381 libsystemd-shared.la \
2382 libsystemd-internal.la
2384 test_bus_chat_SOURCES = \
2385 src/libsystemd/sd-bus/test-bus-chat.c
2387 test_bus_chat_CFLAGS = \
2391 test_bus_chat_LDADD = \
2392 libsystemd-internal.la \
2393 libsystemd-shared.la
2395 test_bus_cleanup_SOURCES = \
2396 src/libsystemd/sd-bus/test-bus-cleanup.c
2398 test_bus_cleanup_CFLAGS = \
2402 test_bus_cleanup_LDADD = \
2403 libsystemd-internal.la \
2404 libsystemd-shared.la
2406 test_bus_server_SOURCES = \
2407 src/libsystemd/sd-bus/test-bus-server.c
2409 test_bus_server_CFLAGS = \
2413 test_bus_server_LDADD = \
2414 libsystemd-internal.la \
2415 libsystemd-shared.la
2417 test_bus_objects_SOURCES = \
2418 src/libsystemd/sd-bus/test-bus-objects.c
2420 test_bus_objects_CFLAGS = \
2425 test_bus_objects_LDADD = \
2426 libsystemd-internal.la \
2427 libsystemd-shared.la \
2428 libsystemd-dump.la \
2429 libsystemd-capability.la \
2432 test_bus_error_SOURCES = \
2433 src/libsystemd/sd-bus/test-bus-error.c
2435 test_bus_error_LDADD = \
2436 libsystemd-internal.la \
2437 libsystemd-shared.la
2439 test_bus_gvariant_SOURCES = \
2440 src/libsystemd/sd-bus/test-bus-gvariant.c
2442 test_bus_gvariant_LDADD = \
2443 libsystemd-internal.la \
2444 libsystemd-shared.la \
2445 libsystemd-dump.la \
2446 libsystemd-capability.la \
2450 test_bus_gvariant_CFLAGS = \
2455 test_bus_creds_SOURCES = \
2456 src/libsystemd/sd-bus/test-bus-creds.c
2458 test_bus_creds_LDADD = \
2459 libsystemd-internal.la \
2460 libsystemd-shared.la \
2461 libsystemd-dump.la \
2462 libsystemd-capability.la
2464 test_bus_match_SOURCES = \
2465 src/libsystemd/sd-bus/test-bus-match.c
2467 test_bus_match_LDADD = \
2468 libsystemd-internal.la \
2469 libsystemd-shared.la
2471 test_bus_kernel_SOURCES = \
2472 src/libsystemd/sd-bus/test-bus-kernel.c
2474 test_bus_kernel_LDADD = \
2475 libsystemd-internal.la \
2476 libsystemd-shared.la \
2477 libsystemd-dump.la \
2478 libsystemd-capability.la \
2481 test_bus_kernel_CFLAGS = \
2485 test_bus_kernel_bloom_SOURCES = \
2486 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
2488 test_bus_kernel_bloom_LDADD = \
2489 libsystemd-internal.la \
2490 libsystemd-shared.la
2492 test_bus_kernel_benchmark_SOURCES = \
2493 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
2495 test_bus_kernel_benchmark_LDADD = \
2496 libsystemd-internal.la \
2497 libsystemd-shared.la
2499 test_bus_memfd_SOURCES = \
2500 src/libsystemd/sd-bus/test-bus-memfd.c
2502 test_bus_memfd_LDADD = \
2503 libsystemd-internal.la \
2504 libsystemd-shared.la
2506 test_bus_zero_copy_SOURCES = \
2507 src/libsystemd/sd-bus/test-bus-zero-copy.c
2509 test_bus_zero_copy_LDADD = \
2510 libsystemd-internal.la \
2511 libsystemd-shared.la \
2512 libsystemd-dump.la \
2513 libsystemd-capability.la \
2516 test_bus_zero_copy_CFLAGS = \
2520 test_bus_introspect_SOURCES = \
2521 src/libsystemd/sd-bus/test-bus-introspect.c
2523 test_bus_introspect_LDADD = \
2524 libsystemd-internal.la \
2525 libsystemd-shared.la
2527 test_event_SOURCES = \
2528 src/libsystemd/sd-event/test-event.c
2530 test_event_LDADD = \
2531 libsystemd-internal.la \
2532 libsystemd-shared.la
2534 test_rtnl_SOURCES = \
2535 src/libsystemd/sd-rtnl/test-rtnl.c
2538 libsystemd-internal.la \
2539 libsystemd-shared.la
2541 test_resolve_SOURCES = \
2542 src/libsystemd/sd-resolve/test-resolve.c
2544 test_resolve_LDADD = \
2545 libsystemd-resolve.la \
2546 libsystemd-internal.la \
2547 libsystemd-shared.la
2549 test_resolve_CFLAGS = \
2554 src/libsystemd/sd-bus/busctl.c
2557 libsystemd-internal.la \
2558 libsystemd-shared.la \
2559 libsystemd-dump.la \
2560 libsystemd-capability.la \
2567 # ------------------------------------------------------------------------------
2568 noinst_LTLIBRARIES += \
2569 libsystemd-network.la
2571 libsystemd_network_la_CFLAGS = \
2575 libsystemd_network_la_SOURCES = \
2576 src/systemd/sd-network.h \
2577 src/systemd/sd-dhcp-client.h \
2578 src/systemd/sd-dhcp-server.h \
2579 src/systemd/sd-dhcp-lease.h \
2580 src/systemd/sd-ipv4ll.h \
2581 src/network/sd-network.c \
2582 src/network/network-util.h \
2583 src/libsystemd-network/sd-dhcp-client.c \
2584 src/libsystemd-network/sd-dhcp-server.c \
2585 src/libsystemd-network/dhcp-network.c \
2586 src/libsystemd-network/dhcp-option.c \
2587 src/libsystemd-network/dhcp-packet.c \
2588 src/libsystemd-network/dhcp-internal.h \
2589 src/libsystemd-network/dhcp-server-internal.h \
2590 src/libsystemd-network/dhcp-protocol.h \
2591 src/libsystemd-network/dhcp-lease-internal.h \
2592 src/libsystemd-network/sd-dhcp-lease.c \
2593 src/libsystemd-network/sd-ipv4ll.c \
2594 src/libsystemd-network/ipv4ll-network.c \
2595 src/libsystemd-network/ipv4ll-packet.c \
2596 src/libsystemd-network/ipv4ll-internal.h \
2597 src/libsystemd-network/network-internal.c \
2598 src/libsystemd-network/network-internal.h \
2599 src/systemd/sd-dhcp6-client.h \
2600 src/systemd/sd-icmp6-nd.h \
2601 src/libsystemd-network/sd-dhcp6-client.c \
2602 src/libsystemd-network/sd-icmp6-nd.c \
2603 src/libsystemd-network/dhcp6-internal.h \
2604 src/libsystemd-network/dhcp6-network.c \
2605 src/libsystemd-network/dhcp6-option.c
2607 libsystemd_network_la_LIBADD = \
2608 libudev-internal.la \
2609 libsystemd-label.la \
2610 libsystemd-internal.la \
2611 libsystemd-shared.la \
2614 test_dhcp_option_SOURCES = \
2615 src/libsystemd-network/dhcp-protocol.h \
2616 src/libsystemd-network/dhcp-internal.h \
2617 src/libsystemd-network/test-dhcp-option.c
2619 test_dhcp_option_LDADD = \
2620 libsystemd-network.la \
2621 libsystemd-internal.la \
2622 libsystemd-shared.la
2624 test_dhcp_client_SOURCES = \
2625 src/systemd/sd-dhcp-client.h \
2626 src/libsystemd-network/dhcp-protocol.h \
2627 src/libsystemd-network/dhcp-internal.h \
2628 src/libsystemd-network/test-dhcp-client.c
2630 test_dhcp_client_LDADD = \
2631 libsystemd-network.la \
2632 libsystemd-label.la \
2633 libsystemd-internal.la \
2634 libsystemd-shared.la
2636 test_dhcp_server_SOURCES = \
2637 src/libsystemd-network/test-dhcp-server.c
2639 test_dhcp_server_LDADD = \
2640 libsystemd-network.la \
2641 libsystemd-internal.la \
2642 libsystemd-shared.la
2644 test_ipv4ll_SOURCES = \
2645 src/systemd/sd-ipv4ll.h \
2646 src/libsystemd-network/ipv4ll-internal.h \
2647 src/libsystemd-network/test-ipv4ll.c
2649 test_ipv4ll_LDADD = \
2650 libsystemd-network.la \
2651 libsystemd-label.la \
2652 libsystemd-internal.la \
2653 libsystemd-shared.la
2655 test_icmp6_rs_SOURCES = \
2656 src/systemd/sd-dhcp6-client.h \
2657 src/libsystemd-network/sd-icmp6-nd.h \
2658 src/libsystemd-network/dhcp6-internal.h \
2659 src/libsystemd-network/test-icmp6-rs.c
2661 test_icmp6_rs_LDADD = \
2662 libsystemd-network.la \
2663 libsystemd-internal.la \
2664 libsystemd-shared.la
2666 test_dhcp6_client_SOURCES = \
2667 src/systemd/sd-dhcp6-client.h \
2668 src/libsystemd-network/dhcp6-internal.h \
2669 src/libsystemd-network/test-dhcp6-client.c
2671 test_dhcp6_client_LDADD = \
2672 libsystemd-network.la \
2673 libsystemd-internal.la \
2674 libsystemd-shared.la
2684 # ------------------------------------------------------------------------------
2694 include_HEADERS += \
2695 src/libudev/libudev.h
2697 lib_LTLIBRARIES += \
2700 libudev_la_SOURCES =\
2701 src/libudev/libudev.sym \
2702 src/libudev/libudev-private.h \
2703 src/libudev/libudev.c \
2704 src/libudev/libudev-list.c \
2705 src/libudev/libudev-util.c \
2706 src/libudev/libudev-device.c \
2707 src/libudev/libudev-enumerate.c \
2708 src/libudev/libudev-monitor.c \
2709 src/libudev/libudev-queue.c \
2710 src/libudev/libudev-hwdb-def.h \
2711 src/libudev/libudev-hwdb.c
2713 libudev_la_CFLAGS = \
2717 libudev_la_LDFLAGS = \
2719 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
2720 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
2722 libudev_la_LIBADD = \
2723 libsystemd-internal.la \
2724 libsystemd-shared.la
2726 pkgconfiglib_DATA += \
2727 src/libudev/libudev.pc
2730 src/libudev/libudev.pc.in
2733 src/libudev/libudev.pc \
2738 $(AM_V_at)$(MKDIR_P) $(dir $@)
2739 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
2742 $(AM_V_at)$(MKDIR_P) $(dir $@)
2743 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
2745 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2746 libudev-install-hook:
2747 libname=libudev.so && $(move-to-rootlibdir)
2749 libudev-uninstall-hook:
2750 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
2752 INSTALL_EXEC_HOOKS += libudev-install-hook
2753 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
2755 # ------------------------------------------------------------------------------
2756 noinst_LTLIBRARIES += \
2759 libudev_internal_la_SOURCES =\
2760 $(libudev_la_SOURCES) \
2761 src/libudev/libudev-device-private.c
2763 libudev_internal_la_CFLAGS = \
2765 -fvisibility=default
2767 # ------------------------------------------------------------------------------
2769 $(sysconfdir)/udev/rules.d \
2770 $(sysconfdir)/udev/hwdb.d
2772 dist_network_DATA = \
2773 network/99-default.link \
2774 network/80-container-host0.network \
2775 network/80-container-ve.network
2777 dist_udevrules_DATA += \
2778 rules/42-usb-hid-pm.rules \
2779 rules/50-udev-default.rules \
2780 rules/60-drm.rules \
2781 rules/60-keyboard.rules \
2782 rules/60-persistent-storage-tape.rules \
2783 rules/60-persistent-serial.rules \
2784 rules/60-persistent-input.rules \
2785 rules/60-persistent-alsa.rules \
2786 rules/60-persistent-storage.rules \
2787 rules/64-btrfs.rules \
2788 rules/75-net-description.rules \
2789 rules/75-tty-description.rules \
2790 rules/78-sound-card.rules \
2791 rules/80-net-setup-link.rules \
2792 rules/95-udev-late.rules
2794 nodist_udevrules_DATA += \
2795 rules/99-systemd.rules
2797 dist_udevhwdb_DATA = \
2798 hwdb/20-pci-vendor-model.hwdb \
2799 hwdb/20-pci-classes.hwdb \
2800 hwdb/20-usb-vendor-model.hwdb \
2801 hwdb/20-usb-classes.hwdb \
2802 hwdb/20-sdio-vendor-model.hwdb \
2803 hwdb/20-sdio-classes.hwdb \
2804 hwdb/20-bluetooth-vendor-product.hwdb \
2805 hwdb/20-acpi-vendor.hwdb \
2807 hwdb/20-net-ifname.hwdb \
2808 hwdb/60-keyboard.hwdb
2810 udevconfdir = $(sysconfdir)/udev
2811 dist_udevconf_DATA = \
2814 sharepkgconfigdir = $(datadir)/pkgconfig
2815 sharepkgconfig_DATA = \
2819 rules/99-systemd.rules.in \
2823 rules/99-systemd.rules \
2827 units/systemd-udevd.service.in \
2828 units/systemd-udev-trigger.service.in \
2829 units/systemd-udev-settle.service.in \
2830 units/systemd-udev-hwdb-update.service.in
2833 units/systemd-udevd.service \
2834 units/systemd-udev-trigger.service \
2835 units/systemd-udev-settle.service \
2836 units/systemd-udev-hwdb-update.service
2838 SOCKETS_TARGET_WANTS += \
2839 systemd-udevd-control.socket \
2840 systemd-udevd-kernel.socket
2842 SYSINIT_TARGET_WANTS += \
2843 systemd-udevd.service \
2844 systemd-udev-trigger.service \
2845 systemd-udev-hwdb-update.service
2847 rootbin_PROGRAMS += \
2850 rootlibexec_PROGRAMS += \
2853 noinst_LTLIBRARIES += \
2856 src/udev/keyboard-keys.txt:
2857 $(AM_V_at)$(MKDIR_P) $(dir $@)
2858 $(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/' > $@
2860 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
2861 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
2863 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
2864 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
2866 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
2867 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
2869 libudev_core_la_SOURCES = \
2871 src/udev/udev-event.c \
2872 src/udev/udev-watch.c \
2873 src/udev/udev-node.c \
2874 src/udev/udev-rules.c \
2875 src/udev/udev-ctrl.c \
2876 src/udev/udev-builtin.c \
2877 src/udev/udev-builtin-btrfs.c \
2878 src/udev/udev-builtin-hwdb.c \
2879 src/udev/udev-builtin-input_id.c \
2880 src/udev/udev-builtin-keyboard.c \
2881 src/udev/udev-builtin-net_id.c \
2882 src/udev/udev-builtin-net_setup_link.c \
2883 src/udev/udev-builtin-path_id.c \
2884 src/udev/udev-builtin-usb_id.c \
2885 src/udev/net/link-config.h \
2886 src/udev/net/link-config.c \
2887 src/udev/net/ethtool-util.h \
2888 src/udev/net/ethtool-util.c
2890 nodist_libudev_core_la_SOURCES = \
2891 src/udev/keyboard-keys-from-name.h \
2892 src/udev/keyboard-keys-to-name.h \
2893 src/udev/net/link-config-gperf.c
2896 $(nodist_libudev_core_la_SOURCES)
2899 src/udev/keyboard-keys-from-name.gperf \
2900 src/udev/keyboard-keys.txt \
2901 src/udev/net/link-config-gperf.c
2904 src/udev/net/link-config-gperf.gperf
2906 libudev_core_la_CFLAGS = \
2911 libudev_core_la_LIBADD = \
2912 libudev-internal.la \
2913 libsystemd-label.la \
2914 libsystemd-internal.la \
2915 libsystemd-network.la \
2916 libsystemd-shared.la \
2920 libudev_core_la_CPPFLAGS = \
2922 -DFIRMWARE_PATH="$(FIRMWARE_PATH)"
2925 libudev_core_la_SOURCES += \
2926 src/udev/udev-builtin-firmware.c
2928 dist_udevrules_DATA += \
2929 rules/50-firmware.rules
2933 libudev_core_la_SOURCES += \
2934 src/udev/udev-builtin-kmod.c
2936 dist_udevrules_DATA += \
2937 rules/80-drivers.rules
2941 libudev_core_la_SOURCES += \
2942 src/udev/udev-builtin-blkid.c
2946 libudev_core_la_SOURCES += \
2947 src/udev/udev-builtin-uaccess.c \
2948 src/login/logind-acl.c \
2949 src/libsystemd/sd-login/sd-login.c \
2950 src/systemd/sd-login.h
2952 libudev_core_la_LIBADD += \
2956 systemd_udevd_SOURCES = \
2959 systemd_udevd_LDADD = \
2963 src/udev/udevadm.c \
2964 src/udev/udevadm-info.c \
2965 src/udev/udevadm-control.c \
2966 src/udev/udevadm-monitor.c \
2967 src/udev/udevadm-hwdb.c \
2968 src/udev/udevadm-settle.c \
2969 src/udev/udevadm-trigger.c \
2970 src/udev/udevadm-test.c \
2971 src/udev/udevadm-test-builtin.c
2976 # Update hwdb on installation. Do not bother if installing
2977 # in DESTDIR, since this is likely for packaging purposes.
2979 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
2981 INSTALL_DATA_HOOKS += \
2985 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
2987 # ------------------------------------------------------------------------------
2996 test_libudev_SOURCES = \
2997 src/test/test-libudev.c
2999 test_libudev_LDADD = \
3000 libsystemd-label.la \
3001 libudev-internal.la \
3002 libsystemd-shared.la
3004 test_udev_SOURCES = \
3005 src/test/test-udev.c
3014 test_udev_LDADD += \
3021 # packed sysfs test tree
3023 $(AM_V_at)$(MKDIR_P) $(dir $@)
3024 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3028 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3033 test/rules-test.sh \
3034 test/rule-syntax-check.py
3036 # ------------------------------------------------------------------------------
3038 src/udev/ata_id/ata_id.c
3041 libudev-internal.la \
3042 libsystemd-shared.la
3044 udevlibexec_PROGRAMS += \
3047 # ------------------------------------------------------------------------------
3048 cdrom_id_SOURCES = \
3049 src/udev/cdrom_id/cdrom_id.c
3052 libudev-internal.la \
3053 libsystemd-shared.la
3055 udevlibexec_PROGRAMS += \
3058 dist_udevrules_DATA += \
3059 rules/60-cdrom_id.rules
3061 # ------------------------------------------------------------------------------
3063 src/udev/collect/collect.c
3066 libudev-internal.la \
3067 libsystemd-shared.la
3069 udevlibexec_PROGRAMS += \
3072 # ------------------------------------------------------------------------------
3074 src/udev/scsi_id/scsi_id.c \
3075 src/udev/scsi_id/scsi_serial.c \
3076 src/udev/scsi_id/scsi.h \
3077 src/udev/scsi_id/scsi_id.h
3080 libudev-internal.la \
3081 libsystemd-shared.la
3083 udevlibexec_PROGRAMS += \
3087 src/udev/scsi_id/README
3089 # ------------------------------------------------------------------------------
3091 src/udev/v4l_id/v4l_id.c
3096 udevlibexec_PROGRAMS += \
3099 dist_udevrules_DATA += \
3100 rules/60-persistent-v4l.rules
3102 # ------------------------------------------------------------------------------
3103 accelerometer_SOURCES = \
3104 src/udev/accelerometer/accelerometer.c
3106 accelerometer_LDADD = \
3107 libudev-internal.la -lm \
3108 libsystemd-shared.la
3110 udevlibexec_PROGRAMS += \
3113 dist_udevrules_DATA += \
3114 rules/61-accelerometer.rules
3116 # ------------------------------------------------------------------------------
3123 libgudev_includedir = \
3124 $(includedir)/gudev-1.0/gudev
3126 libgudev_include_HEADERS = \
3128 src/gudev/gudevenums.h \
3129 src/gudev/gudevenumtypes.h \
3130 src/gudev/gudevtypes.h \
3131 src/gudev/gudevclient.h \
3132 src/gudev/gudevdevice.h \
3133 src/gudev/gudevenumerator.h
3135 lib_LTLIBRARIES += libgudev-1.0.la
3137 pkgconfiglib_DATA += \
3138 src/gudev/gudev-1.0.pc
3141 src/gudev/gudev-1.0.pc
3143 libgudev_1_0_la_SOURCES = \
3144 src/gudev/gudevenums.h \
3145 src/gudev/gudevenumtypes.h \
3146 src/gudev/gudevenumtypes.h\
3147 src/gudev/gudevtypes.h \
3148 src/gudev/gudevclient.h \
3149 src/gudev/gudevclient.c \
3150 src/gudev/gudevdevice.h \
3151 src/gudev/gudevdevice.c \
3152 src/gudev/gudevenumerator.h \
3153 src/gudev/gudevenumerator.c \
3154 src/gudev/gudevprivate.h
3156 nodist_libgudev_1_0_la_SOURCES = \
3157 src/gudev/gudevmarshal.h \
3158 src/gudev/gudevmarshal.c \
3159 src/gudev/gudevenumtypes.h \
3160 src/gudev/gudevenumtypes.c
3163 $(nodist_libgudev_1_0_la_SOURCES)
3165 libgudev_1_0_la_CPPFLAGS = \
3167 -I$(top_builddir)/src\
3168 -I$(top_srcdir)/src\
3169 -I$(top_builddir)/src/gudev \
3170 -I$(top_srcdir)/src/gudev \
3171 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3172 -D_GUDEV_COMPILATION \
3173 -DG_LOG_DOMAIN=\"GUdev\"
3175 libgudev_1_0_la_CFLAGS = \
3177 -fvisibility=default \
3180 libgudev_1_0_la_LIBADD = \
3184 libgudev_1_0_la_LDFLAGS = \
3186 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3187 -export-dynamic -no-undefined \
3188 -export-symbols-regex '^g_udev_.*'
3190 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3191 $(AM_V_at)$(MKDIR_P) $(dir $@)
3192 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3194 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3195 $(AM_V_at)$(MKDIR_P) $(dir $@)
3196 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3197 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3199 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3200 $(AM_V_at)$(MKDIR_P) $(dir $@)
3201 $(AM_V_GEN)glib-mkenums --template $^ > $@
3203 if HAVE_INTROSPECTION
3204 -include $(INTROSPECTION_MAKEFILE)
3206 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3208 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3210 src_gudev_GUdev_1_0_gir_CFLAGS = \
3213 -D_GUDEV_COMPILATION \
3214 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3215 -I$(top_srcdir)/src \
3216 -I$(top_builddir)/src \
3217 -I$(top_srcdir)/src/gudev \
3218 -I$(top_builddir)/src/gudev
3220 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
3222 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
3223 --pkg-export=gudev-1.0 \
3226 src_gudev_GUdev_1_0_gir_FILES = \
3228 src/gudev/gudevtypes.h \
3229 src/gudev/gudevenums.h \
3230 src/gudev/gudevenumtypes.h \
3231 src/gudev/gudevclient.h \
3232 src/gudev/gudevdevice.h \
3233 src/gudev/gudevenumerator.h \
3234 src/gudev/gudevclient.c \
3235 src/gudev/gudevdevice.c \
3236 src/gudev/gudevenumerator.c
3238 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
3239 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
3241 girdir = $(datadir)/gir-1.0
3243 src/gudev/GUdev-1.0.gir
3245 typelibsdir = $(libdir)/girepository-1.0
3247 src/gudev/GUdev-1.0.typelib
3249 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
3250 endif # HAVE_INTROSPECTION
3252 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3253 libgudev-install-hook:
3254 libname=libgudev-1.0.so && $(move-to-rootlibdir)
3256 libgudev-uninstall-hook:
3257 rm -f $(DESTDIR)$(rootlibdir)/libgudev-1.0.so*
3259 INSTALL_EXEC_HOOKS += libgudev-install-hook
3260 UNINSTALL_EXEC_HOOKS += libgudev-uninstall-hook
3264 src/gudev/gudev-1.0.pc.in \
3265 src/gudev/gudevmarshal.list \
3266 src/gudev/gudevenumtypes.h.template \
3267 src/gudev/gudevenumtypes.c.template \
3268 src/gudev/gjs-example.js \
3269 src/gudev/seed-example-enum.js \
3270 src/gudev/seed-example.js
3272 # ------------------------------------------------------------------------------
3273 mtd_probe_SOURCES = \
3274 src/udev/mtd_probe/mtd_probe.c \
3275 src/udev/mtd_probe/mtd_probe.h \
3276 src/udev/mtd_probe/probe_smartmedia.c
3278 dist_udevrules_DATA += \
3279 rules/75-probe_mtd.rules
3281 udevlibexec_PROGRAMS += \
3284 # ------------------------------------------------------------------------------
3285 test_id128_SOURCES = \
3286 src/test/test-id128.c
3288 test_id128_LDADD = \
3289 libsystemd-internal.la \
3290 libsystemd-shared.la
3295 # ------------------------------------------------------------------------------
3297 rootlibexec_PROGRAMS += \
3300 systemd_activate_SOURCES = \
3301 src/activate/activate.c
3303 systemd_activate_LDADD = \
3304 libsystemd-label.la \
3305 libsystemd-internal.la \
3306 libsystemd-shared.la
3308 # ------------------------------------------------------------------------------
3309 systemd_journald_SOURCES = \
3310 src/journal/journald.c \
3311 src/journal/journald-server.h
3313 systemd_journald_LDADD = \
3314 libsystemd-journal-core.la \
3315 libsystemd-internal.la \
3316 libsystemd-shared.la
3318 systemd_cat_SOURCES = \
3321 systemd_cat_LDADD = \
3322 libsystemd-journal-core.la
3325 rootlibexec_PROGRAMS += \
3326 systemd-journal-remote
3328 systemd_journal_remote_SOURCES = \
3329 src/journal/journal-remote-parse.h \
3330 src/journal/journal-remote-parse.c \
3331 src/journal/journal-remote-write.h \
3332 src/journal/journal-remote-write.c \
3333 src/journal/journal-remote.c
3335 systemd_journal_remote_LDADD = \
3336 libsystemd-internal.la \
3337 libsystemd-journal-core.la
3339 systemd_journal_remote_SOURCES += \
3340 src/journal/microhttpd-util.h \
3341 src/journal/microhttpd-util.c
3343 systemd_journal_remote_CFLAGS = \
3345 $(MICROHTTPD_CFLAGS)
3347 systemd_journal_remote_LDADD += \
3351 systemd_journal_remote_LDADD += \
3356 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3357 journalctl_CFLAGS = \
3360 journalctl_SOURCES = \
3361 src/journal/journalctl.c
3363 journalctl_LDADD = \
3364 libsystemd-journal-internal.la \
3365 libsystemd-internal.la \
3366 libsystemd-logs.la \
3367 libsystemd-shared.la
3370 journalctl_LDADD += \
3375 journalctl_SOURCES += \
3376 src/journal/journal-qrcode.c \
3377 src/journal/journal-qrcode.h
3379 journalctl_CFLAGS += \
3382 journalctl_LDADD += \
3386 test_journal_SOURCES = \
3387 src/journal/test-journal.c
3389 test_journal_LDADD = \
3390 libsystemd-journal-core.la
3392 test_journal_send_SOURCES = \
3393 src/journal/test-journal-send.c
3395 test_journal_send_LDADD = \
3396 libsystemd-journal-core.la
3398 test_journal_syslog_SOURCES = \
3399 src/journal/test-journal-syslog.c
3401 test_journal_syslog_LDADD = \
3402 libsystemd-journal-core.la
3404 test_journal_match_SOURCES = \
3405 src/journal/test-journal-match.c
3407 test_journal_match_LDADD = \
3408 libsystemd-journal-core.la
3410 test_journal_enum_SOURCES = \
3411 src/journal/test-journal-enum.c
3413 test_journal_enum_LDADD = \
3414 libsystemd-journal-core.la
3416 test_journal_stream_SOURCES = \
3417 src/journal/test-journal-stream.c
3419 test_journal_stream_LDADD = \
3420 libsystemd-journal-core.la
3422 test_journal_flush_SOURCES = \
3423 src/journal/test-journal-flush.c
3425 test_journal_flush_LDADD = \
3426 libsystemd-journal-core.la
3428 test_journal_init_SOURCES = \
3429 src/journal/test-journal-init.c
3431 test_journal_init_LDADD = \
3432 libsystemd-journal-core.la
3434 test_journal_verify_SOURCES = \
3435 src/journal/test-journal-verify.c
3437 test_journal_verify_LDADD = \
3438 libsystemd-journal-core.la
3440 test_journal_interleaving_SOURCES = \
3441 src/journal/test-journal-interleaving.c
3443 test_journal_interleaving_LDADD = \
3444 libsystemd-journal-core.la
3446 test_mmap_cache_SOURCES = \
3447 src/journal/test-mmap-cache.c
3449 test_mmap_cache_LDADD = \
3450 libsystemd-journal-core.la
3452 test_catalog_SOURCES = \
3453 src/journal/test-catalog.c
3455 test_catalog_CPPFLAGS = \
3457 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
3459 test_catalog_LDADD = \
3460 libsystemd-journal-core.la
3462 libsystemd_journal_core_la_SOURCES = \
3463 src/journal/journald-kmsg.c \
3464 src/journal/journald-kmsg.h \
3465 src/journal/journald-syslog.c \
3466 src/journal/journald-syslog.h \
3467 src/journal/journald-stream.c \
3468 src/journal/journald-stream.h \
3469 src/journal/journald-server.c \
3470 src/journal/journald-server.h \
3471 src/journal/journald-console.c \
3472 src/journal/journald-console.h \
3473 src/journal/journald-wall.c \
3474 src/journal/journald-wall.h \
3475 src/journal/journald-native.c \
3476 src/journal/journald-native.h \
3477 src/journal/journald-rate-limit.c \
3478 src/journal/journald-rate-limit.h \
3479 src/journal/journal-internal.h
3481 nodist_libsystemd_journal_core_la_SOURCES = \
3482 src/journal/journald-gperf.c
3484 libsystemd_journal_core_la_LIBADD = \
3485 libsystemd-journal-internal.la \
3486 libudev-internal.la \
3487 libsystemd-capability.la \
3488 libsystemd-label.la \
3489 libsystemd-internal.la \
3490 libsystemd-shared.la
3493 libsystemd_journal_core_la_LIBADD += \
3497 noinst_LTLIBRARIES += \
3498 libsystemd-journal-core.la
3500 journal-install-hook:
3501 -$(MKDIR_P) $(DESTDIR)/var/log/journal
3502 -chown 0:0 $(DESTDIR)/var/log/journal
3503 -chmod 755 $(DESTDIR)/var/log/journal
3504 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
3505 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
3507 journal-uninstall-hook:
3508 -rmdir $(DESTDIR)/var/log/journal/
3510 INSTALL_EXEC_HOOKS += journal-install-hook
3511 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
3513 # ------------------------------------------------------------------------------
3514 # Update catalog on installation. Do not bother if installing
3515 # in DESTDIR, since this is likely for packaging purposes.
3516 catalog-update-hook:
3517 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
3519 INSTALL_DATA_HOOKS += \
3522 catalog-remove-hook:
3523 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
3525 UNINSTALL_DATA_HOOKS += \
3534 test-journal-syslog \
3535 test-journal-match \
3536 test-journal-stream \
3538 test-journal-verify \
3539 test-journal-interleaving \
3540 test-journal-flush \
3544 pkginclude_HEADERS += \
3545 src/systemd/sd-journal.h \
3546 src/systemd/sd-messages.h \
3547 src/systemd/_sd-common.h
3549 libsystemd_journal_internal_la_SOURCES = \
3550 src/journal/sd-journal.c \
3551 src/systemd/sd-journal.h \
3552 src/systemd/_sd-common.h \
3553 src/journal/journal-file.c \
3554 src/journal/journal-file.h \
3555 src/journal/journal-vacuum.c \
3556 src/journal/journal-vacuum.h \
3557 src/journal/journal-verify.c \
3558 src/journal/journal-verify.h \
3559 src/journal/lookup3.c \
3560 src/journal/lookup3.h \
3561 src/journal/journal-send.c \
3562 src/journal/journal-def.h \
3563 src/journal/compress.h \
3564 src/journal/catalog.c \
3565 src/journal/catalog.h \
3566 src/journal/mmap-cache.c \
3567 src/journal/mmap-cache.h
3569 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3570 libsystemd_journal_internal_la_CFLAGS = \
3573 libsystemd_journal_internal_la_LIBADD =
3576 libsystemd_journal_internal_la_SOURCES += \
3577 src/journal/compress.c
3579 libsystemd_journal_internal_la_CFLAGS += \
3582 libsystemd_journal_internal_la_LIBADD += \
3587 libsystemd_journal_internal_la_SOURCES += \
3588 src/journal/journal-authenticate.c \
3589 src/journal/journal-authenticate.h \
3590 src/journal/fsprg.c \
3593 libsystemd_journal_internal_la_LIBADD += \
3596 # fsprg.c is a drop-in file using void pointer arithmetic
3597 libsystemd_journal_internal_la_CFLAGS += \
3602 noinst_LTLIBRARIES += \
3603 libsystemd-journal-internal.la
3605 rootlibexec_PROGRAMS += \
3608 rootbin_PROGRAMS += \
3614 dist_systemunit_DATA += \
3615 units/systemd-journald.socket \
3616 units/systemd-journald-dev-log.socket
3618 nodist_systemunit_DATA += \
3619 units/systemd-journald.service \
3620 units/systemd-journal-flush.service \
3621 units/systemd-journal-catalog-update.service
3623 dist_pkgsysconf_DATA += \
3624 src/journal/journald.conf
3626 dist_catalog_DATA = \
3627 catalog/systemd.fr.catalog \
3628 catalog/systemd.ru.catalog \
3629 catalog/systemd.it.catalog \
3630 catalog/systemd.catalog
3632 SOCKETS_TARGET_WANTS += \
3633 systemd-journald.socket \
3634 systemd-journald-dev-log.socket
3636 SYSINIT_TARGET_WANTS += \
3637 systemd-journald.service \
3638 systemd-journal-flush.service \
3639 systemd-journal-catalog-update.service
3642 units/systemd-journald.service.in \
3643 units/systemd-journal-flush.service.in \
3644 units/systemd-journal-catalog-update.service.in \
3645 src/journal/journald-gperf.gperf
3648 src/journal/journald-gperf.c
3650 # ------------------------------------------------------------------------------
3652 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
3654 rootlibexec_PROGRAMS += \
3655 systemd-journal-gatewayd
3657 systemd_journal_gatewayd_SOURCES = \
3658 src/journal/journal-gatewayd.c \
3659 src/journal/microhttpd-util.h \
3660 src/journal/microhttpd-util.c
3662 systemd_journal_gatewayd_LDADD = \
3663 libsystemd-logs.la \
3664 libsystemd-journal-internal.la \
3665 libsystemd-internal.la \
3666 libsystemd-shared.la \
3670 systemd_journal_gatewayd_LDADD += \
3674 systemd_journal_gatewayd_CFLAGS = \
3676 $(MICROHTTPD_CFLAGS)
3678 systemd_journal_gatewayd_CPPFLAGS = \
3680 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
3682 dist_systemunit_DATA += \
3683 units/systemd-journal-gatewayd.socket
3685 nodist_systemunit_DATA += \
3686 units/systemd-journal-gatewayd.service
3688 dist_gatewayddocumentroot_DATA = \
3689 src/journal/browse.html
3694 units/systemd-journal-gatewayd.service.in
3696 # ------------------------------------------------------------------------------
3698 systemd_socket_proxyd_SOURCES = \
3699 src/socket-proxy/socket-proxyd.c
3701 systemd_socket_proxyd_LDADD = \
3702 libsystemd-logs.la \
3703 libsystemd-internal.la \
3704 libsystemd-journal-internal.la \
3705 libsystemd-shared.la \
3706 libsystemd-resolve.la
3708 # ------------------------------------------------------------------------------
3710 systemd_coredump_SOURCES = \
3711 src/journal/coredump.c
3713 systemd_coredump_LDADD = \
3714 libsystemd-journal-internal.la \
3715 libsystemd-label.la \
3716 libsystemd-internal.la \
3717 libsystemd-shared.la
3720 systemd_coredump_SOURCES += \
3721 src/journal/stacktrace.c \
3722 src/journal/stacktrace.h
3724 systemd_coredump_LDADD += \
3728 rootlibexec_PROGRAMS += \
3731 dist_pkgsysconf_DATA += \
3732 src/journal/coredump.conf
3735 systemd_coredump_LDADD += \
3739 coredumpctl_SOURCES = \
3740 src/journal/coredumpctl.c
3742 coredumpctl_LDADD = \
3743 libsystemd-journal-internal.la \
3744 libsystemd-internal.la \
3745 libsystemd-shared.la
3750 dist_bashcompletion_DATA += \
3751 shell-completion/bash/coredumpctl
3753 dist_zshcompletion_DATA += \
3754 shell-completion/zsh/_coredumpctl
3757 sysctl.d/50-coredump.conf
3760 sysctl.d/50-coredump.conf
3764 sysctl.d/50-coredump.conf.in
3766 # ------------------------------------------------------------------------------
3768 systemd_binfmt_SOURCES = \
3771 systemd_binfmt_LDADD = \
3772 libsystemd-shared.la
3774 rootlibexec_PROGRAMS += \
3777 dist_systemunit_DATA += \
3778 units/proc-sys-fs-binfmt_misc.automount \
3779 units/proc-sys-fs-binfmt_misc.mount
3781 nodist_systemunit_DATA += \
3782 units/systemd-binfmt.service
3785 $(prefix)/lib/binfmt.d \
3786 $(sysconfdir)/binfmt.d
3788 SYSINIT_TARGET_WANTS += \
3789 systemd-binfmt.service \
3790 proc-sys-fs-binfmt_misc.automount
3795 units/systemd-binfmt.service.in
3797 # ------------------------------------------------------------------------------
3799 systemd_vconsole_setup_SOURCES = \
3800 src/vconsole/vconsole-setup.c
3802 systemd_vconsole_setup_LDADD = \
3803 libsystemd-shared.la
3805 rootlibexec_PROGRAMS += \
3806 systemd-vconsole-setup
3808 nodist_systemunit_DATA += \
3809 units/systemd-vconsole-setup.service
3811 SYSINIT_TARGET_WANTS += \
3812 systemd-vconsole-setup.service
3816 units/systemd-vconsole-setup.service.in
3818 # ------------------------------------------------------------------------------
3820 systemd_readahead_SOURCES = \
3821 src/readahead/readahead.c \
3822 src/readahead/readahead-collect.c \
3823 src/readahead/readahead-replay.c \
3824 src/readahead/readahead-analyze.c \
3825 src/readahead/readahead-common.c \
3826 src/readahead/readahead-common.h
3828 systemd_readahead_LDADD = \
3829 libsystemd-internal.la \
3830 libudev-internal.la \
3831 libsystemd-shared.la
3834 src/readahead/sd-readahead.c \
3835 src/systemd/sd-readahead.h
3837 rootlibexec_PROGRAMS += \
3840 dist_systemunit_DATA += \
3841 units/systemd-readahead-drop.service \
3842 units/systemd-readahead-done.timer
3844 nodist_systemunit_DATA += \
3845 units/systemd-readahead-collect.service \
3846 units/systemd-readahead-replay.service \
3847 units/systemd-readahead-done.service
3852 test_ssd_SOURCES = \
3853 src/readahead/test-ssd.c \
3854 src/readahead/readahead-common.c \
3855 src/readahead/readahead-common.h
3858 libsystemd-internal.la \
3859 libudev-internal.la \
3860 libsystemd-shared.la
3865 units/systemd-readahead-collect.service.in \
3866 units/systemd-readahead-replay.service.in \
3867 units/systemd-readahead-done.service.in
3869 # ------------------------------------------------------------------------------
3871 systemd_bootchart_SOURCES = \
3872 src/bootchart/bootchart.c \
3873 src/bootchart/bootchart.h \
3874 src/bootchart/store.c \
3875 src/bootchart/store.h \
3876 src/bootchart/svg.c \
3879 systemd_bootchart_LDADD = \
3880 libsystemd-journal-internal.la \
3881 libsystemd-shared.la
3883 rootlibexec_PROGRAMS += \
3886 dist_pkgsysconf_DATA += \
3887 src/bootchart/bootchart.conf
3890 # ------------------------------------------------------------------------------
3891 if ENABLE_QUOTACHECK
3892 rootlibexec_PROGRAMS += \
3895 nodist_systemunit_DATA += \
3896 units/systemd-quotacheck.service
3898 systemd_quotacheck_SOURCES = \
3899 src/quotacheck/quotacheck.c
3901 systemd_quotacheck_LDADD = \
3902 libsystemd-shared.la
3906 units/systemd-quotacheck.service.in
3908 nodist_systemunit_DATA += \
3909 units/quotaon.service
3911 # ------------------------------------------------------------------------------
3912 if ENABLE_RANDOMSEED
3913 rootlibexec_PROGRAMS += \
3916 nodist_systemunit_DATA += \
3917 units/systemd-random-seed.service
3919 systemd_random_seed_SOURCES = \
3920 src/random-seed/random-seed.c
3922 systemd_random_seed_LDADD = \
3923 libsystemd-label.la \
3924 libsystemd-shared.la
3926 SYSINIT_TARGET_WANTS += \
3927 systemd-random-seed.service
3932 units/systemd-random-seed.service.in
3934 # ------------------------------------------------------------------------------
3936 rootlibexec_PROGRAMS += \
3939 nodist_systemunit_DATA += \
3940 units/systemd-backlight@.service
3942 systemd_backlight_SOURCES = \
3943 src/backlight/backlight.c
3945 systemd_backlight_LDADD = \
3946 libsystemd-label.la \
3947 libudev-internal.la \
3948 libsystemd-shared.la
3952 units/systemd-backlight@.service.in
3954 # ------------------------------------------------------------------------------
3956 rootlibexec_PROGRAMS += \
3959 nodist_systemunit_DATA += \
3960 units/systemd-rfkill@.service
3962 systemd_rfkill_SOURCES = \
3965 systemd_rfkill_LDADD = \
3966 libsystemd-label.la \
3967 libudev-internal.la \
3968 libsystemd-shared.la
3972 units/systemd-rfkill@.service.in
3974 # ------------------------------------------------------------------------------
3975 if HAVE_LIBCRYPTSETUP
3976 rootlibexec_PROGRAMS += \
3979 systemgenerator_PROGRAMS += \
3980 systemd-cryptsetup-generator
3982 dist_systemunit_DATA += \
3983 units/cryptsetup.target \
3984 units/cryptsetup-pre.target
3986 systemd_cryptsetup_SOURCES = \
3987 src/cryptsetup/cryptsetup.c
3989 systemd_cryptsetup_CFLAGS = \
3991 $(LIBCRYPTSETUP_CFLAGS)
3993 systemd_cryptsetup_LDADD = \
3994 libsystemd-label.la \
3995 libudev-internal.la \
3996 libsystemd-shared.la \
3997 $(LIBCRYPTSETUP_LIBS)
3999 systemd_cryptsetup_generator_SOURCES = \
4000 src/cryptsetup/cryptsetup-generator.c
4002 systemd_cryptsetup_generator_LDADD = \
4003 libsystemd-label.la \
4004 libsystemd-shared.la
4006 SYSINIT_TARGET_WANTS += \
4011 # ------------------------------------------------------------------------------
4013 systemd_hostnamed_SOURCES = \
4014 src/hostname/hostnamed.c
4016 systemd_hostnamed_LDADD = \
4017 libsystemd-label.la \
4018 libsystemd-internal.la \
4019 libsystemd-shared.la
4021 rootlibexec_PROGRAMS += \
4024 nodist_systemunit_DATA += \
4025 units/systemd-hostnamed.service
4027 dist_systemunit_DATA += \
4028 units/org.freedesktop.hostname1.busname
4030 dist_dbuspolicy_DATA += \
4031 src/hostname/org.freedesktop.hostname1.conf
4033 dist_dbussystemservice_DATA += \
4034 src/hostname/org.freedesktop.hostname1.service
4036 polkitpolicy_files += \
4037 src/hostname/org.freedesktop.hostname1.policy
4039 SYSTEM_UNIT_ALIASES += \
4040 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4042 BUSNAMES_TARGET_WANTS += \
4043 org.freedesktop.hostname1.busname
4045 hostnamectl_SOURCES = \
4046 src/hostname/hostnamectl.c
4048 hostnamectl_LDADD = \
4049 libsystemd-internal.la \
4050 libsystemd-shared.la
4055 dist_bashcompletion_DATA += \
4056 shell-completion/bash/hostnamectl
4058 dist_zshcompletion_DATA += \
4059 shell-completion/zsh/_hostnamectl
4063 polkitpolicy_in_files += \
4064 src/hostname/org.freedesktop.hostname1.policy.in
4067 units/systemd-hostnamed.service.in
4069 # ------------------------------------------------------------------------------
4071 dist_systemunit_DATA += \
4072 units/org.freedesktop.systemd1.busname
4074 BUSNAMES_TARGET_WANTS += \
4075 org.freedesktop.systemd1.busname
4078 # ------------------------------------------------------------------------------
4080 systemd_localed_SOURCES = \
4081 src/locale/localed.c
4083 systemd_localed_LDADD = \
4084 libsystemd-label.la \
4085 libsystemd-internal.la \
4086 libsystemd-shared.la
4088 nodist_systemunit_DATA += \
4089 units/systemd-localed.service
4091 dist_systemunit_DATA += \
4092 units/org.freedesktop.locale1.busname
4094 rootlibexec_PROGRAMS += \
4097 dist_dbuspolicy_DATA += \
4098 src/locale/org.freedesktop.locale1.conf
4100 dist_dbussystemservice_DATA += \
4101 src/locale/org.freedesktop.locale1.service
4103 polkitpolicy_files += \
4104 src/locale/org.freedesktop.locale1.policy
4106 SYSTEM_UNIT_ALIASES += \
4107 systemd-localed.service dbus-org.freedesktop.locale1.service
4109 BUSNAMES_TARGET_WANTS += \
4110 org.freedesktop.locale1.busname
4112 dist_pkgdata_DATA += \
4113 src/locale/kbd-model-map
4115 dist_noinst_SCRIPT = \
4116 src/locale/generate-kbd-model-map
4118 update-kbd-model-map: src/locale/generate-kbd-model-map
4119 $PYTHON $< >src/locale/kbd-model-map
4121 localectl_SOURCES = \
4122 src/locale/localectl.c
4125 libsystemd-internal.la \
4126 libsystemd-shared.la
4131 dist_bashcompletion_DATA += \
4132 shell-completion/bash/localectl
4134 dist_zshcompletion_DATA += \
4135 shell-completion/zsh/_localectl
4139 .PHONY: update-kbd-model-map
4141 polkitpolicy_in_files += \
4142 src/locale/org.freedesktop.locale1.policy.in
4145 units/systemd-localed.service.in
4147 # ------------------------------------------------------------------------------
4149 systemd_timedated_SOURCES = \
4150 src/timedate/timedated.c
4152 systemd_timedated_LDADD = \
4153 libsystemd-label.la \
4154 libsystemd-internal.la \
4155 libsystemd-shared.la
4157 rootlibexec_PROGRAMS += \
4160 dist_dbussystemservice_DATA += \
4161 src/timedate/org.freedesktop.timedate1.service
4163 dist_dbuspolicy_DATA += \
4164 src/timedate/org.freedesktop.timedate1.conf
4166 nodist_systemunit_DATA += \
4167 units/systemd-timedated.service
4169 dist_systemunit_DATA += \
4170 units/org.freedesktop.timedate1.busname
4172 polkitpolicy_files += \
4173 src/timedate/org.freedesktop.timedate1.policy
4176 $(prefix)/lib/systemd/ntp-units.d \
4177 $(sysconfdir)/systemd/ntp-units.d
4179 SYSTEM_UNIT_ALIASES += \
4180 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4182 BUSNAMES_TARGET_WANTS += \
4183 org.freedesktop.timedate1.busname
4185 timedatectl_SOURCES = \
4186 src/timedate/timedatectl.c
4188 timedatectl_LDADD = \
4189 libsystemd-internal.la \
4190 libsystemd-shared.la
4195 dist_bashcompletion_DATA += \
4196 shell-completion/bash/timedatectl
4198 dist_zshcompletion_DATA += \
4199 shell-completion/zsh/_timedatectl
4202 polkitpolicy_in_files += \
4203 src/timedate/org.freedesktop.timedate1.policy.in
4206 units/systemd-timedated.service.in
4208 # ------------------------------------------------------------------------------
4210 systemd_timesyncd_SOURCES = \
4211 src/timesync/timesyncd.c \
4212 src/timesync/timesyncd.h
4214 nodist_systemd_timesyncd_SOURCES = \
4215 src/timesync/timesyncd-gperf.c
4218 src/timesync/timesyncd-gperf.gperf
4221 src/timesync/timesyncd-gperf.c
4223 systemd_timesyncd_LDADD = \
4224 libsystemd-resolve.la \
4225 libsystemd-network.la \
4226 libsystemd-label.la \
4227 libsystemd-capability.la \
4228 libsystemd-internal.la \
4229 libsystemd-shared.la \
4232 rootlibexec_PROGRAMS += \
4235 nodist_systemunit_DATA += \
4236 units/systemd-timesyncd.service
4239 units/systemd-timesyncd.service.in
4241 nodist_pkgsysconf_DATA += \
4242 src/timesync/timesyncd.conf
4245 src/timesync/timesyncd.conf.in
4248 src/timesync/timesyncd.conf
4250 dist_ntpunits_DATA = \
4251 src/timesync/90-systemd.list
4255 # ------------------------------------------------------------------------------
4257 libnss_myhostname_la_SOURCES = \
4258 src/nss-myhostname/nss-myhostname.c \
4259 src/nss-myhostname/ifconf.h \
4260 src/nss-myhostname/netlink.c
4262 libnss_myhostname_la_LDFLAGS = \
4270 libnss_myhostname_la_LIBADD = \
4271 libsystemd-shared.la \
4272 libsystemd-internal.la
4274 lib_LTLIBRARIES += \
4275 libnss_myhostname.la
4278 # ------------------------------------------------------------------------------
4280 systemd_machined_SOURCES = \
4281 src/machine/machined.c \
4282 src/machine/machined.h
4284 systemd_machined_LDADD = \
4285 libsystemd-machine-core.la
4287 rootlibexec_PROGRAMS += \
4290 libsystemd_machine_core_la_SOURCES = \
4291 src/machine/machined-dbus.c \
4292 src/machine/machine.c \
4293 src/machine/machine.h \
4294 src/machine/machine-dbus.c
4296 libsystemd_machine_core_la_LIBADD = \
4297 libsystemd-label.la \
4298 libsystemd-internal.la \
4299 libudev-internal.la \
4300 libsystemd-shared.la
4302 noinst_LTLIBRARIES += \
4303 libsystemd-machine-core.la
4305 machinectl_SOURCES = \
4306 src/machine/machinectl.c
4308 machinectl_LDADD = \
4309 libsystemd-internal.la \
4310 libsystemd-shared.la
4312 rootbin_PROGRAMS += \
4315 dist_bashcompletion_DATA += \
4316 shell-completion/bash/machinectl
4318 test_machine_tables_SOURCES = \
4319 src/machine/test-machine-tables.c
4321 test_machine_tables_LDADD = \
4322 libsystemd-machine-core.la
4327 nodist_systemunit_DATA += \
4328 units/systemd-machined.service
4330 dist_systemunit_DATA += \
4331 units/machine.slice \
4332 units/org.freedesktop.machine1.busname
4334 dist_dbussystemservice_DATA += \
4335 src/machine/org.freedesktop.machine1.service
4337 dist_dbuspolicy_DATA += \
4338 src/machine/org.freedesktop.machine1.conf
4340 dist_zshcompletion_DATA += \
4341 shell-completion/zsh/_machinectl \
4342 shell-completion/zsh/_sd_machines
4344 SYSTEM_UNIT_ALIASES += \
4345 systemd-machined.service dbus-org.freedesktop.machine1.service
4347 BUSNAMES_TARGET_WANTS += \
4348 org.freedesktop.machine1.busname
4351 units/systemd-machined.service.in
4355 # ------------------------------------------------------------------------------
4357 systemd_resolved_SOURCES = \
4358 src/resolve/resolved.h \
4359 src/resolve/resolved.c \
4360 src/resolve/resolved-manager.c
4362 systemd_resolved_CFLAGS = \
4366 nodist_systemd_resolved_SOURCES = \
4367 src/resolve/resolved-gperf.c
4370 src/resolve/resolved-gperf.gperf
4373 src/resolve/resolved-gperf.c
4375 systemd_resolved_LDADD = \
4376 libsystemd-capability.la \
4377 libsystemd-network.la \
4378 libsystemd-label.la \
4379 libsystemd-internal.la \
4380 libsystemd-shared.la
4382 rootlibexec_PROGRAMS += \
4385 nodist_systemunit_DATA += \
4386 units/systemd-resolved.service
4389 units/systemd-resolved.service.in
4391 GENERAL_ALIASES += \
4392 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
4394 nodist_pkgsysconf_DATA += \
4395 src/resolve/resolved.conf
4398 src/resolve/resolved.conf.in
4401 src/resolve/resolved.conf
4405 # ------------------------------------------------------------------------------
4407 rootlibexec_PROGRAMS += \
4410 systemd_networkd_SOURCES = \
4411 src/network/networkd.c
4413 systemd_networkd_LDADD = \
4414 libsystemd-networkd-core.la \
4415 libsystemd-capability.la
4417 noinst_LTLIBRARIES += \
4418 libsystemd-networkd-core.la
4420 libsystemd_networkd_core_la_CFLAGS = \
4423 libsystemd_networkd_core_la_SOURCES = \
4424 src/libsystemd-network/network-internal.h \
4425 src/network/networkd.h \
4426 src/network/networkd-link.c \
4427 src/network/networkd-netdev.c \
4428 src/network/networkd-tunnel.c \
4429 src/network/networkd-veth.c \
4430 src/network/networkd-vxlan.c \
4431 src/network/networkd-network.c \
4432 src/network/networkd-address.c \
4433 src/network/networkd-route.c \
4434 src/network/networkd-manager.c \
4435 src/network/networkd-address-pool.c
4437 nodist_libsystemd_networkd_core_la_SOURCES = \
4438 src/network/networkd-network-gperf.c \
4439 src/network/networkd-netdev-gperf.c
4441 libsystemd_networkd_core_la_LIBADD = \
4442 libudev-internal.la \
4443 libsystemd-internal.la \
4444 libsystemd-network.la \
4445 libsystemd-label.la \
4446 libsystemd-shared.la
4448 rootlibexec_PROGRAMS += \
4449 systemd-networkd-wait-online
4451 systemd_networkd_wait_online_CFLAGS = \
4454 systemd_networkd_wait_online_SOURCES = \
4455 src/libsystemd-network/network-internal.h \
4456 src/network/networkd-wait-online.c \
4457 src/network/networkd-wait-online.h
4459 systemd_networkd_wait_online_LDADD = \
4460 libsystemd-network.la \
4461 libudev-internal.la \
4462 libsystemd-internal.la \
4463 libsystemd-shared.la
4465 test_network_SOURCES = \
4466 src/network/test-network.c
4468 test_network_CFLAGS = \
4471 test_network_LDADD = \
4472 libsystemd-networkd-core.la
4477 nodist_systemunit_DATA += \
4478 units/systemd-networkd.service \
4479 units/systemd-networkd-wait-online.service
4481 GENERAL_ALIASES += \
4482 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
4483 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
4486 src/network/networkd-network-gperf.gperf \
4487 src/network/networkd-netdev-gperf.gperf \
4488 units/systemd-networkd.service.in \
4489 units/systemd-networkd-wait-online.service.in
4492 src/network/networkd-network-gperf.c \
4493 src/network/networkd-netdev-gperf.c
4496 # ------------------------------------------------------------------------------
4498 systemd_logind_SOURCES = \
4499 src/login/logind.c \
4502 nodist_systemd_logind_SOURCES = \
4503 src/login/logind-gperf.c
4505 systemd_logind_LDADD = \
4506 libsystemd-logind-core.la
4508 libsystemd_logind_core_la_SOURCES = \
4509 src/login/logind-core.c \
4510 src/login/logind-device.c \
4511 src/login/logind-device.h \
4512 src/login/logind-button.c \
4513 src/login/logind-button.h \
4514 src/login/logind-action.c \
4515 src/login/logind-action.h \
4516 src/login/logind-seat.c \
4517 src/login/logind-seat.h \
4518 src/login/logind-session.c \
4519 src/login/logind-session.h \
4520 src/login/logind-session-device.c \
4521 src/login/logind-session-device.h \
4522 src/login/logind-user.c \
4523 src/login/logind-user.h \
4524 src/login/logind-inhibit.c \
4525 src/login/logind-inhibit.h \
4526 src/login/logind-dbus.c \
4527 src/login/logind-session-dbus.c \
4528 src/login/logind-seat-dbus.c \
4529 src/login/logind-user-dbus.c \
4530 src/login/logind-acl.h
4532 libsystemd_logind_core_la_LIBADD = \
4533 libsystemd-label.la \
4534 libsystemd-capability.la \
4535 libsystemd-internal.la \
4536 libudev-internal.la \
4537 libsystemd-shared.la
4540 libsystemd_logind_core_la_SOURCES += \
4541 src/login/logind-acl.c
4543 libsystemd_logind_core_la_LIBADD += \
4547 noinst_LTLIBRARIES += \
4548 libsystemd-logind-core.la
4550 systemd_user_sessions_SOURCES = \
4551 src/login/user-sessions.c
4553 systemd_user_sessions_LDADD = \
4554 libsystemd-shared.la
4556 rootlibexec_PROGRAMS += \
4558 systemd-user-sessions
4560 loginctl_SOURCES = \
4561 src/login/loginctl.c \
4562 src/login/sysfs-show.c
4565 libsystemd-internal.la \
4566 libudev-internal.la \
4567 libsystemd-shared.la
4569 rootbin_PROGRAMS += \
4572 dist_bashcompletion_DATA += \
4573 shell-completion/bash/loginctl
4575 dist_zshcompletion_DATA += \
4576 shell-completion/zsh/_loginctl \
4577 shell-completion/zsh/_systemd-inhibit
4579 systemd_inhibit_SOURCES = \
4582 systemd_inhibit_LDADD = \
4583 libsystemd-internal.la \
4584 libsystemd-shared.la
4586 rootbin_PROGRAMS += \
4589 test_login_SOURCES = \
4590 src/libsystemd/sd-login/test-login.c
4592 test_login_LDADD = \
4593 libsystemd-internal.la \
4594 libsystemd-shared.la
4596 test_login_shared_SOURCES = \
4597 src/login/test-login-shared.c
4599 test_login_shared_LDADD = \
4600 libsystemd-internal.la \
4601 libsystemd-shared.la
4603 test_inhibit_SOURCES = \
4604 src/login/test-inhibit.c
4606 test_inhibit_LDADD = \
4607 libsystemd-internal.la \
4608 libsystemd-shared.la
4610 test_login_tables_SOURCES = \
4611 src/login/test-login-tables.c
4613 test_login_tables_LDADD = \
4614 libsystemd-logind-core.la
4625 pam_systemd_la_SOURCES = \
4626 src/login/pam-module.c
4628 pam_systemd_la_CFLAGS = \
4633 pam_systemd_la_LDFLAGS = \
4639 -export-symbols-regex '^pam_sm_.*'
4641 pam_systemd_la_LIBADD = \
4642 libsystemd-capability.la \
4643 libsystemd-internal.la \
4644 libsystemd-shared.la \
4647 pamlib_LTLIBRARIES = \
4650 dist_pamconf_DATA = \
4651 src/login/systemd-user
4654 nodist_systemunit_DATA += \
4655 units/systemd-logind.service \
4656 units/systemd-user-sessions.service
4658 dist_systemunit_DATA += \
4660 units/org.freedesktop.login1.busname
4662 dist_dbussystemservice_DATA += \
4663 src/login/org.freedesktop.login1.service
4665 dist_dbuspolicy_DATA += \
4666 src/login/org.freedesktop.login1.conf
4668 dist_pkgsysconf_DATA += \
4669 src/login/logind.conf
4671 polkitpolicy_files += \
4672 src/login/org.freedesktop.login1.policy
4677 MULTI_USER_TARGET_WANTS += \
4678 systemd-logind.service \
4679 systemd-user-sessions.service
4681 SYSTEM_UNIT_ALIASES += \
4682 systemd-logind.service dbus-org.freedesktop.login1.service
4684 BUSNAMES_TARGET_WANTS += \
4685 org.freedesktop.login1.busname
4687 if ENABLE_MULTI_SEAT_X
4689 systemd_multi_seat_x_SOURCES = \
4690 src/login/multi-seat-x.c
4692 systemd_multi_seat_x_LDADD = \
4693 libsystemd-label.la \
4694 libsystemd-shared.la
4696 rootlibexec_PROGRAMS += \
4697 systemd-multi-seat-x
4701 dist_udevrules_DATA += \
4702 src/login/70-uaccess.rules \
4703 src/login/70-power-switch.rules
4705 nodist_udevrules_DATA += \
4706 src/login/71-seat.rules \
4707 src/login/73-seat-late.rules
4710 src/login/logind-gperf.c \
4711 src/login/71-seat.rules \
4712 src/login/73-seat-late.rules
4715 polkitpolicy_in_files += \
4716 src/login/org.freedesktop.login1.policy.in
4719 src/login/logind-gperf.gperf \
4720 src/login/71-seat.rules.in \
4721 src/login/73-seat-late.rules.in \
4722 units/systemd-logind.service.in \
4723 units/systemd-user-sessions.service.in
4725 # ------------------------------------------------------------------------------
4726 if HAVE_PYTHON_DEVEL
4727 pkgpyexec_LTLIBRARIES = \
4734 _journal_la_SOURCES = \
4735 src/python-systemd/_journal.c
4737 _journal_la_CFLAGS = \
4739 -fvisibility=default \
4740 $(PYTHON_DEVEL_CFLAGS)
4742 _journal_la_LDFLAGS = \
4748 _journal_la_LIBADD = \
4749 $(PYTHON_DEVEL_LIBS) \
4752 id128_la_SOURCES = \
4753 src/python-systemd/id128.c \
4754 src/python-systemd/id128-constants.h \
4755 src/python-systemd/pyutil.c \
4756 src/python-systemd/pyutil.h
4760 -fvisibility=default \
4761 $(PYTHON_DEVEL_CFLAGS) \
4762 -I$(top_builddir)/src/python-systemd
4764 id128_la_LDFLAGS = \
4771 $(PYTHON_DEVEL_LIBS) \
4772 libsystemd-shared.la \
4775 _daemon_la_SOURCES = \
4776 src/python-systemd/_daemon.c \
4777 src/python-systemd/pyutil.c \
4778 src/python-systemd/pyutil.h
4780 _daemon_la_CFLAGS = \
4782 -fvisibility=default \
4783 $(PYTHON_DEVEL_CFLAGS) \
4784 -I$(top_builddir)/src/python-systemd
4786 _daemon_la_LDFLAGS = \
4792 _daemon_la_LIBADD = \
4793 $(PYTHON_DEVEL_LIBS) \
4794 libsystemd-shared.la \
4797 _reader_la_SOURCES = \
4798 src/python-systemd/_reader.c \
4799 src/python-systemd/pyutil.c \
4800 src/python-systemd/pyutil.h
4802 _reader_la_CFLAGS = \
4804 -fvisibility=default \
4805 $(PYTHON_DEVEL_CFLAGS)
4807 _reader_la_LDFLAGS = \
4813 _reader_la_LIBADD = \
4814 $(PYTHON_DEVEL_LIBS) \
4815 libsystemd-shared.la \
4818 login_la_SOURCES = \
4819 src/python-systemd/login.c \
4820 src/python-systemd/pyutil.c \
4821 src/python-systemd/pyutil.h
4825 -fvisibility=default \
4826 $(PYTHON_DEVEL_CFLAGS)
4828 login_la_LDFLAGS = \
4835 $(PYTHON_DEVEL_LIBS) \
4836 libsystemd-shared.la \
4839 dist_pkgpyexec_PYTHON = \
4840 src/python-systemd/journal.py \
4841 src/python-systemd/daemon.py \
4842 src/python-systemd/__init__.py
4844 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
4845 $(AM_V_at)$(MKDIR_P) $(dir $@)
4846 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
4849 src/python-systemd/id128-constants.h
4851 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
4853 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
4854 $(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/
4855 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
4858 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
4859 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
4862 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
4863 $(MAKE) DESTDIR="$$dir" install && \
4864 $(MAKE) DESTDIR="$$dir" sphinx-html && \
4869 CLEAN_LOCAL_HOOKS += clean-sphinx
4871 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
4874 -rm -rf docs/html/python-systemd/
4876 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
4878 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
4879 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
4881 # ------------------------------------------------------------------------------
4882 if ENABLE_COMPAT_LIBS
4884 src/compat-libs/linkwarning.h
4886 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
4887 $(AM_V_at)$(MKDIR_P) $(dir $@)
4888 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
4891 libsystemd-journal.c \
4892 libsystemd-login.c \
4893 libsystemd-id128.c \
4896 libsystemd_journal_la_SOURCES = \
4897 libsystemd-journal.c \
4898 src/compat-libs/libsystemd-journal.sym
4900 libsystemd_journal_la_CPPFLAGS = \
4902 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
4904 libsystemd_journal_la_LDFLAGS = \
4906 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
4907 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
4909 libsystemd_journal_la_LIBADD = \
4910 libsystemd-journal-internal.la \
4911 libsystemd-internal.la \
4912 libsystemd-shared.la
4914 libsystemd_login_la_SOURCES = \
4915 libsystemd-login.c \
4916 src/compat-libs/libsystemd-login.sym
4918 libsystemd_login_la_CPPFLAGS = \
4920 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
4922 libsystemd_login_la_LDFLAGS = \
4924 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
4925 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
4927 libsystemd_login_la_LIBADD = \
4928 libsystemd-internal.la \
4929 libsystemd-shared.la
4931 libsystemd_id128_la_SOURCES = \
4932 libsystemd-id128.c \
4933 src/compat-libs/libsystemd-id128.sym
4935 libsystemd_id128_la_CPPFLAGS = \
4937 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
4939 libsystemd_id128_la_LDFLAGS = \
4941 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
4942 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
4944 libsystemd_id128_la_LIBADD = \
4945 libsystemd-internal.la \
4946 libsystemd-shared.la
4948 libsystemd_daemon_la_SOURCES = \
4949 libsystemd-daemon.c \
4950 src/compat-libs/libsystemd-daemon.sym
4952 libsystemd_daemon_la_CPPFLAGS = \
4954 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
4956 libsystemd_daemon_la_LDFLAGS = \
4958 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
4959 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
4961 libsystemd_daemon_la_LIBADD = \
4962 libsystemd-internal.la \
4963 libsystemd-shared.la
4965 lib_LTLIBRARIES += \
4966 libsystemd-journal.la \
4967 libsystemd-login.la \
4968 libsystemd-id128.la \
4969 libsystemd-daemon.la
4971 pkgconfiglib_DATA += \
4972 src/compat-libs/libsystemd-journal.pc \
4973 src/compat-libs/libsystemd-login.pc \
4974 src/compat-libs/libsystemd-id128.pc \
4975 src/compat-libs/libsystemd-daemon.pc
4977 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
4978 compat-lib-install-hook:
4979 libname=libsystemd-login.so && $(move-to-rootlibdir)
4980 libname=libsystemd-journal.so && $(move-to-rootlibdir)
4981 libname=libsystemd-id128.so && $(move-to-rootlibdir)
4982 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
4984 compat-lib-uninstall-hook:
4985 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
4986 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
4987 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
4988 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
4990 INSTALL_EXEC_HOOKS += compat-lib-install-hook
4991 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
4995 src/compat-libs/libsystemd-journal.pc.in \
4996 src/compat-libs/libsystemd-login.pc.in \
4997 src/compat-libs/libsystemd-id128.pc.in \
4998 src/compat-libs/libsystemd-daemon.pc.in
5000 # ------------------------------------------------------------------------------
5002 '|rootlibexecdir=$(rootlibexecdir)|' \
5003 '|rootbindir=$(rootbindir)|' \
5004 '|bindir=$(bindir)|' \
5005 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5006 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5007 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5008 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5009 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
5010 '|pkgdatadir=$(pkgdatadir)|' \
5011 '|systemunitdir=$(systemunitdir)|' \
5012 '|userunitdir=$(userunitdir)|' \
5013 '|systempresetdir=$(systempresetdir)|' \
5014 '|userpresetdir=$(userpresetdir)|' \
5015 '|udevhwdbdir=$(udevhwdbdir)|' \
5016 '|udevrulesdir=$(udevrulesdir)|' \
5017 '|catalogdir=$(catalogdir)|' \
5018 '|tmpfilesdir=$(tmpfilesdir)|' \
5019 '|sysusersdir=$(sysusersdir)|' \
5020 '|sysctldir=$(sysctldir)|' \
5021 '|systemgeneratordir=$(systemgeneratordir)|' \
5022 '|usergeneratordir=$(usergeneratordir)|' \
5023 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
5024 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
5025 '|PACKAGE_URL=$(PACKAGE_URL)|' \
5026 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
5027 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
5028 '|prefix=$(prefix)|' \
5029 '|exec_prefix=$(exec_prefix)|' \
5030 '|libdir=$(libdir)|' \
5031 '|includedir=$(includedir)|' \
5032 '|VERSION=$(VERSION)|' \
5033 '|rootprefix=$(rootprefix)|' \
5034 '|udevlibexecdir=$(udevlibexecdir)|' \
5035 '|SUSHELL=$(SUSHELL)|' \
5036 '|DEBUGTTY=$(DEBUGTTY)|' \
5039 '|MKDIR_P=$(MKDIR_P)|' \
5040 '|QUOTAON=$(QUOTAON)|' \
5041 '|QUOTACHECK=$(QUOTACHECK)|' \
5042 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
5043 '|VARLOGDIR=$(varlogdir)|' \
5044 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
5045 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
5046 '|PYTHON=$(PYTHON)|' \
5047 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
5048 '|NTP_SERVERS=$(NTP_SERVERS)|' \
5049 '|DNS_SERVERS=$(DNS_SERVERS)|' \
5050 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
5051 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
5052 '|TTY_GID=$(TTY_GID)|'
5055 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
5056 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
5065 sysctl.d/%: sysctl.d/%.in
5071 src/core/macros.%: src/core/macros.%.in
5074 src/%.policy.in: src/%.policy.in.in
5085 $(AM_V_GEN)chmod +x $@
5087 src/%.c: src/%.gperf
5088 $(AM_V_at)$(MKDIR_P) $(dir $@)
5089 $(AM_V_GPERF)$(GPERF) < $< > $@
5092 $(AM_V_at)$(MKDIR_P) $(dir $@)
5093 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5096 $(AM_V_at)$(MKDIR_P) $(dir $@)
5097 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
5099 units/user/%: units/%.m4
5100 $(AM_V_at)$(MKDIR_P) $(dir $@)
5101 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
5104 nodist_polkitpolicy_DATA = \
5105 $(polkitpolicy_files) \
5106 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
5110 $(polkitpolicy_in_files) \
5111 $(polkitpolicy_in_in_files)
5114 $(nodist_systemunit_DATA) \
5115 $(nodist_userunit_DATA) \
5116 $(pkgconfigdata_DATA) \
5117 $(pkgconfiglib_DATA) \
5118 $(nodist_polkitpolicy_DATA)
5120 # ------------------------------------------------------------------------------
5122 man/custom-entities.ent: configure.ac
5123 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
5124 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
5125 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
5129 man/custom-entities.ent
5134 --stringparam man.output.quietly 1 \
5135 --stringparam funcsynopsis.style ansi \
5136 --stringparam man.authors.section.enabled 0 \
5137 --stringparam man.copyright.section.enabled 0 \
5138 --stringparam systemd.version $(VERSION) \
5139 --path '$(builddir)/man:$(srcdir)/man'
5141 XSLTPROC_PROCESS_MAN = \
5142 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
5144 XSLTPROC_PROCESS_HTML = \
5145 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
5147 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
5148 $(XSLTPROC_PROCESS_MAN)
5150 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
5151 $(XSLTPROC_PROCESS_MAN)
5153 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
5154 $(XSLTPROC_PROCESS_MAN)
5156 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
5157 $(XSLTPROC_PROCESS_MAN)
5159 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
5160 $(XSLTPROC_PROCESS_MAN)
5162 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
5163 $(XSLTPROC_PROCESS_HTML)
5166 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
5172 man/custom-html.xsl \
5175 # ------------------------------------------------------------------------------
5178 docs/sysvinit/README
5183 docs/sysvinit/README: docs/sysvinit/README.in
5186 docs/var-log/README: docs/var-log/README.in
5190 docs/sysvinit/README \
5195 docs/sysvinit/README.in \
5196 docs/var-log/README.in
5198 SOCKETS_TARGET_WANTS += \
5199 systemd-initctl.socket \
5200 systemd-shutdownd.socket
5203 RUNLEVEL1_TARGET_WANTS += \
5204 systemd-update-utmp-runlevel.service
5205 RUNLEVEL2_TARGET_WANTS += \
5206 systemd-update-utmp-runlevel.service
5207 RUNLEVEL3_TARGET_WANTS += \
5208 systemd-update-utmp-runlevel.service
5209 RUNLEVEL4_TARGET_WANTS += \
5210 systemd-update-utmp-runlevel.service
5211 RUNLEVEL5_TARGET_WANTS += \
5212 systemd-update-utmp-runlevel.service
5215 SYSINIT_TARGET_WANTS += \
5216 systemd-update-utmp.service \
5217 systemd-update-done.service \
5220 LOCAL_FS_TARGET_WANTS += \
5221 systemd-remount-fs.service \
5224 MULTI_USER_TARGET_WANTS += \
5226 systemd-ask-password-wall.path
5228 SYSINIT_TARGET_WANTS += \
5229 dev-hugepages.mount \
5231 sys-kernel-config.mount \
5232 sys-kernel-debug.mount \
5233 sys-fs-fuse-connections.mount \
5234 systemd-sysctl.service \
5235 systemd-ask-password-console.path
5238 SYSTEM_UNIT_ALIASES += \
5239 poweroff.target runlevel0.target \
5240 rescue.target runlevel1.target \
5241 multi-user.target runlevel2.target \
5242 multi-user.target runlevel3.target \
5243 multi-user.target runlevel4.target \
5244 graphical.target runlevel5.target \
5245 reboot.target runlevel6.target
5248 SYSTEM_UNIT_ALIASES += \
5249 graphical.target default.target \
5250 reboot.target ctrl-alt-del.target \
5251 getty@.service autovt@.service
5253 USER_UNIT_ALIASES += \
5254 $(systemunitdir)/shutdown.target shutdown.target \
5255 $(systemunitdir)/sockets.target sockets.target \
5256 $(systemunitdir)/busnames.target busnames.target \
5257 $(systemunitdir)/timers.target timers.target \
5258 $(systemunitdir)/paths.target paths.target \
5259 $(systemunitdir)/bluetooth.target bluetooth.target \
5260 $(systemunitdir)/printer.target printer.target \
5261 $(systemunitdir)/sound.target sound.target \
5262 $(systemunitdir)/smartcard.target smartcard.target
5264 GENERAL_ALIASES += \
5265 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
5266 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
5267 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
5268 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
5272 $(systemunitdir)/runlevel1.target.wants \
5273 $(systemunitdir)/runlevel2.target.wants \
5274 $(systemunitdir)/runlevel3.target.wants \
5275 $(systemunitdir)/runlevel4.target.wants \
5276 $(systemunitdir)/runlevel5.target.wants
5280 $(prefix)/lib/modules-load.d \
5281 $(sysconfdir)/modules-load.d \
5282 $(prefix)/lib/systemd/network \
5283 $(sysconfdir)/systemd/network \
5284 $(prefix)/lib/sysctl.d \
5285 $(sysconfdir)/sysctl.d \
5286 $(prefix)/lib/kernel/install.d \
5287 $(sysconfdir)/kernel/install.d \
5288 $(systemshutdowndir) \
5290 $(systemgeneratordir) \
5291 $(usergeneratordir) \
5294 $(pkgsysconfdir)/system \
5295 $(pkgsysconfdir)/system/multi-user.target.wants \
5296 $(pkgsysconfdir)/system/getty.target.wants \
5297 $(pkgsysconfdir)/user \
5298 $(dbussessionservicedir) \
5299 $(sysconfdir)/xdg/systemd
5301 install-exec-hook: $(INSTALL_EXEC_HOOKS)
5303 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
5305 install-data-hook: $(INSTALL_DATA_HOOKS)
5307 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
5309 clean-local: $(CLEAN_LOCAL_HOOKS)
5310 rm -rf $(abs_srcdir)/install-tree
5311 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
5312 $(abs_srcdir)/hwdb/iab.txt
5314 DISTCHECK_CONFIGURE_FLAGS = \
5315 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
5316 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
5317 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
5318 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
5319 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
5320 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
5321 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
5322 --with-rootprefix=$$dc_install_base \
5323 --disable-split-usr \
5325 --enable-compat-libs
5328 DISTCHECK_CONFIGURE_FLAGS += \
5329 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
5330 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
5332 DISTCHECK_CONFIGURE_FLAGS += \
5333 --with-sysvinit-path= \
5334 --with-sysvrcnd-path=
5338 DISTCHECK_CONFIGURE_FLAGS += \
5342 # check "broken" platforms limited toolchains for link breakage before we release
5345 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
5349 ( cd $(top_srcdir)/hwdb && \
5350 wget -N http://www.linux-usb.org/usb.ids \
5351 http://pci-ids.ucw.cz/v2.2/pci.ids \
5352 http://standards.ieee.org/develop/regauth/oui/oui.txt \
5353 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
5356 .PHONY: kdbus-update
5358 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
5359 wget -N https://d-bus.googlecode.com/git/kdbus.h )
5363 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
5365 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
5367 upload: all check dist
5368 scp systemd-$(VERSION).tar.xz $(www_target)
5371 doc-sync: all destdir-sphinx
5372 gtkdoc-rebase --html-dir=docs/libudev/html --online
5373 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
5374 gtkdoc-rebase --html-dir=docs/gudev/html --online
5375 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
5376 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
5377 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
5381 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
5382 scp man/*.html tango:public/systemd-man/
5384 .PHONY: install-tree
5386 rm -rf $(abs_srcdir)/install-tree
5387 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
5388 tree $(abs_srcdir)/install-tree
5390 # Let's run all tests of the test suite, but under valgrind. Let's
5391 # exclude the one perl script we have in there
5392 .PHONY: valgrind-tests
5393 valgrind-tests: $(TESTS)
5394 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
5395 if file $$f | grep -q shell; then \
5396 echo -e "$${x}Skipping non-binary $$f"; else \
5397 echo -e "$${x}Running $$f"; \
5398 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
5403 $(AM_V_GEN)nm -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
5405 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
5406 $(AM_V_GEN)cat $^ > $@
5408 .PHONY: check-api-docs
5409 check-api-docs: exported man
5410 $(AM_V_GEN)for symbol in `cat exported` ; do \
5411 if test -f $(builddir)/man/$$symbol.html ; then \
5412 echo " Symbol $$symbol() is documented." ; \
5414 echo "‣ Symbol $$symbol() lacks documentation." ; \
5418 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
5419 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
5421 undefined defined: $(ALL_OBJECTS)
5422 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
5423 nm -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
5424 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
5430 .PHONY: check-api-unused
5431 check-api-unused: defined undefined exported
5432 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
5434 .PHONY: check-includes
5435 check-includes: $(top_srcdir)/tools/check-includes.pl
5436 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
5437 | xargs $(top_srcdir)/tools/check-includes.pl
5440 $(top_srcdir)/tools/check-includes.pl
5442 # Stupid test that everything purported to be exported really is
5443 define generate-sym-test
5444 $(AM_V_at)$(MKDIR_P) $(dir $@)
5445 $(AM_V_at)printf '#include <stdio.h>\n' > $@
5446 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
5447 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
5448 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
5449 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
5450 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
5451 $(AM_V_at)printf 'return 0; }\n' >> $@
5454 test-libsystemd-sym.c: \
5455 $(top_builddir)/src/libsystemd/libsystemd.sym \
5456 src/systemd/sd-journal.h \
5457 src/systemd/sd-daemon.h \
5458 src/systemd/sd-login.h \
5459 src/systemd/sd-bus.h \
5460 src/systemd/sd-utf8.h \
5461 src/systemd/sd-resolve.h
5462 $(generate-sym-test)
5464 test-libudev-sym.c: \
5465 src/libudev/libudev.sym \
5467 $(generate-sym-test)
5469 test_libsystemd_sym_SOURCES = \
5470 test-libsystemd-sym.c
5471 test_libsystemd_sym_LDADD = \
5474 test_libudev_sym_SOURCES = \
5476 test_libudev_sym_CFLAGS = \
5478 -Wno-deprecated-declarations
5479 test_libudev_sym_LDADD = \
5483 $(test_libsystemd_sym_SOURCES) \
5484 $(test_libudev_sym_SOURCES)
5487 test-libsystemd-sym \
5492 cppcheck --enable=all -q $(top_srcdir)
5494 # Used to extract compile flags for YCM.
5499 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u