1 # -*- Mode: makefile; indent-tabs-mode: t -*-
3 # This file is part of systemd.
5 # Copyright 2010-2012 Lennart Poettering
6 # Copyright 2010-2012 Kay Sievers
7 # Copyright 2013 Zbigniew Jędrzejewski-Szmek
8 # Copyright 2013 David Strauss
10 # systemd is free software; you can redistribute it and/or modify it
11 # under the terms of the GNU Lesser General Public License as published by
12 # the Free Software Foundation; either version 2.1 of the License, or
13 # (at your option) any later version.
15 # systemd is distributed in the hope that it will be useful, but
16 # WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 # Lesser General Public License for more details.
20 # You should have received a copy of the GNU Lesser General Public License
21 # along with systemd; If not, see <http://www.gnu.org/licenses/>.
23 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
24 AM_MAKEFLAGS = --no-print-directory
25 AUTOMAKE_OPTIONS = color-tests parallel-tests
27 GCC_COLORS ?= 'ooh, shiny!'
32 # remove targets if the command fails
35 # keep intermediate files
38 # Keep the test-suite.log
39 .PRECIOUS: $(TEST_SUITE_LOG) Makefile
53 # The following four libraries only exist for compatibility reasons,
54 # their version info should not be bumped anymore
55 LIBSYSTEMD_LOGIN_CURRENT=9
56 LIBSYSTEMD_LOGIN_REVISION=3
57 LIBSYSTEMD_LOGIN_AGE=9
59 LIBSYSTEMD_DAEMON_CURRENT=0
60 LIBSYSTEMD_DAEMON_REVISION=12
61 LIBSYSTEMD_DAEMON_AGE=0
63 LIBSYSTEMD_ID128_CURRENT=0
64 LIBSYSTEMD_ID128_REVISION=28
65 LIBSYSTEMD_ID128_AGE=0
67 LIBSYSTEMD_JOURNAL_CURRENT=11
68 LIBSYSTEMD_JOURNAL_REVISION=5
69 LIBSYSTEMD_JOURNAL_AGE=11
71 # Dirs of external packages
72 dbuspolicydir=@dbuspolicydir@
73 dbussessionservicedir=@dbussessionservicedir@
74 dbussystemservicedir=@dbussystemservicedir@
76 pamconfdir=@pamconfdir@
77 pkgconfigdatadir=$(datadir)/pkgconfig
78 pkgconfiglibdir=$(libdir)/pkgconfig
79 polkitpolicydir=$(datadir)/polkit-1/actions
80 bashcompletiondir=@bashcompletiondir@
81 zshcompletiondir=@zshcompletiondir@
82 rpmmacrosdir=$(prefix)/lib/rpm/macros.d
83 sysvinitdir=$(SYSTEM_SYSVINIT_PATH)
84 sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
85 varlogdir=$(localstatedir)/log
86 systemdstatedir=$(localstatedir)/lib/systemd
87 catalogstatedir=$(systemdstatedir)/catalog
89 # Our own, non-special dirs
90 pkgsysconfdir=$(sysconfdir)/systemd
91 userunitdir=$(prefix)/lib/systemd/user
92 userpresetdir=$(prefix)/lib/systemd/user-preset
93 tmpfilesdir=$(prefix)/lib/tmpfiles.d
94 sysusersdir=$(prefix)/lib/sysusers.d
95 sysctldir=$(prefix)/lib/sysctl.d
96 binfmtdir=$(prefix)/lib/binfmt.d
97 modulesloaddir=$(prefix)/lib/modules-load.d
98 networkdir=$(rootprefix)/lib/systemd/network
99 pkgincludedir=$(includedir)/systemd
100 systemgeneratordir=$(rootlibexecdir)/system-generators
101 usergeneratordir=$(prefix)/lib/systemd/user-generators
102 systemshutdowndir=$(rootlibexecdir)/system-shutdown
103 systemsleepdir=$(rootlibexecdir)/system-sleep
104 systemunitdir=$(rootprefix)/lib/systemd/system
105 systempresetdir=$(rootprefix)/lib/systemd/system-preset
106 udevlibexecdir=$(rootprefix)/lib/udev
107 udevhomedir=$(udevlibexecdir)
108 udevrulesdir=$(udevlibexecdir)/rules.d
109 udevhwdbdir=$(udevlibexecdir)/hwdb.d
110 catalogdir=$(prefix)/lib/systemd/catalog
111 kernelinstalldir = $(prefix)/lib/kernel/install.d
112 factory_etcdir = $(prefix)/share/factory/etc
113 factory_pamdir = $(prefix)/share/factory/etc/pam.d
115 # And these are the special ones for /
116 rootprefix=@rootprefix@
117 rootbindir=$(rootprefix)/bin
118 rootlibexecdir=$(rootprefix)/lib/systemd
120 CLEANFILES = $(BUILT_SOURCES)
125 UNINSTALL_EXEC_HOOKS =
127 UNINSTALL_DATA_HOOKS =
128 DISTCLEAN_LOCAL_HOOKS =
136 polkitpolicy_in_in_files =
137 polkitpolicy_in_files =
139 dist_udevrules_DATA =
140 nodist_udevrules_DATA =
141 dist_pkgsysconf_DATA =
142 nodist_pkgsysconf_DATA =
144 dist_dbuspolicy_DATA =
145 dist_dbussystemservice_DATA =
146 dist_systemunit_DATA_busnames =
152 noinst_PROGRAMS = $(manual_tests) $(tests)
158 udevlibexec_PROGRAMS =
160 .PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \
161 $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \
162 $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS)
165 -include $(top_builddir)/config.h \
166 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
167 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
168 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
169 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
170 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
171 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
172 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
173 -DCERTIFICATE_ROOT=\"$(CERTIFICATEROOT)\" \
174 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
175 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
176 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
177 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
178 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
179 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
180 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
181 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
182 -DROOTPREFIX=\"$(rootprefix)\" \
183 -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \
184 -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
185 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
186 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
187 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
188 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
189 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
190 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
191 -DX_SERVER=\"$(bindir)/X\" \
192 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
193 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
194 -DQUOTACHECK=\"$(QUOTACHECK)\" \
195 -DKEXEC=\"$(KEXEC)\" \
196 -DLIBDIR=\"$(libdir)\" \
197 -DROOTLIBDIR=\"$(rootlibdir)\" \
198 -DTEST_DIR=\"$(abs_top_srcdir)/test\" \
199 -I $(top_srcdir)/src \
200 -I $(top_builddir)/src/shared \
201 -I $(top_srcdir)/src/shared \
202 -I $(top_srcdir)/src/network \
203 -I $(top_srcdir)/src/login \
204 -I $(top_srcdir)/src/journal \
205 -I $(top_srcdir)/src/timedate \
206 -I $(top_srcdir)/src/timesync \
207 -I $(top_srcdir)/src/resolve \
208 -I $(top_builddir)/src/resolve \
209 -I $(top_srcdir)/src/systemd \
210 -I $(top_builddir)/src/core \
211 -I $(top_srcdir)/src/core \
212 -I $(top_srcdir)/src/libudev \
213 -I $(top_srcdir)/src/udev \
214 -I $(top_srcdir)/src/udev/net \
215 -I $(top_builddir)/src/udev \
216 -I $(top_srcdir)/src/libsystemd/sd-bus \
217 -I $(top_srcdir)/src/libsystemd/sd-event \
218 -I $(top_srcdir)/src/libsystemd/sd-rtnl \
219 -I $(top_srcdir)/src/libsystemd/sd-network \
220 -I $(top_srcdir)/src/libsystemd-network \
221 -I $(top_srcdir)/src/libsystemd-terminal \
224 AM_CFLAGS = $(OUR_CFLAGS)
225 AM_LDFLAGS = $(OUR_LDFLAGS)
227 # ------------------------------------------------------------------------------
228 define move-to-rootlibdir
229 if test "$(libdir)" != "$(rootlibdir)"; then \
230 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
231 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
232 rm -f $(DESTDIR)$(libdir)/$$libname && \
233 $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
234 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
240 RUNLEVEL1_TARGET_WANTS =
241 RUNLEVEL2_TARGET_WANTS =
242 RUNLEVEL3_TARGET_WANTS =
243 RUNLEVEL4_TARGET_WANTS =
244 RUNLEVEL5_TARGET_WANTS =
245 SHUTDOWN_TARGET_WANTS =
246 LOCAL_FS_TARGET_WANTS =
247 MULTI_USER_TARGET_WANTS =
248 SYSINIT_TARGET_WANTS =
249 SOCKETS_TARGET_WANTS =
250 BUSNAMES_TARGET_WANTS =
251 TIMERS_TARGET_WANTS =
252 USER_SOCKETS_TARGET_WANTS =
253 USER_BUSNAMES_TARGET_WANTS =
255 SYSTEM_UNIT_ALIASES =
259 install-target-wants-hook:
260 what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && dir=$(systemunitdir) && $(add-wants)
261 what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && dir=$(systemunitdir) && $(add-wants)
262 what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && dir=$(systemunitdir) && $(add-wants)
263 what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && dir=$(systemunitdir) && $(add-wants)
264 what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && dir=$(systemunitdir) && $(add-wants)
265 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
266 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
267 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
268 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
269 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
270 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
271 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
272 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
274 install-busnames-target-wants-hook:
275 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
276 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
279 [ -z "$$what" ] || ( \
280 dir=$(DESTDIR)$$dir/$$wants.wants && \
281 $(MKDIR_P) -m 0755 $$dir && \
284 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
287 install-directories-hook:
288 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
290 install-aliases-hook:
291 set -- $(SYSTEM_UNIT_ALIASES) && \
292 dir=$(systemunitdir) && $(install-aliases)
293 set -- $(USER_UNIT_ALIASES) && \
294 dir=$(userunitdir) && $(install-relative-aliases)
295 set -- $(GENERAL_ALIASES) && \
296 dir= && $(install-relative-aliases)
298 define install-aliases
299 while [ -n "$$1" ]; do \
300 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
301 rm -f $(DESTDIR)$$dir/$$2 && \
302 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
303 shift 2 || exit $$?; \
307 define install-relative-aliases
308 while [ -n "$$1" ]; do \
309 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
310 rm -f $(DESTDIR)$$dir/$$2 && \
311 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
312 shift 2 || exit $$?; \
316 install-touch-usr-hook:
317 touch -c $(DESTDIR)/$(prefix)
319 INSTALL_EXEC_HOOKS += \
320 install-target-wants-hook \
321 install-directories-hook \
322 install-aliases-hook \
323 install-touch-usr-hook
326 INSTALL_EXEC_HOOKS += \
327 install-busnames-target-wants-hook
330 # ------------------------------------------------------------------------------
331 AM_V_M4 = $(AM_V_M4_$(V))
332 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
333 AM_V_M4_0 = @echo " M4 " $@;
335 AM_V_XSLT = $(AM_V_XSLT_$(V))
336 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
337 AM_V_XSLT_0 = @echo " XSLT " $@;
339 AM_V_GPERF = $(AM_V_GPERF_$(V))
340 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
341 AM_V_GPERF_0 = @echo " GPERF " $@;
343 AM_V_LN = $(AM_V_LN_$(V))
344 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
345 AM_V_LN_0 = @echo " LN " $@;
347 AM_V_RM = $(AM_V_RM_$(V))
348 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
349 AM_V_RM_0 = @echo " RM " $@;
351 # ------------------------------------------------------------------------------
355 systemd-ask-password \
356 systemd-tty-ask-password-agent \
357 systemd-machine-id-setup \
364 systemd-detect-virt \
371 src/kernel-install/kernel-install
373 dist_kernelinstall_SCRIPTS = \
374 src/kernel-install/50-depmod.install \
375 src/kernel-install/90-loaderentry.install
377 rootlibexec_PROGRAMS = \
379 systemd-cgroups-agent \
381 systemd-update-utmp \
385 systemd-reply-password \
390 systemd-socket-proxyd \
393 systemgenerator_PROGRAMS = \
394 systemd-getty-generator \
395 systemd-fstab-generator \
396 systemd-system-update-generator \
397 systemd-debug-generator
399 dist_bashcompletion_DATA = \
400 shell-completion/bash/busctl \
401 shell-completion/bash/journalctl \
402 shell-completion/bash/systemd-analyze \
403 shell-completion/bash/systemd-cat \
404 shell-completion/bash/systemd-cgls \
405 shell-completion/bash/systemd-cgtop \
406 shell-completion/bash/systemd-delta \
407 shell-completion/bash/systemd-detect-virt \
408 shell-completion/bash/systemd-nspawn \
409 shell-completion/bash/systemd-run \
410 shell-completion/bash/udevadm \
411 shell-completion/bash/kernel-install
413 nodist_bashcompletion_DATA = \
414 shell-completion/bash/systemctl
416 dist_zshcompletion_DATA = \
417 shell-completion/zsh/_journalctl \
418 shell-completion/zsh/_udevadm \
419 shell-completion/zsh/_kernel-install \
420 shell-completion/zsh/_systemd-nspawn \
421 shell-completion/zsh/_systemd-analyze \
422 shell-completion/zsh/_systemd-run \
423 shell-completion/zsh/_sd_hosts_or_user_at_host \
424 shell-completion/zsh/_sd_outputmodes \
425 shell-completion/zsh/_sd_unit_files \
426 shell-completion/zsh/_systemd-delta \
427 shell-completion/zsh/_systemd
429 nodist_zshcompletion_DATA = \
430 shell-completion/zsh/_systemctl
433 shell-completion/bash/systemctl.in \
434 shell-completion/zsh/_systemctl.in
437 $(nodist_bashcompletion_DATA) \
438 $(nodist_zshcompletion_DATA)
441 sysctl.d/50-default.conf
443 dist_systemunit_DATA = \
444 units/graphical.target \
445 units/multi-user.target \
446 units/emergency.target \
447 units/sysinit.target \
452 units/local-fs.target \
453 units/local-fs-pre.target \
454 units/initrd.target \
455 units/initrd-fs.target \
456 units/initrd-root-fs.target \
457 units/remote-fs.target \
458 units/remote-fs-pre.target \
459 units/network.target \
460 units/network-pre.target \
461 units/network-online.target \
462 units/nss-lookup.target \
463 units/nss-user-lookup.target \
464 units/poweroff.target \
465 units/reboot.target \
466 units/rescue.target \
467 units/rpcbind.target \
468 units/time-sync.target \
469 units/shutdown.target \
471 units/umount.target \
472 units/sigpwr.target \
474 units/sockets.target \
475 units/timers.target \
477 units/suspend.target \
479 units/slices.target \
482 units/systemd-initctl.socket \
483 units/systemd-shutdownd.socket \
484 units/syslog.socket \
485 units/dev-hugepages.mount \
486 units/dev-mqueue.mount \
487 units/sys-kernel-config.mount \
488 units/sys-kernel-debug.mount \
489 units/sys-fs-fuse-connections.mount \
491 units/printer.target \
493 units/bluetooth.target \
494 units/smartcard.target \
495 units/systemd-ask-password-wall.path \
496 units/systemd-ask-password-console.path \
497 units/systemd-udevd-control.socket \
498 units/systemd-udevd-kernel.socket \
499 units/system-update.target \
500 units/initrd-switch-root.target
503 dist_systemunit_DATA += \
504 $(dist_systemunit_DATA_busnames)
507 dist_systemunit_DATA_busnames += \
508 units/busnames.target
510 nodist_systemunit_DATA = \
511 units/getty@.service \
512 units/serial-getty@.service \
513 units/console-shell.service \
514 units/console-getty.service \
515 units/container-getty@.service \
516 units/systemd-initctl.service \
517 units/systemd-shutdownd.service \
518 units/systemd-remount-fs.service \
519 units/systemd-update-utmp.service \
520 units/systemd-update-utmp-runlevel.service \
521 units/systemd-ask-password-wall.service \
522 units/systemd-ask-password-console.service \
523 units/systemd-sysctl.service \
524 units/emergency.service \
525 units/rescue.service \
526 units/user@.service \
527 units/systemd-suspend.service \
528 units/systemd-halt.service \
529 units/systemd-poweroff.service \
530 units/systemd-reboot.service \
531 units/systemd-kexec.service \
532 units/systemd-fsck@.service \
533 units/systemd-fsck-root.service \
534 units/systemd-udevd.service \
535 units/systemd-udev-trigger.service \
536 units/systemd-udev-settle.service \
537 units/systemd-udev-hwdb-update.service \
538 units/debug-shell.service \
539 units/initrd-parse-etc.service \
540 units/initrd-cleanup.service \
541 units/initrd-udevadm-cleanup-db.service \
542 units/initrd-switch-root.service \
543 units/systemd-nspawn@.service \
544 units/systemd-update-done.service
546 dist_userunit_DATA = \
547 units/user/basic.target \
548 units/user/default.target \
549 units/user/exit.target
551 nodist_userunit_DATA = \
552 units/user/systemd-exit.service
554 dist_systempreset_DATA = \
555 system-preset/90-systemd.preset
558 units/getty@.service.m4 \
559 units/serial-getty@.service.m4 \
560 units/console-shell.service.m4.in \
561 units/console-getty.service.m4.in \
562 units/container-getty@.service.m4.in \
563 units/rescue.service.in \
564 units/systemd-initctl.service.in \
565 units/systemd-shutdownd.service.in \
566 units/systemd-remount-fs.service.in \
567 units/systemd-update-utmp.service.in \
568 units/systemd-update-utmp-runlevel.service.in \
569 units/systemd-ask-password-wall.service.in \
570 units/systemd-ask-password-console.service.in \
571 units/systemd-sysctl.service.in \
572 units/emergency.service.in \
573 units/systemd-halt.service.in \
574 units/systemd-poweroff.service.in \
575 units/systemd-reboot.service.in \
576 units/systemd-kexec.service.in \
577 units/user/systemd-exit.service.in \
578 units/systemd-fsck@.service.in \
579 units/systemd-fsck-root.service.in \
580 units/user@.service.in \
581 units/debug-shell.service.in \
582 units/systemd-suspend.service.in \
583 units/quotaon.service.in \
584 units/initrd-parse-etc.service.in \
585 units/initrd-cleanup.service.in \
586 units/initrd-udevadm-cleanup-db.service.in \
587 units/initrd-switch-root.service.in \
588 units/systemd-nspawn@.service.in \
589 units/systemd-update-done.service.in
592 units/console-shell.service.m4 \
593 units/console-getty.service.m4 \
594 units/container-getty@.service.m4 \
595 units/user@.service.m4
598 nodist_systemunit_DATA += \
599 units/rc-local.service \
600 units/halt-local.service
602 systemgenerator_PROGRAMS += \
603 systemd-sysv-generator \
604 systemd-rc-local-generator
608 units/rc-local.service.in \
609 units/halt-local.service.in
611 # automake is broken and can't handle files with a dash in front
612 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
614 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
616 units-uninstall-hook:
617 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
619 INSTALL_DATA_HOOKS += units-install-hook
620 UNINSTALL_DATA_HOOKS += units-uninstall-hook
629 src/libsystemd/sd-bus/PORTING-DBUS1 \
630 src/libsystemd/sd-bus/DIFFERENCES \
631 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
633 @INTLTOOL_POLICY_RULE@
635 # ------------------------------------------------------------------------------
640 include Makefile-man.am
642 .PHONY: man update-man-list
643 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
646 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
648 ${XML_FILES:.xml=.html}
650 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
667 $(AM_V_at)$(MKDIR_P) $(dir $@)
668 $(AM_V_LN)$(LN_S) -f ../../man $@
677 man/index.html: man/systemd.index.html
678 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
686 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
687 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
688 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
690 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB)
691 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
692 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
693 @echo "Makefile-man.am has been regenerated"
695 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
696 $(AM_V_at)$(MKDIR_P) $(dir $@)
697 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
699 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py $(SOURCE_XML_FILES)
700 $(AM_V_at)$(MKDIR_P) $(dir $@)
701 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
704 man/systemd.index.xml \
706 man/systemd.directives.xml
709 man/systemd.index.xml \
710 man/systemd.directives.xml
721 tools/make-man-index.py \
722 tools/make-directive-index.py \
723 tools/make-man-rules.py \
726 # ------------------------------------------------------------------------------
727 noinst_LTLIBRARIES += \
730 libsystemd_shared_la_SOURCES = \
731 src/shared/linux/auto_dev-ioctl.h \
732 src/shared/linux/fanotify.h \
733 src/shared/ioprio.h \
734 src/shared/missing.h \
735 src/shared/initreq.h \
736 src/shared/securebits.h \
737 src/shared/special.h \
741 src/shared/sparse-endian.h \
742 src/shared/refcnt.h \
743 src/shared/udev-util.h \
744 src/shared/bus-errors.h \
745 src/shared/device-nodes.c \
746 src/shared/device-nodes.h \
751 src/shared/architecture.c \
752 src/shared/architecture.h \
753 src/shared/efivars.c \
754 src/shared/efivars.h \
755 src/shared/path-util.c \
756 src/shared/path-util.h \
757 src/shared/time-util.c \
758 src/shared/time-util.h \
759 src/shared/locale-util.c \
760 src/shared/locale-util.h \
761 src/shared/hashmap.c \
762 src/shared/hashmap.h \
763 src/shared/siphash24.c \
764 src/shared/siphash24.h \
771 src/shared/sleep-config.c \
772 src/shared/sleep-config.h \
775 src/shared/env-util.c \
776 src/shared/env-util.h \
777 src/shared/strbuf.c \
778 src/shared/strbuf.h \
779 src/shared/strxcpyx.c \
780 src/shared/strxcpyx.h \
781 src/shared/conf-parser.c \
782 src/shared/conf-parser.h \
785 src/shared/ratelimit.h \
786 src/shared/ratelimit.c \
787 src/shared/exit-status.c \
788 src/shared/exit-status.h \
791 src/shared/gunicode.c \
792 src/shared/gunicode.h \
795 src/shared/socket-util.c \
796 src/shared/socket-util.h \
797 src/shared/in-addr-util.c \
798 src/shared/in-addr-util.h \
799 src/shared/conf-files.c \
800 src/shared/conf-files.h \
801 src/shared/cgroup-util.c \
802 src/shared/cgroup-util.h \
803 src/shared/cgroup-show.c \
804 src/shared/cgroup-show.h \
805 src/shared/unit-name.c \
806 src/shared/unit-name.h \
807 src/shared/utmp-wtmp.c \
808 src/shared/utmp-wtmp.h \
809 src/shared/watchdog.c \
810 src/shared/watchdog.h \
811 src/shared/spawn-ask-password-agent.c \
812 src/shared/spawn-ask-password-agent.h \
813 src/shared/replace-var.c \
814 src/shared/replace-var.h \
815 src/shared/spawn-polkit-agent.c \
816 src/shared/spawn-polkit-agent.h \
817 src/shared/clock-util.c \
818 src/shared/clock-util.h \
819 src/shared/time-dst.c \
820 src/shared/time-dst.h \
821 src/shared/calendarspec.c \
822 src/shared/calendarspec.h \
823 src/shared/fileio.c \
824 src/shared/fileio.h \
825 src/shared/output-mode.h \
826 src/shared/MurmurHash2.c \
827 src/shared/MurmurHash2.h \
828 src/shared/acpi-fpdt.h \
829 src/shared/acpi-fpdt.c \
830 src/shared/boot-timestamps.h \
831 src/shared/boot-timestamps.c \
834 src/shared/smack-util.c \
835 src/shared/smack-util.h \
836 src/shared/apparmor-util.c \
837 src/shared/apparmor-util.h \
838 src/shared/ima-util.c \
839 src/shared/ima-util.h \
840 src/shared/ptyfwd.c \
841 src/shared/ptyfwd.h \
842 src/shared/errno-list.c \
843 src/shared/errno-list.h \
844 src/shared/af-list.c \
845 src/shared/af-list.h \
846 src/shared/arphrd-list.c \
847 src/shared/arphrd-list.h \
852 src/shared/condition-util.c \
853 src/shared/condition-util.h \
854 src/shared/bus-label.c \
855 src/shared/bus-label.h \
857 src/shared/clean-ipc.h \
858 src/shared/clean-ipc.c \
859 src/shared/login-shared.c \
860 src/shared/login-shared.h \
863 src/shared/barrier.c \
864 src/shared/barrier.h \
871 src/shared/base-filesystem.c \
872 src/shared/base-filesystem.h \
875 src/shared/uid-range.c \
876 src/shared/uid-range.h \
877 src/shared/switch-root.h \
878 src/shared/switch-root.c \
879 src/shared/nss-util.h
881 nodist_libsystemd_shared_la_SOURCES = \
882 src/shared/errno-from-name.h \
883 src/shared/errno-to-name.h \
884 src/shared/af-from-name.h \
885 src/shared/af-to-name.h \
886 src/shared/arphrd-from-name.h \
887 src/shared/arphrd-to-name.h
889 libsystemd_shared_la_CFLAGS = \
894 # ------------------------------------------------------------------------------
895 noinst_LTLIBRARIES += \
898 libsystemd_units_la_SOURCES = \
899 src/shared/install.c \
900 src/shared/install.h \
901 src/shared/install-printf.c \
902 src/shared/install-printf.h \
903 src/shared/path-lookup.c \
904 src/shared/path-lookup.h \
905 src/shared/specifier.c \
906 src/shared/specifier.h
908 # ------------------------------------------------------------------------------
909 noinst_LTLIBRARIES += \
912 libsystemd_label_la_SOURCES = \
913 src/shared/socket-label.c \
916 src/shared/selinux-util.c \
917 src/shared/selinux-util.h \
918 src/shared/mkdir-label.c \
919 src/shared/ask-password-api.c \
920 src/shared/ask-password-api.h \
921 src/shared/fileio-label.c \
922 src/shared/fileio-label.h \
923 src/shared/dev-setup.c \
924 src/shared/dev-setup.h \
925 src/shared/dropin.c \
926 src/shared/dropin.h \
927 src/shared/generator.h \
928 src/shared/generator.c
930 libsystemd_label_la_CFLAGS = \
934 libsystemd_label_la_LIBADD = \
937 # -----------------------------------------------------------------------------
940 dist_systemunit_DATA += \
941 units/ldconfig.service
943 SYSINIT_TARGET_WANTS += \
947 # ------------------------------------------------------------------------------
950 noinst_LTLIBRARIES += \
951 libsystemd-seccomp.la
953 libsystemd_seccomp_la_SOURCES = \
954 src/shared/seccomp-util.h \
955 src/shared/seccomp-util.c
957 libsystemd_seccomp_la_CFLAGS = \
961 libsystemd_seccomp_la_LIBADD = \
965 # ------------------------------------------------------------------------------
966 noinst_LTLIBRARIES += \
969 libsystemd_logs_la_SOURCES = \
970 src/shared/logs-show.c \
971 src/shared/logs-show.h
973 # ------------------------------------------------------------------------------
974 noinst_LTLIBRARIES += \
975 libsystemd-capability.la
977 libsystemd_capability_la_SOURCES = \
978 src/shared/capability.c \
979 src/shared/capability.h
981 libsystemd_capability_la_CFLAGS = \
985 libsystemd_capability_la_LIBADD = \
988 # ------------------------------------------------------------------------------
990 noinst_LTLIBRARIES += \
993 libsystemd_acl_la_SOURCES = \
994 src/shared/acl-util.c \
995 src/shared/acl-util.h
997 libsystemd_acl_la_CFLAGS = \
1001 libsystemd_acl_la_LIBADD = \
1005 # ------------------------------------------------------------------------------
1006 noinst_LTLIBRARIES += \
1009 libsystemd_core_la_SOURCES = \
1012 src/core/unit-printf.c \
1013 src/core/unit-printf.h \
1016 src/core/manager.c \
1017 src/core/manager.h \
1018 src/core/transaction.c \
1019 src/core/transaction.h \
1020 src/core/load-fragment.c \
1021 src/core/load-fragment.h \
1022 src/core/service.c \
1023 src/core/service.h \
1026 src/core/busname.c \
1027 src/core/busname.h \
1028 src/core/bus-common.c \
1029 src/core/bus-common.h \
1030 src/core/bus-endpoint.c \
1031 src/core/bus-endpoint.h \
1034 src/core/snapshot.c \
1035 src/core/snapshot.h \
1040 src/core/automount.c \
1041 src/core/automount.h \
1052 src/core/load-dropin.c \
1053 src/core/load-dropin.h \
1054 src/core/execute.c \
1055 src/core/execute.h \
1060 src/core/dbus-manager.c \
1061 src/core/dbus-manager.h \
1062 src/core/dbus-unit.c \
1063 src/core/dbus-unit.h \
1064 src/core/dbus-job.c \
1065 src/core/dbus-job.h \
1066 src/core/dbus-service.c \
1067 src/core/dbus-service.h \
1068 src/core/dbus-socket.c \
1069 src/core/dbus-socket.h \
1070 src/core/dbus-busname.c \
1071 src/core/dbus-busname.h \
1072 src/core/dbus-target.c \
1073 src/core/dbus-target.h \
1074 src/core/dbus-snapshot.c \
1075 src/core/dbus-snapshot.h \
1076 src/core/dbus-device.c \
1077 src/core/dbus-device.h \
1078 src/core/dbus-mount.c \
1079 src/core/dbus-mount.h \
1080 src/core/dbus-automount.c \
1081 src/core/dbus-automount.h \
1082 src/core/dbus-swap.c \
1083 src/core/dbus-swap.h \
1084 src/core/dbus-timer.c \
1085 src/core/dbus-timer.h \
1086 src/core/dbus-path.c \
1087 src/core/dbus-path.h \
1088 src/core/dbus-slice.c \
1089 src/core/dbus-slice.h \
1090 src/core/dbus-scope.c \
1091 src/core/dbus-scope.h \
1092 src/core/dbus-execute.c \
1093 src/core/dbus-execute.h \
1094 src/core/dbus-kill.c \
1095 src/core/dbus-kill.h \
1096 src/core/dbus-cgroup.c \
1097 src/core/dbus-cgroup.h \
1100 src/core/selinux-access.c \
1101 src/core/selinux-access.h \
1102 src/core/selinux-setup.c \
1103 src/core/selinux-setup.h \
1104 src/core/smack-setup.c \
1105 src/core/smack-setup.h \
1106 src/core/ima-setup.c \
1107 src/core/ima-setup.h \
1108 src/core/locale-setup.h \
1109 src/core/locale-setup.c \
1110 src/core/hostname-setup.c \
1111 src/core/hostname-setup.h \
1112 src/core/machine-id-setup.c \
1113 src/core/machine-id-setup.h \
1114 src/core/mount-setup.c \
1115 src/core/mount-setup.h \
1116 src/core/loopback-setup.h \
1117 src/core/loopback-setup.c \
1118 src/core/condition.c \
1119 src/core/condition.h \
1120 src/core/namespace.c \
1121 src/core/namespace.h \
1123 src/core/sysfs-show.h \
1124 src/core/killall.h \
1125 src/core/killall.c \
1126 src/core/audit-fd.c \
1127 src/core/audit-fd.h \
1128 src/core/show-status.c \
1129 src/core/show-status.h \
1130 src/core/failure-action.c \
1131 src/core/failure-action.h
1134 libsystemd_core_la_SOURCES += \
1135 src/core/kmod-setup.c \
1136 src/core/kmod-setup.h
1139 nodist_libsystemd_core_la_SOURCES = \
1140 src/core/load-fragment-gperf.c \
1141 src/core/load-fragment-gperf-nulstr.c
1143 libsystemd_core_la_CFLAGS = \
1149 $(APPARMOR_CFLAGS) \
1153 libsystemd_core_la_LIBADD = \
1154 libsystemd-capability.la \
1155 libsystemd-units.la \
1156 libsystemd-label.la \
1157 libudev-internal.la \
1158 libsystemd-shared.la \
1159 libsystemd-internal.la \
1168 libsystemd_core_la_LIBADD += \
1169 libsystemd-seccomp.la
1172 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1173 $(AM_V_at)$(MKDIR_P) $(dir $@)
1174 $(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 ";" }' < $< > $@
1177 src/core/load-fragment-gperf.gperf.m4
1180 src/core/load-fragment-gperf.gperf \
1181 src/core/load-fragment-gperf.c \
1182 src/core/load-fragment-gperf-nulstr.c \
1183 src/shared/errno-list.txt \
1184 src/shared/errno-from-name.gperf \
1185 src/shared/af-list.txt \
1186 src/shared/af-from-name.gperf \
1187 src/shared/arphrd-list.txt \
1188 src/shared/arphrd-from-name.gperf \
1189 src/shared/dns_type-list.txt \
1190 src/shared/dns_type-from-name.gperf
1193 src/shared/errno-from-name.h \
1194 src/shared/errno-to-name.h \
1195 src/shared/af-from-name.h \
1196 src/shared/af-to-name.h \
1197 src/shared/arphrd-from-name.h \
1198 src/shared/arphrd-to-name.h \
1199 src/resolve/dns_type-from-name.h \
1200 src/resolve/dns_type-to-name.h
1202 %-from-name.gperf: %-list.txt
1203 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1205 %-from-name.h: %-from-name.gperf
1206 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1209 src/shared/errno-list.txt:
1210 $(AM_V_at)$(MKDIR_P) $(dir $@)
1211 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1213 src/shared/errno-to-name.h: src/shared/errno-list.txt
1214 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1217 src/shared/af-list.txt:
1218 $(AM_V_at)$(MKDIR_P) $(dir $@)
1219 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include sys/socket.h - </dev/null | grep -v AF_UNSPEC | grep -v AF_MAX | $(AWK) '/^#define[ \t]+AF_[^ \t]+[ \t]+PF_[^ \t]/ { print $$2; }' >$@
1221 src/shared/af-to-name.h: src/shared/af-list.txt
1222 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const af_names[] = { "} !/AF_FILE/ && !/AF_ROUTE/ && !/AF_LOCAL/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1224 src/shared/arphrd-list.txt:
1225 $(AM_V_at)$(MKDIR_P) $(dir $@)
1226 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include net/if_arp.h - </dev/null | $(AWK) '/^#define[ \t]+ARPHRD_[^ \t]+[ \t]+[^ \t]/ { print $$2; }' | sed -e 's/ARPHRD_//' >$@
1228 src/shared/arphrd-to-name.h: src/shared/arphrd-list.txt
1229 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1231 src/shared/arphrd-from-name.gperf: src/shared/arphrd-list.txt
1232 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct arphrd_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, ARPHRD_%s\n", $$1, $$1 }' <$< >$@
1235 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1236 $(AM_V_at)$(MKDIR_P) $(dir $@)
1237 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1239 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1240 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char *dns_type_to_string(int type) {\n\tswitch(type) {" } {printf " case DNS_TYPE_%s: return ", $$1; sub(/_/, "-"); printf "\"%s\";\n", $$1 } END{ print "\ndefault: return NULL;\n\t}\n}\n" }' <$< >$@
1242 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1243 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct dns_type_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { s=$$1; sub(/_/, "-", s); printf "%s, ", $$s; printf "DNS_TYPE_%s\n", $$1 }' <$< >$@
1245 # ------------------------------------------------------------------------------
1254 libsystemd-core.la \
1257 dist_pkgsysconf_DATA += \
1258 src/core/system.conf \
1261 dist_dbuspolicy_DATA += \
1262 src/core/org.freedesktop.systemd1.conf
1264 dist_dbussystemservice_DATA += \
1265 src/core/org.freedesktop.systemd1.service
1267 polkitpolicy_in_in_files += \
1268 src/core/org.freedesktop.systemd1.policy.in.in
1270 pkgconfigdata_DATA = \
1273 nodist_rpmmacros_DATA = \
1274 src/core/macros.systemd
1277 src/core/systemd.pc.in \
1278 src/core/macros.systemd.in
1281 src/core/macros.systemd \
1282 src/core/org.freedesktop.systemd1.policy.in
1284 # ------------------------------------------------------------------------------
1326 test-strip-tab-ansi \
1343 test-condition-util \
1352 test/daughter.service \
1357 test/grandchild.service \
1359 test/hello-after-sleep.target \
1360 test/hello.service \
1362 test/parent-deep.slice \
1365 test/sched_idle_bad.service \
1366 test/sched_idle_ok.service \
1367 test/sched_rr_bad.service \
1368 test/sched_rr_change.service \
1369 test/sched_rr_ok.service \
1370 test/shutdown.target \
1371 test/sleep.service \
1372 test/sockets.target \
1374 test/sysinit.target \
1375 test/testsuite.target \
1376 test/timers.target \
1377 test/unstoppable.service \
1378 test/bus-policy/hello.conf \
1379 test/bus-policy/methods.conf \
1380 test/bus-policy/ownerships.conf \
1381 test/bus-policy/signals.conf
1385 src/test/test-helper.h
1387 test_device_nodes_SOURCES = \
1388 src/test/test-device-nodes.c
1390 test_device_nodes_LDADD = \
1391 libsystemd-shared.la
1393 test_engine_SOURCES = \
1394 src/test/test-engine.c
1396 test_engine_CFLAGS = \
1400 test_engine_LDADD = \
1401 libsystemd-core.la \
1404 test_job_type_SOURCES = \
1405 src/test/test-job-type.c
1407 test_job_type_CFLAGS = \
1411 test_job_type_LDADD = \
1412 libsystemd-core.la \
1425 test_loopback_SOURCES = \
1426 src/test/test-loopback.c
1428 test_loopback_LDADD = \
1431 test_hostname_SOURCES = \
1432 src/test/test-hostname.c
1434 test_hostname_LDADD = \
1441 test_boot_timestamp_SOURCES = \
1442 src/test/test-boot-timestamps.c
1444 test_boot_timestamp_LDADD = \
1445 libsystemd-shared.la
1448 test_unit_name_SOURCES = \
1449 src/test/test-unit-name.c
1451 test_unit_name_CFLAGS = \
1455 test_unit_name_LDADD = \
1456 libsystemd-core.la \
1459 test_unit_file_SOURCES = \
1460 src/test/test-unit-file.c
1462 test_unit_file_CFLAGS = \
1466 test_unit_file_LDADD = \
1467 libsystemd-core.la \
1470 test_utf8_SOURCES = \
1471 src/test/test-utf8.c
1474 libsystemd-shared.la
1476 test_capability_SOURCES = \
1477 src/test/test-capability.c
1479 test_capability_LDADD = \
1480 libsystemd-shared.la \
1481 libsystemd-capability.la
1483 test_async_SOURCES = \
1484 src/test/test-async.c
1486 test_async_LDADD = \
1487 libsystemd-shared.la
1489 test_condition_util_SOURCES = \
1490 src/test/test-condition-util.c
1492 test_condition_util_LDADD = \
1493 libsystemd-shared.la \
1494 libsystemd-internal.la
1497 test_fdset_SOURCES = \
1498 src/test/test-fdset.c
1500 test_fdset_LDADD = \
1503 test_ratelimit_SOURCES = \
1504 src/test/test-ratelimit.c
1506 test_ratelimit_LDADD = \
1507 libsystemd-shared.la
1509 test_util_SOURCES = \
1510 src/test/test-util.c
1515 test_uid_range_SOURCES = \
1516 src/test/test-uid-range.c
1518 test_uid_range_LDADD = \
1521 test_socket_util_SOURCES = \
1522 src/test/test-socket-util.c
1524 test_socket_util_LDADD = \
1527 test_ring_SOURCES = \
1528 src/test/test-ring.c
1533 test_barrier_SOURCES = \
1534 src/test/test-barrier.c
1536 test_barrier_LDADD = \
1539 test_pty_SOURCES = \
1545 test_tmpfiles_SOURCES = \
1546 src/test/test-tmpfiles.c
1548 test_tmpfiles_LDADD = \
1549 libsystemd-shared.la
1551 test_namespace_SOURCES = \
1552 src/test/test-namespace.c
1554 test_namespace_LDADD = \
1557 test_hashmap_SOURCES = \
1558 src/test/test-hashmap.c
1560 test_hashmap_LDADD = \
1563 test_xml_SOURCES = \
1567 libsystemd-shared.la
1569 test_list_SOURCES = \
1570 src/test/test-list.c
1575 test_tables_SOURCES = \
1576 src/test/test-tables.c \
1577 src/shared/test-tables.h \
1578 src/bus-proxyd/bus-policy.c \
1579 src/bus-proxyd/bus-policy.h \
1580 src/journal/journald-server.c \
1581 src/journal/journald-server.h
1583 test_tables_CPPFLAGS = \
1585 -I$(top_srcdir)/src/bus-proxyd
1587 test_tables_CFLAGS = \
1591 test_tables_LDADD = \
1592 libsystemd-logs.la \
1593 libsystemd-journal-internal.la \
1594 libsystemd-journal-core.la \
1595 libsystemd-core.la \
1599 test_prioq_SOURCES = \
1600 src/test/test-prioq.c
1602 test_prioq_LDADD = \
1605 test_fileio_SOURCES = \
1606 src/test/test-fileio.c
1608 test_fileio_LDADD = \
1611 test_time_SOURCES = \
1612 src/test/test-time.c
1617 test_architecture_SOURCES = \
1618 src/test/test-architecture.c
1620 test_architecture_LDADD = \
1621 libsystemd-shared.la
1623 test_log_SOURCES = \
1629 test_ipcrm_SOURCES = \
1630 src/test/test-ipcrm.c
1632 test_ipcrm_LDADD = \
1633 libsystemd-shared.la \
1636 test_rtnl_manual_SOURCES = \
1637 src/test/test-rtnl-manual.c
1639 test_rtnl_manual_CFLAGS = \
1643 test_rtnl_manual_LDADD = \
1644 libsystemd-internal.la \
1645 libsystemd-shared.la \
1648 test_ellipsize_SOURCES = \
1649 src/test/test-ellipsize.c
1651 test_ellipsize_LDADD = \
1654 test_date_SOURCES = \
1655 src/test/test-date.c
1660 test_sleep_SOURCES = \
1661 src/test/test-sleep.c
1663 test_sleep_LDADD = \
1666 test_replace_var_SOURCES = \
1667 src/test/test-replace-var.c
1669 test_replace_var_LDADD = \
1670 libsystemd-shared.la
1672 test_calendarspec_SOURCES = \
1673 src/test/test-calendarspec.c
1675 test_calendarspec_LDADD = \
1676 libsystemd-shared.la
1678 test_strip_tab_ansi_SOURCES = \
1679 src/test/test-strip-tab-ansi.c
1681 test_strip_tab_ansi_LDADD = \
1682 libsystemd-shared.la
1684 test_daemon_SOURCES = \
1685 src/test/test-daemon.c
1687 test_daemon_LDADD = \
1688 libsystemd-internal.la \
1689 libsystemd-shared.la
1691 test_cgroup_SOURCES = \
1692 src/test/test-cgroup.c
1694 test_cgroup_LDADD = \
1695 libsystemd-label.la \
1696 libsystemd-shared.la \
1697 libsystemd-internal.la
1699 test_cgroup_mask_SOURCES = \
1700 src/test/test-cgroup-mask.c
1702 test_cgroup_mask_CPPFLAGS = \
1704 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1706 test_cgroup_mask_CFLAGS = \
1710 test_cgroup_mask_LDADD = \
1711 libsystemd-core.la \
1714 test_cgroup_util_SOURCES = \
1715 src/test/test-cgroup-util.c
1717 test_cgroup_util_LDADD = \
1718 libsystemd-label.la \
1719 libsystemd-internal.la \
1720 libsystemd-shared.la
1722 test_env_replace_SOURCES = \
1723 src/test/test-env-replace.c
1725 test_env_replace_LDADD = \
1726 libsystemd-shared.la
1728 test_strbuf_SOURCES = \
1729 src/test/test-strbuf.c
1731 test_strbuf_LDADD = \
1732 libsystemd-shared.la
1734 test_strv_SOURCES = \
1735 src/test/test-strv.c
1738 libsystemd-units.la \
1739 libsystemd-internal.la \
1740 libsystemd-shared.la
1742 test_path_util_SOURCES = \
1743 src/test/test-path-util.c
1745 test_path_util_LDADD = \
1746 libsystemd-shared.la
1748 test_strxcpyx_SOURCES = \
1749 src/test/test-strxcpyx.c
1751 test_strxcpyx_LDADD = \
1752 libsystemd-shared.la
1754 test_install_SOURCES = \
1755 src/test/test-install.c
1757 test_install_LDADD = \
1758 libsystemd-units.la \
1759 libsystemd-label.la \
1760 libsystemd-shared.la \
1761 libsystemd-internal.la
1763 test_watchdog_SOURCES = \
1764 src/test/test-watchdog.c
1766 test_watchdog_LDADD = \
1767 libsystemd-shared.la
1769 test_sched_prio_SOURCES = \
1770 src/test/test-sched-prio.c
1772 test_sched_prio_CPPFLAGS = \
1774 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1776 test_sched_prio_CFLAGS = \
1780 test_sched_prio_LDADD = \
1781 libsystemd-core.la \
1784 test_conf_files_SOURCES = \
1785 src/test/test-conf-files.c
1787 test_conf_files_LDADD = \
1788 libsystemd-shared.la
1790 test_bus_policy_SOURCES = \
1791 src/bus-proxyd/test-bus-policy.c \
1792 src/bus-proxyd/bus-policy.c \
1793 src/bus-proxyd/bus-policy.h
1795 test_bus_policy_LDADD = \
1796 libsystemd-capability.la \
1797 libsystemd-internal.la \
1798 libsystemd-shared.la
1800 # ------------------------------------------------------------------------------
1801 ## .PHONY so it always rebuilds it
1802 .PHONY: coverage lcov-run lcov-report coverage-sync
1804 # run lcov from scratch, always
1809 coverage_dir = coverage
1810 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1813 # reset run coverage tests
1815 @rm -rf $(coverage_dir)
1816 lcov $(coverage_opts) --zerocounters
1819 # generate report based on current coverage data
1821 $(MKDIR_P) $(coverage_dir)
1822 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1823 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1824 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1825 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1827 # lcov doesn't work properly with vpath builds, make sure that bad
1828 # output is not uploaded by mistake.
1829 coverage-sync: coverage
1830 test "$(builddir)" = "$(srcdir)"
1831 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1834 lcov-run lcov-report:
1835 echo "Need to reconfigure with --enable-coverage"
1838 # ------------------------------------------------------------------------------
1839 systemd_analyze_SOURCES = \
1840 src/analyze/analyze.c \
1841 src/analyze/analyze-verify.c \
1842 src/analyze/analyze-verify.h
1844 systemd_verify_CFLAGS = \
1848 systemd_analyze_LDADD = \
1849 libsystemd-core.la \
1850 libsystemd-internal.la \
1851 libsystemd-shared.la \
1854 # ------------------------------------------------------------------------------
1855 systemd_initctl_SOURCES = \
1856 src/initctl/initctl.c
1858 systemd_initctl_LDADD = \
1859 libsystemd-internal.la \
1860 libsystemd-shared.la
1862 # ------------------------------------------------------------------------------
1863 systemd_update_utmp_SOURCES = \
1864 src/update-utmp/update-utmp.c
1866 systemd_update_utmp_CFLAGS = \
1870 systemd_update_utmp_LDADD = \
1871 libsystemd-internal.la \
1872 libsystemd-shared.la \
1875 # ------------------------------------------------------------------------------
1876 systemd_update_done_SOURCES = \
1877 src/update-done/update-done.c
1879 systemd_update_done_LDADD = \
1880 libsystemd-internal.la \
1881 libsystemd-label.la \
1882 libsystemd-shared.la
1884 # ------------------------------------------------------------------------------
1885 systemd_shutdownd_SOURCES = \
1886 src/shutdownd/shutdownd.c
1888 systemd_shutdownd_LDADD = \
1889 libsystemd-label.la \
1890 libsystemd-internal.la \
1891 libsystemd-shared.la
1894 src/systemd/sd-shutdown.h
1896 # ------------------------------------------------------------------------------
1897 systemd_shutdown_SOURCES = \
1900 src/core/shutdown.c \
1901 src/core/mount-setup.c \
1902 src/core/mount-setup.h \
1903 src/core/killall.h \
1906 systemd_shutdown_LDADD = \
1907 libsystemd-label.la \
1908 libudev-internal.la \
1909 libsystemd-shared.la
1911 # ------------------------------------------------------------------------------
1913 systemd_modules_load_SOURCES = \
1914 src/modules-load/modules-load.c
1916 systemd_modules_load_CFLAGS = \
1920 systemd_modules_load_LDADD = \
1921 libsystemd-shared.la \
1924 rootlibexec_PROGRAMS += \
1925 systemd-modules-load
1927 nodist_systemunit_DATA += \
1928 units/systemd-modules-load.service
1930 SYSINIT_TARGET_WANTS += \
1931 systemd-modules-load.service
1934 nodist_systemunit_DATA += \
1935 units/kmod-static-nodes.service
1937 SYSINIT_TARGET_WANTS += \
1938 kmod-static-nodes.service
1943 units/systemd-modules-load.service.in \
1944 units/kmod-static-nodes.service.in
1946 # ------------------------------------------------------------------------------
1948 systemd_tmpfiles_SOURCES = \
1949 src/tmpfiles/tmpfiles.c
1951 systemd_tmpfiles_LDADD = \
1952 libsystemd-units.la \
1953 libsystemd-label.la \
1954 libsystemd-capability.la \
1955 libsystemd-internal.la \
1956 libsystemd-shared.la
1958 rootbin_PROGRAMS += \
1961 dist_systemunit_DATA += \
1962 units/systemd-tmpfiles-clean.timer
1964 nodist_systemunit_DATA += \
1965 units/systemd-tmpfiles-setup-dev.service \
1966 units/systemd-tmpfiles-setup.service \
1967 units/systemd-tmpfiles-clean.service
1969 nodist_tmpfiles_DATA = \
1972 dist_tmpfiles_DATA = \
1973 tmpfiles.d/systemd.conf \
1974 tmpfiles.d/systemd-nologin.conf \
1975 tmpfiles.d/systemd-remote.conf \
1976 tmpfiles.d/tmp.conf \
1977 tmpfiles.d/x11.conf \
1981 dist_tmpfiles_DATA += \
1982 tmpfiles.d/legacy.conf
1985 SYSINIT_TARGET_WANTS += \
1986 systemd-tmpfiles-setup-dev.service \
1987 systemd-tmpfiles-setup.service
1989 dist_zshcompletion_DATA += \
1990 shell-completion/zsh/_systemd-tmpfiles
1992 TIMERS_TARGET_WANTS += \
1993 systemd-tmpfiles-clean.timer
1997 $(sysconfdir)/tmpfiles.d
2001 tmpfiles.d/etc.conf.m4 \
2002 units/systemd-tmpfiles-setup-dev.service.in \
2003 units/systemd-tmpfiles-setup.service.in \
2004 units/systemd-tmpfiles-clean.service.in
2009 # ------------------------------------------------------------------------------
2011 systemd_sysusers_SOURCES = \
2012 src/sysusers/sysusers.c
2014 systemd_sysusers_LDADD = \
2015 libsystemd-units.la \
2016 libsystemd-label.la \
2017 libsystemd-capability.la \
2018 libsystemd-internal.la \
2019 libsystemd-shared.la
2021 rootbin_PROGRAMS += \
2024 nodist_systemunit_DATA += \
2025 units/systemd-sysusers.service
2027 SYSINIT_TARGET_WANTS += \
2028 systemd-sysusers.service
2030 dist_sysusers_DATA = \
2031 sysusers.d/systemd.conf \
2032 sysusers.d/systemd-remote.conf
2034 nodist_sysusers_DATA = \
2035 sysusers.d/basic.conf
2038 units/systemd-sysusers.service.in \
2039 sysusers.d/basic.conf.in
2042 sysusers.d/basic.conf
2048 # ------------------------------------------------------------------------------
2049 dist_factory_etc_DATA = \
2050 factory/etc/nsswitch.conf
2052 dist_factory_pam_DATA = \
2053 factory/etc/pam.d/system-auth \
2054 factory/etc/pam.d/other
2056 # ------------------------------------------------------------------------------
2058 systemd_firstboot_SOURCES = \
2059 src/firstboot/firstboot.c
2061 systemd_firstboot_LDADD = \
2062 libsystemd-units.la \
2063 libsystemd-label.la \
2064 libsystemd-capability.la \
2065 libsystemd-internal.la \
2066 libsystemd-shared.la \
2069 rootbin_PROGRAMS += \
2072 nodist_systemunit_DATA += \
2073 units/systemd-firstboot.service
2076 units/systemd-firstboot.service.in
2078 SYSINIT_TARGET_WANTS += \
2079 systemd-firstboot.service
2082 # ------------------------------------------------------------------------------
2083 systemd_machine_id_setup_SOURCES = \
2084 src/machine-id-setup/machine-id-setup-main.c \
2085 src/core/machine-id-setup.c \
2086 src/core/machine-id-setup.h
2088 systemd_machine_id_setup_LDADD = \
2089 libsystemd-label.la \
2090 libsystemd-internal.la \
2091 libsystemd-shared.la
2093 # ------------------------------------------------------------------------------
2094 systemd_sysctl_SOURCES = \
2097 systemd_sysctl_LDADD = \
2098 libsystemd-shared.la
2100 # ------------------------------------------------------------------------------
2101 systemd_sleep_SOURCES = \
2104 systemd_sleep_LDADD = \
2105 libsystemd-shared.la
2107 # ------------------------------------------------------------------------------
2108 systemd_fsck_SOURCES = \
2111 systemd_fsck_LDADD = \
2112 libsystemd-internal.la \
2113 libudev-internal.la \
2114 libsystemd-shared.la
2116 # ------------------------------------------------------------------------------
2117 systemd_ac_power_SOURCES = \
2118 src/ac-power/ac-power.c
2120 systemd_ac_power_LDADD = \
2121 libudev-internal.la \
2122 libsystemd-shared.la
2124 # ------------------------------------------------------------------------------
2125 systemd_detect_virt_SOURCES = \
2126 src/detect-virt/detect-virt.c
2128 systemd_detect_virt_LDADD = \
2129 libsystemd-shared.la
2131 INSTALL_EXEC_HOOKS += \
2132 systemd-detect-virt-install-hook
2134 # ------------------------------------------------------------------------------
2135 systemd_delta_SOURCES = \
2138 systemd_delta_LDADD = \
2139 libsystemd-shared.la
2141 # ------------------------------------------------------------------------------
2142 systemd_getty_generator_SOURCES = \
2143 src/getty-generator/getty-generator.c
2145 systemd_getty_generator_LDADD = \
2146 libsystemd-label.la \
2147 libsystemd-shared.la
2149 # ------------------------------------------------------------------------------
2150 systemd_debug_generator_SOURCES = \
2151 src/debug-generator/debug-generator.c
2153 systemd_debug_generator_LDADD = \
2154 libsystemd-label.la \
2155 libsystemd-shared.la
2157 # ------------------------------------------------------------------------------
2158 systemd_fstab_generator_SOURCES = \
2159 src/fstab-generator/fstab-generator.c \
2160 src/core/mount-setup.c
2162 systemd_fstab_generator_LDADD = \
2163 libsystemd-label.la \
2164 libsystemd-shared.la
2166 # ------------------------------------------------------------------------------
2167 systemd_system_update_generator_SOURCES = \
2168 src/system-update-generator/system-update-generator.c
2170 systemd_system_update_generator_LDADD = \
2171 libsystemd-label.la \
2172 libsystemd-shared.la
2174 # ------------------------------------------------------------------------------
2176 systemgenerator_PROGRAMS += \
2177 systemd-hibernate-resume-generator
2179 rootlibexec_PROGRAMS += \
2180 systemd-hibernate-resume
2182 systemd_hibernate_resume_SOURCES = \
2183 src/hibernate-resume/hibernate-resume.c
2185 systemd_hibernate_resume_LDADD = \
2186 libsystemd-internal.la \
2187 libsystemd-shared.la
2189 systemd_hibernate_resume_generator_SOURCES = \
2190 src/hibernate-resume/hibernate-resume-generator.c
2192 systemd_hibernate_resume_generator_LDADD = \
2193 libsystemd-label.la \
2194 libsystemd-shared.la
2197 units/systemd-hibernate.service.in \
2198 units/systemd-hibernate-resume@.service.in \
2199 units/systemd-hybrid-sleep.service.in
2201 dist_systemunit_DATA += \
2202 units/hibernate.target \
2203 units/hybrid-sleep.target
2205 nodist_systemunit_DATA += \
2206 units/systemd-hibernate.service \
2207 units/systemd-hibernate-resume@.service \
2208 units/systemd-hybrid-sleep.service
2211 # ------------------------------------------------------------------------------
2213 systemgenerator_PROGRAMS += \
2214 systemd-efi-boot-generator
2216 systemd_efi_boot_generator_SOURCES = \
2217 src/efi-boot-generator/efi-boot-generator.c
2219 systemd_efi_boot_generator_LDADD = \
2220 libsystemd-label.la \
2221 libsystemd-shared.la
2223 # ------------------------------------------------------------------------------
2226 src/boot/boot-loader.h \
2227 src/boot/bootctl.c \
2228 src/boot/boot-loader.c \
2232 libsystemd-shared.la \
2233 libsystemd-internal.la
2238 dist_bashcompletion_DATA += \
2239 shell-completion/bash/bootctl
2241 dist_zshcompletion_DATA += \
2242 shell-completion/zsh/_bootctl
2246 # ------------------------------------------------------------------------------
2248 systemgenerator_PROGRAMS += \
2249 systemd-gpt-auto-generator
2251 systemd_gpt_auto_generator_SOURCES = \
2252 src/gpt-auto-generator/gpt-auto-generator.c \
2253 src/shared/blkid-util.h
2255 systemd_gpt_auto_generator_LDADD = \
2256 libsystemd-label.la \
2257 libsystemd-internal.la \
2258 libudev-internal.la \
2259 libsystemd-shared.la \
2262 systemd_gpt_auto_generator_CFLAGS = \
2267 # ------------------------------------------------------------------------------
2269 systemgenerator_PROGRAMS += \
2270 systemd-dbus1-generator
2272 systemd_dbus1_generator_SOURCES = \
2273 src/dbus1-generator/dbus1-generator.c
2275 systemd_dbus1_generator_LDADD = \
2276 libsystemd-label.la \
2277 libsystemd-shared.la \
2278 libsystemd-internal.la
2280 dbus1-generator-install-hook:
2281 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2282 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2283 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2285 dbus1-generator-uninstall-hook:
2286 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2288 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2289 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2292 # ------------------------------------------------------------------------------
2293 systemd_sysv_generator_SOURCES = \
2294 src/sysv-generator/sysv-generator.c
2296 systemd_sysv_generator_LDADD = \
2297 libsystemd-core.la \
2298 libsystemd-label.la \
2299 libsystemd-shared.la
2301 # ------------------------------------------------------------------------------
2302 systemd_rc_local_generator_SOURCES = \
2303 src/rc-local-generator/rc-local-generator.c
2305 systemd_rc_local_generator_LDADD = \
2306 libsystemd-label.la \
2307 libsystemd-shared.la
2309 # ------------------------------------------------------------------------------
2310 systemd_remount_fs_SOURCES = \
2311 src/remount-fs/remount-fs.c \
2312 src/core/mount-setup.c \
2313 src/core/mount-setup.h
2315 systemd_remount_fs_LDADD = \
2316 libsystemd-label.la \
2317 libsystemd-shared.la
2319 # ------------------------------------------------------------------------------
2320 systemd_cgroups_agent_SOURCES = \
2321 src/cgroups-agent/cgroups-agent.c
2323 systemd_cgroups_agent_LDADD = \
2324 libsystemd-internal.la \
2325 libsystemd-shared.la
2327 # ------------------------------------------------------------------------------
2328 systemd_escape_SOURCES = \
2331 systemd_escape_LDADD = \
2332 libsystemd-shared.la
2334 # -----------------------------------------------------------------------------
2335 systemctl_SOURCES = \
2336 src/systemctl/systemctl.c
2339 libsystemd-units.la \
2340 libsystemd-label.la \
2341 libsystemd-internal.la \
2342 libsystemd-logs.la \
2343 libsystemd-journal-internal.la \
2344 libsystemd-shared.la
2346 # ------------------------------------------------------------------------------
2347 systemd_notify_SOURCES = \
2350 systemd_notify_LDADD = \
2351 libsystemd-internal.la \
2352 libsystemd-shared.la
2354 # ------------------------------------------------------------------------------
2355 systemd_path_SOURCES = \
2358 systemd_path_LDADD = \
2359 libsystemd-internal.la \
2360 libsystemd-shared.la
2362 # ------------------------------------------------------------------------------
2363 systemd_ask_password_SOURCES = \
2364 src/ask-password/ask-password.c
2366 systemd_ask_password_LDADD = \
2367 libsystemd-label.la \
2368 libsystemd-shared.la
2370 # ------------------------------------------------------------------------------
2371 systemd_reply_password_SOURCES = \
2372 src/reply-password/reply-password.c
2374 systemd_reply_password_LDADD = \
2375 libsystemd-shared.la
2377 # ------------------------------------------------------------------------------
2378 systemd_cgls_SOURCES = \
2381 systemd_cgls_LDADD = \
2382 libsystemd-internal.la \
2383 libsystemd-shared.la
2385 # ------------------------------------------------------------------------------
2386 systemd_cgtop_SOURCES = \
2389 systemd_cgtop_LDADD = \
2390 libsystemd-shared.la
2392 # ------------------------------------------------------------------------------
2393 systemd_nspawn_SOURCES = \
2394 src/nspawn/nspawn.c \
2395 src/core/mount-setup.c \
2396 src/core/mount-setup.h \
2397 src/core/loopback-setup.c \
2398 src/core/loopback-setup.h
2400 systemd_nspawn_CFLAGS = \
2405 systemd_nspawn_LDADD = \
2406 libsystemd-label.la \
2407 libsystemd-capability.la \
2408 libsystemd-internal.la \
2409 libudev-internal.la \
2410 libsystemd-shared.la \
2414 systemd_nspawn_LDADD += \
2415 libsystemd-seccomp.la \
2419 # ------------------------------------------------------------------------------
2420 systemd_run_SOURCES = \
2423 systemd_run_LDADD = \
2424 libsystemd-label.la \
2425 libsystemd-capability.la \
2426 libsystemd-internal.la \
2427 libsystemd-shared.la
2429 # ------------------------------------------------------------------------------
2431 rootlibexec_PROGRAMS += \
2434 systemd_bus_proxyd_SOURCES = \
2435 src/bus-proxyd/bus-proxyd.c \
2436 src/bus-proxyd/bus-policy.c \
2437 src/bus-proxyd/bus-policy.h
2439 systemd_bus_proxyd_LDADD = \
2440 libsystemd-capability.la \
2441 libsystemd-internal.la \
2442 libsystemd-shared.la
2444 bus-proxyd-install-hook:
2445 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
2446 $(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2447 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
2449 bus-proxyd-uninstall-hook:
2450 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2452 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
2453 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
2455 nodist_systemunit_DATA += \
2456 units/systemd-bus-proxyd@.service
2458 dist_systemunit_DATA += \
2459 units/systemd-bus-proxyd.socket
2461 dist_userunit_DATA += \
2462 units/user/systemd-bus-proxyd.socket \
2463 units/user/systemd-bus-proxyd@.service
2467 units/systemd-bus-proxyd@.service.in
2469 # ------------------------------------------------------------------------------
2470 systemd_tty_ask_password_agent_SOURCES = \
2471 src/tty-ask-password-agent/tty-ask-password-agent.c
2473 systemd_tty_ask_password_agent_LDADD = \
2474 libsystemd-label.la \
2475 libsystemd-shared.la
2477 # ------------------------------------------------------------------------------
2478 libsystemd_internal_la_SOURCES = \
2479 src/systemd/sd-bus.h \
2480 src/systemd/sd-bus-protocol.h \
2481 src/systemd/sd-bus-vtable.h \
2482 src/systemd/sd-utf8.h \
2483 src/systemd/sd-event.h \
2484 src/systemd/sd-rtnl.h \
2485 src/systemd/sd-resolve.h \
2486 src/systemd/sd-login.h \
2487 src/systemd/sd-id128.h \
2488 src/systemd/sd-daemon.h \
2489 src/systemd/sd-path.h \
2490 src/systemd/sd-network.h \
2491 src/libsystemd/sd-bus/sd-bus.c \
2492 src/libsystemd/sd-bus/bus-control.c \
2493 src/libsystemd/sd-bus/bus-control.h \
2494 src/libsystemd/sd-bus/bus-error.c \
2495 src/libsystemd/sd-bus/bus-error.h \
2496 src/libsystemd/sd-bus/bus-internal.c \
2497 src/libsystemd/sd-bus/bus-internal.h \
2498 src/libsystemd/sd-bus/bus-socket.c \
2499 src/libsystemd/sd-bus/bus-socket.h \
2500 src/libsystemd/sd-bus/bus-kernel.c \
2501 src/libsystemd/sd-bus/bus-kernel.h \
2502 src/libsystemd/sd-bus/bus-container.c \
2503 src/libsystemd/sd-bus/bus-container.h \
2504 src/libsystemd/sd-bus/bus-message.c \
2505 src/libsystemd/sd-bus/bus-message.h \
2506 src/libsystemd/sd-bus/bus-creds.c \
2507 src/libsystemd/sd-bus/bus-creds.h \
2508 src/libsystemd/sd-bus/bus-signature.c \
2509 src/libsystemd/sd-bus/bus-signature.h \
2510 src/libsystemd/sd-bus/bus-type.c \
2511 src/libsystemd/sd-bus/bus-type.h \
2512 src/libsystemd/sd-bus/bus-match.c \
2513 src/libsystemd/sd-bus/bus-match.h \
2514 src/libsystemd/sd-bus/bus-bloom.c \
2515 src/libsystemd/sd-bus/bus-bloom.h \
2516 src/libsystemd/sd-bus/bus-introspect.c \
2517 src/libsystemd/sd-bus/bus-introspect.h \
2518 src/libsystemd/sd-bus/bus-objects.c \
2519 src/libsystemd/sd-bus/bus-objects.h \
2520 src/libsystemd/sd-bus/bus-gvariant.c \
2521 src/libsystemd/sd-bus/bus-gvariant.h \
2522 src/libsystemd/sd-bus/bus-convenience.c \
2523 src/libsystemd/sd-bus/bus-track.c \
2524 src/libsystemd/sd-bus/bus-track.h \
2525 src/libsystemd/sd-bus/bus-util.c \
2526 src/libsystemd/sd-bus/bus-util.h \
2527 src/libsystemd/sd-bus/bus-slot.c \
2528 src/libsystemd/sd-bus/bus-slot.h \
2529 src/libsystemd/sd-bus/bus-protocol.h \
2530 src/libsystemd/sd-bus/kdbus.h \
2531 src/libsystemd/sd-utf8/sd-utf8.c \
2532 src/libsystemd/sd-event/sd-event.c \
2533 src/libsystemd/sd-event/event-util.h \
2534 src/libsystemd/sd-rtnl/sd-rtnl.c \
2535 src/libsystemd/sd-rtnl/rtnl-internal.h \
2536 src/libsystemd/sd-rtnl/rtnl-message.c \
2537 src/libsystemd/sd-rtnl/rtnl-types.h \
2538 src/libsystemd/sd-rtnl/rtnl-types.c \
2539 src/libsystemd/sd-rtnl/rtnl-util.h \
2540 src/libsystemd/sd-rtnl/rtnl-util.c \
2541 src/libsystemd/sd-rtnl/local-addresses.h \
2542 src/libsystemd/sd-rtnl/local-addresses.c \
2543 src/libsystemd/sd-id128/sd-id128.c \
2544 src/libsystemd/sd-daemon/sd-daemon.c \
2545 src/libsystemd/sd-login/sd-login.c \
2546 src/libsystemd/sd-path/sd-path.c \
2547 src/libsystemd/sd-network/sd-network.c \
2548 src/libsystemd/sd-network/network-util.h \
2549 src/libsystemd/sd-network/network-util.c
2551 nodist_libsystemd_internal_la_SOURCES = \
2552 src/libsystemd/libsystemd.sym \
2553 src/libsystemd/sd-bus/bus-error-mapping.c
2555 libsystemd_internal_la_CFLAGS = \
2559 libsystemd_internal_la_LIBADD = \
2562 libsystemd_resolve_la_SOURCES = \
2563 src/libsystemd/sd-resolve/sd-resolve.c \
2564 src/libsystemd/sd-resolve/resolve-util.h
2566 libsystemd_resolve_la_CFLAGS = \
2570 libsystemd_resolve_la_LIBADD = \
2573 noinst_LTLIBRARIES += \
2574 libsystemd-internal.la \
2575 libsystemd-resolve.la
2577 libsystemd_dump_la_SOURCES = \
2578 src/libsystemd/sd-bus/bus-dump.c \
2579 src/libsystemd/sd-bus/bus-dump.h
2581 libsystemd_dump_la_CFLAGS = \
2585 noinst_LTLIBRARIES += \
2589 src/libsystemd/libsystemd.sym.m4 \
2590 src/libsystemd/libsystemd.pc.in \
2591 src/libsystemd/sd-bus/bus-error-mapping.gperf \
2592 src/libsystemd/sd-bus/DIFFERENCES \
2593 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2596 src/libsystemd/libsystemd.sym \
2597 src/libsystemd/sd-bus/bus-error-mapping.c
2600 src/libsystemd/libsystemd.sym
2602 libsystemd_la_SOURCES = \
2603 $(libsystemd_internal_la_SOURCES) \
2604 $(libsystemd_resolve_la_SOURCES) \
2605 $(libsystemd_journal_internal_la_SOURCES)
2607 nodist_libsystemd_la_SOURCES = \
2608 $(nodist_libsystemd_internal_la_SOURCES)
2610 libsystemd_la_CFLAGS = \
2611 $(libsystemd_internal_la_CFLAGS) \
2612 $(libsystemd_resolve_la_CFLAGS) \
2613 $(libsystemd_journal_internal_la_CFLAGS)
2615 libsystemd_la_LDFLAGS = \
2617 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2618 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2620 libsystemd_la_LIBADD = \
2621 libsystemd-shared.la \
2622 $(libsystemd_internal_la_LIBADD) \
2623 $(libsystemd_journal_internal_la_LIBADD) \
2624 $(libsystemd_resolve_la_LIBADD)
2626 libsystemd-install-hook:
2627 libname=libsystemd.so && $(move-to-rootlibdir)
2629 libsystemd-uninstall-hook:
2630 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2632 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2633 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2635 pkgconfiglib_DATA += \
2636 src/libsystemd/libsystemd.pc
2638 pkginclude_HEADERS += \
2639 src/systemd/sd-login.h \
2640 src/systemd/sd-id128.h \
2641 src/systemd/sd-daemon.h
2644 pkginclude_HEADERS += \
2645 src/systemd/sd-bus.h \
2646 src/systemd/sd-bus-protocol.h \
2647 src/systemd/sd-bus-vtable.h \
2648 src/systemd/sd-utf8.h \
2649 src/systemd/sd-event.h \
2650 src/systemd/sd-rtnl.h \
2651 src/systemd/sd-resolve.h \
2652 src/systemd/sd-path.h
2655 lib_LTLIBRARIES += \
2660 test-bus-signature \
2666 test-bus-kernel-bloom \
2667 test-bus-kernel-benchmark \
2668 test-bus-zero-copy \
2669 test-bus-introspect \
2681 test_bus_marshal_SOURCES = \
2682 src/libsystemd/sd-bus/test-bus-marshal.c
2684 test_bus_marshal_LDADD = \
2685 libsystemd-internal.la \
2686 libsystemd-shared.la \
2687 libsystemd-dump.la \
2688 libsystemd-capability.la \
2693 test_bus_marshal_CFLAGS = \
2699 test_bus_signature_SOURCES = \
2700 src/libsystemd/sd-bus/test-bus-signature.c
2702 test_bus_signature_LDADD = \
2703 libsystemd-shared.la \
2704 libsystemd-internal.la
2706 test_bus_chat_SOURCES = \
2707 src/libsystemd/sd-bus/test-bus-chat.c
2709 test_bus_chat_CFLAGS = \
2713 test_bus_chat_LDADD = \
2714 libsystemd-internal.la \
2715 libsystemd-shared.la
2717 test_bus_cleanup_SOURCES = \
2718 src/libsystemd/sd-bus/test-bus-cleanup.c
2720 test_bus_cleanup_CFLAGS = \
2724 test_bus_cleanup_LDADD = \
2725 libsystemd-internal.la \
2726 libsystemd-shared.la
2728 test_bus_server_SOURCES = \
2729 src/libsystemd/sd-bus/test-bus-server.c
2731 test_bus_server_CFLAGS = \
2735 test_bus_server_LDADD = \
2736 libsystemd-internal.la \
2737 libsystemd-shared.la
2739 test_bus_objects_SOURCES = \
2740 src/libsystemd/sd-bus/test-bus-objects.c
2742 test_bus_objects_CFLAGS = \
2747 test_bus_objects_LDADD = \
2748 libsystemd-internal.la \
2749 libsystemd-shared.la \
2750 libsystemd-dump.la \
2751 libsystemd-capability.la \
2754 test_bus_error_SOURCES = \
2755 src/libsystemd/sd-bus/test-bus-error.c
2757 test_bus_error_LDADD = \
2758 libsystemd-internal.la \
2759 libsystemd-shared.la
2761 test_bus_gvariant_SOURCES = \
2762 src/libsystemd/sd-bus/test-bus-gvariant.c
2764 test_bus_gvariant_LDADD = \
2765 libsystemd-internal.la \
2766 libsystemd-shared.la \
2767 libsystemd-dump.la \
2768 libsystemd-capability.la \
2772 test_bus_gvariant_CFLAGS = \
2777 test_bus_creds_SOURCES = \
2778 src/libsystemd/sd-bus/test-bus-creds.c
2780 test_bus_creds_LDADD = \
2781 libsystemd-internal.la \
2782 libsystemd-shared.la \
2783 libsystemd-dump.la \
2784 libsystemd-capability.la
2786 test_bus_match_SOURCES = \
2787 src/libsystemd/sd-bus/test-bus-match.c
2789 test_bus_match_LDADD = \
2790 libsystemd-internal.la \
2791 libsystemd-shared.la
2793 test_bus_kernel_SOURCES = \
2794 src/libsystemd/sd-bus/test-bus-kernel.c
2796 test_bus_kernel_LDADD = \
2797 libsystemd-internal.la \
2798 libsystemd-shared.la \
2799 libsystemd-dump.la \
2800 libsystemd-capability.la \
2803 test_bus_kernel_CFLAGS = \
2807 test_bus_kernel_bloom_SOURCES = \
2808 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
2810 test_bus_kernel_bloom_LDADD = \
2811 libsystemd-internal.la \
2812 libsystemd-shared.la
2814 test_bus_kernel_benchmark_SOURCES = \
2815 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
2817 test_bus_kernel_benchmark_LDADD = \
2818 libsystemd-internal.la \
2819 libsystemd-shared.la
2821 test_bus_zero_copy_SOURCES = \
2822 src/libsystemd/sd-bus/test-bus-zero-copy.c
2824 test_bus_zero_copy_LDADD = \
2825 libsystemd-internal.la \
2826 libsystemd-shared.la \
2827 libsystemd-dump.la \
2828 libsystemd-capability.la \
2831 test_bus_zero_copy_CFLAGS = \
2835 test_bus_introspect_SOURCES = \
2836 src/libsystemd/sd-bus/test-bus-introspect.c
2838 test_bus_introspect_LDADD = \
2839 libsystemd-internal.la \
2840 libsystemd-shared.la
2842 test_event_SOURCES = \
2843 src/libsystemd/sd-event/test-event.c
2845 test_event_LDADD = \
2846 libsystemd-internal.la \
2847 libsystemd-shared.la
2849 test_rtnl_SOURCES = \
2850 src/libsystemd/sd-rtnl/test-rtnl.c
2853 libsystemd-internal.la \
2854 libsystemd-shared.la
2856 test_resolve_SOURCES = \
2857 src/libsystemd/sd-resolve/test-resolve.c
2859 test_resolve_LDADD = \
2860 libsystemd-resolve.la \
2861 libsystemd-internal.la \
2862 libsystemd-shared.la
2864 test_resolve_CFLAGS = \
2869 src/libsystemd/sd-bus/busctl.c
2872 libsystemd-internal.la \
2873 libsystemd-shared.la \
2874 libsystemd-dump.la \
2875 libsystemd-capability.la \
2882 # ------------------------------------------------------------------------------
2883 noinst_LTLIBRARIES += \
2884 libsystemd-network.la
2886 libsystemd_network_la_CFLAGS = \
2890 libsystemd_network_la_SOURCES = \
2891 src/systemd/sd-dhcp-client.h \
2892 src/systemd/sd-dhcp-server.h \
2893 src/systemd/sd-dhcp-lease.h \
2894 src/systemd/sd-ipv4ll.h \
2895 src/systemd/sd-icmp6-nd.h \
2896 src/systemd/sd-dhcp6-client.h \
2897 src/systemd/sd-dhcp6-lease.h \
2898 src/libsystemd-network/sd-dhcp-client.c \
2899 src/libsystemd-network/sd-dhcp-server.c \
2900 src/libsystemd-network/dhcp-network.c \
2901 src/libsystemd-network/dhcp-option.c \
2902 src/libsystemd-network/dhcp-packet.c \
2903 src/libsystemd-network/dhcp-internal.h \
2904 src/libsystemd-network/dhcp-server-internal.h \
2905 src/libsystemd-network/dhcp-protocol.h \
2906 src/libsystemd-network/dhcp-lease-internal.h \
2907 src/libsystemd-network/sd-dhcp-lease.c \
2908 src/libsystemd-network/sd-ipv4ll.c \
2909 src/libsystemd-network/ipv4ll-network.c \
2910 src/libsystemd-network/ipv4ll-packet.c \
2911 src/libsystemd-network/ipv4ll-internal.h \
2912 src/libsystemd-network/network-internal.c \
2913 src/libsystemd-network/network-internal.h \
2914 src/libsystemd-network/sd-icmp6-nd.c \
2915 src/libsystemd-network/sd-dhcp6-client.c \
2916 src/libsystemd-network/dhcp6-internal.h \
2917 src/libsystemd-network/dhcp6-protocol.h \
2918 src/libsystemd-network/dhcp6-network.c \
2919 src/libsystemd-network/dhcp6-option.c \
2920 src/libsystemd-network/dhcp6-lease-internal.h \
2921 src/libsystemd-network/sd-dhcp6-lease.c
2923 libsystemd_network_la_LIBADD = \
2924 libudev-internal.la \
2925 libsystemd-label.la \
2926 libsystemd-internal.la \
2927 libsystemd-shared.la \
2930 test_dhcp_option_SOURCES = \
2931 src/libsystemd-network/dhcp-protocol.h \
2932 src/libsystemd-network/dhcp-internal.h \
2933 src/libsystemd-network/test-dhcp-option.c
2935 test_dhcp_option_LDADD = \
2936 libsystemd-network.la \
2937 libsystemd-internal.la \
2938 libsystemd-shared.la
2940 test_dhcp_client_SOURCES = \
2941 src/systemd/sd-dhcp-client.h \
2942 src/libsystemd-network/dhcp-protocol.h \
2943 src/libsystemd-network/dhcp-internal.h \
2944 src/libsystemd-network/test-dhcp-client.c
2946 test_dhcp_client_LDADD = \
2947 libsystemd-network.la \
2948 libsystemd-label.la \
2949 libsystemd-internal.la \
2950 libsystemd-shared.la
2952 test_dhcp_server_SOURCES = \
2953 src/libsystemd-network/test-dhcp-server.c
2955 test_dhcp_server_LDADD = \
2956 libsystemd-network.la \
2957 libsystemd-internal.la \
2958 libsystemd-shared.la
2960 test_ipv4ll_SOURCES = \
2961 src/systemd/sd-ipv4ll.h \
2962 src/libsystemd-network/ipv4ll-internal.h \
2963 src/libsystemd-network/test-ipv4ll.c
2965 test_ipv4ll_LDADD = \
2966 libsystemd-network.la \
2967 libsystemd-label.la \
2968 libsystemd-internal.la \
2969 libsystemd-shared.la
2971 test_icmp6_rs_SOURCES = \
2972 src/systemd/sd-dhcp6-client.h \
2973 src/systemd/sd-icmp6-nd.h \
2974 src/libsystemd-network/dhcp6-internal.h \
2975 src/libsystemd-network/test-icmp6-rs.c
2977 test_icmp6_rs_LDADD = \
2978 libsystemd-network.la \
2979 libsystemd-internal.la \
2980 libsystemd-shared.la
2982 test_dhcp6_client_SOURCES = \
2983 src/systemd/sd-dhcp6-client.h \
2984 src/libsystemd-network/dhcp6-internal.h \
2985 src/libsystemd-network/test-dhcp6-client.c
2987 test_dhcp6_client_LDADD = \
2988 libsystemd-network.la \
2989 libsystemd-internal.la \
2990 libsystemd-shared.la
3000 # ------------------------------------------------------------------------------
3002 noinst_LTLIBRARIES += \
3003 libsystemd-terminal.la
3005 noinst_PROGRAMS += \
3010 unifontdatadir=$(datadir)/unifont
3012 dist_unifontdata_DATA = \
3013 src/libsystemd-terminal/unifont-glyph-array.bin
3021 libsystemd_terminal_la_CFLAGS = \
3025 libsystemd_terminal_la_SOURCES = \
3026 src/libsystemd-terminal/grdev.h \
3027 src/libsystemd-terminal/grdev-internal.h \
3028 src/libsystemd-terminal/grdev.c \
3029 src/libsystemd-terminal/grdev-drm.c \
3030 src/libsystemd-terminal/idev.h \
3031 src/libsystemd-terminal/idev-internal.h \
3032 src/libsystemd-terminal/idev.c \
3033 src/libsystemd-terminal/idev-evdev.c \
3034 src/libsystemd-terminal/idev-keyboard.c \
3035 src/libsystemd-terminal/sysview.h \
3036 src/libsystemd-terminal/sysview-internal.h \
3037 src/libsystemd-terminal/sysview.c \
3038 src/libsystemd-terminal/term-internal.h \
3039 src/libsystemd-terminal/term-charset.c \
3040 src/libsystemd-terminal/term-page.c \
3041 src/libsystemd-terminal/term-parser.c \
3042 src/libsystemd-terminal/term-screen.c \
3043 src/libsystemd-terminal/term-wcwidth.c \
3044 src/libsystemd-terminal/unifont-internal.h \
3045 src/libsystemd-terminal/unifont.c
3047 libsystemd_terminal_la_LIBADD = \
3048 libudev-internal.la \
3049 libsystemd-internal.la \
3050 libsystemd-shared.la \
3053 systemd_evcat_CFLAGS = \
3057 systemd_evcat_SOURCES = \
3058 src/libsystemd-terminal/evcat.c
3060 systemd_evcat_LDADD = \
3061 libsystemd-terminal.la \
3062 libsystemd-internal.la \
3063 libsystemd-shared.la \
3066 systemd_modeset_CFLAGS = \
3070 systemd_modeset_SOURCES = \
3071 src/libsystemd-terminal/modeset.c
3073 systemd_modeset_LDADD = \
3074 libsystemd-terminal.la \
3075 libsystemd-internal.la \
3076 libsystemd-shared.la \
3079 systemd_subterm_SOURCES = \
3080 src/libsystemd-terminal/subterm.c
3082 systemd_subterm_LDADD = \
3083 libsystemd-terminal.la \
3084 libsystemd-internal.la \
3085 libsystemd-shared.la
3087 test_term_page_SOURCES = \
3088 src/libsystemd-terminal/test-term-page.c
3090 test_term_page_LDADD = \
3091 libsystemd-terminal.la \
3092 libsystemd-internal.la \
3093 libsystemd-shared.la
3095 test_term_parser_SOURCES = \
3096 src/libsystemd-terminal/test-term-parser.c
3098 test_term_parser_LDADD = \
3099 libsystemd-terminal.la \
3100 libsystemd-internal.la \
3101 libsystemd-shared.la
3103 test_unifont_SOURCES = \
3104 src/libsystemd-terminal/test-unifont.c
3106 test_unifont_LDADD = \
3107 libsystemd-terminal.la \
3108 libsystemd-internal.la \
3109 libsystemd-shared.la
3111 .PHONY: update-unifont
3112 update-unifont: tools/compile-unifont.py
3113 $(AM_V_GEN)$(PYTHON) $< \
3114 <$(top_srcdir)/src/libsystemd-terminal/unifont.hex \
3115 >$(top_srcdir)/src/libsystemd-terminal/unifont-glyph-array.bin
3116 @echo "unifont-glyph-array.bin has been regenerated"
3118 # ------------------------------------------------------------------------------
3128 include_HEADERS += \
3129 src/libudev/libudev.h
3131 lib_LTLIBRARIES += \
3134 libudev_la_SOURCES =\
3135 src/libudev/libudev.sym \
3136 src/libudev/libudev-private.h \
3137 src/libudev/libudev.c \
3138 src/libudev/libudev-list.c \
3139 src/libudev/libudev-util.c \
3140 src/libudev/libudev-device.c \
3141 src/libudev/libudev-enumerate.c \
3142 src/libudev/libudev-monitor.c \
3143 src/libudev/libudev-queue.c \
3144 src/libudev/libudev-hwdb-def.h \
3145 src/libudev/libudev-hwdb.c
3147 libudev_la_CFLAGS = \
3151 libudev_la_LDFLAGS = \
3153 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3154 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3156 libudev_la_LIBADD = \
3157 libsystemd-internal.la \
3158 libsystemd-shared.la
3160 pkgconfiglib_DATA += \
3161 src/libudev/libudev.pc
3164 src/libudev/libudev.pc.in
3167 src/libudev/libudev.pc \
3172 $(AM_V_at)$(MKDIR_P) $(dir $@)
3173 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
3176 $(AM_V_at)$(MKDIR_P) $(dir $@)
3177 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
3179 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3180 libudev-install-hook:
3181 libname=libudev.so && $(move-to-rootlibdir)
3183 libudev-uninstall-hook:
3184 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3186 INSTALL_EXEC_HOOKS += libudev-install-hook
3187 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3189 # ------------------------------------------------------------------------------
3190 noinst_LTLIBRARIES += \
3193 libudev_internal_la_SOURCES =\
3194 $(libudev_la_SOURCES) \
3195 src/libudev/libudev-device-private.c
3197 libudev_internal_la_CFLAGS = \
3199 -fvisibility=default
3201 # ------------------------------------------------------------------------------
3203 $(sysconfdir)/udev/rules.d \
3204 $(sysconfdir)/udev/hwdb.d
3206 dist_network_DATA = \
3207 network/99-default.link \
3208 network/80-container-host0.network \
3209 network/80-container-ve.network
3211 dist_udevrules_DATA += \
3212 rules/42-usb-hid-pm.rules \
3213 rules/50-udev-default.rules \
3214 rules/60-drm.rules \
3215 rules/60-keyboard.rules \
3216 rules/60-persistent-storage-tape.rules \
3217 rules/60-persistent-serial.rules \
3218 rules/60-persistent-input.rules \
3219 rules/60-persistent-alsa.rules \
3220 rules/60-persistent-storage.rules \
3221 rules/64-btrfs.rules \
3222 rules/75-net-description.rules \
3223 rules/75-tty-description.rules \
3224 rules/78-sound-card.rules \
3225 rules/80-net-setup-link.rules \
3226 rules/95-udev-late.rules
3228 nodist_udevrules_DATA += \
3229 rules/99-systemd.rules
3231 dist_udevhwdb_DATA = \
3232 hwdb/20-pci-vendor-model.hwdb \
3233 hwdb/20-pci-classes.hwdb \
3234 hwdb/20-usb-vendor-model.hwdb \
3235 hwdb/20-usb-classes.hwdb \
3236 hwdb/20-sdio-vendor-model.hwdb \
3237 hwdb/20-sdio-classes.hwdb \
3238 hwdb/20-bluetooth-vendor-product.hwdb \
3239 hwdb/20-acpi-vendor.hwdb \
3241 hwdb/20-net-ifname.hwdb \
3242 hwdb/60-keyboard.hwdb
3244 udevconfdir = $(sysconfdir)/udev
3245 dist_udevconf_DATA = \
3248 sharepkgconfigdir = $(datadir)/pkgconfig
3249 sharepkgconfig_DATA = \
3253 rules/99-systemd.rules.in \
3257 rules/99-systemd.rules \
3261 units/systemd-udevd.service.in \
3262 units/systemd-udev-trigger.service.in \
3263 units/systemd-udev-settle.service.in \
3264 units/systemd-udev-hwdb-update.service.in
3267 units/systemd-udevd.service \
3268 units/systemd-udev-trigger.service \
3269 units/systemd-udev-settle.service \
3270 units/systemd-udev-hwdb-update.service
3272 SOCKETS_TARGET_WANTS += \
3273 systemd-udevd-control.socket \
3274 systemd-udevd-kernel.socket
3276 SYSINIT_TARGET_WANTS += \
3277 systemd-udevd.service \
3278 systemd-udev-trigger.service \
3279 systemd-udev-hwdb-update.service
3281 rootbin_PROGRAMS += \
3284 rootlibexec_PROGRAMS += \
3287 noinst_LTLIBRARIES += \
3290 src/udev/keyboard-keys.txt:
3291 $(AM_V_at)$(MKDIR_P) $(dir $@)
3292 $(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/' > $@
3294 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
3295 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3297 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3298 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3300 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
3301 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
3303 libudev_core_la_SOURCES = \
3305 src/udev/udev-event.c \
3306 src/udev/udev-watch.c \
3307 src/udev/udev-node.c \
3308 src/udev/udev-rules.c \
3309 src/udev/udev-ctrl.c \
3310 src/udev/udev-builtin.c \
3311 src/udev/udev-builtin-btrfs.c \
3312 src/udev/udev-builtin-hwdb.c \
3313 src/udev/udev-builtin-input_id.c \
3314 src/udev/udev-builtin-keyboard.c \
3315 src/udev/udev-builtin-net_id.c \
3316 src/udev/udev-builtin-net_setup_link.c \
3317 src/udev/udev-builtin-path_id.c \
3318 src/udev/udev-builtin-usb_id.c \
3319 src/udev/net/link-config.h \
3320 src/udev/net/link-config.c \
3321 src/udev/net/ethtool-util.h \
3322 src/udev/net/ethtool-util.c
3324 nodist_libudev_core_la_SOURCES = \
3325 src/udev/keyboard-keys-from-name.h \
3326 src/udev/keyboard-keys-to-name.h \
3327 src/udev/net/link-config-gperf.c
3330 $(nodist_libudev_core_la_SOURCES)
3333 src/udev/keyboard-keys-from-name.gperf \
3334 src/udev/keyboard-keys.txt \
3335 src/udev/net/link-config-gperf.c
3338 src/udev/net/link-config-gperf.gperf
3340 libudev_core_la_CFLAGS = \
3345 libudev_core_la_LIBADD = \
3346 libudev-internal.la \
3347 libsystemd-label.la \
3348 libsystemd-internal.la \
3349 libsystemd-network.la \
3350 libsystemd-shared.la \
3355 libudev_core_la_SOURCES += \
3356 src/udev/udev-builtin-kmod.c
3358 dist_udevrules_DATA += \
3359 rules/80-drivers.rules
3363 libudev_core_la_SOURCES += \
3364 src/udev/udev-builtin-blkid.c
3368 libudev_core_la_SOURCES += \
3369 src/udev/udev-builtin-uaccess.c \
3370 src/login/logind-acl.c \
3371 src/libsystemd/sd-login/sd-login.c \
3372 src/systemd/sd-login.h
3374 libudev_core_la_LIBADD += \
3378 systemd_udevd_SOURCES = \
3381 systemd_udevd_LDADD = \
3385 src/udev/udevadm.c \
3386 src/udev/udevadm-info.c \
3387 src/udev/udevadm-control.c \
3388 src/udev/udevadm-monitor.c \
3389 src/udev/udevadm-hwdb.c \
3390 src/udev/udevadm-settle.c \
3391 src/udev/udevadm-trigger.c \
3392 src/udev/udevadm-test.c \
3393 src/udev/udevadm-test-builtin.c
3398 # Update hwdb on installation. Do not bother if installing
3399 # in DESTDIR, since this is likely for packaging purposes.
3401 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
3403 INSTALL_DATA_HOOKS += \
3407 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3409 # ------------------------------------------------------------------------------
3418 test_libudev_SOURCES = \
3419 src/test/test-libudev.c
3421 test_libudev_LDADD = \
3422 libsystemd-label.la \
3423 libudev-internal.la \
3424 libsystemd-shared.la
3426 test_udev_SOURCES = \
3427 src/test/test-udev.c
3436 test_udev_LDADD += \
3443 # packed sysfs test tree
3445 $(AM_V_at)$(MKDIR_P) $(dir $@)
3446 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3450 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3455 test/rules-test.sh \
3456 test/rule-syntax-check.py
3458 # ------------------------------------------------------------------------------
3460 src/udev/ata_id/ata_id.c
3463 libudev-internal.la \
3464 libsystemd-shared.la
3466 udevlibexec_PROGRAMS += \
3469 # ------------------------------------------------------------------------------
3470 cdrom_id_SOURCES = \
3471 src/udev/cdrom_id/cdrom_id.c
3474 libudev-internal.la \
3475 libsystemd-shared.la
3477 udevlibexec_PROGRAMS += \
3480 dist_udevrules_DATA += \
3481 rules/60-cdrom_id.rules
3483 # ------------------------------------------------------------------------------
3485 src/udev/collect/collect.c
3488 libudev-internal.la \
3489 libsystemd-shared.la
3491 udevlibexec_PROGRAMS += \
3494 # ------------------------------------------------------------------------------
3496 src/udev/scsi_id/scsi_id.c \
3497 src/udev/scsi_id/scsi_serial.c \
3498 src/udev/scsi_id/scsi.h \
3499 src/udev/scsi_id/scsi_id.h
3502 libudev-internal.la \
3503 libsystemd-shared.la
3505 udevlibexec_PROGRAMS += \
3509 src/udev/scsi_id/README
3511 # ------------------------------------------------------------------------------
3513 src/udev/v4l_id/v4l_id.c
3518 udevlibexec_PROGRAMS += \
3521 dist_udevrules_DATA += \
3522 rules/60-persistent-v4l.rules
3524 # ------------------------------------------------------------------------------
3525 accelerometer_SOURCES = \
3526 src/udev/accelerometer/accelerometer.c
3528 accelerometer_LDADD = \
3529 libudev-internal.la -lm \
3530 libsystemd-shared.la
3532 udevlibexec_PROGRAMS += \
3535 dist_udevrules_DATA += \
3536 rules/61-accelerometer.rules
3538 # ------------------------------------------------------------------------------
3545 libgudev_includedir = \
3546 $(includedir)/gudev-1.0/gudev
3548 libgudev_include_HEADERS = \
3550 src/gudev/gudevenums.h \
3551 src/gudev/gudevenumtypes.h \
3552 src/gudev/gudevtypes.h \
3553 src/gudev/gudevclient.h \
3554 src/gudev/gudevdevice.h \
3555 src/gudev/gudevenumerator.h
3557 lib_LTLIBRARIES += libgudev-1.0.la
3559 pkgconfiglib_DATA += \
3560 src/gudev/gudev-1.0.pc
3563 src/gudev/gudev-1.0.pc
3565 libgudev_1_0_la_SOURCES = \
3566 src/gudev/libgudev-1.0.sym \
3567 src/gudev/gudevenums.h \
3568 src/gudev/gudevenumtypes.h \
3569 src/gudev/gudevenumtypes.h\
3570 src/gudev/gudevtypes.h \
3571 src/gudev/gudevclient.h \
3572 src/gudev/gudevclient.c \
3573 src/gudev/gudevdevice.h \
3574 src/gudev/gudevdevice.c \
3575 src/gudev/gudevenumerator.h \
3576 src/gudev/gudevenumerator.c \
3577 src/gudev/gudevprivate.h
3579 nodist_libgudev_1_0_la_SOURCES = \
3580 src/gudev/gudevmarshal.h \
3581 src/gudev/gudevmarshal.c \
3582 src/gudev/gudevenumtypes.h \
3583 src/gudev/gudevenumtypes.c
3586 $(nodist_libgudev_1_0_la_SOURCES)
3588 libgudev_1_0_la_CPPFLAGS = \
3590 -I$(top_builddir)/src\
3591 -I$(top_srcdir)/src\
3592 -I$(top_builddir)/src/gudev \
3593 -I$(top_srcdir)/src/gudev \
3594 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3595 -D_GUDEV_COMPILATION \
3596 -DG_LOG_DOMAIN=\"GUdev\"
3598 libgudev_1_0_la_CFLAGS = \
3600 -fvisibility=default \
3603 libgudev_1_0_la_LIBADD = \
3607 libgudev_1_0_la_LDFLAGS = \
3609 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3612 -Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym
3614 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3615 $(AM_V_at)$(MKDIR_P) $(dir $@)
3616 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3618 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3619 $(AM_V_at)$(MKDIR_P) $(dir $@)
3620 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3621 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3623 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3624 $(AM_V_at)$(MKDIR_P) $(dir $@)
3625 $(AM_V_GEN)glib-mkenums --template $^ > $@
3627 if HAVE_INTROSPECTION
3628 -include $(INTROSPECTION_MAKEFILE)
3630 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3632 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3634 src_gudev_GUdev_1_0_gir_CFLAGS = \
3637 -D_GUDEV_COMPILATION \
3638 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3639 -I$(top_srcdir)/src \
3640 -I$(top_builddir)/src \
3641 -I$(top_srcdir)/src/gudev \
3642 -I$(top_builddir)/src/gudev
3644 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
3646 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
3647 --pkg-export=gudev-1.0 \
3650 src_gudev_GUdev_1_0_gir_FILES = \
3652 src/gudev/gudevtypes.h \
3653 src/gudev/gudevenums.h \
3654 src/gudev/gudevenumtypes.h \
3655 src/gudev/gudevclient.h \
3656 src/gudev/gudevdevice.h \
3657 src/gudev/gudevenumerator.h \
3658 src/gudev/gudevclient.c \
3659 src/gudev/gudevdevice.c \
3660 src/gudev/gudevenumerator.c
3662 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
3663 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
3665 girdir = $(datadir)/gir-1.0
3667 src/gudev/GUdev-1.0.gir
3669 typelibsdir = $(libdir)/girepository-1.0
3671 src/gudev/GUdev-1.0.typelib
3673 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
3674 endif # HAVE_INTROSPECTION
3678 src/gudev/gudev-1.0.pc.in \
3679 src/gudev/gudevmarshal.list \
3680 src/gudev/gudevenumtypes.h.template \
3681 src/gudev/gudevenumtypes.c.template \
3682 src/gudev/gjs-example.js \
3683 src/gudev/seed-example-enum.js \
3684 src/gudev/seed-example.js
3686 # ------------------------------------------------------------------------------
3687 mtd_probe_SOURCES = \
3688 src/udev/mtd_probe/mtd_probe.c \
3689 src/udev/mtd_probe/mtd_probe.h \
3690 src/udev/mtd_probe/probe_smartmedia.c
3692 dist_udevrules_DATA += \
3693 rules/75-probe_mtd.rules
3695 udevlibexec_PROGRAMS += \
3698 # ------------------------------------------------------------------------------
3699 test_id128_SOURCES = \
3700 src/test/test-id128.c
3702 test_id128_LDADD = \
3703 libsystemd-internal.la \
3704 libsystemd-shared.la
3709 # ------------------------------------------------------------------------------
3711 rootlibexec_PROGRAMS += \
3714 systemd_activate_SOURCES = \
3715 src/activate/activate.c
3717 systemd_activate_LDADD = \
3718 libsystemd-label.la \
3719 libsystemd-internal.la \
3720 libsystemd-shared.la
3722 # ------------------------------------------------------------------------------
3723 systemd_journald_SOURCES = \
3724 src/journal/journald.c \
3725 src/journal/journald-server.h
3727 systemd_journald_LDADD = \
3728 libsystemd-journal-core.la \
3729 libsystemd-internal.la \
3730 libsystemd-shared.la
3732 systemd_cat_SOURCES = \
3735 systemd_cat_LDADD = \
3736 libsystemd-journal-core.la
3739 rootlibexec_PROGRAMS += \
3740 systemd-journal-remote
3742 systemd_journal_remote_SOURCES = \
3743 src/journal-remote/journal-remote-parse.h \
3744 src/journal-remote/journal-remote-parse.c \
3745 src/journal-remote/journal-remote-write.h \
3746 src/journal-remote/journal-remote-write.c \
3747 src/journal-remote/journal-remote.h \
3748 src/journal-remote/journal-remote.c
3750 systemd_journal_remote_LDADD = \
3751 libsystemd-internal.la \
3752 libsystemd-journal-core.la
3754 systemd_journal_remote_SOURCES += \
3755 src/journal-remote/microhttpd-util.h \
3756 src/journal-remote/microhttpd-util.c
3758 systemd_journal_remote_CFLAGS = \
3760 $(MICROHTTPD_CFLAGS)
3762 systemd_journal_remote_LDADD += \
3766 systemd_journal_remote_LDADD += \
3769 # systemd-journal-remote make sense mostly with full crypto stack
3770 dist_systemunit_DATA += \
3771 units/systemd-journal-remote.socket
3773 nodist_systemunit_DATA += \
3774 units/systemd-journal-remote.service
3777 units/systemd-journal-remote.service.in
3779 journal-remote-install-hook: journal-install-hook
3780 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
3781 -chown 0:0 $(DESTDIR)/var/log/journal/remote
3782 -chmod 755 $(DESTDIR)/var/log/journal/remote
3784 INSTALL_EXEC_HOOKS += journal-remote-install-hook
3788 nodist_pkgsysconf_DATA += \
3789 src/journal-remote/journal-remote.conf
3792 src/journal-remote/journal-remote.conf.in
3795 src/journal-remote/journal-remote.conf
3799 rootlibexec_PROGRAMS += \
3800 systemd-journal-upload
3802 systemd_journal_upload_SOURCES = \
3803 src/journal-remote/journal-upload.h \
3804 src/journal-remote/journal-upload.c \
3805 src/journal-remote/journal-upload-journal.c
3807 systemd_journal_upload_CFLAGS = \
3811 systemd_journal_upload_LDADD = \
3812 libsystemd-core.la \
3813 libsystemd-internal.la \
3814 libsystemd-journal-internal.la \
3815 libsystemd-shared.la \
3818 nodist_systemunit_DATA += \
3819 units/systemd-journal-upload.service
3822 units/systemd-journal-upload.service.in
3824 nodist_pkgsysconf_DATA += \
3825 src/journal-remote/journal-upload.conf
3828 src/journal-remote/journal-upload.conf.in
3831 src/journal-remote/journal-upload.conf
3834 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3835 journalctl_CFLAGS = \
3838 journalctl_SOURCES = \
3839 src/journal/journalctl.c
3841 journalctl_LDADD = \
3842 libsystemd-journal-internal.la \
3843 libsystemd-internal.la \
3844 libsystemd-logs.la \
3845 libsystemd-shared.la
3848 journalctl_LDADD += \
3853 journalctl_SOURCES += \
3854 src/journal/journal-qrcode.c \
3855 src/journal/journal-qrcode.h
3857 journalctl_CFLAGS += \
3860 journalctl_LDADD += \
3864 test_journal_SOURCES = \
3865 src/journal/test-journal.c
3867 test_journal_LDADD = \
3868 libsystemd-journal-core.la
3870 test_journal_send_SOURCES = \
3871 src/journal/test-journal-send.c
3873 test_journal_send_LDADD = \
3874 libsystemd-journal-core.la
3876 test_journal_syslog_SOURCES = \
3877 src/journal/test-journal-syslog.c
3879 test_journal_syslog_LDADD = \
3880 libsystemd-journal-core.la
3882 test_journal_match_SOURCES = \
3883 src/journal/test-journal-match.c
3885 test_journal_match_LDADD = \
3886 libsystemd-journal-core.la
3888 test_journal_enum_SOURCES = \
3889 src/journal/test-journal-enum.c
3891 test_journal_enum_LDADD = \
3892 libsystemd-journal-core.la
3894 test_journal_stream_SOURCES = \
3895 src/journal/test-journal-stream.c
3897 test_journal_stream_LDADD = \
3898 libsystemd-journal-core.la
3900 test_journal_flush_SOURCES = \
3901 src/journal/test-journal-flush.c
3903 test_journal_flush_LDADD = \
3904 libsystemd-journal-core.la
3906 test_journal_init_SOURCES = \
3907 src/journal/test-journal-init.c
3909 test_journal_init_LDADD = \
3910 libsystemd-journal-core.la
3912 test_journal_verify_SOURCES = \
3913 src/journal/test-journal-verify.c
3915 test_journal_verify_LDADD = \
3916 libsystemd-journal-core.la
3918 test_journal_interleaving_SOURCES = \
3919 src/journal/test-journal-interleaving.c
3921 test_journal_interleaving_LDADD = \
3922 libsystemd-journal-core.la
3924 test_mmap_cache_SOURCES = \
3925 src/journal/test-mmap-cache.c
3927 test_mmap_cache_LDADD = \
3928 libsystemd-journal-core.la
3930 test_catalog_SOURCES = \
3931 src/journal/test-catalog.c
3933 test_catalog_CPPFLAGS = \
3935 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
3937 test_catalog_LDADD = \
3938 libsystemd-journal-core.la
3940 test_compress_SOURCES = \
3941 src/journal/test-compress.c
3943 test_compress_LDADD = \
3944 libsystemd-journal-internal.la \
3945 libsystemd-shared.la
3947 test_compress_benchmark_SOURCES = \
3948 src/journal/test-compress-benchmark.c
3950 test_compress_benchmark_LDADD = \
3951 libsystemd-journal-internal.la \
3952 libsystemd-shared.la
3954 libsystemd_journal_core_la_SOURCES = \
3955 src/journal/journald-kmsg.c \
3956 src/journal/journald-kmsg.h \
3957 src/journal/journald-syslog.c \
3958 src/journal/journald-syslog.h \
3959 src/journal/journald-stream.c \
3960 src/journal/journald-stream.h \
3961 src/journal/journald-server.c \
3962 src/journal/journald-server.h \
3963 src/journal/journald-console.c \
3964 src/journal/journald-console.h \
3965 src/journal/journald-wall.c \
3966 src/journal/journald-wall.h \
3967 src/journal/journald-native.c \
3968 src/journal/journald-native.h \
3969 src/journal/journald-rate-limit.c \
3970 src/journal/journald-rate-limit.h \
3971 src/journal/journal-internal.h
3973 nodist_libsystemd_journal_core_la_SOURCES = \
3974 src/journal/journald-gperf.c
3976 libsystemd_journal_core_la_LIBADD = \
3977 libsystemd-journal-internal.la \
3978 libudev-internal.la \
3979 libsystemd-capability.la \
3980 libsystemd-label.la \
3981 libsystemd-internal.la \
3982 libsystemd-shared.la
3985 libsystemd_journal_core_la_LIBADD += \
3989 noinst_LTLIBRARIES += \
3990 libsystemd-journal-core.la
3992 journal-install-hook:
3993 -$(MKDIR_P) $(DESTDIR)/var/log/journal
3994 -chown 0:0 $(DESTDIR)/var/log/journal
3995 -chmod 755 $(DESTDIR)/var/log/journal
3996 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
3997 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
3999 journal-uninstall-hook:
4000 -rmdir $(DESTDIR)/var/log/journal/remote
4001 -rmdir $(DESTDIR)/var/log/journal/
4003 INSTALL_EXEC_HOOKS += journal-install-hook
4004 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4006 # ------------------------------------------------------------------------------
4007 # Update catalog on installation. Do not bother if installing
4008 # in DESTDIR, since this is likely for packaging purposes.
4009 catalog-update-hook:
4010 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4012 INSTALL_DATA_HOOKS += \
4015 catalog-remove-hook:
4016 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4018 UNINSTALL_DATA_HOOKS += \
4027 test-journal-syslog \
4028 test-journal-match \
4029 test-journal-stream \
4031 test-journal-verify \
4032 test-journal-interleaving \
4033 test-journal-flush \
4040 test-compress-benchmark
4043 pkginclude_HEADERS += \
4044 src/systemd/sd-journal.h \
4045 src/systemd/sd-messages.h \
4046 src/systemd/_sd-common.h
4048 libsystemd_journal_internal_la_SOURCES = \
4049 src/journal/sd-journal.c \
4050 src/systemd/sd-journal.h \
4051 src/systemd/_sd-common.h \
4052 src/journal/journal-file.c \
4053 src/journal/journal-file.h \
4054 src/journal/journal-vacuum.c \
4055 src/journal/journal-vacuum.h \
4056 src/journal/journal-verify.c \
4057 src/journal/journal-verify.h \
4058 src/journal/lookup3.c \
4059 src/journal/lookup3.h \
4060 src/journal/journal-send.c \
4061 src/journal/journal-def.h \
4062 src/journal/compress.h \
4063 src/journal/catalog.c \
4064 src/journal/catalog.h \
4065 src/journal/mmap-cache.c \
4066 src/journal/mmap-cache.h
4068 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4069 libsystemd_journal_internal_la_CFLAGS = \
4072 libsystemd_journal_internal_la_LIBADD =
4074 libsystemd_journal_internal_la_SOURCES += \
4075 src/journal/compress.c
4078 libsystemd_journal_internal_la_CFLAGS += \
4081 libsystemd_journal_internal_la_LIBADD += \
4086 libsystemd_journal_internal_la_LIBADD += \
4091 libsystemd_journal_internal_la_SOURCES += \
4092 src/journal/journal-authenticate.c \
4093 src/journal/journal-authenticate.h \
4094 src/journal/fsprg.c \
4097 libsystemd_journal_internal_la_LIBADD += \
4100 # fsprg.c is a drop-in file using void pointer arithmetic
4101 libsystemd_journal_internal_la_CFLAGS += \
4106 noinst_LTLIBRARIES += \
4107 libsystemd-journal-internal.la
4109 rootlibexec_PROGRAMS += \
4112 rootbin_PROGRAMS += \
4118 dist_systemunit_DATA += \
4119 units/systemd-journald.socket \
4120 units/systemd-journald-dev-log.socket
4122 nodist_systemunit_DATA += \
4123 units/systemd-journald.service \
4124 units/systemd-journal-flush.service \
4125 units/systemd-journal-catalog-update.service
4127 dist_pkgsysconf_DATA += \
4128 src/journal/journald.conf
4130 dist_catalog_DATA = \
4131 catalog/systemd.fr.catalog \
4132 catalog/systemd.ru.catalog \
4133 catalog/systemd.it.catalog \
4134 catalog/systemd.catalog
4136 SOCKETS_TARGET_WANTS += \
4137 systemd-journald.socket \
4138 systemd-journald-dev-log.socket
4140 SYSINIT_TARGET_WANTS += \
4141 systemd-journald.service \
4142 systemd-journal-flush.service \
4143 systemd-journal-catalog-update.service
4146 units/systemd-journald.service.in \
4147 units/systemd-journal-flush.service.in \
4148 units/systemd-journal-catalog-update.service.in \
4149 src/journal/journald-gperf.gperf
4152 src/journal/journald-gperf.c
4154 # ------------------------------------------------------------------------------
4156 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4158 rootlibexec_PROGRAMS += \
4159 systemd-journal-gatewayd
4161 systemd_journal_gatewayd_SOURCES = \
4162 src/journal-remote/journal-gatewayd.c \
4163 src/journal-remote/microhttpd-util.h \
4164 src/journal-remote/microhttpd-util.c
4166 systemd_journal_gatewayd_LDADD = \
4167 libsystemd-logs.la \
4168 libsystemd-journal-internal.la \
4169 libsystemd-internal.la \
4170 libsystemd-shared.la \
4174 systemd_journal_gatewayd_LDADD += \
4178 systemd_journal_gatewayd_CFLAGS = \
4180 $(MICROHTTPD_CFLAGS)
4182 systemd_journal_gatewayd_CPPFLAGS = \
4184 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4186 dist_systemunit_DATA += \
4187 units/systemd-journal-gatewayd.socket
4189 nodist_systemunit_DATA += \
4190 units/systemd-journal-gatewayd.service
4192 dist_gatewayddocumentroot_DATA = \
4193 src/journal-remote/browse.html
4198 units/systemd-journal-gatewayd.service.in
4200 # ------------------------------------------------------------------------------
4202 systemd_socket_proxyd_SOURCES = \
4203 src/socket-proxy/socket-proxyd.c
4205 systemd_socket_proxyd_LDADD = \
4206 libsystemd-logs.la \
4207 libsystemd-internal.la \
4208 libsystemd-journal-internal.la \
4209 libsystemd-shared.la \
4210 libsystemd-resolve.la
4212 # ------------------------------------------------------------------------------
4214 systemd_coredump_SOURCES = \
4215 src/journal/coredump.c \
4216 src/journal/coredump-vacuum.c \
4217 src/journal/coredump-vacuum.h
4219 systemd_coredump_LDADD = \
4220 libsystemd-journal-internal.la \
4221 libsystemd-label.la \
4222 libsystemd-internal.la \
4223 libsystemd-shared.la
4226 systemd_coredump_SOURCES += \
4227 src/journal/stacktrace.c \
4228 src/journal/stacktrace.h
4230 systemd_coredump_LDADD += \
4234 rootlibexec_PROGRAMS += \
4237 dist_pkgsysconf_DATA += \
4238 src/journal/coredump.conf
4241 systemd_coredump_LDADD += \
4245 coredumpctl_SOURCES = \
4246 src/journal/coredumpctl.c
4248 coredumpctl_LDADD = \
4249 libsystemd-journal-internal.la \
4250 libsystemd-internal.la \
4251 libsystemd-shared.la
4257 test-coredump-vacuum
4259 test_coredump_vacuum_SOURCES = \
4260 src/journal/test-coredump-vacuum.c \
4261 src/journal/coredump-vacuum.c \
4262 src/journal/coredump-vacuum.h
4264 test_coredump_vacuum_LDADD = \
4265 libsystemd-internal.la \
4266 libsystemd-shared.la
4268 dist_bashcompletion_DATA += \
4269 shell-completion/bash/coredumpctl
4271 dist_zshcompletion_DATA += \
4272 shell-completion/zsh/_coredumpctl
4275 sysctl.d/50-coredump.conf
4278 sysctl.d/50-coredump.conf
4282 sysctl.d/50-coredump.conf.in
4284 # ------------------------------------------------------------------------------
4286 systemd_binfmt_SOURCES = \
4289 systemd_binfmt_LDADD = \
4290 libsystemd-shared.la
4292 rootlibexec_PROGRAMS += \
4295 dist_systemunit_DATA += \
4296 units/proc-sys-fs-binfmt_misc.automount \
4297 units/proc-sys-fs-binfmt_misc.mount
4299 nodist_systemunit_DATA += \
4300 units/systemd-binfmt.service
4303 $(prefix)/lib/binfmt.d \
4304 $(sysconfdir)/binfmt.d
4306 SYSINIT_TARGET_WANTS += \
4307 systemd-binfmt.service \
4308 proc-sys-fs-binfmt_misc.automount
4313 units/systemd-binfmt.service.in
4315 # ------------------------------------------------------------------------------
4317 systemd_vconsole_setup_SOURCES = \
4318 src/vconsole/vconsole-setup.c
4320 systemd_vconsole_setup_LDADD = \
4321 libsystemd-shared.la
4323 rootlibexec_PROGRAMS += \
4324 systemd-vconsole-setup
4326 nodist_systemunit_DATA += \
4327 units/systemd-vconsole-setup.service
4329 SYSINIT_TARGET_WANTS += \
4330 systemd-vconsole-setup.service
4334 units/systemd-vconsole-setup.service.in
4336 # ------------------------------------------------------------------------------
4338 systemd_bootchart_SOURCES = \
4339 src/bootchart/bootchart.c \
4340 src/bootchart/bootchart.h \
4341 src/bootchart/store.c \
4342 src/bootchart/store.h \
4343 src/bootchart/svg.c \
4346 systemd_bootchart_LDADD = \
4347 libsystemd-journal-internal.la \
4348 libsystemd-shared.la
4350 rootlibexec_PROGRAMS += \
4353 dist_pkgsysconf_DATA += \
4354 src/bootchart/bootchart.conf
4357 # ------------------------------------------------------------------------------
4358 if ENABLE_QUOTACHECK
4359 rootlibexec_PROGRAMS += \
4362 nodist_systemunit_DATA += \
4363 units/systemd-quotacheck.service
4365 systemd_quotacheck_SOURCES = \
4366 src/quotacheck/quotacheck.c
4368 systemd_quotacheck_LDADD = \
4369 libsystemd-shared.la
4373 units/systemd-quotacheck.service.in
4375 nodist_systemunit_DATA += \
4376 units/quotaon.service
4378 # ------------------------------------------------------------------------------
4379 if ENABLE_RANDOMSEED
4380 rootlibexec_PROGRAMS += \
4383 nodist_systemunit_DATA += \
4384 units/systemd-random-seed.service
4386 systemd_random_seed_SOURCES = \
4387 src/random-seed/random-seed.c
4389 systemd_random_seed_LDADD = \
4390 libsystemd-label.la \
4391 libsystemd-shared.la
4393 SYSINIT_TARGET_WANTS += \
4394 systemd-random-seed.service
4399 units/systemd-random-seed.service.in
4401 # ------------------------------------------------------------------------------
4403 rootlibexec_PROGRAMS += \
4406 nodist_systemunit_DATA += \
4407 units/systemd-backlight@.service
4409 systemd_backlight_SOURCES = \
4410 src/backlight/backlight.c
4412 systemd_backlight_LDADD = \
4413 libsystemd-label.la \
4414 libudev-internal.la \
4415 libsystemd-shared.la
4419 units/systemd-backlight@.service.in
4421 # ------------------------------------------------------------------------------
4423 rootlibexec_PROGRAMS += \
4426 nodist_systemunit_DATA += \
4427 units/systemd-rfkill@.service
4429 systemd_rfkill_SOURCES = \
4432 systemd_rfkill_LDADD = \
4433 libsystemd-label.la \
4434 libudev-internal.la \
4435 libsystemd-shared.la
4439 units/systemd-rfkill@.service.in
4441 # ------------------------------------------------------------------------------
4442 if HAVE_LIBCRYPTSETUP
4443 rootlibexec_PROGRAMS += \
4446 systemgenerator_PROGRAMS += \
4447 systemd-cryptsetup-generator
4449 dist_systemunit_DATA += \
4450 units/cryptsetup.target \
4451 units/cryptsetup-pre.target
4453 systemd_cryptsetup_SOURCES = \
4454 src/cryptsetup/cryptsetup.c
4456 systemd_cryptsetup_CFLAGS = \
4458 $(LIBCRYPTSETUP_CFLAGS)
4460 systemd_cryptsetup_LDADD = \
4461 libsystemd-label.la \
4462 libudev-internal.la \
4463 libsystemd-shared.la \
4464 $(LIBCRYPTSETUP_LIBS)
4466 systemd_cryptsetup_generator_SOURCES = \
4467 src/cryptsetup/cryptsetup-generator.c
4469 systemd_cryptsetup_generator_LDADD = \
4470 libsystemd-label.la \
4471 libsystemd-shared.la
4473 SYSINIT_TARGET_WANTS += \
4478 # ------------------------------------------------------------------------------
4480 systemd_hostnamed_SOURCES = \
4481 src/hostname/hostnamed.c
4483 systemd_hostnamed_LDADD = \
4484 libsystemd-label.la \
4485 libsystemd-internal.la \
4486 libsystemd-shared.la
4488 rootlibexec_PROGRAMS += \
4491 nodist_systemunit_DATA += \
4492 units/systemd-hostnamed.service
4494 dist_systemunit_DATA_busnames += \
4495 units/org.freedesktop.hostname1.busname
4497 dist_dbuspolicy_DATA += \
4498 src/hostname/org.freedesktop.hostname1.conf
4500 dist_dbussystemservice_DATA += \
4501 src/hostname/org.freedesktop.hostname1.service
4503 polkitpolicy_files += \
4504 src/hostname/org.freedesktop.hostname1.policy
4506 SYSTEM_UNIT_ALIASES += \
4507 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4509 BUSNAMES_TARGET_WANTS += \
4510 org.freedesktop.hostname1.busname
4512 hostnamectl_SOURCES = \
4513 src/hostname/hostnamectl.c
4515 hostnamectl_LDADD = \
4516 libsystemd-internal.la \
4517 libsystemd-shared.la
4522 dist_bashcompletion_DATA += \
4523 shell-completion/bash/hostnamectl
4525 dist_zshcompletion_DATA += \
4526 shell-completion/zsh/_hostnamectl
4530 polkitpolicy_in_files += \
4531 src/hostname/org.freedesktop.hostname1.policy.in
4534 units/systemd-hostnamed.service.in
4536 # ------------------------------------------------------------------------------
4537 dist_systemunit_DATA_busnames += \
4538 units/org.freedesktop.systemd1.busname
4540 BUSNAMES_TARGET_WANTS += \
4541 org.freedesktop.systemd1.busname
4543 # ------------------------------------------------------------------------------
4545 systemd_localed_SOURCES = \
4546 src/locale/localed.c
4548 systemd_localed_LDADD = \
4549 libsystemd-label.la \
4550 libsystemd-internal.la \
4551 libsystemd-shared.la
4553 nodist_systemunit_DATA += \
4554 units/systemd-localed.service
4556 dist_systemunit_DATA_busnames += \
4557 units/org.freedesktop.locale1.busname
4559 rootlibexec_PROGRAMS += \
4562 dist_dbuspolicy_DATA += \
4563 src/locale/org.freedesktop.locale1.conf
4565 dist_dbussystemservice_DATA += \
4566 src/locale/org.freedesktop.locale1.service
4568 polkitpolicy_files += \
4569 src/locale/org.freedesktop.locale1.policy
4571 SYSTEM_UNIT_ALIASES += \
4572 systemd-localed.service dbus-org.freedesktop.locale1.service
4574 BUSNAMES_TARGET_WANTS += \
4575 org.freedesktop.locale1.busname
4577 dist_pkgdata_DATA += \
4578 src/locale/kbd-model-map
4580 dist_noinst_SCRIPT = \
4581 src/locale/generate-kbd-model-map
4583 localectl_SOURCES = \
4584 src/locale/localectl.c
4587 libsystemd-internal.la \
4588 libsystemd-shared.la
4593 dist_bashcompletion_DATA += \
4594 shell-completion/bash/localectl
4596 dist_zshcompletion_DATA += \
4597 shell-completion/zsh/_localectl
4601 .PHONY: update-kbd-model-map
4603 polkitpolicy_in_files += \
4604 src/locale/org.freedesktop.locale1.policy.in
4607 units/systemd-localed.service.in
4609 # ------------------------------------------------------------------------------
4611 systemd_timedated_SOURCES = \
4612 src/timedate/timedated.c
4614 systemd_timedated_LDADD = \
4615 libsystemd-label.la \
4616 libsystemd-internal.la \
4617 libsystemd-shared.la
4619 rootlibexec_PROGRAMS += \
4622 dist_dbussystemservice_DATA += \
4623 src/timedate/org.freedesktop.timedate1.service
4625 dist_dbuspolicy_DATA += \
4626 src/timedate/org.freedesktop.timedate1.conf
4628 nodist_systemunit_DATA += \
4629 units/systemd-timedated.service
4631 dist_systemunit_DATA_busnames += \
4632 units/org.freedesktop.timedate1.busname
4634 polkitpolicy_files += \
4635 src/timedate/org.freedesktop.timedate1.policy
4637 SYSTEM_UNIT_ALIASES += \
4638 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4640 BUSNAMES_TARGET_WANTS += \
4641 org.freedesktop.timedate1.busname
4643 timedatectl_SOURCES = \
4644 src/timedate/timedatectl.c
4646 timedatectl_LDADD = \
4647 libsystemd-internal.la \
4648 libsystemd-shared.la
4653 dist_bashcompletion_DATA += \
4654 shell-completion/bash/timedatectl
4656 dist_zshcompletion_DATA += \
4657 shell-completion/zsh/_timedatectl
4660 polkitpolicy_in_files += \
4661 src/timedate/org.freedesktop.timedate1.policy.in
4664 units/systemd-timedated.service.in
4666 # ------------------------------------------------------------------------------
4668 systemd_timesyncd_SOURCES = \
4669 src/timesync/timesyncd.c \
4670 src/timesync/timesyncd-manager.c \
4671 src/timesync/timesyncd-manager.h \
4672 src/timesync/timesyncd-conf.c \
4673 src/timesync/timesyncd-conf.h \
4674 src/timesync/timesyncd-server.c \
4675 src/timesync/timesyncd-server.h
4677 nodist_systemd_timesyncd_SOURCES = \
4678 src/timesync/timesyncd-gperf.c
4681 src/timesync/timesyncd-gperf.gperf
4684 src/timesync/timesyncd-gperf.c
4686 systemd_timesyncd_LDADD = \
4687 libsystemd-resolve.la \
4688 libsystemd-network.la \
4689 libsystemd-label.la \
4690 libsystemd-capability.la \
4691 libsystemd-internal.la \
4692 libsystemd-shared.la \
4695 rootlibexec_PROGRAMS += \
4698 nodist_systemunit_DATA += \
4699 units/systemd-timesyncd.service
4701 GENERAL_ALIASES += \
4702 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
4705 units/systemd-timesyncd.service.in
4707 nodist_pkgsysconf_DATA += \
4708 src/timesync/timesyncd.conf
4711 src/timesync/timesyncd.conf.in
4714 src/timesync/timesyncd.conf
4717 # ------------------------------------------------------------------------------
4719 libnss_myhostname_la_SOURCES = \
4720 src/nss-myhostname/nss-myhostname.sym \
4721 src/nss-myhostname/nss-myhostname.c
4723 libnss_myhostname_la_LDFLAGS = \
4730 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
4732 libnss_myhostname_la_LIBADD = \
4733 libsystemd-shared.la \
4734 libsystemd-internal.la
4736 lib_LTLIBRARIES += \
4737 libnss_myhostname.la
4740 # ------------------------------------------------------------------------------
4742 systemd_machined_SOURCES = \
4743 src/machine/machined.c \
4744 src/machine/machined.h
4746 systemd_machined_LDADD = \
4747 libsystemd-machine-core.la
4749 rootlibexec_PROGRAMS += \
4752 libsystemd_machine_core_la_SOURCES = \
4753 src/machine/machined-dbus.c \
4754 src/machine/machine.c \
4755 src/machine/machine.h \
4756 src/machine/machine-dbus.c
4758 libsystemd_machine_core_la_LIBADD = \
4759 libsystemd-label.la \
4760 libsystemd-internal.la \
4761 libudev-internal.la \
4762 libsystemd-shared.la
4764 noinst_LTLIBRARIES += \
4765 libsystemd-machine-core.la
4767 machinectl_SOURCES = \
4768 src/machine/machinectl.c
4770 machinectl_LDADD = \
4771 libsystemd-internal.la \
4772 libsystemd-shared.la
4774 rootbin_PROGRAMS += \
4777 dist_bashcompletion_DATA += \
4778 shell-completion/bash/machinectl
4780 test_machine_tables_SOURCES = \
4781 src/machine/test-machine-tables.c
4783 test_machine_tables_LDADD = \
4784 libsystemd-machine-core.la
4789 nodist_systemunit_DATA += \
4790 units/systemd-machined.service
4792 dist_systemunit_DATA += \
4795 dist_systemunit_DATA_busnames += \
4796 units/org.freedesktop.machine1.busname
4798 dist_dbussystemservice_DATA += \
4799 src/machine/org.freedesktop.machine1.service
4801 dist_dbuspolicy_DATA += \
4802 src/machine/org.freedesktop.machine1.conf
4804 dist_zshcompletion_DATA += \
4805 shell-completion/zsh/_machinectl \
4806 shell-completion/zsh/_sd_machines
4808 SYSTEM_UNIT_ALIASES += \
4809 systemd-machined.service dbus-org.freedesktop.machine1.service
4811 BUSNAMES_TARGET_WANTS += \
4812 org.freedesktop.machine1.busname
4815 units/systemd-machined.service.in
4817 libnss_mymachines_la_SOURCES = \
4818 src/nss-mymachines/nss-mymachines.sym \
4819 src/nss-mymachines/nss-mymachines.c
4821 libnss_mymachines_la_LDFLAGS = \
4828 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
4830 libnss_mymachines_la_LIBADD = \
4831 libsystemd-shared.la \
4832 libsystemd-internal.la
4834 lib_LTLIBRARIES += \
4835 libnss_mymachines.la
4838 # ------------------------------------------------------------------------------
4840 systemd_resolved_SOURCES = \
4841 src/resolve/resolved.c \
4842 src/resolve/resolved-manager.c \
4843 src/resolve/resolved-manager.h \
4844 src/resolve/resolved-conf.c \
4845 src/resolve/resolved-conf.h \
4846 src/resolve/resolved-bus.c \
4847 src/resolve/resolved-bus.h \
4848 src/resolve/resolved-link.h \
4849 src/resolve/resolved-link.c \
4850 src/resolve/resolved-def.h \
4851 src/resolve/resolved-dns-domain.h \
4852 src/resolve/resolved-dns-domain.c \
4853 src/resolve/resolved-dns-rr.h \
4854 src/resolve/resolved-dns-rr.c \
4855 src/resolve/resolved-dns-question.h \
4856 src/resolve/resolved-dns-question.c \
4857 src/resolve/resolved-dns-answer.h \
4858 src/resolve/resolved-dns-answer.c \
4859 src/resolve/resolved-dns-packet.h \
4860 src/resolve/resolved-dns-packet.c \
4861 src/resolve/resolved-dns-query.h \
4862 src/resolve/resolved-dns-query.c \
4863 src/resolve/resolved-dns-transaction.h \
4864 src/resolve/resolved-dns-transaction.c \
4865 src/resolve/resolved-dns-scope.h \
4866 src/resolve/resolved-dns-scope.c \
4867 src/resolve/resolved-dns-server.h \
4868 src/resolve/resolved-dns-server.c \
4869 src/resolve/resolved-dns-cache.h \
4870 src/resolve/resolved-dns-cache.c \
4871 src/resolve/resolved-dns-zone.h \
4872 src/resolve/resolved-dns-zone.c \
4873 src/resolve/resolved-dns-stream.h \
4874 src/resolve/resolved-dns-stream.c \
4875 src/resolve/dns-type.c \
4876 src/resolve/dns-type.h \
4877 src/resolve/dns_type-from-name.h \
4878 src/resolve/dns_type-to-name.h
4880 nodist_systemd_resolved_SOURCES = \
4881 src/resolve/resolved-gperf.c
4884 src/resolve/resolved-gperf.gperf \
4885 src/resolve/dns_type-from-name.gperf
4888 src/resolve/resolved-gperf.c
4890 systemd_resolved_LDADD = \
4891 libsystemd-capability.la \
4892 libsystemd-network.la \
4893 libsystemd-label.la \
4894 libsystemd-internal.la \
4895 libsystemd-shared.la \
4899 rootlibexec_PROGRAMS += \
4902 nodist_systemunit_DATA += \
4903 units/systemd-resolved.service
4905 dist_systemunit_DATA_busnames += \
4906 units/org.freedesktop.resolve1.busname
4908 dist_dbuspolicy_DATA += \
4909 src/resolve/org.freedesktop.resolve1.conf
4911 dist_dbussystemservice_DATA += \
4912 src/resolve/org.freedesktop.resolve1.service
4915 units/systemd-resolved.service.in
4917 SYSTEM_UNIT_ALIASES += \
4918 systemd-resolved.service dbus-org.freedesktop.resolve1.service
4920 BUSNAMES_TARGET_WANTS += \
4921 org.freedesktop.resolve1.busname
4923 GENERAL_ALIASES += \
4924 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
4926 nodist_pkgsysconf_DATA += \
4927 src/resolve/resolved.conf
4930 src/resolve/resolved.conf.in
4933 src/resolve/resolved.conf
4938 test_dns_domain_SOURCES = \
4939 src/resolve/resolved-dns-domain.h \
4940 src/resolve/resolved-dns-domain.c \
4941 src/resolve/test-dns-domain.c
4943 test_dns_domain_LDADD = \
4944 libsystemd-capability.la \
4945 libsystemd-network.la \
4946 libsystemd-label.la \
4947 libsystemd-internal.la \
4948 libsystemd-shared.la \
4951 libnss_resolve_la_SOURCES = \
4952 src/nss-resolve/nss-resolve.sym \
4953 src/nss-resolve/nss-resolve.c
4955 libnss_resolve_la_LDFLAGS = \
4962 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
4964 libnss_resolve_la_LIBADD = \
4965 libsystemd-shared.la \
4966 libsystemd-internal.la
4968 lib_LTLIBRARIES += \
4971 systemd_resolve_host_SOURCES = \
4972 src/resolve-host/resolve-host.c \
4973 src/resolve/resolved-dns-packet.c \
4974 src/resolve/resolved-dns-packet.h \
4975 src/resolve/resolved-dns-rr.c \
4976 src/resolve/resolved-dns-rr.h \
4977 src/resolve/resolved-dns-answer.c \
4978 src/resolve/resolved-dns-answer.h \
4979 src/resolve/resolved-dns-question.c \
4980 src/resolve/resolved-dns-question.h \
4981 src/resolve/resolved-dns-domain.c \
4982 src/resolve/resolved-dns-domain.h \
4983 src/resolve/dns-type.c \
4984 src/resolve/dns-type.h \
4985 src/resolve/dns_type-from-name.h \
4986 src/resolve/dns_type-to-name.h
4988 systemd_resolve_host_LDADD = \
4989 libsystemd-internal.la \
4990 libsystemd-shared.la \
4994 rootlibexec_PROGRAMS += \
4995 systemd-resolve-host
4999 # ------------------------------------------------------------------------------
5001 rootlibexec_PROGRAMS += \
5004 systemd_networkd_SOURCES = \
5005 src/network/networkd.c
5007 systemd_networkd_LDADD = \
5008 libsystemd-networkd-core.la \
5009 libsystemd-capability.la
5011 noinst_LTLIBRARIES += \
5012 libsystemd-networkd-core.la
5014 libsystemd_networkd_core_la_CFLAGS = \
5017 libsystemd_networkd_core_la_SOURCES = \
5018 src/libsystemd-network/network-internal.h \
5019 src/network/networkd.h \
5020 src/network/networkd-link.h \
5021 src/network/networkd-netdev.h \
5022 src/network/networkd-netdev-tunnel.h \
5023 src/network/networkd-netdev-veth.h \
5024 src/network/networkd-netdev-vxlan.h \
5025 src/network/networkd-netdev-vlan.h \
5026 src/network/networkd-netdev-macvlan.h \
5027 src/network/networkd-netdev-dummy.h \
5028 src/network/networkd-netdev-tuntap.h \
5029 src/network/networkd-netdev-bond.h \
5030 src/network/networkd-netdev-bridge.h \
5031 src/network/networkd-netdev.c \
5032 src/network/networkd-netdev-tunnel.c \
5033 src/network/networkd-netdev-veth.c \
5034 src/network/networkd-netdev-vxlan.c \
5035 src/network/networkd-netdev-vlan.c \
5036 src/network/networkd-netdev-macvlan.c \
5037 src/network/networkd-netdev-dummy.c \
5038 src/network/networkd-netdev-tuntap.c \
5039 src/network/networkd-netdev-bond.c \
5040 src/network/networkd-netdev-bridge.c \
5041 src/network/networkd-link.c \
5042 src/network/networkd-ipv4ll.c \
5043 src/network/networkd-dhcp4.c \
5044 src/network/networkd-network.c \
5045 src/network/networkd-address.c \
5046 src/network/networkd-route.c \
5047 src/network/networkd-manager.c \
5048 src/network/networkd-address-pool.c
5050 nodist_libsystemd_networkd_core_la_SOURCES = \
5051 src/network/networkd-network-gperf.c \
5052 src/network/networkd-netdev-gperf.c
5054 libsystemd_networkd_core_la_LIBADD = \
5055 libudev-internal.la \
5056 libsystemd-internal.la \
5057 libsystemd-network.la \
5058 libsystemd-label.la \
5059 libsystemd-shared.la
5061 rootlibexec_PROGRAMS += \
5062 systemd-networkd-wait-online
5064 systemd_networkd_wait_online_CFLAGS = \
5067 systemd_networkd_wait_online_SOURCES = \
5068 src/libsystemd-network/network-internal.h \
5069 src/network/networkd-wait-online.h \
5070 src/network/networkd-wait-online-link.h \
5071 src/network/networkd-wait-online.c \
5072 src/network/networkd-wait-online-manager.c \
5073 src/network/networkd-wait-online-link.c
5075 systemd_networkd_wait_online_LDADD = \
5076 libsystemd-network.la \
5077 libudev-internal.la \
5078 libsystemd-internal.la \
5079 libsystemd-shared.la
5081 rootbin_PROGRAMS += \
5084 networkctl_SOURCES = \
5085 src/network/networkctl.c
5087 networkctl_LDADD = \
5088 libsystemd-internal.la \
5089 libudev-internal.la \
5090 libsystemd-shared.la \
5091 libsystemd-network.la
5093 test_network_SOURCES = \
5094 src/network/test-network.c
5096 test_network_CFLAGS = \
5099 test_network_LDADD = \
5100 libsystemd-networkd-core.la
5102 test_network_tables_SOURCES = \
5103 src/network/test-network-tables.c \
5104 src/shared/test-tables.h
5106 test_network_tables_LDADD = \
5107 libsystemd-networkd-core.la \
5114 nodist_systemunit_DATA += \
5115 units/systemd-networkd.service \
5116 units/systemd-networkd-wait-online.service
5118 GENERAL_ALIASES += \
5119 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5120 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5123 src/network/networkd-network-gperf.gperf \
5124 src/network/networkd-netdev-gperf.gperf \
5125 units/systemd-networkd.service.in \
5126 units/systemd-networkd-wait-online.service.in
5129 src/network/networkd-network-gperf.c \
5130 src/network/networkd-netdev-gperf.c
5133 # ------------------------------------------------------------------------------
5135 systemd_logind_SOURCES = \
5136 src/login/logind.c \
5139 nodist_systemd_logind_SOURCES = \
5140 src/login/logind-gperf.c
5142 systemd_logind_LDADD = \
5143 libsystemd-logind-core.la
5145 libsystemd_logind_core_la_SOURCES = \
5146 src/login/logind-core.c \
5147 src/login/logind-device.c \
5148 src/login/logind-device.h \
5149 src/login/logind-button.c \
5150 src/login/logind-button.h \
5151 src/login/logind-action.c \
5152 src/login/logind-action.h \
5153 src/login/logind-seat.c \
5154 src/login/logind-seat.h \
5155 src/login/logind-session.c \
5156 src/login/logind-session.h \
5157 src/login/logind-session-device.c \
5158 src/login/logind-session-device.h \
5159 src/login/logind-user.c \
5160 src/login/logind-user.h \
5161 src/login/logind-inhibit.c \
5162 src/login/logind-inhibit.h \
5163 src/login/logind-dbus.c \
5164 src/login/logind-session-dbus.c \
5165 src/login/logind-seat-dbus.c \
5166 src/login/logind-user-dbus.c \
5167 src/login/logind-acl.h
5169 libsystemd_logind_core_la_LIBADD = \
5170 libsystemd-label.la \
5171 libsystemd-capability.la \
5172 libsystemd-internal.la \
5173 libudev-internal.la \
5174 libsystemd-shared.la
5177 libsystemd_logind_core_la_SOURCES += \
5178 src/login/logind-acl.c
5180 libsystemd_logind_core_la_LIBADD += \
5184 noinst_LTLIBRARIES += \
5185 libsystemd-logind-core.la
5187 systemd_user_sessions_SOURCES = \
5188 src/login/user-sessions.c
5190 systemd_user_sessions_LDADD = \
5191 libsystemd-shared.la
5193 rootlibexec_PROGRAMS += \
5195 systemd-user-sessions
5197 loginctl_SOURCES = \
5198 src/login/loginctl.c \
5199 src/login/sysfs-show.c
5202 libsystemd-internal.la \
5203 libudev-internal.la \
5204 libsystemd-shared.la
5206 rootbin_PROGRAMS += \
5209 dist_bashcompletion_DATA += \
5210 shell-completion/bash/loginctl
5212 dist_zshcompletion_DATA += \
5213 shell-completion/zsh/_loginctl \
5214 shell-completion/zsh/_systemd-inhibit
5216 systemd_inhibit_SOURCES = \
5219 systemd_inhibit_LDADD = \
5220 libsystemd-internal.la \
5221 libsystemd-shared.la
5223 rootbin_PROGRAMS += \
5226 test_login_SOURCES = \
5227 src/libsystemd/sd-login/test-login.c
5229 test_login_LDADD = \
5230 libsystemd-internal.la \
5231 libsystemd-shared.la
5233 test_login_shared_SOURCES = \
5234 src/login/test-login-shared.c
5236 test_login_shared_LDADD = \
5237 libsystemd-internal.la \
5238 libsystemd-shared.la
5240 test_inhibit_SOURCES = \
5241 src/login/test-inhibit.c
5243 test_inhibit_LDADD = \
5244 libsystemd-internal.la \
5245 libsystemd-shared.la
5247 test_login_tables_SOURCES = \
5248 src/login/test-login-tables.c
5250 test_login_tables_LDADD = \
5251 libsystemd-logind-core.la
5262 pam_systemd_la_SOURCES = \
5263 src/login/pam_systemd.sym \
5264 src/login/pam_systemd.c
5266 pam_systemd_la_CFLAGS = \
5271 pam_systemd_la_LDFLAGS = \
5277 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5279 pam_systemd_la_LIBADD = \
5280 libsystemd-capability.la \
5281 libsystemd-internal.la \
5282 libsystemd-shared.la \
5285 pamlib_LTLIBRARIES = \
5288 dist_pamconf_DATA = \
5289 src/login/systemd-user
5292 nodist_systemunit_DATA += \
5293 units/systemd-logind.service \
5294 units/systemd-user-sessions.service
5296 dist_systemunit_DATA += \
5299 dist_systemunit_DATA_busnames += \
5300 units/org.freedesktop.login1.busname
5302 dist_dbussystemservice_DATA += \
5303 src/login/org.freedesktop.login1.service
5305 dist_dbuspolicy_DATA += \
5306 src/login/org.freedesktop.login1.conf
5308 dist_pkgsysconf_DATA += \
5309 src/login/logind.conf
5311 polkitpolicy_files += \
5312 src/login/org.freedesktop.login1.policy
5317 MULTI_USER_TARGET_WANTS += \
5318 systemd-logind.service \
5319 systemd-user-sessions.service
5321 SYSTEM_UNIT_ALIASES += \
5322 systemd-logind.service dbus-org.freedesktop.login1.service
5324 BUSNAMES_TARGET_WANTS += \
5325 org.freedesktop.login1.busname
5327 if ENABLE_MULTI_SEAT_X
5329 systemd_multi_seat_x_SOURCES = \
5330 src/login/multi-seat-x.c
5332 systemd_multi_seat_x_LDADD = \
5333 libsystemd-label.la \
5334 libsystemd-shared.la
5336 rootlibexec_PROGRAMS += \
5337 systemd-multi-seat-x
5341 dist_udevrules_DATA += \
5342 src/login/70-uaccess.rules \
5343 src/login/70-power-switch.rules
5345 nodist_udevrules_DATA += \
5346 src/login/71-seat.rules \
5347 src/login/73-seat-late.rules
5350 src/login/logind-gperf.c \
5351 src/login/71-seat.rules \
5352 src/login/73-seat-late.rules
5355 polkitpolicy_in_files += \
5356 src/login/org.freedesktop.login1.policy.in
5359 src/login/logind-gperf.gperf \
5360 src/login/71-seat.rules.in \
5361 src/login/73-seat-late.rules.in \
5362 units/systemd-logind.service.in \
5363 units/systemd-user-sessions.service.in
5365 # ------------------------------------------------------------------------------
5366 if HAVE_PYTHON_DEVEL
5367 pkgpyexec_LTLIBRARIES = \
5374 _journal_la_SOURCES = \
5375 src/python-systemd/_journal.c
5377 _journal_la_CFLAGS = \
5379 -fvisibility=default \
5380 $(PYTHON_DEVEL_CFLAGS)
5382 _journal_la_LDFLAGS = \
5388 _journal_la_LIBADD = \
5389 $(PYTHON_DEVEL_LIBS) \
5392 id128_la_SOURCES = \
5393 src/python-systemd/id128.c \
5394 src/python-systemd/pyutil.c \
5395 src/python-systemd/pyutil.h
5397 nodist_id128_la_SOURCES = \
5398 src/python-systemd/id128-constants.h
5402 -fvisibility=default \
5403 $(PYTHON_DEVEL_CFLAGS) \
5404 -I$(top_builddir)/src/python-systemd
5406 id128_la_LDFLAGS = \
5413 $(PYTHON_DEVEL_LIBS) \
5414 libsystemd-shared.la \
5417 _daemon_la_SOURCES = \
5418 src/python-systemd/_daemon.c \
5419 src/python-systemd/pyutil.c \
5420 src/python-systemd/pyutil.h
5422 _daemon_la_CFLAGS = \
5424 -fvisibility=default \
5425 $(PYTHON_DEVEL_CFLAGS) \
5426 -I$(top_builddir)/src/python-systemd
5428 _daemon_la_LDFLAGS = \
5434 _daemon_la_LIBADD = \
5435 $(PYTHON_DEVEL_LIBS) \
5436 libsystemd-shared.la \
5439 _reader_la_SOURCES = \
5440 src/python-systemd/_reader.c \
5441 src/python-systemd/pyutil.c \
5442 src/python-systemd/pyutil.h
5444 _reader_la_CFLAGS = \
5446 -fvisibility=default \
5447 $(PYTHON_DEVEL_CFLAGS)
5449 _reader_la_LDFLAGS = \
5455 _reader_la_LIBADD = \
5456 $(PYTHON_DEVEL_LIBS) \
5457 libsystemd-shared.la \
5460 login_la_SOURCES = \
5461 src/python-systemd/login.c \
5462 src/python-systemd/pyutil.c \
5463 src/python-systemd/pyutil.h
5467 -fvisibility=default \
5468 $(PYTHON_DEVEL_CFLAGS)
5470 login_la_LDFLAGS = \
5477 $(PYTHON_DEVEL_LIBS) \
5478 libsystemd-shared.la \
5481 dist_pkgpyexec_PYTHON = \
5482 src/python-systemd/journal.py \
5483 src/python-systemd/daemon.py \
5484 src/python-systemd/__init__.py
5486 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
5487 $(AM_V_at)$(MKDIR_P) $(dir $@)
5488 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
5491 src/python-systemd/id128-constants.h
5493 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
5495 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
5496 $(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/
5497 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
5500 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
5501 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
5504 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
5505 $(MAKE) DESTDIR="$$dir" install && \
5506 $(MAKE) DESTDIR="$$dir" sphinx-html && \
5511 CLEAN_LOCAL_HOOKS += clean-sphinx
5513 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
5516 -rm -rf docs/html/python-systemd/
5518 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
5520 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
5521 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
5523 # ------------------------------------------------------------------------------
5524 if ENABLE_COMPAT_LIBS
5526 src/compat-libs/linkwarning.h
5528 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
5529 $(AM_V_at)$(MKDIR_P) $(dir $@)
5530 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
5533 libsystemd-journal.c \
5534 libsystemd-login.c \
5535 libsystemd-id128.c \
5538 libsystemd_journal_la_SOURCES = \
5539 libsystemd-journal.c \
5540 src/compat-libs/libsystemd-journal.sym
5542 libsystemd_journal_la_CPPFLAGS = \
5544 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5546 libsystemd_journal_la_LDFLAGS = \
5548 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
5549 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
5551 libsystemd_journal_la_LIBADD = \
5552 libsystemd-journal-internal.la \
5553 libsystemd-internal.la \
5554 libsystemd-shared.la
5556 libsystemd_login_la_SOURCES = \
5557 libsystemd-login.c \
5558 src/compat-libs/libsystemd-login.sym
5560 libsystemd_login_la_CPPFLAGS = \
5562 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5564 libsystemd_login_la_LDFLAGS = \
5566 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
5567 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
5569 libsystemd_login_la_LIBADD = \
5570 libsystemd-internal.la \
5571 libsystemd-shared.la
5573 libsystemd_id128_la_SOURCES = \
5574 libsystemd-id128.c \
5575 src/compat-libs/libsystemd-id128.sym
5577 libsystemd_id128_la_CPPFLAGS = \
5579 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5581 libsystemd_id128_la_LDFLAGS = \
5583 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
5584 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
5586 libsystemd_id128_la_LIBADD = \
5587 libsystemd-internal.la \
5588 libsystemd-shared.la
5590 libsystemd_daemon_la_SOURCES = \
5591 libsystemd-daemon.c \
5592 src/compat-libs/libsystemd-daemon.sym
5594 libsystemd_daemon_la_CPPFLAGS = \
5596 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5598 libsystemd_daemon_la_LDFLAGS = \
5600 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
5601 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
5603 libsystemd_daemon_la_LIBADD = \
5604 libsystemd-internal.la \
5605 libsystemd-shared.la
5607 lib_LTLIBRARIES += \
5608 libsystemd-journal.la \
5609 libsystemd-login.la \
5610 libsystemd-id128.la \
5611 libsystemd-daemon.la
5613 pkgconfiglib_DATA += \
5614 src/compat-libs/libsystemd-journal.pc \
5615 src/compat-libs/libsystemd-login.pc \
5616 src/compat-libs/libsystemd-id128.pc \
5617 src/compat-libs/libsystemd-daemon.pc
5619 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
5620 compat-lib-install-hook:
5621 libname=libsystemd-login.so && $(move-to-rootlibdir)
5622 libname=libsystemd-journal.so && $(move-to-rootlibdir)
5623 libname=libsystemd-id128.so && $(move-to-rootlibdir)
5624 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
5626 compat-lib-uninstall-hook:
5627 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
5628 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
5629 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
5630 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
5632 INSTALL_EXEC_HOOKS += compat-lib-install-hook
5633 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
5637 src/compat-libs/libsystemd-journal.pc.in \
5638 src/compat-libs/libsystemd-login.pc.in \
5639 src/compat-libs/libsystemd-id128.pc.in \
5640 src/compat-libs/libsystemd-daemon.pc.in
5642 # ------------------------------------------------------------------------------
5644 '|rootlibexecdir=$(rootlibexecdir)|' \
5645 '|rootbindir=$(rootbindir)|' \
5646 '|bindir=$(bindir)|' \
5647 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5648 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5649 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5650 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5651 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
5652 '|pkgdatadir=$(pkgdatadir)|' \
5653 '|systemunitdir=$(systemunitdir)|' \
5654 '|userunitdir=$(userunitdir)|' \
5655 '|systempresetdir=$(systempresetdir)|' \
5656 '|userpresetdir=$(userpresetdir)|' \
5657 '|udevhwdbdir=$(udevhwdbdir)|' \
5658 '|udevrulesdir=$(udevrulesdir)|' \
5659 '|catalogdir=$(catalogdir)|' \
5660 '|tmpfilesdir=$(tmpfilesdir)|' \
5661 '|sysusersdir=$(sysusersdir)|' \
5662 '|sysctldir=$(sysctldir)|' \
5663 '|systemgeneratordir=$(systemgeneratordir)|' \
5664 '|usergeneratordir=$(usergeneratordir)|' \
5665 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
5666 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
5667 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
5668 '|PACKAGE_URL=$(PACKAGE_URL)|' \
5669 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
5670 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
5671 '|prefix=$(prefix)|' \
5672 '|exec_prefix=$(exec_prefix)|' \
5673 '|libdir=$(libdir)|' \
5674 '|includedir=$(includedir)|' \
5675 '|VERSION=$(VERSION)|' \
5676 '|rootprefix=$(rootprefix)|' \
5677 '|udevlibexecdir=$(udevlibexecdir)|' \
5678 '|SUSHELL=$(SUSHELL)|' \
5679 '|DEBUGTTY=$(DEBUGTTY)|' \
5682 '|MKDIR_P=$(MKDIR_P)|' \
5683 '|QUOTAON=$(QUOTAON)|' \
5684 '|QUOTACHECK=$(QUOTACHECK)|' \
5685 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
5686 '|VARLOGDIR=$(varlogdir)|' \
5687 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
5688 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
5689 '|PYTHON=$(PYTHON)|' \
5690 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
5691 '|NTP_SERVERS=$(NTP_SERVERS)|' \
5692 '|DNS_SERVERS=$(DNS_SERVERS)|' \
5693 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
5694 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
5695 '|TTY_GID=$(TTY_GID)|' \
5696 '|systemsleepdir=$(systemsleepdir)|' \
5697 '|systemshutdowndir=$(systemshutdowndir)|' \
5698 '|binfmtdir=$(binfmtdir)|' \
5699 '|modulesloaddir=$(modulesloaddir)|'
5702 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
5703 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
5712 sysctl.d/%: sysctl.d/%.in
5721 src/core/macros.%: src/core/macros.%.in
5724 src/%.policy.in: src/%.policy.in.in
5727 shell-completion/%: shell-completion/%.in
5738 $(AM_V_GEN)chmod +x $@
5740 src/%.c: src/%.gperf
5741 $(AM_V_at)$(MKDIR_P) $(dir $@)
5742 $(AM_V_GPERF)$(GPERF) < $< > $@
5745 $(AM_V_at)$(MKDIR_P) $(dir $@)
5746 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5748 tmpfiles.d/%: tmpfiles.d/%.m4
5749 $(AM_V_at)$(MKDIR_P) $(dir $@)
5750 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5754 $(AM_V_at)$(MKDIR_P) $(dir $@)
5755 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
5757 units/user/%: units/%.m4
5758 $(AM_V_at)$(MKDIR_P) $(dir $@)
5759 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
5762 nodist_polkitpolicy_DATA = \
5763 $(polkitpolicy_files) \
5764 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
5768 $(polkitpolicy_in_files) \
5769 $(polkitpolicy_in_in_files)
5772 $(nodist_systemunit_DATA) \
5773 $(nodist_userunit_DATA) \
5774 $(pkgconfigdata_DATA) \
5775 $(pkgconfiglib_DATA) \
5776 $(nodist_polkitpolicy_DATA)
5778 # ------------------------------------------------------------------------------
5780 man/custom-entities.ent: configure.ac
5781 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
5782 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
5783 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
5787 man/custom-entities.ent
5792 --stringparam man.output.quietly 1 \
5793 --stringparam funcsynopsis.style ansi \
5794 --stringparam man.authors.section.enabled 0 \
5795 --stringparam man.copyright.section.enabled 0 \
5796 --stringparam systemd.version $(VERSION) \
5797 --path '$(builddir)/man:$(srcdir)/man'
5799 XSLTPROC_PROCESS_MAN = \
5800 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
5802 XSLTPROC_PROCESS_HTML = \
5803 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
5805 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
5806 $(XSLTPROC_PROCESS_MAN)
5808 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
5809 $(XSLTPROC_PROCESS_MAN)
5811 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
5812 $(XSLTPROC_PROCESS_MAN)
5814 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
5815 $(XSLTPROC_PROCESS_MAN)
5817 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
5818 $(XSLTPROC_PROCESS_MAN)
5820 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
5821 $(XSLTPROC_PROCESS_HTML)
5824 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
5830 man/custom-html.xsl \
5833 # ------------------------------------------------------------------------------
5836 docs/sysvinit/README
5841 docs/sysvinit/README: docs/sysvinit/README.in
5844 docs/var-log/README: docs/var-log/README.in
5848 docs/sysvinit/README \
5853 docs/sysvinit/README.in \
5854 docs/var-log/README.in
5856 SOCKETS_TARGET_WANTS += \
5857 systemd-initctl.socket \
5858 systemd-shutdownd.socket
5861 RUNLEVEL1_TARGET_WANTS += \
5862 systemd-update-utmp-runlevel.service
5863 RUNLEVEL2_TARGET_WANTS += \
5864 systemd-update-utmp-runlevel.service
5865 RUNLEVEL3_TARGET_WANTS += \
5866 systemd-update-utmp-runlevel.service
5867 RUNLEVEL4_TARGET_WANTS += \
5868 systemd-update-utmp-runlevel.service
5869 RUNLEVEL5_TARGET_WANTS += \
5870 systemd-update-utmp-runlevel.service
5873 SYSINIT_TARGET_WANTS += \
5874 systemd-update-utmp.service \
5875 systemd-update-done.service
5877 LOCAL_FS_TARGET_WANTS += \
5878 systemd-remount-fs.service \
5881 MULTI_USER_TARGET_WANTS += \
5883 systemd-ask-password-wall.path
5885 SYSINIT_TARGET_WANTS += \
5886 dev-hugepages.mount \
5888 sys-kernel-config.mount \
5889 sys-kernel-debug.mount \
5890 sys-fs-fuse-connections.mount \
5891 systemd-sysctl.service \
5892 systemd-ask-password-console.path
5895 SYSTEM_UNIT_ALIASES += \
5896 poweroff.target runlevel0.target \
5897 rescue.target runlevel1.target \
5898 multi-user.target runlevel2.target \
5899 multi-user.target runlevel3.target \
5900 multi-user.target runlevel4.target \
5901 graphical.target runlevel5.target \
5902 reboot.target runlevel6.target
5905 SYSTEM_UNIT_ALIASES += \
5906 graphical.target default.target \
5907 reboot.target ctrl-alt-del.target \
5908 getty@.service autovt@.service
5910 USER_UNIT_ALIASES += \
5911 $(systemunitdir)/shutdown.target shutdown.target \
5912 $(systemunitdir)/sockets.target sockets.target \
5913 $(systemunitdir)/timers.target timers.target \
5914 $(systemunitdir)/paths.target paths.target \
5915 $(systemunitdir)/bluetooth.target bluetooth.target \
5916 $(systemunitdir)/printer.target printer.target \
5917 $(systemunitdir)/sound.target sound.target \
5918 $(systemunitdir)/smartcard.target smartcard.target
5921 USER_UNIT_ALIASES += \
5922 $(systemunitdir)/busnames.target busnames.target
5925 GENERAL_ALIASES += \
5926 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
5927 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
5928 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
5929 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
5933 $(systemunitdir)/runlevel1.target.wants \
5934 $(systemunitdir)/runlevel2.target.wants \
5935 $(systemunitdir)/runlevel3.target.wants \
5936 $(systemunitdir)/runlevel4.target.wants \
5937 $(systemunitdir)/runlevel5.target.wants
5941 $(prefix)/lib/modules-load.d \
5942 $(sysconfdir)/modules-load.d \
5943 $(prefix)/lib/systemd/network \
5944 $(sysconfdir)/systemd/network \
5945 $(prefix)/lib/sysctl.d \
5946 $(sysconfdir)/sysctl.d \
5947 $(prefix)/lib/kernel/install.d \
5948 $(sysconfdir)/kernel/install.d \
5949 $(systemshutdowndir) \
5951 $(systemgeneratordir) \
5952 $(usergeneratordir) \
5955 $(pkgsysconfdir)/system \
5956 $(pkgsysconfdir)/system/multi-user.target.wants \
5957 $(pkgsysconfdir)/system/getty.target.wants \
5958 $(pkgsysconfdir)/user \
5959 $(dbussessionservicedir) \
5960 $(sysconfdir)/xdg/systemd
5962 install-exec-hook: $(INSTALL_EXEC_HOOKS)
5964 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
5966 install-data-hook: $(INSTALL_DATA_HOOKS)
5968 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
5970 clean-local: $(CLEAN_LOCAL_HOOKS)
5971 rm -rf $(abs_srcdir)/install-tree
5972 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
5973 $(abs_srcdir)/hwdb/iab.txt
5975 DISTCHECK_CONFIGURE_FLAGS = \
5976 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
5977 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
5978 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
5979 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
5980 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
5981 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
5982 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
5983 --with-rootprefix=$$dc_install_base \
5984 --disable-split-usr \
5986 --enable-compat-libs
5989 DISTCHECK_CONFIGURE_FLAGS += \
5990 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
5991 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
5993 DISTCHECK_CONFIGURE_FLAGS += \
5994 --with-sysvinit-path= \
5995 --with-sysvrcnd-path=
5999 DISTCHECK_CONFIGURE_FLAGS += \
6004 DISTCHECK_CONFIGURE_FLAGS += \
6009 # Require python when making dist
6011 .PHONY: dist-check-python
6014 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
6018 dist-check-compat-libs:
6019 if !ENABLE_COMPAT_LIBS
6020 @echo "*** compat-libs must be enabled in order to make dist"
6024 dist: dist-check-python dist-check-compat-libs
6026 # check "broken" platforms limited toolchains for link breakage before we release
6029 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
6033 ( cd $(top_srcdir)/hwdb && \
6034 wget -N http://www.linux-usb.org/usb.ids \
6035 http://pci-ids.ucw.cz/v2.2/pci.ids \
6036 http://standards.ieee.org/develop/regauth/oui/oui.txt \
6037 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
6040 .PHONY: kdbus-update
6042 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
6043 wget -N https://d-bus.googlecode.com/git/kdbus.h )
6047 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6049 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6051 upload: all check dist
6052 scp systemd-$(VERSION).tar.xz $(www_target)
6055 doc-sync: all destdir-sphinx
6056 gtkdoc-rebase --html-dir=docs/libudev/html --online
6057 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
6058 gtkdoc-rebase --html-dir=docs/gudev/html --online
6059 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
6060 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6061 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
6065 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
6066 scp man/*.html tango:public/systemd-man/
6068 .PHONY: install-tree
6070 rm -rf $(abs_srcdir)/install-tree
6071 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6072 tree $(abs_srcdir)/install-tree
6074 # Let's run all tests of the test suite, but under valgrind. Let's
6075 # exclude the one perl script we have in there
6076 .PHONY: valgrind-tests
6077 valgrind-tests: $(TESTS)
6078 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
6079 if file $$f | grep -q shell; then \
6080 echo -e "$${x}Skipping non-binary $$f"; else \
6081 echo -e "$${x}Running $$f"; \
6082 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6087 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6089 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6090 $(AM_V_GEN)cat $^ > $@
6092 .PHONY: check-api-docs
6093 check-api-docs: exported man
6094 $(AM_V_GEN)for symbol in `cat exported` ; do \
6095 if test -f $(builddir)/man/$$symbol.html ; then \
6096 echo " Symbol $$symbol() is documented." ; \
6098 echo "‣ Symbol $$symbol() lacks documentation." ; \
6102 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6103 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6105 undefined defined: $(ALL_OBJECTS)
6106 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6107 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6108 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6114 .PHONY: check-api-unused
6115 check-api-unused: defined undefined exported
6116 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6118 .PHONY: check-includes
6119 check-includes: $(top_srcdir)/tools/check-includes.pl
6120 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6121 | xargs $(top_srcdir)/tools/check-includes.pl
6124 $(top_srcdir)/tools/check-includes.pl
6126 # Stupid test that everything purported to be exported really is
6127 define generate-sym-test
6128 $(AM_V_at)$(MKDIR_P) $(dir $@)
6129 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6130 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6131 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6132 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6133 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6134 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6135 $(AM_V_at)printf 'return 0; }\n' >> $@
6138 test-libsystemd-sym.c: \
6139 $(top_builddir)/src/libsystemd/libsystemd.sym \
6140 src/systemd/sd-journal.h \
6141 src/systemd/sd-daemon.h \
6142 src/systemd/sd-login.h \
6143 src/systemd/sd-bus.h \
6144 src/systemd/sd-utf8.h \
6145 src/systemd/sd-resolve.h \
6146 src/systemd/sd-path.h
6147 $(generate-sym-test)
6149 test-libudev-sym.c: \
6150 src/libudev/libudev.sym \
6152 $(generate-sym-test)
6154 test_libsystemd_sym_SOURCES = \
6155 test-libsystemd-sym.c
6156 test_libsystemd_sym_LDADD = \
6159 test_libudev_sym_SOURCES = \
6161 test_libudev_sym_CFLAGS = \
6163 -Wno-deprecated-declarations
6164 test_libudev_sym_LDADD = \
6168 $(test_libsystemd_sym_SOURCES) \
6169 $(test_libudev_sym_SOURCES)
6172 test-libsystemd-sym \
6177 cppcheck --enable=all -q $(top_srcdir)
6179 # Used to extract compile flags for YCM.
6184 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u