1 # -*- Mode: makefile; indent-tabs-mode: t -*-
3 # This file is part of systemd.
5 # Copyright 2010-2012 Lennart Poettering
6 # Copyright 2010-2012 Kay Sievers
7 # Copyright 2013 Zbigniew Jędrzejewski-Szmek
8 # Copyright 2013 David Strauss
10 # systemd is free software; you can redistribute it and/or modify it
11 # under the terms of the GNU Lesser General Public License as published by
12 # the Free Software Foundation; either version 2.1 of the License, or
13 # (at your option) any later version.
15 # systemd is distributed in the hope that it will be useful, but
16 # WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 # Lesser General Public License for more details.
20 # You should have received a copy of the GNU Lesser General Public License
21 # along with systemd; If not, see <http://www.gnu.org/licenses/>.
23 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
24 AM_MAKEFLAGS = --no-print-directory
25 AUTOMAKE_OPTIONS = color-tests parallel-tests
29 # remove targets if the command fails
32 # keep intermediate files
35 # Keep the test-suite.log
36 .PRECIOUS: $(TEST_SUITE_LOG) Makefile
46 LIBSYSTEMD_LOGIN_CURRENT=9
47 LIBSYSTEMD_LOGIN_REVISION=1
48 LIBSYSTEMD_LOGIN_AGE=9
50 LIBSYSTEMD_DAEMON_CURRENT=0
51 LIBSYSTEMD_DAEMON_REVISION=10
52 LIBSYSTEMD_DAEMON_AGE=0
54 LIBSYSTEMD_ID128_CURRENT=0
55 LIBSYSTEMD_ID128_REVISION=26
56 LIBSYSTEMD_ID128_AGE=0
58 LIBSYSTEMD_JOURNAL_CURRENT=11
59 LIBSYSTEMD_JOURNAL_REVISION=3
60 LIBSYSTEMD_JOURNAL_AGE=11
62 LIBSYSTEMD_BUS_CURRENT=0
63 LIBSYSTEMD_BUS_REVISION=0
66 LIBSYSTEMD_EVENT_CURRENT=0
67 LIBSYSTEMD_EVENT_REVISION=0
68 LIBSYSTEMD_EVENT_AGE=0
70 # Dirs of external packages
71 dbuspolicydir=@dbuspolicydir@
72 dbussessionservicedir=@dbussessionservicedir@
73 dbussystemservicedir=@dbussystemservicedir@
75 pamconfdir=@pamconfdir@
76 pkgconfigdatadir=$(datadir)/pkgconfig
77 pkgconfiglibdir=$(libdir)/pkgconfig
78 polkitpolicydir=$(datadir)/polkit-1/actions
79 bashcompletiondir=@bashcompletiondir@
80 zshcompletiondir=@zshcompletiondir@
81 rpmmacrosdir=$(prefix)/lib/rpm/macros.d
82 sysvinitdir=$(SYSTEM_SYSVINIT_PATH)
83 sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
84 varlogdir=$(localstatedir)/log
85 systemdstatedir=$(localstatedir)/lib/systemd
86 catalogstatedir=$(systemdstatedir)/catalog
88 # Our own, non-special dirs
89 pkgsysconfdir=$(sysconfdir)/systemd
90 userunitdir=$(prefix)/lib/systemd/user
91 userpresetdir=$(prefix)/lib/systemd/user-preset
92 tmpfilesdir=$(prefix)/lib/tmpfiles.d
93 sysctldir=$(prefix)/lib/sysctl.d
94 networkdir=$(prefix)/lib/systemd/network
95 pkgincludedir=$(includedir)/systemd
96 systemgeneratordir=$(rootlibexecdir)/system-generators
97 usergeneratordir=$(prefix)/lib/systemd/user-generators
98 systemshutdowndir=$(rootlibexecdir)/system-shutdown
99 systemsleepdir=$(rootlibexecdir)/system-sleep
100 systemunitdir=$(rootprefix)/lib/systemd/system
101 systempresetdir=$(rootprefix)/lib/systemd/system-preset
102 udevlibexecdir=$(rootprefix)/lib/udev
103 udevhomedir=$(udevlibexecdir)
104 udevrulesdir=$(udevlibexecdir)/rules.d
105 udevhwdbdir=$(udevlibexecdir)/hwdb.d
106 catalogdir=$(prefix)/lib/systemd/catalog
107 kernelinstalldir = $(prefix)/lib/kernel/install.d
109 # And these are the special ones for /
110 rootprefix=@rootprefix@
111 rootbindir=$(rootprefix)/bin
112 rootlibexecdir=$(rootprefix)/lib/systemd
114 CLEANFILES = $(BUILT_SOURCES)
119 UNINSTALL_EXEC_HOOKS =
121 UNINSTALL_DATA_HOOKS =
122 DISTCLEAN_LOCAL_HOOKS =
130 polkitpolicy_in_in_files =
131 polkitpolicy_in_files =
133 dist_udevrules_DATA =
134 nodist_udevrules_DATA =
135 dist_pkgsysconf_DATA =
137 dist_dbuspolicy_DATA =
138 dist_dbussystemservice_DATA =
144 noinst_PROGRAMS = $(manual_tests) $(tests)
150 udevlibexec_PROGRAMS =
153 -include $(top_builddir)/config.h \
154 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
155 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
156 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
157 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
158 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
159 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
160 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
161 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
162 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
163 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
164 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
165 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
166 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
167 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
168 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
169 -DROOTPREFIX=\"$(rootprefix)\" \
170 -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
171 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
172 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
173 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
174 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
175 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
176 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
177 -DX_SERVER=\"$(bindir)/X\" \
178 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
179 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
180 -DQUOTACHECK=\"$(QUOTACHECK)\" \
181 -DKEXEC=\"$(KEXEC)\" \
182 -I $(top_srcdir)/src \
183 -I $(top_srcdir)/src/shared \
184 -I $(top_srcdir)/src/login \
185 -I $(top_srcdir)/src/journal \
186 -I $(top_srcdir)/src/systemd \
187 -I $(top_builddir)/src/core \
188 -I $(top_srcdir)/src/core \
189 -I $(top_srcdir)/src/libudev \
190 -I $(top_srcdir)/src/udev \
191 -I $(top_srcdir)/src/udev/net \
192 -I $(top_builddir)/src/udev \
193 -I $(top_srcdir)/src/libsystemd-bus \
194 -I $(top_srcdir)/src/libsystemd-rtnl \
197 AM_CFLAGS = $(OUR_CFLAGS)
198 AM_LDFLAGS = $(OUR_LDFLAGS)
200 # ------------------------------------------------------------------------------
201 define move-to-rootlibdir
202 if test "$(libdir)" != "$(rootlibdir)"; then \
203 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
204 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
205 so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
206 $(LN_S) -f $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
207 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
213 RUNLEVEL1_TARGET_WANTS =
214 RUNLEVEL2_TARGET_WANTS =
215 RUNLEVEL3_TARGET_WANTS =
216 RUNLEVEL4_TARGET_WANTS =
217 RUNLEVEL5_TARGET_WANTS =
218 SHUTDOWN_TARGET_WANTS =
219 LOCAL_FS_TARGET_WANTS =
220 MULTI_USER_TARGET_WANTS =
221 SYSINIT_TARGET_WANTS =
222 SOCKETS_TARGET_WANTS =
223 TIMERS_TARGET_WANTS =
225 SYSTEM_UNIT_ALIASES =
230 install-target-wants-hook:
231 what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && $(add-wants)
232 what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && $(add-wants)
233 what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && $(add-wants)
234 what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && $(add-wants)
235 what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && $(add-wants)
236 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && $(add-wants)
237 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && $(add-wants)
238 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && $(add-wants)
239 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && $(add-wants)
240 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && $(add-wants)
241 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && $(add-wants)
242 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && $(add-wants)
245 [ -z "$$what" ] || ( \
246 dir=$(DESTDIR)$(systemunitdir)/$$wants.wants && \
247 $(MKDIR_P) -m 0755 $$dir && \
250 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
253 install-directories-hook:
254 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
256 install-aliases-hook:
257 set -- $(SYSTEM_UNIT_ALIASES) && \
258 dir=$(systemunitdir) && $(install-aliases)
259 set -- $(USER_UNIT_ALIASES) && \
260 dir=$(userunitdir) && $(install-aliases)
261 set -- $(GENERAL_ALIASES) && \
262 dir= && $(install-aliases)
264 define install-aliases
265 while [ -n "$$1" ]; do \
266 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
267 rm -f $(DESTDIR)$$dir/$$2 && \
268 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
269 shift 2 || exit $$?; \
273 INSTALL_EXEC_HOOKS += \
274 install-target-wants-hook \
275 install-directories-hook \
278 # ------------------------------------------------------------------------------
279 AM_V_M4 = $(AM_V_M4_$(V))
280 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
281 AM_V_M4_0 = @echo " M4 " $@;
283 AM_V_XSLT = $(AM_V_XSLT_$(V))
284 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
285 AM_V_XSLT_0 = @echo " XSLT " $@;
287 AM_V_GPERF = $(AM_V_GPERF_$(V))
288 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
289 AM_V_GPERF_0 = @echo " GPERF " $@;
291 AM_V_LN = $(AM_V_LN_$(V))
292 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
293 AM_V_LN_0 = @echo " LN " $@;
295 # ------------------------------------------------------------------------------
299 systemd-ask-password \
300 systemd-tty-ask-password-agent \
301 systemd-machine-id-setup
306 systemd-stdio-bridge \
308 systemd-detect-virt \
314 src/kernel-install/kernel-install
316 dist_kernelinstall_SCRIPTS = \
317 src/kernel-install/50-depmod.install \
318 src/kernel-install/90-loaderentry.install
320 rootlibexec_PROGRAMS = \
322 systemd-cgroups-agent \
324 systemd-update-utmp \
328 systemd-reply-password \
333 systemd-socket-proxyd
335 systemgenerator_PROGRAMS = \
336 systemd-getty-generator \
337 systemd-fstab-generator \
338 systemd-system-update-generator
340 dist_bashcompletion_DATA = \
341 shell-completion/bash/journalctl \
342 shell-completion/bash/systemctl \
343 shell-completion/bash/systemd-analyze \
344 shell-completion/bash/systemd-run \
345 shell-completion/bash/udevadm \
346 shell-completion/bash/kernel-install
348 dist_zshcompletion_DATA = \
349 shell-completion/zsh/_systemctl \
350 shell-completion/zsh/_journalctl \
351 shell-completion/zsh/_udevadm \
352 shell-completion/zsh/_kernel-install \
353 shell-completion/zsh/_systemd-nspawn \
354 shell-completion/zsh/_systemd-analyze \
355 shell-completion/zsh/_systemd-run \
356 shell-completion/zsh/_sd_hosts_or_user_at_host \
357 shell-completion/zsh/_systemd-delta \
358 shell-completion/zsh/_systemd
361 sysctl.d/50-default.conf
363 dist_systemunit_DATA = \
364 units/graphical.target \
365 units/multi-user.target \
366 units/emergency.service \
367 units/emergency.target \
368 units/sysinit.target \
373 units/local-fs.target \
374 units/local-fs-pre.target \
375 units/initrd.target \
376 units/initrd-fs.target \
377 units/initrd-root-fs.target \
378 units/remote-fs.target \
379 units/remote-fs-pre.target \
380 units/network.target \
381 units/network-online.target \
382 units/nss-lookup.target \
383 units/nss-user-lookup.target \
384 units/hibernate.target \
385 units/hybrid-sleep.target \
386 units/poweroff.target \
387 units/reboot.target \
388 units/rescue.target \
389 units/rpcbind.target \
390 units/time-sync.target \
391 units/shutdown.target \
393 units/umount.target \
394 units/sigpwr.target \
396 units/sockets.target \
397 units/timers.target \
399 units/suspend.target \
401 units/slices.target \
404 units/systemd-initctl.socket \
405 units/systemd-shutdownd.socket \
406 units/syslog.socket \
407 units/dev-hugepages.mount \
408 units/dev-mqueue.mount \
409 units/sys-kernel-config.mount \
410 units/sys-kernel-debug.mount \
411 units/sys-fs-fuse-connections.mount \
413 units/printer.target \
415 units/bluetooth.target \
416 units/smartcard.target \
417 units/systemd-ask-password-wall.path \
418 units/systemd-ask-password-console.path \
419 units/systemd-udevd-control.socket \
420 units/systemd-udevd-kernel.socket \
421 units/system-update.target \
422 units/initrd-switch-root.target
424 nodist_systemunit_DATA = \
425 units/getty@.service \
426 units/serial-getty@.service \
427 units/console-shell.service \
428 units/console-getty.service \
429 units/container-getty@.service \
430 units/systemd-initctl.service \
431 units/systemd-shutdownd.service \
432 units/systemd-remount-fs.service \
433 units/systemd-update-utmp.service \
434 units/systemd-update-utmp-runlevel.service \
435 units/systemd-ask-password-wall.service \
436 units/systemd-ask-password-console.service \
437 units/systemd-sysctl.service \
438 units/emergency.service \
439 units/rescue.service \
440 units/user@.service \
441 units/systemd-hibernate.service \
442 units/systemd-hybrid-sleep.service \
443 units/systemd-suspend.service \
444 units/systemd-halt.service \
445 units/systemd-poweroff.service \
446 units/systemd-reboot.service \
447 units/systemd-kexec.service \
448 units/systemd-fsck@.service \
449 units/systemd-fsck-root.service \
450 units/systemd-udevd.service \
451 units/systemd-udev-trigger.service \
452 units/systemd-udev-settle.service \
453 units/debug-shell.service \
454 units/initrd-parse-etc.service \
455 units/initrd-cleanup.service \
456 units/initrd-udevadm-cleanup-db.service \
457 units/initrd-switch-root.service \
458 units/systemd-nspawn@.service
460 dist_userunit_DATA = \
461 units/user/default.target \
462 units/user/exit.target
464 nodist_userunit_DATA = \
465 units/user/systemd-exit.service
468 units/getty@.service.m4 \
469 units/serial-getty@.service.m4 \
470 units/console-shell.service.m4.in \
471 units/console-getty.service.m4.in \
472 units/container-getty@.service.m4.in \
473 units/rescue.service.m4.in \
474 units/systemd-initctl.service.in \
475 units/systemd-shutdownd.service.in \
476 units/systemd-remount-fs.service.in \
477 units/systemd-update-utmp.service.in \
478 units/systemd-update-utmp-runlevel.service.in \
479 units/systemd-ask-password-wall.service.in \
480 units/systemd-ask-password-console.service.in \
481 units/systemd-sysctl.service.in \
482 units/emergency.service.in \
483 units/systemd-halt.service.in \
484 units/systemd-poweroff.service.in \
485 units/systemd-reboot.service.in \
486 units/systemd-kexec.service.in \
487 units/user/systemd-exit.service.in \
488 units/systemd-fsck@.service.in \
489 units/systemd-fsck-root.service.in \
490 units/user@.service.in \
491 units/systemd-udevd.service \
492 units/systemd-udev-trigger.service \
493 units/systemd-udev-settle.service \
494 units/debug-shell.service.in \
495 units/systemd-hibernate.service.in \
496 units/systemd-hybrid-sleep.service.in \
497 units/systemd-suspend.service.in \
498 units/quotaon.service.in \
499 units/initrd-parse-etc.service.in \
500 units/initrd-cleanup.service.in \
501 units/initrd-udevadm-cleanup-db.service.in \
502 units/initrd-switch-root.service.in \
503 units/systemd-nspawn@.service.in
506 units/console-shell.service.m4 \
507 units/console-getty.service.m4 \
508 units/container-getty@.service.m4 \
509 units/rescue.service.m4
512 nodist_systemunit_DATA += \
513 units/rc-local.service \
514 units/halt-local.service
516 systemgenerator_PROGRAMS += \
517 systemd-rc-local-generator
521 units/rc-local.service.in \
522 units/halt-local.service.in
524 # automake is broken and can't handle files with a dash in front
525 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
527 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
529 units-uninstall-hook:
530 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
532 INSTALL_DATA_HOOKS += units-install-hook
533 UNINSTALL_DATA_HOOKS += units-uninstall-hook
543 @INTLTOOL_POLICY_RULE@
545 # ------------------------------------------------------------------------------
550 include Makefile-man.am
553 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
556 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
558 ${XML_FILES:.xml=.html}
560 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
577 $(AM_V_at)$(MKDIR_P) $(dir $@)
578 $(AM_V_LN)$(LN_S) -f ../../man $@
587 man/index.html: man/systemd.index.html
588 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
596 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
597 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
598 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
600 update-man-list: make-man-rules.py $(XML_GLOB)
601 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
602 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
603 @echo "Makefile-man.am has been regenerated"
605 man/systemd.index.xml: make-man-index.py $(NON_INDEX_XML_FILES)
606 $(AM_V_at)$(MKDIR_P) $(dir $@)
607 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
609 man/systemd.directives.xml: make-directive-index.py $(SOURCE_XML_FILES)
610 $(AM_V_at)$(MKDIR_P) $(dir $@)
611 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
614 man/systemd.index.xml \
616 man/systemd.directives.xml
619 man/systemd.index.xml \
620 man/systemd.directives.xml
632 make-directive-index.py \
635 # ------------------------------------------------------------------------------
636 noinst_LTLIBRARIES += \
639 libsystemd_rtnl_la_SOURCES = \
640 src/systemd/sd-rtnl.h \
641 src/libsystemd-rtnl/sd-rtnl.c \
642 src/libsystemd-rtnl/rtnl-internal.h \
643 src/libsystemd-rtnl/rtnl-message.c \
644 src/libsystemd-rtnl/rtnl-util.h \
645 src/libsystemd-rtnl/rtnl-util.c
647 test_rtnl_SOURCES = \
648 src/libsystemd-rtnl/test-rtnl.c
651 libsystemd-shared.la \
656 # ------------------------------------------------------------------------------
657 noinst_LTLIBRARIES += \
660 libsystemd_shared_la_SOURCES = \
661 src/shared/linux/auto_dev-ioctl.h \
662 src/shared/linux/fanotify.h \
663 src/shared/linux/seccomp.h \
664 src/shared/linux/seccomp-bpf.h \
665 src/shared/missing.h \
669 src/shared/device-nodes.c \
670 src/shared/device-nodes.h \
671 src/shared/sparse-endian.h \
674 src/shared/udev-util.h \
677 src/shared/efivars.c \
678 src/shared/efivars.h \
679 src/shared/path-util.c \
680 src/shared/path-util.h \
681 src/shared/time-util.c \
682 src/shared/time-util.h \
683 src/shared/hashmap.c \
684 src/shared/hashmap.h \
691 src/shared/sleep-config.c \
692 src/shared/sleep-config.h \
695 src/shared/env-util.c \
696 src/shared/env-util.h \
697 src/shared/strbuf.c \
698 src/shared/strbuf.h \
699 src/shared/strxcpyx.c \
700 src/shared/strxcpyx.h \
701 src/shared/conf-parser.c \
702 src/shared/conf-parser.h \
705 src/shared/ratelimit.h \
706 src/shared/ratelimit.c \
707 src/shared/exit-status.c \
708 src/shared/exit-status.h \
711 src/shared/gunicode.c \
712 src/shared/gunicode.h \
715 src/shared/ioprio.h \
716 src/shared/socket-util.c \
717 src/shared/socket-util.h \
718 src/shared/conf-files.c \
719 src/shared/conf-files.h \
720 src/shared/cgroup-util.c \
721 src/shared/cgroup-util.h \
722 src/shared/cgroup-show.c \
723 src/shared/cgroup-show.h \
724 src/shared/unit-name.c \
725 src/shared/unit-name.h \
726 src/shared/utmp-wtmp.c \
727 src/shared/utmp-wtmp.h \
728 src/shared/watchdog.c \
729 src/shared/watchdog.h \
730 src/shared/spawn-ask-password-agent.c \
731 src/shared/spawn-ask-password-agent.h \
732 src/shared/replace-var.c \
733 src/shared/replace-var.h \
734 src/shared/spawn-polkit-agent.c \
735 src/shared/spawn-polkit-agent.h \
736 src/shared/hwclock.c \
737 src/shared/hwclock.h \
738 src/shared/time-dst.c \
739 src/shared/time-dst.h \
740 src/shared/calendarspec.c \
741 src/shared/calendarspec.h \
742 src/shared/fileio.c \
743 src/shared/fileio.h \
744 src/shared/output-mode.h \
745 src/shared/MurmurHash3.c \
746 src/shared/MurmurHash3.h \
747 src/shared/acpi-fpdt.h \
748 src/shared/acpi-fpdt.c \
749 src/shared/boot-timestamps.h \
750 src/shared/boot-timestamps.c \
751 src/shared/refcnt.h \
754 src/shared/smack-util.c \
755 src/shared/smack-util.h \
756 src/shared/apparmor-util.c \
757 src/shared/apparmor-util.h \
758 src/shared/ima-util.c \
759 src/shared/ima-util.h \
760 src/shared/ptyfwd.c \
761 src/shared/ptyfwd.h \
762 src/shared/net-util.c \
763 src/shared/net-util.h
765 #-------------------------------------------------------------------------------
766 noinst_LTLIBRARIES += \
769 libsystemd_dbus_la_SOURCES = \
770 src/shared/dbus-common.c \
771 src/shared/dbus-common.h
773 libsystemd_dbus_la_CFLAGS = \
777 libsystemd_dbus_la_LIBADD = \
780 # ------------------------------------------------------------------------------
781 noinst_LTLIBRARIES += \
784 libsystemd_units_la_SOURCES = \
785 src/shared/install.c \
786 src/shared/install.h \
787 src/shared/install-printf.c \
788 src/shared/install-printf.h \
789 src/shared/path-lookup.c \
790 src/shared/path-lookup.h \
791 src/shared/specifier.c \
792 src/shared/specifier.h
794 libsystemd_units_la_CFLAGS = \
798 # ------------------------------------------------------------------------------
799 noinst_LTLIBRARIES += \
802 libsystemd_label_la_SOURCES = \
803 src/shared/socket-label.c \
806 src/shared/selinux-util.c \
807 src/shared/selinux-util.h \
808 src/shared/mkdir-label.c \
809 src/shared/ask-password-api.c \
810 src/shared/ask-password-api.h \
811 src/shared/fileio-label.c \
812 src/shared/fileio-label.h \
813 src/shared/dev-setup.c \
814 src/shared/dev-setup.h
816 libsystemd_label_la_CFLAGS = \
820 libsystemd_label_la_LIBADD = \
823 # ------------------------------------------------------------------------------
824 noinst_LTLIBRARIES += \
827 libsystemd_logs_la_SOURCES = \
828 src/shared/logs-show.c \
829 src/shared/logs-show.h
831 libsystemd_logs_la_LIBADD = \
832 libsystemd-journal-internal.la \
833 libsystemd-id128-internal.la \
836 # ------------------------------------------------------------------------------
837 noinst_LTLIBRARIES += \
838 libsystemd-capability.la
840 libsystemd_capability_la_SOURCES = \
841 src/shared/capability.c \
842 src/shared/capability.h
844 libsystemd_capability_la_CFLAGS = \
848 libsystemd_capability_la_LIBADD = \
851 # ------------------------------------------------------------------------------
852 noinst_LTLIBRARIES += \
855 libsystemd_audit_la_SOURCES = \
859 libsystemd_audit_la_LIBADD = \
860 libsystemd-capability.la
862 # ------------------------------------------------------------------------------
864 noinst_LTLIBRARIES += \
867 libsystemd_acl_la_SOURCES = \
868 src/shared/acl-util.c \
869 src/shared/acl-util.h
871 libsystemd_acl_la_CFLAGS = \
875 libsystemd_acl_la_LIBADD = \
880 # ------------------------------------------------------------------------------
881 noinst_LTLIBRARIES += \
884 libsystemd_core_la_SOURCES = \
887 src/core/unit-printf.c \
888 src/core/unit-printf.h \
893 src/core/transaction.c \
894 src/core/transaction.h \
895 src/core/load-fragment.c \
896 src/core/load-fragment.h \
899 src/core/automount.c \
900 src/core/automount.h \
909 src/core/snapshot.c \
910 src/core/snapshot.h \
921 src/core/load-dropin.c \
922 src/core/load-dropin.h \
929 src/core/dbus-manager.c \
930 src/core/dbus-manager.h \
931 src/core/dbus-unit.c \
932 src/core/dbus-unit.h \
933 src/core/dbus-job.c \
934 src/core/dbus-job.h \
935 src/core/dbus-service.c \
936 src/core/dbus-service.h \
937 src/core/dbus-socket.c \
938 src/core/dbus-socket.h \
939 src/core/dbus-timer.c \
940 src/core/dbus-timer.h \
941 src/core/dbus-target.c \
942 src/core/dbus-target.h \
943 src/core/dbus-mount.c \
944 src/core/dbus-mount.h \
945 src/core/dbus-automount.c \
946 src/core/dbus-automount.h \
947 src/core/dbus-swap.c \
948 src/core/dbus-swap.h \
949 src/core/dbus-snapshot.c \
950 src/core/dbus-snapshot.h \
951 src/core/dbus-device.c \
952 src/core/dbus-device.h \
953 src/core/dbus-path.c \
954 src/core/dbus-path.h \
955 src/core/dbus-slice.c \
956 src/core/dbus-slice.h \
957 src/core/dbus-scope.c \
958 src/core/dbus-scope.h \
959 src/core/dbus-execute.c \
960 src/core/dbus-execute.h \
961 src/core/dbus-kill.c \
962 src/core/dbus-kill.h \
963 src/core/dbus-cgroup.c \
964 src/core/dbus-cgroup.h \
967 src/core/selinux-access.c \
968 src/core/selinux-access.h \
969 src/core/selinux-setup.c \
970 src/core/selinux-setup.h \
971 src/core/smack-setup.c \
972 src/core/smack-setup.h \
973 src/core/ima-setup.c \
974 src/core/ima-setup.h \
975 src/core/locale-setup.h \
976 src/core/locale-setup.c \
977 src/core/hostname-setup.c \
978 src/core/hostname-setup.h \
979 src/core/machine-id-setup.c \
980 src/core/machine-id-setup.h \
981 src/core/mount-setup.c \
982 src/core/mount-setup.h \
983 src/core/loopback-setup.h \
984 src/core/loopback-setup.c \
985 src/core/condition.c \
986 src/core/condition.h \
987 src/core/namespace.c \
988 src/core/namespace.h \
991 src/core/securebits.h \
994 src/core/bus-errors.h \
996 src/core/sysfs-show.h \
997 src/core/switch-root.h \
998 src/core/switch-root.c \
1000 src/core/killall.c \
1001 src/core/syscall-list.c \
1002 src/core/syscall-list.h \
1003 src/core/audit-fd.c \
1004 src/core/audit-fd.h \
1009 libsystemd_core_la_SOURCES += \
1010 src/core/kmod-setup.c \
1011 src/core/kmod-setup.h
1014 nodist_libsystemd_core_la_SOURCES = \
1015 src/core/load-fragment-gperf.c \
1016 src/core/load-fragment-gperf-nulstr.c \
1017 src/core/syscall-from-name.h \
1018 src/core/syscall-to-name.h
1020 libsystemd_core_la_CFLAGS = \
1029 libsystemd_core_la_LIBADD = \
1030 libsystemd-capability.la \
1031 libsystemd-units.la \
1032 libsystemd-label.la \
1033 libsystemd-shared.la \
1034 libsystemd-dbus.la \
1035 libsystemd-audit.la \
1036 libsystemd-id128-internal.la \
1037 libsystemd-daemon.la \
1045 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1046 $(AM_V_at)$(MKDIR_P) $(dir $@)
1047 $(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 ";" }' < $< > $@
1050 src/core/load-fragment-gperf.gperf.m4
1053 src/core/load-fragment-gperf.gperf \
1054 src/core/load-fragment-gperf.c \
1055 src/core/load-fragment-gperf-nulstr.c \
1056 src/core/syscall-list.txt \
1057 src/core/syscall-from-name.gperf
1060 src/core/syscall-from-name.h \
1061 src/core/syscall-to-name.h
1063 src/core/syscall-list.txt: Makefile
1064 $(AM_V_at)$(MKDIR_P) $(dir $@)
1065 $(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); if ($$2 !~ /SYSCALL_BASE/) print $$2; }' > $@
1067 src/core/syscall-from-name.gperf: src/core/syscall-list.txt Makefile
1068 $(AM_V_at)$(MKDIR_P) $(dir $@)
1069 $(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 }' < $< > $@
1071 src/core/syscall-from-name.h: src/core/syscall-from-name.gperf Makefile
1072 $(AM_V_at)$(MKDIR_P) $(dir $@)
1073 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_syscall -H hash_syscall_name -p -C < $< > $@
1075 src/core/syscall-to-name.h: src/core/syscall-list.txt Makefile
1076 $(AM_V_at)$(MKDIR_P) $(dir $@)
1077 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const syscall_names[] = { "} { printf "[SYSCALL_TO_INDEX(__NR_%s)] = \"%s\",\n", $$1, $$1 } END{print "};"}' < $< > $@
1079 # ------------------------------------------------------------------------------
1088 libsystemd-core.la \
1089 libsystemd-daemon.la \
1090 libsystemd-id128-internal.la \
1093 dist_pkgsysconf_DATA += \
1094 src/core/system.conf \
1097 dist_dbuspolicy_DATA += \
1098 src/core/org.freedesktop.systemd1.conf
1100 dist_dbussystemservice_DATA += \
1101 src/core/org.freedesktop.systemd1.service
1103 polkitpolicy_in_in_files += \
1104 src/core/org.freedesktop.systemd1.policy.in.in
1106 pkgconfigdata_DATA = \
1109 nodist_rpmmacros_DATA = \
1110 src/core/macros.systemd
1113 src/core/systemd.pc.in \
1114 src/core/macros.systemd.in
1117 src/core/macros.systemd \
1118 src/core/org.freedesktop.systemd1.policy.in
1120 # ------------------------------------------------------------------------------
1150 test-strip-tab-ansi \
1161 test/sched_idle_bad.service \
1162 test/sched_idle_ok.service \
1163 test/sched_rr_bad.service \
1164 test/sched_rr_ok.service \
1165 test/sched_rr_change.service
1168 src/test/test-helper.h
1170 test_device_nodes_SOURCES = \
1171 src/test/test-device-nodes.c
1173 test_device_nodes_LDADD = \
1174 libsystemd-shared.la
1176 test_engine_SOURCES = \
1177 src/test/test-engine.c
1179 test_engine_CFLAGS = \
1183 test_engine_LDADD = \
1184 libsystemd-core.la \
1185 libsystemd-daemon.la \
1188 test_job_type_SOURCES = \
1189 src/test/test-job-type.c
1191 test_job_type_CFLAGS = \
1195 test_job_type_LDADD = \
1196 libsystemd-core.la \
1197 libsystemd-daemon.la
1209 test_loopback_SOURCES = \
1210 src/test/test-loopback.c
1212 test_loopback_LDADD = \
1213 libsystemd-shared.la \
1216 test_hostname_SOURCES = \
1217 src/test/test-hostname.c
1219 test_hostname_LDADD = \
1226 test_boot_timestamp_SOURCES = \
1227 src/test/test-boot-timestamps.c
1229 test_boot_timestamp_LDADD = \
1230 libsystemd-shared.la
1233 test_unit_name_SOURCES = \
1234 src/test/test-unit-name.c
1236 test_unit_name_CFLAGS = \
1240 test_unit_name_LDADD = \
1243 test_unit_file_SOURCES = \
1244 src/test/test-unit-file.c
1246 test_unit_file_CFLAGS = \
1250 test_unit_file_LDADD = \
1253 test_utf8_SOURCES = \
1254 src/test/test-utf8.c
1257 libsystemd-shared.la
1259 test_util_SOURCES = \
1260 src/test/test-util.c
1265 test_namespace_SOURCES = \
1266 src/test/test-namespace.c
1268 test_namespace_LDADD = \
1271 test_hashmap_SOURCES = \
1272 src/test/test-hashmap.c
1274 test_hashmap_LDADD = \
1277 test_list_SOURCES = \
1278 src/test/test-list.c
1283 test_tables_SOURCES = \
1284 src/test/test-tables.c \
1285 src/shared/test-tables.h
1287 test_tables_CFLAGS = \
1291 test_tables_LDADD = \
1292 libsystemd-core.la \
1295 test_prioq_SOURCES = \
1296 src/test/test-prioq.c
1298 test_prioq_LDADD = \
1301 test_fileio_SOURCES = \
1302 src/test/test-fileio.c
1304 test_fileio_LDADD = \
1307 test_time_SOURCES = \
1308 src/test/test-time.c
1313 test_log_SOURCES = \
1319 test_ellipsize_SOURCES = \
1320 src/test/test-ellipsize.c
1322 test_ellipsize_LDADD = \
1325 test_date_SOURCES = \
1326 src/test/test-date.c
1331 test_sleep_SOURCES = \
1332 src/test/test-sleep.c
1334 test_sleep_LDADD = \
1337 test_replace_var_SOURCES = \
1338 src/test/test-replace-var.c
1340 test_replace_var_LDADD = \
1341 libsystemd-shared.la
1343 test_calendarspec_SOURCES = \
1344 src/test/test-calendarspec.c
1346 test_calendarspec_LDADD = \
1347 libsystemd-shared.la
1349 test_strip_tab_ansi_SOURCES = \
1350 src/test/test-strip-tab-ansi.c
1352 test_strip_tab_ansi_LDADD = \
1353 libsystemd-shared.la
1355 test_daemon_SOURCES = \
1356 src/test/test-daemon.c
1358 test_daemon_LDADD = \
1359 libsystemd-shared.la \
1360 libsystemd-daemon.la
1362 test_cgroup_SOURCES = \
1363 src/test/test-cgroup.c
1365 test_cgroup_LDADD = \
1366 libsystemd-label.la \
1367 libsystemd-shared.la
1369 test_cgroup_util_SOURCES = \
1370 src/test/test-cgroup-util.c
1372 test_cgroup_util_LDADD = \
1373 libsystemd-label.la \
1374 libsystemd-shared.la \
1375 libsystemd-daemon.la
1377 test_env_replace_SOURCES = \
1378 src/test/test-env-replace.c
1380 test_env_replace_LDADD = \
1381 libsystemd-shared.la
1383 test_strbuf_SOURCES = \
1384 src/test/test-strbuf.c
1386 test_strbuf_LDADD = \
1387 libsystemd-shared.la
1389 test_strv_SOURCES = \
1390 src/test/test-strv.c
1393 libsystemd-shared.la \
1394 libsystemd-units.la \
1395 libsystemd-id128-internal.la
1397 test_path_util_SOURCES = \
1398 src/test/test-path-util.c
1400 test_path_util_LDADD = \
1401 libsystemd-shared.la
1403 test_strxcpyx_SOURCES = \
1404 src/test/test-strxcpyx.c
1406 test_strxcpyx_LDADD = \
1407 libsystemd-shared.la
1409 test_install_SOURCES = \
1410 src/test/test-install.c
1412 test_install_CFLAGS = \
1416 test_install_LDADD = \
1417 libsystemd-units.la \
1418 libsystemd-label.la \
1419 libsystemd-shared.la \
1420 libsystemd-id128-internal.la
1422 test_watchdog_SOURCES = \
1423 src/test/test-watchdog.c
1425 test_watchdog_LDADD = \
1426 libsystemd-shared.la
1428 test_sched_prio_SOURCES = \
1429 src/test/test-sched-prio.c
1431 test_sched_prio_CFLAGS = \
1434 -D"STR(s)=\#s" -D"TEST_DIR=STR($(abs_top_srcdir)/test/)"
1436 test_sched_prio_LDADD = \
1437 libsystemd-core.la \
1438 libsystemd-daemon.la
1440 # ------------------------------------------------------------------------------
1441 ## .PHONY so it always rebuilds it
1442 .PHONY: coverage lcov-run lcov-report
1444 # run lcov from scratch, always
1449 coverage_dir = coverage
1450 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1453 # reset run coverage tests
1455 @rm -rf $(coverage_dir)
1456 lcov $(coverage_opts) --zerocounters
1459 # generate report based on current coverage data
1461 $(MKDIR_P) $(coverage_dir)
1462 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1463 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1464 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1465 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1467 # lcov doesn't work properly with vpath builds, make sure that bad
1468 # output is not uploaded by mistake.
1469 coverage-sync: coverage
1470 test "$(builddir)" = "$(srcdir)"
1471 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1474 lcov-run lcov-report:
1475 echo "Need to reconfigure with --enable-coverage"
1478 # ------------------------------------------------------------------------------
1479 systemd_analyze_SOURCES = \
1480 src/analyze/analyze.c
1482 systemd_analyze_LDADD = \
1483 libsystemd-shared.la \
1484 libsystemd-bus-internal.la \
1485 libsystemd-id128-internal.la \
1486 libsystemd-daemon.la \
1487 libsystemd-shared.la
1489 # ------------------------------------------------------------------------------
1490 systemd_initctl_SOURCES = \
1491 src/initctl/initctl.c
1493 systemd_initctl_LDADD = \
1494 libsystemd-bus-internal.la \
1495 libsystemd-id128-internal.la \
1496 libsystemd-daemon-internal.la \
1497 libsystemd-shared.la
1499 # ------------------------------------------------------------------------------
1500 systemd_update_utmp_SOURCES = \
1501 src/update-utmp/update-utmp.c
1503 systemd_update_utmp_CFLAGS = \
1507 systemd_update_utmp_LDADD = \
1508 libsystemd-bus-internal.la \
1509 libsystemd-id128-internal.la \
1510 libsystemd-daemon-internal.la \
1511 libsystemd-shared.la \
1514 # ------------------------------------------------------------------------------
1515 systemd_shutdownd_SOURCES = \
1516 src/shutdownd/shutdownd.c
1518 systemd_shutdownd_LDADD = \
1519 libsystemd-label.la \
1520 libsystemd-shared.la \
1521 libsystemd-daemon.la
1523 pkginclude_HEADERS += \
1524 src/systemd/sd-shutdown.h
1526 # ------------------------------------------------------------------------------
1527 systemd_shutdown_SOURCES = \
1530 src/core/shutdown.c \
1531 src/core/mount-setup.c \
1532 src/core/mount-setup.h \
1533 src/core/killall.h \
1536 systemd_shutdown_LDADD = \
1537 libsystemd-label.la \
1538 libsystemd-shared.la \
1541 # ------------------------------------------------------------------------------
1543 systemd_modules_load_SOURCES = \
1544 src/modules-load/modules-load.c
1546 systemd_modules_load_CFLAGS = \
1550 systemd_modules_load_LDADD = \
1551 libsystemd-shared.la \
1554 rootlibexec_PROGRAMS += \
1555 systemd-modules-load
1557 nodist_systemunit_DATA += \
1558 units/systemd-modules-load.service
1560 SYSINIT_TARGET_WANTS += \
1561 systemd-modules-load.service
1564 nodist_systemunit_DATA += \
1565 units/kmod-static-nodes.service
1567 SYSINIT_TARGET_WANTS += \
1568 kmod-static-nodes.service
1573 units/systemd-modules-load.service.in \
1574 units/kmod-static-nodes.service.in
1576 # ------------------------------------------------------------------------------
1578 systemd_tmpfiles_SOURCES = \
1579 src/tmpfiles/tmpfiles.c \
1580 src/shared/specifier.c \
1581 src/shared/specifier.h
1583 systemd_tmpfiles_LDADD = \
1584 libsystemd-label.la \
1585 libsystemd-shared.la \
1586 libsystemd-capability.la \
1587 libsystemd-id128-internal.la
1589 rootbin_PROGRAMS += \
1592 dist_systemunit_DATA += \
1593 units/systemd-tmpfiles-clean.timer
1595 nodist_systemunit_DATA += \
1596 units/systemd-tmpfiles-setup-dev.service \
1597 units/systemd-tmpfiles-setup.service \
1598 units/systemd-tmpfiles-clean.service
1600 dist_tmpfiles_DATA = \
1601 tmpfiles.d/systemd.conf \
1602 tmpfiles.d/tmp.conf \
1606 dist_tmpfiles_DATA += \
1607 tmpfiles.d/legacy.conf
1610 SYSINIT_TARGET_WANTS += \
1611 systemd-tmpfiles-setup-dev.service \
1612 systemd-tmpfiles-setup.service
1614 dist_zshcompletion_DATA += \
1615 shell-completion/zsh/_systemd-tmpfiles
1617 TIMERS_TARGET_WANTS += \
1618 systemd-tmpfiles-clean.timer
1622 $(sysconfdir)/tmpfiles.d
1626 units/systemd-tmpfiles-setup-dev.service.in \
1627 units/systemd-tmpfiles-setup.service.in \
1628 units/systemd-tmpfiles-clean.service.in
1630 # ------------------------------------------------------------------------------
1631 systemd_machine_id_setup_SOURCES = \
1632 src/machine-id-setup/machine-id-setup-main.c \
1633 src/core/machine-id-setup.c \
1634 src/core/machine-id-setup.h
1636 systemd_machine_id_setup_LDADD = \
1637 libsystemd-label.la \
1638 libsystemd-shared.la \
1639 libsystemd-id128-internal.la
1641 # ------------------------------------------------------------------------------
1642 systemd_sysctl_SOURCES = \
1645 systemd_sysctl_LDADD = \
1646 libsystemd-shared.la
1648 # ------------------------------------------------------------------------------
1649 systemd_sleep_SOURCES = \
1652 systemd_sleep_LDADD = \
1653 libsystemd-shared.la
1655 # ------------------------------------------------------------------------------
1656 systemd_fsck_SOURCES = \
1659 systemd_fsck_LDADD = \
1660 libsystemd-bus-internal.la \
1661 libsystemd-id128-internal.la \
1662 libsystemd-daemon-internal.la \
1663 libsystemd-shared.la \
1666 # ------------------------------------------------------------------------------
1667 systemd_ac_power_SOURCES = \
1668 src/ac-power/ac-power.c
1670 systemd_ac_power_LDADD = \
1671 libsystemd-shared.la \
1674 # ------------------------------------------------------------------------------
1675 systemd_detect_virt_SOURCES = \
1676 src/detect-virt/detect-virt.c
1678 systemd_detect_virt_LDADD = \
1679 libsystemd-shared.la
1681 systemd-detect-virt-install-hook:
1682 -$(SETCAP) cap_dac_override,cap_sys_ptrace=ep $(DESTDIR)$(bindir)/systemd-detect-virt
1684 INSTALL_EXEC_HOOKS += \
1685 systemd-detect-virt-install-hook
1687 # ------------------------------------------------------------------------------
1688 systemd_delta_SOURCES = \
1691 systemd_delta_LDADD = \
1692 libsystemd-shared.la
1694 # ------------------------------------------------------------------------------
1695 systemd_getty_generator_SOURCES = \
1696 src/getty-generator/getty-generator.c
1698 systemd_getty_generator_LDADD = \
1699 libsystemd-label.la \
1700 libsystemd-shared.la
1702 # ------------------------------------------------------------------------------
1703 systemd_fstab_generator_SOURCES = \
1704 src/fstab-generator/fstab-generator.c \
1705 src/core/mount-setup.c
1707 systemd_fstab_generator_LDADD = \
1708 libsystemd-label.la \
1709 libsystemd-shared.la
1711 # ------------------------------------------------------------------------------
1712 systemd_system_update_generator_SOURCES = \
1713 src/system-update-generator/system-update-generator.c
1715 systemd_system_update_generator_LDADD = \
1716 libsystemd-label.la \
1717 libsystemd-shared.la
1720 # ------------------------------------------------------------------------------
1721 systemgenerator_PROGRAMS += \
1722 systemd-efi-boot-generator
1724 systemd_efi_boot_generator_SOURCES = \
1725 src/efi-boot-generator/efi-boot-generator.c
1727 systemd_efi_boot_generator_LDADD = \
1728 libsystemd-label.la \
1729 libsystemd-shared.la
1731 # ------------------------------------------------------------------------------
1734 src/boot/boot-loader.h \
1735 src/boot/bootctl.c \
1736 src/boot/boot-loader.c \
1740 libsystemd-shared.la \
1741 libsystemd-id128.la \
1742 libsystemd-daemon.la
1748 # ------------------------------------------------------------------------------
1750 systemgenerator_PROGRAMS += \
1751 systemd-gpt-auto-generator
1753 systemd_gpt_auto_generator_SOURCES = \
1754 src/gpt-auto-generator/gpt-auto-generator.c
1756 systemd_gpt_auto_generator_LDADD = \
1757 libsystemd-label.la \
1758 libsystemd-shared.la \
1759 libsystemd-id128-internal.la \
1760 libudev-private.la \
1763 systemd_gpt_auto_generator_CFLAGS = \
1768 # ------------------------------------------------------------------------------
1769 systemd_rc_local_generator_SOURCES = \
1770 src/rc-local-generator/rc-local-generator.c
1772 systemd_rc_local_generator_LDADD = \
1773 libsystemd-label.la \
1774 libsystemd-shared.la
1776 # ------------------------------------------------------------------------------
1777 systemd_remount_fs_SOURCES = \
1778 src/remount-fs/remount-fs.c \
1779 src/core/mount-setup.c \
1780 src/core/mount-setup.h
1782 systemd_remount_fs_LDADD = \
1783 libsystemd-label.la \
1784 libsystemd-shared.la
1786 # ------------------------------------------------------------------------------
1787 systemd_cgroups_agent_SOURCES = \
1788 src/cgroups-agent/cgroups-agent.c
1790 systemd_cgroups_agent_LDADD = \
1791 libsystemd-bus-internal.la \
1792 libsystemd-id128-internal.la \
1793 libsystemd-daemon-internal.la \
1794 libsystemd-shared.la
1796 # ------------------------------------------------------------------------------
1797 systemctl_SOURCES = \
1798 src/systemctl/systemctl.c
1800 systemctl_CFLAGS = \
1805 libsystemd-units.la \
1806 libsystemd-label.la \
1807 libsystemd-shared.la \
1808 libsystemd-daemon.la \
1809 libsystemd-dbus.la \
1812 # ------------------------------------------------------------------------------
1813 systemd_notify_SOURCES = \
1814 src/notify/notify.c \
1815 src/readahead/sd-readahead.c
1817 systemd_notify_LDADD = \
1818 libsystemd-shared.la \
1819 libsystemd-daemon.la
1821 # ------------------------------------------------------------------------------
1822 systemd_ask_password_SOURCES = \
1823 src/ask-password/ask-password.c
1825 systemd_ask_password_LDADD = \
1826 libsystemd-label.la \
1827 libsystemd-shared.la
1829 # ------------------------------------------------------------------------------
1830 systemd_reply_password_SOURCES = \
1831 src/reply-password/reply-password.c
1833 systemd_reply_password_LDADD = \
1834 libsystemd-shared.la
1836 # ------------------------------------------------------------------------------
1837 systemd_cgls_SOURCES = \
1840 systemd_cgls_LDADD = \
1841 libsystemd-shared.la
1843 # ------------------------------------------------------------------------------
1844 systemd_cgtop_SOURCES = \
1847 systemd_cgtop_LDADD = \
1848 libsystemd-shared.la
1850 # ------------------------------------------------------------------------------
1851 systemd_nspawn_SOURCES = \
1852 src/nspawn/nspawn.c \
1853 src/core/mount-setup.c \
1854 src/core/mount-setup.h \
1855 src/core/loopback-setup.c \
1856 src/core/loopback-setup.h
1858 systemd_nspawn_LDADD = \
1859 libsystemd-label.la \
1860 libsystemd-capability.la \
1861 libsystemd-bus-internal.la \
1862 libsystemd-id128-internal.la \
1863 libsystemd-shared.la \
1864 libsystemd-daemon.la
1866 # ------------------------------------------------------------------------------
1867 systemd_run_SOURCES = \
1870 systemd_run_LDADD = \
1871 libsystemd-label.la \
1872 libsystemd-capability.la \
1873 libsystemd-bus-internal.la \
1874 libsystemd-shared.la \
1875 libsystemd-daemon.la \
1876 libsystemd-id128-internal.la
1878 # ------------------------------------------------------------------------------
1879 systemd_stdio_bridge_SOURCES = \
1880 src/stdio-bridge/stdio-bridge.c
1882 systemd_stdio_bridge_LDADD = \
1883 libsystemd-shared.la \
1885 libsystemd-daemon.la
1887 # ------------------------------------------------------------------------------
1888 systemd_tty_ask_password_agent_SOURCES = \
1889 src/tty-ask-password-agent/tty-ask-password-agent.c
1891 systemd_tty_ask_password_agent_LDADD = \
1892 libsystemd-label.la \
1893 libsystemd-shared.la
1895 # ------------------------------------------------------------------------------
1896 libsystemd_daemon_la_SOURCES = \
1897 src/libsystemd-daemon/sd-daemon.c
1899 libsystemd_daemon_internal_la_SOURCES = \
1900 $(libsystemd_daemon_la_SOURCES)
1902 libsystemd_daemon_la_CFLAGS = \
1904 -fvisibility=hidden \
1907 libsystemd_daemon_la_LDFLAGS = \
1909 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
1910 -Wl,--version-script=$(top_srcdir)/src/libsystemd-daemon/libsystemd-daemon.sym
1912 libsystemd_daemon_la_LIBADD = \
1915 pkginclude_HEADERS += \
1916 src/systemd/sd-daemon.h
1918 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1919 libsystemd-daemon-install-hook:
1920 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
1922 libsystemd-daemon-uninstall-hook:
1923 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
1925 INSTALL_EXEC_HOOKS += libsystemd-daemon-install-hook
1926 UNINSTALL_EXEC_HOOKS += libsystemd-daemon-uninstall-hook
1928 lib_LTLIBRARIES += \
1929 libsystemd-daemon.la
1931 noinst_LTLIBRARIES += \
1932 libsystemd-daemon-internal.la
1934 pkgconfiglib_DATA += \
1935 src/libsystemd-daemon/libsystemd-daemon.pc
1938 src/libsystemd-daemon/libsystemd-daemon.pc.in \
1939 src/libsystemd-daemon/libsystemd-daemon.sym
1941 # ------------------------------------------------------------------------------
1942 libsystemd_event_la_SOURCES = \
1943 src/libsystemd-bus/sd-event.c \
1944 src/systemd/sd-event.h \
1945 src/libsystemd-bus/event-util.h
1947 libsystemd_event_la_LDFLAGS = \
1949 -version-info $(LIBSYSTEMD_EVENT_CURRENT):$(LIBSYSTEMD_EVENT_REVISION):$(LIBSYSTEMD_EVENT_AGE) \
1950 -Wl,--version-script=$(top_srcdir)/src/libsystemd-bus/libsystemd-event.sym
1953 src/libsystemd-bus/libsystemd-event.sym
1955 lib_LTLIBRARIES += \
1958 libsystemd_event_la_LIBADD = \
1959 libsystemd-id128-internal.la \
1960 libsystemd-shared.la
1962 libsystemd_bus_la_SOURCES = \
1963 src/systemd/sd-bus.h \
1964 src/systemd/sd-bus-protocol.h \
1965 src/systemd/sd-bus-vtable.h \
1966 src/systemd/sd-memfd.h \
1967 src/systemd/sd-utf8.h \
1968 src/libsystemd-bus/sd-bus.c \
1969 src/libsystemd-bus/bus-control.c \
1970 src/libsystemd-bus/bus-control.h \
1971 src/libsystemd-bus/bus-error.c \
1972 src/libsystemd-bus/bus-error.h \
1973 src/libsystemd-bus/bus-internal.c \
1974 src/libsystemd-bus/bus-internal.h \
1975 src/libsystemd-bus/bus-socket.c \
1976 src/libsystemd-bus/bus-socket.h \
1977 src/libsystemd-bus/bus-kernel.c \
1978 src/libsystemd-bus/bus-kernel.h \
1979 src/libsystemd-bus/bus-container.c \
1980 src/libsystemd-bus/bus-container.h \
1981 src/libsystemd-bus/bus-message.c \
1982 src/libsystemd-bus/bus-message.h \
1983 src/libsystemd-bus/bus-signature.c \
1984 src/libsystemd-bus/bus-signature.h \
1985 src/libsystemd-bus/bus-type.c \
1986 src/libsystemd-bus/bus-type.h \
1987 src/libsystemd-bus/bus-match.c \
1988 src/libsystemd-bus/bus-match.h \
1989 src/libsystemd-bus/bus-bloom.c \
1990 src/libsystemd-bus/bus-bloom.h \
1991 src/libsystemd-bus/bus-introspect.c \
1992 src/libsystemd-bus/bus-introspect.h \
1993 src/libsystemd-bus/bus-objects.c \
1994 src/libsystemd-bus/bus-objects.h \
1995 src/libsystemd-bus/bus-convenience.c \
1996 src/libsystemd-bus/kdbus.h \
1997 src/libsystemd-bus/sd-memfd.c \
1998 src/libsystemd-bus/bus-util.c \
1999 src/libsystemd-bus/bus-util.h \
2000 src/libsystemd-bus/sd-utf8.c
2002 libsystemd_bus_la_LIBADD = \
2003 libsystemd-id128-internal.la \
2004 libsystemd-shared.la \
2005 libsystemd-daemon.la \
2008 libsystemd_bus_la_CFLAGS = \
2012 libsystemd_bus_la_LDFLAGS = \
2014 -version-info $(LIBSYSTEMD_BUS_CURRENT):$(LIBSYSTEMD_BUS_REVISION):$(LIBSYSTEMD_BUS_AGE) \
2015 -Wl,--version-script=$(top_srcdir)/src/libsystemd-bus/libsystemd-bus.sym
2018 src/libsystemd-bus/libsystemd-bus.sym
2020 lib_LTLIBRARIES += \
2023 libsystemd_bus_internal_la_SOURCES = \
2024 $(libsystemd_bus_la_SOURCES) \
2025 $(libsystemd_event_la_SOURCES)
2027 libsystemd_bus_internal_la_CFLAGS = \
2028 $(libsystemd_bus_la_CFLAGS)
2030 noinst_LTLIBRARIES += \
2031 libsystemd-bus-internal.la
2035 test-bus-signature \
2040 test-bus-kernel-bloom \
2041 test-bus-kernel-benchmark \
2043 test-bus-zero-copy \
2044 test-bus-introspect \
2048 noinst_PROGRAMS += \
2051 test_bus_marshal_SOURCES = \
2052 src/libsystemd-bus/test-bus-marshal.c
2054 test_bus_marshal_LDADD = \
2055 libsystemd-bus-internal.la \
2056 libsystemd-id128-internal.la \
2057 libsystemd-shared.la \
2058 libsystemd-daemon.la \
2062 test_bus_marshal_CFLAGS = \
2067 test_bus_signature_SOURCES = \
2068 src/libsystemd-bus/test-bus-signature.c
2070 test_bus_signature_LDADD = \
2071 libsystemd-shared.la \
2072 libsystemd-bus-internal.la
2074 test_bus_chat_SOURCES = \
2075 src/libsystemd-bus/test-bus-chat.c
2077 test_bus_chat_CFLAGS = \
2081 test_bus_chat_LDADD = \
2082 libsystemd-bus-internal.la \
2083 libsystemd-id128-internal.la \
2084 libsystemd-daemon-internal.la \
2085 libsystemd-shared.la
2087 test_bus_server_SOURCES = \
2088 src/libsystemd-bus/test-bus-server.c
2090 test_bus_server_CFLAGS = \
2094 test_bus_server_LDADD = \
2095 libsystemd-bus-internal.la \
2096 libsystemd-id128-internal.la \
2097 libsystemd-daemon-internal.la \
2098 libsystemd-shared.la
2100 test_bus_objects_SOURCES = \
2101 src/libsystemd-bus/test-bus-objects.c
2103 test_bus_objects_CFLAGS = \
2107 test_bus_objects_LDADD = \
2108 libsystemd-bus-internal.la \
2109 libsystemd-id128-internal.la \
2110 libsystemd-daemon-internal.la \
2111 libsystemd-shared.la
2113 test_bus_match_SOURCES = \
2114 src/libsystemd-bus/test-bus-match.c
2116 test_bus_match_LDADD = \
2117 libsystemd-bus-internal.la \
2118 libsystemd-id128-internal.la \
2119 libsystemd-daemon-internal.la \
2120 libsystemd-shared.la
2122 test_bus_kernel_SOURCES = \
2123 src/libsystemd-bus/test-bus-kernel.c
2125 test_bus_kernel_LDADD = \
2126 libsystemd-bus-internal.la \
2127 libsystemd-id128-internal.la \
2128 libsystemd-daemon-internal.la \
2129 libsystemd-shared.la
2131 test_bus_kernel_bloom_SOURCES = \
2132 src/libsystemd-bus/test-bus-kernel-bloom.c
2134 test_bus_kernel_bloom_LDADD = \
2135 libsystemd-bus-internal.la \
2136 libsystemd-id128-internal.la \
2137 libsystemd-daemon-internal.la \
2138 libsystemd-shared.la
2140 test_bus_kernel_benchmark_SOURCES = \
2141 src/libsystemd-bus/test-bus-kernel-benchmark.c
2143 test_bus_kernel_benchmark_LDADD = \
2144 libsystemd-bus-internal.la \
2145 libsystemd-id128-internal.la \
2146 libsystemd-daemon-internal.la \
2147 libsystemd-shared.la
2149 test_bus_memfd_SOURCES = \
2150 src/libsystemd-bus/test-bus-memfd.c
2152 test_bus_memfd_LDADD = \
2153 libsystemd-shared.la \
2154 libsystemd-bus-internal.la
2156 test_bus_zero_copy_SOURCES = \
2157 src/libsystemd-bus/test-bus-zero-copy.c
2159 test_bus_zero_copy_LDADD = \
2160 libsystemd-bus-internal.la \
2161 libsystemd-id128-internal.la \
2162 libsystemd-daemon-internal.la \
2163 libsystemd-shared.la
2165 test_bus_introspect_SOURCES = \
2166 src/libsystemd-bus/test-bus-introspect.c
2168 test_bus_introspect_LDADD = \
2169 libsystemd-shared.la \
2170 libsystemd-bus-internal.la
2172 test_event_SOURCES = \
2173 src/libsystemd-bus/test-event.c
2175 test_event_LDADD = \
2176 libsystemd-bus-internal.la \
2177 libsystemd-id128-internal.la \
2178 libsystemd-daemon-internal.la \
2179 libsystemd-shared.la
2182 src/libsystemd-bus/busctl.c
2185 libsystemd-bus-internal.la \
2186 libsystemd-id128-internal.la \
2187 libsystemd-daemon-internal.la \
2188 libsystemd-shared.la
2190 # ------------------------------------------------------------------------------
2200 include_HEADERS += \
2201 src/libudev/libudev.h
2203 lib_LTLIBRARIES += \
2206 libudev_la_SOURCES =\
2207 src/libudev/libudev-private.h \
2208 src/libudev/libudev.c \
2209 src/libudev/libudev-list.c \
2210 src/libudev/libudev-util.c \
2211 src/libudev/libudev-device.c \
2212 src/libudev/libudev-enumerate.c \
2213 src/libudev/libudev-monitor.c \
2214 src/libudev/libudev-queue.c \
2215 src/libudev/libudev-hwdb-def.h \
2216 src/libudev/libudev-hwdb.c
2218 libudev_la_CFLAGS = \
2222 libudev_la_LDFLAGS = \
2224 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
2225 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
2227 libudev_la_LIBADD = \
2228 libsystemd-shared.la \
2229 libsystemd-daemon-internal.la \
2230 libsystemd-id128-internal.la
2232 pkgconfiglib_DATA += \
2233 src/libudev/libudev.pc
2236 src/libudev/libudev.pc.in \
2237 src/libudev/libudev.sym
2240 src/libudev/libudev.pc \
2245 $(AM_V_at)$(MKDIR_P) $(dir $@)
2246 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
2249 $(AM_V_at)$(MKDIR_P) $(dir $@)
2250 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
2252 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2253 libudev-install-hook:
2254 libname=libudev.so && $(move-to-rootlibdir)
2256 libudev-uninstall-hook:
2257 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
2259 INSTALL_EXEC_HOOKS += libudev-install-hook
2260 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
2262 # ------------------------------------------------------------------------------
2263 noinst_LTLIBRARIES += \
2266 libudev_private_la_SOURCES =\
2267 $(libudev_la_SOURCES) \
2268 src/libudev/libudev-device-private.c \
2269 src/libudev/libudev-queue-private.c
2271 libudev_private_la_CFLAGS = \
2273 -fvisibility=default
2275 libudev_private_la_LIBADD = \
2276 libsystemd-shared.la
2278 # ------------------------------------------------------------------------------
2280 $(sysconfdir)/udev/rules.d \
2281 $(sysconfdir)/udev/hwdb.d
2283 dist_network_DATA = \
2284 network/99-default.link
2286 dist_udevrules_DATA += \
2287 rules/99-systemd.rules \
2288 rules/42-usb-hid-pm.rules \
2289 rules/50-udev-default.rules \
2290 rules/60-drm.rules \
2291 rules/60-keyboard.rules \
2292 rules/60-persistent-storage-tape.rules \
2293 rules/60-persistent-serial.rules \
2294 rules/60-persistent-input.rules \
2295 rules/60-persistent-alsa.rules \
2296 rules/60-persistent-storage.rules \
2297 rules/64-btrfs.rules \
2298 rules/75-net-description.rules \
2299 rules/75-tty-description.rules \
2300 rules/78-sound-card.rules \
2301 rules/80-net-setup-link.rules \
2302 rules/95-udev-late.rules
2304 dist_udevhwdb_DATA = \
2305 hwdb/20-pci-vendor-model.hwdb \
2306 hwdb/20-pci-classes.hwdb \
2307 hwdb/20-usb-vendor-model.hwdb \
2308 hwdb/20-usb-classes.hwdb \
2309 hwdb/20-bluetooth-vendor-product.hwdb \
2310 hwdb/20-acpi-vendor.hwdb \
2312 hwdb/60-keyboard.hwdb
2314 udevconfdir = $(sysconfdir)/udev
2315 dist_udevconf_DATA = \
2318 sharepkgconfigdir = $(datadir)/pkgconfig
2319 sharepkgconfig_DATA = \
2323 rules/99-systemd.rules.in \
2327 rules/99-systemd.rules \
2331 units/systemd-udevd.service.in \
2332 units/systemd-udev-trigger.service.in \
2333 units/systemd-udev-settle.service.in
2336 units/systemd-udevd.service \
2337 units/systemd-udev-trigger.service \
2338 units/systemd-udev-settle.service
2340 SOCKETS_TARGET_WANTS += \
2341 systemd-udevd-control.socket \
2342 systemd-udevd-kernel.socket
2343 SYSINIT_TARGET_WANTS += \
2344 systemd-udevd.service \
2345 systemd-udev-trigger.service
2347 rootbin_PROGRAMS += \
2350 rootlibexec_PROGRAMS += \
2353 noinst_LTLIBRARIES += \
2356 src/udev/keyboard-keys.txt: Makefile
2357 $(AM_V_at)$(MKDIR_P) $(dir $@)
2358 $(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/' > $@
2360 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt Makefile
2361 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
2363 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf Makefile
2364 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
2366 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt Makefile
2367 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
2369 libudev_core_la_SOURCES = \
2371 src/udev/udev-event.c \
2372 src/udev/udev-watch.c \
2373 src/udev/udev-node.c \
2374 src/udev/udev-rules.c \
2375 src/udev/udev-ctrl.c \
2376 src/udev/udev-builtin.c \
2377 src/udev/udev-builtin-btrfs.c \
2378 src/udev/udev-builtin-hwdb.c \
2379 src/udev/udev-builtin-input_id.c \
2380 src/udev/udev-builtin-keyboard.c \
2381 src/udev/udev-builtin-net_id.c \
2382 src/udev/udev-builtin-net_setup_link.c \
2383 src/udev/udev-builtin-path_id.c \
2384 src/udev/udev-builtin-usb_id.c \
2385 src/udev/net/link-config.h \
2386 src/udev/net/link-config.c \
2387 src/udev/net/ethtool-util.h \
2388 src/udev/net/ethtool-util.c
2390 nodist_libudev_core_la_SOURCES = \
2391 src/udev/keyboard-keys-from-name.h \
2392 src/udev/keyboard-keys-to-name.h \
2393 src/udev/net/link-config-gperf.c
2396 $(nodist_libudev_core_la_SOURCES)
2399 src/udev/keyboard-keys-from-name.gperf \
2400 src/udev/keyboard-keys.txt \
2401 src/udev/net/link-config-gperf.c
2404 src/udev/net/link-config-gperf.gperf
2406 libudev_core_la_CFLAGS = \
2411 libudev_core_la_LIBADD = \
2412 libudev-private.la \
2413 libsystemd-label.la \
2414 libsystemd-daemon-internal.la \
2415 libsystemd-shared.la \
2416 libsystemd-rtnl.la \
2417 libsystemd-id128-internal.la \
2421 libudev_core_la_CPPFLAGS = \
2423 -DFIRMWARE_PATH="$(FIRMWARE_PATH)"
2426 libudev_core_la_SOURCES += \
2427 src/udev/udev-builtin-firmware.c
2429 dist_udevrules_DATA += \
2430 rules/50-firmware.rules
2434 libudev_core_la_SOURCES += \
2435 src/udev/udev-builtin-kmod.c
2437 dist_udevrules_DATA += \
2438 rules/80-drivers.rules
2442 libudev_core_la_SOURCES += \
2443 src/udev/udev-builtin-blkid.c
2447 libudev_core_la_SOURCES += \
2448 src/udev/udev-builtin-uaccess.c \
2449 src/login/logind-acl.c \
2450 src/login/sd-login.c \
2451 src/systemd/sd-login.h \
2452 src/login/login-shared.c \
2453 src/login/login-shared.h
2455 libudev_core_la_LIBADD += \
2459 systemd_udevd_SOURCES = \
2462 systemd_udevd_LDADD = \
2466 src/udev/udevadm.c \
2467 src/udev/udevadm-info.c \
2468 src/udev/udevadm-control.c \
2469 src/udev/udevadm-monitor.c \
2470 src/udev/udevadm-hwdb.c \
2471 src/udev/udevadm-settle.c \
2472 src/udev/udevadm-trigger.c \
2473 src/udev/udevadm-test.c \
2474 src/udev/udevadm-test-builtin.c
2478 libsystemd-label.la \
2479 libsystemd-shared.la
2481 # Update hwdb on installation. Do not bother if installing
2482 # in DESTDIR, since this is likely for packaging purposes.
2484 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
2486 INSTALL_DATA_HOOKS += \
2490 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
2492 # ------------------------------------------------------------------------------
2501 test_libudev_SOURCES = \
2502 src/test/test-libudev.c
2504 test_libudev_LDADD = \
2505 libsystemd-label.la \
2506 libsystemd-shared.la \
2509 test_udev_SOURCES = \
2510 src/test/test-udev.c
2514 libsystemd-shared.la \
2520 test_udev_LDADD += \
2527 # packed sysfs test tree
2529 $(AM_V_at)$(MKDIR_P) $(dir $@)
2530 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
2534 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
2539 test/rules-test.sh \
2540 test/rule-syntax-check.py
2542 # ------------------------------------------------------------------------------
2544 src/udev/ata_id/ata_id.c
2547 libudev-private.la \
2548 libsystemd-shared.la
2550 udevlibexec_PROGRAMS += \
2553 # ------------------------------------------------------------------------------
2554 cdrom_id_SOURCES = \
2555 src/udev/cdrom_id/cdrom_id.c
2559 libsystemd-shared.la
2561 udevlibexec_PROGRAMS += \
2564 dist_udevrules_DATA += \
2565 rules/60-cdrom_id.rules
2567 # ------------------------------------------------------------------------------
2569 src/udev/collect/collect.c
2574 udevlibexec_PROGRAMS += \
2577 # ------------------------------------------------------------------------------
2579 src/udev/scsi_id/scsi_id.c \
2580 src/udev/scsi_id/scsi_serial.c \
2581 src/udev/scsi_id/scsi.h \
2582 src/udev/scsi_id/scsi_id.h
2585 libudev-private.la \
2586 libsystemd-shared.la
2588 udevlibexec_PROGRAMS += \
2592 src/udev/scsi_id/README
2594 # ------------------------------------------------------------------------------
2596 src/udev/v4l_id/v4l_id.c
2601 udevlibexec_PROGRAMS += \
2604 dist_udevrules_DATA += \
2605 rules/60-persistent-v4l.rules
2607 # ------------------------------------------------------------------------------
2608 accelerometer_SOURCES = \
2609 src/udev/accelerometer/accelerometer.c
2611 accelerometer_LDADD = \
2613 libsystemd-shared.la
2615 udevlibexec_PROGRAMS += \
2618 dist_udevrules_DATA += \
2619 rules/61-accelerometer.rules
2621 # ------------------------------------------------------------------------------
2628 libgudev_includedir = \
2629 $(includedir)/gudev-1.0/gudev
2631 libgudev_include_HEADERS = \
2633 src/gudev/gudevenums.h \
2634 src/gudev/gudevenumtypes.h \
2635 src/gudev/gudevtypes.h \
2636 src/gudev/gudevclient.h \
2637 src/gudev/gudevdevice.h \
2638 src/gudev/gudevenumerator.h
2640 lib_LTLIBRARIES += libgudev-1.0.la
2642 pkgconfiglib_DATA += \
2643 src/gudev/gudev-1.0.pc
2646 src/gudev/gudev-1.0.pc
2648 libgudev_1_0_la_SOURCES = \
2649 src/gudev/gudevenums.h \
2650 src/gudev/gudevenumtypes.h \
2651 src/gudev/gudevenumtypes.h\
2652 src/gudev/gudevtypes.h \
2653 src/gudev/gudevclient.h \
2654 src/gudev/gudevclient.c \
2655 src/gudev/gudevdevice.h \
2656 src/gudev/gudevdevice.c \
2657 src/gudev/gudevenumerator.h \
2658 src/gudev/gudevenumerator.c \
2659 src/gudev/gudevprivate.h
2661 nodist_libgudev_1_0_la_SOURCES = \
2662 src/gudev/gudevmarshal.h \
2663 src/gudev/gudevmarshal.c \
2664 src/gudev/gudevenumtypes.h \
2665 src/gudev/gudevenumtypes.c
2668 $(nodist_libgudev_1_0_la_SOURCES)
2670 libgudev_1_0_la_CPPFLAGS = \
2672 -I$(top_builddir)/src\
2673 -I$(top_srcdir)/src\
2674 -I$(top_builddir)/src/gudev \
2675 -I$(top_srcdir)/src/gudev \
2676 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
2677 -D_GUDEV_COMPILATION \
2678 -DG_LOG_DOMAIN=\"GUdev\"
2680 libgudev_1_0_la_CFLAGS = \
2682 -fvisibility=default \
2685 libgudev_1_0_la_LIBADD = \
2689 libgudev_1_0_la_LDFLAGS = \
2691 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
2692 -export-dynamic -no-undefined \
2693 -export-symbols-regex '^g_udev_.*'
2695 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
2696 $(AM_V_at)$(MKDIR_P) $(dir $@)
2697 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
2699 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
2700 $(AM_V_at)$(MKDIR_P) $(dir $@)
2701 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
2702 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
2704 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
2705 $(AM_V_at)$(MKDIR_P) $(dir $@)
2706 $(AM_V_GEN)glib-mkenums --template $^ > $@
2708 if HAVE_INTROSPECTION
2709 -include $(INTROSPECTION_MAKEFILE)
2711 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
2713 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
2715 src_gudev_GUdev_1_0_gir_CFLAGS = \
2718 -D_GUDEV_COMPILATION \
2719 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
2720 -I$(top_srcdir)/src \
2721 -I$(top_builddir)/src \
2722 -I$(top_srcdir)/src/gudev \
2723 -I$(top_builddir)/src/gudev
2725 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
2727 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
2728 --pkg-export=gudev-1.0 \
2731 src_gudev_GUdev_1_0_gir_FILES = \
2733 src/gudev/gudevtypes.h \
2734 src/gudev/gudevenums.h \
2735 src/gudev/gudevenumtypes.h \
2736 src/gudev/gudevclient.h \
2737 src/gudev/gudevdevice.h \
2738 src/gudev/gudevenumerator.h \
2739 src/gudev/gudevclient.c \
2740 src/gudev/gudevdevice.c \
2741 src/gudev/gudevenumerator.c
2743 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
2744 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
2746 girdir = $(datadir)/gir-1.0
2748 src/gudev/GUdev-1.0.gir
2750 typelibsdir = $(libdir)/girepository-1.0
2752 src/gudev/GUdev-1.0.typelib
2754 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
2755 endif # HAVE_INTROSPECTION
2757 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2758 libgudev-install-hook:
2759 libname=libgudev-1.0.so && $(move-to-rootlibdir)
2761 libgudev-uninstall-hook:
2762 rm -f $(DESTDIR)$(rootlibdir)/libgudev-1.0.so*
2764 INSTALL_EXEC_HOOKS += libgudev-install-hook
2765 UNINSTALL_EXEC_HOOKS += libgudev-uninstall-hook
2769 src/gudev/gudev-1.0.pc.in \
2770 src/gudev/gudevmarshal.list \
2771 src/gudev/gudevenumtypes.h.template \
2772 src/gudev/gudevenumtypes.c.template \
2773 src/gudev/gjs-example.js \
2774 src/gudev/seed-example-enum.js \
2775 src/gudev/seed-example.js
2777 # ------------------------------------------------------------------------------
2778 mtd_probe_SOURCES = \
2779 src/udev/mtd_probe/mtd_probe.c \
2780 src/udev/mtd_probe/mtd_probe.h \
2781 src/udev/mtd_probe/probe_smartmedia.c
2783 mtd_probe_CPPFLAGS = \
2786 dist_udevrules_DATA += \
2787 rules/75-probe_mtd.rules
2789 udevlibexec_PROGRAMS += \
2792 # ------------------------------------------------------------------------------
2793 libsystemd_id128_la_SOURCES = \
2794 src/libsystemd-id128/sd-id128.c
2796 libsystemd_id128_la_CFLAGS = \
2800 libsystemd_id128_la_LDFLAGS = \
2802 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
2803 -Wl,--version-script=$(top_srcdir)/src/libsystemd-id128/libsystemd-id128.sym
2805 libsystemd_id128_la_LIBADD = \
2806 libsystemd-shared.la
2808 libsystemd_id128_internal_la_SOURCES = \
2809 $(libsystemd_id128_la_SOURCES)
2811 test_id128_SOURCES = \
2812 src/test/test-id128.c
2814 test_id128_LDADD = \
2815 libsystemd-shared.la \
2816 libsystemd-id128-internal.la \
2817 libsystemd-daemon.la
2822 pkginclude_HEADERS += \
2823 src/systemd/sd-id128.h
2825 lib_LTLIBRARIES += \
2828 noinst_LTLIBRARIES += \
2829 libsystemd-id128-internal.la
2831 pkgconfiglib_DATA += \
2832 src/libsystemd-id128/libsystemd-id128.pc
2834 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2835 libsystemd-id128-install-hook:
2836 libname=libsystemd-id128.so && $(move-to-rootlibdir)
2838 libsystemd-id128-uninstall-hook:
2839 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
2841 INSTALL_EXEC_HOOKS += libsystemd-id128-install-hook
2842 UNINSTALL_EXEC_HOOKS += libsystemd-id128-uninstall-hook
2845 src/libsystemd-id128/libsystemd-id128.pc.in \
2846 src/libsystemd-id128/libsystemd-id128.sym
2848 # ------------------------------------------------------------------------------
2850 rootlibexec_PROGRAMS += \
2853 systemd_activate_SOURCES = \
2854 src/activate/activate.c
2856 systemd_activate_LDADD = \
2857 libsystemd-label.la \
2858 libsystemd-shared.la \
2859 libsystemd-daemon.la
2861 # ------------------------------------------------------------------------------
2862 systemd_journald_SOURCES = \
2863 src/journal/journald.c \
2864 src/journal/journald-server.h
2866 systemd_journald_LDADD = \
2867 libsystemd-journal-internal.la \
2868 libsystemd-shared.la \
2869 libsystemd-id128-internal.la
2871 systemd_cat_SOURCES = \
2874 systemd_cat_LDADD = \
2875 libsystemd-shared.la \
2876 libsystemd-journal-internal.la
2878 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
2879 journalctl_CFLAGS = \
2882 journalctl_SOURCES = \
2883 src/journal/journalctl.c
2885 journalctl_LDADD = \
2886 libsystemd-shared.la \
2887 libsystemd-journal-internal.la \
2888 libsystemd-id128-internal.la \
2892 journalctl_LDADD += \
2897 journalctl_SOURCES += \
2898 src/journal/journal-qrcode.c \
2899 src/journal/journal-qrcode.h
2901 journalctl_CFLAGS += \
2904 journalctl_LDADD += \
2908 test_journal_SOURCES = \
2909 src/journal/test-journal.c
2911 test_journal_LDADD = \
2912 libsystemd-shared.la \
2913 libsystemd-journal-internal.la \
2914 libsystemd-id128-internal.la
2916 test_journal_send_SOURCES = \
2917 src/journal/test-journal-send.c
2919 test_journal_send_LDADD = \
2920 libsystemd-shared.la \
2921 libsystemd-journal-internal.la \
2922 libsystemd-id128-internal.la
2924 test_journal_syslog_SOURCES = \
2925 src/journal/test-journal-syslog.c
2927 test_journal_syslog_LDADD = \
2928 libsystemd-journal-internal.la \
2929 libsystemd-shared.la \
2930 libsystemd-id128-internal.la
2932 test_journal_match_SOURCES = \
2933 src/journal/test-journal-match.c
2935 test_journal_match_LDADD = \
2936 libsystemd-shared.la \
2937 libsystemd-journal-internal.la \
2938 libsystemd-id128-internal.la
2940 test_journal_enum_SOURCES = \
2941 src/journal/test-journal-enum.c
2943 test_journal_enum_LDADD = \
2944 libsystemd-shared.la \
2945 libsystemd-journal-internal.la \
2946 libsystemd-id128-internal.la
2948 test_journal_stream_SOURCES = \
2949 src/journal/test-journal-stream.c
2951 test_journal_stream_LDADD = \
2952 libsystemd-shared.la \
2953 libsystemd-journal-internal.la \
2954 libsystemd-id128-internal.la
2956 test_journal_init_SOURCES = \
2957 src/journal/test-journal-init.c
2959 test_journal_init_LDADD = \
2960 libsystemd-shared.la \
2961 libsystemd-daemon-internal.la \
2963 libsystemd-journal.la
2965 test_journal_verify_SOURCES = \
2966 src/journal/test-journal-verify.c
2968 test_journal_verify_LDADD = \
2969 libsystemd-shared.la \
2970 libsystemd-journal-internal.la \
2971 libsystemd-id128-internal.la
2973 test_journal_interleaving_SOURCES = \
2974 src/journal/test-journal-interleaving.c
2976 test_journal_interleaving_LDADD = \
2977 libsystemd-shared.la \
2978 libsystemd-journal-internal.la \
2979 libsystemd-id128-internal.la
2981 test_mmap_cache_SOURCES = \
2982 src/journal/test-mmap-cache.c
2984 test_mmap_cache_LDADD = \
2985 libsystemd-shared.la \
2986 libsystemd-journal-internal.la
2988 test_catalog_SOURCES = \
2989 src/journal/test-catalog.c
2991 test_catalog_CFLAGS = \
2993 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
2995 test_catalog_LDADD = \
2996 libsystemd-shared.la \
2997 libsystemd-label.la \
2998 libsystemd-journal-internal.la \
2999 libsystemd-id128-internal.la
3001 libsystemd_journal_la_SOURCES = \
3002 src/journal/sd-journal.c \
3003 src/systemd/sd-journal.h \
3004 src/systemd/_sd-common.h \
3005 src/journal/journal-file.c \
3006 src/journal/journal-file.h \
3007 src/journal/journal-vacuum.c \
3008 src/journal/journal-vacuum.h \
3009 src/journal/journal-verify.c \
3010 src/journal/journal-verify.h \
3011 src/journal/lookup3.c \
3012 src/journal/lookup3.h \
3013 src/journal/journal-send.c \
3014 src/journal/journal-def.h \
3015 src/journal/compress.h \
3016 src/journal/catalog.c \
3017 src/journal/catalog.h \
3018 src/journal/mmap-cache.c \
3019 src/journal/mmap-cache.h
3021 libsystemd_journal_la_CFLAGS = \
3025 libsystemd_journal_la_LDFLAGS = \
3027 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
3028 -Wl,--version-script=$(top_srcdir)/src/journal/libsystemd-journal.sym
3030 libsystemd_journal_la_LIBADD = \
3031 libsystemd-shared.la \
3032 libsystemd-label.la \
3033 libsystemd-daemon-internal.la \
3035 libsystemd-id128-internal.la
3037 libsystemd_journal_internal_la_SOURCES = \
3038 $(libsystemd_journal_la_SOURCES) \
3039 src/journal/journald-kmsg.c \
3040 src/journal/journald-kmsg.h \
3041 src/journal/journald-syslog.c \
3042 src/journal/journald-syslog.h \
3043 src/journal/journald-stream.c \
3044 src/journal/journald-stream.h \
3045 src/journal/journald-server.c \
3046 src/journal/journald-server.h \
3047 src/journal/journald-console.c \
3048 src/journal/journald-console.h \
3049 src/journal/journald-native.c \
3050 src/journal/journald-native.h \
3051 src/journal/journald-rate-limit.c \
3052 src/journal/journald-rate-limit.h \
3053 src/journal/journal-internal.h
3055 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3056 libsystemd_journal_internal_la_CFLAGS = \
3059 libsystemd_journal_internal_la_LIBADD = \
3060 libsystemd-audit.la \
3061 libsystemd-daemon.la \
3063 libsystemd-shared.la \
3066 nodist_libsystemd_journal_internal_la_SOURCES = \
3067 src/journal/journald-gperf.c
3070 libsystemd_journal_internal_la_LIBADD += \
3071 libsystemd-login-internal.la
3075 libsystemd_journal_internal_la_LIBADD += \
3080 libsystemd_journal_la_SOURCES += \
3081 src/journal/compress.c
3083 libsystemd_journal_la_CFLAGS += \
3086 libsystemd_journal_la_LIBADD += \
3089 libsystemd_journal_internal_la_CFLAGS += \
3092 libsystemd_journal_internal_la_LIBADD += \
3098 libsystemd_journal_la_SOURCES += \
3099 src/journal/journal-authenticate.c \
3100 src/journal/journal-authenticate.h \
3101 src/journal/fsprg.c \
3104 libsystemd_journal_la_CFLAGS += \
3108 libsystemd_journal_la_LIBADD += \
3111 libsystemd_journal_internal_la_CFLAGS += \
3115 libsystemd_journal_internal_la_LIBADD += \
3119 # move lib from $(libdir) to $(rootlibdir) and update devel link, if
3120 # needed. Also, grant read access to new journal files to members of
3121 # "adm" and "wheel".
3122 libsystemd-journal-install-hook:
3123 libname=libsystemd-journal.so && $(move-to-rootlibdir)
3124 -$(MKDIR_P) $(DESTDIR)/var/log/journal
3125 -chown 0:0 $(DESTDIR)/var/log/journal
3126 -chmod 755 $(DESTDIR)/var/log/journal
3127 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
3128 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
3130 libsystemd-journal-uninstall-hook:
3131 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
3133 INSTALL_EXEC_HOOKS += libsystemd-journal-install-hook
3134 UNINSTALL_EXEC_HOOKS += libsystemd-journal-uninstall-hook
3136 # ------------------------------------------------------------------------------
3138 # Update catalog on installation. Do not bother if installing
3139 # in DESTDIR, since this is likely for packaging purposes.
3140 catalog-update-hook:
3141 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
3143 INSTALL_DATA_HOOKS += \
3146 catalog-remove-hook:
3147 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
3149 UNINSTALL_DATA_HOOKS += \
3158 test-journal-syslog \
3159 test-journal-match \
3160 test-journal-stream \
3162 test-journal-verify \
3163 test-journal-interleaving \
3167 pkginclude_HEADERS += \
3168 src/systemd/sd-journal.h \
3169 src/systemd/sd-messages.h \
3170 src/systemd/_sd-common.h
3172 lib_LTLIBRARIES += \
3173 libsystemd-journal.la
3175 noinst_LTLIBRARIES += \
3176 libsystemd-journal-internal.la
3178 rootlibexec_PROGRAMS += \
3181 rootbin_PROGRAMS += \
3187 dist_systemunit_DATA += \
3188 units/systemd-journald.socket
3190 nodist_systemunit_DATA += \
3191 units/systemd-journald.service \
3192 units/systemd-journal-flush.service
3194 dist_pkgsysconf_DATA += \
3195 src/journal/journald.conf
3197 pkgconfiglib_DATA += \
3198 src/journal/libsystemd-journal.pc
3200 dist_catalog_DATA = \
3201 catalog/systemd.catalog
3203 SOCKETS_TARGET_WANTS += \
3204 systemd-journald.socket
3205 SYSINIT_TARGET_WANTS += \
3206 systemd-journald.service \
3207 systemd-journal-flush.service
3210 src/journal/libsystemd-journal.pc.in \
3211 src/journal/libsystemd-journal.sym \
3212 units/systemd-journald.service.in \
3213 units/systemd-journal-flush.service.in \
3214 src/journal/journald-gperf.gperf
3217 src/journal/journald-gperf.c
3219 # ------------------------------------------------------------------------------
3221 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
3223 rootlibexec_PROGRAMS += \
3224 systemd-journal-gatewayd
3226 systemd_journal_gatewayd_SOURCES = \
3227 src/journal/journal-gatewayd.c \
3228 src/journal/microhttpd-util.h \
3229 src/journal/microhttpd-util.c
3231 systemd_journal_gatewayd_LDADD = \
3232 libsystemd-shared.la \
3233 libsystemd-logs.la \
3234 libsystemd-journal-internal.la \
3235 libsystemd-id128-internal.la \
3236 libsystemd-daemon.la \
3240 systemd_journal_gatewayd_CFLAGS = \
3242 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\" \
3243 $(MICROHTTPD_CFLAGS)
3245 dist_systemunit_DATA += \
3246 units/systemd-journal-gatewayd.socket
3248 nodist_systemunit_DATA += \
3249 units/systemd-journal-gatewayd.service
3251 dist_gatewayddocumentroot_DATA = \
3252 src/journal/browse.html
3257 units/systemd-journal-gatewayd.service.in
3259 # ------------------------------------------------------------------------------
3261 systemd_socket_proxyd_SOURCES = \
3262 src/socket-proxy/socket-proxyd.c
3264 systemd_socket_proxyd_LDADD = \
3265 libsystemd-logs.la \
3266 libsystemd-event.la \
3267 libsystemd-journal-internal.la \
3268 libsystemd-id128-internal.la \
3269 libsystemd-shared.la \
3270 libsystemd-daemon.la
3272 # ------------------------------------------------------------------------------
3274 systemd_coredump_SOURCES = \
3275 src/journal/coredump.c
3277 systemd_coredump_LDADD = \
3278 libsystemd-journal-internal.la \
3279 libsystemd-label.la \
3280 libsystemd-shared.la
3283 systemd_coredump_LDADD += \
3284 libsystemd-login-internal.la
3287 rootlibexec_PROGRAMS += \
3290 systemd_coredumpctl_SOURCES = \
3291 src/journal/coredumpctl.c
3293 systemd_coredumpctl_LDADD = \
3294 libsystemd-shared.la \
3295 libsystemd-journal.la \
3296 libsystemd-journal-internal.la \
3297 libsystemd-id128-internal.la
3302 dist_bashcompletion_DATA += \
3303 shell-completion/bash/systemd-coredumpctl
3305 dist_zshcompletion_DATA += \
3306 shell-completion/zsh/_systemd-coredumpctl
3309 sysctl.d/50-coredump.conf
3312 sysctl.d/50-coredump.conf
3316 sysctl.d/50-coredump.conf.in
3318 # ------------------------------------------------------------------------------
3320 systemd_binfmt_SOURCES = \
3323 systemd_binfmt_LDADD = \
3324 libsystemd-shared.la
3326 rootlibexec_PROGRAMS += \
3329 dist_systemunit_DATA += \
3330 units/proc-sys-fs-binfmt_misc.automount \
3331 units/proc-sys-fs-binfmt_misc.mount
3333 nodist_systemunit_DATA += \
3334 units/systemd-binfmt.service
3337 $(prefix)/lib/binfmt.d \
3338 $(sysconfdir)/binfmt.d
3340 SYSINIT_TARGET_WANTS += \
3341 systemd-binfmt.service \
3342 proc-sys-fs-binfmt_misc.automount
3347 units/systemd-binfmt.service.in
3349 # ------------------------------------------------------------------------------
3351 systemd_vconsole_setup_SOURCES = \
3352 src/vconsole/vconsole-setup.c
3354 systemd_vconsole_setup_LDADD = \
3355 libsystemd-shared.la
3357 rootlibexec_PROGRAMS += \
3358 systemd-vconsole-setup
3360 nodist_systemunit_DATA += \
3361 units/systemd-vconsole-setup.service
3363 SYSINIT_TARGET_WANTS += \
3364 systemd-vconsole-setup.service
3368 units/systemd-vconsole-setup.service.in
3370 # ------------------------------------------------------------------------------
3372 systemd_readahead_SOURCES = \
3373 src/readahead/readahead.c \
3374 src/readahead/readahead-collect.c \
3375 src/readahead/readahead-replay.c \
3376 src/readahead/readahead-analyze.c \
3377 src/readahead/readahead-common.c \
3378 src/readahead/readahead-common.h
3380 systemd_readahead_LDADD = \
3381 libsystemd-shared.la \
3382 libsystemd-daemon.la \
3386 src/readahead/sd-readahead.c \
3387 src/systemd/sd-readahead.h
3389 rootlibexec_PROGRAMS += \
3392 dist_systemunit_DATA += \
3393 units/systemd-readahead-drop.service \
3394 units/systemd-readahead-done.timer
3396 nodist_systemunit_DATA += \
3397 units/systemd-readahead-collect.service \
3398 units/systemd-readahead-replay.service \
3399 units/systemd-readahead-done.service
3404 units/systemd-readahead-collect.service.in \
3405 units/systemd-readahead-replay.service.in \
3406 units/systemd-readahead-done.service.in
3408 # ------------------------------------------------------------------------------
3410 systemd_bootchart_SOURCES = \
3411 src/bootchart/bootchart.c \
3412 src/bootchart/bootchart.h \
3413 src/bootchart/store.c \
3414 src/bootchart/store.h \
3415 src/bootchart/svg.c \
3418 systemd_bootchart_LDADD = \
3419 libsystemd-shared.la \
3420 libsystemd-journal.la
3422 rootlibexec_PROGRAMS += \
3425 dist_pkgsysconf_DATA += \
3426 src/bootchart/bootchart.conf
3429 # ------------------------------------------------------------------------------
3430 if ENABLE_QUOTACHECK
3431 rootlibexec_PROGRAMS += \
3434 nodist_systemunit_DATA += \
3435 units/systemd-quotacheck.service
3437 systemd_quotacheck_SOURCES = \
3438 src/quotacheck/quotacheck.c
3440 systemd_quotacheck_LDADD = \
3441 libsystemd-shared.la
3445 units/systemd-quotacheck.service.in
3447 nodist_systemunit_DATA += \
3448 units/quotaon.service
3450 # ------------------------------------------------------------------------------
3451 if ENABLE_RANDOMSEED
3452 rootlibexec_PROGRAMS += \
3455 nodist_systemunit_DATA += \
3456 units/systemd-random-seed.service
3458 systemd_random_seed_SOURCES = \
3459 src/random-seed/random-seed.c
3461 systemd_random_seed_LDADD = \
3462 libsystemd-label.la \
3463 libsystemd-shared.la
3465 SYSINIT_TARGET_WANTS += \
3466 systemd-random-seed.service
3471 units/systemd-random-seed.service.in
3473 # ------------------------------------------------------------------------------
3475 rootlibexec_PROGRAMS += \
3478 nodist_systemunit_DATA += \
3479 units/systemd-backlight@.service
3481 systemd_backlight_SOURCES = \
3482 src/backlight/backlight.c
3484 systemd_backlight_LDADD = \
3485 libsystemd-label.la \
3486 libsystemd-shared.la \
3491 units/systemd-backlight@.service.in
3493 # ------------------------------------------------------------------------------
3495 rootlibexec_PROGRAMS += \
3498 nodist_systemunit_DATA += \
3499 units/systemd-rfkill@.service
3501 systemd_rfkill_SOURCES = \
3504 systemd_rfkill_LDADD = \
3505 libsystemd-label.la \
3506 libsystemd-shared.la \
3511 units/systemd-rfkill@.service.in
3513 # ------------------------------------------------------------------------------
3514 if HAVE_LIBCRYPTSETUP
3515 rootlibexec_PROGRAMS += \
3518 systemgenerator_PROGRAMS += \
3519 systemd-cryptsetup-generator
3521 dist_systemunit_DATA += \
3522 units/cryptsetup.target
3524 systemd_cryptsetup_SOURCES = \
3525 src/cryptsetup/cryptsetup.c
3527 systemd_cryptsetup_CFLAGS = \
3529 $(LIBCRYPTSETUP_CFLAGS)
3531 systemd_cryptsetup_LDADD = \
3532 libsystemd-label.la \
3533 libsystemd-shared.la \
3535 $(LIBCRYPTSETUP_LIBS)
3537 systemd_cryptsetup_generator_SOURCES = \
3538 src/cryptsetup/cryptsetup-generator.c
3540 systemd_cryptsetup_generator_LDADD = \
3541 libsystemd-label.la \
3542 libsystemd-shared.la
3544 SYSINIT_TARGET_WANTS += \
3549 # ------------------------------------------------------------------------------
3551 systemd_hostnamed_SOURCES = \
3552 src/hostname/hostnamed.c
3554 systemd_hostnamed_LDADD = \
3555 libsystemd-label.la \
3556 libsystemd-bus-internal.la \
3557 libsystemd-id128-internal.la \
3558 libsystemd-daemon-internal.la \
3559 libsystemd-shared.la
3561 rootlibexec_PROGRAMS += \
3564 nodist_systemunit_DATA += \
3565 units/systemd-hostnamed.service
3567 dist_dbuspolicy_DATA += \
3568 src/hostname/org.freedesktop.hostname1.conf
3570 dist_dbussystemservice_DATA += \
3571 src/hostname/org.freedesktop.hostname1.service
3573 polkitpolicy_files += \
3574 src/hostname/org.freedesktop.hostname1.policy
3576 SYSTEM_UNIT_ALIASES += \
3577 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
3579 hostnamectl_SOURCES = \
3580 src/hostname/hostnamectl.c
3582 hostnamectl_LDADD = \
3583 libsystemd-bus-internal.la \
3584 libsystemd-id128-internal.la \
3585 libsystemd-daemon-internal.la \
3586 libsystemd-shared.la
3591 dist_bashcompletion_DATA += \
3592 shell-completion/bash/hostnamectl
3594 dist_zshcompletion_DATA += \
3595 shell-completion/zsh/_hostnamectl
3599 polkitpolicy_in_files += \
3600 src/hostname/org.freedesktop.hostname1.policy.in
3603 units/systemd-hostnamed.service.in
3605 # ------------------------------------------------------------------------------
3607 systemd_localed_SOURCES = \
3608 src/locale/localed.c
3610 systemd_localed_LDADD = \
3611 libsystemd-label.la \
3612 libsystemd-bus-internal.la \
3613 libsystemd-id128-internal.la \
3614 libsystemd-daemon-internal.la \
3615 libsystemd-shared.la
3617 nodist_systemunit_DATA += \
3618 units/systemd-localed.service
3620 rootlibexec_PROGRAMS += \
3623 dist_dbuspolicy_DATA += \
3624 src/locale/org.freedesktop.locale1.conf
3626 dist_dbussystemservice_DATA += \
3627 src/locale/org.freedesktop.locale1.service
3629 polkitpolicy_files += \
3630 src/locale/org.freedesktop.locale1.policy
3632 SYSTEM_UNIT_ALIASES += \
3633 systemd-localed.service dbus-org.freedesktop.locale1.service
3635 dist_pkgdata_DATA += \
3636 src/locale/kbd-model-map
3638 dist_noinst_SCRIPT = \
3639 src/locale/generate-kbd-model-map
3641 update-kbd-model-map: src/locale/generate-kbd-model-map
3642 $PYTHON $< > src/locale/kbd-model-map
3644 localectl_SOURCES = \
3645 src/locale/localectl.c
3648 libsystemd-bus-internal.la \
3649 libsystemd-id128-internal.la \
3650 libsystemd-daemon-internal.la \
3651 libsystemd-shared.la
3656 dist_bashcompletion_DATA += \
3657 shell-completion/bash/localectl
3659 dist_zshcompletion_DATA += \
3660 shell-completion/zsh/_localectl
3664 polkitpolicy_in_files += \
3665 src/locale/org.freedesktop.locale1.policy.in
3668 units/systemd-localed.service.in
3670 # ------------------------------------------------------------------------------
3672 systemd_timedated_SOURCES = \
3673 src/timedate/timedated.c
3675 systemd_timedated_LDADD = \
3676 libsystemd-label.la \
3677 libsystemd-bus-internal.la \
3678 libsystemd-id128-internal.la \
3679 libsystemd-daemon-internal.la \
3680 libsystemd-shared.la \
3683 rootlibexec_PROGRAMS += \
3686 dist_dbussystemservice_DATA += \
3687 src/timedate/org.freedesktop.timedate1.service
3689 dist_dbuspolicy_DATA += \
3690 src/timedate/org.freedesktop.timedate1.conf
3692 nodist_systemunit_DATA += \
3693 units/systemd-timedated.service
3695 polkitpolicy_files += \
3696 src/timedate/org.freedesktop.timedate1.policy
3699 $(prefix)/lib/systemd/ntp-units.d \
3700 $(sysconfdir)/systemd/ntp-units.d
3702 SYSTEM_UNIT_ALIASES += \
3703 systemd-timedated.service dbus-org.freedesktop.timedate1.service
3705 timedatectl_SOURCES = \
3706 src/timedate/timedatectl.c
3708 timedatectl_LDADD = \
3709 libsystemd-bus-internal.la \
3710 libsystemd-id128-internal.la \
3711 libsystemd-daemon-internal.la \
3712 libsystemd-shared.la
3717 dist_bashcompletion_DATA += \
3718 shell-completion/bash/timedatectl
3720 dist_zshcompletion_DATA += \
3721 shell-completion/zsh/_timedatectl
3724 polkitpolicy_in_files += \
3725 src/timedate/org.freedesktop.timedate1.policy.in
3728 units/systemd-timedated.service.in
3730 # ------------------------------------------------------------------------------
3732 libnss_myhostname_la_SOURCES = \
3733 src/nss-myhostname/nss-myhostname.c \
3734 src/nss-myhostname/ifconf.h \
3735 src/nss-myhostname/netlink.c
3737 libnss_myhostname_la_LDFLAGS = \
3745 lib_LTLIBRARIES += \
3746 libnss_myhostname.la
3749 # ------------------------------------------------------------------------------
3751 systemd_machined_SOURCES = \
3752 src/machine/machined.c \
3753 src/machine/machined.h
3755 systemd_machined_LDADD = \
3756 libsystemd-machine-core.la \
3757 $(libsystemd_machine_core_la_LIBADD)
3759 rootlibexec_PROGRAMS += \
3762 libsystemd_machine_core_la_SOURCES = \
3763 src/machine/machined-dbus.c \
3764 src/machine/machine.c \
3765 src/machine/machine.h \
3766 src/machine/machine-dbus.c
3768 libsystemd_machine_core_la_LIBADD = \
3769 libsystemd-label.la \
3770 libsystemd-audit.la \
3771 libsystemd-shared.la \
3772 libsystemd-daemon.la \
3773 libsystemd-bus-internal.la \
3774 libsystemd-id128-internal.la \
3777 noinst_LTLIBRARIES += \
3778 libsystemd-machine-core.la
3780 machinectl_SOURCES = \
3781 src/machine/machinectl.c
3783 machinectl_LDADD = \
3784 libsystemd-bus-internal.la \
3785 libsystemd-id128-internal.la \
3786 libsystemd-daemon-internal.la \
3787 libsystemd-shared.la
3789 rootbin_PROGRAMS += \
3792 test_machine_tables_SOURCES = \
3793 src/machine/test-machine-tables.c
3795 test_machine_tables_LDADD = \
3796 libsystemd-machine-core.la
3801 nodist_systemunit_DATA += \
3802 units/systemd-machined.service
3804 dist_systemunit_DATA += \
3807 dist_dbussystemservice_DATA += \
3808 src/machine/org.freedesktop.machine1.service
3810 dist_dbuspolicy_DATA += \
3811 src/machine/org.freedesktop.machine1.conf
3813 dist_zshcompletion_DATA += \
3814 shell-completion/zsh/_machinectl
3816 SYSTEM_UNIT_ALIASES += \
3817 systemd-machined.service dbus-org.freedesktop.machine1.service
3820 units/systemd-machined.service.in
3824 # ------------------------------------------------------------------------------
3826 systemd_logind_SOURCES = \
3827 src/login/logind.c \
3830 nodist_systemd_logind_SOURCES = \
3831 src/login/logind-gperf.c
3833 systemd_logind_LDADD = \
3834 libsystemd-logind-core.la \
3835 $(libsystemd_logind_core_la_LIBADD)
3837 libsystemd_logind_core_la_SOURCES = \
3838 src/login/logind-core.c \
3839 src/login/logind-dbus.c \
3840 src/login/logind-device.c \
3841 src/login/logind-device.h \
3842 src/login/logind-button.c \
3843 src/login/logind-button.h \
3844 src/login/logind-action.c \
3845 src/login/logind-action.h \
3846 src/login/logind-seat.c \
3847 src/login/logind-seat.h \
3848 src/login/logind-session.c \
3849 src/login/logind-session.h \
3850 src/login/logind-session-device.c \
3851 src/login/logind-session-device.h \
3852 src/login/logind-user.c \
3853 src/login/logind-user.h \
3854 src/login/logind-inhibit.c \
3855 src/login/logind-inhibit.h \
3856 src/login/logind-session-dbus.c \
3857 src/login/logind-seat-dbus.c \
3858 src/login/logind-user-dbus.c \
3859 src/login/logind-acl.h \
3860 src/login/login-shared.c \
3861 src/login/login-shared.h
3863 libsystemd_logind_core_la_LIBADD = \
3864 libsystemd-label.la \
3865 libsystemd-audit.la \
3866 libsystemd-shared.la \
3867 libsystemd-daemon.la \
3868 libsystemd-id128-internal.la \
3869 libsystemd-bus-internal.la \
3873 libsystemd_logind_core_la_SOURCES += \
3874 src/login/logind-acl.c
3876 libsystemd_logind_core_la_LIBADD += \
3880 noinst_LTLIBRARIES += \
3881 libsystemd-logind-core.la
3883 systemd_user_sessions_SOURCES = \
3884 src/login/user-sessions.c
3886 systemd_user_sessions_LDADD = \
3887 libsystemd-shared.la
3889 rootlibexec_PROGRAMS += \
3891 systemd-user-sessions
3893 loginctl_SOURCES = \
3894 src/login/loginctl.c \
3895 src/login/sysfs-show.c
3902 libsystemd-shared.la \
3903 libsystemd-dbus.la \
3906 rootbin_PROGRAMS += \
3909 dist_bashcompletion_DATA += \
3910 shell-completion/bash/loginctl
3912 dist_zshcompletion_DATA += \
3913 shell-completion/zsh/_loginctl \
3914 shell-completion/zsh/_systemd-inhibit
3916 systemd_inhibit_SOURCES = \
3919 systemd_inhibit_LDADD = \
3920 libsystemd-bus-internal.la \
3921 libsystemd-id128-internal.la \
3922 libsystemd-daemon-internal.la \
3923 libsystemd-shared.la
3925 rootbin_PROGRAMS += \
3928 test_login_SOURCES = \
3929 src/login/test-login.c
3931 test_login_LDADD = \
3932 libsystemd-login-internal.la \
3933 libsystemd-shared.la
3935 test_login_shared_SOURCES = \
3936 src/login/test-login-shared.c
3938 test_login_shared_LDADD = \
3939 libsystemd-login-internal.la \
3940 libsystemd-shared.la
3942 test_inhibit_SOURCES = \
3943 src/login/test-inhibit.c
3945 test_inhibit_LDADD = \
3946 libsystemd-shared.la \
3949 test_login_tables_SOURCES = \
3950 src/login/test-login-tables.c
3952 test_login_tables_LDADD = \
3953 libsystemd-logind-core.la
3963 libsystemd_login_la_SOURCES = \
3964 src/login/sd-login.c \
3965 src/systemd/sd-login.h \
3966 src/login/login-shared.c \
3967 src/login/login-shared.h
3969 libsystemd_login_la_CFLAGS = \
3973 libsystemd_login_la_LDFLAGS = \
3975 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
3976 -Wl,--version-script=$(top_srcdir)/src/login/libsystemd-login.sym
3978 libsystemd_login_la_LIBADD = \
3979 libsystemd-shared.la \
3980 libsystemd-daemon-internal.la \
3983 libsystemd_login_internal_la_SOURCES = \
3984 $(libsystemd_login_la_SOURCES)
3987 pam_systemd_la_SOURCES = \
3988 src/login/pam-module.c
3990 pam_systemd_la_CFLAGS = \
3995 pam_systemd_la_LDFLAGS = \
4001 -export-symbols-regex '^pam_sm_.*'
4003 pam_systemd_la_LIBADD = \
4004 libsystemd-audit.la \
4006 libsystemd-shared.la \
4007 libsystemd-daemon.la \
4011 pamlib_LTLIBRARIES = \
4014 dist_pamconf_DATA = \
4015 src/login/systemd-user
4018 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
4019 libsystemd-login-install-hook:
4020 libname=libsystemd-login.so && $(move-to-rootlibdir)
4022 libsystemd-login-uninstall-hook:
4023 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
4025 INSTALL_EXEC_HOOKS += libsystemd-login-install-hook
4026 UNINSTALL_EXEC_HOOKS += libsystemd-login-uninstall-hook
4028 nodist_systemunit_DATA += \
4029 units/systemd-logind.service \
4030 units/systemd-user-sessions.service
4032 dist_systemunit_DATA += \
4035 dist_dbussystemservice_DATA += \
4036 src/login/org.freedesktop.login1.service
4038 dist_dbuspolicy_DATA += \
4039 src/login/org.freedesktop.login1.conf
4041 dist_pkgsysconf_DATA += \
4042 src/login/logind.conf
4044 pkginclude_HEADERS += \
4045 src/systemd/sd-login.h
4047 lib_LTLIBRARIES += \
4050 noinst_LTLIBRARIES += \
4051 libsystemd-login-internal.la
4053 pkgconfiglib_DATA += \
4054 src/login/libsystemd-login.pc
4056 polkitpolicy_files += \
4057 src/login/org.freedesktop.login1.policy
4062 MULTI_USER_TARGET_WANTS += \
4063 systemd-logind.service \
4064 systemd-user-sessions.service
4066 SYSTEM_UNIT_ALIASES += \
4067 systemd-logind.service dbus-org.freedesktop.login1.service
4069 systemd_multi_seat_x_SOURCES = \
4070 src/login/multi-seat-x.c
4072 systemd_multi_seat_x_LDADD = \
4073 libsystemd-label.la \
4074 libsystemd-shared.la
4076 rootlibexec_PROGRAMS += \
4077 systemd-multi-seat-x
4079 dist_udevrules_DATA += \
4080 src/login/70-uaccess.rules \
4081 src/login/70-power-switch.rules
4083 nodist_udevrules_DATA += \
4084 src/login/71-seat.rules \
4085 src/login/73-seat-late.rules
4088 src/login/logind-gperf.c \
4089 src/login/71-seat.rules \
4090 src/login/73-seat-late.rules
4093 polkitpolicy_in_files += \
4094 src/login/org.freedesktop.login1.policy.in
4097 src/login/logind-gperf.gperf \
4098 src/login/libsystemd-login.pc.in \
4099 src/login/libsystemd-login.sym \
4100 src/login/71-seat.rules.in \
4101 src/login/73-seat-late.rules.in \
4102 units/systemd-logind.service.in \
4103 units/systemd-user-sessions.service.in
4105 # ------------------------------------------------------------------------------
4106 if HAVE_PYTHON_DEVEL
4107 pkgpyexec_LTLIBRARIES = \
4114 _journal_la_SOURCES = \
4115 src/python-systemd/_journal.c
4117 _journal_la_CFLAGS = \
4119 -fvisibility=default \
4120 $(PYTHON_DEVEL_CFLAGS)
4122 _journal_la_LDFLAGS = \
4128 _journal_la_LIBADD = \
4129 $(PYTHON_DEVEL_LIBS) \
4130 libsystemd-journal.la
4132 id128_la_SOURCES = \
4133 src/python-systemd/id128.c \
4134 src/python-systemd/id128-constants.h \
4135 src/python-systemd/pyutil.c \
4136 src/python-systemd/pyutil.h
4140 -fvisibility=default \
4141 $(PYTHON_DEVEL_CFLAGS) \
4142 -I$(top_builddir)/src/python-systemd
4144 id128_la_LDFLAGS = \
4151 $(PYTHON_DEVEL_LIBS) \
4154 _daemon_la_SOURCES = \
4155 src/python-systemd/_daemon.c \
4156 src/python-systemd/pyutil.c \
4157 src/python-systemd/pyutil.h
4159 _daemon_la_CFLAGS = \
4161 -fvisibility=default \
4162 $(PYTHON_DEVEL_CFLAGS) \
4163 -I$(top_builddir)/src/python-systemd
4165 _daemon_la_LDFLAGS = \
4171 _daemon_la_LIBADD = \
4172 $(PYTHON_DEVEL_LIBS) \
4173 libsystemd-daemon.la
4175 _reader_la_SOURCES = \
4176 src/python-systemd/_reader.c \
4177 src/python-systemd/pyutil.c \
4178 src/python-systemd/pyutil.h
4180 _reader_la_CFLAGS = \
4182 -fvisibility=default \
4183 $(PYTHON_DEVEL_CFLAGS)
4185 _reader_la_LDFLAGS = \
4191 _reader_la_LIBADD = \
4192 $(PYTHON_DEVEL_LIBS) \
4193 libsystemd-journal.la \
4194 libsystemd-id128.la \
4195 libsystemd-shared.la \
4196 libsystemd-daemon-internal.la \
4199 login_la_SOURCES = \
4200 src/python-systemd/login.c \
4201 src/python-systemd/pyutil.c \
4202 src/python-systemd/pyutil.h
4206 -fvisibility=default \
4207 $(PYTHON_DEVEL_CFLAGS)
4209 login_la_LDFLAGS = \
4216 $(PYTHON_DEVEL_LIBS) \
4217 libsystemd-journal.la \
4218 libsystemd-login.la \
4219 libsystemd-shared.la \
4220 libsystemd-daemon-internal.la \
4223 dist_pkgpyexec_PYTHON = \
4224 src/python-systemd/journal.py \
4225 src/python-systemd/daemon.py \
4226 src/python-systemd/__init__.py
4228 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h Makefile
4229 $(AM_V_at)$(MKDIR_P) $(dir $@)
4230 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
4233 src/python-systemd/id128-constants.h
4235 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
4237 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
4238 $(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/
4239 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
4242 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
4243 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
4246 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
4247 $(MAKE) DESTDIR="$$dir" install && \
4248 $(MAKE) DESTDIR="$$dir" sphinx-html && \
4253 CLEAN_LOCAL_HOOKS += clean-sphinx
4256 -rm -rf docs/html/python-systemd/
4258 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
4260 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
4261 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
4263 # ------------------------------------------------------------------------------
4265 '|rootlibexecdir=$(rootlibexecdir)|' \
4266 '|rootbindir=$(rootbindir)|' \
4267 '|bindir=$(bindir)|' \
4268 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
4269 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
4270 '|pkgsysconfdir=$(pkgsysconfdir)|' \
4271 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
4272 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
4273 '|pkgdatadir=$(pkgdatadir)|' \
4274 '|systemunitdir=$(systemunitdir)|' \
4275 '|userunitdir=$(userunitdir)|' \
4276 '|systempresetdir=$(systempresetdir)|' \
4277 '|userpresetdir=$(userpresetdir)|' \
4278 '|udevhwdbdir=$(udevhwdbdir)|' \
4279 '|udevrulesdir=$(udevrulesdir)|' \
4280 '|catalogdir=$(catalogdir)|' \
4281 '|tmpfilesdir=$(tmpfilesdir)|' \
4282 '|sysctldir=$(sysctldir)|' \
4283 '|systemgeneratordir=$(systemgeneratordir)|' \
4284 '|usergeneratordir=$(usergeneratordir)|' \
4285 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
4286 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
4287 '|PACKAGE_URL=$(PACKAGE_URL)|' \
4288 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
4289 '|prefix=$(prefix)|' \
4290 '|exec_prefix=$(exec_prefix)|' \
4291 '|libdir=$(libdir)|' \
4292 '|includedir=$(includedir)|' \
4293 '|VERSION=$(VERSION)|' \
4294 '|rootprefix=$(rootprefix)|' \
4295 '|udevlibexecdir=$(udevlibexecdir)|' \
4296 '|SUSHELL=$(SUSHELL)|' \
4297 '|DEBUGTTY=$(DEBUGTTY)|' \
4300 '|MKDIR_P=$(MKDIR_P)|' \
4301 '|QUOTAON=$(QUOTAON)|' \
4302 '|QUOTACHECK=$(QUOTACHECK)|' \
4303 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
4304 '|VARLOGDIR=$(varlogdir)|' \
4305 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
4306 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
4307 '|PYTHON=$(PYTHON)|' \
4308 '|PYTHON_BINARY=$(PYTHON_BINARY)|'
4311 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
4312 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
4315 units/%: units/%.in Makefile
4318 man/%: man/%.in Makefile
4321 sysctl.d/%: sysctl.d/%.in Makefile
4324 %.pc: %.pc.in Makefile
4327 src/core/macros.%: src/core/macros.%.in Makefile
4330 src/%.policy.in: src/%.policy.in.in Makefile
4333 %.rules: %.rules.in Makefile
4336 %.sh: %.sh.in Makefile
4338 $(AM_V_GEN)chmod +x $@
4340 src/%.c: src/%.gperf
4341 $(AM_V_at)$(MKDIR_P) $(dir $@)
4342 $(AM_V_GPERF)$(GPERF) < $< > $@
4345 $(AM_V_at)$(MKDIR_P) $(dir $@)
4346 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
4348 units/%: units/%.m4 Makefile
4349 $(AM_V_M4)$(MKDIR_P) $(dir $@)
4350 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
4352 units/user/%: units/%.m4 Makefile
4353 $(AM_V_M4)$(MKDIR_P) $(dir $@)
4354 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
4357 nodist_polkitpolicy_DATA = \
4358 $(polkitpolicy_files) \
4359 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
4363 $(polkitpolicy_in_files) \
4364 $(polkitpolicy_in_in_files)
4367 $(nodist_systemunit_DATA) \
4368 $(nodist_userunit_DATA) \
4369 $(pkgconfigdata_DATA) \
4370 $(pkgconfiglib_DATA) \
4371 $(nodist_polkitpolicy_DATA)
4373 # ------------------------------------------------------------------------------
4375 man/custom-entities.ent: Makefile
4376 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
4377 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
4378 echo '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">,$(substitutions))))') \
4382 man/custom-entities.ent
4386 --stringparam man.output.quietly 1 \
4387 --stringparam funcsynopsis.style ansi \
4388 --stringparam man.authors.section.enabled 0 \
4389 --stringparam man.copyright.section.enabled 0 \
4390 --stringparam systemd.version $(VERSION) \
4391 --path '$(builddir)/man:$(srcdir)/man'
4393 XSLTPROC_PROCESS_MAN = \
4394 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
4396 XSLTPROC_PROCESS_HTML = \
4397 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
4399 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
4400 $(XSLTPROC_PROCESS_MAN)
4402 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
4403 $(XSLTPROC_PROCESS_MAN)
4405 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
4406 $(XSLTPROC_PROCESS_MAN)
4408 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
4409 $(XSLTPROC_PROCESS_MAN)
4411 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
4412 $(XSLTPROC_PROCESS_MAN)
4414 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
4415 $(XSLTPROC_PROCESS_HTML)
4418 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
4424 man/custom-html.xsl \
4427 # ------------------------------------------------------------------------------
4430 docs/sysvinit/README
4435 docs/sysvinit/README: docs/sysvinit/README.in
4438 docs/var-log/README: docs/var-log/README.in
4442 docs/sysvinit/README \
4447 docs/sysvinit/README.in \
4448 docs/var-log/README.in
4450 SOCKETS_TARGET_WANTS += \
4451 systemd-initctl.socket \
4452 systemd-shutdownd.socket
4455 RUNLEVEL1_TARGET_WANTS += \
4456 systemd-update-utmp-runlevel.service
4457 RUNLEVEL2_TARGET_WANTS += \
4458 systemd-update-utmp-runlevel.service
4459 RUNLEVEL3_TARGET_WANTS += \
4460 systemd-update-utmp-runlevel.service
4461 RUNLEVEL4_TARGET_WANTS += \
4462 systemd-update-utmp-runlevel.service
4463 RUNLEVEL5_TARGET_WANTS += \
4464 systemd-update-utmp-runlevel.service
4466 SYSINIT_TARGET_WANTS += \
4467 systemd-update-utmp.service
4468 LOCAL_FS_TARGET_WANTS += \
4469 systemd-remount-fs.service \
4471 MULTI_USER_TARGET_WANTS += \
4473 systemd-ask-password-wall.path
4474 SYSINIT_TARGET_WANTS += \
4475 dev-hugepages.mount \
4477 sys-kernel-config.mount \
4478 sys-kernel-debug.mount \
4479 sys-fs-fuse-connections.mount \
4480 systemd-sysctl.service \
4481 systemd-ask-password-console.path
4484 SYSTEM_UNIT_ALIASES += \
4485 poweroff.target runlevel0.target \
4486 rescue.target runlevel1.target \
4487 multi-user.target runlevel2.target \
4488 multi-user.target runlevel3.target \
4489 multi-user.target runlevel4.target \
4490 graphical.target runlevel5.target \
4491 reboot.target runlevel6.target
4494 SYSTEM_UNIT_ALIASES += \
4495 graphical.target default.target \
4496 reboot.target ctrl-alt-del.target \
4497 getty@.service autovt@.service
4499 USER_UNIT_ALIASES += \
4500 $(systemunitdir)/shutdown.target shutdown.target \
4501 $(systemunitdir)/sockets.target sockets.target \
4502 $(systemunitdir)/timers.target timers.target \
4503 $(systemunitdir)/paths.target paths.target \
4504 $(systemunitdir)/bluetooth.target bluetooth.target \
4505 $(systemunitdir)/printer.target printer.target \
4506 $(systemunitdir)/sound.target sound.target \
4507 $(systemunitdir)/smartcard.target smartcard.target
4509 GENERAL_ALIASES += \
4510 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
4511 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
4512 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
4513 ../system-services/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
4517 $(systemunitdir)/runlevel1.target.wants \
4518 $(systemunitdir)/runlevel2.target.wants \
4519 $(systemunitdir)/runlevel3.target.wants \
4520 $(systemunitdir)/runlevel4.target.wants \
4521 $(systemunitdir)/runlevel5.target.wants
4525 $(prefix)/lib/modules-load.d \
4526 $(sysconfdir)/modules-load.d \
4527 $(prefix)/lib/systemd/network \
4528 $(sysconfdir)/systemd/network \
4529 $(prefix)/lib/sysctl.d \
4530 $(sysconfdir)/sysctl.d \
4531 $(prefix)/lib/kernel/install.d \
4532 $(sysconfdir)/kernel/install.d \
4533 $(systemshutdowndir) \
4535 $(systemgeneratordir) \
4536 $(usergeneratordir) \
4539 $(pkgsysconfdir)/system \
4540 $(pkgsysconfdir)/system/multi-user.target.wants \
4541 $(pkgsysconfdir)/system/getty.target.wants \
4542 $(pkgsysconfdir)/user \
4543 $(dbussessionservicedir) \
4544 $(sysconfdir)/xdg/systemd
4546 install-exec-hook: $(INSTALL_EXEC_HOOKS)
4548 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
4550 install-data-hook: $(INSTALL_DATA_HOOKS)
4552 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
4554 clean-local: $(CLEAN_LOCAL_HOOKS)
4555 rm -rf $(abs_srcdir)/install-tree
4556 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
4557 $(abs_srcdir)/hwdb/iab.txt
4559 DISTCHECK_CONFIGURE_FLAGS = \
4560 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
4561 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
4562 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
4563 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
4564 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
4565 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
4566 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
4567 --with-rootprefix=$$dc_install_base \
4571 DISTCHECK_CONFIGURE_FLAGS += \
4572 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
4573 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
4575 DISTCHECK_CONFIGURE_FLAGS += \
4576 --with-sysvinit-path= \
4577 --with-sysvrcnd-path=
4581 DISTCHECK_CONFIGURE_FLAGS += \
4586 ( cd $(top_srcdir)/hwdb && \
4587 wget -N http://www.linux-usb.org/usb.ids \
4588 http://pci-ids.ucw.cz/v2.2/pci.ids \
4589 http://standards.ieee.org/develop/regauth/oui/oui.txt \
4590 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
4594 ( cd $(top_srcdir)/src/libsystemd-bus/ && \
4595 wget -N https://d-bus.googlecode.com/git/kdbus.h )
4597 upload: all distcheck
4598 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
4599 scp systemd-$(VERSION).tar.xz fdo:/srv/www.freedesktop.org/www/software/systemd/
4600 scp man/*.html tango:public/systemd-man/
4602 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
4603 doc-sync: all destdir-sphinx
4604 gtkdoc-rebase --html-dir=docs/libudev/html --online
4605 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
4606 gtkdoc-rebase --html-dir=docs/gudev/html --online
4607 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
4608 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
4609 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
4612 git tag "v$(VERSION)" -m "systemd $(VERSION)"
4615 rm -rf $(abs_srcdir)/install-tree
4616 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
4617 tree $(abs_srcdir)/install-tree
4619 # Let's run all tests of the test suite, but under valgrind. Let's
4620 # exclude the one perl script we have in there
4621 valgrind-tests: $(TESTS)
4622 for f in $(TESTS) ; do [ "$$f" == "$${f/.pl/}" ] && libtool --mode=execute valgrind --leak-check=full --error-exitcode=55 $(builddir)/$$f ; done