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 \
725 # ------------------------------------------------------------------------------
726 noinst_LTLIBRARIES += \
729 libsystemd_shared_la_SOURCES = \
730 src/shared/linux/auto_dev-ioctl.h \
731 src/shared/linux/fanotify.h \
732 src/shared/ioprio.h \
733 src/shared/missing.h \
734 src/shared/initreq.h \
735 src/shared/securebits.h \
736 src/shared/special.h \
740 src/shared/sparse-endian.h \
741 src/shared/refcnt.h \
742 src/shared/udev-util.h \
743 src/shared/bus-errors.h \
744 src/shared/device-nodes.c \
745 src/shared/device-nodes.h \
750 src/shared/architecture.c \
751 src/shared/architecture.h \
752 src/shared/efivars.c \
753 src/shared/efivars.h \
754 src/shared/path-util.c \
755 src/shared/path-util.h \
756 src/shared/time-util.c \
757 src/shared/time-util.h \
758 src/shared/locale-util.c \
759 src/shared/locale-util.h \
760 src/shared/hashmap.c \
761 src/shared/hashmap.h \
762 src/shared/siphash24.c \
763 src/shared/siphash24.h \
770 src/shared/sleep-config.c \
771 src/shared/sleep-config.h \
774 src/shared/env-util.c \
775 src/shared/env-util.h \
776 src/shared/strbuf.c \
777 src/shared/strbuf.h \
778 src/shared/strxcpyx.c \
779 src/shared/strxcpyx.h \
780 src/shared/conf-parser.c \
781 src/shared/conf-parser.h \
784 src/shared/ratelimit.h \
785 src/shared/ratelimit.c \
786 src/shared/exit-status.c \
787 src/shared/exit-status.h \
790 src/shared/gunicode.c \
791 src/shared/gunicode.h \
794 src/shared/socket-util.c \
795 src/shared/socket-util.h \
796 src/shared/in-addr-util.c \
797 src/shared/in-addr-util.h \
798 src/shared/conf-files.c \
799 src/shared/conf-files.h \
800 src/shared/cgroup-util.c \
801 src/shared/cgroup-util.h \
802 src/shared/cgroup-show.c \
803 src/shared/cgroup-show.h \
804 src/shared/unit-name.c \
805 src/shared/unit-name.h \
806 src/shared/utmp-wtmp.c \
807 src/shared/utmp-wtmp.h \
808 src/shared/watchdog.c \
809 src/shared/watchdog.h \
810 src/shared/spawn-ask-password-agent.c \
811 src/shared/spawn-ask-password-agent.h \
812 src/shared/replace-var.c \
813 src/shared/replace-var.h \
814 src/shared/spawn-polkit-agent.c \
815 src/shared/spawn-polkit-agent.h \
816 src/shared/clock-util.c \
817 src/shared/clock-util.h \
818 src/shared/time-dst.c \
819 src/shared/time-dst.h \
820 src/shared/calendarspec.c \
821 src/shared/calendarspec.h \
822 src/shared/fileio.c \
823 src/shared/fileio.h \
824 src/shared/output-mode.h \
825 src/shared/MurmurHash2.c \
826 src/shared/MurmurHash2.h \
827 src/shared/acpi-fpdt.h \
828 src/shared/acpi-fpdt.c \
829 src/shared/boot-timestamps.h \
830 src/shared/boot-timestamps.c \
833 src/shared/smack-util.c \
834 src/shared/smack-util.h \
835 src/shared/apparmor-util.c \
836 src/shared/apparmor-util.h \
837 src/shared/ima-util.c \
838 src/shared/ima-util.h \
839 src/shared/ptyfwd.c \
840 src/shared/ptyfwd.h \
841 src/shared/errno-list.c \
842 src/shared/errno-list.h \
843 src/shared/af-list.c \
844 src/shared/af-list.h \
845 src/shared/arphrd-list.c \
846 src/shared/arphrd-list.h \
851 src/shared/condition-util.c \
852 src/shared/condition-util.h \
853 src/shared/bus-label.c \
854 src/shared/bus-label.h \
856 src/shared/clean-ipc.h \
857 src/shared/clean-ipc.c \
858 src/shared/login-shared.c \
859 src/shared/login-shared.h \
862 src/shared/barrier.c \
863 src/shared/barrier.h \
870 src/shared/base-filesystem.c \
871 src/shared/base-filesystem.h \
874 src/shared/uid-range.c \
875 src/shared/uid-range.h \
876 src/shared/switch-root.h \
877 src/shared/switch-root.c \
878 src/shared/nss-util.h
880 nodist_libsystemd_shared_la_SOURCES = \
881 src/shared/errno-from-name.h \
882 src/shared/errno-to-name.h \
883 src/shared/af-from-name.h \
884 src/shared/af-to-name.h \
885 src/shared/arphrd-from-name.h \
886 src/shared/arphrd-to-name.h
888 libsystemd_shared_la_CFLAGS = \
893 # ------------------------------------------------------------------------------
894 noinst_LTLIBRARIES += \
897 libsystemd_units_la_SOURCES = \
898 src/shared/install.c \
899 src/shared/install.h \
900 src/shared/install-printf.c \
901 src/shared/install-printf.h \
902 src/shared/path-lookup.c \
903 src/shared/path-lookup.h \
904 src/shared/specifier.c \
905 src/shared/specifier.h
907 # ------------------------------------------------------------------------------
908 noinst_LTLIBRARIES += \
911 libsystemd_label_la_SOURCES = \
912 src/shared/socket-label.c \
915 src/shared/selinux-util.c \
916 src/shared/selinux-util.h \
917 src/shared/mkdir-label.c \
918 src/shared/ask-password-api.c \
919 src/shared/ask-password-api.h \
920 src/shared/fileio-label.c \
921 src/shared/fileio-label.h \
922 src/shared/dev-setup.c \
923 src/shared/dev-setup.h \
924 src/shared/dropin.c \
925 src/shared/dropin.h \
926 src/shared/generator.h \
927 src/shared/generator.c
929 libsystemd_label_la_CFLAGS = \
933 libsystemd_label_la_LIBADD = \
936 # -----------------------------------------------------------------------------
939 dist_systemunit_DATA += \
940 units/ldconfig.service
942 SYSINIT_TARGET_WANTS += \
946 # ------------------------------------------------------------------------------
949 noinst_LTLIBRARIES += \
950 libsystemd-seccomp.la
952 libsystemd_seccomp_la_SOURCES = \
953 src/shared/seccomp-util.h \
954 src/shared/seccomp-util.c
956 libsystemd_seccomp_la_CFLAGS = \
960 libsystemd_seccomp_la_LIBADD = \
964 # ------------------------------------------------------------------------------
965 noinst_LTLIBRARIES += \
968 libsystemd_logs_la_SOURCES = \
969 src/shared/logs-show.c \
970 src/shared/logs-show.h
972 # ------------------------------------------------------------------------------
973 noinst_LTLIBRARIES += \
974 libsystemd-capability.la
976 libsystemd_capability_la_SOURCES = \
977 src/shared/capability.c \
978 src/shared/capability.h
980 libsystemd_capability_la_CFLAGS = \
984 libsystemd_capability_la_LIBADD = \
987 # ------------------------------------------------------------------------------
989 noinst_LTLIBRARIES += \
992 libsystemd_acl_la_SOURCES = \
993 src/shared/acl-util.c \
994 src/shared/acl-util.h
996 libsystemd_acl_la_CFLAGS = \
1000 libsystemd_acl_la_LIBADD = \
1004 # ------------------------------------------------------------------------------
1005 noinst_LTLIBRARIES += \
1008 libsystemd_core_la_SOURCES = \
1011 src/core/unit-printf.c \
1012 src/core/unit-printf.h \
1015 src/core/manager.c \
1016 src/core/manager.h \
1017 src/core/transaction.c \
1018 src/core/transaction.h \
1019 src/core/load-fragment.c \
1020 src/core/load-fragment.h \
1021 src/core/service.c \
1022 src/core/service.h \
1025 src/core/busname.c \
1026 src/core/busname.h \
1027 src/core/bus-common.c \
1028 src/core/bus-common.h \
1029 src/core/bus-endpoint.c \
1030 src/core/bus-endpoint.h \
1033 src/core/snapshot.c \
1034 src/core/snapshot.h \
1039 src/core/automount.c \
1040 src/core/automount.h \
1051 src/core/load-dropin.c \
1052 src/core/load-dropin.h \
1053 src/core/execute.c \
1054 src/core/execute.h \
1059 src/core/dbus-manager.c \
1060 src/core/dbus-manager.h \
1061 src/core/dbus-unit.c \
1062 src/core/dbus-unit.h \
1063 src/core/dbus-job.c \
1064 src/core/dbus-job.h \
1065 src/core/dbus-service.c \
1066 src/core/dbus-service.h \
1067 src/core/dbus-socket.c \
1068 src/core/dbus-socket.h \
1069 src/core/dbus-busname.c \
1070 src/core/dbus-busname.h \
1071 src/core/dbus-target.c \
1072 src/core/dbus-target.h \
1073 src/core/dbus-snapshot.c \
1074 src/core/dbus-snapshot.h \
1075 src/core/dbus-device.c \
1076 src/core/dbus-device.h \
1077 src/core/dbus-mount.c \
1078 src/core/dbus-mount.h \
1079 src/core/dbus-automount.c \
1080 src/core/dbus-automount.h \
1081 src/core/dbus-swap.c \
1082 src/core/dbus-swap.h \
1083 src/core/dbus-timer.c \
1084 src/core/dbus-timer.h \
1085 src/core/dbus-path.c \
1086 src/core/dbus-path.h \
1087 src/core/dbus-slice.c \
1088 src/core/dbus-slice.h \
1089 src/core/dbus-scope.c \
1090 src/core/dbus-scope.h \
1091 src/core/dbus-execute.c \
1092 src/core/dbus-execute.h \
1093 src/core/dbus-kill.c \
1094 src/core/dbus-kill.h \
1095 src/core/dbus-cgroup.c \
1096 src/core/dbus-cgroup.h \
1099 src/core/selinux-access.c \
1100 src/core/selinux-access.h \
1101 src/core/selinux-setup.c \
1102 src/core/selinux-setup.h \
1103 src/core/smack-setup.c \
1104 src/core/smack-setup.h \
1105 src/core/ima-setup.c \
1106 src/core/ima-setup.h \
1107 src/core/locale-setup.h \
1108 src/core/locale-setup.c \
1109 src/core/hostname-setup.c \
1110 src/core/hostname-setup.h \
1111 src/core/machine-id-setup.c \
1112 src/core/machine-id-setup.h \
1113 src/core/mount-setup.c \
1114 src/core/mount-setup.h \
1115 src/core/loopback-setup.h \
1116 src/core/loopback-setup.c \
1117 src/core/condition.c \
1118 src/core/condition.h \
1119 src/core/namespace.c \
1120 src/core/namespace.h \
1122 src/core/sysfs-show.h \
1123 src/core/killall.h \
1124 src/core/killall.c \
1125 src/core/audit-fd.c \
1126 src/core/audit-fd.h \
1127 src/core/show-status.c \
1128 src/core/show-status.h \
1129 src/core/failure-action.c \
1130 src/core/failure-action.h
1133 libsystemd_core_la_SOURCES += \
1134 src/core/kmod-setup.c \
1135 src/core/kmod-setup.h
1138 nodist_libsystemd_core_la_SOURCES = \
1139 src/core/load-fragment-gperf.c \
1140 src/core/load-fragment-gperf-nulstr.c
1142 libsystemd_core_la_CFLAGS = \
1148 $(APPARMOR_CFLAGS) \
1152 libsystemd_core_la_LIBADD = \
1153 libsystemd-capability.la \
1154 libsystemd-units.la \
1155 libsystemd-label.la \
1156 libudev-internal.la \
1157 libsystemd-shared.la \
1158 libsystemd-internal.la \
1167 libsystemd_core_la_LIBADD += \
1168 libsystemd-seccomp.la
1171 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1172 $(AM_V_at)$(MKDIR_P) $(dir $@)
1173 $(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 ";" }' < $< > $@
1176 src/core/load-fragment-gperf.gperf.m4
1179 src/core/load-fragment-gperf.gperf \
1180 src/core/load-fragment-gperf.c \
1181 src/core/load-fragment-gperf-nulstr.c \
1182 src/shared/errno-list.txt \
1183 src/shared/errno-from-name.gperf \
1184 src/shared/af-list.txt \
1185 src/shared/af-from-name.gperf \
1186 src/shared/arphrd-list.txt \
1187 src/shared/arphrd-from-name.gperf \
1188 src/shared/dns_type-list.txt \
1189 src/shared/dns_type-from-name.gperf
1192 src/shared/errno-from-name.h \
1193 src/shared/errno-to-name.h \
1194 src/shared/af-from-name.h \
1195 src/shared/af-to-name.h \
1196 src/shared/arphrd-from-name.h \
1197 src/shared/arphrd-to-name.h \
1198 src/resolve/dns_type-from-name.h \
1199 src/resolve/dns_type-to-name.h
1201 %-from-name.gperf: %-list.txt
1202 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1204 %-from-name.h: %-from-name.gperf
1205 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1208 src/shared/errno-list.txt:
1209 $(AM_V_at)$(MKDIR_P) $(dir $@)
1210 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1212 src/shared/errno-to-name.h: src/shared/errno-list.txt
1213 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1216 src/shared/af-list.txt:
1217 $(AM_V_at)$(MKDIR_P) $(dir $@)
1218 $(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; }' >$@
1220 src/shared/af-to-name.h: src/shared/af-list.txt
1221 $(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 "};"}' <$< >$@
1223 src/shared/arphrd-list.txt:
1224 $(AM_V_at)$(MKDIR_P) $(dir $@)
1225 $(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_//' >$@
1227 src/shared/arphrd-to-name.h: src/shared/arphrd-list.txt
1228 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1230 src/shared/arphrd-from-name.gperf: src/shared/arphrd-list.txt
1231 $(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 }' <$< >$@
1234 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1235 $(AM_V_at)$(MKDIR_P) $(dir $@)
1236 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1238 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1239 $(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" }' <$< >$@
1241 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1242 $(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 }' <$< >$@
1244 # ------------------------------------------------------------------------------
1253 libsystemd-core.la \
1256 dist_pkgsysconf_DATA += \
1257 src/core/system.conf \
1260 dist_dbuspolicy_DATA += \
1261 src/core/org.freedesktop.systemd1.conf
1263 dist_dbussystemservice_DATA += \
1264 src/core/org.freedesktop.systemd1.service
1266 polkitpolicy_in_in_files += \
1267 src/core/org.freedesktop.systemd1.policy.in.in
1269 pkgconfigdata_DATA = \
1272 nodist_rpmmacros_DATA = \
1273 src/core/macros.systemd
1276 src/core/systemd.pc.in \
1277 src/core/macros.systemd.in
1280 src/core/macros.systemd \
1281 src/core/org.freedesktop.systemd1.policy.in
1283 # ------------------------------------------------------------------------------
1325 test-strip-tab-ansi \
1342 test-condition-util \
1351 test/daughter.service \
1356 test/grandchild.service \
1358 test/hello-after-sleep.target \
1359 test/hello.service \
1361 test/parent-deep.slice \
1364 test/sched_idle_bad.service \
1365 test/sched_idle_ok.service \
1366 test/sched_rr_bad.service \
1367 test/sched_rr_change.service \
1368 test/sched_rr_ok.service \
1369 test/shutdown.target \
1370 test/sleep.service \
1371 test/sockets.target \
1373 test/sysinit.target \
1374 test/testsuite.target \
1375 test/timers.target \
1376 test/unstoppable.service \
1377 test/bus-policy/hello.conf \
1378 test/bus-policy/methods.conf \
1379 test/bus-policy/ownerships.conf \
1380 test/bus-policy/signals.conf
1384 src/test/test-helper.h
1386 test_device_nodes_SOURCES = \
1387 src/test/test-device-nodes.c
1389 test_device_nodes_LDADD = \
1390 libsystemd-shared.la
1392 test_engine_SOURCES = \
1393 src/test/test-engine.c
1395 test_engine_CFLAGS = \
1399 test_engine_LDADD = \
1400 libsystemd-core.la \
1403 test_job_type_SOURCES = \
1404 src/test/test-job-type.c
1406 test_job_type_CFLAGS = \
1410 test_job_type_LDADD = \
1411 libsystemd-core.la \
1424 test_loopback_SOURCES = \
1425 src/test/test-loopback.c
1427 test_loopback_LDADD = \
1430 test_hostname_SOURCES = \
1431 src/test/test-hostname.c
1433 test_hostname_LDADD = \
1440 test_boot_timestamp_SOURCES = \
1441 src/test/test-boot-timestamps.c
1443 test_boot_timestamp_LDADD = \
1444 libsystemd-shared.la
1447 test_unit_name_SOURCES = \
1448 src/test/test-unit-name.c
1450 test_unit_name_CFLAGS = \
1454 test_unit_name_LDADD = \
1455 libsystemd-core.la \
1458 test_unit_file_SOURCES = \
1459 src/test/test-unit-file.c
1461 test_unit_file_CFLAGS = \
1465 test_unit_file_LDADD = \
1466 libsystemd-core.la \
1469 test_utf8_SOURCES = \
1470 src/test/test-utf8.c
1473 libsystemd-shared.la
1475 test_capability_SOURCES = \
1476 src/test/test-capability.c
1478 test_capability_LDADD = \
1479 libsystemd-shared.la \
1480 libsystemd-capability.la
1482 test_async_SOURCES = \
1483 src/test/test-async.c
1485 test_async_LDADD = \
1486 libsystemd-shared.la
1488 test_condition_util_SOURCES = \
1489 src/test/test-condition-util.c
1491 test_condition_util_LDADD = \
1492 libsystemd-shared.la \
1493 libsystemd-internal.la
1496 test_fdset_SOURCES = \
1497 src/test/test-fdset.c
1499 test_fdset_LDADD = \
1502 test_ratelimit_SOURCES = \
1503 src/test/test-ratelimit.c
1505 test_ratelimit_LDADD = \
1506 libsystemd-shared.la
1508 test_util_SOURCES = \
1509 src/test/test-util.c
1514 test_uid_range_SOURCES = \
1515 src/test/test-uid-range.c
1517 test_uid_range_LDADD = \
1520 test_socket_util_SOURCES = \
1521 src/test/test-socket-util.c
1523 test_socket_util_LDADD = \
1526 test_ring_SOURCES = \
1527 src/test/test-ring.c
1532 test_barrier_SOURCES = \
1533 src/test/test-barrier.c
1535 test_barrier_LDADD = \
1538 test_pty_SOURCES = \
1544 test_tmpfiles_SOURCES = \
1545 src/test/test-tmpfiles.c
1547 test_tmpfiles_LDADD = \
1548 libsystemd-shared.la
1550 test_namespace_SOURCES = \
1551 src/test/test-namespace.c
1553 test_namespace_LDADD = \
1556 test_hashmap_SOURCES = \
1557 src/test/test-hashmap.c
1559 test_hashmap_LDADD = \
1562 test_xml_SOURCES = \
1566 libsystemd-shared.la
1568 test_list_SOURCES = \
1569 src/test/test-list.c
1574 test_tables_SOURCES = \
1575 src/test/test-tables.c \
1576 src/shared/test-tables.h \
1577 src/bus-proxyd/bus-policy.c \
1578 src/bus-proxyd/bus-policy.h \
1579 src/journal/journald-server.c \
1580 src/journal/journald-server.h
1582 test_tables_CPPFLAGS = \
1584 -I$(top_srcdir)/src/bus-proxyd
1586 test_tables_CFLAGS = \
1590 test_tables_LDADD = \
1591 libsystemd-logs.la \
1592 libsystemd-journal-internal.la \
1593 libsystemd-journal-core.la \
1594 libsystemd-core.la \
1598 test_prioq_SOURCES = \
1599 src/test/test-prioq.c
1601 test_prioq_LDADD = \
1604 test_fileio_SOURCES = \
1605 src/test/test-fileio.c
1607 test_fileio_LDADD = \
1610 test_time_SOURCES = \
1611 src/test/test-time.c
1616 test_architecture_SOURCES = \
1617 src/test/test-architecture.c
1619 test_architecture_LDADD = \
1620 libsystemd-shared.la
1622 test_log_SOURCES = \
1628 test_ipcrm_SOURCES = \
1629 src/test/test-ipcrm.c
1631 test_ipcrm_LDADD = \
1632 libsystemd-shared.la \
1635 test_rtnl_manual_SOURCES = \
1636 src/test/test-rtnl-manual.c
1638 test_rtnl_manual_CFLAGS = \
1642 test_rtnl_manual_LDADD = \
1643 libsystemd-internal.la \
1644 libsystemd-shared.la \
1647 test_ellipsize_SOURCES = \
1648 src/test/test-ellipsize.c
1650 test_ellipsize_LDADD = \
1653 test_date_SOURCES = \
1654 src/test/test-date.c
1659 test_sleep_SOURCES = \
1660 src/test/test-sleep.c
1662 test_sleep_LDADD = \
1665 test_replace_var_SOURCES = \
1666 src/test/test-replace-var.c
1668 test_replace_var_LDADD = \
1669 libsystemd-shared.la
1671 test_calendarspec_SOURCES = \
1672 src/test/test-calendarspec.c
1674 test_calendarspec_LDADD = \
1675 libsystemd-shared.la
1677 test_strip_tab_ansi_SOURCES = \
1678 src/test/test-strip-tab-ansi.c
1680 test_strip_tab_ansi_LDADD = \
1681 libsystemd-shared.la
1683 test_daemon_SOURCES = \
1684 src/test/test-daemon.c
1686 test_daemon_LDADD = \
1687 libsystemd-internal.la \
1688 libsystemd-shared.la
1690 test_cgroup_SOURCES = \
1691 src/test/test-cgroup.c
1693 test_cgroup_LDADD = \
1694 libsystemd-label.la \
1695 libsystemd-shared.la \
1696 libsystemd-internal.la
1698 test_cgroup_mask_SOURCES = \
1699 src/test/test-cgroup-mask.c
1701 test_cgroup_mask_CPPFLAGS = \
1703 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1705 test_cgroup_mask_CFLAGS = \
1709 test_cgroup_mask_LDADD = \
1710 libsystemd-core.la \
1713 test_cgroup_util_SOURCES = \
1714 src/test/test-cgroup-util.c
1716 test_cgroup_util_LDADD = \
1717 libsystemd-label.la \
1718 libsystemd-internal.la \
1719 libsystemd-shared.la
1721 test_env_replace_SOURCES = \
1722 src/test/test-env-replace.c
1724 test_env_replace_LDADD = \
1725 libsystemd-shared.la
1727 test_strbuf_SOURCES = \
1728 src/test/test-strbuf.c
1730 test_strbuf_LDADD = \
1731 libsystemd-shared.la
1733 test_strv_SOURCES = \
1734 src/test/test-strv.c
1737 libsystemd-units.la \
1738 libsystemd-internal.la \
1739 libsystemd-shared.la
1741 test_path_util_SOURCES = \
1742 src/test/test-path-util.c
1744 test_path_util_LDADD = \
1745 libsystemd-shared.la
1747 test_strxcpyx_SOURCES = \
1748 src/test/test-strxcpyx.c
1750 test_strxcpyx_LDADD = \
1751 libsystemd-shared.la
1753 test_install_SOURCES = \
1754 src/test/test-install.c
1756 test_install_LDADD = \
1757 libsystemd-units.la \
1758 libsystemd-label.la \
1759 libsystemd-shared.la \
1760 libsystemd-internal.la
1762 test_watchdog_SOURCES = \
1763 src/test/test-watchdog.c
1765 test_watchdog_LDADD = \
1766 libsystemd-shared.la
1768 test_sched_prio_SOURCES = \
1769 src/test/test-sched-prio.c
1771 test_sched_prio_CPPFLAGS = \
1773 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1775 test_sched_prio_CFLAGS = \
1779 test_sched_prio_LDADD = \
1780 libsystemd-core.la \
1783 test_conf_files_SOURCES = \
1784 src/test/test-conf-files.c
1786 test_conf_files_LDADD = \
1787 libsystemd-shared.la
1789 test_bus_policy_SOURCES = \
1790 src/bus-proxyd/test-bus-policy.c \
1791 src/bus-proxyd/bus-policy.c \
1792 src/bus-proxyd/bus-policy.h
1794 test_bus_policy_LDADD = \
1795 libsystemd-capability.la \
1796 libsystemd-internal.la \
1797 libsystemd-shared.la
1799 # ------------------------------------------------------------------------------
1800 ## .PHONY so it always rebuilds it
1801 .PHONY: coverage lcov-run lcov-report coverage-sync
1803 # run lcov from scratch, always
1808 coverage_dir = coverage
1809 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1812 # reset run coverage tests
1814 @rm -rf $(coverage_dir)
1815 lcov $(coverage_opts) --zerocounters
1818 # generate report based on current coverage data
1820 $(MKDIR_P) $(coverage_dir)
1821 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1822 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1823 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1824 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1826 # lcov doesn't work properly with vpath builds, make sure that bad
1827 # output is not uploaded by mistake.
1828 coverage-sync: coverage
1829 test "$(builddir)" = "$(srcdir)"
1830 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1833 lcov-run lcov-report:
1834 echo "Need to reconfigure with --enable-coverage"
1837 # ------------------------------------------------------------------------------
1838 systemd_analyze_SOURCES = \
1839 src/analyze/analyze.c \
1840 src/analyze/analyze-verify.c \
1841 src/analyze/analyze-verify.h
1843 systemd_verify_CFLAGS = \
1847 systemd_analyze_LDADD = \
1848 libsystemd-core.la \
1849 libsystemd-internal.la \
1850 libsystemd-shared.la \
1853 # ------------------------------------------------------------------------------
1854 systemd_initctl_SOURCES = \
1855 src/initctl/initctl.c
1857 systemd_initctl_LDADD = \
1858 libsystemd-internal.la \
1859 libsystemd-shared.la
1861 # ------------------------------------------------------------------------------
1862 systemd_update_utmp_SOURCES = \
1863 src/update-utmp/update-utmp.c
1865 systemd_update_utmp_CFLAGS = \
1869 systemd_update_utmp_LDADD = \
1870 libsystemd-internal.la \
1871 libsystemd-shared.la \
1874 # ------------------------------------------------------------------------------
1875 systemd_update_done_SOURCES = \
1876 src/update-done/update-done.c
1878 systemd_update_done_LDADD = \
1879 libsystemd-internal.la \
1880 libsystemd-label.la \
1881 libsystemd-shared.la
1883 # ------------------------------------------------------------------------------
1884 systemd_shutdownd_SOURCES = \
1885 src/shutdownd/shutdownd.c
1887 systemd_shutdownd_LDADD = \
1888 libsystemd-label.la \
1889 libsystemd-internal.la \
1890 libsystemd-shared.la
1893 src/systemd/sd-shutdown.h
1895 # ------------------------------------------------------------------------------
1896 systemd_shutdown_SOURCES = \
1899 src/core/shutdown.c \
1900 src/core/mount-setup.c \
1901 src/core/mount-setup.h \
1902 src/core/killall.h \
1905 systemd_shutdown_LDADD = \
1906 libsystemd-label.la \
1907 libudev-internal.la \
1908 libsystemd-shared.la
1910 # ------------------------------------------------------------------------------
1912 systemd_modules_load_SOURCES = \
1913 src/modules-load/modules-load.c
1915 systemd_modules_load_CFLAGS = \
1919 systemd_modules_load_LDADD = \
1920 libsystemd-shared.la \
1923 rootlibexec_PROGRAMS += \
1924 systemd-modules-load
1926 nodist_systemunit_DATA += \
1927 units/systemd-modules-load.service
1929 SYSINIT_TARGET_WANTS += \
1930 systemd-modules-load.service
1933 nodist_systemunit_DATA += \
1934 units/kmod-static-nodes.service
1936 SYSINIT_TARGET_WANTS += \
1937 kmod-static-nodes.service
1942 units/systemd-modules-load.service.in \
1943 units/kmod-static-nodes.service.in
1945 # ------------------------------------------------------------------------------
1947 systemd_tmpfiles_SOURCES = \
1948 src/tmpfiles/tmpfiles.c
1950 systemd_tmpfiles_LDADD = \
1951 libsystemd-units.la \
1952 libsystemd-label.la \
1953 libsystemd-capability.la \
1954 libsystemd-internal.la \
1955 libsystemd-shared.la
1957 rootbin_PROGRAMS += \
1960 dist_systemunit_DATA += \
1961 units/systemd-tmpfiles-clean.timer
1963 nodist_systemunit_DATA += \
1964 units/systemd-tmpfiles-setup-dev.service \
1965 units/systemd-tmpfiles-setup.service \
1966 units/systemd-tmpfiles-clean.service
1968 nodist_tmpfiles_DATA = \
1971 dist_tmpfiles_DATA = \
1972 tmpfiles.d/systemd.conf \
1973 tmpfiles.d/systemd-nologin.conf \
1974 tmpfiles.d/systemd-remote.conf \
1975 tmpfiles.d/tmp.conf \
1976 tmpfiles.d/x11.conf \
1980 dist_tmpfiles_DATA += \
1981 tmpfiles.d/legacy.conf
1984 SYSINIT_TARGET_WANTS += \
1985 systemd-tmpfiles-setup-dev.service \
1986 systemd-tmpfiles-setup.service
1988 dist_zshcompletion_DATA += \
1989 shell-completion/zsh/_systemd-tmpfiles
1991 TIMERS_TARGET_WANTS += \
1992 systemd-tmpfiles-clean.timer
1996 $(sysconfdir)/tmpfiles.d
2000 tmpfiles.d/etc.conf.m4 \
2001 units/systemd-tmpfiles-setup-dev.service.in \
2002 units/systemd-tmpfiles-setup.service.in \
2003 units/systemd-tmpfiles-clean.service.in
2008 # ------------------------------------------------------------------------------
2010 systemd_sysusers_SOURCES = \
2011 src/sysusers/sysusers.c
2013 systemd_sysusers_LDADD = \
2014 libsystemd-units.la \
2015 libsystemd-label.la \
2016 libsystemd-capability.la \
2017 libsystemd-internal.la \
2018 libsystemd-shared.la
2020 rootbin_PROGRAMS += \
2023 nodist_systemunit_DATA += \
2024 units/systemd-sysusers.service
2026 SYSINIT_TARGET_WANTS += \
2027 systemd-sysusers.service
2029 dist_sysusers_DATA = \
2030 sysusers.d/systemd.conf \
2031 sysusers.d/systemd-remote.conf
2033 nodist_sysusers_DATA = \
2034 sysusers.d/basic.conf
2037 units/systemd-sysusers.service.in \
2038 sysusers.d/basic.conf.in
2041 sysusers.d/basic.conf
2047 # ------------------------------------------------------------------------------
2048 dist_factory_etc_DATA = \
2049 factory/etc/nsswitch.conf
2052 dist_factory_pam_DATA = \
2053 factory/etc/pam.d/system-auth \
2054 factory/etc/pam.d/other
2057 # ------------------------------------------------------------------------------
2059 systemd_firstboot_SOURCES = \
2060 src/firstboot/firstboot.c
2062 systemd_firstboot_LDADD = \
2063 libsystemd-units.la \
2064 libsystemd-label.la \
2065 libsystemd-capability.la \
2066 libsystemd-internal.la \
2067 libsystemd-shared.la \
2070 rootbin_PROGRAMS += \
2073 nodist_systemunit_DATA += \
2074 units/systemd-firstboot.service
2077 units/systemd-firstboot.service.in
2079 SYSINIT_TARGET_WANTS += \
2080 systemd-firstboot.service
2083 # ------------------------------------------------------------------------------
2084 systemd_machine_id_setup_SOURCES = \
2085 src/machine-id-setup/machine-id-setup-main.c \
2086 src/core/machine-id-setup.c \
2087 src/core/machine-id-setup.h
2089 systemd_machine_id_setup_LDADD = \
2090 libsystemd-label.la \
2091 libsystemd-internal.la \
2092 libsystemd-shared.la
2094 # ------------------------------------------------------------------------------
2095 systemd_sysctl_SOURCES = \
2098 systemd_sysctl_LDADD = \
2099 libsystemd-shared.la
2101 # ------------------------------------------------------------------------------
2102 systemd_sleep_SOURCES = \
2105 systemd_sleep_LDADD = \
2106 libsystemd-shared.la
2108 # ------------------------------------------------------------------------------
2109 systemd_fsck_SOURCES = \
2112 systemd_fsck_LDADD = \
2113 libsystemd-internal.la \
2114 libudev-internal.la \
2115 libsystemd-shared.la
2117 # ------------------------------------------------------------------------------
2118 systemd_ac_power_SOURCES = \
2119 src/ac-power/ac-power.c
2121 systemd_ac_power_LDADD = \
2122 libudev-internal.la \
2123 libsystemd-shared.la
2125 # ------------------------------------------------------------------------------
2126 systemd_detect_virt_SOURCES = \
2127 src/detect-virt/detect-virt.c
2129 systemd_detect_virt_LDADD = \
2130 libsystemd-shared.la
2132 INSTALL_EXEC_HOOKS += \
2133 systemd-detect-virt-install-hook
2135 # ------------------------------------------------------------------------------
2136 systemd_delta_SOURCES = \
2139 systemd_delta_LDADD = \
2140 libsystemd-shared.la
2142 # ------------------------------------------------------------------------------
2143 systemd_getty_generator_SOURCES = \
2144 src/getty-generator/getty-generator.c
2146 systemd_getty_generator_LDADD = \
2147 libsystemd-label.la \
2148 libsystemd-shared.la
2150 # ------------------------------------------------------------------------------
2151 systemd_debug_generator_SOURCES = \
2152 src/debug-generator/debug-generator.c
2154 systemd_debug_generator_LDADD = \
2155 libsystemd-label.la \
2156 libsystemd-shared.la
2158 # ------------------------------------------------------------------------------
2159 systemd_fstab_generator_SOURCES = \
2160 src/fstab-generator/fstab-generator.c \
2161 src/core/mount-setup.c
2163 systemd_fstab_generator_LDADD = \
2164 libsystemd-label.la \
2165 libsystemd-shared.la
2167 # ------------------------------------------------------------------------------
2168 systemd_system_update_generator_SOURCES = \
2169 src/system-update-generator/system-update-generator.c
2171 systemd_system_update_generator_LDADD = \
2172 libsystemd-label.la \
2173 libsystemd-shared.la
2175 # ------------------------------------------------------------------------------
2177 systemgenerator_PROGRAMS += \
2178 systemd-hibernate-resume-generator
2180 rootlibexec_PROGRAMS += \
2181 systemd-hibernate-resume
2183 systemd_hibernate_resume_SOURCES = \
2184 src/hibernate-resume/hibernate-resume.c
2186 systemd_hibernate_resume_LDADD = \
2187 libsystemd-internal.la \
2188 libsystemd-shared.la
2190 systemd_hibernate_resume_generator_SOURCES = \
2191 src/hibernate-resume/hibernate-resume-generator.c
2193 systemd_hibernate_resume_generator_LDADD = \
2194 libsystemd-label.la \
2195 libsystemd-shared.la
2198 units/systemd-hibernate.service.in \
2199 units/systemd-hibernate-resume@.service.in \
2200 units/systemd-hybrid-sleep.service.in
2202 dist_systemunit_DATA += \
2203 units/hibernate.target \
2204 units/hybrid-sleep.target
2206 nodist_systemunit_DATA += \
2207 units/systemd-hibernate.service \
2208 units/systemd-hibernate-resume@.service \
2209 units/systemd-hybrid-sleep.service
2212 # ------------------------------------------------------------------------------
2214 systemgenerator_PROGRAMS += \
2215 systemd-efi-boot-generator
2217 systemd_efi_boot_generator_SOURCES = \
2218 src/efi-boot-generator/efi-boot-generator.c
2220 systemd_efi_boot_generator_LDADD = \
2221 libsystemd-label.la \
2222 libsystemd-shared.la
2224 # ------------------------------------------------------------------------------
2227 src/boot/boot-loader.h \
2228 src/boot/bootctl.c \
2229 src/boot/boot-loader.c \
2233 libsystemd-shared.la \
2234 libsystemd-internal.la
2239 dist_bashcompletion_DATA += \
2240 shell-completion/bash/bootctl
2242 dist_zshcompletion_DATA += \
2243 shell-completion/zsh/_bootctl
2247 # ------------------------------------------------------------------------------
2249 systemgenerator_PROGRAMS += \
2250 systemd-gpt-auto-generator
2252 systemd_gpt_auto_generator_SOURCES = \
2253 src/gpt-auto-generator/gpt-auto-generator.c \
2254 src/shared/blkid-util.h
2256 systemd_gpt_auto_generator_LDADD = \
2257 libsystemd-label.la \
2258 libsystemd-internal.la \
2259 libudev-internal.la \
2260 libsystemd-shared.la \
2263 systemd_gpt_auto_generator_CFLAGS = \
2268 # ------------------------------------------------------------------------------
2270 systemgenerator_PROGRAMS += \
2271 systemd-dbus1-generator
2273 systemd_dbus1_generator_SOURCES = \
2274 src/dbus1-generator/dbus1-generator.c
2276 systemd_dbus1_generator_LDADD = \
2277 libsystemd-label.la \
2278 libsystemd-shared.la \
2279 libsystemd-internal.la
2281 dbus1-generator-install-hook:
2282 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2283 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2284 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2286 dbus1-generator-uninstall-hook:
2287 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2289 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2290 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2293 # ------------------------------------------------------------------------------
2294 systemd_sysv_generator_SOURCES = \
2295 src/sysv-generator/sysv-generator.c
2297 systemd_sysv_generator_LDADD = \
2298 libsystemd-core.la \
2299 libsystemd-label.la \
2300 libsystemd-shared.la
2302 # ------------------------------------------------------------------------------
2303 systemd_rc_local_generator_SOURCES = \
2304 src/rc-local-generator/rc-local-generator.c
2306 systemd_rc_local_generator_LDADD = \
2307 libsystemd-label.la \
2308 libsystemd-shared.la
2310 # ------------------------------------------------------------------------------
2311 systemd_remount_fs_SOURCES = \
2312 src/remount-fs/remount-fs.c \
2313 src/core/mount-setup.c \
2314 src/core/mount-setup.h
2316 systemd_remount_fs_LDADD = \
2317 libsystemd-label.la \
2318 libsystemd-shared.la
2320 # ------------------------------------------------------------------------------
2321 systemd_cgroups_agent_SOURCES = \
2322 src/cgroups-agent/cgroups-agent.c
2324 systemd_cgroups_agent_LDADD = \
2325 libsystemd-internal.la \
2326 libsystemd-shared.la
2328 # ------------------------------------------------------------------------------
2329 systemd_escape_SOURCES = \
2332 systemd_escape_LDADD = \
2333 libsystemd-shared.la
2335 # -----------------------------------------------------------------------------
2336 systemctl_SOURCES = \
2337 src/systemctl/systemctl.c
2340 libsystemd-units.la \
2341 libsystemd-label.la \
2342 libsystemd-internal.la \
2343 libsystemd-logs.la \
2344 libsystemd-journal-internal.la \
2345 libsystemd-shared.la
2347 # ------------------------------------------------------------------------------
2348 systemd_notify_SOURCES = \
2351 systemd_notify_LDADD = \
2352 libsystemd-internal.la \
2353 libsystemd-shared.la
2355 # ------------------------------------------------------------------------------
2356 systemd_path_SOURCES = \
2359 systemd_path_LDADD = \
2360 libsystemd-internal.la \
2361 libsystemd-shared.la
2363 # ------------------------------------------------------------------------------
2364 systemd_ask_password_SOURCES = \
2365 src/ask-password/ask-password.c
2367 systemd_ask_password_LDADD = \
2368 libsystemd-label.la \
2369 libsystemd-shared.la
2371 # ------------------------------------------------------------------------------
2372 systemd_reply_password_SOURCES = \
2373 src/reply-password/reply-password.c
2375 systemd_reply_password_LDADD = \
2376 libsystemd-shared.la
2378 # ------------------------------------------------------------------------------
2379 systemd_cgls_SOURCES = \
2382 systemd_cgls_LDADD = \
2383 libsystemd-internal.la \
2384 libsystemd-shared.la
2386 # ------------------------------------------------------------------------------
2387 systemd_cgtop_SOURCES = \
2390 systemd_cgtop_LDADD = \
2391 libsystemd-shared.la
2393 # ------------------------------------------------------------------------------
2394 systemd_nspawn_SOURCES = \
2395 src/nspawn/nspawn.c \
2396 src/core/mount-setup.c \
2397 src/core/mount-setup.h \
2398 src/core/loopback-setup.c \
2399 src/core/loopback-setup.h
2401 systemd_nspawn_CFLAGS = \
2406 systemd_nspawn_LDADD = \
2407 libsystemd-label.la \
2408 libsystemd-capability.la \
2409 libsystemd-internal.la \
2410 libudev-internal.la \
2411 libsystemd-shared.la \
2415 systemd_nspawn_LDADD += \
2416 libsystemd-seccomp.la \
2420 # ------------------------------------------------------------------------------
2421 systemd_run_SOURCES = \
2424 systemd_run_LDADD = \
2425 libsystemd-label.la \
2426 libsystemd-capability.la \
2427 libsystemd-internal.la \
2428 libsystemd-shared.la
2430 # ------------------------------------------------------------------------------
2432 rootlibexec_PROGRAMS += \
2435 systemd_bus_proxyd_SOURCES = \
2436 src/bus-proxyd/bus-proxyd.c \
2437 src/bus-proxyd/bus-policy.c \
2438 src/bus-proxyd/bus-policy.h
2440 systemd_bus_proxyd_LDADD = \
2441 libsystemd-capability.la \
2442 libsystemd-internal.la \
2443 libsystemd-shared.la
2445 bus-proxyd-install-hook:
2446 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
2447 $(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2448 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
2450 bus-proxyd-uninstall-hook:
2451 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2453 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
2454 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
2456 nodist_systemunit_DATA += \
2457 units/systemd-bus-proxyd@.service
2459 dist_systemunit_DATA += \
2460 units/systemd-bus-proxyd.socket
2462 dist_userunit_DATA += \
2463 units/user/systemd-bus-proxyd.socket \
2464 units/user/systemd-bus-proxyd@.service
2468 units/systemd-bus-proxyd@.service.in
2470 # ------------------------------------------------------------------------------
2471 systemd_tty_ask_password_agent_SOURCES = \
2472 src/tty-ask-password-agent/tty-ask-password-agent.c
2474 systemd_tty_ask_password_agent_LDADD = \
2475 libsystemd-label.la \
2476 libsystemd-shared.la
2478 # ------------------------------------------------------------------------------
2479 libsystemd_internal_la_SOURCES = \
2480 src/systemd/sd-bus.h \
2481 src/systemd/sd-bus-protocol.h \
2482 src/systemd/sd-bus-vtable.h \
2483 src/systemd/sd-utf8.h \
2484 src/systemd/sd-event.h \
2485 src/systemd/sd-rtnl.h \
2486 src/systemd/sd-resolve.h \
2487 src/systemd/sd-login.h \
2488 src/systemd/sd-id128.h \
2489 src/systemd/sd-daemon.h \
2490 src/systemd/sd-path.h \
2491 src/systemd/sd-network.h \
2492 src/libsystemd/sd-bus/sd-bus.c \
2493 src/libsystemd/sd-bus/bus-control.c \
2494 src/libsystemd/sd-bus/bus-control.h \
2495 src/libsystemd/sd-bus/bus-error.c \
2496 src/libsystemd/sd-bus/bus-error.h \
2497 src/libsystemd/sd-bus/bus-internal.c \
2498 src/libsystemd/sd-bus/bus-internal.h \
2499 src/libsystemd/sd-bus/bus-socket.c \
2500 src/libsystemd/sd-bus/bus-socket.h \
2501 src/libsystemd/sd-bus/bus-kernel.c \
2502 src/libsystemd/sd-bus/bus-kernel.h \
2503 src/libsystemd/sd-bus/bus-container.c \
2504 src/libsystemd/sd-bus/bus-container.h \
2505 src/libsystemd/sd-bus/bus-message.c \
2506 src/libsystemd/sd-bus/bus-message.h \
2507 src/libsystemd/sd-bus/bus-creds.c \
2508 src/libsystemd/sd-bus/bus-creds.h \
2509 src/libsystemd/sd-bus/bus-signature.c \
2510 src/libsystemd/sd-bus/bus-signature.h \
2511 src/libsystemd/sd-bus/bus-type.c \
2512 src/libsystemd/sd-bus/bus-type.h \
2513 src/libsystemd/sd-bus/bus-match.c \
2514 src/libsystemd/sd-bus/bus-match.h \
2515 src/libsystemd/sd-bus/bus-bloom.c \
2516 src/libsystemd/sd-bus/bus-bloom.h \
2517 src/libsystemd/sd-bus/bus-introspect.c \
2518 src/libsystemd/sd-bus/bus-introspect.h \
2519 src/libsystemd/sd-bus/bus-objects.c \
2520 src/libsystemd/sd-bus/bus-objects.h \
2521 src/libsystemd/sd-bus/bus-gvariant.c \
2522 src/libsystemd/sd-bus/bus-gvariant.h \
2523 src/libsystemd/sd-bus/bus-convenience.c \
2524 src/libsystemd/sd-bus/bus-track.c \
2525 src/libsystemd/sd-bus/bus-track.h \
2526 src/libsystemd/sd-bus/bus-util.c \
2527 src/libsystemd/sd-bus/bus-util.h \
2528 src/libsystemd/sd-bus/bus-slot.c \
2529 src/libsystemd/sd-bus/bus-slot.h \
2530 src/libsystemd/sd-bus/bus-protocol.h \
2531 src/libsystemd/sd-bus/kdbus.h \
2532 src/libsystemd/sd-utf8/sd-utf8.c \
2533 src/libsystemd/sd-event/sd-event.c \
2534 src/libsystemd/sd-event/event-util.h \
2535 src/libsystemd/sd-rtnl/sd-rtnl.c \
2536 src/libsystemd/sd-rtnl/rtnl-internal.h \
2537 src/libsystemd/sd-rtnl/rtnl-message.c \
2538 src/libsystemd/sd-rtnl/rtnl-types.h \
2539 src/libsystemd/sd-rtnl/rtnl-types.c \
2540 src/libsystemd/sd-rtnl/rtnl-util.h \
2541 src/libsystemd/sd-rtnl/rtnl-util.c \
2542 src/libsystemd/sd-rtnl/local-addresses.h \
2543 src/libsystemd/sd-rtnl/local-addresses.c \
2544 src/libsystemd/sd-id128/sd-id128.c \
2545 src/libsystemd/sd-daemon/sd-daemon.c \
2546 src/libsystemd/sd-login/sd-login.c \
2547 src/libsystemd/sd-path/sd-path.c \
2548 src/libsystemd/sd-network/sd-network.c \
2549 src/libsystemd/sd-network/network-util.h \
2550 src/libsystemd/sd-network/network-util.c
2552 nodist_libsystemd_internal_la_SOURCES = \
2553 src/libsystemd/libsystemd.sym \
2554 src/libsystemd/sd-bus/bus-error-mapping.c
2556 libsystemd_internal_la_CFLAGS = \
2560 libsystemd_internal_la_LIBADD = \
2563 libsystemd_resolve_la_SOURCES = \
2564 src/libsystemd/sd-resolve/sd-resolve.c \
2565 src/libsystemd/sd-resolve/resolve-util.h
2567 libsystemd_resolve_la_CFLAGS = \
2571 libsystemd_resolve_la_LIBADD = \
2574 noinst_LTLIBRARIES += \
2575 libsystemd-internal.la \
2576 libsystemd-resolve.la
2578 libsystemd_dump_la_SOURCES = \
2579 src/libsystemd/sd-bus/bus-dump.c \
2580 src/libsystemd/sd-bus/bus-dump.h
2582 libsystemd_dump_la_CFLAGS = \
2586 noinst_LTLIBRARIES += \
2590 src/libsystemd/libsystemd.sym.m4 \
2591 src/libsystemd/libsystemd.pc.in \
2592 src/libsystemd/sd-bus/bus-error-mapping.gperf \
2593 src/libsystemd/sd-bus/DIFFERENCES \
2594 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2597 src/libsystemd/libsystemd.sym \
2598 src/libsystemd/sd-bus/bus-error-mapping.c
2601 src/libsystemd/libsystemd.sym
2603 libsystemd_la_SOURCES = \
2604 $(libsystemd_internal_la_SOURCES) \
2605 $(libsystemd_resolve_la_SOURCES) \
2606 $(libsystemd_journal_internal_la_SOURCES)
2608 nodist_libsystemd_la_SOURCES = \
2609 $(nodist_libsystemd_internal_la_SOURCES)
2611 libsystemd_la_CFLAGS = \
2612 $(libsystemd_internal_la_CFLAGS) \
2613 $(libsystemd_resolve_la_CFLAGS) \
2614 $(libsystemd_journal_internal_la_CFLAGS)
2616 libsystemd_la_LDFLAGS = \
2618 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2619 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2621 libsystemd_la_LIBADD = \
2622 libsystemd-shared.la \
2623 $(libsystemd_internal_la_LIBADD) \
2624 $(libsystemd_journal_internal_la_LIBADD) \
2625 $(libsystemd_resolve_la_LIBADD)
2627 libsystemd-install-hook:
2628 libname=libsystemd.so && $(move-to-rootlibdir)
2630 libsystemd-uninstall-hook:
2631 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2633 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2634 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2636 pkgconfiglib_DATA += \
2637 src/libsystemd/libsystemd.pc
2639 pkginclude_HEADERS += \
2640 src/systemd/sd-login.h \
2641 src/systemd/sd-id128.h \
2642 src/systemd/sd-daemon.h
2645 pkginclude_HEADERS += \
2646 src/systemd/sd-bus.h \
2647 src/systemd/sd-bus-protocol.h \
2648 src/systemd/sd-bus-vtable.h \
2649 src/systemd/sd-utf8.h \
2650 src/systemd/sd-event.h \
2651 src/systemd/sd-rtnl.h \
2652 src/systemd/sd-resolve.h \
2653 src/systemd/sd-path.h
2656 lib_LTLIBRARIES += \
2661 test-bus-signature \
2667 test-bus-kernel-bloom \
2668 test-bus-kernel-benchmark \
2669 test-bus-zero-copy \
2670 test-bus-introspect \
2682 test_bus_marshal_SOURCES = \
2683 src/libsystemd/sd-bus/test-bus-marshal.c
2685 test_bus_marshal_LDADD = \
2686 libsystemd-internal.la \
2687 libsystemd-shared.la \
2688 libsystemd-dump.la \
2689 libsystemd-capability.la \
2694 test_bus_marshal_CFLAGS = \
2700 test_bus_signature_SOURCES = \
2701 src/libsystemd/sd-bus/test-bus-signature.c
2703 test_bus_signature_LDADD = \
2704 libsystemd-shared.la \
2705 libsystemd-internal.la
2707 test_bus_chat_SOURCES = \
2708 src/libsystemd/sd-bus/test-bus-chat.c
2710 test_bus_chat_CFLAGS = \
2714 test_bus_chat_LDADD = \
2715 libsystemd-internal.la \
2716 libsystemd-shared.la
2718 test_bus_cleanup_SOURCES = \
2719 src/libsystemd/sd-bus/test-bus-cleanup.c
2721 test_bus_cleanup_CFLAGS = \
2725 test_bus_cleanup_LDADD = \
2726 libsystemd-internal.la \
2727 libsystemd-shared.la
2729 test_bus_server_SOURCES = \
2730 src/libsystemd/sd-bus/test-bus-server.c
2732 test_bus_server_CFLAGS = \
2736 test_bus_server_LDADD = \
2737 libsystemd-internal.la \
2738 libsystemd-shared.la
2740 test_bus_objects_SOURCES = \
2741 src/libsystemd/sd-bus/test-bus-objects.c
2743 test_bus_objects_CFLAGS = \
2748 test_bus_objects_LDADD = \
2749 libsystemd-internal.la \
2750 libsystemd-shared.la \
2751 libsystemd-dump.la \
2752 libsystemd-capability.la \
2755 test_bus_error_SOURCES = \
2756 src/libsystemd/sd-bus/test-bus-error.c
2758 test_bus_error_LDADD = \
2759 libsystemd-internal.la \
2760 libsystemd-shared.la
2762 test_bus_gvariant_SOURCES = \
2763 src/libsystemd/sd-bus/test-bus-gvariant.c
2765 test_bus_gvariant_LDADD = \
2766 libsystemd-internal.la \
2767 libsystemd-shared.la \
2768 libsystemd-dump.la \
2769 libsystemd-capability.la \
2773 test_bus_gvariant_CFLAGS = \
2778 test_bus_creds_SOURCES = \
2779 src/libsystemd/sd-bus/test-bus-creds.c
2781 test_bus_creds_LDADD = \
2782 libsystemd-internal.la \
2783 libsystemd-shared.la \
2784 libsystemd-dump.la \
2785 libsystemd-capability.la
2787 test_bus_match_SOURCES = \
2788 src/libsystemd/sd-bus/test-bus-match.c
2790 test_bus_match_LDADD = \
2791 libsystemd-internal.la \
2792 libsystemd-shared.la
2794 test_bus_kernel_SOURCES = \
2795 src/libsystemd/sd-bus/test-bus-kernel.c
2797 test_bus_kernel_LDADD = \
2798 libsystemd-internal.la \
2799 libsystemd-shared.la \
2800 libsystemd-dump.la \
2801 libsystemd-capability.la \
2804 test_bus_kernel_CFLAGS = \
2808 test_bus_kernel_bloom_SOURCES = \
2809 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
2811 test_bus_kernel_bloom_LDADD = \
2812 libsystemd-internal.la \
2813 libsystemd-shared.la
2815 test_bus_kernel_benchmark_SOURCES = \
2816 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
2818 test_bus_kernel_benchmark_LDADD = \
2819 libsystemd-internal.la \
2820 libsystemd-shared.la
2822 test_bus_zero_copy_SOURCES = \
2823 src/libsystemd/sd-bus/test-bus-zero-copy.c
2825 test_bus_zero_copy_LDADD = \
2826 libsystemd-internal.la \
2827 libsystemd-shared.la \
2828 libsystemd-dump.la \
2829 libsystemd-capability.la \
2832 test_bus_zero_copy_CFLAGS = \
2836 test_bus_introspect_SOURCES = \
2837 src/libsystemd/sd-bus/test-bus-introspect.c
2839 test_bus_introspect_LDADD = \
2840 libsystemd-internal.la \
2841 libsystemd-shared.la
2843 test_event_SOURCES = \
2844 src/libsystemd/sd-event/test-event.c
2846 test_event_LDADD = \
2847 libsystemd-internal.la \
2848 libsystemd-shared.la
2850 test_rtnl_SOURCES = \
2851 src/libsystemd/sd-rtnl/test-rtnl.c
2854 libsystemd-internal.la \
2855 libsystemd-shared.la
2857 test_resolve_SOURCES = \
2858 src/libsystemd/sd-resolve/test-resolve.c
2860 test_resolve_LDADD = \
2861 libsystemd-resolve.la \
2862 libsystemd-internal.la \
2863 libsystemd-shared.la
2865 test_resolve_CFLAGS = \
2870 src/libsystemd/sd-bus/busctl.c
2873 libsystemd-internal.la \
2874 libsystemd-shared.la \
2875 libsystemd-dump.la \
2876 libsystemd-capability.la \
2883 # ------------------------------------------------------------------------------
2884 noinst_LTLIBRARIES += \
2885 libsystemd-network.la
2887 libsystemd_network_la_CFLAGS = \
2891 libsystemd_network_la_SOURCES = \
2892 src/systemd/sd-dhcp-client.h \
2893 src/systemd/sd-dhcp-server.h \
2894 src/systemd/sd-dhcp-lease.h \
2895 src/systemd/sd-ipv4ll.h \
2896 src/systemd/sd-icmp6-nd.h \
2897 src/systemd/sd-dhcp6-client.h \
2898 src/systemd/sd-dhcp6-lease.h \
2899 src/libsystemd-network/sd-dhcp-client.c \
2900 src/libsystemd-network/sd-dhcp-server.c \
2901 src/libsystemd-network/dhcp-network.c \
2902 src/libsystemd-network/dhcp-option.c \
2903 src/libsystemd-network/dhcp-packet.c \
2904 src/libsystemd-network/dhcp-internal.h \
2905 src/libsystemd-network/dhcp-server-internal.h \
2906 src/libsystemd-network/dhcp-protocol.h \
2907 src/libsystemd-network/dhcp-lease-internal.h \
2908 src/libsystemd-network/sd-dhcp-lease.c \
2909 src/libsystemd-network/sd-ipv4ll.c \
2910 src/libsystemd-network/ipv4ll-network.c \
2911 src/libsystemd-network/ipv4ll-packet.c \
2912 src/libsystemd-network/ipv4ll-internal.h \
2913 src/libsystemd-network/network-internal.c \
2914 src/libsystemd-network/network-internal.h \
2915 src/libsystemd-network/sd-icmp6-nd.c \
2916 src/libsystemd-network/sd-dhcp6-client.c \
2917 src/libsystemd-network/dhcp6-internal.h \
2918 src/libsystemd-network/dhcp6-protocol.h \
2919 src/libsystemd-network/dhcp6-network.c \
2920 src/libsystemd-network/dhcp6-option.c \
2921 src/libsystemd-network/dhcp6-lease-internal.h \
2922 src/libsystemd-network/sd-dhcp6-lease.c
2924 libsystemd_network_la_LIBADD = \
2925 libudev-internal.la \
2926 libsystemd-label.la \
2927 libsystemd-internal.la \
2928 libsystemd-shared.la \
2931 test_dhcp_option_SOURCES = \
2932 src/libsystemd-network/dhcp-protocol.h \
2933 src/libsystemd-network/dhcp-internal.h \
2934 src/libsystemd-network/test-dhcp-option.c
2936 test_dhcp_option_LDADD = \
2937 libsystemd-network.la \
2938 libsystemd-internal.la \
2939 libsystemd-shared.la
2941 test_dhcp_client_SOURCES = \
2942 src/systemd/sd-dhcp-client.h \
2943 src/libsystemd-network/dhcp-protocol.h \
2944 src/libsystemd-network/dhcp-internal.h \
2945 src/libsystemd-network/test-dhcp-client.c
2947 test_dhcp_client_LDADD = \
2948 libsystemd-network.la \
2949 libsystemd-label.la \
2950 libsystemd-internal.la \
2951 libsystemd-shared.la
2953 test_dhcp_server_SOURCES = \
2954 src/libsystemd-network/test-dhcp-server.c
2956 test_dhcp_server_LDADD = \
2957 libsystemd-network.la \
2958 libsystemd-internal.la \
2959 libsystemd-shared.la
2961 test_ipv4ll_SOURCES = \
2962 src/systemd/sd-ipv4ll.h \
2963 src/libsystemd-network/ipv4ll-internal.h \
2964 src/libsystemd-network/test-ipv4ll.c
2966 test_ipv4ll_LDADD = \
2967 libsystemd-network.la \
2968 libsystemd-label.la \
2969 libsystemd-internal.la \
2970 libsystemd-shared.la
2972 test_icmp6_rs_SOURCES = \
2973 src/systemd/sd-dhcp6-client.h \
2974 src/systemd/sd-icmp6-nd.h \
2975 src/libsystemd-network/dhcp6-internal.h \
2976 src/libsystemd-network/test-icmp6-rs.c
2978 test_icmp6_rs_LDADD = \
2979 libsystemd-network.la \
2980 libsystemd-internal.la \
2981 libsystemd-shared.la
2983 test_dhcp6_client_SOURCES = \
2984 src/systemd/sd-dhcp6-client.h \
2985 src/libsystemd-network/dhcp6-internal.h \
2986 src/libsystemd-network/test-dhcp6-client.c
2988 test_dhcp6_client_LDADD = \
2989 libsystemd-network.la \
2990 libsystemd-internal.la \
2991 libsystemd-shared.la
3001 # ------------------------------------------------------------------------------
3003 noinst_LTLIBRARIES += \
3004 libsystemd-terminal.la
3006 noinst_PROGRAMS += \
3011 unifontdatadir=$(datadir)/unifont
3013 dist_unifontdata_DATA = \
3014 src/libsystemd-terminal/unifont-glyph-array.bin
3022 libsystemd_terminal_la_CFLAGS = \
3026 libsystemd_terminal_la_SOURCES = \
3027 src/libsystemd-terminal/grdev.h \
3028 src/libsystemd-terminal/grdev-internal.h \
3029 src/libsystemd-terminal/grdev.c \
3030 src/libsystemd-terminal/grdev-drm.c \
3031 src/libsystemd-terminal/idev.h \
3032 src/libsystemd-terminal/idev-internal.h \
3033 src/libsystemd-terminal/idev.c \
3034 src/libsystemd-terminal/idev-evdev.c \
3035 src/libsystemd-terminal/idev-keyboard.c \
3036 src/libsystemd-terminal/sysview.h \
3037 src/libsystemd-terminal/sysview-internal.h \
3038 src/libsystemd-terminal/sysview.c \
3039 src/libsystemd-terminal/term-internal.h \
3040 src/libsystemd-terminal/term-charset.c \
3041 src/libsystemd-terminal/term-page.c \
3042 src/libsystemd-terminal/term-parser.c \
3043 src/libsystemd-terminal/term-screen.c \
3044 src/libsystemd-terminal/term-wcwidth.c \
3045 src/libsystemd-terminal/unifont-internal.h \
3046 src/libsystemd-terminal/unifont.c
3048 libsystemd_terminal_la_LIBADD = \
3049 libudev-internal.la \
3050 libsystemd-internal.la \
3051 libsystemd-shared.la \
3054 systemd_evcat_CFLAGS = \
3058 systemd_evcat_SOURCES = \
3059 src/libsystemd-terminal/evcat.c
3061 systemd_evcat_LDADD = \
3062 libsystemd-terminal.la \
3063 libsystemd-internal.la \
3064 libsystemd-shared.la \
3067 systemd_modeset_CFLAGS = \
3071 systemd_modeset_SOURCES = \
3072 src/libsystemd-terminal/modeset.c
3074 systemd_modeset_LDADD = \
3075 libsystemd-terminal.la \
3076 libsystemd-internal.la \
3077 libsystemd-shared.la \
3080 systemd_subterm_SOURCES = \
3081 src/libsystemd-terminal/subterm.c
3083 systemd_subterm_LDADD = \
3084 libsystemd-terminal.la \
3085 libsystemd-internal.la \
3086 libsystemd-shared.la
3088 test_term_page_SOURCES = \
3089 src/libsystemd-terminal/test-term-page.c
3091 test_term_page_LDADD = \
3092 libsystemd-terminal.la \
3093 libsystemd-internal.la \
3094 libsystemd-shared.la
3096 test_term_parser_SOURCES = \
3097 src/libsystemd-terminal/test-term-parser.c
3099 test_term_parser_LDADD = \
3100 libsystemd-terminal.la \
3101 libsystemd-internal.la \
3102 libsystemd-shared.la
3104 test_unifont_SOURCES = \
3105 src/libsystemd-terminal/test-unifont.c
3107 test_unifont_LDADD = \
3108 libsystemd-terminal.la \
3109 libsystemd-internal.la \
3110 libsystemd-shared.la
3112 .PHONY: update-unifont
3113 update-unifont: tools/compile-unifont.py
3114 $(AM_V_GEN)$(PYTHON) $< \
3115 <$(top_srcdir)/src/libsystemd-terminal/unifont.hex \
3116 >$(top_srcdir)/src/libsystemd-terminal/unifont-glyph-array.bin
3117 @echo "unifont-glyph-array.bin has been regenerated"
3119 # ------------------------------------------------------------------------------
3129 include_HEADERS += \
3130 src/libudev/libudev.h
3132 lib_LTLIBRARIES += \
3135 libudev_la_SOURCES =\
3136 src/libudev/libudev.sym \
3137 src/libudev/libudev-private.h \
3138 src/libudev/libudev.c \
3139 src/libudev/libudev-list.c \
3140 src/libudev/libudev-util.c \
3141 src/libudev/libudev-device.c \
3142 src/libudev/libudev-enumerate.c \
3143 src/libudev/libudev-monitor.c \
3144 src/libudev/libudev-queue.c \
3145 src/libudev/libudev-hwdb-def.h \
3146 src/libudev/libudev-hwdb.c
3148 libudev_la_CFLAGS = \
3152 libudev_la_LDFLAGS = \
3154 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3155 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3157 libudev_la_LIBADD = \
3158 libsystemd-internal.la \
3159 libsystemd-shared.la
3161 pkgconfiglib_DATA += \
3162 src/libudev/libudev.pc
3165 src/libudev/libudev.pc.in
3168 src/libudev/libudev.pc \
3173 $(AM_V_at)$(MKDIR_P) $(dir $@)
3174 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
3177 $(AM_V_at)$(MKDIR_P) $(dir $@)
3178 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
3180 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3181 libudev-install-hook:
3182 libname=libudev.so && $(move-to-rootlibdir)
3184 libudev-uninstall-hook:
3185 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3187 INSTALL_EXEC_HOOKS += libudev-install-hook
3188 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3190 # ------------------------------------------------------------------------------
3191 noinst_LTLIBRARIES += \
3194 libudev_internal_la_SOURCES =\
3195 $(libudev_la_SOURCES) \
3196 src/libudev/libudev-device-private.c
3198 libudev_internal_la_CFLAGS = \
3200 -fvisibility=default
3202 # ------------------------------------------------------------------------------
3204 $(sysconfdir)/udev/rules.d \
3205 $(sysconfdir)/udev/hwdb.d
3207 dist_network_DATA = \
3208 network/99-default.link \
3209 network/80-container-host0.network \
3210 network/80-container-ve.network
3212 dist_udevrules_DATA += \
3213 rules/42-usb-hid-pm.rules \
3214 rules/50-udev-default.rules \
3215 rules/60-drm.rules \
3216 rules/60-keyboard.rules \
3217 rules/60-persistent-storage-tape.rules \
3218 rules/60-persistent-serial.rules \
3219 rules/60-persistent-input.rules \
3220 rules/60-persistent-alsa.rules \
3221 rules/60-persistent-storage.rules \
3222 rules/64-btrfs.rules \
3223 rules/75-net-description.rules \
3224 rules/75-tty-description.rules \
3225 rules/78-sound-card.rules \
3226 rules/80-net-setup-link.rules \
3227 rules/95-udev-late.rules
3229 nodist_udevrules_DATA += \
3230 rules/99-systemd.rules
3232 dist_udevhwdb_DATA = \
3233 hwdb/20-pci-vendor-model.hwdb \
3234 hwdb/20-pci-classes.hwdb \
3235 hwdb/20-usb-vendor-model.hwdb \
3236 hwdb/20-usb-classes.hwdb \
3237 hwdb/20-sdio-vendor-model.hwdb \
3238 hwdb/20-sdio-classes.hwdb \
3239 hwdb/20-bluetooth-vendor-product.hwdb \
3240 hwdb/20-acpi-vendor.hwdb \
3242 hwdb/20-net-ifname.hwdb \
3243 hwdb/60-keyboard.hwdb
3245 udevconfdir = $(sysconfdir)/udev
3246 dist_udevconf_DATA = \
3249 sharepkgconfigdir = $(datadir)/pkgconfig
3250 sharepkgconfig_DATA = \
3254 rules/99-systemd.rules.in \
3258 rules/99-systemd.rules \
3262 units/systemd-udevd.service.in \
3263 units/systemd-udev-trigger.service.in \
3264 units/systemd-udev-settle.service.in \
3265 units/systemd-udev-hwdb-update.service.in
3268 units/systemd-udevd.service \
3269 units/systemd-udev-trigger.service \
3270 units/systemd-udev-settle.service \
3271 units/systemd-udev-hwdb-update.service
3273 SOCKETS_TARGET_WANTS += \
3274 systemd-udevd-control.socket \
3275 systemd-udevd-kernel.socket
3277 SYSINIT_TARGET_WANTS += \
3278 systemd-udevd.service \
3279 systemd-udev-trigger.service \
3280 systemd-udev-hwdb-update.service
3282 rootbin_PROGRAMS += \
3285 rootlibexec_PROGRAMS += \
3288 noinst_LTLIBRARIES += \
3291 src/udev/keyboard-keys.txt:
3292 $(AM_V_at)$(MKDIR_P) $(dir $@)
3293 $(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/' > $@
3295 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
3296 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3298 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3299 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3301 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
3302 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
3304 libudev_core_la_SOURCES = \
3306 src/udev/udev-event.c \
3307 src/udev/udev-watch.c \
3308 src/udev/udev-node.c \
3309 src/udev/udev-rules.c \
3310 src/udev/udev-ctrl.c \
3311 src/udev/udev-builtin.c \
3312 src/udev/udev-builtin-btrfs.c \
3313 src/udev/udev-builtin-hwdb.c \
3314 src/udev/udev-builtin-input_id.c \
3315 src/udev/udev-builtin-keyboard.c \
3316 src/udev/udev-builtin-net_id.c \
3317 src/udev/udev-builtin-net_setup_link.c \
3318 src/udev/udev-builtin-path_id.c \
3319 src/udev/udev-builtin-usb_id.c \
3320 src/udev/net/link-config.h \
3321 src/udev/net/link-config.c \
3322 src/udev/net/ethtool-util.h \
3323 src/udev/net/ethtool-util.c
3325 nodist_libudev_core_la_SOURCES = \
3326 src/udev/keyboard-keys-from-name.h \
3327 src/udev/keyboard-keys-to-name.h \
3328 src/udev/net/link-config-gperf.c
3331 $(nodist_libudev_core_la_SOURCES)
3334 src/udev/keyboard-keys-from-name.gperf \
3335 src/udev/keyboard-keys.txt \
3336 src/udev/net/link-config-gperf.c
3339 src/udev/net/link-config-gperf.gperf
3341 libudev_core_la_CFLAGS = \
3346 libudev_core_la_LIBADD = \
3347 libudev-internal.la \
3348 libsystemd-label.la \
3349 libsystemd-internal.la \
3350 libsystemd-network.la \
3351 libsystemd-shared.la \
3356 libudev_core_la_SOURCES += \
3357 src/udev/udev-builtin-kmod.c
3359 dist_udevrules_DATA += \
3360 rules/80-drivers.rules
3364 libudev_core_la_SOURCES += \
3365 src/udev/udev-builtin-blkid.c
3369 libudev_core_la_SOURCES += \
3370 src/udev/udev-builtin-uaccess.c \
3371 src/login/logind-acl.c \
3372 src/libsystemd/sd-login/sd-login.c \
3373 src/systemd/sd-login.h
3375 libudev_core_la_LIBADD += \
3379 systemd_udevd_SOURCES = \
3382 systemd_udevd_LDADD = \
3386 src/udev/udevadm.c \
3387 src/udev/udevadm-info.c \
3388 src/udev/udevadm-control.c \
3389 src/udev/udevadm-monitor.c \
3390 src/udev/udevadm-hwdb.c \
3391 src/udev/udevadm-settle.c \
3392 src/udev/udevadm-trigger.c \
3393 src/udev/udevadm-test.c \
3394 src/udev/udevadm-test-builtin.c
3399 # Update hwdb on installation. Do not bother if installing
3400 # in DESTDIR, since this is likely for packaging purposes.
3402 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
3404 INSTALL_DATA_HOOKS += \
3408 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3410 # ------------------------------------------------------------------------------
3419 test_libudev_SOURCES = \
3420 src/test/test-libudev.c
3422 test_libudev_LDADD = \
3423 libsystemd-label.la \
3424 libudev-internal.la \
3425 libsystemd-shared.la
3427 test_udev_SOURCES = \
3428 src/test/test-udev.c
3437 test_udev_LDADD += \
3444 # packed sysfs test tree
3446 $(AM_V_at)$(MKDIR_P) $(dir $@)
3447 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3451 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3456 test/rules-test.sh \
3457 test/rule-syntax-check.py
3459 # ------------------------------------------------------------------------------
3461 src/udev/ata_id/ata_id.c
3464 libudev-internal.la \
3465 libsystemd-shared.la
3467 udevlibexec_PROGRAMS += \
3470 # ------------------------------------------------------------------------------
3471 cdrom_id_SOURCES = \
3472 src/udev/cdrom_id/cdrom_id.c
3475 libudev-internal.la \
3476 libsystemd-shared.la
3478 udevlibexec_PROGRAMS += \
3481 dist_udevrules_DATA += \
3482 rules/60-cdrom_id.rules
3484 # ------------------------------------------------------------------------------
3486 src/udev/collect/collect.c
3489 libudev-internal.la \
3490 libsystemd-shared.la
3492 udevlibexec_PROGRAMS += \
3495 # ------------------------------------------------------------------------------
3497 src/udev/scsi_id/scsi_id.c \
3498 src/udev/scsi_id/scsi_serial.c \
3499 src/udev/scsi_id/scsi.h \
3500 src/udev/scsi_id/scsi_id.h
3503 libudev-internal.la \
3504 libsystemd-shared.la
3506 udevlibexec_PROGRAMS += \
3510 src/udev/scsi_id/README
3512 # ------------------------------------------------------------------------------
3514 src/udev/v4l_id/v4l_id.c
3519 udevlibexec_PROGRAMS += \
3522 dist_udevrules_DATA += \
3523 rules/60-persistent-v4l.rules
3525 # ------------------------------------------------------------------------------
3526 accelerometer_SOURCES = \
3527 src/udev/accelerometer/accelerometer.c
3529 accelerometer_LDADD = \
3530 libudev-internal.la -lm \
3531 libsystemd-shared.la
3533 udevlibexec_PROGRAMS += \
3536 dist_udevrules_DATA += \
3537 rules/61-accelerometer.rules
3539 # ------------------------------------------------------------------------------
3546 libgudev_includedir = \
3547 $(includedir)/gudev-1.0/gudev
3549 libgudev_include_HEADERS = \
3551 src/gudev/gudevenums.h \
3552 src/gudev/gudevenumtypes.h \
3553 src/gudev/gudevtypes.h \
3554 src/gudev/gudevclient.h \
3555 src/gudev/gudevdevice.h \
3556 src/gudev/gudevenumerator.h
3558 lib_LTLIBRARIES += libgudev-1.0.la
3560 pkgconfiglib_DATA += \
3561 src/gudev/gudev-1.0.pc
3564 src/gudev/gudev-1.0.pc
3566 libgudev_1_0_la_SOURCES = \
3567 src/gudev/libgudev-1.0.sym \
3568 src/gudev/gudevenums.h \
3569 src/gudev/gudevenumtypes.h \
3570 src/gudev/gudevenumtypes.h\
3571 src/gudev/gudevtypes.h \
3572 src/gudev/gudevclient.h \
3573 src/gudev/gudevclient.c \
3574 src/gudev/gudevdevice.h \
3575 src/gudev/gudevdevice.c \
3576 src/gudev/gudevenumerator.h \
3577 src/gudev/gudevenumerator.c \
3578 src/gudev/gudevprivate.h
3580 nodist_libgudev_1_0_la_SOURCES = \
3581 src/gudev/gudevmarshal.h \
3582 src/gudev/gudevmarshal.c \
3583 src/gudev/gudevenumtypes.h \
3584 src/gudev/gudevenumtypes.c
3587 $(nodist_libgudev_1_0_la_SOURCES)
3589 libgudev_1_0_la_CPPFLAGS = \
3591 -I$(top_builddir)/src\
3592 -I$(top_srcdir)/src\
3593 -I$(top_builddir)/src/gudev \
3594 -I$(top_srcdir)/src/gudev \
3595 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3596 -D_GUDEV_COMPILATION \
3597 -DG_LOG_DOMAIN=\"GUdev\"
3599 libgudev_1_0_la_CFLAGS = \
3601 -fvisibility=default \
3604 libgudev_1_0_la_LIBADD = \
3608 libgudev_1_0_la_LDFLAGS = \
3610 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3613 -Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym
3615 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3616 $(AM_V_at)$(MKDIR_P) $(dir $@)
3617 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3619 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3620 $(AM_V_at)$(MKDIR_P) $(dir $@)
3621 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3622 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3624 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3625 $(AM_V_at)$(MKDIR_P) $(dir $@)
3626 $(AM_V_GEN)glib-mkenums --template $^ > $@
3628 if HAVE_INTROSPECTION
3629 -include $(INTROSPECTION_MAKEFILE)
3631 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3633 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3635 src_gudev_GUdev_1_0_gir_CFLAGS = \
3638 -D_GUDEV_COMPILATION \
3639 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3640 -I$(top_srcdir)/src \
3641 -I$(top_builddir)/src \
3642 -I$(top_srcdir)/src/gudev \
3643 -I$(top_builddir)/src/gudev
3645 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
3647 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
3648 --pkg-export=gudev-1.0 \
3651 src_gudev_GUdev_1_0_gir_FILES = \
3653 src/gudev/gudevtypes.h \
3654 src/gudev/gudevenums.h \
3655 src/gudev/gudevenumtypes.h \
3656 src/gudev/gudevclient.h \
3657 src/gudev/gudevdevice.h \
3658 src/gudev/gudevenumerator.h \
3659 src/gudev/gudevclient.c \
3660 src/gudev/gudevdevice.c \
3661 src/gudev/gudevenumerator.c
3663 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
3664 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
3666 girdir = $(datadir)/gir-1.0
3668 src/gudev/GUdev-1.0.gir
3670 typelibsdir = $(libdir)/girepository-1.0
3672 src/gudev/GUdev-1.0.typelib
3674 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
3675 endif # HAVE_INTROSPECTION
3679 src/gudev/gudev-1.0.pc.in \
3680 src/gudev/gudevmarshal.list \
3681 src/gudev/gudevenumtypes.h.template \
3682 src/gudev/gudevenumtypes.c.template \
3683 src/gudev/gjs-example.js \
3684 src/gudev/seed-example-enum.js \
3685 src/gudev/seed-example.js
3687 # ------------------------------------------------------------------------------
3688 mtd_probe_SOURCES = \
3689 src/udev/mtd_probe/mtd_probe.c \
3690 src/udev/mtd_probe/mtd_probe.h \
3691 src/udev/mtd_probe/probe_smartmedia.c
3693 dist_udevrules_DATA += \
3694 rules/75-probe_mtd.rules
3696 udevlibexec_PROGRAMS += \
3699 # ------------------------------------------------------------------------------
3700 test_id128_SOURCES = \
3701 src/test/test-id128.c
3703 test_id128_LDADD = \
3704 libsystemd-internal.la \
3705 libsystemd-shared.la
3710 # ------------------------------------------------------------------------------
3712 rootlibexec_PROGRAMS += \
3715 systemd_activate_SOURCES = \
3716 src/activate/activate.c
3718 systemd_activate_LDADD = \
3719 libsystemd-label.la \
3720 libsystemd-internal.la \
3721 libsystemd-shared.la
3723 # ------------------------------------------------------------------------------
3724 systemd_journald_SOURCES = \
3725 src/journal/journald.c \
3726 src/journal/journald-server.h
3728 systemd_journald_LDADD = \
3729 libsystemd-journal-core.la \
3730 libsystemd-internal.la \
3731 libsystemd-shared.la
3733 systemd_cat_SOURCES = \
3736 systemd_cat_LDADD = \
3737 libsystemd-journal-core.la
3740 rootlibexec_PROGRAMS += \
3741 systemd-journal-remote
3743 systemd_journal_remote_SOURCES = \
3744 src/journal-remote/journal-remote-parse.h \
3745 src/journal-remote/journal-remote-parse.c \
3746 src/journal-remote/journal-remote-write.h \
3747 src/journal-remote/journal-remote-write.c \
3748 src/journal-remote/journal-remote.h \
3749 src/journal-remote/journal-remote.c
3751 systemd_journal_remote_LDADD = \
3752 libsystemd-internal.la \
3753 libsystemd-journal-core.la
3755 systemd_journal_remote_SOURCES += \
3756 src/journal-remote/microhttpd-util.h \
3757 src/journal-remote/microhttpd-util.c
3759 systemd_journal_remote_CFLAGS = \
3761 $(MICROHTTPD_CFLAGS)
3763 systemd_journal_remote_LDADD += \
3767 systemd_journal_remote_LDADD += \
3770 # systemd-journal-remote make sense mostly with full crypto stack
3771 dist_systemunit_DATA += \
3772 units/systemd-journal-remote.socket
3774 nodist_systemunit_DATA += \
3775 units/systemd-journal-remote.service
3778 units/systemd-journal-remote.service.in
3780 journal-remote-install-hook: journal-install-hook
3781 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
3782 -chown 0:0 $(DESTDIR)/var/log/journal/remote
3783 -chmod 755 $(DESTDIR)/var/log/journal/remote
3785 INSTALL_EXEC_HOOKS += journal-remote-install-hook
3789 nodist_pkgsysconf_DATA += \
3790 src/journal-remote/journal-remote.conf
3793 src/journal-remote/journal-remote.conf.in
3796 src/journal-remote/journal-remote.conf
3800 rootlibexec_PROGRAMS += \
3801 systemd-journal-upload
3803 systemd_journal_upload_SOURCES = \
3804 src/journal-remote/journal-upload.h \
3805 src/journal-remote/journal-upload.c \
3806 src/journal-remote/journal-upload-journal.c
3808 systemd_journal_upload_CFLAGS = \
3812 systemd_journal_upload_LDADD = \
3813 libsystemd-core.la \
3814 libsystemd-internal.la \
3815 libsystemd-journal-internal.la \
3816 libsystemd-shared.la \
3819 nodist_systemunit_DATA += \
3820 units/systemd-journal-upload.service
3823 units/systemd-journal-upload.service.in
3825 nodist_pkgsysconf_DATA += \
3826 src/journal-remote/journal-upload.conf
3829 src/journal-remote/journal-upload.conf.in
3832 src/journal-remote/journal-upload.conf
3835 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3836 journalctl_CFLAGS = \
3839 journalctl_SOURCES = \
3840 src/journal/journalctl.c
3842 journalctl_LDADD = \
3843 libsystemd-journal-internal.la \
3844 libsystemd-internal.la \
3845 libsystemd-logs.la \
3846 libsystemd-shared.la
3849 journalctl_LDADD += \
3854 journalctl_SOURCES += \
3855 src/journal/journal-qrcode.c \
3856 src/journal/journal-qrcode.h
3858 journalctl_CFLAGS += \
3861 journalctl_LDADD += \
3865 test_journal_SOURCES = \
3866 src/journal/test-journal.c
3868 test_journal_LDADD = \
3869 libsystemd-journal-core.la
3871 test_journal_send_SOURCES = \
3872 src/journal/test-journal-send.c
3874 test_journal_send_LDADD = \
3875 libsystemd-journal-core.la
3877 test_journal_syslog_SOURCES = \
3878 src/journal/test-journal-syslog.c
3880 test_journal_syslog_LDADD = \
3881 libsystemd-journal-core.la
3883 test_journal_match_SOURCES = \
3884 src/journal/test-journal-match.c
3886 test_journal_match_LDADD = \
3887 libsystemd-journal-core.la
3889 test_journal_enum_SOURCES = \
3890 src/journal/test-journal-enum.c
3892 test_journal_enum_LDADD = \
3893 libsystemd-journal-core.la
3895 test_journal_stream_SOURCES = \
3896 src/journal/test-journal-stream.c
3898 test_journal_stream_LDADD = \
3899 libsystemd-journal-core.la
3901 test_journal_flush_SOURCES = \
3902 src/journal/test-journal-flush.c
3904 test_journal_flush_LDADD = \
3905 libsystemd-journal-core.la
3907 test_journal_init_SOURCES = \
3908 src/journal/test-journal-init.c
3910 test_journal_init_LDADD = \
3911 libsystemd-journal-core.la
3913 test_journal_verify_SOURCES = \
3914 src/journal/test-journal-verify.c
3916 test_journal_verify_LDADD = \
3917 libsystemd-journal-core.la
3919 test_journal_interleaving_SOURCES = \
3920 src/journal/test-journal-interleaving.c
3922 test_journal_interleaving_LDADD = \
3923 libsystemd-journal-core.la
3925 test_mmap_cache_SOURCES = \
3926 src/journal/test-mmap-cache.c
3928 test_mmap_cache_LDADD = \
3929 libsystemd-journal-core.la
3931 test_catalog_SOURCES = \
3932 src/journal/test-catalog.c
3934 test_catalog_CPPFLAGS = \
3936 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
3938 test_catalog_LDADD = \
3939 libsystemd-journal-core.la
3941 test_compress_SOURCES = \
3942 src/journal/test-compress.c
3944 test_compress_LDADD = \
3945 libsystemd-journal-internal.la \
3946 libsystemd-shared.la
3948 test_compress_benchmark_SOURCES = \
3949 src/journal/test-compress-benchmark.c
3951 test_compress_benchmark_LDADD = \
3952 libsystemd-journal-internal.la \
3953 libsystemd-shared.la
3955 libsystemd_journal_core_la_SOURCES = \
3956 src/journal/journald-kmsg.c \
3957 src/journal/journald-kmsg.h \
3958 src/journal/journald-syslog.c \
3959 src/journal/journald-syslog.h \
3960 src/journal/journald-stream.c \
3961 src/journal/journald-stream.h \
3962 src/journal/journald-server.c \
3963 src/journal/journald-server.h \
3964 src/journal/journald-console.c \
3965 src/journal/journald-console.h \
3966 src/journal/journald-wall.c \
3967 src/journal/journald-wall.h \
3968 src/journal/journald-native.c \
3969 src/journal/journald-native.h \
3970 src/journal/journald-rate-limit.c \
3971 src/journal/journald-rate-limit.h \
3972 src/journal/journal-internal.h
3974 nodist_libsystemd_journal_core_la_SOURCES = \
3975 src/journal/journald-gperf.c
3977 libsystemd_journal_core_la_LIBADD = \
3978 libsystemd-journal-internal.la \
3979 libudev-internal.la \
3980 libsystemd-capability.la \
3981 libsystemd-label.la \
3982 libsystemd-internal.la \
3983 libsystemd-shared.la
3986 libsystemd_journal_core_la_LIBADD += \
3990 noinst_LTLIBRARIES += \
3991 libsystemd-journal-core.la
3993 journal-install-hook:
3994 -$(MKDIR_P) $(DESTDIR)/var/log/journal
3995 -chown 0:0 $(DESTDIR)/var/log/journal
3996 -chmod 755 $(DESTDIR)/var/log/journal
3997 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
3998 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4000 journal-uninstall-hook:
4001 -rmdir $(DESTDIR)/var/log/journal/remote
4002 -rmdir $(DESTDIR)/var/log/journal/
4004 INSTALL_EXEC_HOOKS += journal-install-hook
4005 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4007 # ------------------------------------------------------------------------------
4008 # Update catalog on installation. Do not bother if installing
4009 # in DESTDIR, since this is likely for packaging purposes.
4010 catalog-update-hook:
4011 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4013 INSTALL_DATA_HOOKS += \
4016 catalog-remove-hook:
4017 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4019 UNINSTALL_DATA_HOOKS += \
4028 test-journal-syslog \
4029 test-journal-match \
4030 test-journal-stream \
4032 test-journal-verify \
4033 test-journal-interleaving \
4034 test-journal-flush \
4041 test-compress-benchmark
4044 pkginclude_HEADERS += \
4045 src/systemd/sd-journal.h \
4046 src/systemd/sd-messages.h \
4047 src/systemd/_sd-common.h
4049 libsystemd_journal_internal_la_SOURCES = \
4050 src/journal/sd-journal.c \
4051 src/systemd/sd-journal.h \
4052 src/systemd/_sd-common.h \
4053 src/journal/journal-file.c \
4054 src/journal/journal-file.h \
4055 src/journal/journal-vacuum.c \
4056 src/journal/journal-vacuum.h \
4057 src/journal/journal-verify.c \
4058 src/journal/journal-verify.h \
4059 src/journal/lookup3.c \
4060 src/journal/lookup3.h \
4061 src/journal/journal-send.c \
4062 src/journal/journal-def.h \
4063 src/journal/compress.h \
4064 src/journal/catalog.c \
4065 src/journal/catalog.h \
4066 src/journal/mmap-cache.c \
4067 src/journal/mmap-cache.h
4069 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4070 libsystemd_journal_internal_la_CFLAGS = \
4073 libsystemd_journal_internal_la_LIBADD =
4075 libsystemd_journal_internal_la_SOURCES += \
4076 src/journal/compress.c
4079 libsystemd_journal_internal_la_CFLAGS += \
4082 libsystemd_journal_internal_la_LIBADD += \
4087 libsystemd_journal_internal_la_LIBADD += \
4092 libsystemd_journal_internal_la_SOURCES += \
4093 src/journal/journal-authenticate.c \
4094 src/journal/journal-authenticate.h \
4095 src/journal/fsprg.c \
4098 libsystemd_journal_internal_la_LIBADD += \
4101 # fsprg.c is a drop-in file using void pointer arithmetic
4102 libsystemd_journal_internal_la_CFLAGS += \
4107 noinst_LTLIBRARIES += \
4108 libsystemd-journal-internal.la
4110 rootlibexec_PROGRAMS += \
4113 rootbin_PROGRAMS += \
4119 dist_systemunit_DATA += \
4120 units/systemd-journald.socket \
4121 units/systemd-journald-dev-log.socket
4123 nodist_systemunit_DATA += \
4124 units/systemd-journald.service \
4125 units/systemd-journal-flush.service \
4126 units/systemd-journal-catalog-update.service
4128 dist_pkgsysconf_DATA += \
4129 src/journal/journald.conf
4131 dist_catalog_DATA = \
4132 catalog/systemd.fr.catalog \
4133 catalog/systemd.ru.catalog \
4134 catalog/systemd.it.catalog \
4135 catalog/systemd.catalog
4137 SOCKETS_TARGET_WANTS += \
4138 systemd-journald.socket \
4139 systemd-journald-dev-log.socket
4141 SYSINIT_TARGET_WANTS += \
4142 systemd-journald.service \
4143 systemd-journal-flush.service \
4144 systemd-journal-catalog-update.service
4147 units/systemd-journald.service.in \
4148 units/systemd-journal-flush.service.in \
4149 units/systemd-journal-catalog-update.service.in \
4150 src/journal/journald-gperf.gperf
4153 src/journal/journald-gperf.c
4155 # ------------------------------------------------------------------------------
4157 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4159 rootlibexec_PROGRAMS += \
4160 systemd-journal-gatewayd
4162 systemd_journal_gatewayd_SOURCES = \
4163 src/journal-remote/journal-gatewayd.c \
4164 src/journal-remote/microhttpd-util.h \
4165 src/journal-remote/microhttpd-util.c
4167 systemd_journal_gatewayd_LDADD = \
4168 libsystemd-logs.la \
4169 libsystemd-journal-internal.la \
4170 libsystemd-internal.la \
4171 libsystemd-shared.la \
4175 systemd_journal_gatewayd_LDADD += \
4179 systemd_journal_gatewayd_CFLAGS = \
4181 $(MICROHTTPD_CFLAGS)
4183 systemd_journal_gatewayd_CPPFLAGS = \
4185 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4187 dist_systemunit_DATA += \
4188 units/systemd-journal-gatewayd.socket
4190 nodist_systemunit_DATA += \
4191 units/systemd-journal-gatewayd.service
4193 dist_gatewayddocumentroot_DATA = \
4194 src/journal-remote/browse.html
4199 units/systemd-journal-gatewayd.service.in
4201 # ------------------------------------------------------------------------------
4203 systemd_socket_proxyd_SOURCES = \
4204 src/socket-proxy/socket-proxyd.c
4206 systemd_socket_proxyd_LDADD = \
4207 libsystemd-logs.la \
4208 libsystemd-internal.la \
4209 libsystemd-journal-internal.la \
4210 libsystemd-shared.la \
4211 libsystemd-resolve.la
4213 # ------------------------------------------------------------------------------
4215 systemd_coredump_SOURCES = \
4216 src/journal/coredump.c \
4217 src/journal/coredump-vacuum.c \
4218 src/journal/coredump-vacuum.h
4220 systemd_coredump_LDADD = \
4221 libsystemd-journal-internal.la \
4222 libsystemd-label.la \
4223 libsystemd-internal.la \
4224 libsystemd-shared.la
4227 systemd_coredump_SOURCES += \
4228 src/journal/stacktrace.c \
4229 src/journal/stacktrace.h
4231 systemd_coredump_LDADD += \
4235 rootlibexec_PROGRAMS += \
4238 dist_pkgsysconf_DATA += \
4239 src/journal/coredump.conf
4242 systemd_coredump_LDADD += \
4246 coredumpctl_SOURCES = \
4247 src/journal/coredumpctl.c
4249 coredumpctl_LDADD = \
4250 libsystemd-journal-internal.la \
4251 libsystemd-internal.la \
4252 libsystemd-shared.la
4258 test-coredump-vacuum
4260 test_coredump_vacuum_SOURCES = \
4261 src/journal/test-coredump-vacuum.c \
4262 src/journal/coredump-vacuum.c \
4263 src/journal/coredump-vacuum.h
4265 test_coredump_vacuum_LDADD = \
4266 libsystemd-internal.la \
4267 libsystemd-shared.la
4269 dist_bashcompletion_DATA += \
4270 shell-completion/bash/coredumpctl
4272 dist_zshcompletion_DATA += \
4273 shell-completion/zsh/_coredumpctl
4276 sysctl.d/50-coredump.conf
4279 sysctl.d/50-coredump.conf
4283 sysctl.d/50-coredump.conf.in
4285 # ------------------------------------------------------------------------------
4287 systemd_binfmt_SOURCES = \
4290 systemd_binfmt_LDADD = \
4291 libsystemd-shared.la
4293 rootlibexec_PROGRAMS += \
4296 dist_systemunit_DATA += \
4297 units/proc-sys-fs-binfmt_misc.automount \
4298 units/proc-sys-fs-binfmt_misc.mount
4300 nodist_systemunit_DATA += \
4301 units/systemd-binfmt.service
4304 $(prefix)/lib/binfmt.d \
4305 $(sysconfdir)/binfmt.d
4307 SYSINIT_TARGET_WANTS += \
4308 systemd-binfmt.service \
4309 proc-sys-fs-binfmt_misc.automount
4314 units/systemd-binfmt.service.in
4316 # ------------------------------------------------------------------------------
4318 systemd_vconsole_setup_SOURCES = \
4319 src/vconsole/vconsole-setup.c
4321 systemd_vconsole_setup_LDADD = \
4322 libsystemd-shared.la
4324 rootlibexec_PROGRAMS += \
4325 systemd-vconsole-setup
4327 nodist_systemunit_DATA += \
4328 units/systemd-vconsole-setup.service
4330 SYSINIT_TARGET_WANTS += \
4331 systemd-vconsole-setup.service
4335 units/systemd-vconsole-setup.service.in
4337 # ------------------------------------------------------------------------------
4339 systemd_bootchart_SOURCES = \
4340 src/bootchart/bootchart.c \
4341 src/bootchart/bootchart.h \
4342 src/bootchart/store.c \
4343 src/bootchart/store.h \
4344 src/bootchart/svg.c \
4347 systemd_bootchart_LDADD = \
4348 libsystemd-journal-internal.la \
4349 libsystemd-shared.la
4351 rootlibexec_PROGRAMS += \
4354 dist_pkgsysconf_DATA += \
4355 src/bootchart/bootchart.conf
4358 # ------------------------------------------------------------------------------
4359 if ENABLE_QUOTACHECK
4360 rootlibexec_PROGRAMS += \
4363 nodist_systemunit_DATA += \
4364 units/systemd-quotacheck.service
4366 systemd_quotacheck_SOURCES = \
4367 src/quotacheck/quotacheck.c
4369 systemd_quotacheck_LDADD = \
4370 libsystemd-shared.la
4374 units/systemd-quotacheck.service.in
4376 nodist_systemunit_DATA += \
4377 units/quotaon.service
4379 # ------------------------------------------------------------------------------
4380 if ENABLE_RANDOMSEED
4381 rootlibexec_PROGRAMS += \
4384 nodist_systemunit_DATA += \
4385 units/systemd-random-seed.service
4387 systemd_random_seed_SOURCES = \
4388 src/random-seed/random-seed.c
4390 systemd_random_seed_LDADD = \
4391 libsystemd-label.la \
4392 libsystemd-shared.la
4394 SYSINIT_TARGET_WANTS += \
4395 systemd-random-seed.service
4400 units/systemd-random-seed.service.in
4402 # ------------------------------------------------------------------------------
4404 rootlibexec_PROGRAMS += \
4407 nodist_systemunit_DATA += \
4408 units/systemd-backlight@.service
4410 systemd_backlight_SOURCES = \
4411 src/backlight/backlight.c
4413 systemd_backlight_LDADD = \
4414 libsystemd-label.la \
4415 libudev-internal.la \
4416 libsystemd-shared.la
4420 units/systemd-backlight@.service.in
4422 # ------------------------------------------------------------------------------
4424 rootlibexec_PROGRAMS += \
4427 nodist_systemunit_DATA += \
4428 units/systemd-rfkill@.service
4430 systemd_rfkill_SOURCES = \
4433 systemd_rfkill_LDADD = \
4434 libsystemd-label.la \
4435 libudev-internal.la \
4436 libsystemd-shared.la
4440 units/systemd-rfkill@.service.in
4442 # ------------------------------------------------------------------------------
4443 if HAVE_LIBCRYPTSETUP
4444 rootlibexec_PROGRAMS += \
4447 systemgenerator_PROGRAMS += \
4448 systemd-cryptsetup-generator
4450 dist_systemunit_DATA += \
4451 units/cryptsetup.target \
4452 units/cryptsetup-pre.target
4454 systemd_cryptsetup_SOURCES = \
4455 src/cryptsetup/cryptsetup.c
4457 systemd_cryptsetup_CFLAGS = \
4459 $(LIBCRYPTSETUP_CFLAGS)
4461 systemd_cryptsetup_LDADD = \
4462 libsystemd-label.la \
4463 libudev-internal.la \
4464 libsystemd-shared.la \
4465 $(LIBCRYPTSETUP_LIBS)
4467 systemd_cryptsetup_generator_SOURCES = \
4468 src/cryptsetup/cryptsetup-generator.c
4470 systemd_cryptsetup_generator_LDADD = \
4471 libsystemd-label.la \
4472 libsystemd-shared.la
4474 SYSINIT_TARGET_WANTS += \
4479 # ------------------------------------------------------------------------------
4481 systemd_hostnamed_SOURCES = \
4482 src/hostname/hostnamed.c
4484 systemd_hostnamed_LDADD = \
4485 libsystemd-label.la \
4486 libsystemd-internal.la \
4487 libsystemd-shared.la
4489 rootlibexec_PROGRAMS += \
4492 nodist_systemunit_DATA += \
4493 units/systemd-hostnamed.service
4495 dist_systemunit_DATA_busnames += \
4496 units/org.freedesktop.hostname1.busname
4498 dist_dbuspolicy_DATA += \
4499 src/hostname/org.freedesktop.hostname1.conf
4501 dist_dbussystemservice_DATA += \
4502 src/hostname/org.freedesktop.hostname1.service
4504 polkitpolicy_files += \
4505 src/hostname/org.freedesktop.hostname1.policy
4507 SYSTEM_UNIT_ALIASES += \
4508 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4510 BUSNAMES_TARGET_WANTS += \
4511 org.freedesktop.hostname1.busname
4513 hostnamectl_SOURCES = \
4514 src/hostname/hostnamectl.c
4516 hostnamectl_LDADD = \
4517 libsystemd-internal.la \
4518 libsystemd-shared.la
4523 dist_bashcompletion_DATA += \
4524 shell-completion/bash/hostnamectl
4526 dist_zshcompletion_DATA += \
4527 shell-completion/zsh/_hostnamectl
4531 polkitpolicy_in_files += \
4532 src/hostname/org.freedesktop.hostname1.policy.in
4535 units/systemd-hostnamed.service.in
4537 # ------------------------------------------------------------------------------
4538 dist_systemunit_DATA_busnames += \
4539 units/org.freedesktop.systemd1.busname
4541 BUSNAMES_TARGET_WANTS += \
4542 org.freedesktop.systemd1.busname
4544 # ------------------------------------------------------------------------------
4546 systemd_localed_SOURCES = \
4547 src/locale/localed.c
4549 systemd_localed_LDADD = \
4550 libsystemd-label.la \
4551 libsystemd-internal.la \
4552 libsystemd-shared.la
4554 nodist_systemunit_DATA += \
4555 units/systemd-localed.service
4557 dist_systemunit_DATA_busnames += \
4558 units/org.freedesktop.locale1.busname
4560 rootlibexec_PROGRAMS += \
4563 dist_dbuspolicy_DATA += \
4564 src/locale/org.freedesktop.locale1.conf
4566 dist_dbussystemservice_DATA += \
4567 src/locale/org.freedesktop.locale1.service
4569 polkitpolicy_files += \
4570 src/locale/org.freedesktop.locale1.policy
4572 SYSTEM_UNIT_ALIASES += \
4573 systemd-localed.service dbus-org.freedesktop.locale1.service
4575 BUSNAMES_TARGET_WANTS += \
4576 org.freedesktop.locale1.busname
4578 dist_pkgdata_DATA += \
4579 src/locale/kbd-model-map
4581 dist_noinst_SCRIPT = \
4582 src/locale/generate-kbd-model-map
4584 localectl_SOURCES = \
4585 src/locale/localectl.c
4588 libsystemd-internal.la \
4589 libsystemd-shared.la
4594 dist_bashcompletion_DATA += \
4595 shell-completion/bash/localectl
4597 dist_zshcompletion_DATA += \
4598 shell-completion/zsh/_localectl
4602 .PHONY: update-kbd-model-map
4604 polkitpolicy_in_files += \
4605 src/locale/org.freedesktop.locale1.policy.in
4608 units/systemd-localed.service.in
4610 # ------------------------------------------------------------------------------
4612 systemd_timedated_SOURCES = \
4613 src/timedate/timedated.c
4615 systemd_timedated_LDADD = \
4616 libsystemd-label.la \
4617 libsystemd-internal.la \
4618 libsystemd-shared.la
4620 rootlibexec_PROGRAMS += \
4623 dist_dbussystemservice_DATA += \
4624 src/timedate/org.freedesktop.timedate1.service
4626 dist_dbuspolicy_DATA += \
4627 src/timedate/org.freedesktop.timedate1.conf
4629 nodist_systemunit_DATA += \
4630 units/systemd-timedated.service
4632 dist_systemunit_DATA_busnames += \
4633 units/org.freedesktop.timedate1.busname
4635 polkitpolicy_files += \
4636 src/timedate/org.freedesktop.timedate1.policy
4638 SYSTEM_UNIT_ALIASES += \
4639 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4641 BUSNAMES_TARGET_WANTS += \
4642 org.freedesktop.timedate1.busname
4644 timedatectl_SOURCES = \
4645 src/timedate/timedatectl.c
4647 timedatectl_LDADD = \
4648 libsystemd-internal.la \
4649 libsystemd-shared.la
4654 dist_bashcompletion_DATA += \
4655 shell-completion/bash/timedatectl
4657 dist_zshcompletion_DATA += \
4658 shell-completion/zsh/_timedatectl
4661 polkitpolicy_in_files += \
4662 src/timedate/org.freedesktop.timedate1.policy.in
4665 units/systemd-timedated.service.in
4667 # ------------------------------------------------------------------------------
4669 systemd_timesyncd_SOURCES = \
4670 src/timesync/timesyncd.c \
4671 src/timesync/timesyncd-manager.c \
4672 src/timesync/timesyncd-manager.h \
4673 src/timesync/timesyncd-conf.c \
4674 src/timesync/timesyncd-conf.h \
4675 src/timesync/timesyncd-server.c \
4676 src/timesync/timesyncd-server.h
4678 nodist_systemd_timesyncd_SOURCES = \
4679 src/timesync/timesyncd-gperf.c
4682 src/timesync/timesyncd-gperf.gperf
4685 src/timesync/timesyncd-gperf.c
4687 systemd_timesyncd_LDADD = \
4688 libsystemd-resolve.la \
4689 libsystemd-network.la \
4690 libsystemd-label.la \
4691 libsystemd-capability.la \
4692 libsystemd-internal.la \
4693 libsystemd-shared.la \
4696 rootlibexec_PROGRAMS += \
4699 nodist_systemunit_DATA += \
4700 units/systemd-timesyncd.service
4702 GENERAL_ALIASES += \
4703 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
4706 units/systemd-timesyncd.service.in
4708 nodist_pkgsysconf_DATA += \
4709 src/timesync/timesyncd.conf
4712 src/timesync/timesyncd.conf.in
4715 src/timesync/timesyncd.conf
4718 # ------------------------------------------------------------------------------
4720 libnss_myhostname_la_SOURCES = \
4721 src/nss-myhostname/nss-myhostname.sym \
4722 src/nss-myhostname/nss-myhostname.c
4724 libnss_myhostname_la_LDFLAGS = \
4731 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
4733 libnss_myhostname_la_LIBADD = \
4734 libsystemd-shared.la \
4735 libsystemd-internal.la
4737 lib_LTLIBRARIES += \
4738 libnss_myhostname.la
4741 # ------------------------------------------------------------------------------
4743 systemd_machined_SOURCES = \
4744 src/machine/machined.c \
4745 src/machine/machined.h
4747 systemd_machined_LDADD = \
4748 libsystemd-machine-core.la
4750 rootlibexec_PROGRAMS += \
4753 libsystemd_machine_core_la_SOURCES = \
4754 src/machine/machined-dbus.c \
4755 src/machine/machine.c \
4756 src/machine/machine.h \
4757 src/machine/machine-dbus.c
4759 libsystemd_machine_core_la_LIBADD = \
4760 libsystemd-label.la \
4761 libsystemd-internal.la \
4762 libudev-internal.la \
4763 libsystemd-shared.la
4765 noinst_LTLIBRARIES += \
4766 libsystemd-machine-core.la
4768 machinectl_SOURCES = \
4769 src/machine/machinectl.c
4771 machinectl_LDADD = \
4772 libsystemd-internal.la \
4773 libsystemd-shared.la
4775 rootbin_PROGRAMS += \
4778 dist_bashcompletion_DATA += \
4779 shell-completion/bash/machinectl
4781 test_machine_tables_SOURCES = \
4782 src/machine/test-machine-tables.c
4784 test_machine_tables_LDADD = \
4785 libsystemd-machine-core.la
4790 nodist_systemunit_DATA += \
4791 units/systemd-machined.service
4793 dist_systemunit_DATA += \
4796 dist_systemunit_DATA_busnames += \
4797 units/org.freedesktop.machine1.busname
4799 dist_dbussystemservice_DATA += \
4800 src/machine/org.freedesktop.machine1.service
4802 dist_dbuspolicy_DATA += \
4803 src/machine/org.freedesktop.machine1.conf
4805 dist_zshcompletion_DATA += \
4806 shell-completion/zsh/_machinectl \
4807 shell-completion/zsh/_sd_machines
4809 SYSTEM_UNIT_ALIASES += \
4810 systemd-machined.service dbus-org.freedesktop.machine1.service
4812 BUSNAMES_TARGET_WANTS += \
4813 org.freedesktop.machine1.busname
4816 units/systemd-machined.service.in
4818 libnss_mymachines_la_SOURCES = \
4819 src/nss-mymachines/nss-mymachines.sym \
4820 src/nss-mymachines/nss-mymachines.c
4822 libnss_mymachines_la_LDFLAGS = \
4829 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
4831 libnss_mymachines_la_LIBADD = \
4832 libsystemd-shared.la \
4833 libsystemd-internal.la
4835 lib_LTLIBRARIES += \
4836 libnss_mymachines.la
4839 # ------------------------------------------------------------------------------
4841 systemd_resolved_SOURCES = \
4842 src/resolve/resolved.c \
4843 src/resolve/resolved-manager.c \
4844 src/resolve/resolved-manager.h \
4845 src/resolve/resolved-conf.c \
4846 src/resolve/resolved-conf.h \
4847 src/resolve/resolved-bus.c \
4848 src/resolve/resolved-bus.h \
4849 src/resolve/resolved-link.h \
4850 src/resolve/resolved-link.c \
4851 src/resolve/resolved-def.h \
4852 src/resolve/resolved-dns-domain.h \
4853 src/resolve/resolved-dns-domain.c \
4854 src/resolve/resolved-dns-rr.h \
4855 src/resolve/resolved-dns-rr.c \
4856 src/resolve/resolved-dns-question.h \
4857 src/resolve/resolved-dns-question.c \
4858 src/resolve/resolved-dns-answer.h \
4859 src/resolve/resolved-dns-answer.c \
4860 src/resolve/resolved-dns-packet.h \
4861 src/resolve/resolved-dns-packet.c \
4862 src/resolve/resolved-dns-query.h \
4863 src/resolve/resolved-dns-query.c \
4864 src/resolve/resolved-dns-transaction.h \
4865 src/resolve/resolved-dns-transaction.c \
4866 src/resolve/resolved-dns-scope.h \
4867 src/resolve/resolved-dns-scope.c \
4868 src/resolve/resolved-dns-server.h \
4869 src/resolve/resolved-dns-server.c \
4870 src/resolve/resolved-dns-cache.h \
4871 src/resolve/resolved-dns-cache.c \
4872 src/resolve/resolved-dns-zone.h \
4873 src/resolve/resolved-dns-zone.c \
4874 src/resolve/resolved-dns-stream.h \
4875 src/resolve/resolved-dns-stream.c \
4876 src/resolve/dns-type.c \
4877 src/resolve/dns-type.h \
4878 src/resolve/dns_type-from-name.h \
4879 src/resolve/dns_type-to-name.h
4881 nodist_systemd_resolved_SOURCES = \
4882 src/resolve/resolved-gperf.c
4885 src/resolve/resolved-gperf.gperf \
4886 src/resolve/dns_type-from-name.gperf
4889 src/resolve/resolved-gperf.c
4891 systemd_resolved_LDADD = \
4892 libsystemd-capability.la \
4893 libsystemd-network.la \
4894 libsystemd-label.la \
4895 libsystemd-internal.la \
4896 libsystemd-shared.la \
4900 rootlibexec_PROGRAMS += \
4903 nodist_systemunit_DATA += \
4904 units/systemd-resolved.service
4906 dist_systemunit_DATA_busnames += \
4907 units/org.freedesktop.resolve1.busname
4909 dist_dbuspolicy_DATA += \
4910 src/resolve/org.freedesktop.resolve1.conf
4912 dist_dbussystemservice_DATA += \
4913 src/resolve/org.freedesktop.resolve1.service
4916 units/systemd-resolved.service.in
4918 SYSTEM_UNIT_ALIASES += \
4919 systemd-resolved.service dbus-org.freedesktop.resolve1.service
4921 BUSNAMES_TARGET_WANTS += \
4922 org.freedesktop.resolve1.busname
4924 GENERAL_ALIASES += \
4925 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
4927 nodist_pkgsysconf_DATA += \
4928 src/resolve/resolved.conf
4931 src/resolve/resolved.conf.in
4934 src/resolve/resolved.conf
4939 test_dns_domain_SOURCES = \
4940 src/resolve/resolved-dns-domain.h \
4941 src/resolve/resolved-dns-domain.c \
4942 src/resolve/test-dns-domain.c
4944 test_dns_domain_LDADD = \
4945 libsystemd-capability.la \
4946 libsystemd-network.la \
4947 libsystemd-label.la \
4948 libsystemd-internal.la \
4949 libsystemd-shared.la \
4952 libnss_resolve_la_SOURCES = \
4953 src/nss-resolve/nss-resolve.sym \
4954 src/nss-resolve/nss-resolve.c
4956 libnss_resolve_la_LDFLAGS = \
4963 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
4965 libnss_resolve_la_LIBADD = \
4966 libsystemd-shared.la \
4967 libsystemd-internal.la
4969 lib_LTLIBRARIES += \
4972 systemd_resolve_host_SOURCES = \
4973 src/resolve-host/resolve-host.c \
4974 src/resolve/resolved-dns-packet.c \
4975 src/resolve/resolved-dns-packet.h \
4976 src/resolve/resolved-dns-rr.c \
4977 src/resolve/resolved-dns-rr.h \
4978 src/resolve/resolved-dns-answer.c \
4979 src/resolve/resolved-dns-answer.h \
4980 src/resolve/resolved-dns-question.c \
4981 src/resolve/resolved-dns-question.h \
4982 src/resolve/resolved-dns-domain.c \
4983 src/resolve/resolved-dns-domain.h \
4984 src/resolve/dns-type.c \
4985 src/resolve/dns-type.h \
4986 src/resolve/dns_type-from-name.h \
4987 src/resolve/dns_type-to-name.h
4989 systemd_resolve_host_LDADD = \
4990 libsystemd-internal.la \
4991 libsystemd-shared.la \
4995 rootlibexec_PROGRAMS += \
4996 systemd-resolve-host
5000 # ------------------------------------------------------------------------------
5002 rootlibexec_PROGRAMS += \
5005 systemd_networkd_SOURCES = \
5006 src/network/networkd.c
5008 systemd_networkd_LDADD = \
5009 libsystemd-networkd-core.la \
5010 libsystemd-capability.la
5012 noinst_LTLIBRARIES += \
5013 libsystemd-networkd-core.la
5015 libsystemd_networkd_core_la_CFLAGS = \
5018 libsystemd_networkd_core_la_SOURCES = \
5019 src/libsystemd-network/network-internal.h \
5020 src/network/networkd.h \
5021 src/network/networkd-link.h \
5022 src/network/networkd-netdev.h \
5023 src/network/networkd-netdev-tunnel.h \
5024 src/network/networkd-netdev-veth.h \
5025 src/network/networkd-netdev-vxlan.h \
5026 src/network/networkd-netdev-vlan.h \
5027 src/network/networkd-netdev-macvlan.h \
5028 src/network/networkd-netdev-dummy.h \
5029 src/network/networkd-netdev-tuntap.h \
5030 src/network/networkd-netdev-bond.h \
5031 src/network/networkd-netdev-bridge.h \
5032 src/network/networkd-netdev.c \
5033 src/network/networkd-netdev-tunnel.c \
5034 src/network/networkd-netdev-veth.c \
5035 src/network/networkd-netdev-vxlan.c \
5036 src/network/networkd-netdev-vlan.c \
5037 src/network/networkd-netdev-macvlan.c \
5038 src/network/networkd-netdev-dummy.c \
5039 src/network/networkd-netdev-tuntap.c \
5040 src/network/networkd-netdev-bond.c \
5041 src/network/networkd-netdev-bridge.c \
5042 src/network/networkd-link.c \
5043 src/network/networkd-ipv4ll.c \
5044 src/network/networkd-dhcp4.c \
5045 src/network/networkd-network.c \
5046 src/network/networkd-address.c \
5047 src/network/networkd-route.c \
5048 src/network/networkd-manager.c \
5049 src/network/networkd-address-pool.c
5051 nodist_libsystemd_networkd_core_la_SOURCES = \
5052 src/network/networkd-network-gperf.c \
5053 src/network/networkd-netdev-gperf.c
5055 libsystemd_networkd_core_la_LIBADD = \
5056 libudev-internal.la \
5057 libsystemd-internal.la \
5058 libsystemd-network.la \
5059 libsystemd-label.la \
5060 libsystemd-shared.la
5062 rootlibexec_PROGRAMS += \
5063 systemd-networkd-wait-online
5065 systemd_networkd_wait_online_CFLAGS = \
5068 systemd_networkd_wait_online_SOURCES = \
5069 src/libsystemd-network/network-internal.h \
5070 src/network/networkd-wait-online.h \
5071 src/network/networkd-wait-online-link.h \
5072 src/network/networkd-wait-online.c \
5073 src/network/networkd-wait-online-manager.c \
5074 src/network/networkd-wait-online-link.c
5076 systemd_networkd_wait_online_LDADD = \
5077 libsystemd-network.la \
5078 libudev-internal.la \
5079 libsystemd-internal.la \
5080 libsystemd-shared.la
5082 rootbin_PROGRAMS += \
5085 networkctl_SOURCES = \
5086 src/network/networkctl.c
5088 networkctl_LDADD = \
5089 libsystemd-internal.la \
5090 libudev-internal.la \
5091 libsystemd-shared.la \
5092 libsystemd-network.la
5094 test_network_SOURCES = \
5095 src/network/test-network.c
5097 test_network_CFLAGS = \
5100 test_network_LDADD = \
5101 libsystemd-networkd-core.la
5103 test_network_tables_SOURCES = \
5104 src/network/test-network-tables.c \
5105 src/shared/test-tables.h
5107 test_network_tables_LDADD = \
5108 libsystemd-networkd-core.la \
5115 nodist_systemunit_DATA += \
5116 units/systemd-networkd.service \
5117 units/systemd-networkd-wait-online.service
5119 GENERAL_ALIASES += \
5120 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5121 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5124 src/network/networkd-network-gperf.gperf \
5125 src/network/networkd-netdev-gperf.gperf \
5126 units/systemd-networkd.service.in \
5127 units/systemd-networkd-wait-online.service.in
5130 src/network/networkd-network-gperf.c \
5131 src/network/networkd-netdev-gperf.c
5134 # ------------------------------------------------------------------------------
5136 systemd_logind_SOURCES = \
5137 src/login/logind.c \
5140 nodist_systemd_logind_SOURCES = \
5141 src/login/logind-gperf.c
5143 systemd_logind_LDADD = \
5144 libsystemd-logind-core.la
5146 libsystemd_logind_core_la_SOURCES = \
5147 src/login/logind-core.c \
5148 src/login/logind-device.c \
5149 src/login/logind-device.h \
5150 src/login/logind-button.c \
5151 src/login/logind-button.h \
5152 src/login/logind-action.c \
5153 src/login/logind-action.h \
5154 src/login/logind-seat.c \
5155 src/login/logind-seat.h \
5156 src/login/logind-session.c \
5157 src/login/logind-session.h \
5158 src/login/logind-session-device.c \
5159 src/login/logind-session-device.h \
5160 src/login/logind-user.c \
5161 src/login/logind-user.h \
5162 src/login/logind-inhibit.c \
5163 src/login/logind-inhibit.h \
5164 src/login/logind-dbus.c \
5165 src/login/logind-session-dbus.c \
5166 src/login/logind-seat-dbus.c \
5167 src/login/logind-user-dbus.c \
5168 src/login/logind-acl.h
5170 libsystemd_logind_core_la_LIBADD = \
5171 libsystemd-label.la \
5172 libsystemd-capability.la \
5173 libsystemd-internal.la \
5174 libudev-internal.la \
5175 libsystemd-shared.la
5178 libsystemd_logind_core_la_SOURCES += \
5179 src/login/logind-acl.c
5181 libsystemd_logind_core_la_LIBADD += \
5185 noinst_LTLIBRARIES += \
5186 libsystemd-logind-core.la
5188 systemd_user_sessions_SOURCES = \
5189 src/login/user-sessions.c
5191 systemd_user_sessions_LDADD = \
5192 libsystemd-shared.la
5194 rootlibexec_PROGRAMS += \
5196 systemd-user-sessions
5198 loginctl_SOURCES = \
5199 src/login/loginctl.c \
5200 src/login/sysfs-show.c
5203 libsystemd-internal.la \
5204 libudev-internal.la \
5205 libsystemd-shared.la
5207 rootbin_PROGRAMS += \
5210 dist_bashcompletion_DATA += \
5211 shell-completion/bash/loginctl
5213 dist_zshcompletion_DATA += \
5214 shell-completion/zsh/_loginctl \
5215 shell-completion/zsh/_systemd-inhibit
5217 systemd_inhibit_SOURCES = \
5220 systemd_inhibit_LDADD = \
5221 libsystemd-internal.la \
5222 libsystemd-shared.la
5224 rootbin_PROGRAMS += \
5227 test_login_SOURCES = \
5228 src/libsystemd/sd-login/test-login.c
5230 test_login_LDADD = \
5231 libsystemd-internal.la \
5232 libsystemd-shared.la
5234 test_login_shared_SOURCES = \
5235 src/login/test-login-shared.c
5237 test_login_shared_LDADD = \
5238 libsystemd-internal.la \
5239 libsystemd-shared.la
5241 test_inhibit_SOURCES = \
5242 src/login/test-inhibit.c
5244 test_inhibit_LDADD = \
5245 libsystemd-internal.la \
5246 libsystemd-shared.la
5248 test_login_tables_SOURCES = \
5249 src/login/test-login-tables.c
5251 test_login_tables_LDADD = \
5252 libsystemd-logind-core.la
5263 pam_systemd_la_SOURCES = \
5264 src/login/pam_systemd.sym \
5265 src/login/pam_systemd.c
5267 pam_systemd_la_CFLAGS = \
5272 pam_systemd_la_LDFLAGS = \
5278 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5280 pam_systemd_la_LIBADD = \
5281 libsystemd-capability.la \
5282 libsystemd-internal.la \
5283 libsystemd-shared.la \
5286 pamlib_LTLIBRARIES = \
5289 dist_pamconf_DATA = \
5290 src/login/systemd-user
5293 nodist_systemunit_DATA += \
5294 units/systemd-logind.service \
5295 units/systemd-user-sessions.service
5297 dist_systemunit_DATA += \
5300 dist_systemunit_DATA_busnames += \
5301 units/org.freedesktop.login1.busname
5303 dist_dbussystemservice_DATA += \
5304 src/login/org.freedesktop.login1.service
5306 dist_dbuspolicy_DATA += \
5307 src/login/org.freedesktop.login1.conf
5309 dist_pkgsysconf_DATA += \
5310 src/login/logind.conf
5312 polkitpolicy_files += \
5313 src/login/org.freedesktop.login1.policy
5318 MULTI_USER_TARGET_WANTS += \
5319 systemd-logind.service \
5320 systemd-user-sessions.service
5322 SYSTEM_UNIT_ALIASES += \
5323 systemd-logind.service dbus-org.freedesktop.login1.service
5325 BUSNAMES_TARGET_WANTS += \
5326 org.freedesktop.login1.busname
5328 if ENABLE_MULTI_SEAT_X
5330 systemd_multi_seat_x_SOURCES = \
5331 src/login/multi-seat-x.c
5333 systemd_multi_seat_x_LDADD = \
5334 libsystemd-label.la \
5335 libsystemd-shared.la
5337 rootlibexec_PROGRAMS += \
5338 systemd-multi-seat-x
5342 dist_udevrules_DATA += \
5343 src/login/70-uaccess.rules \
5344 src/login/70-power-switch.rules
5346 nodist_udevrules_DATA += \
5347 src/login/71-seat.rules \
5348 src/login/73-seat-late.rules
5351 src/login/logind-gperf.c \
5352 src/login/71-seat.rules \
5353 src/login/73-seat-late.rules
5356 polkitpolicy_in_files += \
5357 src/login/org.freedesktop.login1.policy.in
5360 src/login/logind-gperf.gperf \
5361 src/login/71-seat.rules.in \
5362 src/login/73-seat-late.rules.in \
5363 units/systemd-logind.service.in \
5364 units/systemd-user-sessions.service.in
5366 # ------------------------------------------------------------------------------
5367 if HAVE_PYTHON_DEVEL
5368 pkgpyexec_LTLIBRARIES = \
5375 _journal_la_SOURCES = \
5376 src/python-systemd/_journal.c
5378 _journal_la_CFLAGS = \
5380 -fvisibility=default \
5381 $(PYTHON_DEVEL_CFLAGS)
5383 _journal_la_LDFLAGS = \
5389 _journal_la_LIBADD = \
5390 $(PYTHON_DEVEL_LIBS) \
5393 id128_la_SOURCES = \
5394 src/python-systemd/id128.c \
5395 src/python-systemd/pyutil.c \
5396 src/python-systemd/pyutil.h
5398 nodist_id128_la_SOURCES = \
5399 src/python-systemd/id128-constants.h
5403 -fvisibility=default \
5404 $(PYTHON_DEVEL_CFLAGS) \
5405 -I$(top_builddir)/src/python-systemd
5407 id128_la_LDFLAGS = \
5414 $(PYTHON_DEVEL_LIBS) \
5415 libsystemd-shared.la \
5418 _daemon_la_SOURCES = \
5419 src/python-systemd/_daemon.c \
5420 src/python-systemd/pyutil.c \
5421 src/python-systemd/pyutil.h
5423 _daemon_la_CFLAGS = \
5425 -fvisibility=default \
5426 $(PYTHON_DEVEL_CFLAGS) \
5427 -I$(top_builddir)/src/python-systemd
5429 _daemon_la_LDFLAGS = \
5435 _daemon_la_LIBADD = \
5436 $(PYTHON_DEVEL_LIBS) \
5437 libsystemd-shared.la \
5440 _reader_la_SOURCES = \
5441 src/python-systemd/_reader.c \
5442 src/python-systemd/pyutil.c \
5443 src/python-systemd/pyutil.h
5445 _reader_la_CFLAGS = \
5447 -fvisibility=default \
5448 $(PYTHON_DEVEL_CFLAGS)
5450 _reader_la_LDFLAGS = \
5456 _reader_la_LIBADD = \
5457 $(PYTHON_DEVEL_LIBS) \
5458 libsystemd-shared.la \
5461 login_la_SOURCES = \
5462 src/python-systemd/login.c \
5463 src/python-systemd/pyutil.c \
5464 src/python-systemd/pyutil.h
5468 -fvisibility=default \
5469 $(PYTHON_DEVEL_CFLAGS)
5471 login_la_LDFLAGS = \
5478 $(PYTHON_DEVEL_LIBS) \
5479 libsystemd-shared.la \
5482 dist_pkgpyexec_PYTHON = \
5483 src/python-systemd/journal.py \
5484 src/python-systemd/daemon.py \
5485 src/python-systemd/__init__.py
5487 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
5488 $(AM_V_at)$(MKDIR_P) $(dir $@)
5489 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
5492 src/python-systemd/id128-constants.h
5494 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
5496 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
5497 $(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/
5498 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
5501 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
5502 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
5505 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
5506 $(MAKE) DESTDIR="$$dir" install && \
5507 $(MAKE) DESTDIR="$$dir" sphinx-html && \
5512 CLEAN_LOCAL_HOOKS += clean-sphinx
5514 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
5517 -rm -rf docs/html/python-systemd/
5519 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
5521 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
5522 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
5524 # ------------------------------------------------------------------------------
5525 if ENABLE_COMPAT_LIBS
5527 src/compat-libs/linkwarning.h
5529 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
5530 $(AM_V_at)$(MKDIR_P) $(dir $@)
5531 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
5534 libsystemd-journal.c \
5535 libsystemd-login.c \
5536 libsystemd-id128.c \
5539 libsystemd_journal_la_SOURCES = \
5540 libsystemd-journal.c \
5541 src/compat-libs/libsystemd-journal.sym
5543 libsystemd_journal_la_CPPFLAGS = \
5545 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5547 libsystemd_journal_la_LDFLAGS = \
5549 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
5550 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
5552 libsystemd_journal_la_LIBADD = \
5553 libsystemd-journal-internal.la \
5554 libsystemd-internal.la \
5555 libsystemd-shared.la
5557 libsystemd_login_la_SOURCES = \
5558 libsystemd-login.c \
5559 src/compat-libs/libsystemd-login.sym
5561 libsystemd_login_la_CPPFLAGS = \
5563 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5565 libsystemd_login_la_LDFLAGS = \
5567 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
5568 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
5570 libsystemd_login_la_LIBADD = \
5571 libsystemd-internal.la \
5572 libsystemd-shared.la
5574 libsystemd_id128_la_SOURCES = \
5575 libsystemd-id128.c \
5576 src/compat-libs/libsystemd-id128.sym
5578 libsystemd_id128_la_CPPFLAGS = \
5580 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5582 libsystemd_id128_la_LDFLAGS = \
5584 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
5585 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
5587 libsystemd_id128_la_LIBADD = \
5588 libsystemd-internal.la \
5589 libsystemd-shared.la
5591 libsystemd_daemon_la_SOURCES = \
5592 libsystemd-daemon.c \
5593 src/compat-libs/libsystemd-daemon.sym
5595 libsystemd_daemon_la_CPPFLAGS = \
5597 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5599 libsystemd_daemon_la_LDFLAGS = \
5601 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
5602 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
5604 libsystemd_daemon_la_LIBADD = \
5605 libsystemd-internal.la \
5606 libsystemd-shared.la
5608 lib_LTLIBRARIES += \
5609 libsystemd-journal.la \
5610 libsystemd-login.la \
5611 libsystemd-id128.la \
5612 libsystemd-daemon.la
5614 pkgconfiglib_DATA += \
5615 src/compat-libs/libsystemd-journal.pc \
5616 src/compat-libs/libsystemd-login.pc \
5617 src/compat-libs/libsystemd-id128.pc \
5618 src/compat-libs/libsystemd-daemon.pc
5620 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
5621 compat-lib-install-hook:
5622 libname=libsystemd-login.so && $(move-to-rootlibdir)
5623 libname=libsystemd-journal.so && $(move-to-rootlibdir)
5624 libname=libsystemd-id128.so && $(move-to-rootlibdir)
5625 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
5627 compat-lib-uninstall-hook:
5628 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
5629 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
5630 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
5631 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
5633 INSTALL_EXEC_HOOKS += compat-lib-install-hook
5634 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
5638 src/compat-libs/libsystemd-journal.pc.in \
5639 src/compat-libs/libsystemd-login.pc.in \
5640 src/compat-libs/libsystemd-id128.pc.in \
5641 src/compat-libs/libsystemd-daemon.pc.in
5643 # ------------------------------------------------------------------------------
5645 '|rootlibexecdir=$(rootlibexecdir)|' \
5646 '|rootbindir=$(rootbindir)|' \
5647 '|bindir=$(bindir)|' \
5648 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5649 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5650 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5651 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5652 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
5653 '|pkgdatadir=$(pkgdatadir)|' \
5654 '|systemunitdir=$(systemunitdir)|' \
5655 '|userunitdir=$(userunitdir)|' \
5656 '|systempresetdir=$(systempresetdir)|' \
5657 '|userpresetdir=$(userpresetdir)|' \
5658 '|udevhwdbdir=$(udevhwdbdir)|' \
5659 '|udevrulesdir=$(udevrulesdir)|' \
5660 '|catalogdir=$(catalogdir)|' \
5661 '|tmpfilesdir=$(tmpfilesdir)|' \
5662 '|sysusersdir=$(sysusersdir)|' \
5663 '|sysctldir=$(sysctldir)|' \
5664 '|systemgeneratordir=$(systemgeneratordir)|' \
5665 '|usergeneratordir=$(usergeneratordir)|' \
5666 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
5667 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
5668 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
5669 '|PACKAGE_URL=$(PACKAGE_URL)|' \
5670 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
5671 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
5672 '|prefix=$(prefix)|' \
5673 '|exec_prefix=$(exec_prefix)|' \
5674 '|libdir=$(libdir)|' \
5675 '|includedir=$(includedir)|' \
5676 '|VERSION=$(VERSION)|' \
5677 '|rootprefix=$(rootprefix)|' \
5678 '|udevlibexecdir=$(udevlibexecdir)|' \
5679 '|SUSHELL=$(SUSHELL)|' \
5680 '|DEBUGTTY=$(DEBUGTTY)|' \
5683 '|MKDIR_P=$(MKDIR_P)|' \
5684 '|QUOTAON=$(QUOTAON)|' \
5685 '|QUOTACHECK=$(QUOTACHECK)|' \
5686 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
5687 '|VARLOGDIR=$(varlogdir)|' \
5688 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
5689 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
5690 '|PYTHON=$(PYTHON)|' \
5691 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
5692 '|NTP_SERVERS=$(NTP_SERVERS)|' \
5693 '|DNS_SERVERS=$(DNS_SERVERS)|' \
5694 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
5695 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
5696 '|TTY_GID=$(TTY_GID)|' \
5697 '|systemsleepdir=$(systemsleepdir)|' \
5698 '|systemshutdowndir=$(systemshutdowndir)|' \
5699 '|binfmtdir=$(binfmtdir)|' \
5700 '|modulesloaddir=$(modulesloaddir)|'
5703 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
5704 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
5713 sysctl.d/%: sysctl.d/%.in
5722 src/core/macros.%: src/core/macros.%.in
5725 src/%.policy.in: src/%.policy.in.in
5728 shell-completion/%: shell-completion/%.in
5739 $(AM_V_GEN)chmod +x $@
5741 src/%.c: src/%.gperf
5742 $(AM_V_at)$(MKDIR_P) $(dir $@)
5743 $(AM_V_GPERF)$(GPERF) < $< > $@
5746 $(AM_V_at)$(MKDIR_P) $(dir $@)
5747 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5749 tmpfiles.d/%: tmpfiles.d/%.m4
5750 $(AM_V_at)$(MKDIR_P) $(dir $@)
5751 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5755 $(AM_V_at)$(MKDIR_P) $(dir $@)
5756 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
5758 units/user/%: units/%.m4
5759 $(AM_V_at)$(MKDIR_P) $(dir $@)
5760 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
5763 nodist_polkitpolicy_DATA = \
5764 $(polkitpolicy_files) \
5765 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
5769 $(polkitpolicy_in_files) \
5770 $(polkitpolicy_in_in_files)
5773 $(nodist_systemunit_DATA) \
5774 $(nodist_userunit_DATA) \
5775 $(pkgconfigdata_DATA) \
5776 $(pkgconfiglib_DATA) \
5777 $(nodist_polkitpolicy_DATA)
5779 # ------------------------------------------------------------------------------
5781 man/custom-entities.ent: configure.ac
5782 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
5783 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
5784 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
5788 man/custom-entities.ent
5793 --stringparam man.output.quietly 1 \
5794 --stringparam funcsynopsis.style ansi \
5795 --stringparam man.authors.section.enabled 0 \
5796 --stringparam man.copyright.section.enabled 0 \
5797 --stringparam systemd.version $(VERSION) \
5798 --path '$(builddir)/man:$(srcdir)/man'
5800 XSLTPROC_PROCESS_MAN = \
5801 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
5803 XSLTPROC_PROCESS_HTML = \
5804 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
5806 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
5807 $(XSLTPROC_PROCESS_MAN)
5809 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
5810 $(XSLTPROC_PROCESS_MAN)
5812 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
5813 $(XSLTPROC_PROCESS_MAN)
5815 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
5816 $(XSLTPROC_PROCESS_MAN)
5818 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
5819 $(XSLTPROC_PROCESS_MAN)
5821 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
5822 $(XSLTPROC_PROCESS_HTML)
5825 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
5831 man/custom-html.xsl \
5834 # ------------------------------------------------------------------------------
5837 docs/sysvinit/README
5842 docs/sysvinit/README: docs/sysvinit/README.in
5845 docs/var-log/README: docs/var-log/README.in
5849 docs/sysvinit/README \
5854 docs/sysvinit/README.in \
5855 docs/var-log/README.in
5857 SOCKETS_TARGET_WANTS += \
5858 systemd-initctl.socket \
5859 systemd-shutdownd.socket
5862 RUNLEVEL1_TARGET_WANTS += \
5863 systemd-update-utmp-runlevel.service
5864 RUNLEVEL2_TARGET_WANTS += \
5865 systemd-update-utmp-runlevel.service
5866 RUNLEVEL3_TARGET_WANTS += \
5867 systemd-update-utmp-runlevel.service
5868 RUNLEVEL4_TARGET_WANTS += \
5869 systemd-update-utmp-runlevel.service
5870 RUNLEVEL5_TARGET_WANTS += \
5871 systemd-update-utmp-runlevel.service
5874 SYSINIT_TARGET_WANTS += \
5875 systemd-update-utmp.service \
5876 systemd-update-done.service
5878 LOCAL_FS_TARGET_WANTS += \
5879 systemd-remount-fs.service \
5882 MULTI_USER_TARGET_WANTS += \
5884 systemd-ask-password-wall.path
5886 SYSINIT_TARGET_WANTS += \
5887 dev-hugepages.mount \
5889 sys-kernel-config.mount \
5890 sys-kernel-debug.mount \
5891 sys-fs-fuse-connections.mount \
5892 systemd-sysctl.service \
5893 systemd-ask-password-console.path
5896 SYSTEM_UNIT_ALIASES += \
5897 poweroff.target runlevel0.target \
5898 rescue.target runlevel1.target \
5899 multi-user.target runlevel2.target \
5900 multi-user.target runlevel3.target \
5901 multi-user.target runlevel4.target \
5902 graphical.target runlevel5.target \
5903 reboot.target runlevel6.target
5906 SYSTEM_UNIT_ALIASES += \
5907 graphical.target default.target \
5908 reboot.target ctrl-alt-del.target \
5909 getty@.service autovt@.service
5911 USER_UNIT_ALIASES += \
5912 $(systemunitdir)/shutdown.target shutdown.target \
5913 $(systemunitdir)/sockets.target sockets.target \
5914 $(systemunitdir)/timers.target timers.target \
5915 $(systemunitdir)/paths.target paths.target \
5916 $(systemunitdir)/bluetooth.target bluetooth.target \
5917 $(systemunitdir)/printer.target printer.target \
5918 $(systemunitdir)/sound.target sound.target \
5919 $(systemunitdir)/smartcard.target smartcard.target
5922 USER_UNIT_ALIASES += \
5923 $(systemunitdir)/busnames.target busnames.target
5926 GENERAL_ALIASES += \
5927 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
5928 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
5929 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
5930 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
5934 $(systemunitdir)/runlevel1.target.wants \
5935 $(systemunitdir)/runlevel2.target.wants \
5936 $(systemunitdir)/runlevel3.target.wants \
5937 $(systemunitdir)/runlevel4.target.wants \
5938 $(systemunitdir)/runlevel5.target.wants
5942 $(prefix)/lib/modules-load.d \
5943 $(sysconfdir)/modules-load.d \
5944 $(prefix)/lib/systemd/network \
5945 $(sysconfdir)/systemd/network \
5946 $(prefix)/lib/sysctl.d \
5947 $(sysconfdir)/sysctl.d \
5948 $(prefix)/lib/kernel/install.d \
5949 $(sysconfdir)/kernel/install.d \
5950 $(systemshutdowndir) \
5952 $(systemgeneratordir) \
5953 $(usergeneratordir) \
5956 $(pkgsysconfdir)/system \
5957 $(pkgsysconfdir)/system/multi-user.target.wants \
5958 $(pkgsysconfdir)/system/getty.target.wants \
5959 $(pkgsysconfdir)/user \
5960 $(dbussessionservicedir) \
5961 $(sysconfdir)/xdg/systemd
5963 install-exec-hook: $(INSTALL_EXEC_HOOKS)
5965 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
5967 install-data-hook: $(INSTALL_DATA_HOOKS)
5969 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
5971 clean-local: $(CLEAN_LOCAL_HOOKS)
5972 rm -rf $(abs_srcdir)/install-tree
5973 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
5974 $(abs_srcdir)/hwdb/iab.txt
5976 DISTCHECK_CONFIGURE_FLAGS = \
5977 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
5978 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
5979 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
5980 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
5981 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
5982 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
5983 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
5984 --with-rootprefix=$$dc_install_base \
5985 --disable-split-usr \
5987 --enable-compat-libs
5990 DISTCHECK_CONFIGURE_FLAGS += \
5991 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
5992 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
5994 DISTCHECK_CONFIGURE_FLAGS += \
5995 --with-sysvinit-path= \
5996 --with-sysvrcnd-path=
6000 DISTCHECK_CONFIGURE_FLAGS += \
6005 DISTCHECK_CONFIGURE_FLAGS += \
6010 # Require python when making dist
6012 .PHONY: dist-check-python
6015 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
6019 dist-check-compat-libs:
6020 if !ENABLE_COMPAT_LIBS
6021 @echo "*** compat-libs must be enabled in order to make dist"
6025 dist: dist-check-python dist-check-compat-libs
6027 # check "broken" platforms limited toolchains for link breakage before we release
6030 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
6034 ( cd $(top_srcdir)/hwdb && \
6035 wget -N http://www.linux-usb.org/usb.ids \
6036 http://pci-ids.ucw.cz/v2.2/pci.ids \
6037 http://standards.ieee.org/develop/regauth/oui/oui.txt \
6038 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
6041 .PHONY: kdbus-update
6043 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
6044 wget -N https://d-bus.googlecode.com/git/kdbus.h )
6048 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6050 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6052 upload: all check dist
6053 scp systemd-$(VERSION).tar.xz $(www_target)
6056 doc-sync: all destdir-sphinx
6057 gtkdoc-rebase --html-dir=docs/libudev/html --online
6058 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
6059 gtkdoc-rebase --html-dir=docs/gudev/html --online
6060 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
6061 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6062 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
6066 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
6067 scp man/*.html tango:public/systemd-man/
6069 .PHONY: install-tree
6071 rm -rf $(abs_srcdir)/install-tree
6072 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6073 tree $(abs_srcdir)/install-tree
6075 # Let's run all tests of the test suite, but under valgrind. Let's
6076 # exclude the one perl script we have in there
6077 .PHONY: valgrind-tests
6078 valgrind-tests: $(TESTS)
6079 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
6080 if file $$f | grep -q shell; then \
6081 echo -e "$${x}Skipping non-binary $$f"; else \
6082 echo -e "$${x}Running $$f"; \
6083 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6088 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6090 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6091 $(AM_V_GEN)cat $^ > $@
6093 .PHONY: check-api-docs
6094 check-api-docs: exported man
6095 $(AM_V_GEN)for symbol in `cat exported` ; do \
6096 if test -f $(builddir)/man/$$symbol.html ; then \
6097 echo " Symbol $$symbol() is documented." ; \
6099 echo "‣ Symbol $$symbol() lacks documentation." ; \
6103 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6104 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6106 undefined defined: $(ALL_OBJECTS)
6107 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6108 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6109 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6115 .PHONY: check-api-unused
6116 check-api-unused: defined undefined exported
6117 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6119 .PHONY: check-includes
6120 check-includes: $(top_srcdir)/tools/check-includes.pl
6121 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6122 | xargs $(top_srcdir)/tools/check-includes.pl
6125 $(top_srcdir)/tools/check-includes.pl
6127 # Stupid test that everything purported to be exported really is
6128 define generate-sym-test
6129 $(AM_V_at)$(MKDIR_P) $(dir $@)
6130 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6131 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6132 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6133 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6134 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6135 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6136 $(AM_V_at)printf 'return 0; }\n' >> $@
6139 test-libsystemd-sym.c: \
6140 $(top_builddir)/src/libsystemd/libsystemd.sym \
6141 src/systemd/sd-journal.h \
6142 src/systemd/sd-daemon.h \
6143 src/systemd/sd-login.h \
6144 src/systemd/sd-bus.h \
6145 src/systemd/sd-utf8.h \
6146 src/systemd/sd-resolve.h \
6147 src/systemd/sd-path.h
6148 $(generate-sym-test)
6150 test-libudev-sym.c: \
6151 src/libudev/libudev.sym \
6153 $(generate-sym-test)
6155 test_libsystemd_sym_SOURCES = \
6156 test-libsystemd-sym.c
6157 test_libsystemd_sym_LDADD = \
6160 test_libudev_sym_SOURCES = \
6162 test_libudev_sym_CFLAGS = \
6164 -Wno-deprecated-declarations
6165 test_libudev_sym_LDADD = \
6169 $(test_libsystemd_sym_SOURCES) \
6170 $(test_libudev_sym_SOURCES)
6173 test-libsystemd-sym \
6178 cppcheck --enable=all -q $(top_srcdir)
6180 # Used to extract compile flags for YCM.
6185 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u