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
9 # systemd is free software; you can redistribute it and/or modify it
10 # under the terms of the GNU Lesser General Public License as published by
11 # the Free Software Foundation; either version 2.1 of the License, or
12 # (at your option) any later version.
14 # systemd is distributed in the hope that it will be useful, but
15 # WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 # Lesser General Public License for more details.
19 # You should have received a copy of the GNU Lesser General Public License
20 # along with systemd; If not, see <http://www.gnu.org/licenses/>.
22 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
23 AM_MAKEFLAGS = --no-print-directory
24 AUTOMAKE_OPTIONS = color-tests parallel-tests
28 # remove targets if the command fails
31 # keep intermediate files
34 # Keep the test-suite.log
35 .PRECIOUS: $(TEST_SUITE_LOG) Makefile
45 LIBSYSTEMD_LOGIN_CURRENT=8
46 LIBSYSTEMD_LOGIN_REVISION=0
47 LIBSYSTEMD_LOGIN_AGE=8
49 LIBSYSTEMD_DAEMON_CURRENT=0
50 LIBSYSTEMD_DAEMON_REVISION=10
51 LIBSYSTEMD_DAEMON_AGE=0
53 LIBSYSTEMD_ID128_CURRENT=0
54 LIBSYSTEMD_ID128_REVISION=23
55 LIBSYSTEMD_ID128_AGE=0
57 LIBSYSTEMD_JOURNAL_CURRENT=11
58 LIBSYSTEMD_JOURNAL_REVISION=0
59 LIBSYSTEMD_JOURNAL_AGE=11
61 # Dirs of external packages
62 dbuspolicydir=@dbuspolicydir@
63 dbussessionservicedir=@dbussessionservicedir@
64 dbussystemservicedir=@dbussystemservicedir@
65 dbusinterfacedir=@dbusinterfacedir@
67 pkgconfigdatadir=$(datadir)/pkgconfig
68 pkgconfiglibdir=$(libdir)/pkgconfig
69 polkitpolicydir=$(datadir)/polkit-1/actions
70 bashcompletiondir=@bashcompletiondir@
71 rpmmacrosdir=$(prefix)/lib/rpm/macros.d
72 sysvinitdir=$(SYSTEM_SYSVINIT_PATH)
73 sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
74 varlogdir=$(localstatedir)/log
75 systemdstatedir=$(localstatedir)/lib/systemd
76 catalogstatedir=$(systemdstatedir)/catalog
78 # Our own, non-special dirs
79 pkgsysconfdir=$(sysconfdir)/systemd
80 userunitdir=$(prefix)/lib/systemd/user
81 userpresetdir=$(prefix)/lib/systemd/user-preset
82 tmpfilesdir=$(prefix)/lib/tmpfiles.d
83 sysctldir=$(prefix)/lib/sysctl.d
84 usergeneratordir=$(prefix)/lib/systemd/user-generators
85 pkgincludedir=$(includedir)/systemd
86 systemgeneratordir=$(rootlibexecdir)/system-generators
87 systemshutdowndir=$(rootlibexecdir)/system-shutdown
88 systemsleepdir=$(rootlibexecdir)/system-sleep
89 systemunitdir=$(rootprefix)/lib/systemd/system
90 systempresetdir=$(rootprefix)/lib/systemd/system-preset
91 udevlibexecdir=$(rootprefix)/lib/udev
92 udevhomedir=$(udevlibexecdir)
93 udevrulesdir=$(udevlibexecdir)/rules.d
94 udevhwdbdir=$(udevlibexecdir)/hwdb.d
95 catalogdir=$(prefix)/lib/systemd/catalog
96 kernelinstalldir = $(prefix)/lib/kernel/install.d
98 # And these are the special ones for /
99 rootprefix=@rootprefix@
100 rootbindir=$(rootprefix)/bin
101 rootlibexecdir=$(rootprefix)/lib/systemd
103 CLEANFILES = $(BUILT_SOURCES)
108 UNINSTALL_EXEC_HOOKS =
110 UNINSTALL_DATA_HOOKS =
111 DISTCLEAN_LOCAL_HOOKS =
119 polkitpolicy_in_in_files =
120 polkitpolicy_in_files =
122 dist_udevrules_DATA =
123 nodist_udevrules_DATA =
124 dist_pkgsysconf_DATA =
126 dist_dbuspolicy_DATA =
128 dist_dbussystemservice_DATA =
134 noinst_PROGRAMS = $(manual_tests) $(tests)
140 udevlibexec_PROGRAMS =
143 -include $(top_builddir)/config.h \
144 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
145 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
146 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
147 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
148 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
149 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
150 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
151 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
152 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
153 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
154 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
155 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
156 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
157 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
158 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
159 -DROOTPREFIX=\"$(rootprefix)\" \
160 -DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \
161 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
162 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
163 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
164 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
165 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
166 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
167 -DX_SERVER=\"$(bindir)/X\" \
168 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
169 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
170 -DQUOTACHECK=\"$(QUOTACHECK)\" \
171 -DKEXEC=\"$(KEXEC)\" \
172 -I $(top_srcdir)/src \
173 -I $(top_srcdir)/src/shared \
174 -I $(top_srcdir)/src/login \
175 -I $(top_srcdir)/src/journal \
176 -I $(top_srcdir)/src/systemd \
177 -I $(top_builddir)/src/core \
178 -I $(top_srcdir)/src/core \
179 -I $(top_srcdir)/src/libudev \
180 -I $(top_srcdir)/src/udev \
181 -I $(top_builddir)/src/udev \
182 -I $(top_srcdir)/src/libsystemd-bus \
185 AM_CFLAGS = $(OUR_CFLAGS)
186 AM_LDFLAGS = $(OUR_LDFLAGS)
188 # ------------------------------------------------------------------------------
189 define move-to-rootlibdir
190 if test "$(libdir)" != "$(rootlibdir)"; then \
191 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
192 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
193 so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
194 $(LN_S) -f $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
195 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
201 RUNLEVEL1_TARGET_WANTS =
202 RUNLEVEL2_TARGET_WANTS =
203 RUNLEVEL3_TARGET_WANTS =
204 RUNLEVEL4_TARGET_WANTS =
205 RUNLEVEL5_TARGET_WANTS =
206 SHUTDOWN_TARGET_WANTS =
207 LOCAL_FS_TARGET_WANTS =
208 MULTI_USER_TARGET_WANTS =
209 SYSINIT_TARGET_WANTS =
210 SOCKETS_TARGET_WANTS =
211 TIMERS_TARGET_WANTS =
213 SYSTEM_UNIT_ALIASES =
218 install-target-wants-hook:
219 what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && $(add-wants)
220 what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && $(add-wants)
221 what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && $(add-wants)
222 what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && $(add-wants)
223 what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && $(add-wants)
224 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && $(add-wants)
225 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && $(add-wants)
226 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && $(add-wants)
227 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && $(add-wants)
228 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && $(add-wants)
229 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && $(add-wants)
230 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && $(add-wants)
233 [ -z "$$what" ] || ( \
234 dir=$(DESTDIR)$(systemunitdir)/$$wants.wants && \
235 $(MKDIR_P) -m 0755 $$dir && \
238 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
241 install-directories-hook:
242 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
244 install-aliases-hook:
245 set -- $(SYSTEM_UNIT_ALIASES) && \
246 dir=$(systemunitdir) && $(install-aliases)
247 set -- $(USER_UNIT_ALIASES) && \
248 dir=$(userunitdir) && $(install-aliases)
249 set -- $(GENERAL_ALIASES) && \
250 dir= && $(install-aliases)
252 define install-aliases
253 while [ -n "$$1" ]; do \
254 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
255 rm -f $(DESTDIR)$$dir/$$2 && \
256 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
257 shift 2 || exit $$?; \
261 INSTALL_EXEC_HOOKS += \
262 install-target-wants-hook \
263 install-directories-hook \
266 # ------------------------------------------------------------------------------
267 AM_V_M4 = $(AM_V_M4_$(V))
268 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
269 AM_V_M4_0 = @echo " M4 " $@;
271 AM_V_XSLT = $(AM_V_XSLT_$(V))
272 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
273 AM_V_XSLT_0 = @echo " XSLT " $@;
275 AM_V_GPERF = $(AM_V_GPERF_$(V))
276 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
277 AM_V_GPERF_0 = @echo " GPERF " $@;
279 AM_V_LN = $(AM_V_LN_$(V))
280 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
281 AM_V_LN_0 = @echo " LN " $@;
283 # ------------------------------------------------------------------------------
287 systemd-ask-password \
288 systemd-tty-ask-password-agent \
289 systemd-machine-id-setup
294 systemd-stdio-bridge \
296 systemd-detect-virt \
302 src/kernel-install/kernel-install
304 dist_kernelinstall_SCRIPTS = \
305 src/kernel-install/50-depmod.install \
306 src/kernel-install/90-loaderentry.install
308 rootlibexec_PROGRAMS = \
310 systemd-cgroups-agent \
312 systemd-update-utmp \
316 systemd-reply-password \
323 systemgenerator_PROGRAMS = \
324 systemd-getty-generator \
325 systemd-fstab-generator \
326 systemd-system-update-generator
328 systemd_analyze_SOURCES = \
329 src/analyze/systemd-analyze.c
331 systemd_analyze_CFLAGS = \
335 systemd_analyze_LDADD = \
336 libsystemd-shared.la \
339 dist_bashcompletion_DATA = \
340 shell-completion/bash/journalctl \
341 shell-completion/bash/systemctl \
342 shell-completion/bash/systemd-analyze \
343 shell-completion/bash/udevadm
346 sysctl.d/50-default.conf
348 dist_systemunit_DATA = \
349 units/graphical.target \
350 units/multi-user.target \
351 units/emergency.service \
352 units/emergency.target \
353 units/sysinit.target \
358 units/local-fs.target \
359 units/local-fs-pre.target \
360 units/initrd.target \
361 units/initrd-fs.target \
362 units/initrd-root-fs.target \
363 units/remote-fs.target \
364 units/remote-fs-pre.target \
365 units/network.target \
366 units/network-online.target \
367 units/nss-lookup.target \
368 units/nss-user-lookup.target \
369 units/hibernate.target \
370 units/hybrid-sleep.target \
371 units/poweroff.target \
372 units/reboot.target \
373 units/rescue.target \
374 units/rpcbind.target \
375 units/time-sync.target \
376 units/shutdown.target \
378 units/umount.target \
379 units/sigpwr.target \
381 units/sockets.target \
382 units/timers.target \
384 units/suspend.target \
386 units/slices.target \
389 units/systemd-initctl.socket \
390 units/systemd-shutdownd.socket \
391 units/syslog.socket \
392 units/dev-hugepages.mount \
393 units/dev-mqueue.mount \
394 units/sys-kernel-config.mount \
395 units/sys-kernel-debug.mount \
396 units/sys-fs-fuse-connections.mount \
398 units/printer.target \
400 units/bluetooth.target \
401 units/smartcard.target \
402 units/systemd-ask-password-wall.path \
403 units/systemd-ask-password-console.path \
404 units/systemd-udevd-control.socket \
405 units/systemd-udevd-kernel.socket \
406 units/system-update.target \
407 units/initrd-switch-root.target
409 nodist_systemunit_DATA = \
410 units/getty@.service \
411 units/serial-getty@.service \
412 units/console-shell.service \
413 units/console-getty.service \
414 units/systemd-initctl.service \
415 units/systemd-shutdownd.service \
416 units/systemd-remount-fs.service \
417 units/systemd-update-utmp.service \
418 units/systemd-update-utmp-runlevel.service \
419 units/systemd-ask-password-wall.service \
420 units/systemd-ask-password-console.service \
421 units/systemd-sysctl.service \
422 units/emergency.service \
423 units/rescue.service \
424 units/user@.service \
425 units/systemd-hibernate.service \
426 units/systemd-hybrid-sleep.service \
427 units/systemd-suspend.service \
428 units/systemd-halt.service \
429 units/systemd-poweroff.service \
430 units/systemd-reboot.service \
431 units/systemd-kexec.service \
432 units/systemd-fsck@.service \
433 units/systemd-fsck-root.service \
434 units/systemd-udevd.service \
435 units/systemd-udev-trigger.service \
436 units/systemd-udev-settle.service \
437 units/debug-shell.service \
438 units/initrd-parse-etc.service \
439 units/initrd-cleanup.service \
440 units/initrd-udevadm-cleanup-db.service \
441 units/initrd-switch-root.service \
442 units/systemd-nspawn@.service
444 dist_userunit_DATA = \
445 units/user/default.target \
446 units/user/exit.target
448 nodist_userunit_DATA = \
449 units/user/systemd-exit.service
452 units/getty@.service.m4 \
453 units/serial-getty@.service.m4 \
454 units/console-shell.service.m4.in \
455 units/console-getty.service.m4.in \
456 units/rescue.service.m4.in \
457 units/systemd-initctl.service.in \
458 units/systemd-shutdownd.service.in \
459 units/systemd-remount-fs.service.in \
460 units/systemd-update-utmp.service.in \
461 units/systemd-update-utmp-runlevel.service.in \
462 units/systemd-ask-password-wall.service.in \
463 units/systemd-ask-password-console.service.in \
464 units/systemd-sysctl.service.in \
465 units/emergency.service.in \
466 units/systemd-halt.service.in \
467 units/systemd-poweroff.service.in \
468 units/systemd-reboot.service.in \
469 units/systemd-kexec.service.in \
470 units/user/systemd-exit.service.in \
471 units/systemd-fsck@.service.in \
472 units/systemd-fsck-root.service.in \
473 units/user@.service.in \
474 units/systemd-udevd.service \
475 units/systemd-udev-trigger.service \
476 units/systemd-udev-settle.service \
477 units/debug-shell.service.in \
478 units/systemd-hibernate.service.in \
479 units/systemd-hybrid-sleep.service.in \
480 units/systemd-suspend.service.in \
481 units/quotaon.service.in \
482 units/initrd-parse-etc.service.in \
483 units/initrd-cleanup.service.in \
484 units/initrd-udevadm-cleanup-db.service.in \
485 units/initrd-switch-root.service.in \
486 units/systemd-nspawn@.service.in \
490 units/console-shell.service.m4 \
491 units/console-getty.service.m4 \
492 units/rescue.service.m4
495 nodist_systemunit_DATA += \
496 units/rc-local.service \
497 units/halt-local.service
499 systemgenerator_PROGRAMS += \
500 systemd-rc-local-generator
504 units/rc-local.service.in \
505 units/halt-local.service.in
507 # automake is broken and can't handle files with a dash in front
508 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
510 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
512 units-uninstall-hook:
513 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
515 INSTALL_DATA_HOOKS += units-install-hook
516 UNINSTALL_DATA_HOOKS += units-uninstall-hook
526 @INTLTOOL_POLICY_RULE@
528 # ------------------------------------------------------------------------------
533 include Makefile-man.am
536 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
539 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
541 ${XML_FILES:.xml=.html}
543 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
560 $(AM_V_at)$(MKDIR_P) $(dir $@)
561 $(AM_V_LN)$(LN_S) -f ../../man $@
570 man/index.html: man/systemd.index.html
571 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
579 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
580 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
581 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
583 update-man-list: make-man-rules.py $(XML_GLOB)
584 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
585 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
586 @echo "Makefile-man.am has been regenerated"
588 man/systemd.index.xml: make-man-index.py $(NON_INDEX_XML_FILES)
589 $(AM_V_at)$(MKDIR_P) $(dir $@)
590 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
592 man/systemd.directives.xml: make-directive-index.py $(SOURCE_XML_FILES)
593 $(AM_V_at)$(MKDIR_P) $(dir $@)
594 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
597 man/systemd.index.xml \
599 man/systemd.directives.xml
602 man/systemd.index.xml \
603 man/systemd.directives.xml
615 make-directive-index.py \
618 # ------------------------------------------------------------------------------
619 noinst_LTLIBRARIES += \
622 libsystemd_shared_la_SOURCES = \
623 src/shared/linux/auto_dev-ioctl.h \
624 src/shared/linux/fanotify.h \
625 src/shared/linux/seccomp.h \
626 src/shared/linux/seccomp-bpf.h \
627 src/shared/missing.h \
631 src/shared/sparse-endian.h \
636 src/shared/efivars.c \
637 src/shared/efivars.h \
638 src/shared/path-util.c \
639 src/shared/path-util.h \
640 src/shared/time-util.c \
641 src/shared/time-util.h \
642 src/shared/hashmap.c \
643 src/shared/hashmap.h \
650 src/shared/sleep-config.c \
651 src/shared/sleep-config.h \
654 src/shared/env-util.c \
655 src/shared/env-util.h \
656 src/shared/strbuf.c \
657 src/shared/strbuf.h \
658 src/shared/strxcpyx.c \
659 src/shared/strxcpyx.h \
660 src/shared/conf-parser.c \
661 src/shared/conf-parser.h \
664 src/shared/ratelimit.h \
665 src/shared/ratelimit.c \
666 src/shared/exit-status.c \
667 src/shared/exit-status.h \
672 src/shared/ioprio.h \
673 src/shared/socket-util.c \
674 src/shared/socket-util.h \
675 src/shared/conf-files.c \
676 src/shared/conf-files.h \
677 src/shared/cgroup-util.c \
678 src/shared/cgroup-util.h \
679 src/shared/cgroup-show.c \
680 src/shared/cgroup-show.h \
681 src/shared/unit-name.c \
682 src/shared/unit-name.h \
683 src/shared/utmp-wtmp.c \
684 src/shared/utmp-wtmp.h \
685 src/shared/watchdog.c \
686 src/shared/watchdog.h \
687 src/shared/spawn-ask-password-agent.c \
688 src/shared/spawn-ask-password-agent.h \
689 src/shared/replace-var.c \
690 src/shared/replace-var.h \
691 src/shared/spawn-polkit-agent.c \
692 src/shared/spawn-polkit-agent.h \
693 src/shared/hwclock.c \
694 src/shared/hwclock.h \
695 src/shared/time-dst.c \
696 src/shared/time-dst.h \
697 src/shared/calendarspec.c \
698 src/shared/calendarspec.h \
699 src/shared/fileio.c \
700 src/shared/fileio.h \
701 src/shared/output-mode.h \
702 src/shared/MurmurHash3.c \
703 src/shared/MurmurHash3.h \
706 #-------------------------------------------------------------------------------
707 noinst_LTLIBRARIES += \
710 libsystemd_dbus_la_SOURCES = \
711 src/shared/dbus-common.c \
712 src/shared/dbus-common.h \
713 src/shared/dbus-loop.c \
714 src/shared/dbus-loop.h \
715 src/shared/polkit.c \
718 libsystemd_dbus_la_CFLAGS = \
722 libsystemd_dbus_la_LIBADD = \
725 # ------------------------------------------------------------------------------
726 noinst_LTLIBRARIES += \
729 libsystemd_units_la_SOURCES = \
730 src/shared/install.c \
731 src/shared/install.h \
732 src/shared/install-printf.c \
733 src/shared/install-printf.h \
734 src/shared/path-lookup.c \
735 src/shared/path-lookup.h \
736 src/shared/specifier.c \
737 src/shared/specifier.h
739 libsystemd_units_la_CFLAGS = \
743 # ------------------------------------------------------------------------------
744 noinst_LTLIBRARIES += \
747 libsystemd_label_la_SOURCES = \
748 src/shared/cgroup-label.c \
749 src/shared/socket-label.c \
752 src/shared/selinux-util.c \
753 src/shared/selinux-util.h \
756 src/shared/ask-password-api.c \
757 src/shared/ask-password-api.h \
758 src/shared/fileio-label.c \
759 src/shared/fileio-label.h \
760 src/shared/dev-setup.c \
761 src/shared/dev-setup.h
763 libsystemd_label_la_CFLAGS = \
767 libsystemd_label_la_LIBADD = \
770 # ------------------------------------------------------------------------------
771 noinst_LTLIBRARIES += \
774 libsystemd_logs_la_SOURCES = \
775 src/shared/logs-show.c \
776 src/shared/logs-show.h
778 libsystemd_logs_la_CFLAGS = \
781 libsystemd_logs_la_LIBADD = \
782 libsystemd-journal-internal.la \
783 libsystemd-id128-internal.la \
786 # ------------------------------------------------------------------------------
787 noinst_LTLIBRARIES += \
788 libsystemd-capability.la
790 libsystemd_capability_la_SOURCES = \
791 src/shared/capability.c \
792 src/shared/capability.h
794 libsystemd_capability_la_CFLAGS = \
798 libsystemd_capability_la_LIBADD = \
801 # ------------------------------------------------------------------------------
802 noinst_LTLIBRARIES += \
805 libsystemd_audit_la_SOURCES = \
809 libsystemd_audit_la_LIBADD = \
810 libsystemd-capability.la
812 # ------------------------------------------------------------------------------
814 noinst_LTLIBRARIES += \
817 libsystemd_acl_la_SOURCES = \
818 src/shared/acl-util.c \
819 src/shared/acl-util.h
821 libsystemd_acl_la_CFLAGS = \
825 libsystemd_acl_la_LIBADD = \
830 # ------------------------------------------------------------------------------
831 noinst_LTLIBRARIES += \
834 libsystemd_core_la_SOURCES = \
837 src/core/unit-printf.c \
838 src/core/unit-printf.h \
843 src/core/transaction.c \
844 src/core/transaction.h \
845 src/core/load-fragment.c \
846 src/core/load-fragment.h \
849 src/core/automount.c \
850 src/core/automount.h \
859 src/core/snapshot.c \
860 src/core/snapshot.h \
871 src/core/load-dropin.c \
872 src/core/load-dropin.h \
879 src/core/dbus-manager.c \
880 src/core/dbus-manager.h \
881 src/core/dbus-unit.c \
882 src/core/dbus-unit.h \
883 src/core/dbus-job.c \
884 src/core/dbus-job.h \
885 src/core/dbus-service.c \
886 src/core/dbus-service.h \
887 src/core/dbus-socket.c \
888 src/core/dbus-socket.h \
889 src/core/dbus-timer.c \
890 src/core/dbus-timer.h \
891 src/core/dbus-target.c \
892 src/core/dbus-target.h \
893 src/core/dbus-mount.c \
894 src/core/dbus-mount.h \
895 src/core/dbus-automount.c \
896 src/core/dbus-automount.h \
897 src/core/dbus-swap.c \
898 src/core/dbus-swap.h \
899 src/core/dbus-snapshot.c \
900 src/core/dbus-snapshot.h \
901 src/core/dbus-device.c \
902 src/core/dbus-device.h \
903 src/core/dbus-path.c \
904 src/core/dbus-path.h \
905 src/core/dbus-slice.c \
906 src/core/dbus-slice.h \
907 src/core/dbus-scope.c \
908 src/core/dbus-scope.h \
909 src/core/dbus-execute.c \
910 src/core/dbus-execute.h \
911 src/core/dbus-kill.c \
912 src/core/dbus-kill.h \
913 src/core/dbus-cgroup.c \
914 src/core/dbus-cgroup.h \
917 src/core/selinux-access.c \
918 src/core/selinux-access.h \
919 src/core/selinux-setup.c \
920 src/core/selinux-setup.h \
921 src/core/smack-setup.c \
922 src/core/smack-setup.h \
923 src/core/ima-setup.c \
924 src/core/ima-setup.h \
925 src/core/locale-setup.h \
926 src/core/locale-setup.c \
927 src/core/hostname-setup.c \
928 src/core/hostname-setup.h \
929 src/core/machine-id-setup.c \
930 src/core/machine-id-setup.h \
931 src/core/mount-setup.c \
932 src/core/mount-setup.h \
933 src/core/loopback-setup.h \
934 src/core/loopback-setup.c \
935 src/core/condition.c \
936 src/core/condition.h \
937 src/core/namespace.c \
938 src/core/namespace.h \
941 src/core/securebits.h \
944 src/core/bus-errors.h \
946 src/core/sysfs-show.h \
947 src/core/switch-root.h \
948 src/core/switch-root.c \
951 src/core/syscall-list.c \
952 src/core/syscall-list.h \
953 src/core/audit-fd.c \
954 src/core/audit-fd.h \
959 libsystemd_core_la_SOURCES += \
960 src/core/kmod-setup.c \
961 src/core/kmod-setup.h
964 nodist_libsystemd_core_la_SOURCES = \
965 src/core/load-fragment-gperf.c \
966 src/core/load-fragment-gperf-nulstr.c \
967 src/core/syscall-from-name.h \
968 src/core/syscall-to-name.h
970 libsystemd_core_la_CFLAGS = \
979 libsystemd_core_la_LIBADD = \
980 libsystemd-capability.la \
981 libsystemd-units.la \
982 libsystemd-label.la \
983 libsystemd-shared.la \
985 libsystemd-audit.la \
986 libsystemd-id128-internal.la \
987 libsystemd-daemon.la \
995 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
996 $(AM_V_at)$(MKDIR_P) $(dir $@)
997 $(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 ";" }' < $< > $@
1000 src/core/load-fragment-gperf.gperf.m4
1003 src/core/load-fragment-gperf.gperf \
1004 src/core/load-fragment-gperf.c \
1005 src/core/load-fragment-gperf-nulstr.c \
1006 src/core/syscall-list.txt \
1007 src/core/syscall-from-name.gperf
1010 src/core/syscall-from-name.h \
1011 src/core/syscall-to-name.h
1013 src/core/syscall-list.txt: Makefile
1014 $(AM_V_at)$(MKDIR_P) $(dir $@)
1015 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include sys/syscall.h - < /dev/null | $(AWK) '/^#define[ \t]+__NR_[^ ]+[ \t]+[0-9(]/ { sub(/__NR_/, "", $$2); print $$2; }' > $@
1017 src/core/syscall-from-name.gperf: src/core/syscall-list.txt Makefile
1018 $(AM_V_at)$(MKDIR_P) $(dir $@)
1019 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct syscall_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, __NR_%s\n", $$1, $$1 }' < $< > $@
1021 src/core/syscall-from-name.h: src/core/syscall-from-name.gperf Makefile
1022 $(AM_V_at)$(MKDIR_P) $(dir $@)
1023 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_syscall -H hash_syscall_name -p -C < $< > $@
1025 src/core/syscall-to-name.h: src/core/syscall-list.txt Makefile
1026 $(AM_V_at)$(MKDIR_P) $(dir $@)
1027 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const syscall_names[] = { "} { printf "[SYSCALL_TO_INDEX(__NR_%s)] = \"%s\",\n", $$1, $$1 } END{print "};"}' < $< > $@
1029 # ------------------------------------------------------------------------------
1038 libsystemd-core.la \
1039 libsystemd-daemon.la \
1040 libsystemd-id128-internal.la \
1043 dist_pkgsysconf_DATA += \
1044 src/core/system.conf \
1047 dist_dbuspolicy_DATA += \
1048 src/core/org.freedesktop.systemd1.conf
1050 dist_dbussystemservice_DATA += \
1051 src/core/org.freedesktop.systemd1.service
1053 dbusinterface_DATA += \
1054 org.freedesktop.systemd1.Manager.xml \
1055 org.freedesktop.systemd1.Job.xml \
1056 org.freedesktop.systemd1.Unit.xml \
1057 org.freedesktop.systemd1.Service.xml \
1058 org.freedesktop.systemd1.Socket.xml \
1059 org.freedesktop.systemd1.Timer.xml \
1060 org.freedesktop.systemd1.Target.xml \
1061 org.freedesktop.systemd1.Device.xml \
1062 org.freedesktop.systemd1.Mount.xml \
1063 org.freedesktop.systemd1.Automount.xml \
1064 org.freedesktop.systemd1.Snapshot.xml \
1065 org.freedesktop.systemd1.Swap.xml \
1066 org.freedesktop.systemd1.Path.xml
1068 polkitpolicy_in_in_files += \
1069 src/core/org.freedesktop.systemd1.policy.in.in
1071 org.freedesktop.systemd1.%.xml: systemd
1072 $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.$* $< $@.tmp && \
1073 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1074 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1076 pkgconfigdata_DATA = \
1079 nodist_rpmmacros_DATA = \
1080 src/core/macros.systemd
1083 src/core/systemd.pc.in \
1084 src/core/macros.systemd.in
1087 src/core/macros.systemd \
1088 src/core/org.freedesktop.systemd1.policy.in
1090 # ------------------------------------------------------------------------------
1117 test-strip-tab-ansi \
1127 test/sched_idle_bad.service \
1128 test/sched_idle_ok.service \
1129 test/sched_rr_bad.service \
1130 test/sched_rr_ok.service \
1131 test/sched_rr_change.service
1133 test_engine_SOURCES = \
1134 src/test/test-engine.c
1136 test_engine_CFLAGS = \
1140 test_engine_LDADD = \
1141 libsystemd-core.la \
1142 libsystemd-daemon.la \
1145 test_job_type_SOURCES = \
1146 src/test/test-job-type.c
1148 test_job_type_CFLAGS = \
1152 test_job_type_LDADD = \
1153 libsystemd-core.la \
1154 libsystemd-daemon.la
1166 test_loopback_SOURCES = \
1167 src/test/test-loopback.c
1169 test_loopback_LDADD = \
1170 libsystemd-shared.la \
1173 test_hostname_SOURCES = \
1174 src/test/test-hostname.c
1176 test_hostname_LDADD = \
1183 test_efivars_SOURCES = \
1184 src/test/test-efivars.c
1186 test_efivars_LDADD = \
1187 libsystemd-shared.la
1190 test_unit_name_SOURCES = \
1191 src/test/test-unit-name.c
1193 test_unit_name_CFLAGS = \
1197 test_unit_name_LDADD = \
1200 test_unit_file_SOURCES = \
1201 src/test/test-unit-file.c
1203 test_unit_file_CFLAGS = \
1207 test_unit_file_LDADD = \
1210 test_util_SOURCES = \
1211 src/test/test-util.c
1213 test_util_CFLAGS = \
1219 test_hashmap_SOURCES = \
1220 src/test/test-hashmap.c
1222 test_hashmap_CFLAGS = \
1225 test_hashmap_LDADD = \
1228 test_list_SOURCES = \
1229 src/test/test-list.c
1231 test_list_CFLAGS = \
1237 test_tables_SOURCES = \
1238 src/test/test-tables.c \
1239 src/shared/test-tables.h
1241 test_tables_CFLAGS = \
1245 test_tables_LDADD = \
1246 libsystemd-core.la \
1249 test_prioq_SOURCES = \
1250 src/test/test-prioq.c
1252 test_prioq_CFLAGS = \
1255 test_prioq_LDADD = \
1258 test_fileio_SOURCES = \
1259 src/test/test-fileio.c
1261 test_fileio_CFLAGS = \
1264 test_fileio_LDADD = \
1267 test_time_SOURCES = \
1268 src/test/test-time.c
1270 test_time_CFLAGS = \
1276 test_log_SOURCES = \
1282 test_date_SOURCES = \
1283 src/test/test-date.c
1288 test_sleep_SOURCES = \
1289 src/test/test-sleep.c
1291 test_sleep_LDADD = \
1294 test_replace_var_SOURCES = \
1295 src/test/test-replace-var.c
1297 test_replace_var_LDADD = \
1298 libsystemd-shared.la
1300 test_calendarspec_SOURCES = \
1301 src/test/test-calendarspec.c
1303 test_calendarspec_LDADD = \
1304 libsystemd-shared.la
1306 test_strip_tab_ansi_SOURCES = \
1307 src/test/test-strip-tab-ansi.c
1309 test_strip_tab_ansi_LDADD = \
1310 libsystemd-shared.la
1312 test_daemon_SOURCES = \
1313 src/test/test-daemon.c
1315 test_daemon_LDADD = \
1316 libsystemd-shared.la \
1317 libsystemd-daemon.la
1319 test_cgroup_SOURCES = \
1320 src/test/test-cgroup.c
1322 test_cgroup_LDADD = \
1323 libsystemd-label.la \
1324 libsystemd-shared.la
1326 test_cgroup_util_SOURCES = \
1327 src/test/test-cgroup-util.c
1329 test_cgroup_util_LDADD = \
1330 libsystemd-label.la \
1331 libsystemd-shared.la
1333 test_env_replace_SOURCES = \
1334 src/test/test-env-replace.c
1336 test_env_replace_LDADD = \
1337 libsystemd-shared.la
1339 test_strbuf_SOURCES = \
1340 src/test/test-strbuf.c
1342 test_strbuf_LDADD = \
1343 libsystemd-shared.la
1345 test_strv_SOURCES = \
1346 src/test/test-strv.c
1349 libsystemd-shared.la \
1350 libsystemd-units.la \
1351 libsystemd-id128-internal.la
1353 test_path_util_SOURCES = \
1354 src/test/test-path-util.c
1356 test_path_util_LDADD = \
1357 libsystemd-shared.la
1359 test_strxcpyx_SOURCES = \
1360 src/test/test-strxcpyx.c
1362 test_strxcpyx_LDADD = \
1363 libsystemd-shared.la
1365 test_install_SOURCES = \
1366 src/test/test-install.c
1368 test_install_CFLAGS = \
1372 test_install_LDADD = \
1373 libsystemd-units.la \
1374 libsystemd-label.la \
1375 libsystemd-shared.la \
1376 libsystemd-id128-internal.la
1378 test_watchdog_SOURCES = \
1379 src/test/test-watchdog.c
1381 test_watchdog_LDADD = \
1382 libsystemd-shared.la
1384 test_sched_prio_SOURCES = \
1385 src/test/test-sched-prio.c
1387 test_sched_prio_CFLAGS = \
1390 -D"STR(s)=\#s" -D"TEST_DIR=STR($(abs_top_srcdir)/test/)"
1392 test_sched_prio_LDADD = \
1393 libsystemd-core.la \
1394 libsystemd-daemon.la
1396 # ------------------------------------------------------------------------------
1397 ## .PHONY so it always rebuilds it
1398 .PHONY: coverage lcov-run lcov-report
1400 # run lcov from scratch, always
1405 coverage_dir = coverage
1406 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1409 # reset run coverage tests
1411 @rm -rf $(coverage_dir)
1412 lcov $(coverage_opts) --zerocounters
1415 # generate report based on current coverage data
1417 $(MKDIR_P) $(coverage_dir)
1418 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1419 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1420 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1421 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1423 # lcov doesn't work properly with vpath builds, make sure that bad
1424 # output is not uploaded by mistake.
1425 coverage-sync: coverage
1426 test "$(builddir)" = "$(srcdir)"
1427 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1430 lcov-run lcov-report:
1431 echo "Need to reconfigure with --enable-coverage"
1434 # ------------------------------------------------------------------------------
1435 systemd_initctl_SOURCES = \
1436 src/initctl/initctl.c
1438 systemd_initctl_CFLAGS = \
1442 systemd_initctl_LDADD = \
1443 libsystemd-shared.la \
1444 libsystemd-daemon.la \
1447 # ------------------------------------------------------------------------------
1448 systemd_update_utmp_SOURCES = \
1449 src/update-utmp/update-utmp.c
1451 systemd_update_utmp_CFLAGS = \
1456 systemd_update_utmp_LDADD = \
1457 libsystemd-shared.la \
1458 libsystemd-dbus.la \
1461 # ------------------------------------------------------------------------------
1462 systemd_shutdownd_SOURCES = \
1463 src/shutdownd/shutdownd.c
1465 systemd_shutdownd_LDADD = \
1466 libsystemd-label.la \
1467 libsystemd-shared.la \
1468 libsystemd-daemon.la
1470 pkginclude_HEADERS += \
1471 src/systemd/sd-shutdown.h
1473 # ------------------------------------------------------------------------------
1474 systemd_shutdown_SOURCES = \
1477 src/core/shutdown.c \
1478 src/core/mount-setup.c \
1479 src/core/mount-setup.h \
1480 src/core/killall.h \
1483 systemd_shutdown_LDADD = \
1484 libsystemd-label.la \
1485 libsystemd-shared.la \
1488 # ------------------------------------------------------------------------------
1490 systemd_modules_load_SOURCES = \
1491 src/modules-load/modules-load.c
1493 systemd_modules_load_CFLAGS = \
1497 systemd_modules_load_LDADD = \
1498 libsystemd-shared.la \
1501 rootlibexec_PROGRAMS += \
1502 systemd-modules-load
1504 nodist_systemunit_DATA += \
1505 units/systemd-modules-load.service
1507 SYSINIT_TARGET_WANTS += \
1508 systemd-modules-load.service
1511 nodist_systemunit_DATA += \
1512 units/kmod-static-nodes.service
1514 SYSINIT_TARGET_WANTS += \
1515 kmod-static-nodes.service
1520 units/systemd-modules-load.service.in \
1521 units/kmod-static-nodes.service.in
1523 # ------------------------------------------------------------------------------
1525 systemd_tmpfiles_SOURCES = \
1526 src/tmpfiles/tmpfiles.c
1528 systemd_tmpfiles_LDADD = \
1529 libsystemd-label.la \
1530 libsystemd-shared.la \
1531 libsystemd-capability.la
1533 rootbin_PROGRAMS += \
1536 dist_systemunit_DATA += \
1537 units/systemd-tmpfiles-clean.timer
1539 nodist_systemunit_DATA += \
1540 units/systemd-tmpfiles-setup-dev.service \
1541 units/systemd-tmpfiles-setup.service \
1542 units/systemd-tmpfiles-clean.service
1544 dist_tmpfiles_DATA = \
1545 tmpfiles.d/systemd.conf \
1546 tmpfiles.d/tmp.conf \
1550 dist_tmpfiles_DATA += \
1551 tmpfiles.d/legacy.conf
1554 SYSINIT_TARGET_WANTS += \
1555 systemd-tmpfiles-setup-dev.service \
1556 systemd-tmpfiles-setup.service
1558 TIMERS_TARGET_WANTS += \
1559 systemd-tmpfiles-clean.timer
1563 $(sysconfdir)/tmpfiles.d
1567 units/systemd-tmpfiles-setup-dev.service.in \
1568 units/systemd-tmpfiles-setup.service.in \
1569 units/systemd-tmpfiles-clean.service.in
1571 # ------------------------------------------------------------------------------
1572 systemd_machine_id_setup_SOURCES = \
1573 src/machine-id-setup/machine-id-setup-main.c \
1574 src/core/machine-id-setup.c \
1575 src/core/machine-id-setup.h
1577 systemd_machine_id_setup_LDADD = \
1578 libsystemd-label.la \
1579 libsystemd-shared.la \
1580 libsystemd-id128-internal.la
1582 # ------------------------------------------------------------------------------
1583 systemd_sysctl_SOURCES = \
1586 systemd_sysctl_LDADD = \
1587 libsystemd-shared.la
1589 # ------------------------------------------------------------------------------
1590 systemd_sleep_SOURCES = \
1593 systemd_sleep_LDADD = \
1594 libsystemd-shared.la
1596 # ------------------------------------------------------------------------------
1597 systemd_fsck_SOURCES = \
1600 systemd_fsck_CFLAGS = \
1604 systemd_fsck_LDADD = \
1605 libsystemd-shared.la \
1606 libsystemd-dbus.la \
1609 # ------------------------------------------------------------------------------
1610 systemd_timestamp_SOURCES = \
1611 src/timestamp/timestamp.c
1613 systemd_timestamp_LDADD = \
1614 libsystemd-shared.la
1616 # ------------------------------------------------------------------------------
1617 systemd_ac_power_SOURCES = \
1618 src/ac-power/ac-power.c
1620 systemd_ac_power_LDADD = \
1621 libsystemd-shared.la \
1624 # ------------------------------------------------------------------------------
1625 systemd_detect_virt_SOURCES = \
1626 src/detect-virt/detect-virt.c
1628 systemd_detect_virt_LDADD = \
1629 libsystemd-shared.la
1631 systemd-detect-virt-install-hook:
1632 -$(SETCAP) cap_dac_override,cap_sys_ptrace=ep $(DESTDIR)$(bindir)/systemd-detect-virt
1634 INSTALL_EXEC_HOOKS += \
1635 systemd-detect-virt-install-hook
1637 # ------------------------------------------------------------------------------
1638 systemd_delta_SOURCES = \
1641 systemd_delta_LDADD = \
1642 libsystemd-shared.la
1644 # ------------------------------------------------------------------------------
1645 systemd_getty_generator_SOURCES = \
1646 src/getty-generator/getty-generator.c
1648 systemd_getty_generator_LDADD = \
1649 libsystemd-label.la \
1650 libsystemd-shared.la
1652 # ------------------------------------------------------------------------------
1653 systemd_fstab_generator_SOURCES = \
1654 src/fstab-generator/fstab-generator.c \
1655 src/core/mount-setup.c
1657 systemd_fstab_generator_LDADD = \
1658 libsystemd-label.la \
1659 libsystemd-shared.la
1661 # ------------------------------------------------------------------------------
1662 systemd_system_update_generator_SOURCES = \
1663 src/system-update-generator/system-update-generator.c
1665 systemd_system_update_generator_LDADD = \
1666 libsystemd-label.la \
1667 libsystemd-shared.la
1670 # ------------------------------------------------------------------------------
1671 systemgenerator_PROGRAMS += \
1672 systemd-efi-boot-generator
1674 systemd_efi_boot_generator_SOURCES = \
1675 src/efi-boot-generator/efi-boot-generator.c
1677 systemd_efi_boot_generator_LDADD = \
1678 libsystemd-label.la \
1679 libsystemd-shared.la
1681 # ------------------------------------------------------------------------------
1684 src/boot/boot-loader.h \
1685 src/boot/bootctl.c \
1686 src/boot/boot-loader.c \
1690 libsystemd-shared.la \
1691 libsystemd-id128.la \
1692 libsystemd-daemon.la
1698 # ------------------------------------------------------------------------------
1699 systemd_rc_local_generator_SOURCES = \
1700 src/rc-local-generator/rc-local-generator.c
1702 systemd_rc_local_generator_LDADD = \
1703 libsystemd-label.la \
1704 libsystemd-shared.la
1706 # ------------------------------------------------------------------------------
1707 systemd_remount_fs_SOURCES = \
1708 src/remount-fs/remount-fs.c \
1709 src/core/mount-setup.c \
1710 src/core/mount-setup.h
1712 systemd_remount_fs_LDADD = \
1713 libsystemd-label.la \
1714 libsystemd-shared.la
1716 # ------------------------------------------------------------------------------
1717 systemd_cgroups_agent_SOURCES = \
1718 src/cgroups-agent/cgroups-agent.c
1720 systemd_cgroups_agent_CFLAGS = \
1724 systemd_cgroups_agent_LDADD = \
1725 libsystemd-shared.la \
1728 # ------------------------------------------------------------------------------
1729 systemctl_SOURCES = \
1730 src/systemctl/systemctl.c
1732 systemctl_CFLAGS = \
1737 libsystemd-units.la \
1738 libsystemd-label.la \
1739 libsystemd-shared.la \
1740 libsystemd-daemon.la \
1741 libsystemd-dbus.la \
1744 # ------------------------------------------------------------------------------
1745 systemd_notify_SOURCES = \
1746 src/notify/notify.c \
1747 src/readahead/sd-readahead.c
1749 systemd_notify_LDADD = \
1750 libsystemd-shared.la \
1751 libsystemd-daemon.la
1753 # ------------------------------------------------------------------------------
1754 systemd_ask_password_SOURCES = \
1755 src/ask-password/ask-password.c
1757 systemd_ask_password_LDADD = \
1758 libsystemd-label.la \
1759 libsystemd-shared.la
1761 # ------------------------------------------------------------------------------
1762 systemd_reply_password_SOURCES = \
1763 src/reply-password/reply-password.c
1765 systemd_reply_password_LDADD = \
1766 libsystemd-shared.la
1768 # ------------------------------------------------------------------------------
1769 systemd_cgls_SOURCES = \
1772 systemd_cgls_LDADD = \
1773 libsystemd-shared.la
1775 # ------------------------------------------------------------------------------
1776 systemd_cgtop_SOURCES = \
1779 systemd_cgtop_LDADD = \
1780 libsystemd-shared.la
1782 # ------------------------------------------------------------------------------
1783 systemd_nspawn_SOURCES = \
1784 src/nspawn/nspawn.c \
1785 src/core/mount-setup.c \
1786 src/core/mount-setup.h \
1787 src/core/loopback-setup.c \
1788 src/core/loopback-setup.h
1790 systemd_nspawn_LDADD = \
1791 libsystemd-label.la \
1792 libsystemd-capability.la \
1793 libsystemd-shared.la \
1794 libsystemd-daemon.la \
1795 libsystemd-id128-internal.la \
1798 # ------------------------------------------------------------------------------
1799 systemd_run_SOURCES = \
1802 systemd_run_LDADD = \
1803 libsystemd-label.la \
1804 libsystemd-capability.la \
1805 libsystemd-shared.la \
1806 libsystemd-daemon.la \
1807 libsystemd-id128-internal.la \
1810 # ------------------------------------------------------------------------------
1811 systemd_stdio_bridge_SOURCES = \
1812 src/stdio-bridge/stdio-bridge.c
1814 systemd_stdio_bridge_LDADD = \
1815 libsystemd-shared.la \
1817 libsystemd-daemon.la
1819 # ------------------------------------------------------------------------------
1820 systemd_tty_ask_password_agent_SOURCES = \
1821 src/tty-ask-password-agent/tty-ask-password-agent.c
1823 systemd_tty_ask_password_agent_LDADD = \
1824 libsystemd-label.la \
1825 libsystemd-shared.la
1827 # ------------------------------------------------------------------------------
1828 libsystemd_daemon_la_SOURCES = \
1829 src/libsystemd-daemon/sd-daemon.c
1831 libsystemd_daemon_internal_la_SOURCES = \
1832 $(libsystemd_daemon_la_SOURCES)
1834 libsystemd_daemon_la_CFLAGS = \
1836 -fvisibility=hidden \
1839 libsystemd_daemon_la_LDFLAGS = \
1841 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
1842 -Wl,--version-script=$(top_srcdir)/src/libsystemd-daemon/libsystemd-daemon.sym
1844 pkginclude_HEADERS += \
1845 src/systemd/sd-daemon.h
1847 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1848 libsystemd-daemon-install-hook:
1849 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
1851 libsystemd-daemon-uninstall-hook:
1852 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
1854 INSTALL_EXEC_HOOKS += libsystemd-daemon-install-hook
1855 UNINSTALL_EXEC_HOOKS += libsystemd-daemon-uninstall-hook
1857 lib_LTLIBRARIES += \
1858 libsystemd-daemon.la
1860 noinst_LTLIBRARIES += \
1861 libsystemd-daemon-internal.la
1863 pkgconfiglib_DATA += \
1864 src/libsystemd-daemon/libsystemd-daemon.pc
1867 src/libsystemd-daemon/libsystemd-daemon.pc.in \
1868 src/libsystemd-daemon/libsystemd-daemon.sym
1870 # ------------------------------------------------------------------------------
1871 libsystemd_bus_la_SOURCES = \
1872 src/systemd/sd-bus.h \
1873 src/systemd/sd-bus-protocol.h \
1874 src/systemd/sd-memfd.h \
1875 src/libsystemd-bus/sd-bus.c \
1876 src/libsystemd-bus/bus-control.c \
1877 src/libsystemd-bus/bus-control.h \
1878 src/libsystemd-bus/bus-error.c \
1879 src/libsystemd-bus/bus-error.h \
1880 src/libsystemd-bus/bus-internal.c \
1881 src/libsystemd-bus/bus-internal.h \
1882 src/libsystemd-bus/bus-socket.c \
1883 src/libsystemd-bus/bus-socket.h \
1884 src/libsystemd-bus/bus-kernel.c \
1885 src/libsystemd-bus/bus-kernel.h \
1886 src/libsystemd-bus/bus-message.c \
1887 src/libsystemd-bus/bus-message.h \
1888 src/libsystemd-bus/bus-signature.c \
1889 src/libsystemd-bus/bus-signature.h \
1890 src/libsystemd-bus/bus-type.c \
1891 src/libsystemd-bus/bus-type.h \
1892 src/libsystemd-bus/bus-match.c \
1893 src/libsystemd-bus/bus-match.h \
1894 src/libsystemd-bus/bus-bloom.c \
1895 src/libsystemd-bus/bus-bloom.h \
1896 src/libsystemd-bus/kdbus.h \
1897 src/libsystemd-bus/sd-memfd.c
1899 libsystemd_bus_la_LIBADD = \
1900 libsystemd-id128-internal.la \
1901 libsystemd-shared.la \
1902 libsystemd-daemon.la
1904 libsystemd_bus_la_CFLAGS = \
1908 noinst_LTLIBRARIES += \
1913 test-bus-signature \
1918 test-bus-kernel-bloom \
1919 test-bus-kernel-benchmark \
1923 noinst_PROGRAMS += \
1926 test_bus_marshal_SOURCES = \
1927 src/libsystemd-bus/test-bus-marshal.c
1929 test_bus_marshal_LDADD = \
1930 libsystemd-shared.la \
1935 test_bus_marshal_CFLAGS = \
1940 test_bus_signature_SOURCES = \
1941 src/libsystemd-bus/test-bus-signature.c
1943 test_bus_signature_LDADD = \
1944 libsystemd-shared.la \
1947 test_bus_chat_SOURCES = \
1948 src/libsystemd-bus/test-bus-chat.c
1950 test_bus_chat_CFLAGS = \
1954 test_bus_chat_LDADD = \
1955 libsystemd-shared.la \
1957 libsystemd-id128-internal.la
1959 test_bus_server_SOURCES = \
1960 src/libsystemd-bus/test-bus-server.c
1962 test_bus_server_CFLAGS = \
1966 test_bus_server_LDADD = \
1967 libsystemd-shared.la \
1969 libsystemd-id128-internal.la
1971 test_bus_match_SOURCES = \
1972 src/libsystemd-bus/test-bus-match.c
1974 test_bus_match_CFLAGS = \
1977 test_bus_match_LDADD = \
1978 libsystemd-shared.la \
1980 libsystemd-id128-internal.la
1982 test_bus_kernel_SOURCES = \
1983 src/libsystemd-bus/test-bus-kernel.c
1985 test_bus_kernel_CFLAGS = \
1988 test_bus_kernel_LDADD = \
1989 libsystemd-shared.la \
1991 libsystemd-id128-internal.la
1993 test_bus_kernel_bloom_SOURCES = \
1994 src/libsystemd-bus/test-bus-kernel-bloom.c
1996 test_bus_kernel_bloom_CFLAGS = \
1999 test_bus_kernel_bloom_LDADD = \
2000 libsystemd-shared.la \
2002 libsystemd-id128-internal.la
2004 test_bus_kernel_benchmark_SOURCES = \
2005 src/libsystemd-bus/test-bus-kernel-benchmark.c
2007 test_bus_kernel_benchmark_CFLAGS = \
2010 test_bus_kernel_benchmark_LDADD = \
2011 libsystemd-shared.la \
2013 libsystemd-id128-internal.la
2015 test_bus_memfd_SOURCES = \
2016 src/libsystemd-bus/test-bus-memfd.c
2018 test_bus_memfd_CFLAGS = \
2021 test_bus_memfd_LDADD = \
2022 libsystemd-shared.la \
2025 test_bus_zero_copy_SOURCES = \
2026 src/libsystemd-bus/test-bus-zero-copy.c
2028 test_bus_zero_copy_CFLAGS = \
2031 test_bus_zero_copy_LDADD = \
2032 libsystemd-shared.la \
2036 src/libsystemd-bus/busctl.c
2039 libsystemd-shared.la \
2042 # ------------------------------------------------------------------------------
2052 include_HEADERS += \
2053 src/libudev/libudev.h
2055 lib_LTLIBRARIES += \
2058 libudev_la_SOURCES =\
2059 src/libudev/libudev-private.h \
2060 src/libudev/libudev.c \
2061 src/libudev/libudev-list.c \
2062 src/libudev/libudev-util.c \
2063 src/libudev/libudev-device.c \
2064 src/libudev/libudev-enumerate.c \
2065 src/libudev/libudev-monitor.c \
2066 src/libudev/libudev-queue.c \
2067 src/libudev/libudev-hwdb-def.h \
2068 src/libudev/libudev-hwdb.c
2070 libudev_la_CFLAGS = \
2074 libudev_la_LDFLAGS = \
2076 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
2077 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
2079 libudev_la_LIBADD = \
2080 libsystemd-shared.la \
2081 libsystemd-label.la \
2082 libsystemd-daemon-internal.la \
2083 libsystemd-id128-internal.la
2085 pkgconfiglib_DATA += \
2086 src/libudev/libudev.pc
2089 src/libudev/libudev.pc.in \
2090 src/libudev/libudev.sym
2093 src/libudev/libudev.pc \
2098 $(AM_V_at)$(MKDIR_P) $(dir $@)
2099 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
2102 $(AM_V_at)$(MKDIR_P) $(dir $@)
2103 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
2105 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2106 libudev-install-hook:
2107 libname=libudev.so && $(move-to-rootlibdir)
2109 libudev-uninstall-hook:
2110 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
2112 INSTALL_EXEC_HOOKS += libudev-install-hook
2113 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
2115 # ------------------------------------------------------------------------------
2116 noinst_LTLIBRARIES += \
2119 libudev_private_la_SOURCES =\
2120 $(libudev_la_SOURCES) \
2121 src/libudev/libudev-device-private.c \
2122 src/libudev/libudev-queue-private.c
2124 libudev_private_la_CFLAGS = \
2126 -fvisibility=default
2128 libudev_private_la_LIBADD = \
2129 libsystemd-shared.la
2131 # ------------------------------------------------------------------------------
2133 $(sysconfdir)/udev/rules.d \
2134 $(sysconfdir)/udev/hwdb.d
2136 dist_udevrules_DATA += \
2137 rules/99-systemd.rules \
2138 rules/42-usb-hid-pm.rules \
2139 rules/50-udev-default.rules \
2140 rules/60-keyboard.rules \
2141 rules/60-persistent-storage-tape.rules \
2142 rules/60-persistent-serial.rules \
2143 rules/60-persistent-input.rules \
2144 rules/60-persistent-alsa.rules \
2145 rules/60-persistent-storage.rules \
2146 rules/64-btrfs.rules \
2147 rules/75-net-description.rules \
2148 rules/75-tty-description.rules \
2149 rules/78-sound-card.rules \
2150 rules/80-net-name-slot.rules \
2151 rules/95-udev-late.rules
2153 dist_udevhwdb_DATA = \
2154 hwdb/20-pci-vendor-model.hwdb \
2155 hwdb/20-pci-classes.hwdb \
2156 hwdb/20-usb-vendor-model.hwdb \
2157 hwdb/20-usb-classes.hwdb \
2158 hwdb/20-bluetooth-vendor-product.hwdb \
2159 hwdb/20-acpi-vendor.hwdb \
2161 hwdb/60-keyboard.hwdb
2163 udevconfdir = $(sysconfdir)/udev
2164 dist_udevconf_DATA = \
2167 sharepkgconfigdir = $(datadir)/pkgconfig
2168 sharepkgconfig_DATA = \
2172 rules/99-systemd.rules.in \
2176 rules/99-systemd.rules \
2180 units/systemd-udevd.service.in \
2181 units/systemd-udev-trigger.service.in \
2182 units/systemd-udev-settle.service.in
2185 units/systemd-udevd.service \
2186 units/systemd-udev-trigger.service \
2187 units/systemd-udev-settle.service
2189 SOCKETS_TARGET_WANTS += \
2190 systemd-udevd-control.socket \
2191 systemd-udevd-kernel.socket
2192 SYSINIT_TARGET_WANTS += \
2193 systemd-udevd.service \
2194 systemd-udev-trigger.service
2196 rootbin_PROGRAMS += \
2199 rootlibexec_PROGRAMS += \
2202 noinst_LTLIBRARIES += \
2205 src/udev/keyboard-keys.txt: Makefile
2206 $(AM_V_at)$(MKDIR_P) $(dir $@)
2207 $(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/' > $@
2209 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt Makefile
2210 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
2212 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf Makefile
2213 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
2215 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt Makefile
2216 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
2218 libudev_core_la_SOURCES = \
2220 src/udev/udev-event.c \
2221 src/udev/udev-watch.c \
2222 src/udev/udev-node.c \
2223 src/udev/udev-rules.c \
2224 src/udev/udev-ctrl.c \
2225 src/udev/udev-builtin.c \
2226 src/udev/udev-builtin-btrfs.c \
2227 src/udev/udev-builtin-hwdb.c \
2228 src/udev/udev-builtin-input_id.c \
2229 src/udev/udev-builtin-keyboard.c \
2230 src/udev/udev-builtin-net_id.c \
2231 src/udev/udev-builtin-path_id.c \
2232 src/udev/udev-builtin-usb_id.c
2234 nodist_libudev_core_la_SOURCES = \
2235 src/udev/keyboard-keys-from-name.h \
2236 src/udev/keyboard-keys-to-name.h
2239 $(nodist_libudev_core_la_SOURCES)
2242 src/udev/keyboard-keys-from-name.gperf \
2243 src/udev/keyboard-keys.txt
2245 libudev_core_la_CFLAGS = \
2250 libudev_core_la_LIBADD = \
2251 libudev-private.la \
2252 libsystemd-label.la \
2253 libsystemd-daemon-internal.la \
2254 libsystemd-shared.la \
2258 libudev_core_la_CPPFLAGS = \
2260 -DFIRMWARE_PATH="$(FIRMWARE_PATH)"
2263 libudev_core_la_SOURCES += \
2264 src/udev/udev-builtin-firmware.c
2266 dist_udevrules_DATA += \
2267 rules/50-firmware.rules
2271 libudev_core_la_SOURCES += \
2272 src/udev/udev-builtin-kmod.c
2274 dist_udevrules_DATA += \
2275 rules/80-drivers.rules
2279 libudev_core_la_SOURCES += \
2280 src/udev/udev-builtin-blkid.c
2284 libudev_core_la_SOURCES += \
2285 src/udev/udev-builtin-uaccess.c \
2286 src/login/logind-acl.c \
2287 src/login/sd-login.c
2289 libudev_core_la_LIBADD += \
2293 systemd_udevd_SOURCES = \
2296 systemd_udevd_LDADD = \
2300 src/udev/udevadm.c \
2301 src/udev/udevadm-info.c \
2302 src/udev/udevadm-control.c \
2303 src/udev/udevadm-monitor.c \
2304 src/udev/udevadm-hwdb.c \
2305 src/udev/udevadm-settle.c \
2306 src/udev/udevadm-trigger.c \
2307 src/udev/udevadm-test.c \
2308 src/udev/udevadm-test-builtin.c
2312 libsystemd-shared.la
2314 # Update hwdb on installation. Do not bother if installing
2315 # in DESTDIR, since this is likely for packaging purposes.
2317 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
2319 INSTALL_DATA_HOOKS += \
2323 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
2325 # ------------------------------------------------------------------------------
2334 test_libudev_SOURCES = \
2335 src/test/test-libudev.c
2337 test_libudev_LDADD = \
2338 libsystemd-label.la \
2339 libsystemd-shared.la \
2342 test_udev_SOURCES = \
2343 src/test/test-udev.c
2347 libsystemd-shared.la \
2353 test_udev_LDADD += \
2360 # packed sysfs test tree
2362 $(AM_V_at)$(MKDIR_P) $(dir $@)
2363 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
2367 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
2372 test/rules-test.sh \
2373 test/rule-syntax-check.py
2375 # ------------------------------------------------------------------------------
2377 src/udev/ata_id/ata_id.c
2380 libudev-private.la \
2381 libsystemd-shared.la
2383 udevlibexec_PROGRAMS += \
2386 # ------------------------------------------------------------------------------
2387 cdrom_id_SOURCES = \
2388 src/udev/cdrom_id/cdrom_id.c
2392 libsystemd-shared.la
2394 udevlibexec_PROGRAMS += \
2397 dist_udevrules_DATA += \
2398 rules/60-cdrom_id.rules
2400 # ------------------------------------------------------------------------------
2402 src/udev/collect/collect.c
2407 udevlibexec_PROGRAMS += \
2410 # ------------------------------------------------------------------------------
2412 src/udev/scsi_id/scsi_id.c \
2413 src/udev/scsi_id/scsi_serial.c \
2414 src/udev/scsi_id/scsi.h \
2415 src/udev/scsi_id/scsi_id.h
2418 libudev-private.la \
2419 libsystemd-shared.la
2421 udevlibexec_PROGRAMS += \
2425 src/udev/scsi_id/README
2427 # ------------------------------------------------------------------------------
2429 src/udev/v4l_id/v4l_id.c
2434 udevlibexec_PROGRAMS += \
2437 dist_udevrules_DATA += \
2438 rules/60-persistent-v4l.rules
2440 # ------------------------------------------------------------------------------
2441 accelerometer_SOURCES = \
2442 src/udev/accelerometer/accelerometer.c
2444 accelerometer_LDADD = \
2446 libsystemd-shared.la
2448 udevlibexec_PROGRAMS += \
2451 dist_udevrules_DATA += \
2452 rules/61-accelerometer.rules
2454 # ------------------------------------------------------------------------------
2461 libgudev_includedir = \
2462 $(includedir)/gudev-1.0/gudev
2464 libgudev_include_HEADERS = \
2466 src/gudev/gudevenums.h \
2467 src/gudev/gudevenumtypes.h \
2468 src/gudev/gudevtypes.h \
2469 src/gudev/gudevclient.h \
2470 src/gudev/gudevdevice.h \
2471 src/gudev/gudevenumerator.h
2473 lib_LTLIBRARIES += libgudev-1.0.la
2475 pkgconfiglib_DATA += \
2476 src/gudev/gudev-1.0.pc
2479 src/gudev/gudev-1.0.pc
2481 libgudev_1_0_la_SOURCES = \
2482 src/gudev/gudevenums.h \
2483 src/gudev/gudevenumtypes.h \
2484 src/gudev/gudevenumtypes.h\
2485 src/gudev/gudevtypes.h \
2486 src/gudev/gudevclient.h \
2487 src/gudev/gudevclient.c \
2488 src/gudev/gudevdevice.h \
2489 src/gudev/gudevdevice.c \
2490 src/gudev/gudevenumerator.h \
2491 src/gudev/gudevenumerator.c \
2492 src/gudev/gudevprivate.h
2494 nodist_libgudev_1_0_la_SOURCES = \
2495 src/gudev/gudevmarshal.h \
2496 src/gudev/gudevmarshal.c \
2497 src/gudev/gudevenumtypes.h \
2498 src/gudev/gudevenumtypes.c
2501 $(nodist_libgudev_1_0_la_SOURCES)
2503 libgudev_1_0_la_CPPFLAGS = \
2505 -I$(top_builddir)/src\
2506 -I$(top_srcdir)/src\
2507 -I$(top_builddir)/src/gudev \
2508 -I$(top_srcdir)/src/gudev \
2509 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
2510 -D_GUDEV_COMPILATION \
2511 -DG_LOG_DOMAIN=\"GUdev\"
2513 libgudev_1_0_la_CFLAGS = \
2515 -fvisibility=default \
2518 libgudev_1_0_la_LIBADD = \
2522 libgudev_1_0_la_LDFLAGS = \
2524 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
2525 -export-dynamic -no-undefined \
2526 -export-symbols-regex '^g_udev_.*'
2528 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
2529 $(AM_V_at)$(MKDIR_P) $(dir $@)
2530 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
2532 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
2533 $(AM_V_at)$(MKDIR_P) $(dir $@)
2534 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
2535 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
2537 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
2538 $(AM_V_at)$(MKDIR_P) $(dir $@)
2539 $(AM_V_GEN)glib-mkenums --template $^ > $@
2541 if HAVE_INTROSPECTION
2542 -include $(INTROSPECTION_MAKEFILE)
2544 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
2546 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
2548 src_gudev_GUdev_1_0_gir_CFLAGS = \
2550 -D_GUDEV_COMPILATION \
2551 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
2552 -I$(top_srcdir)/src \
2553 -I$(top_builddir)/src \
2554 -I$(top_srcdir)/src/gdev \
2555 -I$(top_builddir)/src/gdev
2557 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
2559 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
2560 --pkg-export=gudev-1.0 \
2563 src_gudev_GUdev_1_0_gir_FILES = \
2565 src/gudev/gudevtypes.h \
2566 src/gudev/gudevenums.h \
2567 src/gudev/gudevenumtypes.h \
2568 src/gudev/gudevclient.h \
2569 src/gudev/gudevdevice.h \
2570 src/gudev/gudevenumerator.h \
2571 src/gudev/gudevclient.c \
2572 src/gudev/gudevdevice.c \
2573 src/gudev/gudevenumerator.c
2575 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
2576 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
2578 girdir = $(datadir)/gir-1.0
2580 src/gudev/GUdev-1.0.gir
2582 typelibsdir = $(libdir)/girepository-1.0
2584 src/gudev/GUdev-1.0.typelib
2586 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
2587 endif # HAVE_INTROSPECTION
2589 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2590 libgudev-install-hook:
2591 libname=libgudev-1.0.so && $(move-to-rootlibdir)
2593 libgudev-uninstall-hook:
2594 rm -f $(DESTDIR)$(rootlibdir)/libgudev-1.0.so*
2596 INSTALL_EXEC_HOOKS += libgudev-install-hook
2597 UNINSTALL_EXEC_HOOKS += libgudev-uninstall-hook
2601 src/gudev/gudev-1.0.pc.in \
2602 src/gudev/gudevmarshal.list \
2603 src/gudev/gudevenumtypes.h.template \
2604 src/gudev/gudevenumtypes.c.template \
2605 src/gudev/gjs-example.js \
2606 src/gudev/seed-example-enum.js \
2607 src/gudev/seed-example.js
2609 # ------------------------------------------------------------------------------
2610 mtd_probe_SOURCES = \
2611 src/udev/mtd_probe/mtd_probe.c \
2612 src/udev/mtd_probe/mtd_probe.h \
2613 src/udev/mtd_probe/probe_smartmedia.c
2615 mtd_probe_CPPFLAGS = \
2618 dist_udevrules_DATA += \
2619 rules/75-probe_mtd.rules
2621 udevlibexec_PROGRAMS += \
2624 # ------------------------------------------------------------------------------
2625 libsystemd_id128_la_SOURCES = \
2626 src/libsystemd-id128/sd-id128.c
2628 libsystemd_id128_la_CFLAGS = \
2632 libsystemd_id128_la_LDFLAGS = \
2634 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
2635 -Wl,--version-script=$(top_srcdir)/src/libsystemd-id128/libsystemd-id128.sym
2637 libsystemd_id128_la_LIBADD = \
2638 libsystemd-shared.la \
2639 libsystemd-label.la \
2640 libsystemd-daemon-internal.la
2642 libsystemd_id128_internal_la_SOURCES = \
2643 $(libsystemd_id128_la_SOURCES)
2645 test_id128_SOURCES = \
2646 src/test/test-id128.c
2648 test_id128_LDADD = \
2649 libsystemd-shared.la \
2650 libsystemd-id128-internal.la
2655 pkginclude_HEADERS += \
2656 src/systemd/sd-id128.h
2658 lib_LTLIBRARIES += \
2661 noinst_LTLIBRARIES += \
2662 libsystemd-id128-internal.la
2664 pkgconfiglib_DATA += \
2665 src/libsystemd-id128/libsystemd-id128.pc
2667 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2668 libsystemd-id128-install-hook:
2669 libname=libsystemd-id128.so && $(move-to-rootlibdir)
2671 libsystemd-id128-uninstall-hook:
2672 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
2674 INSTALL_EXEC_HOOKS += libsystemd-id128-install-hook
2675 UNINSTALL_EXEC_HOOKS += libsystemd-id128-uninstall-hook
2678 src/libsystemd-id128/libsystemd-id128.pc.in \
2679 src/libsystemd-id128/libsystemd-id128.sym
2681 # ------------------------------------------------------------------------------
2683 rootlibexec_PROGRAMS += \
2686 systemd_activate_SOURCES = \
2687 src/activate/activate.c
2689 systemd_activate_LDADD = \
2690 libsystemd-shared.la \
2691 libsystemd-daemon.la
2693 # ------------------------------------------------------------------------------
2694 systemd_journald_SOURCES = \
2695 src/journal/journald.c \
2696 src/journal/journald-server.h
2698 systemd_journald_LDADD = \
2699 libsystemd-journal-internal.la \
2700 libsystemd-shared.la \
2701 libsystemd-id128-internal.la
2703 systemd_cat_SOURCES = \
2706 systemd_cat_LDADD = \
2707 libsystemd-shared.la \
2708 libsystemd-journal-internal.la
2710 journalctl_SOURCES = \
2711 src/journal/journalctl.c
2713 journalctl_CFLAGS = \
2716 journalctl_LDADD = \
2717 libsystemd-shared.la \
2718 libsystemd-journal-internal.la \
2719 libsystemd-id128-internal.la \
2723 journalctl_LDADD += \
2728 journalctl_SOURCES += \
2729 src/journal/journal-qrcode.c \
2730 src/journal/journal-qrcode.h
2732 journalctl_CFLAGS += \
2735 journalctl_LDADD += \
2739 test_journal_SOURCES = \
2740 src/journal/test-journal.c
2742 test_journal_LDADD = \
2743 libsystemd-shared.la \
2744 libsystemd-journal-internal.la \
2745 libsystemd-id128-internal.la
2747 test_journal_send_SOURCES = \
2748 src/journal/test-journal-send.c
2750 test_journal_send_LDADD = \
2751 libsystemd-shared.la \
2752 libsystemd-journal-internal.la \
2753 libsystemd-id128-internal.la
2755 test_journal_syslog_SOURCES = \
2756 src/journal/test-journal-syslog.c
2758 test_journal_syslog_LDADD = \
2759 libsystemd-journal-internal.la \
2760 libsystemd-shared.la \
2761 libsystemd-id128-internal.la
2763 test_journal_match_SOURCES = \
2764 src/journal/test-journal-match.c
2766 test_journal_match_LDADD = \
2767 libsystemd-shared.la \
2768 libsystemd-journal-internal.la \
2769 libsystemd-id128-internal.la
2771 test_journal_enum_SOURCES = \
2772 src/journal/test-journal-enum.c
2774 test_journal_enum_LDADD = \
2775 libsystemd-shared.la \
2776 libsystemd-journal-internal.la \
2777 libsystemd-id128-internal.la
2779 test_journal_stream_SOURCES = \
2780 src/journal/test-journal-stream.c
2782 test_journal_stream_LDADD = \
2783 libsystemd-shared.la \
2784 libsystemd-journal-internal.la \
2785 libsystemd-id128-internal.la
2787 test_journal_verify_SOURCES = \
2788 src/journal/test-journal-verify.c
2790 test_journal_verify_LDADD = \
2791 libsystemd-shared.la \
2792 libsystemd-journal-internal.la \
2793 libsystemd-id128-internal.la
2795 test_journal_interleaving_SOURCES = \
2796 src/journal/test-journal-interleaving.c
2798 test_journal_interleaving_LDADD = \
2799 libsystemd-shared.la \
2800 libsystemd-journal-internal.la \
2801 libsystemd-id128-internal.la
2803 test_mmap_cache_SOURCES = \
2804 src/journal/test-mmap-cache.c
2806 test_mmap_cache_LDADD = \
2807 libsystemd-shared.la \
2808 libsystemd-journal-internal.la
2810 test_catalog_SOURCES = \
2811 src/journal/test-catalog.c
2813 test_catalog_LDADD = \
2814 libsystemd-shared.la \
2815 libsystemd-label.la \
2816 libsystemd-journal-internal.la \
2817 libsystemd-id128-internal.la
2819 libsystemd_journal_la_SOURCES = \
2820 src/journal/sd-journal.c \
2821 src/systemd/sd-journal.h \
2822 src/journal/journal-file.c \
2823 src/journal/journal-file.h \
2824 src/journal/journal-vacuum.c \
2825 src/journal/journal-vacuum.h \
2826 src/journal/journal-verify.c \
2827 src/journal/journal-verify.h \
2828 src/journal/lookup3.c \
2829 src/journal/lookup3.h \
2830 src/journal/journal-send.c \
2831 src/journal/journal-def.h \
2832 src/journal/compress.h \
2833 src/journal/catalog.c \
2834 src/journal/catalog.h \
2835 src/journal/mmap-cache.c \
2836 src/journal/mmap-cache.h
2838 libsystemd_journal_la_CFLAGS = \
2842 libsystemd_journal_la_LDFLAGS = \
2844 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
2845 -Wl,--version-script=$(top_srcdir)/src/journal/libsystemd-journal.sym
2847 libsystemd_journal_la_LIBADD = \
2848 libsystemd-shared.la \
2849 libsystemd-label.la \
2850 libsystemd-daemon-internal.la \
2851 libsystemd-id128-internal.la
2853 libsystemd_journal_internal_la_SOURCES = \
2854 $(libsystemd_journal_la_SOURCES) \
2855 src/journal/journald-kmsg.c \
2856 src/journal/journald-kmsg.h \
2857 src/journal/journald-syslog.c \
2858 src/journal/journald-syslog.h \
2859 src/journal/journald-stream.c \
2860 src/journal/journald-stream.h \
2861 src/journal/journald-server.c \
2862 src/journal/journald-server.h \
2863 src/journal/journald-console.c \
2864 src/journal/journald-console.h \
2865 src/journal/journald-native.c \
2866 src/journal/journald-native.h \
2867 src/journal/journald-rate-limit.c \
2868 src/journal/journald-rate-limit.h \
2869 src/journal/journal-internal.h
2871 libsystemd_journal_internal_la_CFLAGS = \
2874 libsystemd_journal_internal_la_LIBADD = \
2875 libsystemd-label.la \
2876 libsystemd-audit.la \
2877 libsystemd-daemon.la \
2879 libsystemd-shared.la \
2882 nodist_libsystemd_journal_internal_la_SOURCES = \
2883 src/journal/journald-gperf.c
2886 libsystemd_journal_internal_la_LIBADD += \
2887 libsystemd-login-internal.la
2891 libsystemd_journal_internal_la_LIBADD += \
2896 libsystemd_journal_la_SOURCES += \
2897 src/journal/compress.c
2899 libsystemd_journal_la_CFLAGS += \
2902 libsystemd_journal_la_LIBADD += \
2905 libsystemd_journal_internal_la_CFLAGS += \
2908 libsystemd_journal_internal_la_LIBADD += \
2914 libsystemd_journal_la_SOURCES += \
2915 src/journal/journal-authenticate.c \
2916 src/journal/journal-authenticate.h \
2917 src/journal/fsprg.c \
2920 libsystemd_journal_la_CFLAGS += \
2924 libsystemd_journal_la_LIBADD += \
2927 libsystemd_journal_internal_la_CFLAGS += \
2931 libsystemd_journal_internal_la_LIBADD += \
2935 # move lib from $(libdir) to $(rootlibdir) and update devel link, if
2936 # needed. Also, grant read access to new journal files to members of
2937 # "adm" and "wheel".
2938 libsystemd-journal-install-hook:
2939 libname=libsystemd-journal.so && $(move-to-rootlibdir)
2940 -$(MKDIR_P) $(DESTDIR)/var/log/journal
2941 -chown 0:0 $(DESTDIR)/var/log/journal
2942 -chmod 755 $(DESTDIR)/var/log/journal
2943 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
2944 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
2946 libsystemd-journal-uninstall-hook:
2947 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
2949 INSTALL_EXEC_HOOKS += libsystemd-journal-install-hook
2950 UNINSTALL_EXEC_HOOKS += libsystemd-journal-uninstall-hook
2952 # ------------------------------------------------------------------------------
2954 # Update catalog on installation. Do not bother if installing
2955 # in DESTDIR, since this is likely for packaging purposes.
2956 catalog-update-hook:
2957 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
2959 INSTALL_DATA_HOOKS += \
2962 catalog-remove-hook:
2963 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
2965 UNINSTALL_DATA_HOOKS += \
2974 test-journal-syslog \
2975 test-journal-match \
2976 test-journal-stream \
2977 test-journal-verify \
2978 test-journal-interleaving \
2982 pkginclude_HEADERS += \
2983 src/systemd/sd-journal.h \
2984 src/systemd/sd-messages.h
2986 lib_LTLIBRARIES += \
2987 libsystemd-journal.la
2989 noinst_LTLIBRARIES += \
2990 libsystemd-journal-internal.la
2992 rootlibexec_PROGRAMS += \
2995 rootbin_PROGRAMS += \
3001 dist_systemunit_DATA += \
3002 units/systemd-journald.socket
3004 nodist_systemunit_DATA += \
3005 units/systemd-journald.service \
3006 units/systemd-journal-flush.service
3008 dist_pkgsysconf_DATA += \
3009 src/journal/journald.conf
3011 pkgconfiglib_DATA += \
3012 src/journal/libsystemd-journal.pc
3014 dist_catalog_DATA = \
3015 catalog/systemd.catalog
3017 SOCKETS_TARGET_WANTS += \
3018 systemd-journald.socket
3019 SYSINIT_TARGET_WANTS += \
3020 systemd-journald.service \
3021 systemd-journal-flush.service
3024 src/journal/libsystemd-journal.pc.in \
3025 src/journal/libsystemd-journal.sym \
3026 units/systemd-journald.service.in \
3027 units/systemd-journal-flush.service.in \
3028 src/journal/journald-gperf.gperf
3031 src/journal/journald-gperf.c
3033 # ------------------------------------------------------------------------------
3035 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
3037 rootlibexec_PROGRAMS += \
3038 systemd-journal-gatewayd
3040 systemd_journal_gatewayd_SOURCES = \
3041 src/journal/journal-gatewayd.c \
3042 src/journal/microhttpd-util.h \
3043 src/journal/microhttpd-util.c
3045 systemd_journal_gatewayd_LDADD = \
3046 libsystemd-shared.la \
3047 libsystemd-logs.la \
3048 libsystemd-journal-internal.la \
3049 libsystemd-id128-internal.la \
3050 libsystemd-daemon.la \
3054 systemd_journal_gatewayd_CFLAGS = \
3055 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\" \
3057 $(MICROHTTPD_CFLAGS)
3059 dist_systemunit_DATA += \
3060 units/systemd-journal-gatewayd.socket
3062 nodist_systemunit_DATA += \
3063 units/systemd-journal-gatewayd.service
3065 dist_gatewayddocumentroot_DATA = \
3066 src/journal/browse.html
3071 units/systemd-journal-gatewayd.service.in
3073 # ------------------------------------------------------------------------------
3075 systemd_coredump_SOURCES = \
3076 src/journal/coredump.c
3078 systemd_coredump_LDADD = \
3079 libsystemd-journal-internal.la \
3080 libsystemd-label.la \
3081 libsystemd-shared.la
3084 systemd_coredump_LDADD += \
3085 libsystemd-login-internal.la
3088 rootlibexec_PROGRAMS += \
3091 systemd_coredumpctl_SOURCES = \
3092 src/journal/coredumpctl.c
3094 systemd_coredumpctl_LDADD = \
3095 libsystemd-shared.la \
3096 libsystemd-journal.la
3101 dist_bashcompletion_DATA += \
3102 shell-completion/bash/systemd-coredumpctl
3105 sysctl.d/50-coredump.conf
3108 sysctl.d/50-coredump.conf
3112 sysctl.d/50-coredump.conf.in
3114 # ------------------------------------------------------------------------------
3116 systemd_binfmt_SOURCES = \
3119 systemd_binfmt_LDADD = \
3120 libsystemd-shared.la
3122 rootlibexec_PROGRAMS += \
3125 dist_systemunit_DATA += \
3126 units/proc-sys-fs-binfmt_misc.automount \
3127 units/proc-sys-fs-binfmt_misc.mount
3129 nodist_systemunit_DATA += \
3130 units/systemd-binfmt.service
3133 $(prefix)/lib/binfmt.d \
3134 $(sysconfdir)/binfmt.d
3136 SYSINIT_TARGET_WANTS += \
3137 systemd-binfmt.service \
3138 proc-sys-fs-binfmt_misc.automount
3143 units/systemd-binfmt.service.in
3145 # ------------------------------------------------------------------------------
3147 systemd_vconsole_setup_SOURCES = \
3148 src/vconsole/vconsole-setup.c
3150 systemd_vconsole_setup_LDADD = \
3151 libsystemd-shared.la
3153 rootlibexec_PROGRAMS += \
3154 systemd-vconsole-setup
3156 nodist_systemunit_DATA += \
3157 units/systemd-vconsole-setup.service
3159 SYSINIT_TARGET_WANTS += \
3160 systemd-vconsole-setup.service
3164 units/systemd-vconsole-setup.service.in
3166 # ------------------------------------------------------------------------------
3168 systemd_readahead_SOURCES = \
3169 src/readahead/readahead.c \
3170 src/readahead/readahead-collect.c \
3171 src/readahead/readahead-replay.c \
3172 src/readahead/readahead-analyze.c \
3173 src/readahead/readahead-common.c \
3174 src/readahead/readahead-common.h
3176 systemd_readahead_LDADD = \
3177 libsystemd-shared.la \
3178 libsystemd-daemon.la \
3182 src/readahead/sd-readahead.c \
3183 src/systemd/sd-readahead.h
3185 rootlibexec_PROGRAMS += \
3188 dist_systemunit_DATA += \
3189 units/systemd-readahead-drop.service \
3190 units/systemd-readahead-done.timer
3192 nodist_systemunit_DATA += \
3193 units/systemd-readahead-collect.service \
3194 units/systemd-readahead-replay.service \
3195 units/systemd-readahead-done.service
3200 units/systemd-readahead-collect.service.in \
3201 units/systemd-readahead-replay.service.in \
3202 units/systemd-readahead-done.service.in
3204 # ------------------------------------------------------------------------------
3206 systemd_bootchart_SOURCES = \
3207 src/bootchart/bootchart.c \
3208 src/bootchart/bootchart.h \
3209 src/bootchart/store.c \
3210 src/bootchart/store.h \
3211 src/bootchart/svg.c \
3214 systemd_bootchart_LDADD = \
3215 libsystemd-shared.la \
3216 libsystemd-journal.la
3218 rootlibexec_PROGRAMS += \
3221 dist_pkgsysconf_DATA += \
3222 src/bootchart/bootchart.conf
3225 # ------------------------------------------------------------------------------
3226 if ENABLE_QUOTACHECK
3227 rootlibexec_PROGRAMS += \
3230 nodist_systemunit_DATA += \
3231 units/systemd-quotacheck.service
3233 systemd_quotacheck_SOURCES = \
3234 src/quotacheck/quotacheck.c
3236 systemd_quotacheck_LDADD = \
3237 libsystemd-shared.la
3241 units/systemd-quotacheck.service.in
3243 nodist_systemunit_DATA += \
3244 units/quotaon.service
3246 # ------------------------------------------------------------------------------
3247 if ENABLE_RANDOMSEED
3248 rootlibexec_PROGRAMS += \
3251 nodist_systemunit_DATA += \
3252 units/systemd-random-seed.service
3254 systemd_random_seed_SOURCES = \
3255 src/random-seed/random-seed.c
3257 systemd_random_seed_LDADD = \
3258 libsystemd-label.la \
3259 libsystemd-shared.la
3261 SYSINIT_TARGET_WANTS += \
3262 systemd-random-seed.service
3267 units/systemd-random-seed.service.in
3269 # ------------------------------------------------------------------------------
3270 if HAVE_LIBCRYPTSETUP
3271 rootlibexec_PROGRAMS += \
3274 systemgenerator_PROGRAMS += \
3275 systemd-cryptsetup-generator
3277 dist_systemunit_DATA += \
3278 units/cryptsetup.target
3280 systemd_cryptsetup_SOURCES = \
3281 src/cryptsetup/cryptsetup.c
3283 systemd_cryptsetup_CFLAGS = \
3285 $(LIBCRYPTSETUP_CFLAGS)
3287 systemd_cryptsetup_LDADD = \
3288 libsystemd-label.la \
3289 libsystemd-shared.la \
3291 $(LIBCRYPTSETUP_LIBS)
3293 systemd_cryptsetup_generator_SOURCES = \
3294 src/cryptsetup/cryptsetup-generator.c
3296 systemd_cryptsetup_generator_LDADD = \
3297 libsystemd-label.la \
3298 libsystemd-shared.la
3300 SYSINIT_TARGET_WANTS += \
3305 # ------------------------------------------------------------------------------
3307 systemd_hostnamed_SOURCES = \
3308 src/hostname/hostnamed.c
3310 systemd_hostnamed_CFLAGS = \
3314 systemd_hostnamed_LDADD = \
3315 libsystemd-label.la \
3316 libsystemd-shared.la \
3317 libsystemd-daemon.la \
3320 rootlibexec_PROGRAMS += \
3323 nodist_systemunit_DATA += \
3324 units/systemd-hostnamed.service
3326 dist_dbuspolicy_DATA += \
3327 src/hostname/org.freedesktop.hostname1.conf
3329 dist_dbussystemservice_DATA += \
3330 src/hostname/org.freedesktop.hostname1.service
3332 polkitpolicy_files += \
3333 src/hostname/org.freedesktop.hostname1.policy
3335 dbusinterface_DATA += \
3336 org.freedesktop.hostname1.xml
3338 org.freedesktop.hostname1.xml: systemd-hostnamed
3339 $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.hostname1 $< $@.tmp && \
3340 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
3341 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
3343 SYSTEM_UNIT_ALIASES += \
3344 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
3346 hostnamectl_SOURCES = \
3347 src/hostname/hostnamectl.c
3349 hostnamectl_CFLAGS = \
3353 hostnamectl_LDADD = \
3354 libsystemd-shared.la \
3355 libsystemd-dbus.la \
3356 libsystemd-id128-internal.la
3361 dist_bashcompletion_DATA += \
3362 shell-completion/bash/hostnamectl
3366 polkitpolicy_in_files += \
3367 src/hostname/org.freedesktop.hostname1.policy.in
3370 units/systemd-hostnamed.service.in
3372 # ------------------------------------------------------------------------------
3374 systemd_localed_SOURCES = \
3375 src/locale/localed.c
3377 systemd_localed_CFLAGS = \
3381 systemd_localed_LDADD = \
3382 libsystemd-label.la \
3383 libsystemd-shared.la \
3384 libsystemd-daemon.la \
3387 nodist_systemunit_DATA += \
3388 units/systemd-localed.service
3390 rootlibexec_PROGRAMS += \
3393 dist_dbuspolicy_DATA += \
3394 src/locale/org.freedesktop.locale1.conf
3396 dist_dbussystemservice_DATA += \
3397 src/locale/org.freedesktop.locale1.service
3399 polkitpolicy_files += \
3400 src/locale/org.freedesktop.locale1.policy
3402 dbusinterface_DATA += \
3403 org.freedesktop.locale1.xml
3405 org.freedesktop.locale1.xml: systemd-localed
3406 $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.locale1 $< $@.tmp && \
3407 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
3408 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
3410 SYSTEM_UNIT_ALIASES += \
3411 systemd-localed.service dbus-org.freedesktop.locale1.service
3413 dist_pkgdata_DATA += \
3414 src/locale/kbd-model-map
3416 dist_noinst_SCRIPT = \
3417 src/locale/generate-kbd-model-map
3419 update-kbd-model-map: src/locale/generate-kbd-model-map
3420 $PYTHON $< > src/locale/kbd-model-map
3422 localectl_SOURCES = \
3423 src/locale/localectl.c
3425 localectl_CFLAGS = \
3430 libsystemd-shared.la \
3431 libsystemd-dbus.la \
3432 libsystemd-id128-internal.la
3437 dist_bashcompletion_DATA += \
3438 shell-completion/bash/localectl
3442 polkitpolicy_in_files += \
3443 src/locale/org.freedesktop.locale1.policy.in
3446 units/systemd-localed.service.in
3448 # ------------------------------------------------------------------------------
3450 systemd_timedated_SOURCES = \
3451 src/timedate/timedated.c
3453 systemd_timedated_CFLAGS = \
3457 systemd_timedated_LDADD = \
3458 libsystemd-label.la \
3459 libsystemd-shared.la \
3460 libsystemd-daemon.la \
3463 rootlibexec_PROGRAMS += \
3466 dist_dbussystemservice_DATA += \
3467 src/timedate/org.freedesktop.timedate1.service
3469 dist_dbuspolicy_DATA += \
3470 src/timedate/org.freedesktop.timedate1.conf
3472 nodist_systemunit_DATA += \
3473 units/systemd-timedated.service
3475 polkitpolicy_files += \
3476 src/timedate/org.freedesktop.timedate1.policy
3478 org.freedesktop.timedate1.xml: systemd-timedated
3479 $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.timedate1 $< $@.tmp && \
3480 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
3481 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
3483 dbusinterface_DATA += \
3484 org.freedesktop.timedate1.xml
3487 $(prefix)/lib/systemd/ntp-units.d \
3488 $(sysconfdir)/systemd/ntp-units.d
3490 SYSTEM_UNIT_ALIASES += \
3491 systemd-timedated.service dbus-org.freedesktop.timedate1.service
3493 timedatectl_SOURCES = \
3494 src/timedate/timedatectl.c
3496 timedatectl_CFLAGS = \
3500 timedatectl_LDADD = \
3501 libsystemd-shared.la \
3507 dist_bashcompletion_DATA += \
3508 shell-completion/bash/timedatectl
3511 polkitpolicy_in_files += \
3512 src/timedate/org.freedesktop.timedate1.policy.in
3515 units/systemd-timedated.service.in
3517 # ------------------------------------------------------------------------------
3519 libnss_myhostname_la_SOURCES = \
3520 src/nss-myhostname/nss-myhostname.c \
3521 src/nss-myhostname/ifconf.h \
3522 src/nss-myhostname/netlink.c
3524 libnss_myhostname_la_CFLAGS = \
3527 libnss_myhostname_la_LDFLAGS = \
3535 lib_LTLIBRARIES += \
3536 libnss_myhostname.la
3539 # ------------------------------------------------------------------------------
3541 systemd_machined_SOURCES = \
3542 src/machine/machined.c \
3543 src/machine/machined.h
3545 systemd_machined_CFLAGS = \
3546 $(libsystemd_machine_core_la_CFLAGS)
3548 systemd_machined_LDADD = \
3549 libsystemd-machine-core.la \
3550 $(libsystemd_machine_core_la_LIBADD)
3552 rootlibexec_PROGRAMS += \
3555 libsystemd_machine_core_la_SOURCES = \
3556 src/machine/machined-dbus.c \
3557 src/machine/machine.c \
3558 src/machine/machine.h \
3559 src/machine/machine-dbus.c
3561 libsystemd_machine_core_la_CFLAGS = \
3565 libsystemd_machine_core_la_LIBADD = \
3566 libsystemd-label.la \
3567 libsystemd-audit.la \
3568 libsystemd-shared.la \
3569 libsystemd-daemon.la \
3570 libsystemd-dbus.la \
3571 libsystemd-id128-internal.la \
3574 noinst_LTLIBRARIES += \
3575 libsystemd-machine-core.la
3577 machinectl_SOURCES = \
3578 src/machine/machinectl.c
3580 machinectl_CFLAGS = \
3584 machinectl_LDADD = \
3585 libsystemd-shared.la \
3586 libsystemd-dbus.la \
3589 rootbin_PROGRAMS += \
3592 test_machine_tables_SOURCES = \
3593 src/machine/test-machine-tables.c
3595 test_machine_tables_CFLAGS = \
3599 test_machine_tables_LDADD = \
3600 libsystemd-machine-core.la
3605 nodist_systemunit_DATA += \
3606 units/systemd-machined.service
3608 dist_systemunit_DATA += \
3611 dist_dbussystemservice_DATA += \
3612 src/machine/org.freedesktop.machine1.service
3614 dist_dbuspolicy_DATA += \
3615 src/machine/org.freedesktop.machine1.conf
3617 SYSTEM_UNIT_ALIASES += \
3618 systemd-machined.service dbus-org.freedesktop.machine1.service
3621 units/systemd-machined.service.in
3625 # ------------------------------------------------------------------------------
3627 systemd_logind_SOURCES = \
3628 src/login/logind.c \
3631 nodist_systemd_logind_SOURCES = \
3632 src/login/logind-gperf.c
3634 systemd_logind_CFLAGS = \
3635 $(libsystemd_logind_core_la_CFLAGS)
3637 systemd_logind_LDADD = \
3638 libsystemd-logind-core.la \
3639 $(libsystemd_logind_core_la_LIBADD)
3642 systemd_logind_SOURCES += \
3643 src/login/logind-acl.c
3645 systemd_logind_LDADD += \
3649 libsystemd_logind_core_la_SOURCES = \
3650 src/login/logind-dbus.c \
3651 src/login/logind-device.c \
3652 src/login/logind-device.h \
3653 src/login/logind-button.c \
3654 src/login/logind-button.h \
3655 src/login/logind-action.c \
3656 src/login/logind-action.h \
3657 src/login/logind-seat.c \
3658 src/login/logind-seat.h \
3659 src/login/logind-session.c \
3660 src/login/logind-session.h \
3661 src/login/logind-user.c \
3662 src/login/logind-user.h \
3663 src/login/logind-inhibit.c \
3664 src/login/logind-inhibit.h \
3665 src/login/logind-session-dbus.c \
3666 src/login/logind-seat-dbus.c \
3667 src/login/logind-user-dbus.c \
3668 src/login/logind-acl.h
3670 libsystemd_logind_core_la_CFLAGS = \
3674 libsystemd_logind_core_la_LIBADD = \
3675 libsystemd-label.la \
3676 libsystemd-audit.la \
3677 libsystemd-shared.la \
3678 libsystemd-daemon.la \
3679 libsystemd-dbus.la \
3680 libsystemd-id128-internal.la \
3683 noinst_LTLIBRARIES += \
3684 libsystemd-logind-core.la
3686 systemd_user_sessions_SOURCES = \
3687 src/login/user-sessions.c
3689 systemd_user_sessions_LDADD = \
3690 libsystemd-shared.la
3692 rootlibexec_PROGRAMS += \
3694 systemd-user-sessions
3696 loginctl_SOURCES = \
3697 src/login/loginctl.c \
3698 src/login/sysfs-show.c
3705 libsystemd-shared.la \
3706 libsystemd-dbus.la \
3709 rootbin_PROGRAMS += \
3712 dist_bashcompletion_DATA += \
3713 shell-completion/bash/loginctl
3715 systemd_inhibit_SOURCES = \
3718 systemd_inhibit_CFLAGS = \
3722 systemd_inhibit_LDADD = \
3723 libsystemd-shared.la \
3726 rootbin_PROGRAMS += \
3729 test_login_SOURCES = \
3730 src/login/test-login.c
3732 test_login_LDADD = \
3733 libsystemd-login-internal.la \
3734 libsystemd-shared.la
3736 test_inhibit_SOURCES = \
3737 src/login/test-inhibit.c
3739 test_inhibit_LDADD = \
3740 libsystemd-shared.la \
3743 test_inhibit_CFLAGS = \
3747 test_login_tables_SOURCES = \
3748 src/login/test-login-tables.c
3750 test_login_tables_CFLAGS = \
3754 test_login_tables_LDADD = \
3755 libsystemd-logind-core.la
3764 libsystemd_login_la_SOURCES = \
3765 src/login/sd-login.c
3767 libsystemd_login_la_CFLAGS = \
3771 libsystemd_login_la_LDFLAGS = \
3773 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
3774 -Wl,--version-script=$(top_srcdir)/src/login/libsystemd-login.sym
3776 libsystemd_login_la_LIBADD = \
3777 libsystemd-shared.la \
3778 libsystemd-daemon-internal.la
3780 libsystemd_login_internal_la_SOURCES = \
3781 $(libsystemd_login_la_SOURCES)
3784 pam_systemd_la_SOURCES = \
3785 src/login/pam-module.c
3787 pam_systemd_la_CFLAGS = \
3793 pam_systemd_la_LDFLAGS = \
3799 -export-symbols-regex '^pam_sm_.*'
3801 pam_systemd_la_LIBADD = \
3802 libsystemd-audit.la \
3803 libsystemd-dbus.la \
3804 libsystemd-shared.la \
3805 libsystemd-daemon-internal.la \
3808 pamlib_LTLIBRARIES = \
3812 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3813 libsystemd-login-install-hook:
3814 libname=libsystemd-login.so && $(move-to-rootlibdir)
3816 libsystemd-login-uninstall-hook:
3817 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
3819 INSTALL_EXEC_HOOKS += libsystemd-login-install-hook
3820 UNINSTALL_EXEC_HOOKS += libsystemd-login-uninstall-hook
3822 nodist_systemunit_DATA += \
3823 units/systemd-logind.service \
3824 units/systemd-user-sessions.service
3826 dist_systemunit_DATA += \
3829 dist_dbussystemservice_DATA += \
3830 src/login/org.freedesktop.login1.service
3832 dist_dbuspolicy_DATA += \
3833 src/login/org.freedesktop.login1.conf
3835 dist_pkgsysconf_DATA += \
3836 src/login/logind.conf
3838 pkginclude_HEADERS += \
3839 src/systemd/sd-login.h
3841 lib_LTLIBRARIES += \
3844 noinst_LTLIBRARIES += \
3845 libsystemd-login-internal.la
3847 pkgconfiglib_DATA += \
3848 src/login/libsystemd-login.pc
3850 polkitpolicy_files += \
3851 src/login/org.freedesktop.login1.policy
3856 MULTI_USER_TARGET_WANTS += \
3857 systemd-logind.service \
3858 systemd-user-sessions.service
3860 SYSTEM_UNIT_ALIASES += \
3861 systemd-logind.service dbus-org.freedesktop.login1.service
3863 systemd_multi_seat_x_SOURCES = \
3864 src/login/multi-seat-x.c
3866 systemd_multi_seat_x_LDADD = \
3867 libsystemd-label.la \
3868 libsystemd-shared.la
3870 rootlibexec_PROGRAMS += \
3871 systemd-multi-seat-x
3873 dist_udevrules_DATA += \
3874 src/login/70-uaccess.rules \
3875 src/login/70-power-switch.rules
3877 nodist_udevrules_DATA += \
3878 src/login/71-seat.rules \
3879 src/login/73-seat-late.rules
3882 src/login/logind-gperf.c \
3883 src/login/71-seat.rules \
3884 src/login/73-seat-late.rules
3887 polkitpolicy_in_files += \
3888 src/login/org.freedesktop.login1.policy.in
3891 src/login/logind-gperf.gperf \
3892 src/login/libsystemd-login.pc.in \
3893 src/login/libsystemd-login.sym \
3894 src/login/71-seat.rules.in \
3895 src/login/73-seat-late.rules.in \
3896 units/systemd-logind.service.in \
3897 units/systemd-user-sessions.service.in
3899 # ------------------------------------------------------------------------------
3900 if HAVE_PYTHON_DEVEL
3901 pkgpyexec_LTLIBRARIES = \
3908 _journal_la_SOURCES = \
3909 src/python-systemd/_journal.c
3911 _journal_la_CFLAGS = \
3913 -fvisibility=default \
3916 _journal_la_LDFLAGS = \
3922 _journal_la_LIBADD = \
3924 libsystemd-journal.la
3926 id128_la_SOURCES = \
3927 src/python-systemd/id128.c \
3928 src/python-systemd/id128-constants.h \
3929 src/python-systemd/pyutil.c \
3930 src/python-systemd/pyutil.h
3934 -fvisibility=default \
3936 -I$(top_builddir)/src/python-systemd
3938 id128_la_LDFLAGS = \
3948 _daemon_la_SOURCES = \
3949 src/python-systemd/_daemon.c \
3950 src/python-systemd/pyutil.c \
3951 src/python-systemd/pyutil.h
3953 _daemon_la_CFLAGS = \
3955 -fvisibility=default \
3957 -I$(top_builddir)/src/python-systemd
3959 _daemon_la_LDFLAGS = \
3965 _daemon_la_LIBADD = \
3967 libsystemd-daemon.la
3969 _reader_la_SOURCES = \
3970 src/python-systemd/_reader.c \
3971 src/python-systemd/pyutil.c \
3972 src/python-systemd/pyutil.h
3974 _reader_la_CFLAGS = \
3976 -fvisibility=default \
3979 _reader_la_LDFLAGS = \
3985 _reader_la_LIBADD = \
3987 libsystemd-journal.la \
3988 libsystemd-id128.la \
3989 libsystemd-shared.la \
3990 libsystemd-daemon-internal.la
3992 login_la_SOURCES = \
3993 src/python-systemd/login.c \
3994 src/python-systemd/pyutil.c \
3995 src/python-systemd/pyutil.h
3999 -fvisibility=default \
4002 login_la_LDFLAGS = \
4010 libsystemd-journal.la \
4011 libsystemd-login.la \
4012 libsystemd-shared.la \
4013 libsystemd-daemon-internal.la
4015 dist_pkgpyexec_PYTHON = \
4016 src/python-systemd/journal.py \
4017 src/python-systemd/daemon.py \
4018 src/python-systemd/__init__.py
4020 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h Makefile
4021 $(AM_V_at)$(MKDIR_P) $(dir $@)
4022 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
4025 src/python-systemd/id128-constants.h
4027 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
4029 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
4030 $(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/
4031 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
4034 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
4035 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
4038 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
4039 $(MAKE) DESTDIR="$$dir" install && \
4040 $(MAKE) DESTDIR="$$dir" sphinx-html && \
4045 CLEAN_LOCAL_HOOKS += clean-sphinx
4048 -rm -rf docs/html/python-systemd/
4050 # ------------------------------------------------------------------------------
4052 '|rootlibexecdir=$(rootlibexecdir)|' \
4053 '|rootbindir=$(rootbindir)|' \
4054 '|bindir=$(bindir)|' \
4055 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
4056 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
4057 '|pkgsysconfdir=$(pkgsysconfdir)|' \
4058 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
4059 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
4060 '|pkgdatadir=$(pkgdatadir)|' \
4061 '|systemunitdir=$(systemunitdir)|' \
4062 '|userunitdir=$(userunitdir)|' \
4063 '|systempresetdir=$(systempresetdir)|' \
4064 '|userpresetdir=$(userpresetdir)|' \
4065 '|udevhwdbdir=$(udevhwdbdir)|' \
4066 '|udevrulesdir=$(udevrulesdir)|' \
4067 '|catalogdir=$(catalogdir)|' \
4068 '|tmpfilesdir=$(tmpfilesdir)|' \
4069 '|sysctldir=$(sysctldir)|' \
4070 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
4071 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
4072 '|PACKAGE_URL=$(PACKAGE_URL)|' \
4073 '|RANDOM_SEED=$(localstatedir)/lib/random-seed|' \
4074 '|prefix=$(prefix)|' \
4075 '|exec_prefix=$(exec_prefix)|' \
4076 '|libdir=$(libdir)|' \
4077 '|includedir=$(includedir)|' \
4078 '|VERSION=$(VERSION)|' \
4079 '|rootprefix=$(rootprefix)|' \
4080 '|udevlibexecdir=$(udevlibexecdir)|' \
4081 '|SUSHELL=$(SUSHELL)|' \
4082 '|DEBUGTTY=$(DEBUGTTY)|' \
4085 '|MKDIR_P=$(MKDIR_P)|' \
4086 '|QUOTAON=$(QUOTAON)|' \
4087 '|QUOTACHECK=$(QUOTACHECK)|' \
4088 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
4089 '|VARLOGDIR=$(varlogdir)|' \
4090 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
4091 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
4092 '|PYTHON=$(PYTHON)|' \
4093 '|PYTHON_BINARY=$(PYTHON_BINARY)|'
4096 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
4097 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
4100 units/%: units/%.in Makefile
4103 man/%: man/%.in Makefile
4106 sysctl.d/%: sysctl.d/%.in Makefile
4109 %.pc: %.pc.in Makefile
4112 src/core/macros.%: src/core/macros.%.in Makefile
4115 src/%.policy.in: src/%.policy.in.in Makefile
4118 %.rules: %.rules.in Makefile
4121 %.sh: %.sh.in Makefile
4123 $(AM_V_GEN)chmod +x $@
4125 src/%.c: src/%.gperf
4126 $(AM_V_at)$(MKDIR_P) $(dir $@)
4127 $(AM_V_GPERF)$(GPERF) < $< > $@
4130 $(AM_V_at)$(MKDIR_P) $(dir $@)
4131 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
4133 units/%: units/%.m4 Makefile
4134 $(AM_V_M4)$(MKDIR_P) $(dir $@)
4135 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
4137 units/user/%: units/%.m4 Makefile
4138 $(AM_V_M4)$(MKDIR_P) $(dir $@)
4139 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
4142 nodist_polkitpolicy_DATA = \
4143 $(polkitpolicy_files) \
4144 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
4148 $(polkitpolicy_in_files) \
4149 $(polkitpolicy_in_in_files)
4152 $(nodist_systemunit_DATA) \
4153 $(nodist_userunit_DATA) \
4154 $(pkgconfigdata_DATA) \
4155 $(pkgconfiglib_DATA) \
4156 $(nodist_polkitpolicy_DATA)
4158 # ------------------------------------------------------------------------------
4160 man/custom-entities.ent: Makefile
4161 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
4162 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
4163 echo '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">,$(substitutions))))') \
4167 man/custom-entities.ent
4171 --stringparam man.output.quietly 1 \
4172 --stringparam funcsynopsis.style ansi \
4173 --stringparam man.authors.section.enabled 0 \
4174 --stringparam man.copyright.section.enabled 0 \
4175 --stringparam systemd.version $(VERSION) \
4176 --path '$(builddir)/man:$(srcdir)/man'
4178 XSLTPROC_PROCESS_MAN = \
4179 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
4181 XSLTPROC_PROCESS_HTML = \
4182 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
4184 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
4185 $(XSLTPROC_PROCESS_MAN)
4187 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
4188 $(XSLTPROC_PROCESS_MAN)
4190 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
4191 $(XSLTPROC_PROCESS_MAN)
4193 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
4194 $(XSLTPROC_PROCESS_MAN)
4196 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
4197 $(XSLTPROC_PROCESS_MAN)
4199 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
4200 $(XSLTPROC_PROCESS_HTML)
4203 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
4209 man/custom-html.xsl \
4212 # ------------------------------------------------------------------------------
4213 DBUS_PREPROCESS = $(CPP) -P $(CFLAGS) $(DBUS_CFLAGS) -imacros dbus/dbus-protocol.h
4216 $(dbusinterface_DATA)
4220 docs/sysvinit/README
4225 docs/sysvinit/README: docs/sysvinit/README.in
4228 docs/var-log/README: docs/var-log/README.in
4232 docs/sysvinit/README \
4237 docs/sysvinit/README.in \
4238 docs/var-log/README.in
4241 shell-completion/systemd-zsh-completion.zsh
4243 SOCKETS_TARGET_WANTS += \
4244 systemd-initctl.socket \
4245 systemd-shutdownd.socket
4248 RUNLEVEL1_TARGET_WANTS += \
4249 systemd-update-utmp-runlevel.service
4250 RUNLEVEL2_TARGET_WANTS += \
4251 systemd-update-utmp-runlevel.service
4252 RUNLEVEL3_TARGET_WANTS += \
4253 systemd-update-utmp-runlevel.service
4254 RUNLEVEL4_TARGET_WANTS += \
4255 systemd-update-utmp-runlevel.service
4256 RUNLEVEL5_TARGET_WANTS += \
4257 systemd-update-utmp-runlevel.service
4259 SYSINIT_TARGET_WANTS += \
4260 systemd-update-utmp.service
4261 LOCAL_FS_TARGET_WANTS += \
4262 systemd-remount-fs.service \
4263 systemd-fsck-root.service \
4265 MULTI_USER_TARGET_WANTS += \
4267 systemd-ask-password-wall.path
4268 SYSINIT_TARGET_WANTS += \
4269 dev-hugepages.mount \
4271 sys-kernel-config.mount \
4272 sys-kernel-debug.mount \
4273 sys-fs-fuse-connections.mount \
4274 systemd-sysctl.service \
4275 systemd-ask-password-console.path
4278 SYSTEM_UNIT_ALIASES += \
4279 poweroff.target runlevel0.target \
4280 rescue.target runlevel1.target \
4281 multi-user.target runlevel2.target \
4282 multi-user.target runlevel3.target \
4283 multi-user.target runlevel4.target \
4284 graphical.target runlevel5.target \
4285 reboot.target runlevel6.target
4288 SYSTEM_UNIT_ALIASES += \
4289 graphical.target default.target \
4290 reboot.target ctrl-alt-del.target \
4291 getty@.service autovt@.service
4293 USER_UNIT_ALIASES += \
4294 $(systemunitdir)/shutdown.target shutdown.target \
4295 $(systemunitdir)/sockets.target sockets.target \
4296 $(systemunitdir)/timers.target timers.target \
4297 $(systemunitdir)/paths.target paths.target \
4298 $(systemunitdir)/bluetooth.target bluetooth.target \
4299 $(systemunitdir)/printer.target printer.target \
4300 $(systemunitdir)/sound.target sound.target \
4301 $(systemunitdir)/smartcard.target smartcard.target
4303 GENERAL_ALIASES += \
4304 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
4305 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
4306 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
4307 ../system-services/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
4311 $(systemunitdir)/runlevel1.target.wants \
4312 $(systemunitdir)/runlevel2.target.wants \
4313 $(systemunitdir)/runlevel3.target.wants \
4314 $(systemunitdir)/runlevel4.target.wants \
4315 $(systemunitdir)/runlevel5.target.wants
4319 $(prefix)/lib/modules-load.d \
4320 $(sysconfdir)/modules-load.d \
4321 $(prefix)/lib/sysctl.d \
4322 $(sysconfdir)/sysctl.d \
4323 $(prefix)/lib/kernel/install.d \
4324 $(sysconfdir)/kernel/install.d \
4325 $(systemshutdowndir) \
4327 $(systemgeneratordir) \
4328 $(usergeneratordir) \
4331 $(pkgsysconfdir)/system \
4332 $(pkgsysconfdir)/system/multi-user.target.wants \
4333 $(pkgsysconfdir)/system/getty.target.wants \
4334 $(pkgsysconfdir)/user \
4335 $(dbussessionservicedir) \
4336 $(sysconfdir)/xdg/systemd
4338 install-exec-hook: $(INSTALL_EXEC_HOOKS)
4340 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
4342 install-data-hook: $(INSTALL_DATA_HOOKS)
4344 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
4346 clean-local: $(CLEAN_LOCAL_HOOKS)
4347 rm -rf $(abs_srcdir)/install-tree
4348 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
4349 $(abs_srcdir)/hwdb/iab.txt
4351 DISTCHECK_CONFIGURE_FLAGS = \
4352 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
4353 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
4354 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
4355 --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
4356 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
4357 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
4358 --with-rootprefix=$$dc_install_base \
4362 DISTCHECK_CONFIGURE_FLAGS += \
4363 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
4364 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
4366 DISTCHECK_CONFIGURE_FLAGS += \
4367 --with-sysvinit-path= \
4368 --with-sysvrcnd-path=
4372 DISTCHECK_CONFIGURE_FLAGS += \
4377 ( cd $(top_srcdir)/hwdb && \
4378 wget -N http://www.linux-usb.org/usb.ids \
4379 http://pci-ids.ucw.cz/v2.2/pci.ids \
4380 http://standards.ieee.org/develop/regauth/oui/oui.txt \
4381 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
4385 ( cd $(top_srcdir)/src/libsystemd-bus/ && \
4386 wget -N https://d-bus.googlecode.com/git/kdbus.h )
4388 upload: all distcheck
4389 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
4390 scp systemd-$(VERSION).tar.xz fdo:/srv/www.freedesktop.org/www/software/systemd/
4391 scp man/*.html tango:public/systemd-man/
4393 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
4394 doc-sync: all destdir-sphinx
4395 gtkdoc-rebase --html-dir=docs/libudev/html --online
4396 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
4397 gtkdoc-rebase --html-dir=docs/gudev/html --online
4398 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
4399 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
4400 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
4403 git tag "v$(VERSION)" -m "systemd $(VERSION)"
4406 rm -rf $(abs_srcdir)/install-tree
4407 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
4408 tree $(abs_srcdir)/install-tree