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=1
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=24
55 LIBSYSTEMD_ID128_AGE=0
57 LIBSYSTEMD_JOURNAL_CURRENT=11
58 LIBSYSTEMD_JOURNAL_REVISION=1
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 \
322 systemgenerator_PROGRAMS = \
323 systemd-getty-generator \
324 systemd-fstab-generator \
325 systemd-system-update-generator
327 systemd_analyze_SOURCES = \
328 src/analyze/systemd-analyze.c
330 systemd_analyze_CFLAGS = \
334 systemd_analyze_LDADD = \
335 libsystemd-shared.la \
338 dist_bashcompletion_DATA = \
339 shell-completion/bash/journalctl \
340 shell-completion/bash/systemctl \
341 shell-completion/bash/systemd-analyze \
342 shell-completion/bash/udevadm
345 sysctl.d/50-default.conf
347 dist_systemunit_DATA = \
348 units/graphical.target \
349 units/multi-user.target \
350 units/emergency.service \
351 units/emergency.target \
352 units/sysinit.target \
357 units/local-fs.target \
358 units/local-fs-pre.target \
359 units/initrd.target \
360 units/initrd-fs.target \
361 units/initrd-root-fs.target \
362 units/remote-fs.target \
363 units/remote-fs-pre.target \
364 units/network.target \
365 units/network-online.target \
366 units/nss-lookup.target \
367 units/nss-user-lookup.target \
368 units/hibernate.target \
369 units/hybrid-sleep.target \
370 units/poweroff.target \
371 units/reboot.target \
372 units/rescue.target \
373 units/rpcbind.target \
374 units/time-sync.target \
375 units/shutdown.target \
377 units/umount.target \
378 units/sigpwr.target \
380 units/sockets.target \
381 units/timers.target \
383 units/suspend.target \
385 units/slices.target \
388 units/systemd-initctl.socket \
389 units/systemd-shutdownd.socket \
390 units/syslog.socket \
391 units/dev-hugepages.mount \
392 units/dev-mqueue.mount \
393 units/sys-kernel-config.mount \
394 units/sys-kernel-debug.mount \
395 units/sys-fs-fuse-connections.mount \
397 units/printer.target \
399 units/bluetooth.target \
400 units/smartcard.target \
401 units/systemd-ask-password-wall.path \
402 units/systemd-ask-password-console.path \
403 units/systemd-udevd-control.socket \
404 units/systemd-udevd-kernel.socket \
405 units/system-update.target \
406 units/initrd-switch-root.target
408 nodist_systemunit_DATA = \
409 units/getty@.service \
410 units/serial-getty@.service \
411 units/console-shell.service \
412 units/console-getty.service \
413 units/systemd-initctl.service \
414 units/systemd-shutdownd.service \
415 units/systemd-remount-fs.service \
416 units/systemd-update-utmp.service \
417 units/systemd-update-utmp-runlevel.service \
418 units/systemd-ask-password-wall.service \
419 units/systemd-ask-password-console.service \
420 units/systemd-sysctl.service \
421 units/emergency.service \
422 units/rescue.service \
423 units/user@.service \
424 units/systemd-hibernate.service \
425 units/systemd-hybrid-sleep.service \
426 units/systemd-suspend.service \
427 units/systemd-halt.service \
428 units/systemd-poweroff.service \
429 units/systemd-reboot.service \
430 units/systemd-kexec.service \
431 units/systemd-fsck@.service \
432 units/systemd-fsck-root.service \
433 units/systemd-udevd.service \
434 units/systemd-udev-trigger.service \
435 units/systemd-udev-settle.service \
436 units/debug-shell.service \
437 units/initrd-parse-etc.service \
438 units/initrd-cleanup.service \
439 units/initrd-udevadm-cleanup-db.service \
440 units/initrd-switch-root.service \
441 units/systemd-nspawn@.service
443 dist_userunit_DATA = \
444 units/user/default.target \
445 units/user/exit.target
447 nodist_userunit_DATA = \
448 units/user/systemd-exit.service
451 units/getty@.service.m4 \
452 units/serial-getty@.service.m4 \
453 units/console-shell.service.m4.in \
454 units/console-getty.service.m4.in \
455 units/rescue.service.m4.in \
456 units/systemd-initctl.service.in \
457 units/systemd-shutdownd.service.in \
458 units/systemd-remount-fs.service.in \
459 units/systemd-update-utmp.service.in \
460 units/systemd-update-utmp-runlevel.service.in \
461 units/systemd-ask-password-wall.service.in \
462 units/systemd-ask-password-console.service.in \
463 units/systemd-sysctl.service.in \
464 units/emergency.service.in \
465 units/systemd-halt.service.in \
466 units/systemd-poweroff.service.in \
467 units/systemd-reboot.service.in \
468 units/systemd-kexec.service.in \
469 units/user/systemd-exit.service.in \
470 units/systemd-fsck@.service.in \
471 units/systemd-fsck-root.service.in \
472 units/user@.service.in \
473 units/systemd-udevd.service \
474 units/systemd-udev-trigger.service \
475 units/systemd-udev-settle.service \
476 units/debug-shell.service.in \
477 units/systemd-hibernate.service.in \
478 units/systemd-hybrid-sleep.service.in \
479 units/systemd-suspend.service.in \
480 units/quotaon.service.in \
481 units/initrd-parse-etc.service.in \
482 units/initrd-cleanup.service.in \
483 units/initrd-udevadm-cleanup-db.service.in \
484 units/initrd-switch-root.service.in \
485 units/systemd-nspawn@.service.in \
489 units/console-shell.service.m4 \
490 units/console-getty.service.m4 \
491 units/rescue.service.m4
494 nodist_systemunit_DATA += \
495 units/rc-local.service \
496 units/halt-local.service
498 systemgenerator_PROGRAMS += \
499 systemd-rc-local-generator
503 units/rc-local.service.in \
504 units/halt-local.service.in
506 # automake is broken and can't handle files with a dash in front
507 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
509 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
511 units-uninstall-hook:
512 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
514 INSTALL_DATA_HOOKS += units-install-hook
515 UNINSTALL_DATA_HOOKS += units-uninstall-hook
525 @INTLTOOL_POLICY_RULE@
527 # ------------------------------------------------------------------------------
532 include Makefile-man.am
535 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
538 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
540 ${XML_FILES:.xml=.html}
542 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
559 $(AM_V_at)$(MKDIR_P) $(dir $@)
560 $(AM_V_LN)$(LN_S) -f ../../man $@
569 man/index.html: man/systemd.index.html
570 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
578 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
579 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
580 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
582 update-man-list: make-man-rules.py $(XML_GLOB)
583 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
584 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
585 @echo "Makefile-man.am has been regenerated"
587 man/systemd.index.xml: make-man-index.py $(NON_INDEX_XML_FILES)
588 $(AM_V_at)$(MKDIR_P) $(dir $@)
589 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
591 man/systemd.directives.xml: make-directive-index.py $(SOURCE_XML_FILES)
592 $(AM_V_at)$(MKDIR_P) $(dir $@)
593 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
596 man/systemd.index.xml \
598 man/systemd.directives.xml
601 man/systemd.index.xml \
602 man/systemd.directives.xml
614 make-directive-index.py \
617 # ------------------------------------------------------------------------------
618 noinst_LTLIBRARIES += \
621 libsystemd_shared_la_SOURCES = \
622 src/shared/linux/auto_dev-ioctl.h \
623 src/shared/linux/fanotify.h \
624 src/shared/linux/seccomp.h \
625 src/shared/linux/seccomp-bpf.h \
626 src/shared/missing.h \
630 src/shared/sparse-endian.h \
635 src/shared/efivars.c \
636 src/shared/efivars.h \
637 src/shared/path-util.c \
638 src/shared/path-util.h \
639 src/shared/time-util.c \
640 src/shared/time-util.h \
641 src/shared/hashmap.c \
642 src/shared/hashmap.h \
649 src/shared/sleep-config.c \
650 src/shared/sleep-config.h \
653 src/shared/env-util.c \
654 src/shared/env-util.h \
655 src/shared/strbuf.c \
656 src/shared/strbuf.h \
657 src/shared/strxcpyx.c \
658 src/shared/strxcpyx.h \
659 src/shared/conf-parser.c \
660 src/shared/conf-parser.h \
663 src/shared/ratelimit.h \
664 src/shared/ratelimit.c \
665 src/shared/exit-status.c \
666 src/shared/exit-status.h \
671 src/shared/ioprio.h \
672 src/shared/socket-util.c \
673 src/shared/socket-util.h \
674 src/shared/conf-files.c \
675 src/shared/conf-files.h \
676 src/shared/cgroup-util.c \
677 src/shared/cgroup-util.h \
678 src/shared/cgroup-show.c \
679 src/shared/cgroup-show.h \
680 src/shared/unit-name.c \
681 src/shared/unit-name.h \
682 src/shared/utmp-wtmp.c \
683 src/shared/utmp-wtmp.h \
684 src/shared/watchdog.c \
685 src/shared/watchdog.h \
686 src/shared/spawn-ask-password-agent.c \
687 src/shared/spawn-ask-password-agent.h \
688 src/shared/replace-var.c \
689 src/shared/replace-var.h \
690 src/shared/spawn-polkit-agent.c \
691 src/shared/spawn-polkit-agent.h \
692 src/shared/hwclock.c \
693 src/shared/hwclock.h \
694 src/shared/time-dst.c \
695 src/shared/time-dst.h \
696 src/shared/calendarspec.c \
697 src/shared/calendarspec.h \
698 src/shared/fileio.c \
699 src/shared/fileio.h \
700 src/shared/output-mode.h \
701 src/shared/MurmurHash3.c \
702 src/shared/MurmurHash3.h \
705 #-------------------------------------------------------------------------------
706 noinst_LTLIBRARIES += \
709 libsystemd_dbus_la_SOURCES = \
710 src/shared/dbus-common.c \
711 src/shared/dbus-common.h \
712 src/shared/dbus-loop.c \
713 src/shared/dbus-loop.h \
714 src/shared/polkit.c \
717 libsystemd_dbus_la_CFLAGS = \
721 libsystemd_dbus_la_LIBADD = \
724 # ------------------------------------------------------------------------------
725 noinst_LTLIBRARIES += \
728 libsystemd_units_la_SOURCES = \
729 src/shared/install.c \
730 src/shared/install.h \
731 src/shared/install-printf.c \
732 src/shared/install-printf.h \
733 src/shared/path-lookup.c \
734 src/shared/path-lookup.h \
735 src/shared/specifier.c \
736 src/shared/specifier.h
738 libsystemd_units_la_CFLAGS = \
742 # ------------------------------------------------------------------------------
743 noinst_LTLIBRARIES += \
746 libsystemd_label_la_SOURCES = \
747 src/shared/cgroup-label.c \
748 src/shared/socket-label.c \
751 src/shared/selinux-util.c \
752 src/shared/selinux-util.h \
755 src/shared/ask-password-api.c \
756 src/shared/ask-password-api.h \
757 src/shared/fileio-label.c \
758 src/shared/fileio-label.h \
759 src/shared/dev-setup.c \
760 src/shared/dev-setup.h
762 libsystemd_label_la_CFLAGS = \
766 libsystemd_label_la_LIBADD = \
769 # ------------------------------------------------------------------------------
770 noinst_LTLIBRARIES += \
773 libsystemd_logs_la_SOURCES = \
774 src/shared/logs-show.c \
775 src/shared/logs-show.h
777 libsystemd_logs_la_CFLAGS = \
780 libsystemd_logs_la_LIBADD = \
781 libsystemd-journal-internal.la \
782 libsystemd-id128-internal.la \
785 # ------------------------------------------------------------------------------
786 noinst_LTLIBRARIES += \
787 libsystemd-capability.la
789 libsystemd_capability_la_SOURCES = \
790 src/shared/capability.c \
791 src/shared/capability.h
793 libsystemd_capability_la_CFLAGS = \
797 libsystemd_capability_la_LIBADD = \
800 # ------------------------------------------------------------------------------
801 noinst_LTLIBRARIES += \
804 libsystemd_audit_la_SOURCES = \
808 libsystemd_audit_la_LIBADD = \
809 libsystemd-capability.la
811 # ------------------------------------------------------------------------------
813 noinst_LTLIBRARIES += \
816 libsystemd_acl_la_SOURCES = \
817 src/shared/acl-util.c \
818 src/shared/acl-util.h
820 libsystemd_acl_la_CFLAGS = \
824 libsystemd_acl_la_LIBADD = \
829 # ------------------------------------------------------------------------------
830 noinst_LTLIBRARIES += \
833 libsystemd_core_la_SOURCES = \
836 src/core/unit-printf.c \
837 src/core/unit-printf.h \
842 src/core/transaction.c \
843 src/core/transaction.h \
844 src/core/load-fragment.c \
845 src/core/load-fragment.h \
848 src/core/automount.c \
849 src/core/automount.h \
858 src/core/snapshot.c \
859 src/core/snapshot.h \
870 src/core/load-dropin.c \
871 src/core/load-dropin.h \
878 src/core/dbus-manager.c \
879 src/core/dbus-manager.h \
880 src/core/dbus-unit.c \
881 src/core/dbus-unit.h \
882 src/core/dbus-job.c \
883 src/core/dbus-job.h \
884 src/core/dbus-service.c \
885 src/core/dbus-service.h \
886 src/core/dbus-socket.c \
887 src/core/dbus-socket.h \
888 src/core/dbus-timer.c \
889 src/core/dbus-timer.h \
890 src/core/dbus-target.c \
891 src/core/dbus-target.h \
892 src/core/dbus-mount.c \
893 src/core/dbus-mount.h \
894 src/core/dbus-automount.c \
895 src/core/dbus-automount.h \
896 src/core/dbus-swap.c \
897 src/core/dbus-swap.h \
898 src/core/dbus-snapshot.c \
899 src/core/dbus-snapshot.h \
900 src/core/dbus-device.c \
901 src/core/dbus-device.h \
902 src/core/dbus-path.c \
903 src/core/dbus-path.h \
904 src/core/dbus-slice.c \
905 src/core/dbus-slice.h \
906 src/core/dbus-scope.c \
907 src/core/dbus-scope.h \
908 src/core/dbus-execute.c \
909 src/core/dbus-execute.h \
910 src/core/dbus-kill.c \
911 src/core/dbus-kill.h \
912 src/core/dbus-cgroup.c \
913 src/core/dbus-cgroup.h \
916 src/core/selinux-access.c \
917 src/core/selinux-access.h \
918 src/core/selinux-setup.c \
919 src/core/selinux-setup.h \
920 src/core/smack-setup.c \
921 src/core/smack-setup.h \
922 src/core/ima-setup.c \
923 src/core/ima-setup.h \
924 src/core/locale-setup.h \
925 src/core/locale-setup.c \
926 src/core/hostname-setup.c \
927 src/core/hostname-setup.h \
928 src/core/machine-id-setup.c \
929 src/core/machine-id-setup.h \
930 src/core/mount-setup.c \
931 src/core/mount-setup.h \
932 src/core/loopback-setup.h \
933 src/core/loopback-setup.c \
934 src/core/condition.c \
935 src/core/condition.h \
936 src/core/namespace.c \
937 src/core/namespace.h \
940 src/core/securebits.h \
943 src/core/bus-errors.h \
945 src/core/sysfs-show.h \
946 src/core/switch-root.h \
947 src/core/switch-root.c \
950 src/core/syscall-list.c \
951 src/core/syscall-list.h \
952 src/core/audit-fd.c \
953 src/core/audit-fd.h \
958 libsystemd_core_la_SOURCES += \
959 src/core/kmod-setup.c \
960 src/core/kmod-setup.h
963 nodist_libsystemd_core_la_SOURCES = \
964 src/core/load-fragment-gperf.c \
965 src/core/load-fragment-gperf-nulstr.c \
966 src/core/syscall-from-name.h \
967 src/core/syscall-to-name.h
969 libsystemd_core_la_CFLAGS = \
978 libsystemd_core_la_LIBADD = \
979 libsystemd-capability.la \
980 libsystemd-units.la \
981 libsystemd-label.la \
982 libsystemd-shared.la \
984 libsystemd-audit.la \
985 libsystemd-id128-internal.la \
986 libsystemd-daemon.la \
994 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
995 $(AM_V_at)$(MKDIR_P) $(dir $@)
996 $(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 ";" }' < $< > $@
999 src/core/load-fragment-gperf.gperf.m4
1002 src/core/load-fragment-gperf.gperf \
1003 src/core/load-fragment-gperf.c \
1004 src/core/load-fragment-gperf-nulstr.c \
1005 src/core/syscall-list.txt \
1006 src/core/syscall-from-name.gperf
1009 src/core/syscall-from-name.h \
1010 src/core/syscall-to-name.h
1012 src/core/syscall-list.txt: Makefile
1013 $(AM_V_at)$(MKDIR_P) $(dir $@)
1014 $(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; }' > $@
1016 src/core/syscall-from-name.gperf: src/core/syscall-list.txt Makefile
1017 $(AM_V_at)$(MKDIR_P) $(dir $@)
1018 $(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 }' < $< > $@
1020 src/core/syscall-from-name.h: src/core/syscall-from-name.gperf Makefile
1021 $(AM_V_at)$(MKDIR_P) $(dir $@)
1022 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_syscall -H hash_syscall_name -p -C < $< > $@
1024 src/core/syscall-to-name.h: src/core/syscall-list.txt Makefile
1025 $(AM_V_at)$(MKDIR_P) $(dir $@)
1026 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const syscall_names[] = { "} { printf "[SYSCALL_TO_INDEX(__NR_%s)] = \"%s\",\n", $$1, $$1 } END{print "};"}' < $< > $@
1028 # ------------------------------------------------------------------------------
1037 libsystemd-core.la \
1038 libsystemd-daemon.la \
1039 libsystemd-id128-internal.la \
1042 dist_pkgsysconf_DATA += \
1043 src/core/system.conf \
1046 dist_dbuspolicy_DATA += \
1047 src/core/org.freedesktop.systemd1.conf
1049 dist_dbussystemservice_DATA += \
1050 src/core/org.freedesktop.systemd1.service
1052 dbusinterface_DATA += \
1053 org.freedesktop.systemd1.Manager.xml \
1054 org.freedesktop.systemd1.Job.xml \
1055 org.freedesktop.systemd1.Unit.xml \
1056 org.freedesktop.systemd1.Service.xml \
1057 org.freedesktop.systemd1.Socket.xml \
1058 org.freedesktop.systemd1.Timer.xml \
1059 org.freedesktop.systemd1.Target.xml \
1060 org.freedesktop.systemd1.Device.xml \
1061 org.freedesktop.systemd1.Mount.xml \
1062 org.freedesktop.systemd1.Automount.xml \
1063 org.freedesktop.systemd1.Snapshot.xml \
1064 org.freedesktop.systemd1.Swap.xml \
1065 org.freedesktop.systemd1.Path.xml
1067 polkitpolicy_in_in_files += \
1068 src/core/org.freedesktop.systemd1.policy.in.in
1070 org.freedesktop.systemd1.%.xml: systemd
1071 $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.$* $< $@.tmp && \
1072 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1073 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1075 pkgconfigdata_DATA = \
1078 nodist_rpmmacros_DATA = \
1079 src/core/macros.systemd
1082 src/core/systemd.pc.in \
1083 src/core/macros.systemd.in
1086 src/core/macros.systemd \
1087 src/core/org.freedesktop.systemd1.policy.in
1089 # ------------------------------------------------------------------------------
1116 test-strip-tab-ansi \
1126 test/sched_idle_bad.service \
1127 test/sched_idle_ok.service \
1128 test/sched_rr_bad.service \
1129 test/sched_rr_ok.service \
1130 test/sched_rr_change.service
1132 test_engine_SOURCES = \
1133 src/test/test-engine.c
1135 test_engine_CFLAGS = \
1139 test_engine_LDADD = \
1140 libsystemd-core.la \
1141 libsystemd-daemon.la \
1144 test_job_type_SOURCES = \
1145 src/test/test-job-type.c
1147 test_job_type_CFLAGS = \
1151 test_job_type_LDADD = \
1152 libsystemd-core.la \
1153 libsystemd-daemon.la
1165 test_loopback_SOURCES = \
1166 src/test/test-loopback.c
1168 test_loopback_LDADD = \
1169 libsystemd-shared.la \
1172 test_hostname_SOURCES = \
1173 src/test/test-hostname.c
1175 test_hostname_LDADD = \
1182 test_efivars_SOURCES = \
1183 src/test/test-efivars.c
1185 test_efivars_LDADD = \
1186 libsystemd-shared.la
1189 test_unit_name_SOURCES = \
1190 src/test/test-unit-name.c
1192 test_unit_name_CFLAGS = \
1196 test_unit_name_LDADD = \
1199 test_unit_file_SOURCES = \
1200 src/test/test-unit-file.c
1202 test_unit_file_CFLAGS = \
1206 test_unit_file_LDADD = \
1209 test_util_SOURCES = \
1210 src/test/test-util.c
1212 test_util_CFLAGS = \
1218 test_hashmap_SOURCES = \
1219 src/test/test-hashmap.c
1221 test_hashmap_CFLAGS = \
1224 test_hashmap_LDADD = \
1227 test_list_SOURCES = \
1228 src/test/test-list.c
1230 test_list_CFLAGS = \
1236 test_tables_SOURCES = \
1237 src/test/test-tables.c \
1238 src/shared/test-tables.h
1240 test_tables_CFLAGS = \
1244 test_tables_LDADD = \
1245 libsystemd-core.la \
1248 test_prioq_SOURCES = \
1249 src/test/test-prioq.c
1251 test_prioq_CFLAGS = \
1254 test_prioq_LDADD = \
1257 test_fileio_SOURCES = \
1258 src/test/test-fileio.c
1260 test_fileio_CFLAGS = \
1263 test_fileio_LDADD = \
1266 test_time_SOURCES = \
1267 src/test/test-time.c
1269 test_time_CFLAGS = \
1275 test_log_SOURCES = \
1281 test_date_SOURCES = \
1282 src/test/test-date.c
1287 test_sleep_SOURCES = \
1288 src/test/test-sleep.c
1290 test_sleep_LDADD = \
1293 test_replace_var_SOURCES = \
1294 src/test/test-replace-var.c
1296 test_replace_var_LDADD = \
1297 libsystemd-shared.la
1299 test_calendarspec_SOURCES = \
1300 src/test/test-calendarspec.c
1302 test_calendarspec_LDADD = \
1303 libsystemd-shared.la
1305 test_strip_tab_ansi_SOURCES = \
1306 src/test/test-strip-tab-ansi.c
1308 test_strip_tab_ansi_LDADD = \
1309 libsystemd-shared.la
1311 test_daemon_SOURCES = \
1312 src/test/test-daemon.c
1314 test_daemon_LDADD = \
1315 libsystemd-shared.la \
1316 libsystemd-daemon.la
1318 test_cgroup_SOURCES = \
1319 src/test/test-cgroup.c
1321 test_cgroup_LDADD = \
1322 libsystemd-label.la \
1323 libsystemd-shared.la
1325 test_cgroup_util_SOURCES = \
1326 src/test/test-cgroup-util.c
1328 test_cgroup_util_LDADD = \
1329 libsystemd-label.la \
1330 libsystemd-shared.la
1332 test_env_replace_SOURCES = \
1333 src/test/test-env-replace.c
1335 test_env_replace_LDADD = \
1336 libsystemd-shared.la
1338 test_strbuf_SOURCES = \
1339 src/test/test-strbuf.c
1341 test_strbuf_LDADD = \
1342 libsystemd-shared.la
1344 test_strv_SOURCES = \
1345 src/test/test-strv.c
1348 libsystemd-shared.la \
1349 libsystemd-units.la \
1350 libsystemd-id128-internal.la
1352 test_path_util_SOURCES = \
1353 src/test/test-path-util.c
1355 test_path_util_LDADD = \
1356 libsystemd-shared.la
1358 test_strxcpyx_SOURCES = \
1359 src/test/test-strxcpyx.c
1361 test_strxcpyx_LDADD = \
1362 libsystemd-shared.la
1364 test_install_SOURCES = \
1365 src/test/test-install.c
1367 test_install_CFLAGS = \
1371 test_install_LDADD = \
1372 libsystemd-units.la \
1373 libsystemd-label.la \
1374 libsystemd-shared.la \
1375 libsystemd-id128-internal.la
1377 test_watchdog_SOURCES = \
1378 src/test/test-watchdog.c
1380 test_watchdog_LDADD = \
1381 libsystemd-shared.la
1383 test_sched_prio_SOURCES = \
1384 src/test/test-sched-prio.c
1386 test_sched_prio_CFLAGS = \
1389 -D"STR(s)=\#s" -D"TEST_DIR=STR($(abs_top_srcdir)/test/)"
1391 test_sched_prio_LDADD = \
1392 libsystemd-core.la \
1393 libsystemd-daemon.la
1395 # ------------------------------------------------------------------------------
1396 ## .PHONY so it always rebuilds it
1397 .PHONY: coverage lcov-run lcov-report
1399 # run lcov from scratch, always
1404 coverage_dir = coverage
1405 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1408 # reset run coverage tests
1410 @rm -rf $(coverage_dir)
1411 lcov $(coverage_opts) --zerocounters
1414 # generate report based on current coverage data
1416 $(MKDIR_P) $(coverage_dir)
1417 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1418 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1419 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1420 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1422 # lcov doesn't work properly with vpath builds, make sure that bad
1423 # output is not uploaded by mistake.
1424 coverage-sync: coverage
1425 test "$(builddir)" = "$(srcdir)"
1426 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1429 lcov-run lcov-report:
1430 echo "Need to reconfigure with --enable-coverage"
1433 # ------------------------------------------------------------------------------
1434 systemd_initctl_SOURCES = \
1435 src/initctl/initctl.c
1437 systemd_initctl_CFLAGS = \
1441 systemd_initctl_LDADD = \
1442 libsystemd-shared.la \
1443 libsystemd-daemon.la \
1446 # ------------------------------------------------------------------------------
1447 systemd_update_utmp_SOURCES = \
1448 src/update-utmp/update-utmp.c
1450 systemd_update_utmp_CFLAGS = \
1455 systemd_update_utmp_LDADD = \
1456 libsystemd-shared.la \
1457 libsystemd-dbus.la \
1460 # ------------------------------------------------------------------------------
1461 systemd_shutdownd_SOURCES = \
1462 src/shutdownd/shutdownd.c
1464 systemd_shutdownd_LDADD = \
1465 libsystemd-label.la \
1466 libsystemd-shared.la \
1467 libsystemd-daemon.la
1469 pkginclude_HEADERS += \
1470 src/systemd/sd-shutdown.h
1472 # ------------------------------------------------------------------------------
1473 systemd_shutdown_SOURCES = \
1476 src/core/shutdown.c \
1477 src/core/mount-setup.c \
1478 src/core/mount-setup.h \
1479 src/core/killall.h \
1482 systemd_shutdown_LDADD = \
1483 libsystemd-label.la \
1484 libsystemd-shared.la \
1487 # ------------------------------------------------------------------------------
1489 systemd_modules_load_SOURCES = \
1490 src/modules-load/modules-load.c
1492 systemd_modules_load_CFLAGS = \
1496 systemd_modules_load_LDADD = \
1497 libsystemd-shared.la \
1500 rootlibexec_PROGRAMS += \
1501 systemd-modules-load
1503 nodist_systemunit_DATA += \
1504 units/systemd-modules-load.service
1506 SYSINIT_TARGET_WANTS += \
1507 systemd-modules-load.service
1510 nodist_systemunit_DATA += \
1511 units/kmod-static-nodes.service
1513 SYSINIT_TARGET_WANTS += \
1514 kmod-static-nodes.service
1519 units/systemd-modules-load.service.in \
1520 units/kmod-static-nodes.service.in
1522 # ------------------------------------------------------------------------------
1524 systemd_tmpfiles_SOURCES = \
1525 src/tmpfiles/tmpfiles.c
1527 systemd_tmpfiles_LDADD = \
1528 libsystemd-label.la \
1529 libsystemd-shared.la \
1530 libsystemd-capability.la
1532 rootbin_PROGRAMS += \
1535 dist_systemunit_DATA += \
1536 units/systemd-tmpfiles-clean.timer
1538 nodist_systemunit_DATA += \
1539 units/systemd-tmpfiles-setup-dev.service \
1540 units/systemd-tmpfiles-setup.service \
1541 units/systemd-tmpfiles-clean.service
1543 dist_tmpfiles_DATA = \
1544 tmpfiles.d/systemd.conf \
1545 tmpfiles.d/tmp.conf \
1549 dist_tmpfiles_DATA += \
1550 tmpfiles.d/legacy.conf
1553 SYSINIT_TARGET_WANTS += \
1554 systemd-tmpfiles-setup-dev.service \
1555 systemd-tmpfiles-setup.service
1557 TIMERS_TARGET_WANTS += \
1558 systemd-tmpfiles-clean.timer
1562 $(sysconfdir)/tmpfiles.d
1566 units/systemd-tmpfiles-setup-dev.service.in \
1567 units/systemd-tmpfiles-setup.service.in \
1568 units/systemd-tmpfiles-clean.service.in
1570 # ------------------------------------------------------------------------------
1571 systemd_machine_id_setup_SOURCES = \
1572 src/machine-id-setup/machine-id-setup-main.c \
1573 src/core/machine-id-setup.c \
1574 src/core/machine-id-setup.h
1576 systemd_machine_id_setup_LDADD = \
1577 libsystemd-label.la \
1578 libsystemd-shared.la \
1579 libsystemd-id128-internal.la
1581 # ------------------------------------------------------------------------------
1582 systemd_sysctl_SOURCES = \
1585 systemd_sysctl_LDADD = \
1586 libsystemd-shared.la
1588 # ------------------------------------------------------------------------------
1589 systemd_sleep_SOURCES = \
1592 systemd_sleep_LDADD = \
1593 libsystemd-shared.la
1595 # ------------------------------------------------------------------------------
1596 systemd_fsck_SOURCES = \
1599 systemd_fsck_CFLAGS = \
1603 systemd_fsck_LDADD = \
1604 libsystemd-shared.la \
1605 libsystemd-dbus.la \
1608 # ------------------------------------------------------------------------------
1609 systemd_ac_power_SOURCES = \
1610 src/ac-power/ac-power.c
1612 systemd_ac_power_LDADD = \
1613 libsystemd-shared.la \
1616 # ------------------------------------------------------------------------------
1617 systemd_detect_virt_SOURCES = \
1618 src/detect-virt/detect-virt.c
1620 systemd_detect_virt_LDADD = \
1621 libsystemd-shared.la
1623 systemd-detect-virt-install-hook:
1624 -$(SETCAP) cap_dac_override,cap_sys_ptrace=ep $(DESTDIR)$(bindir)/systemd-detect-virt
1626 INSTALL_EXEC_HOOKS += \
1627 systemd-detect-virt-install-hook
1629 # ------------------------------------------------------------------------------
1630 systemd_delta_SOURCES = \
1633 systemd_delta_LDADD = \
1634 libsystemd-shared.la
1636 # ------------------------------------------------------------------------------
1637 systemd_getty_generator_SOURCES = \
1638 src/getty-generator/getty-generator.c
1640 systemd_getty_generator_LDADD = \
1641 libsystemd-label.la \
1642 libsystemd-shared.la
1644 # ------------------------------------------------------------------------------
1645 systemd_fstab_generator_SOURCES = \
1646 src/fstab-generator/fstab-generator.c \
1647 src/core/mount-setup.c
1649 systemd_fstab_generator_LDADD = \
1650 libsystemd-label.la \
1651 libsystemd-shared.la
1653 # ------------------------------------------------------------------------------
1654 systemd_system_update_generator_SOURCES = \
1655 src/system-update-generator/system-update-generator.c
1657 systemd_system_update_generator_LDADD = \
1658 libsystemd-label.la \
1659 libsystemd-shared.la
1662 # ------------------------------------------------------------------------------
1663 systemgenerator_PROGRAMS += \
1664 systemd-efi-boot-generator
1666 systemd_efi_boot_generator_SOURCES = \
1667 src/efi-boot-generator/efi-boot-generator.c
1669 systemd_efi_boot_generator_LDADD = \
1670 libsystemd-label.la \
1671 libsystemd-shared.la
1673 # ------------------------------------------------------------------------------
1676 src/boot/boot-loader.h \
1677 src/boot/bootctl.c \
1678 src/boot/boot-loader.c \
1682 libsystemd-shared.la \
1683 libsystemd-id128.la \
1684 libsystemd-daemon.la
1690 # ------------------------------------------------------------------------------
1691 systemd_rc_local_generator_SOURCES = \
1692 src/rc-local-generator/rc-local-generator.c
1694 systemd_rc_local_generator_LDADD = \
1695 libsystemd-label.la \
1696 libsystemd-shared.la
1698 # ------------------------------------------------------------------------------
1699 systemd_remount_fs_SOURCES = \
1700 src/remount-fs/remount-fs.c \
1701 src/core/mount-setup.c \
1702 src/core/mount-setup.h
1704 systemd_remount_fs_LDADD = \
1705 libsystemd-label.la \
1706 libsystemd-shared.la
1708 # ------------------------------------------------------------------------------
1709 systemd_cgroups_agent_SOURCES = \
1710 src/cgroups-agent/cgroups-agent.c
1712 systemd_cgroups_agent_CFLAGS = \
1716 systemd_cgroups_agent_LDADD = \
1717 libsystemd-shared.la \
1720 # ------------------------------------------------------------------------------
1721 systemctl_SOURCES = \
1722 src/systemctl/systemctl.c
1724 systemctl_CFLAGS = \
1729 libsystemd-units.la \
1730 libsystemd-label.la \
1731 libsystemd-shared.la \
1732 libsystemd-daemon.la \
1733 libsystemd-dbus.la \
1736 # ------------------------------------------------------------------------------
1737 systemd_notify_SOURCES = \
1738 src/notify/notify.c \
1739 src/readahead/sd-readahead.c
1741 systemd_notify_LDADD = \
1742 libsystemd-shared.la \
1743 libsystemd-daemon.la
1745 # ------------------------------------------------------------------------------
1746 systemd_ask_password_SOURCES = \
1747 src/ask-password/ask-password.c
1749 systemd_ask_password_LDADD = \
1750 libsystemd-label.la \
1751 libsystemd-shared.la
1753 # ------------------------------------------------------------------------------
1754 systemd_reply_password_SOURCES = \
1755 src/reply-password/reply-password.c
1757 systemd_reply_password_LDADD = \
1758 libsystemd-shared.la
1760 # ------------------------------------------------------------------------------
1761 systemd_cgls_SOURCES = \
1764 systemd_cgls_LDADD = \
1765 libsystemd-shared.la
1767 # ------------------------------------------------------------------------------
1768 systemd_cgtop_SOURCES = \
1771 systemd_cgtop_LDADD = \
1772 libsystemd-shared.la
1774 # ------------------------------------------------------------------------------
1775 systemd_nspawn_SOURCES = \
1776 src/nspawn/nspawn.c \
1777 src/core/mount-setup.c \
1778 src/core/mount-setup.h \
1779 src/core/loopback-setup.c \
1780 src/core/loopback-setup.h
1782 systemd_nspawn_LDADD = \
1783 libsystemd-label.la \
1784 libsystemd-capability.la \
1785 libsystemd-shared.la \
1786 libsystemd-daemon.la \
1787 libsystemd-id128-internal.la \
1790 # ------------------------------------------------------------------------------
1791 systemd_run_SOURCES = \
1794 systemd_run_LDADD = \
1795 libsystemd-label.la \
1796 libsystemd-capability.la \
1797 libsystemd-shared.la \
1798 libsystemd-daemon.la \
1799 libsystemd-id128-internal.la \
1802 # ------------------------------------------------------------------------------
1803 systemd_stdio_bridge_SOURCES = \
1804 src/stdio-bridge/stdio-bridge.c
1806 systemd_stdio_bridge_LDADD = \
1807 libsystemd-shared.la \
1809 libsystemd-daemon.la
1811 # ------------------------------------------------------------------------------
1812 systemd_tty_ask_password_agent_SOURCES = \
1813 src/tty-ask-password-agent/tty-ask-password-agent.c
1815 systemd_tty_ask_password_agent_LDADD = \
1816 libsystemd-label.la \
1817 libsystemd-shared.la
1819 # ------------------------------------------------------------------------------
1820 libsystemd_daemon_la_SOURCES = \
1821 src/libsystemd-daemon/sd-daemon.c
1823 libsystemd_daemon_internal_la_SOURCES = \
1824 $(libsystemd_daemon_la_SOURCES)
1826 libsystemd_daemon_la_CFLAGS = \
1828 -fvisibility=hidden \
1831 libsystemd_daemon_la_LDFLAGS = \
1833 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
1834 -Wl,--version-script=$(top_srcdir)/src/libsystemd-daemon/libsystemd-daemon.sym
1836 pkginclude_HEADERS += \
1837 src/systemd/sd-daemon.h
1839 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1840 libsystemd-daemon-install-hook:
1841 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
1843 libsystemd-daemon-uninstall-hook:
1844 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
1846 INSTALL_EXEC_HOOKS += libsystemd-daemon-install-hook
1847 UNINSTALL_EXEC_HOOKS += libsystemd-daemon-uninstall-hook
1849 lib_LTLIBRARIES += \
1850 libsystemd-daemon.la
1852 noinst_LTLIBRARIES += \
1853 libsystemd-daemon-internal.la
1855 pkgconfiglib_DATA += \
1856 src/libsystemd-daemon/libsystemd-daemon.pc
1859 src/libsystemd-daemon/libsystemd-daemon.pc.in \
1860 src/libsystemd-daemon/libsystemd-daemon.sym
1862 # ------------------------------------------------------------------------------
1863 libsystemd_bus_la_SOURCES = \
1864 src/systemd/sd-bus.h \
1865 src/systemd/sd-bus-protocol.h \
1866 src/systemd/sd-memfd.h \
1867 src/libsystemd-bus/sd-bus.c \
1868 src/libsystemd-bus/bus-control.c \
1869 src/libsystemd-bus/bus-control.h \
1870 src/libsystemd-bus/bus-error.c \
1871 src/libsystemd-bus/bus-error.h \
1872 src/libsystemd-bus/bus-internal.c \
1873 src/libsystemd-bus/bus-internal.h \
1874 src/libsystemd-bus/bus-socket.c \
1875 src/libsystemd-bus/bus-socket.h \
1876 src/libsystemd-bus/bus-kernel.c \
1877 src/libsystemd-bus/bus-kernel.h \
1878 src/libsystemd-bus/bus-message.c \
1879 src/libsystemd-bus/bus-message.h \
1880 src/libsystemd-bus/bus-signature.c \
1881 src/libsystemd-bus/bus-signature.h \
1882 src/libsystemd-bus/bus-type.c \
1883 src/libsystemd-bus/bus-type.h \
1884 src/libsystemd-bus/bus-match.c \
1885 src/libsystemd-bus/bus-match.h \
1886 src/libsystemd-bus/bus-bloom.c \
1887 src/libsystemd-bus/bus-bloom.h \
1888 src/libsystemd-bus/kdbus.h \
1889 src/libsystemd-bus/sd-memfd.c
1891 libsystemd_bus_la_LIBADD = \
1892 libsystemd-id128-internal.la \
1893 libsystemd-shared.la \
1894 libsystemd-daemon.la
1896 libsystemd_bus_la_CFLAGS = \
1900 noinst_LTLIBRARIES += \
1905 test-bus-signature \
1910 test-bus-kernel-bloom \
1911 test-bus-kernel-benchmark \
1915 noinst_PROGRAMS += \
1918 test_bus_marshal_SOURCES = \
1919 src/libsystemd-bus/test-bus-marshal.c
1921 test_bus_marshal_LDADD = \
1922 libsystemd-shared.la \
1927 test_bus_marshal_CFLAGS = \
1932 test_bus_signature_SOURCES = \
1933 src/libsystemd-bus/test-bus-signature.c
1935 test_bus_signature_LDADD = \
1936 libsystemd-shared.la \
1939 test_bus_chat_SOURCES = \
1940 src/libsystemd-bus/test-bus-chat.c
1942 test_bus_chat_CFLAGS = \
1946 test_bus_chat_LDADD = \
1947 libsystemd-shared.la \
1949 libsystemd-id128-internal.la
1951 test_bus_server_SOURCES = \
1952 src/libsystemd-bus/test-bus-server.c
1954 test_bus_server_CFLAGS = \
1958 test_bus_server_LDADD = \
1959 libsystemd-shared.la \
1961 libsystemd-id128-internal.la
1963 test_bus_match_SOURCES = \
1964 src/libsystemd-bus/test-bus-match.c
1966 test_bus_match_CFLAGS = \
1969 test_bus_match_LDADD = \
1970 libsystemd-shared.la \
1972 libsystemd-id128-internal.la
1974 test_bus_kernel_SOURCES = \
1975 src/libsystemd-bus/test-bus-kernel.c
1977 test_bus_kernel_CFLAGS = \
1980 test_bus_kernel_LDADD = \
1981 libsystemd-shared.la \
1983 libsystemd-id128-internal.la
1985 test_bus_kernel_bloom_SOURCES = \
1986 src/libsystemd-bus/test-bus-kernel-bloom.c
1988 test_bus_kernel_bloom_CFLAGS = \
1991 test_bus_kernel_bloom_LDADD = \
1992 libsystemd-shared.la \
1994 libsystemd-id128-internal.la
1996 test_bus_kernel_benchmark_SOURCES = \
1997 src/libsystemd-bus/test-bus-kernel-benchmark.c
1999 test_bus_kernel_benchmark_CFLAGS = \
2002 test_bus_kernel_benchmark_LDADD = \
2003 libsystemd-shared.la \
2005 libsystemd-id128-internal.la
2007 test_bus_memfd_SOURCES = \
2008 src/libsystemd-bus/test-bus-memfd.c
2010 test_bus_memfd_CFLAGS = \
2013 test_bus_memfd_LDADD = \
2014 libsystemd-shared.la \
2017 test_bus_zero_copy_SOURCES = \
2018 src/libsystemd-bus/test-bus-zero-copy.c
2020 test_bus_zero_copy_CFLAGS = \
2023 test_bus_zero_copy_LDADD = \
2024 libsystemd-shared.la \
2028 src/libsystemd-bus/busctl.c
2031 libsystemd-shared.la \
2034 # ------------------------------------------------------------------------------
2044 include_HEADERS += \
2045 src/libudev/libudev.h
2047 lib_LTLIBRARIES += \
2050 libudev_la_SOURCES =\
2051 src/libudev/libudev-private.h \
2052 src/libudev/libudev.c \
2053 src/libudev/libudev-list.c \
2054 src/libudev/libudev-util.c \
2055 src/libudev/libudev-device.c \
2056 src/libudev/libudev-enumerate.c \
2057 src/libudev/libudev-monitor.c \
2058 src/libudev/libudev-queue.c \
2059 src/libudev/libudev-hwdb-def.h \
2060 src/libudev/libudev-hwdb.c
2062 libudev_la_CFLAGS = \
2066 libudev_la_LDFLAGS = \
2068 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
2069 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
2071 libudev_la_LIBADD = \
2072 libsystemd-shared.la \
2073 libsystemd-label.la \
2074 libsystemd-daemon-internal.la \
2075 libsystemd-id128-internal.la
2077 pkgconfiglib_DATA += \
2078 src/libudev/libudev.pc
2081 src/libudev/libudev.pc.in \
2082 src/libudev/libudev.sym
2085 src/libudev/libudev.pc \
2090 $(AM_V_at)$(MKDIR_P) $(dir $@)
2091 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
2094 $(AM_V_at)$(MKDIR_P) $(dir $@)
2095 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
2097 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2098 libudev-install-hook:
2099 libname=libudev.so && $(move-to-rootlibdir)
2101 libudev-uninstall-hook:
2102 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
2104 INSTALL_EXEC_HOOKS += libudev-install-hook
2105 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
2107 # ------------------------------------------------------------------------------
2108 noinst_LTLIBRARIES += \
2111 libudev_private_la_SOURCES =\
2112 $(libudev_la_SOURCES) \
2113 src/libudev/libudev-device-private.c \
2114 src/libudev/libudev-queue-private.c
2116 libudev_private_la_CFLAGS = \
2118 -fvisibility=default
2120 libudev_private_la_LIBADD = \
2121 libsystemd-shared.la
2123 # ------------------------------------------------------------------------------
2125 $(sysconfdir)/udev/rules.d \
2126 $(sysconfdir)/udev/hwdb.d
2128 dist_udevrules_DATA += \
2129 rules/99-systemd.rules \
2130 rules/42-usb-hid-pm.rules \
2131 rules/50-udev-default.rules \
2132 rules/60-keyboard.rules \
2133 rules/60-persistent-storage-tape.rules \
2134 rules/60-persistent-serial.rules \
2135 rules/60-persistent-input.rules \
2136 rules/60-persistent-alsa.rules \
2137 rules/60-persistent-storage.rules \
2138 rules/64-btrfs.rules \
2139 rules/75-net-description.rules \
2140 rules/75-tty-description.rules \
2141 rules/78-sound-card.rules \
2142 rules/80-net-name-slot.rules \
2143 rules/95-udev-late.rules
2145 dist_udevhwdb_DATA = \
2146 hwdb/20-pci-vendor-model.hwdb \
2147 hwdb/20-pci-classes.hwdb \
2148 hwdb/20-usb-vendor-model.hwdb \
2149 hwdb/20-usb-classes.hwdb \
2150 hwdb/20-bluetooth-vendor-product.hwdb \
2151 hwdb/20-acpi-vendor.hwdb \
2153 hwdb/60-keyboard.hwdb
2155 udevconfdir = $(sysconfdir)/udev
2156 dist_udevconf_DATA = \
2159 sharepkgconfigdir = $(datadir)/pkgconfig
2160 sharepkgconfig_DATA = \
2164 rules/99-systemd.rules.in \
2168 rules/99-systemd.rules \
2172 units/systemd-udevd.service.in \
2173 units/systemd-udev-trigger.service.in \
2174 units/systemd-udev-settle.service.in
2177 units/systemd-udevd.service \
2178 units/systemd-udev-trigger.service \
2179 units/systemd-udev-settle.service
2181 SOCKETS_TARGET_WANTS += \
2182 systemd-udevd-control.socket \
2183 systemd-udevd-kernel.socket
2184 SYSINIT_TARGET_WANTS += \
2185 systemd-udevd.service \
2186 systemd-udev-trigger.service
2188 rootbin_PROGRAMS += \
2191 rootlibexec_PROGRAMS += \
2194 noinst_LTLIBRARIES += \
2197 src/udev/keyboard-keys.txt: Makefile
2198 $(AM_V_at)$(MKDIR_P) $(dir $@)
2199 $(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/' > $@
2201 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt Makefile
2202 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
2204 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf Makefile
2205 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
2207 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt Makefile
2208 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
2210 libudev_core_la_SOURCES = \
2212 src/udev/udev-event.c \
2213 src/udev/udev-watch.c \
2214 src/udev/udev-node.c \
2215 src/udev/udev-rules.c \
2216 src/udev/udev-ctrl.c \
2217 src/udev/udev-builtin.c \
2218 src/udev/udev-builtin-btrfs.c \
2219 src/udev/udev-builtin-hwdb.c \
2220 src/udev/udev-builtin-input_id.c \
2221 src/udev/udev-builtin-keyboard.c \
2222 src/udev/udev-builtin-net_id.c \
2223 src/udev/udev-builtin-path_id.c \
2224 src/udev/udev-builtin-usb_id.c
2226 nodist_libudev_core_la_SOURCES = \
2227 src/udev/keyboard-keys-from-name.h \
2228 src/udev/keyboard-keys-to-name.h
2231 $(nodist_libudev_core_la_SOURCES)
2234 src/udev/keyboard-keys-from-name.gperf \
2235 src/udev/keyboard-keys.txt
2237 libudev_core_la_CFLAGS = \
2242 libudev_core_la_LIBADD = \
2243 libudev-private.la \
2244 libsystemd-label.la \
2245 libsystemd-daemon-internal.la \
2246 libsystemd-shared.la \
2250 libudev_core_la_CPPFLAGS = \
2252 -DFIRMWARE_PATH="$(FIRMWARE_PATH)"
2255 libudev_core_la_SOURCES += \
2256 src/udev/udev-builtin-firmware.c
2258 dist_udevrules_DATA += \
2259 rules/50-firmware.rules
2263 libudev_core_la_SOURCES += \
2264 src/udev/udev-builtin-kmod.c
2266 dist_udevrules_DATA += \
2267 rules/80-drivers.rules
2271 libudev_core_la_SOURCES += \
2272 src/udev/udev-builtin-blkid.c
2276 libudev_core_la_SOURCES += \
2277 src/udev/udev-builtin-uaccess.c \
2278 src/login/logind-acl.c \
2279 src/login/sd-login.c
2281 libudev_core_la_LIBADD += \
2285 systemd_udevd_SOURCES = \
2288 systemd_udevd_LDADD = \
2292 src/udev/udevadm.c \
2293 src/udev/udevadm-info.c \
2294 src/udev/udevadm-control.c \
2295 src/udev/udevadm-monitor.c \
2296 src/udev/udevadm-hwdb.c \
2297 src/udev/udevadm-settle.c \
2298 src/udev/udevadm-trigger.c \
2299 src/udev/udevadm-test.c \
2300 src/udev/udevadm-test-builtin.c
2304 libsystemd-shared.la
2306 # Update hwdb on installation. Do not bother if installing
2307 # in DESTDIR, since this is likely for packaging purposes.
2309 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
2311 INSTALL_DATA_HOOKS += \
2315 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
2317 # ------------------------------------------------------------------------------
2326 test_libudev_SOURCES = \
2327 src/test/test-libudev.c
2329 test_libudev_LDADD = \
2330 libsystemd-label.la \
2331 libsystemd-shared.la \
2334 test_udev_SOURCES = \
2335 src/test/test-udev.c
2339 libsystemd-shared.la \
2345 test_udev_LDADD += \
2352 # packed sysfs test tree
2354 $(AM_V_at)$(MKDIR_P) $(dir $@)
2355 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
2359 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
2364 test/rules-test.sh \
2365 test/rule-syntax-check.py
2367 # ------------------------------------------------------------------------------
2369 src/udev/ata_id/ata_id.c
2372 libudev-private.la \
2373 libsystemd-shared.la
2375 udevlibexec_PROGRAMS += \
2378 # ------------------------------------------------------------------------------
2379 cdrom_id_SOURCES = \
2380 src/udev/cdrom_id/cdrom_id.c
2384 libsystemd-shared.la
2386 udevlibexec_PROGRAMS += \
2389 dist_udevrules_DATA += \
2390 rules/60-cdrom_id.rules
2392 # ------------------------------------------------------------------------------
2394 src/udev/collect/collect.c
2399 udevlibexec_PROGRAMS += \
2402 # ------------------------------------------------------------------------------
2404 src/udev/scsi_id/scsi_id.c \
2405 src/udev/scsi_id/scsi_serial.c \
2406 src/udev/scsi_id/scsi.h \
2407 src/udev/scsi_id/scsi_id.h
2410 libudev-private.la \
2411 libsystemd-shared.la
2413 udevlibexec_PROGRAMS += \
2417 src/udev/scsi_id/README
2419 # ------------------------------------------------------------------------------
2421 src/udev/v4l_id/v4l_id.c
2426 udevlibexec_PROGRAMS += \
2429 dist_udevrules_DATA += \
2430 rules/60-persistent-v4l.rules
2432 # ------------------------------------------------------------------------------
2433 accelerometer_SOURCES = \
2434 src/udev/accelerometer/accelerometer.c
2436 accelerometer_LDADD = \
2438 libsystemd-shared.la
2440 udevlibexec_PROGRAMS += \
2443 dist_udevrules_DATA += \
2444 rules/61-accelerometer.rules
2446 # ------------------------------------------------------------------------------
2453 libgudev_includedir = \
2454 $(includedir)/gudev-1.0/gudev
2456 libgudev_include_HEADERS = \
2458 src/gudev/gudevenums.h \
2459 src/gudev/gudevenumtypes.h \
2460 src/gudev/gudevtypes.h \
2461 src/gudev/gudevclient.h \
2462 src/gudev/gudevdevice.h \
2463 src/gudev/gudevenumerator.h
2465 lib_LTLIBRARIES += libgudev-1.0.la
2467 pkgconfiglib_DATA += \
2468 src/gudev/gudev-1.0.pc
2471 src/gudev/gudev-1.0.pc
2473 libgudev_1_0_la_SOURCES = \
2474 src/gudev/gudevenums.h \
2475 src/gudev/gudevenumtypes.h \
2476 src/gudev/gudevenumtypes.h\
2477 src/gudev/gudevtypes.h \
2478 src/gudev/gudevclient.h \
2479 src/gudev/gudevclient.c \
2480 src/gudev/gudevdevice.h \
2481 src/gudev/gudevdevice.c \
2482 src/gudev/gudevenumerator.h \
2483 src/gudev/gudevenumerator.c \
2484 src/gudev/gudevprivate.h
2486 nodist_libgudev_1_0_la_SOURCES = \
2487 src/gudev/gudevmarshal.h \
2488 src/gudev/gudevmarshal.c \
2489 src/gudev/gudevenumtypes.h \
2490 src/gudev/gudevenumtypes.c
2493 $(nodist_libgudev_1_0_la_SOURCES)
2495 libgudev_1_0_la_CPPFLAGS = \
2497 -I$(top_builddir)/src\
2498 -I$(top_srcdir)/src\
2499 -I$(top_builddir)/src/gudev \
2500 -I$(top_srcdir)/src/gudev \
2501 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
2502 -D_GUDEV_COMPILATION \
2503 -DG_LOG_DOMAIN=\"GUdev\"
2505 libgudev_1_0_la_CFLAGS = \
2507 -fvisibility=default \
2510 libgudev_1_0_la_LIBADD = \
2514 libgudev_1_0_la_LDFLAGS = \
2516 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
2517 -export-dynamic -no-undefined \
2518 -export-symbols-regex '^g_udev_.*'
2520 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
2521 $(AM_V_at)$(MKDIR_P) $(dir $@)
2522 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
2524 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
2525 $(AM_V_at)$(MKDIR_P) $(dir $@)
2526 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
2527 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
2529 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
2530 $(AM_V_at)$(MKDIR_P) $(dir $@)
2531 $(AM_V_GEN)glib-mkenums --template $^ > $@
2533 if HAVE_INTROSPECTION
2534 -include $(INTROSPECTION_MAKEFILE)
2536 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
2538 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
2540 src_gudev_GUdev_1_0_gir_CFLAGS = \
2542 -D_GUDEV_COMPILATION \
2543 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
2544 -I$(top_srcdir)/src \
2545 -I$(top_builddir)/src \
2546 -I$(top_srcdir)/src/gdev \
2547 -I$(top_builddir)/src/gdev
2549 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
2551 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
2552 --pkg-export=gudev-1.0 \
2555 src_gudev_GUdev_1_0_gir_FILES = \
2557 src/gudev/gudevtypes.h \
2558 src/gudev/gudevenums.h \
2559 src/gudev/gudevenumtypes.h \
2560 src/gudev/gudevclient.h \
2561 src/gudev/gudevdevice.h \
2562 src/gudev/gudevenumerator.h \
2563 src/gudev/gudevclient.c \
2564 src/gudev/gudevdevice.c \
2565 src/gudev/gudevenumerator.c
2567 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
2568 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
2570 girdir = $(datadir)/gir-1.0
2572 src/gudev/GUdev-1.0.gir
2574 typelibsdir = $(libdir)/girepository-1.0
2576 src/gudev/GUdev-1.0.typelib
2578 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
2579 endif # HAVE_INTROSPECTION
2581 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2582 libgudev-install-hook:
2583 libname=libgudev-1.0.so && $(move-to-rootlibdir)
2585 libgudev-uninstall-hook:
2586 rm -f $(DESTDIR)$(rootlibdir)/libgudev-1.0.so*
2588 INSTALL_EXEC_HOOKS += libgudev-install-hook
2589 UNINSTALL_EXEC_HOOKS += libgudev-uninstall-hook
2593 src/gudev/gudev-1.0.pc.in \
2594 src/gudev/gudevmarshal.list \
2595 src/gudev/gudevenumtypes.h.template \
2596 src/gudev/gudevenumtypes.c.template \
2597 src/gudev/gjs-example.js \
2598 src/gudev/seed-example-enum.js \
2599 src/gudev/seed-example.js
2601 # ------------------------------------------------------------------------------
2602 mtd_probe_SOURCES = \
2603 src/udev/mtd_probe/mtd_probe.c \
2604 src/udev/mtd_probe/mtd_probe.h \
2605 src/udev/mtd_probe/probe_smartmedia.c
2607 mtd_probe_CPPFLAGS = \
2610 dist_udevrules_DATA += \
2611 rules/75-probe_mtd.rules
2613 udevlibexec_PROGRAMS += \
2616 # ------------------------------------------------------------------------------
2617 libsystemd_id128_la_SOURCES = \
2618 src/libsystemd-id128/sd-id128.c
2620 libsystemd_id128_la_CFLAGS = \
2624 libsystemd_id128_la_LDFLAGS = \
2626 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
2627 -Wl,--version-script=$(top_srcdir)/src/libsystemd-id128/libsystemd-id128.sym
2629 libsystemd_id128_la_LIBADD = \
2630 libsystemd-shared.la \
2631 libsystemd-label.la \
2632 libsystemd-daemon-internal.la
2634 libsystemd_id128_internal_la_SOURCES = \
2635 $(libsystemd_id128_la_SOURCES)
2637 test_id128_SOURCES = \
2638 src/test/test-id128.c
2640 test_id128_LDADD = \
2641 libsystemd-shared.la \
2642 libsystemd-id128-internal.la
2647 pkginclude_HEADERS += \
2648 src/systemd/sd-id128.h
2650 lib_LTLIBRARIES += \
2653 noinst_LTLIBRARIES += \
2654 libsystemd-id128-internal.la
2656 pkgconfiglib_DATA += \
2657 src/libsystemd-id128/libsystemd-id128.pc
2659 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2660 libsystemd-id128-install-hook:
2661 libname=libsystemd-id128.so && $(move-to-rootlibdir)
2663 libsystemd-id128-uninstall-hook:
2664 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
2666 INSTALL_EXEC_HOOKS += libsystemd-id128-install-hook
2667 UNINSTALL_EXEC_HOOKS += libsystemd-id128-uninstall-hook
2670 src/libsystemd-id128/libsystemd-id128.pc.in \
2671 src/libsystemd-id128/libsystemd-id128.sym
2673 # ------------------------------------------------------------------------------
2675 rootlibexec_PROGRAMS += \
2678 systemd_activate_SOURCES = \
2679 src/activate/activate.c
2681 systemd_activate_LDADD = \
2682 libsystemd-shared.la \
2683 libsystemd-daemon.la
2685 # ------------------------------------------------------------------------------
2686 systemd_journald_SOURCES = \
2687 src/journal/journald.c \
2688 src/journal/journald-server.h
2690 systemd_journald_LDADD = \
2691 libsystemd-journal-internal.la \
2692 libsystemd-shared.la \
2693 libsystemd-id128-internal.la
2695 systemd_cat_SOURCES = \
2698 systemd_cat_LDADD = \
2699 libsystemd-shared.la \
2700 libsystemd-journal-internal.la
2702 journalctl_SOURCES = \
2703 src/journal/journalctl.c
2705 journalctl_CFLAGS = \
2708 journalctl_LDADD = \
2709 libsystemd-shared.la \
2710 libsystemd-journal-internal.la \
2711 libsystemd-id128-internal.la \
2715 journalctl_LDADD += \
2720 journalctl_SOURCES += \
2721 src/journal/journal-qrcode.c \
2722 src/journal/journal-qrcode.h
2724 journalctl_CFLAGS += \
2727 journalctl_LDADD += \
2731 test_journal_SOURCES = \
2732 src/journal/test-journal.c
2734 test_journal_LDADD = \
2735 libsystemd-shared.la \
2736 libsystemd-journal-internal.la \
2737 libsystemd-id128-internal.la
2739 test_journal_send_SOURCES = \
2740 src/journal/test-journal-send.c
2742 test_journal_send_LDADD = \
2743 libsystemd-shared.la \
2744 libsystemd-journal-internal.la \
2745 libsystemd-id128-internal.la
2747 test_journal_syslog_SOURCES = \
2748 src/journal/test-journal-syslog.c
2750 test_journal_syslog_LDADD = \
2751 libsystemd-journal-internal.la \
2752 libsystemd-shared.la \
2753 libsystemd-id128-internal.la
2755 test_journal_match_SOURCES = \
2756 src/journal/test-journal-match.c
2758 test_journal_match_LDADD = \
2759 libsystemd-shared.la \
2760 libsystemd-journal-internal.la \
2761 libsystemd-id128-internal.la
2763 test_journal_enum_SOURCES = \
2764 src/journal/test-journal-enum.c
2766 test_journal_enum_LDADD = \
2767 libsystemd-shared.la \
2768 libsystemd-journal-internal.la \
2769 libsystemd-id128-internal.la
2771 test_journal_stream_SOURCES = \
2772 src/journal/test-journal-stream.c
2774 test_journal_stream_LDADD = \
2775 libsystemd-shared.la \
2776 libsystemd-journal-internal.la \
2777 libsystemd-id128-internal.la
2779 test_journal_verify_SOURCES = \
2780 src/journal/test-journal-verify.c
2782 test_journal_verify_LDADD = \
2783 libsystemd-shared.la \
2784 libsystemd-journal-internal.la \
2785 libsystemd-id128-internal.la
2787 test_journal_interleaving_SOURCES = \
2788 src/journal/test-journal-interleaving.c
2790 test_journal_interleaving_LDADD = \
2791 libsystemd-shared.la \
2792 libsystemd-journal-internal.la \
2793 libsystemd-id128-internal.la
2795 test_mmap_cache_SOURCES = \
2796 src/journal/test-mmap-cache.c
2798 test_mmap_cache_LDADD = \
2799 libsystemd-shared.la \
2800 libsystemd-journal-internal.la
2802 test_catalog_SOURCES = \
2803 src/journal/test-catalog.c
2805 test_catalog_LDADD = \
2806 libsystemd-shared.la \
2807 libsystemd-label.la \
2808 libsystemd-journal-internal.la \
2809 libsystemd-id128-internal.la
2811 libsystemd_journal_la_SOURCES = \
2812 src/journal/sd-journal.c \
2813 src/systemd/sd-journal.h \
2814 src/journal/journal-file.c \
2815 src/journal/journal-file.h \
2816 src/journal/journal-vacuum.c \
2817 src/journal/journal-vacuum.h \
2818 src/journal/journal-verify.c \
2819 src/journal/journal-verify.h \
2820 src/journal/lookup3.c \
2821 src/journal/lookup3.h \
2822 src/journal/journal-send.c \
2823 src/journal/journal-def.h \
2824 src/journal/compress.h \
2825 src/journal/catalog.c \
2826 src/journal/catalog.h \
2827 src/journal/mmap-cache.c \
2828 src/journal/mmap-cache.h
2830 libsystemd_journal_la_CFLAGS = \
2834 libsystemd_journal_la_LDFLAGS = \
2836 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
2837 -Wl,--version-script=$(top_srcdir)/src/journal/libsystemd-journal.sym
2839 libsystemd_journal_la_LIBADD = \
2840 libsystemd-shared.la \
2841 libsystemd-label.la \
2842 libsystemd-daemon-internal.la \
2843 libsystemd-id128-internal.la
2845 libsystemd_journal_internal_la_SOURCES = \
2846 $(libsystemd_journal_la_SOURCES) \
2847 src/journal/journald-kmsg.c \
2848 src/journal/journald-kmsg.h \
2849 src/journal/journald-syslog.c \
2850 src/journal/journald-syslog.h \
2851 src/journal/journald-stream.c \
2852 src/journal/journald-stream.h \
2853 src/journal/journald-server.c \
2854 src/journal/journald-server.h \
2855 src/journal/journald-console.c \
2856 src/journal/journald-console.h \
2857 src/journal/journald-native.c \
2858 src/journal/journald-native.h \
2859 src/journal/journald-rate-limit.c \
2860 src/journal/journald-rate-limit.h \
2861 src/journal/journal-internal.h
2863 libsystemd_journal_internal_la_CFLAGS = \
2866 libsystemd_journal_internal_la_LIBADD = \
2867 libsystemd-label.la \
2868 libsystemd-audit.la \
2869 libsystemd-daemon.la \
2871 libsystemd-shared.la \
2874 nodist_libsystemd_journal_internal_la_SOURCES = \
2875 src/journal/journald-gperf.c
2878 libsystemd_journal_internal_la_LIBADD += \
2879 libsystemd-login-internal.la
2883 libsystemd_journal_internal_la_LIBADD += \
2888 libsystemd_journal_la_SOURCES += \
2889 src/journal/compress.c
2891 libsystemd_journal_la_CFLAGS += \
2894 libsystemd_journal_la_LIBADD += \
2897 libsystemd_journal_internal_la_CFLAGS += \
2900 libsystemd_journal_internal_la_LIBADD += \
2906 libsystemd_journal_la_SOURCES += \
2907 src/journal/journal-authenticate.c \
2908 src/journal/journal-authenticate.h \
2909 src/journal/fsprg.c \
2912 libsystemd_journal_la_CFLAGS += \
2916 libsystemd_journal_la_LIBADD += \
2919 libsystemd_journal_internal_la_CFLAGS += \
2923 libsystemd_journal_internal_la_LIBADD += \
2927 # move lib from $(libdir) to $(rootlibdir) and update devel link, if
2928 # needed. Also, grant read access to new journal files to members of
2929 # "adm" and "wheel".
2930 libsystemd-journal-install-hook:
2931 libname=libsystemd-journal.so && $(move-to-rootlibdir)
2932 -$(MKDIR_P) $(DESTDIR)/var/log/journal
2933 -chown 0:0 $(DESTDIR)/var/log/journal
2934 -chmod 755 $(DESTDIR)/var/log/journal
2935 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
2936 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
2938 libsystemd-journal-uninstall-hook:
2939 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
2941 INSTALL_EXEC_HOOKS += libsystemd-journal-install-hook
2942 UNINSTALL_EXEC_HOOKS += libsystemd-journal-uninstall-hook
2944 # ------------------------------------------------------------------------------
2946 # Update catalog on installation. Do not bother if installing
2947 # in DESTDIR, since this is likely for packaging purposes.
2948 catalog-update-hook:
2949 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
2951 INSTALL_DATA_HOOKS += \
2954 catalog-remove-hook:
2955 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
2957 UNINSTALL_DATA_HOOKS += \
2966 test-journal-syslog \
2967 test-journal-match \
2968 test-journal-stream \
2969 test-journal-verify \
2970 test-journal-interleaving \
2974 pkginclude_HEADERS += \
2975 src/systemd/sd-journal.h \
2976 src/systemd/sd-messages.h
2978 lib_LTLIBRARIES += \
2979 libsystemd-journal.la
2981 noinst_LTLIBRARIES += \
2982 libsystemd-journal-internal.la
2984 rootlibexec_PROGRAMS += \
2987 rootbin_PROGRAMS += \
2993 dist_systemunit_DATA += \
2994 units/systemd-journald.socket
2996 nodist_systemunit_DATA += \
2997 units/systemd-journald.service \
2998 units/systemd-journal-flush.service
3000 dist_pkgsysconf_DATA += \
3001 src/journal/journald.conf
3003 pkgconfiglib_DATA += \
3004 src/journal/libsystemd-journal.pc
3006 dist_catalog_DATA = \
3007 catalog/systemd.catalog
3009 SOCKETS_TARGET_WANTS += \
3010 systemd-journald.socket
3011 SYSINIT_TARGET_WANTS += \
3012 systemd-journald.service \
3013 systemd-journal-flush.service
3016 src/journal/libsystemd-journal.pc.in \
3017 src/journal/libsystemd-journal.sym \
3018 units/systemd-journald.service.in \
3019 units/systemd-journal-flush.service.in \
3020 src/journal/journald-gperf.gperf
3023 src/journal/journald-gperf.c
3025 # ------------------------------------------------------------------------------
3027 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
3029 rootlibexec_PROGRAMS += \
3030 systemd-journal-gatewayd
3032 systemd_journal_gatewayd_SOURCES = \
3033 src/journal/journal-gatewayd.c \
3034 src/journal/microhttpd-util.h \
3035 src/journal/microhttpd-util.c
3037 systemd_journal_gatewayd_LDADD = \
3038 libsystemd-shared.la \
3039 libsystemd-logs.la \
3040 libsystemd-journal-internal.la \
3041 libsystemd-id128-internal.la \
3042 libsystemd-daemon.la \
3046 systemd_journal_gatewayd_CFLAGS = \
3047 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\" \
3049 $(MICROHTTPD_CFLAGS)
3051 dist_systemunit_DATA += \
3052 units/systemd-journal-gatewayd.socket
3054 nodist_systemunit_DATA += \
3055 units/systemd-journal-gatewayd.service
3057 dist_gatewayddocumentroot_DATA = \
3058 src/journal/browse.html
3063 units/systemd-journal-gatewayd.service.in
3065 # ------------------------------------------------------------------------------
3067 systemd_coredump_SOURCES = \
3068 src/journal/coredump.c
3070 systemd_coredump_LDADD = \
3071 libsystemd-journal-internal.la \
3072 libsystemd-label.la \
3073 libsystemd-shared.la
3076 systemd_coredump_LDADD += \
3077 libsystemd-login-internal.la
3080 rootlibexec_PROGRAMS += \
3083 systemd_coredumpctl_SOURCES = \
3084 src/journal/coredumpctl.c
3086 systemd_coredumpctl_LDADD = \
3087 libsystemd-shared.la \
3088 libsystemd-journal.la
3093 dist_bashcompletion_DATA += \
3094 shell-completion/bash/systemd-coredumpctl
3097 sysctl.d/50-coredump.conf
3100 sysctl.d/50-coredump.conf
3104 sysctl.d/50-coredump.conf.in
3106 # ------------------------------------------------------------------------------
3108 systemd_binfmt_SOURCES = \
3111 systemd_binfmt_LDADD = \
3112 libsystemd-shared.la
3114 rootlibexec_PROGRAMS += \
3117 dist_systemunit_DATA += \
3118 units/proc-sys-fs-binfmt_misc.automount \
3119 units/proc-sys-fs-binfmt_misc.mount
3121 nodist_systemunit_DATA += \
3122 units/systemd-binfmt.service
3125 $(prefix)/lib/binfmt.d \
3126 $(sysconfdir)/binfmt.d
3128 SYSINIT_TARGET_WANTS += \
3129 systemd-binfmt.service \
3130 proc-sys-fs-binfmt_misc.automount
3135 units/systemd-binfmt.service.in
3137 # ------------------------------------------------------------------------------
3139 systemd_vconsole_setup_SOURCES = \
3140 src/vconsole/vconsole-setup.c
3142 systemd_vconsole_setup_LDADD = \
3143 libsystemd-shared.la
3145 rootlibexec_PROGRAMS += \
3146 systemd-vconsole-setup
3148 nodist_systemunit_DATA += \
3149 units/systemd-vconsole-setup.service
3151 SYSINIT_TARGET_WANTS += \
3152 systemd-vconsole-setup.service
3156 units/systemd-vconsole-setup.service.in
3158 # ------------------------------------------------------------------------------
3160 systemd_readahead_SOURCES = \
3161 src/readahead/readahead.c \
3162 src/readahead/readahead-collect.c \
3163 src/readahead/readahead-replay.c \
3164 src/readahead/readahead-analyze.c \
3165 src/readahead/readahead-common.c \
3166 src/readahead/readahead-common.h
3168 systemd_readahead_LDADD = \
3169 libsystemd-shared.la \
3170 libsystemd-daemon.la \
3174 src/readahead/sd-readahead.c \
3175 src/systemd/sd-readahead.h
3177 rootlibexec_PROGRAMS += \
3180 dist_systemunit_DATA += \
3181 units/systemd-readahead-drop.service \
3182 units/systemd-readahead-done.timer
3184 nodist_systemunit_DATA += \
3185 units/systemd-readahead-collect.service \
3186 units/systemd-readahead-replay.service \
3187 units/systemd-readahead-done.service
3192 units/systemd-readahead-collect.service.in \
3193 units/systemd-readahead-replay.service.in \
3194 units/systemd-readahead-done.service.in
3196 # ------------------------------------------------------------------------------
3198 systemd_bootchart_SOURCES = \
3199 src/bootchart/bootchart.c \
3200 src/bootchart/bootchart.h \
3201 src/bootchart/store.c \
3202 src/bootchart/store.h \
3203 src/bootchart/svg.c \
3206 systemd_bootchart_LDADD = \
3207 libsystemd-shared.la \
3208 libsystemd-journal.la
3210 rootlibexec_PROGRAMS += \
3213 dist_pkgsysconf_DATA += \
3214 src/bootchart/bootchart.conf
3217 # ------------------------------------------------------------------------------
3218 if ENABLE_QUOTACHECK
3219 rootlibexec_PROGRAMS += \
3222 nodist_systemunit_DATA += \
3223 units/systemd-quotacheck.service
3225 systemd_quotacheck_SOURCES = \
3226 src/quotacheck/quotacheck.c
3228 systemd_quotacheck_LDADD = \
3229 libsystemd-shared.la
3233 units/systemd-quotacheck.service.in
3235 nodist_systemunit_DATA += \
3236 units/quotaon.service
3238 # ------------------------------------------------------------------------------
3239 if ENABLE_RANDOMSEED
3240 rootlibexec_PROGRAMS += \
3243 nodist_systemunit_DATA += \
3244 units/systemd-random-seed.service
3246 systemd_random_seed_SOURCES = \
3247 src/random-seed/random-seed.c
3249 systemd_random_seed_LDADD = \
3250 libsystemd-label.la \
3251 libsystemd-shared.la
3253 SYSINIT_TARGET_WANTS += \
3254 systemd-random-seed.service
3259 units/systemd-random-seed.service.in
3261 # ------------------------------------------------------------------------------
3262 if HAVE_LIBCRYPTSETUP
3263 rootlibexec_PROGRAMS += \
3266 systemgenerator_PROGRAMS += \
3267 systemd-cryptsetup-generator
3269 dist_systemunit_DATA += \
3270 units/cryptsetup.target
3272 systemd_cryptsetup_SOURCES = \
3273 src/cryptsetup/cryptsetup.c
3275 systemd_cryptsetup_CFLAGS = \
3277 $(LIBCRYPTSETUP_CFLAGS)
3279 systemd_cryptsetup_LDADD = \
3280 libsystemd-label.la \
3281 libsystemd-shared.la \
3283 $(LIBCRYPTSETUP_LIBS)
3285 systemd_cryptsetup_generator_SOURCES = \
3286 src/cryptsetup/cryptsetup-generator.c
3288 systemd_cryptsetup_generator_LDADD = \
3289 libsystemd-label.la \
3290 libsystemd-shared.la
3292 SYSINIT_TARGET_WANTS += \
3297 # ------------------------------------------------------------------------------
3299 systemd_hostnamed_SOURCES = \
3300 src/hostname/hostnamed.c
3302 systemd_hostnamed_CFLAGS = \
3306 systemd_hostnamed_LDADD = \
3307 libsystemd-label.la \
3308 libsystemd-shared.la \
3309 libsystemd-daemon.la \
3312 rootlibexec_PROGRAMS += \
3315 nodist_systemunit_DATA += \
3316 units/systemd-hostnamed.service
3318 dist_dbuspolicy_DATA += \
3319 src/hostname/org.freedesktop.hostname1.conf
3321 dist_dbussystemservice_DATA += \
3322 src/hostname/org.freedesktop.hostname1.service
3324 polkitpolicy_files += \
3325 src/hostname/org.freedesktop.hostname1.policy
3327 dbusinterface_DATA += \
3328 org.freedesktop.hostname1.xml
3330 org.freedesktop.hostname1.xml: systemd-hostnamed
3331 $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.hostname1 $< $@.tmp && \
3332 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
3333 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
3335 SYSTEM_UNIT_ALIASES += \
3336 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
3338 hostnamectl_SOURCES = \
3339 src/hostname/hostnamectl.c
3341 hostnamectl_CFLAGS = \
3345 hostnamectl_LDADD = \
3346 libsystemd-shared.la \
3347 libsystemd-dbus.la \
3348 libsystemd-id128-internal.la
3353 dist_bashcompletion_DATA += \
3354 shell-completion/bash/hostnamectl
3358 polkitpolicy_in_files += \
3359 src/hostname/org.freedesktop.hostname1.policy.in
3362 units/systemd-hostnamed.service.in
3364 # ------------------------------------------------------------------------------
3366 systemd_localed_SOURCES = \
3367 src/locale/localed.c
3369 systemd_localed_CFLAGS = \
3373 systemd_localed_LDADD = \
3374 libsystemd-label.la \
3375 libsystemd-shared.la \
3376 libsystemd-daemon.la \
3379 nodist_systemunit_DATA += \
3380 units/systemd-localed.service
3382 rootlibexec_PROGRAMS += \
3385 dist_dbuspolicy_DATA += \
3386 src/locale/org.freedesktop.locale1.conf
3388 dist_dbussystemservice_DATA += \
3389 src/locale/org.freedesktop.locale1.service
3391 polkitpolicy_files += \
3392 src/locale/org.freedesktop.locale1.policy
3394 dbusinterface_DATA += \
3395 org.freedesktop.locale1.xml
3397 org.freedesktop.locale1.xml: systemd-localed
3398 $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.locale1 $< $@.tmp && \
3399 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
3400 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
3402 SYSTEM_UNIT_ALIASES += \
3403 systemd-localed.service dbus-org.freedesktop.locale1.service
3405 dist_pkgdata_DATA += \
3406 src/locale/kbd-model-map
3408 dist_noinst_SCRIPT = \
3409 src/locale/generate-kbd-model-map
3411 update-kbd-model-map: src/locale/generate-kbd-model-map
3412 $PYTHON $< > src/locale/kbd-model-map
3414 localectl_SOURCES = \
3415 src/locale/localectl.c
3417 localectl_CFLAGS = \
3422 libsystemd-shared.la \
3423 libsystemd-dbus.la \
3424 libsystemd-id128-internal.la
3429 dist_bashcompletion_DATA += \
3430 shell-completion/bash/localectl
3434 polkitpolicy_in_files += \
3435 src/locale/org.freedesktop.locale1.policy.in
3438 units/systemd-localed.service.in
3440 # ------------------------------------------------------------------------------
3442 systemd_timedated_SOURCES = \
3443 src/timedate/timedated.c
3445 systemd_timedated_CFLAGS = \
3449 systemd_timedated_LDADD = \
3450 libsystemd-label.la \
3451 libsystemd-shared.la \
3452 libsystemd-daemon.la \
3455 rootlibexec_PROGRAMS += \
3458 dist_dbussystemservice_DATA += \
3459 src/timedate/org.freedesktop.timedate1.service
3461 dist_dbuspolicy_DATA += \
3462 src/timedate/org.freedesktop.timedate1.conf
3464 nodist_systemunit_DATA += \
3465 units/systemd-timedated.service
3467 polkitpolicy_files += \
3468 src/timedate/org.freedesktop.timedate1.policy
3470 org.freedesktop.timedate1.xml: systemd-timedated
3471 $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.timedate1 $< $@.tmp && \
3472 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
3473 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
3475 dbusinterface_DATA += \
3476 org.freedesktop.timedate1.xml
3479 $(prefix)/lib/systemd/ntp-units.d \
3480 $(sysconfdir)/systemd/ntp-units.d
3482 SYSTEM_UNIT_ALIASES += \
3483 systemd-timedated.service dbus-org.freedesktop.timedate1.service
3485 timedatectl_SOURCES = \
3486 src/timedate/timedatectl.c
3488 timedatectl_CFLAGS = \
3492 timedatectl_LDADD = \
3493 libsystemd-shared.la \
3499 dist_bashcompletion_DATA += \
3500 shell-completion/bash/timedatectl
3503 polkitpolicy_in_files += \
3504 src/timedate/org.freedesktop.timedate1.policy.in
3507 units/systemd-timedated.service.in
3509 # ------------------------------------------------------------------------------
3511 libnss_myhostname_la_SOURCES = \
3512 src/nss-myhostname/nss-myhostname.c \
3513 src/nss-myhostname/ifconf.h \
3514 src/nss-myhostname/netlink.c
3516 libnss_myhostname_la_CFLAGS = \
3519 libnss_myhostname_la_LDFLAGS = \
3527 lib_LTLIBRARIES += \
3528 libnss_myhostname.la
3531 # ------------------------------------------------------------------------------
3533 systemd_machined_SOURCES = \
3534 src/machine/machined.c \
3535 src/machine/machined.h
3537 systemd_machined_CFLAGS = \
3538 $(libsystemd_machine_core_la_CFLAGS)
3540 systemd_machined_LDADD = \
3541 libsystemd-machine-core.la \
3542 $(libsystemd_machine_core_la_LIBADD)
3544 rootlibexec_PROGRAMS += \
3547 libsystemd_machine_core_la_SOURCES = \
3548 src/machine/machined-dbus.c \
3549 src/machine/machine.c \
3550 src/machine/machine.h \
3551 src/machine/machine-dbus.c
3553 libsystemd_machine_core_la_CFLAGS = \
3557 libsystemd_machine_core_la_LIBADD = \
3558 libsystemd-label.la \
3559 libsystemd-audit.la \
3560 libsystemd-shared.la \
3561 libsystemd-daemon.la \
3562 libsystemd-dbus.la \
3563 libsystemd-id128-internal.la \
3566 noinst_LTLIBRARIES += \
3567 libsystemd-machine-core.la
3569 machinectl_SOURCES = \
3570 src/machine/machinectl.c
3572 machinectl_CFLAGS = \
3576 machinectl_LDADD = \
3577 libsystemd-shared.la \
3578 libsystemd-dbus.la \
3581 rootbin_PROGRAMS += \
3584 test_machine_tables_SOURCES = \
3585 src/machine/test-machine-tables.c
3587 test_machine_tables_CFLAGS = \
3591 test_machine_tables_LDADD = \
3592 libsystemd-machine-core.la
3597 nodist_systemunit_DATA += \
3598 units/systemd-machined.service
3600 dist_systemunit_DATA += \
3603 dist_dbussystemservice_DATA += \
3604 src/machine/org.freedesktop.machine1.service
3606 dist_dbuspolicy_DATA += \
3607 src/machine/org.freedesktop.machine1.conf
3609 SYSTEM_UNIT_ALIASES += \
3610 systemd-machined.service dbus-org.freedesktop.machine1.service
3613 units/systemd-machined.service.in
3617 # ------------------------------------------------------------------------------
3619 systemd_logind_SOURCES = \
3620 src/login/logind.c \
3623 nodist_systemd_logind_SOURCES = \
3624 src/login/logind-gperf.c
3626 systemd_logind_CFLAGS = \
3627 $(libsystemd_logind_core_la_CFLAGS)
3629 systemd_logind_LDADD = \
3630 libsystemd-logind-core.la \
3631 $(libsystemd_logind_core_la_LIBADD)
3634 systemd_logind_SOURCES += \
3635 src/login/logind-acl.c
3637 systemd_logind_LDADD += \
3641 libsystemd_logind_core_la_SOURCES = \
3642 src/login/logind-dbus.c \
3643 src/login/logind-device.c \
3644 src/login/logind-device.h \
3645 src/login/logind-button.c \
3646 src/login/logind-button.h \
3647 src/login/logind-action.c \
3648 src/login/logind-action.h \
3649 src/login/logind-seat.c \
3650 src/login/logind-seat.h \
3651 src/login/logind-session.c \
3652 src/login/logind-session.h \
3653 src/login/logind-user.c \
3654 src/login/logind-user.h \
3655 src/login/logind-inhibit.c \
3656 src/login/logind-inhibit.h \
3657 src/login/logind-session-dbus.c \
3658 src/login/logind-seat-dbus.c \
3659 src/login/logind-user-dbus.c \
3660 src/login/logind-acl.h
3662 libsystemd_logind_core_la_CFLAGS = \
3666 libsystemd_logind_core_la_LIBADD = \
3667 libsystemd-label.la \
3668 libsystemd-audit.la \
3669 libsystemd-shared.la \
3670 libsystemd-daemon.la \
3671 libsystemd-dbus.la \
3672 libsystemd-id128-internal.la \
3675 noinst_LTLIBRARIES += \
3676 libsystemd-logind-core.la
3678 systemd_user_sessions_SOURCES = \
3679 src/login/user-sessions.c
3681 systemd_user_sessions_LDADD = \
3682 libsystemd-shared.la
3684 rootlibexec_PROGRAMS += \
3686 systemd-user-sessions
3688 loginctl_SOURCES = \
3689 src/login/loginctl.c \
3690 src/login/sysfs-show.c
3697 libsystemd-shared.la \
3698 libsystemd-dbus.la \
3701 rootbin_PROGRAMS += \
3704 dist_bashcompletion_DATA += \
3705 shell-completion/bash/loginctl
3707 systemd_inhibit_SOURCES = \
3710 systemd_inhibit_CFLAGS = \
3714 systemd_inhibit_LDADD = \
3715 libsystemd-shared.la \
3718 rootbin_PROGRAMS += \
3721 test_login_SOURCES = \
3722 src/login/test-login.c
3724 test_login_LDADD = \
3725 libsystemd-login-internal.la \
3726 libsystemd-shared.la
3728 test_inhibit_SOURCES = \
3729 src/login/test-inhibit.c
3731 test_inhibit_LDADD = \
3732 libsystemd-shared.la \
3735 test_inhibit_CFLAGS = \
3739 test_login_tables_SOURCES = \
3740 src/login/test-login-tables.c
3742 test_login_tables_CFLAGS = \
3746 test_login_tables_LDADD = \
3747 libsystemd-logind-core.la
3756 libsystemd_login_la_SOURCES = \
3757 src/login/sd-login.c
3759 libsystemd_login_la_CFLAGS = \
3763 libsystemd_login_la_LDFLAGS = \
3765 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
3766 -Wl,--version-script=$(top_srcdir)/src/login/libsystemd-login.sym
3768 libsystemd_login_la_LIBADD = \
3769 libsystemd-shared.la \
3770 libsystemd-daemon-internal.la
3772 libsystemd_login_internal_la_SOURCES = \
3773 $(libsystemd_login_la_SOURCES)
3776 pam_systemd_la_SOURCES = \
3777 src/login/pam-module.c
3779 pam_systemd_la_CFLAGS = \
3785 pam_systemd_la_LDFLAGS = \
3791 -export-symbols-regex '^pam_sm_.*'
3793 pam_systemd_la_LIBADD = \
3794 libsystemd-audit.la \
3795 libsystemd-dbus.la \
3796 libsystemd-shared.la \
3797 libsystemd-daemon-internal.la \
3800 pamlib_LTLIBRARIES = \
3804 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3805 libsystemd-login-install-hook:
3806 libname=libsystemd-login.so && $(move-to-rootlibdir)
3808 libsystemd-login-uninstall-hook:
3809 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
3811 INSTALL_EXEC_HOOKS += libsystemd-login-install-hook
3812 UNINSTALL_EXEC_HOOKS += libsystemd-login-uninstall-hook
3814 nodist_systemunit_DATA += \
3815 units/systemd-logind.service \
3816 units/systemd-user-sessions.service
3818 dist_systemunit_DATA += \
3821 dist_dbussystemservice_DATA += \
3822 src/login/org.freedesktop.login1.service
3824 dist_dbuspolicy_DATA += \
3825 src/login/org.freedesktop.login1.conf
3827 dist_pkgsysconf_DATA += \
3828 src/login/logind.conf
3830 pkginclude_HEADERS += \
3831 src/systemd/sd-login.h
3833 lib_LTLIBRARIES += \
3836 noinst_LTLIBRARIES += \
3837 libsystemd-login-internal.la
3839 pkgconfiglib_DATA += \
3840 src/login/libsystemd-login.pc
3842 polkitpolicy_files += \
3843 src/login/org.freedesktop.login1.policy
3848 MULTI_USER_TARGET_WANTS += \
3849 systemd-logind.service \
3850 systemd-user-sessions.service
3852 SYSTEM_UNIT_ALIASES += \
3853 systemd-logind.service dbus-org.freedesktop.login1.service
3855 systemd_multi_seat_x_SOURCES = \
3856 src/login/multi-seat-x.c
3858 systemd_multi_seat_x_LDADD = \
3859 libsystemd-label.la \
3860 libsystemd-shared.la
3862 rootlibexec_PROGRAMS += \
3863 systemd-multi-seat-x
3865 dist_udevrules_DATA += \
3866 src/login/70-uaccess.rules \
3867 src/login/70-power-switch.rules
3869 nodist_udevrules_DATA += \
3870 src/login/71-seat.rules \
3871 src/login/73-seat-late.rules
3874 src/login/logind-gperf.c \
3875 src/login/71-seat.rules \
3876 src/login/73-seat-late.rules
3879 polkitpolicy_in_files += \
3880 src/login/org.freedesktop.login1.policy.in
3883 src/login/logind-gperf.gperf \
3884 src/login/libsystemd-login.pc.in \
3885 src/login/libsystemd-login.sym \
3886 src/login/71-seat.rules.in \
3887 src/login/73-seat-late.rules.in \
3888 units/systemd-logind.service.in \
3889 units/systemd-user-sessions.service.in
3891 # ------------------------------------------------------------------------------
3892 if HAVE_PYTHON_DEVEL
3893 pkgpyexec_LTLIBRARIES = \
3900 _journal_la_SOURCES = \
3901 src/python-systemd/_journal.c
3903 _journal_la_CFLAGS = \
3905 -fvisibility=default \
3908 _journal_la_LDFLAGS = \
3914 _journal_la_LIBADD = \
3916 libsystemd-journal.la
3918 id128_la_SOURCES = \
3919 src/python-systemd/id128.c \
3920 src/python-systemd/id128-constants.h \
3921 src/python-systemd/pyutil.c \
3922 src/python-systemd/pyutil.h
3926 -fvisibility=default \
3928 -I$(top_builddir)/src/python-systemd
3930 id128_la_LDFLAGS = \
3940 _daemon_la_SOURCES = \
3941 src/python-systemd/_daemon.c \
3942 src/python-systemd/pyutil.c \
3943 src/python-systemd/pyutil.h
3945 _daemon_la_CFLAGS = \
3947 -fvisibility=default \
3949 -I$(top_builddir)/src/python-systemd
3951 _daemon_la_LDFLAGS = \
3957 _daemon_la_LIBADD = \
3959 libsystemd-daemon.la
3961 _reader_la_SOURCES = \
3962 src/python-systemd/_reader.c \
3963 src/python-systemd/pyutil.c \
3964 src/python-systemd/pyutil.h
3966 _reader_la_CFLAGS = \
3968 -fvisibility=default \
3971 _reader_la_LDFLAGS = \
3977 _reader_la_LIBADD = \
3979 libsystemd-journal.la \
3980 libsystemd-id128.la \
3981 libsystemd-shared.la \
3982 libsystemd-daemon-internal.la
3984 login_la_SOURCES = \
3985 src/python-systemd/login.c \
3986 src/python-systemd/pyutil.c \
3987 src/python-systemd/pyutil.h
3991 -fvisibility=default \
3994 login_la_LDFLAGS = \
4002 libsystemd-journal.la \
4003 libsystemd-login.la \
4004 libsystemd-shared.la \
4005 libsystemd-daemon-internal.la
4007 dist_pkgpyexec_PYTHON = \
4008 src/python-systemd/journal.py \
4009 src/python-systemd/daemon.py \
4010 src/python-systemd/__init__.py
4012 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h Makefile
4013 $(AM_V_at)$(MKDIR_P) $(dir $@)
4014 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
4017 src/python-systemd/id128-constants.h
4019 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
4021 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
4022 $(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/
4023 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
4026 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
4027 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
4030 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
4031 $(MAKE) DESTDIR="$$dir" install && \
4032 $(MAKE) DESTDIR="$$dir" sphinx-html && \
4037 CLEAN_LOCAL_HOOKS += clean-sphinx
4040 -rm -rf docs/html/python-systemd/
4042 # ------------------------------------------------------------------------------
4044 '|rootlibexecdir=$(rootlibexecdir)|' \
4045 '|rootbindir=$(rootbindir)|' \
4046 '|bindir=$(bindir)|' \
4047 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
4048 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
4049 '|pkgsysconfdir=$(pkgsysconfdir)|' \
4050 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
4051 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
4052 '|pkgdatadir=$(pkgdatadir)|' \
4053 '|systemunitdir=$(systemunitdir)|' \
4054 '|userunitdir=$(userunitdir)|' \
4055 '|systempresetdir=$(systempresetdir)|' \
4056 '|userpresetdir=$(userpresetdir)|' \
4057 '|udevhwdbdir=$(udevhwdbdir)|' \
4058 '|udevrulesdir=$(udevrulesdir)|' \
4059 '|catalogdir=$(catalogdir)|' \
4060 '|tmpfilesdir=$(tmpfilesdir)|' \
4061 '|sysctldir=$(sysctldir)|' \
4062 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
4063 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
4064 '|PACKAGE_URL=$(PACKAGE_URL)|' \
4065 '|RANDOM_SEED=$(localstatedir)/lib/random-seed|' \
4066 '|prefix=$(prefix)|' \
4067 '|exec_prefix=$(exec_prefix)|' \
4068 '|libdir=$(libdir)|' \
4069 '|includedir=$(includedir)|' \
4070 '|VERSION=$(VERSION)|' \
4071 '|rootprefix=$(rootprefix)|' \
4072 '|udevlibexecdir=$(udevlibexecdir)|' \
4073 '|SUSHELL=$(SUSHELL)|' \
4074 '|DEBUGTTY=$(DEBUGTTY)|' \
4077 '|MKDIR_P=$(MKDIR_P)|' \
4078 '|QUOTAON=$(QUOTAON)|' \
4079 '|QUOTACHECK=$(QUOTACHECK)|' \
4080 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
4081 '|VARLOGDIR=$(varlogdir)|' \
4082 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
4083 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
4084 '|PYTHON=$(PYTHON)|' \
4085 '|PYTHON_BINARY=$(PYTHON_BINARY)|'
4088 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
4089 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
4092 units/%: units/%.in Makefile
4095 man/%: man/%.in Makefile
4098 sysctl.d/%: sysctl.d/%.in Makefile
4101 %.pc: %.pc.in Makefile
4104 src/core/macros.%: src/core/macros.%.in Makefile
4107 src/%.policy.in: src/%.policy.in.in Makefile
4110 %.rules: %.rules.in Makefile
4113 %.sh: %.sh.in Makefile
4115 $(AM_V_GEN)chmod +x $@
4117 src/%.c: src/%.gperf
4118 $(AM_V_at)$(MKDIR_P) $(dir $@)
4119 $(AM_V_GPERF)$(GPERF) < $< > $@
4122 $(AM_V_at)$(MKDIR_P) $(dir $@)
4123 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
4125 units/%: units/%.m4 Makefile
4126 $(AM_V_M4)$(MKDIR_P) $(dir $@)
4127 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
4129 units/user/%: units/%.m4 Makefile
4130 $(AM_V_M4)$(MKDIR_P) $(dir $@)
4131 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
4134 nodist_polkitpolicy_DATA = \
4135 $(polkitpolicy_files) \
4136 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
4140 $(polkitpolicy_in_files) \
4141 $(polkitpolicy_in_in_files)
4144 $(nodist_systemunit_DATA) \
4145 $(nodist_userunit_DATA) \
4146 $(pkgconfigdata_DATA) \
4147 $(pkgconfiglib_DATA) \
4148 $(nodist_polkitpolicy_DATA)
4150 # ------------------------------------------------------------------------------
4152 man/custom-entities.ent: Makefile
4153 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
4154 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
4155 echo '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">,$(substitutions))))') \
4159 man/custom-entities.ent
4163 --stringparam man.output.quietly 1 \
4164 --stringparam funcsynopsis.style ansi \
4165 --stringparam man.authors.section.enabled 0 \
4166 --stringparam man.copyright.section.enabled 0 \
4167 --stringparam systemd.version $(VERSION) \
4168 --path '$(builddir)/man:$(srcdir)/man'
4170 XSLTPROC_PROCESS_MAN = \
4171 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
4173 XSLTPROC_PROCESS_HTML = \
4174 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
4176 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
4177 $(XSLTPROC_PROCESS_MAN)
4179 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
4180 $(XSLTPROC_PROCESS_MAN)
4182 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
4183 $(XSLTPROC_PROCESS_MAN)
4185 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
4186 $(XSLTPROC_PROCESS_MAN)
4188 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
4189 $(XSLTPROC_PROCESS_MAN)
4191 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
4192 $(XSLTPROC_PROCESS_HTML)
4195 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
4201 man/custom-html.xsl \
4204 # ------------------------------------------------------------------------------
4205 DBUS_PREPROCESS = $(CPP) -P $(CFLAGS) $(DBUS_CFLAGS) -imacros dbus/dbus-protocol.h
4208 $(dbusinterface_DATA)
4212 docs/sysvinit/README
4217 docs/sysvinit/README: docs/sysvinit/README.in
4220 docs/var-log/README: docs/var-log/README.in
4224 docs/sysvinit/README \
4229 docs/sysvinit/README.in \
4230 docs/var-log/README.in
4233 shell-completion/systemd-zsh-completion.zsh
4235 SOCKETS_TARGET_WANTS += \
4236 systemd-initctl.socket \
4237 systemd-shutdownd.socket
4240 RUNLEVEL1_TARGET_WANTS += \
4241 systemd-update-utmp-runlevel.service
4242 RUNLEVEL2_TARGET_WANTS += \
4243 systemd-update-utmp-runlevel.service
4244 RUNLEVEL3_TARGET_WANTS += \
4245 systemd-update-utmp-runlevel.service
4246 RUNLEVEL4_TARGET_WANTS += \
4247 systemd-update-utmp-runlevel.service
4248 RUNLEVEL5_TARGET_WANTS += \
4249 systemd-update-utmp-runlevel.service
4251 SYSINIT_TARGET_WANTS += \
4252 systemd-update-utmp.service
4253 LOCAL_FS_TARGET_WANTS += \
4254 systemd-remount-fs.service \
4255 systemd-fsck-root.service \
4257 MULTI_USER_TARGET_WANTS += \
4259 systemd-ask-password-wall.path
4260 SYSINIT_TARGET_WANTS += \
4261 dev-hugepages.mount \
4263 sys-kernel-config.mount \
4264 sys-kernel-debug.mount \
4265 sys-fs-fuse-connections.mount \
4266 systemd-sysctl.service \
4267 systemd-ask-password-console.path
4270 SYSTEM_UNIT_ALIASES += \
4271 poweroff.target runlevel0.target \
4272 rescue.target runlevel1.target \
4273 multi-user.target runlevel2.target \
4274 multi-user.target runlevel3.target \
4275 multi-user.target runlevel4.target \
4276 graphical.target runlevel5.target \
4277 reboot.target runlevel6.target
4280 SYSTEM_UNIT_ALIASES += \
4281 graphical.target default.target \
4282 reboot.target ctrl-alt-del.target \
4283 getty@.service autovt@.service
4285 USER_UNIT_ALIASES += \
4286 $(systemunitdir)/shutdown.target shutdown.target \
4287 $(systemunitdir)/sockets.target sockets.target \
4288 $(systemunitdir)/timers.target timers.target \
4289 $(systemunitdir)/paths.target paths.target \
4290 $(systemunitdir)/bluetooth.target bluetooth.target \
4291 $(systemunitdir)/printer.target printer.target \
4292 $(systemunitdir)/sound.target sound.target \
4293 $(systemunitdir)/smartcard.target smartcard.target
4295 GENERAL_ALIASES += \
4296 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
4297 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
4298 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
4299 ../system-services/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
4303 $(systemunitdir)/runlevel1.target.wants \
4304 $(systemunitdir)/runlevel2.target.wants \
4305 $(systemunitdir)/runlevel3.target.wants \
4306 $(systemunitdir)/runlevel4.target.wants \
4307 $(systemunitdir)/runlevel5.target.wants
4311 $(prefix)/lib/modules-load.d \
4312 $(sysconfdir)/modules-load.d \
4313 $(prefix)/lib/sysctl.d \
4314 $(sysconfdir)/sysctl.d \
4315 $(prefix)/lib/kernel/install.d \
4316 $(sysconfdir)/kernel/install.d \
4317 $(systemshutdowndir) \
4319 $(systemgeneratordir) \
4320 $(usergeneratordir) \
4323 $(pkgsysconfdir)/system \
4324 $(pkgsysconfdir)/system/multi-user.target.wants \
4325 $(pkgsysconfdir)/system/getty.target.wants \
4326 $(pkgsysconfdir)/user \
4327 $(dbussessionservicedir) \
4328 $(sysconfdir)/xdg/systemd
4330 install-exec-hook: $(INSTALL_EXEC_HOOKS)
4332 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
4334 install-data-hook: $(INSTALL_DATA_HOOKS)
4336 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
4338 clean-local: $(CLEAN_LOCAL_HOOKS)
4339 rm -rf $(abs_srcdir)/install-tree
4340 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
4341 $(abs_srcdir)/hwdb/iab.txt
4343 DISTCHECK_CONFIGURE_FLAGS = \
4344 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
4345 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
4346 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
4347 --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
4348 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
4349 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
4350 --with-rootprefix=$$dc_install_base \
4354 DISTCHECK_CONFIGURE_FLAGS += \
4355 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
4356 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
4358 DISTCHECK_CONFIGURE_FLAGS += \
4359 --with-sysvinit-path= \
4360 --with-sysvrcnd-path=
4364 DISTCHECK_CONFIGURE_FLAGS += \
4369 ( cd $(top_srcdir)/hwdb && \
4370 wget -N http://www.linux-usb.org/usb.ids \
4371 http://pci-ids.ucw.cz/v2.2/pci.ids \
4372 http://standards.ieee.org/develop/regauth/oui/oui.txt \
4373 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
4377 ( cd $(top_srcdir)/src/libsystemd-bus/ && \
4378 wget -N https://d-bus.googlecode.com/git/kdbus.h )
4380 upload: all distcheck
4381 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
4382 scp systemd-$(VERSION).tar.xz fdo:/srv/www.freedesktop.org/www/software/systemd/
4383 scp man/*.html tango:public/systemd-man/
4385 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
4386 doc-sync: all destdir-sphinx
4387 gtkdoc-rebase --html-dir=docs/libudev/html --online
4388 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
4389 gtkdoc-rebase --html-dir=docs/gudev/html --online
4390 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
4391 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
4392 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
4395 git tag "v$(VERSION)" -m "systemd $(VERSION)"
4398 rm -rf $(abs_srcdir)/install-tree
4399 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
4400 tree $(abs_srcdir)/install-tree