1 # -*- Mode: makefile; indent-tabs-mode: t -*-
3 # This file is part of systemd.
5 # Copyright 2010-2012 Lennart Poettering
6 # Copyright 2010-2012 Kay Sievers
7 # Copyright 2013 Zbigniew Jędrzejewski-Szmek
8 # Copyright 2013 David Strauss
10 # systemd is free software; you can redistribute it and/or modify it
11 # under the terms of the GNU Lesser General Public License as published by
12 # the Free Software Foundation; either version 2.1 of the License, or
13 # (at your option) any later version.
15 # systemd is distributed in the hope that it will be useful, but
16 # WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 # Lesser General Public License for more details.
20 # You should have received a copy of the GNU Lesser General Public License
21 # along with systemd; If not, see <http://www.gnu.org/licenses/>.
23 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
24 AM_MAKEFLAGS = --no-print-directory
25 AUTOMAKE_OPTIONS = color-tests parallel-tests
29 # remove targets if the command fails
32 # keep intermediate files
35 # Keep the test-suite.log
36 .PRECIOUS: $(TEST_SUITE_LOG) Makefile
50 # The following four libraries only exist for compatibility reasons,
51 # their version info should not be bumped anymore
52 LIBSYSTEMD_LOGIN_CURRENT=9
53 LIBSYSTEMD_LOGIN_REVISION=3
54 LIBSYSTEMD_LOGIN_AGE=9
56 LIBSYSTEMD_DAEMON_CURRENT=0
57 LIBSYSTEMD_DAEMON_REVISION=12
58 LIBSYSTEMD_DAEMON_AGE=0
60 LIBSYSTEMD_ID128_CURRENT=0
61 LIBSYSTEMD_ID128_REVISION=28
62 LIBSYSTEMD_ID128_AGE=0
64 LIBSYSTEMD_JOURNAL_CURRENT=11
65 LIBSYSTEMD_JOURNAL_REVISION=5
66 LIBSYSTEMD_JOURNAL_AGE=11
68 # Dirs of external packages
69 dbuspolicydir=@dbuspolicydir@
70 dbussessionservicedir=@dbussessionservicedir@
71 dbussystemservicedir=@dbussystemservicedir@
73 pamconfdir=@pamconfdir@
74 pkgconfigdatadir=$(datadir)/pkgconfig
75 pkgconfiglibdir=$(libdir)/pkgconfig
76 polkitpolicydir=$(datadir)/polkit-1/actions
77 bashcompletiondir=@bashcompletiondir@
78 zshcompletiondir=@zshcompletiondir@
79 rpmmacrosdir=$(prefix)/lib/rpm/macros.d
80 sysvinitdir=$(SYSTEM_SYSVINIT_PATH)
81 sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
82 varlogdir=$(localstatedir)/log
83 systemdstatedir=$(localstatedir)/lib/systemd
84 catalogstatedir=$(systemdstatedir)/catalog
86 # Our own, non-special dirs
87 pkgsysconfdir=$(sysconfdir)/systemd
88 userunitdir=$(prefix)/lib/systemd/user
89 userpresetdir=$(prefix)/lib/systemd/user-preset
90 tmpfilesdir=$(prefix)/lib/tmpfiles.d
91 sysusersdir=$(prefix)/lib/sysusers.d
92 sysctldir=$(prefix)/lib/sysctl.d
93 networkdir=$(rootprefix)/lib/systemd/network
94 pkgincludedir=$(includedir)/systemd
95 systemgeneratordir=$(rootlibexecdir)/system-generators
96 usergeneratordir=$(prefix)/lib/systemd/user-generators
97 systemshutdowndir=$(rootlibexecdir)/system-shutdown
98 systemsleepdir=$(rootlibexecdir)/system-sleep
99 systemunitdir=$(rootprefix)/lib/systemd/system
100 systempresetdir=$(rootprefix)/lib/systemd/system-preset
101 udevlibexecdir=$(rootprefix)/lib/udev
102 udevhomedir=$(udevlibexecdir)
103 udevrulesdir=$(udevlibexecdir)/rules.d
104 udevhwdbdir=$(udevlibexecdir)/hwdb.d
105 catalogdir=$(prefix)/lib/systemd/catalog
106 kernelinstalldir = $(prefix)/lib/kernel/install.d
107 ntpunitsdir=$(prefix)/lib/systemd/ntp-units.d
109 # And these are the special ones for /
110 rootprefix=@rootprefix@
111 rootbindir=$(rootprefix)/bin
112 rootlibexecdir=$(rootprefix)/lib/systemd
114 CLEANFILES = $(BUILT_SOURCES)
119 UNINSTALL_EXEC_HOOKS =
121 UNINSTALL_DATA_HOOKS =
122 DISTCLEAN_LOCAL_HOOKS =
130 polkitpolicy_in_in_files =
131 polkitpolicy_in_files =
133 dist_udevrules_DATA =
134 nodist_udevrules_DATA =
135 nodist_pkgsysconf_DATA =
136 dist_pkgsysconf_DATA =
138 dist_dbuspolicy_DATA =
139 dist_dbussystemservice_DATA =
145 noinst_PROGRAMS = $(manual_tests) $(tests)
151 udevlibexec_PROGRAMS =
153 .PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \
154 $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \
155 $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS)
158 -include $(top_builddir)/config.h \
159 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
160 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
161 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
162 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
163 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
164 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
165 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
166 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
167 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
168 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
169 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
170 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
171 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
172 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
173 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
174 -DROOTPREFIX=\"$(rootprefix)\" \
175 -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \
176 -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
177 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
178 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
179 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
180 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
181 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
182 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
183 -DX_SERVER=\"$(bindir)/X\" \
184 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
185 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
186 -DQUOTACHECK=\"$(QUOTACHECK)\" \
187 -DKEXEC=\"$(KEXEC)\" \
188 -I $(top_srcdir)/src \
189 -I $(top_builddir)/src/shared \
190 -I $(top_srcdir)/src/shared \
191 -I $(top_srcdir)/src/network \
192 -I $(top_srcdir)/src/login \
193 -I $(top_srcdir)/src/journal \
194 -I $(top_srcdir)/src/timedate \
195 -I $(top_srcdir)/src/timesync \
196 -I $(top_srcdir)/src/resolve \
197 -I $(top_srcdir)/src/systemd \
198 -I $(top_builddir)/src/core \
199 -I $(top_srcdir)/src/core \
200 -I $(top_srcdir)/src/libudev \
201 -I $(top_srcdir)/src/udev \
202 -I $(top_srcdir)/src/udev/net \
203 -I $(top_builddir)/src/udev \
204 -I $(top_srcdir)/src/libsystemd/sd-bus \
205 -I $(top_srcdir)/src/libsystemd/sd-event \
206 -I $(top_srcdir)/src/libsystemd/sd-rtnl \
207 -I $(top_srcdir)/src/libsystemd-network \
210 AM_CFLAGS = $(OUR_CFLAGS)
211 AM_LDFLAGS = $(OUR_LDFLAGS)
213 # ------------------------------------------------------------------------------
214 define move-to-rootlibdir
215 if test "$(libdir)" != "$(rootlibdir)"; then \
216 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
217 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
218 rm -f $(DESTDIR)$(libdir)/$$libname && \
219 $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
220 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
226 RUNLEVEL1_TARGET_WANTS =
227 RUNLEVEL2_TARGET_WANTS =
228 RUNLEVEL3_TARGET_WANTS =
229 RUNLEVEL4_TARGET_WANTS =
230 RUNLEVEL5_TARGET_WANTS =
231 SHUTDOWN_TARGET_WANTS =
232 LOCAL_FS_TARGET_WANTS =
233 MULTI_USER_TARGET_WANTS =
234 SYSINIT_TARGET_WANTS =
235 SOCKETS_TARGET_WANTS =
236 BUSNAMES_TARGET_WANTS =
237 TIMERS_TARGET_WANTS =
238 USER_SOCKETS_TARGET_WANTS =
239 USER_BUSNAMES_TARGET_WANTS =
241 SYSTEM_UNIT_ALIASES =
245 install-target-wants-hook:
246 what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && dir=$(systemunitdir) && $(add-wants)
247 what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && dir=$(systemunitdir) && $(add-wants)
248 what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && dir=$(systemunitdir) && $(add-wants)
249 what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && dir=$(systemunitdir) && $(add-wants)
250 what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && dir=$(systemunitdir) && $(add-wants)
251 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
252 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
253 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
254 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
255 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
256 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
257 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
258 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
259 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
260 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
263 [ -z "$$what" ] || ( \
264 dir=$(DESTDIR)$$dir/$$wants.wants && \
265 $(MKDIR_P) -m 0755 $$dir && \
268 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
271 install-directories-hook:
272 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
274 install-aliases-hook:
275 set -- $(SYSTEM_UNIT_ALIASES) && \
276 dir=$(systemunitdir) && $(install-aliases)
277 set -- $(USER_UNIT_ALIASES) && \
278 dir=$(userunitdir) && $(install-relative-aliases)
279 set -- $(GENERAL_ALIASES) && \
280 dir= && $(install-relative-aliases)
282 define install-aliases
283 while [ -n "$$1" ]; do \
284 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
285 rm -f $(DESTDIR)$$dir/$$2 && \
286 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
287 shift 2 || exit $$?; \
291 define install-relative-aliases
292 while [ -n "$$1" ]; do \
293 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
294 rm -f $(DESTDIR)$$dir/$$2 && \
295 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
296 shift 2 || exit $$?; \
300 install-touch-usr-hook:
301 touch -c $(DESTDIR)/$(prefix)
303 INSTALL_EXEC_HOOKS += \
304 install-target-wants-hook \
305 install-directories-hook \
306 install-aliases-hook \
307 install-touch-usr-hook
309 # ------------------------------------------------------------------------------
310 AM_V_M4 = $(AM_V_M4_$(V))
311 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
312 AM_V_M4_0 = @echo " M4 " $@;
314 AM_V_XSLT = $(AM_V_XSLT_$(V))
315 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
316 AM_V_XSLT_0 = @echo " XSLT " $@;
318 AM_V_GPERF = $(AM_V_GPERF_$(V))
319 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
320 AM_V_GPERF_0 = @echo " GPERF " $@;
322 AM_V_LN = $(AM_V_LN_$(V))
323 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
324 AM_V_LN_0 = @echo " LN " $@;
326 AM_V_RM = $(AM_V_RM_$(V))
327 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
328 AM_V_RM_0 = @echo " RM " $@;
330 # ------------------------------------------------------------------------------
334 systemd-ask-password \
335 systemd-tty-ask-password-agent \
336 systemd-machine-id-setup
342 systemd-detect-virt \
348 src/kernel-install/kernel-install
350 dist_kernelinstall_SCRIPTS = \
351 src/kernel-install/50-depmod.install \
352 src/kernel-install/90-loaderentry.install
354 rootlibexec_PROGRAMS = \
356 systemd-cgroups-agent \
358 systemd-update-utmp \
362 systemd-reply-password \
368 systemd-socket-proxyd \
371 systemgenerator_PROGRAMS = \
372 systemd-getty-generator \
373 systemd-fstab-generator \
374 systemd-system-update-generator \
375 systemd-debug-generator
377 dist_bashcompletion_DATA = \
378 shell-completion/bash/busctl \
379 shell-completion/bash/journalctl \
380 shell-completion/bash/systemctl \
381 shell-completion/bash/systemd-analyze \
382 shell-completion/bash/systemd-cat \
383 shell-completion/bash/systemd-cgls \
384 shell-completion/bash/systemd-cgtop \
385 shell-completion/bash/systemd-delta \
386 shell-completion/bash/systemd-detect-virt \
387 shell-completion/bash/systemd-nspawn \
388 shell-completion/bash/systemd-run \
389 shell-completion/bash/udevadm \
390 shell-completion/bash/kernel-install
392 dist_zshcompletion_DATA = \
393 shell-completion/zsh/_systemctl \
394 shell-completion/zsh/_journalctl \
395 shell-completion/zsh/_udevadm \
396 shell-completion/zsh/_kernel-install \
397 shell-completion/zsh/_systemd-nspawn \
398 shell-completion/zsh/_systemd-analyze \
399 shell-completion/zsh/_systemd-run \
400 shell-completion/zsh/_sd_hosts_or_user_at_host \
401 shell-completion/zsh/_systemd-delta \
402 shell-completion/zsh/_systemd
405 sysctl.d/50-default.conf
407 dist_systemunit_DATA = \
408 units/graphical.target \
409 units/multi-user.target \
410 units/emergency.service \
411 units/emergency.target \
412 units/sysinit.target \
417 units/local-fs.target \
418 units/local-fs-pre.target \
419 units/initrd.target \
420 units/initrd-fs.target \
421 units/initrd-root-fs.target \
422 units/remote-fs.target \
423 units/remote-fs-pre.target \
424 units/network.target \
425 units/network-pre.target \
426 units/network-online.target \
427 units/nss-lookup.target \
428 units/nss-user-lookup.target \
429 units/hibernate.target \
430 units/hybrid-sleep.target \
431 units/poweroff.target \
432 units/reboot.target \
433 units/rescue.target \
434 units/rpcbind.target \
435 units/time-sync.target \
436 units/shutdown.target \
438 units/umount.target \
439 units/sigpwr.target \
441 units/sockets.target \
442 units/busnames.target \
443 units/timers.target \
445 units/suspend.target \
447 units/slices.target \
450 units/systemd-initctl.socket \
451 units/systemd-shutdownd.socket \
452 units/syslog.socket \
453 units/dev-hugepages.mount \
454 units/dev-mqueue.mount \
455 units/sys-kernel-config.mount \
456 units/sys-kernel-debug.mount \
457 units/sys-fs-fuse-connections.mount \
459 units/printer.target \
461 units/bluetooth.target \
462 units/smartcard.target \
463 units/systemd-ask-password-wall.path \
464 units/systemd-ask-password-console.path \
465 units/systemd-udevd-control.socket \
466 units/systemd-udevd-kernel.socket \
467 units/system-update.target \
468 units/initrd-switch-root.target \
469 units/ldconfig.service
471 nodist_systemunit_DATA = \
472 units/getty@.service \
473 units/serial-getty@.service \
474 units/console-shell.service \
475 units/console-getty.service \
476 units/container-getty@.service \
477 units/systemd-initctl.service \
478 units/systemd-shutdownd.service \
479 units/systemd-remount-fs.service \
480 units/systemd-update-utmp.service \
481 units/systemd-update-utmp-runlevel.service \
482 units/systemd-ask-password-wall.service \
483 units/systemd-ask-password-console.service \
484 units/systemd-sysctl.service \
485 units/emergency.service \
486 units/rescue.service \
487 units/user@.service \
488 units/systemd-hibernate.service \
489 units/systemd-hybrid-sleep.service \
490 units/systemd-suspend.service \
491 units/systemd-halt.service \
492 units/systemd-poweroff.service \
493 units/systemd-reboot.service \
494 units/systemd-kexec.service \
495 units/systemd-fsck@.service \
496 units/systemd-fsck-root.service \
497 units/systemd-udevd.service \
498 units/systemd-udev-trigger.service \
499 units/systemd-udev-settle.service \
500 units/systemd-udev-hwdb-update.service \
501 units/debug-shell.service \
502 units/initrd-parse-etc.service \
503 units/initrd-cleanup.service \
504 units/initrd-udevadm-cleanup-db.service \
505 units/initrd-switch-root.service \
506 units/systemd-nspawn@.service \
507 units/systemd-update-done.service
509 dist_userunit_DATA = \
510 units/user/basic.target \
511 units/user/default.target \
512 units/user/exit.target
514 nodist_userunit_DATA = \
515 units/user/systemd-exit.service
517 dist_systempreset_DATA = \
518 system-preset/90-systemd.preset
521 units/getty@.service.m4 \
522 units/serial-getty@.service.m4 \
523 units/console-shell.service.m4.in \
524 units/console-getty.service.m4.in \
525 units/container-getty@.service.m4.in \
526 units/rescue.service.m4.in \
527 units/systemd-initctl.service.in \
528 units/systemd-shutdownd.service.in \
529 units/systemd-remount-fs.service.in \
530 units/systemd-update-utmp.service.in \
531 units/systemd-update-utmp-runlevel.service.in \
532 units/systemd-ask-password-wall.service.in \
533 units/systemd-ask-password-console.service.in \
534 units/systemd-sysctl.service.in \
535 units/emergency.service.in \
536 units/systemd-halt.service.in \
537 units/systemd-poweroff.service.in \
538 units/systemd-reboot.service.in \
539 units/systemd-kexec.service.in \
540 units/user/systemd-exit.service.in \
541 units/systemd-fsck@.service.in \
542 units/systemd-fsck-root.service.in \
543 units/user@.service.in \
544 units/debug-shell.service.in \
545 units/systemd-hibernate.service.in \
546 units/systemd-hybrid-sleep.service.in \
547 units/systemd-suspend.service.in \
548 units/quotaon.service.in \
549 units/initrd-parse-etc.service.in \
550 units/initrd-cleanup.service.in \
551 units/initrd-udevadm-cleanup-db.service.in \
552 units/initrd-switch-root.service.in \
553 units/systemd-nspawn@.service.in \
554 units/systemd-update-done.service.in
557 units/console-shell.service.m4 \
558 units/console-getty.service.m4 \
559 units/container-getty@.service.m4 \
560 units/rescue.service.m4 \
561 units/user@.service.m4
564 nodist_systemunit_DATA += \
565 units/rc-local.service \
566 units/halt-local.service
568 systemgenerator_PROGRAMS += \
569 systemd-sysv-generator \
570 systemd-rc-local-generator
574 units/rc-local.service.in \
575 units/halt-local.service.in
577 # automake is broken and can't handle files with a dash in front
578 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
580 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
582 units-uninstall-hook:
583 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
585 INSTALL_DATA_HOOKS += units-install-hook
586 UNINSTALL_DATA_HOOKS += units-uninstall-hook
595 src/libsystemd/sd-bus/PORTING-DBUS1 \
596 src/libsystemd/sd-bus/DIFFERENCES \
597 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
599 @INTLTOOL_POLICY_RULE@
601 # ------------------------------------------------------------------------------
606 include Makefile-man.am
608 .PHONY: man update-man-list
609 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
612 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
614 ${XML_FILES:.xml=.html}
616 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
633 $(AM_V_at)$(MKDIR_P) $(dir $@)
634 $(AM_V_LN)$(LN_S) -f ../../man $@
643 man/index.html: man/systemd.index.html
644 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
652 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
653 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
654 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
656 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB)
657 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
658 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
659 @echo "Makefile-man.am has been regenerated"
661 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
662 $(AM_V_at)$(MKDIR_P) $(dir $@)
663 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
665 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py $(SOURCE_XML_FILES)
666 $(AM_V_at)$(MKDIR_P) $(dir $@)
667 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
670 man/systemd.index.xml \
672 man/systemd.directives.xml
675 man/systemd.index.xml \
676 man/systemd.directives.xml
687 tools/make-man-index.py \
688 tools/make-directive-index.py \
689 tools/make-man-rules.py \
692 # ------------------------------------------------------------------------------
693 noinst_LTLIBRARIES += \
696 libsystemd_shared_la_SOURCES = \
697 src/shared/linux/auto_dev-ioctl.h \
698 src/shared/linux/fanotify.h \
699 src/shared/ioprio.h \
700 src/shared/missing.h \
701 src/shared/initreq.h \
702 src/shared/securebits.h \
703 src/shared/special.h \
707 src/shared/sparse-endian.h \
708 src/shared/refcnt.h \
709 src/shared/udev-util.h \
710 src/shared/bus-errors.h \
711 src/shared/device-nodes.c \
712 src/shared/device-nodes.h \
717 src/shared/architecture.c \
718 src/shared/architecture.h \
719 src/shared/efivars.c \
720 src/shared/efivars.h \
721 src/shared/path-util.c \
722 src/shared/path-util.h \
723 src/shared/time-util.c \
724 src/shared/time-util.h \
725 src/shared/hashmap.c \
726 src/shared/hashmap.h \
727 src/shared/siphash24.c \
728 src/shared/siphash24.h \
735 src/shared/sleep-config.c \
736 src/shared/sleep-config.h \
739 src/shared/env-util.c \
740 src/shared/env-util.h \
741 src/shared/strbuf.c \
742 src/shared/strbuf.h \
743 src/shared/strxcpyx.c \
744 src/shared/strxcpyx.h \
745 src/shared/conf-parser.c \
746 src/shared/conf-parser.h \
749 src/shared/ratelimit.h \
750 src/shared/ratelimit.c \
751 src/shared/exit-status.c \
752 src/shared/exit-status.h \
755 src/shared/gunicode.c \
756 src/shared/gunicode.h \
759 src/shared/socket-util.c \
760 src/shared/socket-util.h \
761 src/shared/conf-files.c \
762 src/shared/conf-files.h \
763 src/shared/cgroup-util.c \
764 src/shared/cgroup-util.h \
765 src/shared/cgroup-show.c \
766 src/shared/cgroup-show.h \
767 src/shared/unit-name.c \
768 src/shared/unit-name.h \
769 src/shared/utmp-wtmp.c \
770 src/shared/utmp-wtmp.h \
771 src/shared/watchdog.c \
772 src/shared/watchdog.h \
773 src/shared/spawn-ask-password-agent.c \
774 src/shared/spawn-ask-password-agent.h \
775 src/shared/replace-var.c \
776 src/shared/replace-var.h \
777 src/shared/spawn-polkit-agent.c \
778 src/shared/spawn-polkit-agent.h \
779 src/shared/clock-util.c \
780 src/shared/clock-util.h \
781 src/shared/time-dst.c \
782 src/shared/time-dst.h \
783 src/shared/calendarspec.c \
784 src/shared/calendarspec.h \
785 src/shared/fileio.c \
786 src/shared/fileio.h \
787 src/shared/output-mode.h \
788 src/shared/MurmurHash2.c \
789 src/shared/MurmurHash2.h \
790 src/shared/acpi-fpdt.h \
791 src/shared/acpi-fpdt.c \
792 src/shared/boot-timestamps.h \
793 src/shared/boot-timestamps.c \
796 src/shared/smack-util.c \
797 src/shared/smack-util.h \
798 src/shared/apparmor-util.c \
799 src/shared/apparmor-util.h \
800 src/shared/ima-util.c \
801 src/shared/ima-util.h \
802 src/shared/ptyfwd.c \
803 src/shared/ptyfwd.h \
804 src/shared/errno-list.c \
805 src/shared/errno-list.h \
806 src/shared/af-list.c \
807 src/shared/af-list.h \
812 src/shared/condition-util.c \
813 src/shared/condition-util.h \
814 src/shared/bus-label.c \
815 src/shared/bus-label.h \
817 src/shared/generator.h \
818 src/shared/generator.c \
819 src/shared/clean-ipc.h \
820 src/shared/clean-ipc.c \
821 src/shared/login-shared.c \
822 src/shared/login-shared.h \
827 src/shared/eventfd-util.c \
828 src/shared/eventfd-util.h \
831 src/shared/base-filesystem.c \
832 src/shared/base-filesystem.h
834 nodist_libsystemd_shared_la_SOURCES = \
835 src/shared/errno-from-name.h \
836 src/shared/errno-to-name.h \
837 src/shared/af-from-name.h \
838 src/shared/af-to-name.h
840 libsystemd_shared_la_CFLAGS = \
845 # ------------------------------------------------------------------------------
846 noinst_LTLIBRARIES += \
849 libsystemd_units_la_SOURCES = \
850 src/shared/install.c \
851 src/shared/install.h \
852 src/shared/install-printf.c \
853 src/shared/install-printf.h \
854 src/shared/path-lookup.c \
855 src/shared/path-lookup.h \
856 src/shared/specifier.c \
857 src/shared/specifier.h
859 # ------------------------------------------------------------------------------
860 noinst_LTLIBRARIES += \
863 libsystemd_label_la_SOURCES = \
864 src/shared/socket-label.c \
867 src/shared/selinux-util.c \
868 src/shared/selinux-util.h \
869 src/shared/mkdir-label.c \
870 src/shared/ask-password-api.c \
871 src/shared/ask-password-api.h \
872 src/shared/fileio-label.c \
873 src/shared/fileio-label.h \
874 src/shared/dev-setup.c \
875 src/shared/dev-setup.h
877 libsystemd_label_la_CFLAGS = \
881 libsystemd_label_la_LIBADD = \
884 # ------------------------------------------------------------------------------
887 noinst_LTLIBRARIES += \
888 libsystemd-seccomp.la
890 libsystemd_seccomp_la_SOURCES = \
891 src/shared/seccomp-util.h \
892 src/shared/seccomp-util.c
894 libsystemd_seccomp_la_CFLAGS = \
898 libsystemd_seccomp_la_LIBADD = \
902 # ------------------------------------------------------------------------------
903 noinst_LTLIBRARIES += \
906 libsystemd_logs_la_SOURCES = \
907 src/shared/logs-show.c \
908 src/shared/logs-show.h
910 # ------------------------------------------------------------------------------
911 noinst_LTLIBRARIES += \
912 libsystemd-capability.la
914 libsystemd_capability_la_SOURCES = \
915 src/shared/capability.c \
916 src/shared/capability.h
918 libsystemd_capability_la_CFLAGS = \
922 libsystemd_capability_la_LIBADD = \
925 # ------------------------------------------------------------------------------
927 noinst_LTLIBRARIES += \
930 libsystemd_acl_la_SOURCES = \
931 src/shared/acl-util.c \
932 src/shared/acl-util.h
934 libsystemd_acl_la_CFLAGS = \
938 libsystemd_acl_la_LIBADD = \
942 # ------------------------------------------------------------------------------
943 noinst_LTLIBRARIES += \
946 libsystemd_core_la_SOURCES = \
949 src/core/unit-printf.c \
950 src/core/unit-printf.h \
955 src/core/transaction.c \
956 src/core/transaction.h \
957 src/core/load-fragment.c \
958 src/core/load-fragment.h \
967 src/core/snapshot.c \
968 src/core/snapshot.h \
973 src/core/automount.c \
974 src/core/automount.h \
985 src/core/load-dropin.c \
986 src/core/load-dropin.h \
993 src/core/dbus-manager.c \
994 src/core/dbus-manager.h \
995 src/core/dbus-unit.c \
996 src/core/dbus-unit.h \
997 src/core/dbus-job.c \
998 src/core/dbus-job.h \
999 src/core/dbus-service.c \
1000 src/core/dbus-service.h \
1001 src/core/dbus-socket.c \
1002 src/core/dbus-socket.h \
1003 src/core/dbus-busname.c \
1004 src/core/dbus-busname.h \
1005 src/core/dbus-target.c \
1006 src/core/dbus-target.h \
1007 src/core/dbus-snapshot.c \
1008 src/core/dbus-snapshot.h \
1009 src/core/dbus-device.c \
1010 src/core/dbus-device.h \
1011 src/core/dbus-mount.c \
1012 src/core/dbus-mount.h \
1013 src/core/dbus-automount.c \
1014 src/core/dbus-automount.h \
1015 src/core/dbus-swap.c \
1016 src/core/dbus-swap.h \
1017 src/core/dbus-timer.c \
1018 src/core/dbus-timer.h \
1019 src/core/dbus-path.c \
1020 src/core/dbus-path.h \
1021 src/core/dbus-slice.c \
1022 src/core/dbus-slice.h \
1023 src/core/dbus-scope.c \
1024 src/core/dbus-scope.h \
1025 src/core/dbus-execute.c \
1026 src/core/dbus-execute.h \
1027 src/core/dbus-kill.c \
1028 src/core/dbus-kill.h \
1029 src/core/dbus-cgroup.c \
1030 src/core/dbus-cgroup.h \
1033 src/core/selinux-access.c \
1034 src/core/selinux-access.h \
1035 src/core/selinux-setup.c \
1036 src/core/selinux-setup.h \
1037 src/core/smack-setup.c \
1038 src/core/smack-setup.h \
1039 src/core/ima-setup.c \
1040 src/core/ima-setup.h \
1041 src/core/locale-setup.h \
1042 src/core/locale-setup.c \
1043 src/core/hostname-setup.c \
1044 src/core/hostname-setup.h \
1045 src/core/machine-id-setup.c \
1046 src/core/machine-id-setup.h \
1047 src/core/mount-setup.c \
1048 src/core/mount-setup.h \
1049 src/core/loopback-setup.h \
1050 src/core/loopback-setup.c \
1051 src/core/condition.c \
1052 src/core/condition.h \
1053 src/core/namespace.c \
1054 src/core/namespace.h \
1056 src/core/sysfs-show.h \
1057 src/core/switch-root.h \
1058 src/core/switch-root.c \
1059 src/core/killall.h \
1060 src/core/killall.c \
1061 src/core/audit-fd.c \
1062 src/core/audit-fd.h \
1063 src/core/show-status.c \
1064 src/core/show-status.h
1067 libsystemd_core_la_SOURCES += \
1068 src/core/kmod-setup.c \
1069 src/core/kmod-setup.h
1072 nodist_libsystemd_core_la_SOURCES = \
1073 src/core/load-fragment-gperf.c \
1074 src/core/load-fragment-gperf-nulstr.c
1076 libsystemd_core_la_CFLAGS = \
1082 $(APPARMOR_CFLAGS) \
1086 libsystemd_core_la_LIBADD = \
1087 libsystemd-capability.la \
1088 libsystemd-units.la \
1089 libsystemd-label.la \
1090 libudev-internal.la \
1091 libsystemd-shared.la \
1092 libsystemd-internal.la \
1101 libsystemd_core_la_LIBADD += \
1102 libsystemd-seccomp.la
1105 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1106 $(AM_V_at)$(MKDIR_P) $(dir $@)
1107 $(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 ";" }' < $< > $@
1110 src/core/load-fragment-gperf.gperf.m4
1113 src/core/load-fragment-gperf.gperf \
1114 src/core/load-fragment-gperf.c \
1115 src/core/load-fragment-gperf-nulstr.c \
1116 src/shared/errno-list.txt \
1117 src/shared/errno-from-name.gperf \
1118 src/shared/af-list.txt \
1119 src/shared/af-from-name.gperf
1122 src/shared/errno-from-name.h \
1123 src/shared/errno-to-name.h \
1124 src/shared/af-from-name.h \
1125 src/shared/af-to-name.h
1127 src/shared/errno-list.txt:
1128 $(AM_V_at)$(MKDIR_P) $(dir $@)
1129 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - < /dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' > $@
1131 src/shared/errno-from-name.gperf: src/shared/errno-list.txt
1132 $(AM_V_at)$(MKDIR_P) $(dir $@)
1133 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct errno_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' < $< > $@
1135 src/shared/errno-from-name.h: src/shared/errno-from-name.gperf
1136 $(AM_V_at)$(MKDIR_P) $(dir $@)
1137 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_errno -H hash_errno_name -p -C < $< > $@
1139 src/shared/errno-to-name.h: src/shared/errno-list.txt
1140 $(AM_V_at)$(MKDIR_P) $(dir $@)
1141 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' < $< > $@
1143 src/shared/af-list.txt:
1144 $(AM_V_at)$(MKDIR_P) $(dir $@)
1145 $(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; }' > $@
1147 src/shared/af-from-name.gperf: src/shared/af-list.txt
1148 $(AM_V_at)$(MKDIR_P) $(dir $@)
1149 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct af_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' < $< > $@
1151 src/shared/af-from-name.h: src/shared/af-from-name.gperf
1152 $(AM_V_at)$(MKDIR_P) $(dir $@)
1153 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_af -H hash_af_name -p -C < $< > $@
1155 src/shared/af-to-name.h: src/shared/af-list.txt
1156 $(AM_V_at)$(MKDIR_P) $(dir $@)
1157 $(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 "};"}' < $< > $@
1159 # ------------------------------------------------------------------------------
1168 libsystemd-core.la \
1171 dist_pkgsysconf_DATA += \
1172 src/core/system.conf \
1175 dist_dbuspolicy_DATA += \
1176 src/core/org.freedesktop.systemd1.conf
1178 dist_dbussystemservice_DATA += \
1179 src/core/org.freedesktop.systemd1.service
1181 polkitpolicy_in_in_files += \
1182 src/core/org.freedesktop.systemd1.policy.in.in
1184 pkgconfigdata_DATA = \
1187 nodist_rpmmacros_DATA = \
1188 src/core/macros.systemd
1191 src/core/systemd.pc.in \
1192 src/core/macros.systemd.in
1195 src/core/macros.systemd \
1196 src/core/org.freedesktop.systemd1.policy.in
1198 # ------------------------------------------------------------------------------
1237 test-strip-tab-ansi \
1256 test/sched_idle_bad.service \
1257 test/sched_idle_ok.service \
1258 test/sched_rr_bad.service \
1259 test/sched_rr_ok.service \
1260 test/sched_rr_change.service \
1262 test/daughter.service \
1266 src/test/test-helper.h
1268 test_device_nodes_SOURCES = \
1269 src/test/test-device-nodes.c
1271 test_device_nodes_LDADD = \
1272 libsystemd-shared.la
1274 test_engine_SOURCES = \
1275 src/test/test-engine.c
1277 test_engine_CFLAGS = \
1281 test_engine_LDADD = \
1282 libsystemd-core.la \
1285 test_job_type_SOURCES = \
1286 src/test/test-job-type.c
1288 test_job_type_CFLAGS = \
1292 test_job_type_LDADD = \
1293 libsystemd-core.la \
1306 test_loopback_SOURCES = \
1307 src/test/test-loopback.c
1309 test_loopback_LDADD = \
1312 test_hostname_SOURCES = \
1313 src/test/test-hostname.c
1315 test_hostname_LDADD = \
1322 test_boot_timestamp_SOURCES = \
1323 src/test/test-boot-timestamps.c
1325 test_boot_timestamp_LDADD = \
1326 libsystemd-shared.la
1329 test_unit_name_SOURCES = \
1330 src/test/test-unit-name.c
1332 test_unit_name_CFLAGS = \
1336 test_unit_name_LDADD = \
1337 libsystemd-core.la \
1340 test_unit_file_SOURCES = \
1341 src/test/test-unit-file.c
1343 test_unit_file_CFLAGS = \
1347 test_unit_file_LDADD = \
1348 libsystemd-core.la \
1351 test_utf8_SOURCES = \
1352 src/test/test-utf8.c
1355 libsystemd-shared.la
1357 test_capability_SOURCES = \
1358 src/test/test-capability.c
1360 test_capability_LDADD = \
1361 libsystemd-shared.la \
1362 libsystemd-capability.la
1364 test_async_SOURCES = \
1365 src/test/test-async.c
1367 test_async_LDADD = \
1368 libsystemd-shared.la
1370 test_fdset_SOURCES = \
1371 src/test/test-fdset.c
1373 test_fdset_LDADD = \
1376 test_ratelimit_SOURCES = \
1377 src/test/test-ratelimit.c
1379 test_ratelimit_LDADD = \
1380 libsystemd-shared.la
1382 test_util_SOURCES = \
1383 src/test/test-util.c
1388 test_socket_util_SOURCES = \
1389 src/test/test-socket-util.c
1391 test_socket_util_LDADD = \
1394 test_ring_SOURCES = \
1395 src/test/test-ring.c
1400 test_tmpfiles_SOURCES = \
1401 src/test/test-tmpfiles.c
1403 test_tmpfiles_LDADD = \
1404 libsystemd-shared.la
1406 test_namespace_SOURCES = \
1407 src/test/test-namespace.c
1409 test_namespace_LDADD = \
1412 test_hashmap_SOURCES = \
1413 src/test/test-hashmap.c
1415 test_hashmap_LDADD = \
1418 test_xml_SOURCES = \
1422 libsystemd-shared.la
1424 test_list_SOURCES = \
1425 src/test/test-list.c
1430 test_tables_SOURCES = \
1431 src/test/test-tables.c \
1432 src/shared/test-tables.h
1434 test_tables_CFLAGS = \
1438 test_tables_LDADD = \
1439 libsystemd-logs.la \
1440 libsystemd-journal-internal.la \
1441 libsystemd-core.la \
1444 test_prioq_SOURCES = \
1445 src/test/test-prioq.c
1447 test_prioq_LDADD = \
1450 test_fileio_SOURCES = \
1451 src/test/test-fileio.c
1453 test_fileio_LDADD = \
1456 test_time_SOURCES = \
1457 src/test/test-time.c
1462 test_architecture_SOURCES = \
1463 src/test/test-architecture.c
1465 test_architecture_LDADD = \
1466 libsystemd-shared.la
1468 test_log_SOURCES = \
1474 test_ipcrm_SOURCES = \
1475 src/test/test-ipcrm.c
1477 test_ipcrm_LDADD = \
1478 libsystemd-shared.la \
1481 test_rtnl_manual_SOURCES = \
1482 src/test/test-rtnl-manual.c
1484 test_rtnl_manual_CFLAGS = \
1488 test_rtnl_manual_LDADD = \
1489 libsystemd-internal.la \
1490 libsystemd-shared.la \
1493 test_ellipsize_SOURCES = \
1494 src/test/test-ellipsize.c
1496 test_ellipsize_LDADD = \
1499 test_date_SOURCES = \
1500 src/test/test-date.c
1505 test_sleep_SOURCES = \
1506 src/test/test-sleep.c
1508 test_sleep_LDADD = \
1511 test_replace_var_SOURCES = \
1512 src/test/test-replace-var.c
1514 test_replace_var_LDADD = \
1515 libsystemd-shared.la
1517 test_calendarspec_SOURCES = \
1518 src/test/test-calendarspec.c
1520 test_calendarspec_LDADD = \
1521 libsystemd-shared.la
1523 test_strip_tab_ansi_SOURCES = \
1524 src/test/test-strip-tab-ansi.c
1526 test_strip_tab_ansi_LDADD = \
1527 libsystemd-shared.la
1529 test_daemon_SOURCES = \
1530 src/test/test-daemon.c
1532 test_daemon_LDADD = \
1533 libsystemd-internal.la \
1534 libsystemd-shared.la
1536 test_cgroup_SOURCES = \
1537 src/test/test-cgroup.c
1539 test_cgroup_LDADD = \
1540 libsystemd-label.la \
1541 libsystemd-shared.la \
1542 libsystemd-internal.la
1544 test_cgroup_mask_SOURCES = \
1545 src/test/test-cgroup-mask.c
1547 test_cgroup_mask_CPPFLAGS = \
1549 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1551 test_cgroup_mask_CFLAGS = \
1555 test_cgroup_mask_LDADD = \
1556 libsystemd-core.la \
1559 test_cgroup_util_SOURCES = \
1560 src/test/test-cgroup-util.c
1562 test_cgroup_util_LDADD = \
1563 libsystemd-label.la \
1564 libsystemd-internal.la \
1565 libsystemd-shared.la
1567 test_env_replace_SOURCES = \
1568 src/test/test-env-replace.c
1570 test_env_replace_LDADD = \
1571 libsystemd-shared.la
1573 test_strbuf_SOURCES = \
1574 src/test/test-strbuf.c
1576 test_strbuf_LDADD = \
1577 libsystemd-shared.la
1579 test_strv_SOURCES = \
1580 src/test/test-strv.c
1583 libsystemd-units.la \
1584 libsystemd-internal.la \
1585 libsystemd-shared.la
1587 test_path_util_SOURCES = \
1588 src/test/test-path-util.c
1590 test_path_util_LDADD = \
1591 libsystemd-shared.la
1593 test_strxcpyx_SOURCES = \
1594 src/test/test-strxcpyx.c
1596 test_strxcpyx_LDADD = \
1597 libsystemd-shared.la
1599 test_install_SOURCES = \
1600 src/test/test-install.c
1602 test_install_LDADD = \
1603 libsystemd-units.la \
1604 libsystemd-label.la \
1605 libsystemd-shared.la \
1606 libsystemd-internal.la
1608 test_watchdog_SOURCES = \
1609 src/test/test-watchdog.c
1611 test_watchdog_LDADD = \
1612 libsystemd-shared.la
1614 test_sched_prio_SOURCES = \
1615 src/test/test-sched-prio.c
1617 test_sched_prio_CPPFLAGS = \
1619 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1621 test_sched_prio_CFLAGS = \
1625 test_sched_prio_LDADD = \
1626 libsystemd-core.la \
1629 test_conf_files_SOURCES = \
1630 src/test/test-conf-files.c
1632 test_conf_files_LDADD = \
1633 libsystemd-shared.la
1635 # ------------------------------------------------------------------------------
1636 ## .PHONY so it always rebuilds it
1637 .PHONY: coverage lcov-run lcov-report coverage-sync
1639 # run lcov from scratch, always
1644 coverage_dir = coverage
1645 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1648 # reset run coverage tests
1650 @rm -rf $(coverage_dir)
1651 lcov $(coverage_opts) --zerocounters
1654 # generate report based on current coverage data
1656 $(MKDIR_P) $(coverage_dir)
1657 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1658 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1659 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1660 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1662 # lcov doesn't work properly with vpath builds, make sure that bad
1663 # output is not uploaded by mistake.
1664 coverage-sync: coverage
1665 test "$(builddir)" = "$(srcdir)"
1666 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1669 lcov-run lcov-report:
1670 echo "Need to reconfigure with --enable-coverage"
1673 # ------------------------------------------------------------------------------
1674 systemd_analyze_SOURCES = \
1675 src/analyze/analyze.c
1677 systemd_analyze_LDADD = \
1678 libsystemd-internal.la \
1679 libsystemd-shared.la
1681 # ------------------------------------------------------------------------------
1682 systemd_initctl_SOURCES = \
1683 src/initctl/initctl.c
1685 systemd_initctl_LDADD = \
1686 libsystemd-internal.la \
1687 libsystemd-shared.la
1689 # ------------------------------------------------------------------------------
1690 systemd_update_utmp_SOURCES = \
1691 src/update-utmp/update-utmp.c
1693 systemd_update_utmp_CFLAGS = \
1697 systemd_update_utmp_LDADD = \
1698 libsystemd-internal.la \
1699 libsystemd-shared.la \
1702 # ------------------------------------------------------------------------------
1703 systemd_update_done_SOURCES = \
1704 src/update-done/update-done.c
1706 systemd_update_done_LDADD = \
1707 libsystemd-internal.la \
1708 libsystemd-shared.la
1710 # ------------------------------------------------------------------------------
1711 systemd_shutdownd_SOURCES = \
1712 src/shutdownd/shutdownd.c
1714 systemd_shutdownd_LDADD = \
1715 libsystemd-label.la \
1716 libsystemd-internal.la \
1717 libsystemd-shared.la
1720 src/systemd/sd-shutdown.h
1722 # ------------------------------------------------------------------------------
1723 systemd_shutdown_SOURCES = \
1726 src/core/shutdown.c \
1727 src/core/mount-setup.c \
1728 src/core/mount-setup.h \
1729 src/core/killall.h \
1732 systemd_shutdown_LDADD = \
1733 libsystemd-label.la \
1734 libudev-internal.la \
1735 libsystemd-shared.la
1737 # ------------------------------------------------------------------------------
1739 systemd_modules_load_SOURCES = \
1740 src/modules-load/modules-load.c
1742 systemd_modules_load_CFLAGS = \
1746 systemd_modules_load_LDADD = \
1747 libsystemd-shared.la \
1750 rootlibexec_PROGRAMS += \
1751 systemd-modules-load
1753 nodist_systemunit_DATA += \
1754 units/systemd-modules-load.service
1756 SYSINIT_TARGET_WANTS += \
1757 systemd-modules-load.service
1760 nodist_systemunit_DATA += \
1761 units/kmod-static-nodes.service
1763 SYSINIT_TARGET_WANTS += \
1764 kmod-static-nodes.service
1769 units/systemd-modules-load.service.in \
1770 units/kmod-static-nodes.service.in
1772 # ------------------------------------------------------------------------------
1774 systemd_tmpfiles_SOURCES = \
1775 src/tmpfiles/tmpfiles.c
1777 systemd_tmpfiles_LDADD = \
1778 libsystemd-units.la \
1779 libsystemd-label.la \
1780 libsystemd-capability.la \
1781 libsystemd-internal.la \
1782 libsystemd-shared.la
1784 rootbin_PROGRAMS += \
1787 dist_systemunit_DATA += \
1788 units/systemd-tmpfiles-clean.timer
1790 nodist_systemunit_DATA += \
1791 units/systemd-tmpfiles-setup-dev.service \
1792 units/systemd-tmpfiles-setup.service \
1793 units/systemd-tmpfiles-clean.service
1795 dist_tmpfiles_DATA = \
1796 tmpfiles.d/systemd.conf \
1797 tmpfiles.d/systemd-nologin.conf \
1798 tmpfiles.d/tmp.conf \
1799 tmpfiles.d/x11.conf \
1800 tmpfiles.d/var.conf \
1804 dist_tmpfiles_DATA += \
1805 tmpfiles.d/legacy.conf
1808 SYSINIT_TARGET_WANTS += \
1809 systemd-tmpfiles-setup-dev.service \
1810 systemd-tmpfiles-setup.service
1812 dist_zshcompletion_DATA += \
1813 shell-completion/zsh/_systemd-tmpfiles
1815 TIMERS_TARGET_WANTS += \
1816 systemd-tmpfiles-clean.timer
1820 $(sysconfdir)/tmpfiles.d
1824 units/systemd-tmpfiles-setup-dev.service.in \
1825 units/systemd-tmpfiles-setup.service.in \
1826 units/systemd-tmpfiles-clean.service.in
1828 # ------------------------------------------------------------------------------
1830 systemd_sysusers_SOURCES = \
1831 src/sysusers/sysusers.c
1833 systemd_sysusers_LDADD = \
1834 libsystemd-units.la \
1835 libsystemd-label.la \
1836 libsystemd-capability.la \
1837 libsystemd-internal.la \
1838 libsystemd-shared.la
1840 rootbin_PROGRAMS += \
1843 nodist_systemunit_DATA += \
1844 units/systemd-sysusers.service
1846 SYSINIT_TARGET_WANTS += \
1847 systemd-sysusers.service
1849 dist_sysusers_DATA = \
1850 sysusers.d/systemd.conf
1852 nodist_sysusers_DATA = \
1853 sysusers.d/basic.conf
1856 units/systemd-sysusers.service.in \
1857 sysusers.d/basic.conf.in
1860 sysusers.d/basic.conf
1866 # ------------------------------------------------------------------------------
1867 systemd_machine_id_setup_SOURCES = \
1868 src/machine-id-setup/machine-id-setup-main.c \
1869 src/core/machine-id-setup.c \
1870 src/core/machine-id-setup.h
1872 systemd_machine_id_setup_LDADD = \
1873 libsystemd-label.la \
1874 libsystemd-internal.la \
1875 libsystemd-shared.la
1877 # ------------------------------------------------------------------------------
1878 systemd_sysctl_SOURCES = \
1881 systemd_sysctl_LDADD = \
1882 libsystemd-shared.la
1884 # ------------------------------------------------------------------------------
1885 systemd_sleep_SOURCES = \
1888 systemd_sleep_LDADD = \
1889 libsystemd-shared.la
1891 # ------------------------------------------------------------------------------
1892 systemd_fsck_SOURCES = \
1895 systemd_fsck_LDADD = \
1896 libsystemd-internal.la \
1897 libudev-internal.la \
1898 libsystemd-shared.la
1900 # ------------------------------------------------------------------------------
1901 systemd_ac_power_SOURCES = \
1902 src/ac-power/ac-power.c
1904 systemd_ac_power_LDADD = \
1905 libudev-internal.la \
1906 libsystemd-shared.la
1908 # ------------------------------------------------------------------------------
1909 systemd_detect_virt_SOURCES = \
1910 src/detect-virt/detect-virt.c
1912 systemd_detect_virt_LDADD = \
1913 libsystemd-shared.la
1915 INSTALL_EXEC_HOOKS += \
1916 systemd-detect-virt-install-hook
1918 # ------------------------------------------------------------------------------
1919 systemd_delta_SOURCES = \
1922 systemd_delta_LDADD = \
1923 libsystemd-shared.la
1925 # ------------------------------------------------------------------------------
1926 systemd_getty_generator_SOURCES = \
1927 src/getty-generator/getty-generator.c
1929 systemd_getty_generator_LDADD = \
1930 libsystemd-label.la \
1931 libsystemd-shared.la
1933 # ------------------------------------------------------------------------------
1934 systemd_debug_generator_SOURCES = \
1935 src/debug-generator/debug-generator.c
1937 systemd_debug_generator_LDADD = \
1938 libsystemd-label.la \
1939 libsystemd-shared.la
1941 # ------------------------------------------------------------------------------
1942 systemd_fstab_generator_SOURCES = \
1943 src/fstab-generator/fstab-generator.c \
1944 src/core/mount-setup.c
1946 systemd_fstab_generator_LDADD = \
1947 libsystemd-label.la \
1948 libsystemd-shared.la
1950 # ------------------------------------------------------------------------------
1951 systemd_system_update_generator_SOURCES = \
1952 src/system-update-generator/system-update-generator.c
1954 systemd_system_update_generator_LDADD = \
1955 libsystemd-label.la \
1956 libsystemd-shared.la
1959 # ------------------------------------------------------------------------------
1960 systemgenerator_PROGRAMS += \
1961 systemd-efi-boot-generator
1963 systemd_efi_boot_generator_SOURCES = \
1964 src/efi-boot-generator/efi-boot-generator.c
1966 systemd_efi_boot_generator_LDADD = \
1967 libsystemd-label.la \
1968 libsystemd-shared.la
1970 # ------------------------------------------------------------------------------
1973 src/boot/boot-loader.h \
1974 src/boot/bootctl.c \
1975 src/boot/boot-loader.c \
1979 libsystemd-shared.la \
1980 libsystemd-internal.la
1985 dist_bashcompletion_DATA += \
1986 shell-completion/bash/bootctl
1988 dist_zshcompletion_DATA += \
1989 shell-completion/zsh/_bootctl
1993 # ------------------------------------------------------------------------------
1995 systemgenerator_PROGRAMS += \
1996 systemd-gpt-auto-generator
1998 systemd_gpt_auto_generator_SOURCES = \
1999 src/gpt-auto-generator/gpt-auto-generator.c \
2000 src/shared/blkid-util.h
2002 systemd_gpt_auto_generator_LDADD = \
2003 libsystemd-label.la \
2004 libsystemd-internal.la \
2005 libudev-internal.la \
2006 libsystemd-shared.la \
2009 systemd_gpt_auto_generator_CFLAGS = \
2014 # ------------------------------------------------------------------------------
2016 systemgenerator_PROGRAMS += \
2017 systemd-dbus1-generator
2019 systemd_dbus1_generator_SOURCES = \
2020 src/dbus1-generator/dbus1-generator.c
2022 systemd_dbus1_generator_LDADD = \
2023 libsystemd-label.la \
2024 libsystemd-shared.la \
2025 libsystemd-internal.la
2027 dbus1-generator-install-hook:
2028 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2029 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2030 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2032 dbus1-generator-uninstall-hook:
2033 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2035 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2036 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2039 # ------------------------------------------------------------------------------
2040 systemd_sysv_generator_SOURCES = \
2041 src/sysv-generator/sysv-generator.c
2043 systemd_sysv_generator_LDADD = \
2044 libsystemd-core.la \
2045 libsystemd-label.la \
2046 libsystemd-shared.la
2048 # ------------------------------------------------------------------------------
2049 systemd_rc_local_generator_SOURCES = \
2050 src/rc-local-generator/rc-local-generator.c
2052 systemd_rc_local_generator_LDADD = \
2053 libsystemd-label.la \
2054 libsystemd-shared.la
2056 # ------------------------------------------------------------------------------
2057 systemd_remount_fs_SOURCES = \
2058 src/remount-fs/remount-fs.c \
2059 src/core/mount-setup.c \
2060 src/core/mount-setup.h
2062 systemd_remount_fs_LDADD = \
2063 libsystemd-label.la \
2064 libsystemd-shared.la
2066 # ------------------------------------------------------------------------------
2067 systemd_cgroups_agent_SOURCES = \
2068 src/cgroups-agent/cgroups-agent.c
2070 systemd_cgroups_agent_LDADD = \
2071 libsystemd-internal.la \
2072 libsystemd-shared.la
2074 # ------------------------------------------------------------------------------
2075 systemctl_SOURCES = \
2076 src/systemctl/systemctl.c
2079 libsystemd-units.la \
2080 libsystemd-label.la \
2081 libsystemd-internal.la \
2082 libsystemd-logs.la \
2083 libsystemd-journal-internal.la \
2084 libsystemd-shared.la
2086 # ------------------------------------------------------------------------------
2087 systemd_notify_SOURCES = \
2088 src/notify/notify.c \
2089 src/readahead/sd-readahead.c
2091 systemd_notify_LDADD = \
2092 libsystemd-internal.la \
2093 libsystemd-shared.la
2095 # ------------------------------------------------------------------------------
2096 systemd_ask_password_SOURCES = \
2097 src/ask-password/ask-password.c
2099 systemd_ask_password_LDADD = \
2100 libsystemd-label.la \
2101 libsystemd-shared.la
2103 # ------------------------------------------------------------------------------
2104 systemd_reply_password_SOURCES = \
2105 src/reply-password/reply-password.c
2107 systemd_reply_password_LDADD = \
2108 libsystemd-shared.la
2110 # ------------------------------------------------------------------------------
2111 systemd_cgls_SOURCES = \
2114 systemd_cgls_LDADD = \
2115 libsystemd-internal.la \
2116 libsystemd-shared.la
2118 # ------------------------------------------------------------------------------
2119 systemd_cgtop_SOURCES = \
2122 systemd_cgtop_LDADD = \
2123 libsystemd-shared.la
2125 # ------------------------------------------------------------------------------
2126 systemd_nspawn_SOURCES = \
2127 src/nspawn/nspawn.c \
2128 src/core/mount-setup.c \
2129 src/core/mount-setup.h \
2130 src/core/loopback-setup.c \
2131 src/core/loopback-setup.h
2133 systemd_nspawn_CFLAGS = \
2138 systemd_nspawn_LDADD = \
2139 libsystemd-label.la \
2140 libsystemd-capability.la \
2141 libsystemd-internal.la \
2142 libudev-internal.la \
2143 libsystemd-shared.la \
2147 systemd_nspawn_LDADD += \
2148 libsystemd-seccomp.la \
2152 # ------------------------------------------------------------------------------
2153 systemd_run_SOURCES = \
2156 systemd_run_LDADD = \
2157 libsystemd-label.la \
2158 libsystemd-capability.la \
2159 libsystemd-internal.la \
2160 libsystemd-shared.la
2162 # ------------------------------------------------------------------------------
2163 systemd_bus_proxyd_SOURCES = \
2164 src/bus-proxyd/bus-proxyd.c \
2165 src/bus-proxyd/bus-policy.c \
2166 src/bus-proxyd/bus-policy.h
2168 systemd_bus_proxyd_LDADD = \
2169 libsystemd-capability.la \
2170 libsystemd-internal.la \
2171 libsystemd-shared.la
2173 bus-proxyd-install-hook:
2174 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
2175 $(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2176 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
2178 bus-proxyd-uninstall-hook:
2179 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2181 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
2182 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
2185 nodist_systemunit_DATA += \
2186 units/systemd-bus-proxyd@.service
2188 dist_systemunit_DATA += \
2189 units/systemd-bus-proxyd.socket
2191 dist_userunit_DATA += \
2192 units/user/systemd-bus-proxyd.socket \
2193 units/user/systemd-bus-proxyd@.service
2197 units/systemd-bus-proxyd@.service.in
2199 # ------------------------------------------------------------------------------
2200 systemd_tty_ask_password_agent_SOURCES = \
2201 src/tty-ask-password-agent/tty-ask-password-agent.c
2203 systemd_tty_ask_password_agent_LDADD = \
2204 libsystemd-label.la \
2205 libsystemd-shared.la
2207 # ------------------------------------------------------------------------------
2208 libsystemd_internal_la_SOURCES = \
2209 src/systemd/sd-bus.h \
2210 src/systemd/sd-bus-protocol.h \
2211 src/systemd/sd-bus-vtable.h \
2212 src/systemd/sd-memfd.h \
2213 src/systemd/sd-utf8.h \
2214 src/systemd/sd-event.h \
2215 src/systemd/sd-rtnl.h \
2216 src/systemd/sd-resolve.h \
2217 src/systemd/sd-login.h \
2218 src/systemd/sd-id128.h \
2219 src/systemd/sd-daemon.h \
2220 src/libsystemd/sd-bus/sd-bus.c \
2221 src/libsystemd/sd-bus/bus-control.c \
2222 src/libsystemd/sd-bus/bus-control.h \
2223 src/libsystemd/sd-bus/bus-error.c \
2224 src/libsystemd/sd-bus/bus-error.h \
2225 src/libsystemd/sd-bus/bus-internal.c \
2226 src/libsystemd/sd-bus/bus-internal.h \
2227 src/libsystemd/sd-bus/bus-socket.c \
2228 src/libsystemd/sd-bus/bus-socket.h \
2229 src/libsystemd/sd-bus/bus-kernel.c \
2230 src/libsystemd/sd-bus/bus-kernel.h \
2231 src/libsystemd/sd-bus/bus-container.c \
2232 src/libsystemd/sd-bus/bus-container.h \
2233 src/libsystemd/sd-bus/bus-message.c \
2234 src/libsystemd/sd-bus/bus-message.h \
2235 src/libsystemd/sd-bus/bus-creds.c \
2236 src/libsystemd/sd-bus/bus-creds.h \
2237 src/libsystemd/sd-bus/bus-signature.c \
2238 src/libsystemd/sd-bus/bus-signature.h \
2239 src/libsystemd/sd-bus/bus-type.c \
2240 src/libsystemd/sd-bus/bus-type.h \
2241 src/libsystemd/sd-bus/bus-match.c \
2242 src/libsystemd/sd-bus/bus-match.h \
2243 src/libsystemd/sd-bus/bus-bloom.c \
2244 src/libsystemd/sd-bus/bus-bloom.h \
2245 src/libsystemd/sd-bus/bus-introspect.c \
2246 src/libsystemd/sd-bus/bus-introspect.h \
2247 src/libsystemd/sd-bus/bus-objects.c \
2248 src/libsystemd/sd-bus/bus-objects.h \
2249 src/libsystemd/sd-bus/bus-gvariant.c \
2250 src/libsystemd/sd-bus/bus-gvariant.h \
2251 src/libsystemd/sd-bus/bus-convenience.c \
2252 src/libsystemd/sd-bus/bus-track.c \
2253 src/libsystemd/sd-bus/bus-track.h \
2254 src/libsystemd/sd-bus/bus-util.c \
2255 src/libsystemd/sd-bus/bus-util.h \
2256 src/libsystemd/sd-bus/bus-slot.c \
2257 src/libsystemd/sd-bus/bus-slot.h \
2258 src/libsystemd/sd-bus/bus-protocol.h \
2259 src/libsystemd/sd-bus/kdbus.h \
2260 src/libsystemd/sd-bus/sd-memfd.c \
2261 src/libsystemd/sd-utf8/sd-utf8.c \
2262 src/libsystemd/sd-event/sd-event.c \
2263 src/libsystemd/sd-event/event-util.h \
2264 src/libsystemd/sd-rtnl/sd-rtnl.c \
2265 src/libsystemd/sd-rtnl/rtnl-internal.h \
2266 src/libsystemd/sd-rtnl/rtnl-message.c \
2267 src/libsystemd/sd-rtnl/rtnl-types.h \
2268 src/libsystemd/sd-rtnl/rtnl-types.c \
2269 src/libsystemd/sd-rtnl/rtnl-util.h \
2270 src/libsystemd/sd-rtnl/rtnl-util.c \
2271 src/libsystemd/sd-id128/sd-id128.c \
2272 src/libsystemd/sd-daemon/sd-daemon.c \
2273 src/libsystemd/sd-login/sd-login.c
2275 nodist_libsystemd_internal_la_SOURCES = \
2276 src/libsystemd/libsystemd.sym \
2277 src/libsystemd/sd-bus/bus-error-mapping.c
2279 libsystemd_internal_la_CFLAGS = \
2283 libsystemd_internal_la_LIBADD = \
2286 libsystemd_resolve_la_SOURCES = \
2287 src/libsystemd/sd-resolve/sd-resolve.c \
2288 src/libsystemd/sd-resolve/resolve-util.h
2290 libsystemd_resolve_la_CFLAGS = \
2294 libsystemd_resolve_la_LIBADD = \
2297 noinst_LTLIBRARIES += \
2298 libsystemd-internal.la \
2299 libsystemd-resolve.la
2301 libsystemd_dump_la_SOURCES = \
2302 src/libsystemd/sd-bus/bus-dump.c \
2303 src/libsystemd/sd-bus/bus-dump.h
2305 libsystemd_dump_la_CFLAGS = \
2309 noinst_LTLIBRARIES += \
2313 src/libsystemd/libsystemd.sym.m4 \
2314 src/libsystemd/libsystemd.pc.in \
2315 src/libsystemd/sd-bus/bus-error-mapping.gperf \
2316 src/libsystemd/sd-bus/DIFFERENCES \
2317 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2320 src/libsystemd/libsystemd.sym \
2321 src/libsystemd/sd-bus/bus-error-mapping.c
2324 src/libsystemd/libsystemd.sym
2326 libsystemd_la_SOURCES = \
2327 $(libsystemd_internal_la_SOURCES) \
2328 $(libsystemd_resolve_la_SOURCES) \
2329 $(libsystemd_journal_internal_la_SOURCES)
2331 nodist_libsystemd_la_SOURCES = \
2332 $(nodist_libsystemd_internal_la_SOURCES)
2334 libsystemd_la_CFLAGS = \
2335 $(libsystemd_internal_la_CFLAGS) \
2336 $(libsystemd_resolve_la_CFLAGS) \
2337 $(libsystemd_journal_internal_la_CFLAGS)
2339 libsystemd_la_LDFLAGS = \
2341 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2342 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2344 libsystemd_la_LIBADD = \
2345 libsystemd-shared.la \
2346 $(libsystemd_internal_la_LIBADD) \
2347 $(libsystemd_journal_internal_la_LIBADD) \
2348 $(libsystemd_resolve_la_LIBADD)
2350 libsystemd-install-hook:
2351 libname=libsystemd.so && $(move-to-rootlibdir)
2353 libsystemd-uninstall-hook:
2354 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2356 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2357 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2359 pkgconfiglib_DATA += \
2360 src/libsystemd/libsystemd.pc
2362 pkginclude_HEADERS += \
2363 src/systemd/sd-login.h \
2364 src/systemd/sd-id128.h \
2365 src/systemd/sd-daemon.h
2368 pkginclude_HEADERS += \
2369 src/systemd/sd-bus.h \
2370 src/systemd/sd-bus-protocol.h \
2371 src/systemd/sd-bus-vtable.h \
2372 src/systemd/sd-memfd.h \
2373 src/systemd/sd-utf8.h \
2374 src/systemd/sd-event.h \
2375 src/systemd/sd-rtnl.h \
2376 src/systemd/sd-resolve.h
2379 lib_LTLIBRARIES += \
2384 test-bus-signature \
2390 test-bus-kernel-bloom \
2391 test-bus-kernel-benchmark \
2393 test-bus-zero-copy \
2394 test-bus-introspect \
2406 test_bus_marshal_SOURCES = \
2407 src/libsystemd/sd-bus/test-bus-marshal.c
2409 test_bus_marshal_LDADD = \
2410 libsystemd-internal.la \
2411 libsystemd-shared.la \
2412 libsystemd-dump.la \
2413 libsystemd-capability.la \
2418 test_bus_marshal_CFLAGS = \
2424 test_bus_signature_SOURCES = \
2425 src/libsystemd/sd-bus/test-bus-signature.c
2427 test_bus_signature_LDADD = \
2428 libsystemd-shared.la \
2429 libsystemd-internal.la
2431 test_bus_chat_SOURCES = \
2432 src/libsystemd/sd-bus/test-bus-chat.c
2434 test_bus_chat_CFLAGS = \
2438 test_bus_chat_LDADD = \
2439 libsystemd-internal.la \
2440 libsystemd-shared.la
2442 test_bus_cleanup_SOURCES = \
2443 src/libsystemd/sd-bus/test-bus-cleanup.c
2445 test_bus_cleanup_CFLAGS = \
2449 test_bus_cleanup_LDADD = \
2450 libsystemd-internal.la \
2451 libsystemd-shared.la
2453 test_bus_server_SOURCES = \
2454 src/libsystemd/sd-bus/test-bus-server.c
2456 test_bus_server_CFLAGS = \
2460 test_bus_server_LDADD = \
2461 libsystemd-internal.la \
2462 libsystemd-shared.la
2464 test_bus_objects_SOURCES = \
2465 src/libsystemd/sd-bus/test-bus-objects.c
2467 test_bus_objects_CFLAGS = \
2472 test_bus_objects_LDADD = \
2473 libsystemd-internal.la \
2474 libsystemd-shared.la \
2475 libsystemd-dump.la \
2476 libsystemd-capability.la \
2479 test_bus_error_SOURCES = \
2480 src/libsystemd/sd-bus/test-bus-error.c
2482 test_bus_error_LDADD = \
2483 libsystemd-internal.la \
2484 libsystemd-shared.la
2486 test_bus_gvariant_SOURCES = \
2487 src/libsystemd/sd-bus/test-bus-gvariant.c
2489 test_bus_gvariant_LDADD = \
2490 libsystemd-internal.la \
2491 libsystemd-shared.la \
2492 libsystemd-dump.la \
2493 libsystemd-capability.la \
2497 test_bus_gvariant_CFLAGS = \
2502 test_bus_creds_SOURCES = \
2503 src/libsystemd/sd-bus/test-bus-creds.c
2505 test_bus_creds_LDADD = \
2506 libsystemd-internal.la \
2507 libsystemd-shared.la \
2508 libsystemd-dump.la \
2509 libsystemd-capability.la
2511 test_bus_match_SOURCES = \
2512 src/libsystemd/sd-bus/test-bus-match.c
2514 test_bus_match_LDADD = \
2515 libsystemd-internal.la \
2516 libsystemd-shared.la
2518 test_bus_kernel_SOURCES = \
2519 src/libsystemd/sd-bus/test-bus-kernel.c
2521 test_bus_kernel_LDADD = \
2522 libsystemd-internal.la \
2523 libsystemd-shared.la \
2524 libsystemd-dump.la \
2525 libsystemd-capability.la \
2528 test_bus_kernel_CFLAGS = \
2532 test_bus_kernel_bloom_SOURCES = \
2533 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
2535 test_bus_kernel_bloom_LDADD = \
2536 libsystemd-internal.la \
2537 libsystemd-shared.la
2539 test_bus_kernel_benchmark_SOURCES = \
2540 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
2542 test_bus_kernel_benchmark_LDADD = \
2543 libsystemd-internal.la \
2544 libsystemd-shared.la
2546 test_bus_memfd_SOURCES = \
2547 src/libsystemd/sd-bus/test-bus-memfd.c
2549 test_bus_memfd_LDADD = \
2550 libsystemd-internal.la \
2551 libsystemd-shared.la
2553 test_bus_zero_copy_SOURCES = \
2554 src/libsystemd/sd-bus/test-bus-zero-copy.c
2556 test_bus_zero_copy_LDADD = \
2557 libsystemd-internal.la \
2558 libsystemd-shared.la \
2559 libsystemd-dump.la \
2560 libsystemd-capability.la \
2563 test_bus_zero_copy_CFLAGS = \
2567 test_bus_introspect_SOURCES = \
2568 src/libsystemd/sd-bus/test-bus-introspect.c
2570 test_bus_introspect_LDADD = \
2571 libsystemd-internal.la \
2572 libsystemd-shared.la
2574 test_event_SOURCES = \
2575 src/libsystemd/sd-event/test-event.c
2577 test_event_LDADD = \
2578 libsystemd-internal.la \
2579 libsystemd-shared.la
2581 test_rtnl_SOURCES = \
2582 src/libsystemd/sd-rtnl/test-rtnl.c
2585 libsystemd-internal.la \
2586 libsystemd-shared.la
2588 test_resolve_SOURCES = \
2589 src/libsystemd/sd-resolve/test-resolve.c
2591 test_resolve_LDADD = \
2592 libsystemd-resolve.la \
2593 libsystemd-internal.la \
2594 libsystemd-shared.la
2596 test_resolve_CFLAGS = \
2601 src/libsystemd/sd-bus/busctl.c
2604 libsystemd-internal.la \
2605 libsystemd-shared.la \
2606 libsystemd-dump.la \
2607 libsystemd-capability.la \
2614 # ------------------------------------------------------------------------------
2615 noinst_LTLIBRARIES += \
2616 libsystemd-network.la
2618 libsystemd_network_la_CFLAGS = \
2622 libsystemd_network_la_SOURCES = \
2623 src/systemd/sd-network.h \
2624 src/systemd/sd-dhcp-client.h \
2625 src/systemd/sd-dhcp-server.h \
2626 src/systemd/sd-dhcp-lease.h \
2627 src/systemd/sd-ipv4ll.h \
2628 src/network/sd-network.c \
2629 src/network/network-util.h \
2630 src/libsystemd-network/sd-dhcp-client.c \
2631 src/libsystemd-network/sd-dhcp-server.c \
2632 src/libsystemd-network/dhcp-network.c \
2633 src/libsystemd-network/dhcp-option.c \
2634 src/libsystemd-network/dhcp-packet.c \
2635 src/libsystemd-network/dhcp-internal.h \
2636 src/libsystemd-network/dhcp-server-internal.h \
2637 src/libsystemd-network/dhcp-protocol.h \
2638 src/libsystemd-network/dhcp-lease-internal.h \
2639 src/libsystemd-network/sd-dhcp-lease.c \
2640 src/libsystemd-network/sd-ipv4ll.c \
2641 src/libsystemd-network/ipv4ll-network.c \
2642 src/libsystemd-network/ipv4ll-packet.c \
2643 src/libsystemd-network/ipv4ll-internal.h \
2644 src/libsystemd-network/network-internal.c \
2645 src/libsystemd-network/network-internal.h \
2646 src/systemd/sd-icmp6-nd.h \
2647 src/systemd/sd-dhcp6-client.h \
2648 src/systemd/sd-dhcp6-lease.h \
2649 src/libsystemd-network/sd-icmp6-nd.c \
2650 src/libsystemd-network/sd-dhcp6-client.c \
2651 src/libsystemd-network/dhcp6-internal.h \
2652 src/libsystemd-network/dhcp6-protocol.h \
2653 src/libsystemd-network/dhcp6-network.c \
2654 src/libsystemd-network/dhcp6-option.c \
2655 src/libsystemd-network/dhcp6-lease-internal.h \
2656 src/libsystemd-network/sd-dhcp6-lease.c
2658 libsystemd_network_la_LIBADD = \
2659 libudev-internal.la \
2660 libsystemd-label.la \
2661 libsystemd-internal.la \
2662 libsystemd-shared.la \
2665 test_dhcp_option_SOURCES = \
2666 src/libsystemd-network/dhcp-protocol.h \
2667 src/libsystemd-network/dhcp-internal.h \
2668 src/libsystemd-network/test-dhcp-option.c
2670 test_dhcp_option_LDADD = \
2671 libsystemd-network.la \
2672 libsystemd-internal.la \
2673 libsystemd-shared.la
2675 test_dhcp_client_SOURCES = \
2676 src/systemd/sd-dhcp-client.h \
2677 src/libsystemd-network/dhcp-protocol.h \
2678 src/libsystemd-network/dhcp-internal.h \
2679 src/libsystemd-network/test-dhcp-client.c
2681 test_dhcp_client_LDADD = \
2682 libsystemd-network.la \
2683 libsystemd-label.la \
2684 libsystemd-internal.la \
2685 libsystemd-shared.la
2687 test_dhcp_server_SOURCES = \
2688 src/libsystemd-network/test-dhcp-server.c
2690 test_dhcp_server_LDADD = \
2691 libsystemd-network.la \
2692 libsystemd-internal.la \
2693 libsystemd-shared.la
2695 test_ipv4ll_SOURCES = \
2696 src/systemd/sd-ipv4ll.h \
2697 src/libsystemd-network/ipv4ll-internal.h \
2698 src/libsystemd-network/test-ipv4ll.c
2700 test_ipv4ll_LDADD = \
2701 libsystemd-network.la \
2702 libsystemd-label.la \
2703 libsystemd-internal.la \
2704 libsystemd-shared.la
2706 test_icmp6_rs_SOURCES = \
2707 src/systemd/sd-dhcp6-client.h \
2708 src/systemd/sd-icmp6-nd.h \
2709 src/libsystemd-network/dhcp6-internal.h \
2710 src/libsystemd-network/test-icmp6-rs.c
2712 test_icmp6_rs_LDADD = \
2713 libsystemd-network.la \
2714 libsystemd-internal.la \
2715 libsystemd-shared.la
2717 test_dhcp6_client_SOURCES = \
2718 src/systemd/sd-dhcp6-client.h \
2719 src/libsystemd-network/dhcp6-internal.h \
2720 src/libsystemd-network/test-dhcp6-client.c
2722 test_dhcp6_client_LDADD = \
2723 libsystemd-network.la \
2724 libsystemd-internal.la \
2725 libsystemd-shared.la
2735 # ------------------------------------------------------------------------------
2745 include_HEADERS += \
2746 src/libudev/libudev.h
2748 lib_LTLIBRARIES += \
2751 libudev_la_SOURCES =\
2752 src/libudev/libudev.sym \
2753 src/libudev/libudev-private.h \
2754 src/libudev/libudev.c \
2755 src/libudev/libudev-list.c \
2756 src/libudev/libudev-util.c \
2757 src/libudev/libudev-device.c \
2758 src/libudev/libudev-enumerate.c \
2759 src/libudev/libudev-monitor.c \
2760 src/libudev/libudev-queue.c \
2761 src/libudev/libudev-hwdb-def.h \
2762 src/libudev/libudev-hwdb.c
2764 libudev_la_CFLAGS = \
2768 libudev_la_LDFLAGS = \
2770 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
2771 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
2773 libudev_la_LIBADD = \
2774 libsystemd-internal.la \
2775 libsystemd-shared.la
2777 pkgconfiglib_DATA += \
2778 src/libudev/libudev.pc
2781 src/libudev/libudev.pc.in
2784 src/libudev/libudev.pc \
2789 $(AM_V_at)$(MKDIR_P) $(dir $@)
2790 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
2793 $(AM_V_at)$(MKDIR_P) $(dir $@)
2794 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
2796 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2797 libudev-install-hook:
2798 libname=libudev.so && $(move-to-rootlibdir)
2800 libudev-uninstall-hook:
2801 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
2803 INSTALL_EXEC_HOOKS += libudev-install-hook
2804 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
2806 # ------------------------------------------------------------------------------
2807 noinst_LTLIBRARIES += \
2810 libudev_internal_la_SOURCES =\
2811 $(libudev_la_SOURCES) \
2812 src/libudev/libudev-device-private.c
2814 libudev_internal_la_CFLAGS = \
2816 -fvisibility=default
2818 # ------------------------------------------------------------------------------
2820 $(sysconfdir)/udev/rules.d \
2821 $(sysconfdir)/udev/hwdb.d
2823 dist_network_DATA = \
2824 network/99-default.link \
2825 network/80-container-host0.network \
2826 network/80-container-ve.network
2828 dist_udevrules_DATA += \
2829 rules/42-usb-hid-pm.rules \
2830 rules/50-udev-default.rules \
2831 rules/60-drm.rules \
2832 rules/60-keyboard.rules \
2833 rules/60-persistent-storage-tape.rules \
2834 rules/60-persistent-serial.rules \
2835 rules/60-persistent-input.rules \
2836 rules/60-persistent-alsa.rules \
2837 rules/60-persistent-storage.rules \
2838 rules/64-btrfs.rules \
2839 rules/75-net-description.rules \
2840 rules/75-tty-description.rules \
2841 rules/78-sound-card.rules \
2842 rules/80-net-setup-link.rules \
2843 rules/95-udev-late.rules
2845 nodist_udevrules_DATA += \
2846 rules/99-systemd.rules
2848 dist_udevhwdb_DATA = \
2849 hwdb/20-pci-vendor-model.hwdb \
2850 hwdb/20-pci-classes.hwdb \
2851 hwdb/20-usb-vendor-model.hwdb \
2852 hwdb/20-usb-classes.hwdb \
2853 hwdb/20-sdio-vendor-model.hwdb \
2854 hwdb/20-sdio-classes.hwdb \
2855 hwdb/20-bluetooth-vendor-product.hwdb \
2856 hwdb/20-acpi-vendor.hwdb \
2858 hwdb/20-net-ifname.hwdb \
2859 hwdb/60-keyboard.hwdb
2861 udevconfdir = $(sysconfdir)/udev
2862 dist_udevconf_DATA = \
2865 sharepkgconfigdir = $(datadir)/pkgconfig
2866 sharepkgconfig_DATA = \
2870 rules/99-systemd.rules.in \
2874 rules/99-systemd.rules \
2878 units/systemd-udevd.service.in \
2879 units/systemd-udev-trigger.service.in \
2880 units/systemd-udev-settle.service.in \
2881 units/systemd-udev-hwdb-update.service.in
2884 units/systemd-udevd.service \
2885 units/systemd-udev-trigger.service \
2886 units/systemd-udev-settle.service \
2887 units/systemd-udev-hwdb-update.service
2889 SOCKETS_TARGET_WANTS += \
2890 systemd-udevd-control.socket \
2891 systemd-udevd-kernel.socket
2893 SYSINIT_TARGET_WANTS += \
2894 systemd-udevd.service \
2895 systemd-udev-trigger.service \
2896 systemd-udev-hwdb-update.service
2898 rootbin_PROGRAMS += \
2901 rootlibexec_PROGRAMS += \
2904 noinst_LTLIBRARIES += \
2907 src/udev/keyboard-keys.txt:
2908 $(AM_V_at)$(MKDIR_P) $(dir $@)
2909 $(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/' > $@
2911 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
2912 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
2914 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
2915 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
2917 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
2918 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
2920 libudev_core_la_SOURCES = \
2922 src/udev/udev-event.c \
2923 src/udev/udev-watch.c \
2924 src/udev/udev-node.c \
2925 src/udev/udev-rules.c \
2926 src/udev/udev-ctrl.c \
2927 src/udev/udev-builtin.c \
2928 src/udev/udev-builtin-btrfs.c \
2929 src/udev/udev-builtin-hwdb.c \
2930 src/udev/udev-builtin-input_id.c \
2931 src/udev/udev-builtin-keyboard.c \
2932 src/udev/udev-builtin-net_id.c \
2933 src/udev/udev-builtin-net_setup_link.c \
2934 src/udev/udev-builtin-path_id.c \
2935 src/udev/udev-builtin-usb_id.c \
2936 src/udev/net/link-config.h \
2937 src/udev/net/link-config.c \
2938 src/udev/net/ethtool-util.h \
2939 src/udev/net/ethtool-util.c
2941 nodist_libudev_core_la_SOURCES = \
2942 src/udev/keyboard-keys-from-name.h \
2943 src/udev/keyboard-keys-to-name.h \
2944 src/udev/net/link-config-gperf.c
2947 $(nodist_libudev_core_la_SOURCES)
2950 src/udev/keyboard-keys-from-name.gperf \
2951 src/udev/keyboard-keys.txt \
2952 src/udev/net/link-config-gperf.c
2955 src/udev/net/link-config-gperf.gperf
2957 libudev_core_la_CFLAGS = \
2962 libudev_core_la_LIBADD = \
2963 libudev-internal.la \
2964 libsystemd-label.la \
2965 libsystemd-internal.la \
2966 libsystemd-network.la \
2967 libsystemd-shared.la \
2971 libudev_core_la_CPPFLAGS = \
2973 -DFIRMWARE_PATH="$(FIRMWARE_PATH)"
2976 libudev_core_la_SOURCES += \
2977 src/udev/udev-builtin-firmware.c
2979 dist_udevrules_DATA += \
2980 rules/50-firmware.rules
2984 libudev_core_la_SOURCES += \
2985 src/udev/udev-builtin-kmod.c
2987 dist_udevrules_DATA += \
2988 rules/80-drivers.rules
2992 libudev_core_la_SOURCES += \
2993 src/udev/udev-builtin-blkid.c
2997 libudev_core_la_SOURCES += \
2998 src/udev/udev-builtin-uaccess.c \
2999 src/login/logind-acl.c \
3000 src/libsystemd/sd-login/sd-login.c \
3001 src/systemd/sd-login.h
3003 libudev_core_la_LIBADD += \
3007 systemd_udevd_SOURCES = \
3010 systemd_udevd_LDADD = \
3014 src/udev/udevadm.c \
3015 src/udev/udevadm-info.c \
3016 src/udev/udevadm-control.c \
3017 src/udev/udevadm-monitor.c \
3018 src/udev/udevadm-hwdb.c \
3019 src/udev/udevadm-settle.c \
3020 src/udev/udevadm-trigger.c \
3021 src/udev/udevadm-test.c \
3022 src/udev/udevadm-test-builtin.c
3027 # Update hwdb on installation. Do not bother if installing
3028 # in DESTDIR, since this is likely for packaging purposes.
3030 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
3032 INSTALL_DATA_HOOKS += \
3036 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3038 # ------------------------------------------------------------------------------
3047 test_libudev_SOURCES = \
3048 src/test/test-libudev.c
3050 test_libudev_LDADD = \
3051 libsystemd-label.la \
3052 libudev-internal.la \
3053 libsystemd-shared.la
3055 test_udev_SOURCES = \
3056 src/test/test-udev.c
3065 test_udev_LDADD += \
3072 # packed sysfs test tree
3074 $(AM_V_at)$(MKDIR_P) $(dir $@)
3075 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3079 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3084 test/rules-test.sh \
3085 test/rule-syntax-check.py
3087 # ------------------------------------------------------------------------------
3089 src/udev/ata_id/ata_id.c
3092 libudev-internal.la \
3093 libsystemd-shared.la
3095 udevlibexec_PROGRAMS += \
3098 # ------------------------------------------------------------------------------
3099 cdrom_id_SOURCES = \
3100 src/udev/cdrom_id/cdrom_id.c
3103 libudev-internal.la \
3104 libsystemd-shared.la
3106 udevlibexec_PROGRAMS += \
3109 dist_udevrules_DATA += \
3110 rules/60-cdrom_id.rules
3112 # ------------------------------------------------------------------------------
3114 src/udev/collect/collect.c
3117 libudev-internal.la \
3118 libsystemd-shared.la
3120 udevlibexec_PROGRAMS += \
3123 # ------------------------------------------------------------------------------
3125 src/udev/scsi_id/scsi_id.c \
3126 src/udev/scsi_id/scsi_serial.c \
3127 src/udev/scsi_id/scsi.h \
3128 src/udev/scsi_id/scsi_id.h
3131 libudev-internal.la \
3132 libsystemd-shared.la
3134 udevlibexec_PROGRAMS += \
3138 src/udev/scsi_id/README
3140 # ------------------------------------------------------------------------------
3142 src/udev/v4l_id/v4l_id.c
3147 udevlibexec_PROGRAMS += \
3150 dist_udevrules_DATA += \
3151 rules/60-persistent-v4l.rules
3153 # ------------------------------------------------------------------------------
3154 accelerometer_SOURCES = \
3155 src/udev/accelerometer/accelerometer.c
3157 accelerometer_LDADD = \
3158 libudev-internal.la -lm \
3159 libsystemd-shared.la
3161 udevlibexec_PROGRAMS += \
3164 dist_udevrules_DATA += \
3165 rules/61-accelerometer.rules
3167 # ------------------------------------------------------------------------------
3174 libgudev_includedir = \
3175 $(includedir)/gudev-1.0/gudev
3177 libgudev_include_HEADERS = \
3179 src/gudev/gudevenums.h \
3180 src/gudev/gudevenumtypes.h \
3181 src/gudev/gudevtypes.h \
3182 src/gudev/gudevclient.h \
3183 src/gudev/gudevdevice.h \
3184 src/gudev/gudevenumerator.h
3186 lib_LTLIBRARIES += libgudev-1.0.la
3188 pkgconfiglib_DATA += \
3189 src/gudev/gudev-1.0.pc
3192 src/gudev/gudev-1.0.pc
3194 libgudev_1_0_la_SOURCES = \
3195 src/gudev/libgudev-1.0.sym \
3196 src/gudev/gudevenums.h \
3197 src/gudev/gudevenumtypes.h \
3198 src/gudev/gudevenumtypes.h\
3199 src/gudev/gudevtypes.h \
3200 src/gudev/gudevclient.h \
3201 src/gudev/gudevclient.c \
3202 src/gudev/gudevdevice.h \
3203 src/gudev/gudevdevice.c \
3204 src/gudev/gudevenumerator.h \
3205 src/gudev/gudevenumerator.c \
3206 src/gudev/gudevprivate.h
3208 nodist_libgudev_1_0_la_SOURCES = \
3209 src/gudev/gudevmarshal.h \
3210 src/gudev/gudevmarshal.c \
3211 src/gudev/gudevenumtypes.h \
3212 src/gudev/gudevenumtypes.c
3215 $(nodist_libgudev_1_0_la_SOURCES)
3217 libgudev_1_0_la_CPPFLAGS = \
3219 -I$(top_builddir)/src\
3220 -I$(top_srcdir)/src\
3221 -I$(top_builddir)/src/gudev \
3222 -I$(top_srcdir)/src/gudev \
3223 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3224 -D_GUDEV_COMPILATION \
3225 -DG_LOG_DOMAIN=\"GUdev\"
3227 libgudev_1_0_la_CFLAGS = \
3229 -fvisibility=default \
3232 libgudev_1_0_la_LIBADD = \
3236 libgudev_1_0_la_LDFLAGS = \
3238 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3241 -Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym
3243 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3244 $(AM_V_at)$(MKDIR_P) $(dir $@)
3245 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3247 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3248 $(AM_V_at)$(MKDIR_P) $(dir $@)
3249 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3250 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3252 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3253 $(AM_V_at)$(MKDIR_P) $(dir $@)
3254 $(AM_V_GEN)glib-mkenums --template $^ > $@
3256 if HAVE_INTROSPECTION
3257 -include $(INTROSPECTION_MAKEFILE)
3259 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3261 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3263 src_gudev_GUdev_1_0_gir_CFLAGS = \
3266 -D_GUDEV_COMPILATION \
3267 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3268 -I$(top_srcdir)/src \
3269 -I$(top_builddir)/src \
3270 -I$(top_srcdir)/src/gudev \
3271 -I$(top_builddir)/src/gudev
3273 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
3275 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
3276 --pkg-export=gudev-1.0 \
3279 src_gudev_GUdev_1_0_gir_FILES = \
3281 src/gudev/gudevtypes.h \
3282 src/gudev/gudevenums.h \
3283 src/gudev/gudevenumtypes.h \
3284 src/gudev/gudevclient.h \
3285 src/gudev/gudevdevice.h \
3286 src/gudev/gudevenumerator.h \
3287 src/gudev/gudevclient.c \
3288 src/gudev/gudevdevice.c \
3289 src/gudev/gudevenumerator.c
3291 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
3292 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
3294 girdir = $(datadir)/gir-1.0
3296 src/gudev/GUdev-1.0.gir
3298 typelibsdir = $(libdir)/girepository-1.0
3300 src/gudev/GUdev-1.0.typelib
3302 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
3303 endif # HAVE_INTROSPECTION
3305 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3306 libgudev-install-hook:
3307 libname=libgudev-1.0.so && $(move-to-rootlibdir)
3309 libgudev-uninstall-hook:
3310 rm -f $(DESTDIR)$(rootlibdir)/libgudev-1.0.so*
3312 INSTALL_EXEC_HOOKS += libgudev-install-hook
3313 UNINSTALL_EXEC_HOOKS += libgudev-uninstall-hook
3317 src/gudev/gudev-1.0.pc.in \
3318 src/gudev/gudevmarshal.list \
3319 src/gudev/gudevenumtypes.h.template \
3320 src/gudev/gudevenumtypes.c.template \
3321 src/gudev/gjs-example.js \
3322 src/gudev/seed-example-enum.js \
3323 src/gudev/seed-example.js
3325 # ------------------------------------------------------------------------------
3326 mtd_probe_SOURCES = \
3327 src/udev/mtd_probe/mtd_probe.c \
3328 src/udev/mtd_probe/mtd_probe.h \
3329 src/udev/mtd_probe/probe_smartmedia.c
3331 dist_udevrules_DATA += \
3332 rules/75-probe_mtd.rules
3334 udevlibexec_PROGRAMS += \
3337 # ------------------------------------------------------------------------------
3338 test_id128_SOURCES = \
3339 src/test/test-id128.c
3341 test_id128_LDADD = \
3342 libsystemd-internal.la \
3343 libsystemd-shared.la
3348 # ------------------------------------------------------------------------------
3350 rootlibexec_PROGRAMS += \
3353 systemd_activate_SOURCES = \
3354 src/activate/activate.c
3356 systemd_activate_LDADD = \
3357 libsystemd-label.la \
3358 libsystemd-internal.la \
3359 libsystemd-shared.la
3361 # ------------------------------------------------------------------------------
3362 systemd_journald_SOURCES = \
3363 src/journal/journald.c \
3364 src/journal/journald-server.h
3366 systemd_journald_LDADD = \
3367 libsystemd-journal-core.la \
3368 libsystemd-internal.la \
3369 libsystemd-shared.la
3371 systemd_cat_SOURCES = \
3374 systemd_cat_LDADD = \
3375 libsystemd-journal-core.la
3378 rootlibexec_PROGRAMS += \
3379 systemd-journal-remote
3381 systemd_journal_remote_SOURCES = \
3382 src/journal/journal-remote-parse.h \
3383 src/journal/journal-remote-parse.c \
3384 src/journal/journal-remote-write.h \
3385 src/journal/journal-remote-write.c \
3386 src/journal/journal-remote.c
3388 systemd_journal_remote_LDADD = \
3389 libsystemd-internal.la \
3390 libsystemd-journal-core.la
3392 systemd_journal_remote_SOURCES += \
3393 src/journal/microhttpd-util.h \
3394 src/journal/microhttpd-util.c
3396 systemd_journal_remote_CFLAGS = \
3398 $(MICROHTTPD_CFLAGS)
3400 systemd_journal_remote_LDADD += \
3404 systemd_journal_remote_LDADD += \
3409 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3410 journalctl_CFLAGS = \
3413 journalctl_SOURCES = \
3414 src/journal/journalctl.c
3416 journalctl_LDADD = \
3417 libsystemd-journal-internal.la \
3418 libsystemd-internal.la \
3419 libsystemd-logs.la \
3420 libsystemd-shared.la
3423 journalctl_LDADD += \
3428 journalctl_SOURCES += \
3429 src/journal/journal-qrcode.c \
3430 src/journal/journal-qrcode.h
3432 journalctl_CFLAGS += \
3435 journalctl_LDADD += \
3439 test_journal_SOURCES = \
3440 src/journal/test-journal.c
3442 test_journal_LDADD = \
3443 libsystemd-journal-core.la
3445 test_journal_send_SOURCES = \
3446 src/journal/test-journal-send.c
3448 test_journal_send_LDADD = \
3449 libsystemd-journal-core.la
3451 test_journal_syslog_SOURCES = \
3452 src/journal/test-journal-syslog.c
3454 test_journal_syslog_LDADD = \
3455 libsystemd-journal-core.la
3457 test_journal_match_SOURCES = \
3458 src/journal/test-journal-match.c
3460 test_journal_match_LDADD = \
3461 libsystemd-journal-core.la
3463 test_journal_enum_SOURCES = \
3464 src/journal/test-journal-enum.c
3466 test_journal_enum_LDADD = \
3467 libsystemd-journal-core.la
3469 test_journal_stream_SOURCES = \
3470 src/journal/test-journal-stream.c
3472 test_journal_stream_LDADD = \
3473 libsystemd-journal-core.la
3475 test_journal_flush_SOURCES = \
3476 src/journal/test-journal-flush.c
3478 test_journal_flush_LDADD = \
3479 libsystemd-journal-core.la
3481 test_journal_init_SOURCES = \
3482 src/journal/test-journal-init.c
3484 test_journal_init_LDADD = \
3485 libsystemd-journal-core.la
3487 test_journal_verify_SOURCES = \
3488 src/journal/test-journal-verify.c
3490 test_journal_verify_LDADD = \
3491 libsystemd-journal-core.la
3493 test_journal_interleaving_SOURCES = \
3494 src/journal/test-journal-interleaving.c
3496 test_journal_interleaving_LDADD = \
3497 libsystemd-journal-core.la
3499 test_mmap_cache_SOURCES = \
3500 src/journal/test-mmap-cache.c
3502 test_mmap_cache_LDADD = \
3503 libsystemd-journal-core.la
3505 test_catalog_SOURCES = \
3506 src/journal/test-catalog.c
3508 test_catalog_CPPFLAGS = \
3510 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
3512 test_catalog_LDADD = \
3513 libsystemd-journal-core.la
3516 test_compress_SOURCES = \
3517 src/journal/test-compress.c
3519 test_compress_LDADD = \
3520 libsystemd-journal-internal.la \
3521 libsystemd-shared.la
3524 libsystemd_journal_core_la_SOURCES = \
3525 src/journal/journald-kmsg.c \
3526 src/journal/journald-kmsg.h \
3527 src/journal/journald-syslog.c \
3528 src/journal/journald-syslog.h \
3529 src/journal/journald-stream.c \
3530 src/journal/journald-stream.h \
3531 src/journal/journald-server.c \
3532 src/journal/journald-server.h \
3533 src/journal/journald-console.c \
3534 src/journal/journald-console.h \
3535 src/journal/journald-wall.c \
3536 src/journal/journald-wall.h \
3537 src/journal/journald-native.c \
3538 src/journal/journald-native.h \
3539 src/journal/journald-rate-limit.c \
3540 src/journal/journald-rate-limit.h \
3541 src/journal/journal-internal.h
3543 nodist_libsystemd_journal_core_la_SOURCES = \
3544 src/journal/journald-gperf.c
3546 libsystemd_journal_core_la_LIBADD = \
3547 libsystemd-journal-internal.la \
3548 libudev-internal.la \
3549 libsystemd-capability.la \
3550 libsystemd-label.la \
3551 libsystemd-internal.la \
3552 libsystemd-shared.la
3555 libsystemd_journal_core_la_LIBADD += \
3559 noinst_LTLIBRARIES += \
3560 libsystemd-journal-core.la
3562 journal-install-hook:
3563 -$(MKDIR_P) $(DESTDIR)/var/log/journal
3564 -chown 0:0 $(DESTDIR)/var/log/journal
3565 -chmod 755 $(DESTDIR)/var/log/journal
3566 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
3567 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
3569 journal-uninstall-hook:
3570 -rmdir $(DESTDIR)/var/log/journal/
3572 INSTALL_EXEC_HOOKS += journal-install-hook
3573 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
3575 # ------------------------------------------------------------------------------
3576 # Update catalog on installation. Do not bother if installing
3577 # in DESTDIR, since this is likely for packaging purposes.
3578 catalog-update-hook:
3579 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
3581 INSTALL_DATA_HOOKS += \
3584 catalog-remove-hook:
3585 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
3587 UNINSTALL_DATA_HOOKS += \
3596 test-journal-syslog \
3597 test-journal-match \
3598 test-journal-stream \
3600 test-journal-verify \
3601 test-journal-interleaving \
3602 test-journal-flush \
3607 tests += test-compress
3610 pkginclude_HEADERS += \
3611 src/systemd/sd-journal.h \
3612 src/systemd/sd-messages.h \
3613 src/systemd/_sd-common.h
3615 libsystemd_journal_internal_la_SOURCES = \
3616 src/journal/sd-journal.c \
3617 src/systemd/sd-journal.h \
3618 src/systemd/_sd-common.h \
3619 src/journal/journal-file.c \
3620 src/journal/journal-file.h \
3621 src/journal/journal-vacuum.c \
3622 src/journal/journal-vacuum.h \
3623 src/journal/journal-verify.c \
3624 src/journal/journal-verify.h \
3625 src/journal/lookup3.c \
3626 src/journal/lookup3.h \
3627 src/journal/journal-send.c \
3628 src/journal/journal-def.h \
3629 src/journal/compress.h \
3630 src/journal/catalog.c \
3631 src/journal/catalog.h \
3632 src/journal/mmap-cache.c \
3633 src/journal/mmap-cache.h
3635 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3636 libsystemd_journal_internal_la_CFLAGS = \
3639 libsystemd_journal_internal_la_LIBADD =
3642 libsystemd_journal_internal_la_SOURCES += \
3643 src/journal/compress.c
3645 libsystemd_journal_internal_la_CFLAGS += \
3648 libsystemd_journal_internal_la_LIBADD += \
3653 libsystemd_journal_internal_la_SOURCES += \
3654 src/journal/journal-authenticate.c \
3655 src/journal/journal-authenticate.h \
3656 src/journal/fsprg.c \
3659 libsystemd_journal_internal_la_LIBADD += \
3662 # fsprg.c is a drop-in file using void pointer arithmetic
3663 libsystemd_journal_internal_la_CFLAGS += \
3668 noinst_LTLIBRARIES += \
3669 libsystemd-journal-internal.la
3671 rootlibexec_PROGRAMS += \
3674 rootbin_PROGRAMS += \
3680 dist_systemunit_DATA += \
3681 units/systemd-journald.socket \
3682 units/systemd-journald-dev-log.socket
3684 nodist_systemunit_DATA += \
3685 units/systemd-journald.service \
3686 units/systemd-journal-flush.service \
3687 units/systemd-journal-catalog-update.service
3689 dist_pkgsysconf_DATA += \
3690 src/journal/journald.conf
3692 dist_catalog_DATA = \
3693 catalog/systemd.fr.catalog \
3694 catalog/systemd.ru.catalog \
3695 catalog/systemd.it.catalog \
3696 catalog/systemd.catalog
3698 SOCKETS_TARGET_WANTS += \
3699 systemd-journald.socket \
3700 systemd-journald-dev-log.socket
3702 SYSINIT_TARGET_WANTS += \
3703 systemd-journald.service \
3704 systemd-journal-flush.service \
3705 systemd-journal-catalog-update.service
3708 units/systemd-journald.service.in \
3709 units/systemd-journal-flush.service.in \
3710 units/systemd-journal-catalog-update.service.in \
3711 src/journal/journald-gperf.gperf
3714 src/journal/journald-gperf.c
3716 # ------------------------------------------------------------------------------
3718 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
3720 rootlibexec_PROGRAMS += \
3721 systemd-journal-gatewayd
3723 systemd_journal_gatewayd_SOURCES = \
3724 src/journal/journal-gatewayd.c \
3725 src/journal/microhttpd-util.h \
3726 src/journal/microhttpd-util.c
3728 systemd_journal_gatewayd_LDADD = \
3729 libsystemd-logs.la \
3730 libsystemd-journal-internal.la \
3731 libsystemd-internal.la \
3732 libsystemd-shared.la \
3736 systemd_journal_gatewayd_LDADD += \
3740 systemd_journal_gatewayd_CFLAGS = \
3742 $(MICROHTTPD_CFLAGS)
3744 systemd_journal_gatewayd_CPPFLAGS = \
3746 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
3748 dist_systemunit_DATA += \
3749 units/systemd-journal-gatewayd.socket
3751 nodist_systemunit_DATA += \
3752 units/systemd-journal-gatewayd.service
3754 dist_gatewayddocumentroot_DATA = \
3755 src/journal/browse.html
3760 units/systemd-journal-gatewayd.service.in
3762 # ------------------------------------------------------------------------------
3764 systemd_socket_proxyd_SOURCES = \
3765 src/socket-proxy/socket-proxyd.c
3767 systemd_socket_proxyd_LDADD = \
3768 libsystemd-logs.la \
3769 libsystemd-internal.la \
3770 libsystemd-journal-internal.la \
3771 libsystemd-shared.la \
3772 libsystemd-resolve.la
3774 # ------------------------------------------------------------------------------
3776 systemd_coredump_SOURCES = \
3777 src/journal/coredump.c \
3778 src/journal/coredump-vacuum.c \
3779 src/journal/coredump-vacuum.h
3781 systemd_coredump_LDADD = \
3782 libsystemd-journal-internal.la \
3783 libsystemd-label.la \
3784 libsystemd-internal.la \
3785 libsystemd-shared.la
3788 systemd_coredump_SOURCES += \
3789 src/journal/stacktrace.c \
3790 src/journal/stacktrace.h
3792 systemd_coredump_LDADD += \
3796 rootlibexec_PROGRAMS += \
3799 dist_pkgsysconf_DATA += \
3800 src/journal/coredump.conf
3803 systemd_coredump_LDADD += \
3807 coredumpctl_SOURCES = \
3808 src/journal/coredumpctl.c
3810 coredumpctl_LDADD = \
3811 libsystemd-journal-internal.la \
3812 libsystemd-internal.la \
3813 libsystemd-shared.la
3819 test-coredump-vacuum
3821 test_coredump_vacuum_SOURCES = \
3822 src/journal/test-coredump-vacuum.c \
3823 src/journal/coredump-vacuum.c \
3824 src/journal/coredump-vacuum.h
3826 test_coredump_vacuum_LDADD = \
3827 libsystemd-internal.la \
3828 libsystemd-shared.la
3830 dist_bashcompletion_DATA += \
3831 shell-completion/bash/coredumpctl
3833 dist_zshcompletion_DATA += \
3834 shell-completion/zsh/_coredumpctl
3836 GENERAL_ALIASES += \
3837 $(bindir)/coredumpctl $(bindir)/systemd-coredumpctl
3840 sysctl.d/50-coredump.conf
3843 sysctl.d/50-coredump.conf
3847 sysctl.d/50-coredump.conf.in
3849 # ------------------------------------------------------------------------------
3851 systemd_binfmt_SOURCES = \
3854 systemd_binfmt_LDADD = \
3855 libsystemd-shared.la
3857 rootlibexec_PROGRAMS += \
3860 dist_systemunit_DATA += \
3861 units/proc-sys-fs-binfmt_misc.automount \
3862 units/proc-sys-fs-binfmt_misc.mount
3864 nodist_systemunit_DATA += \
3865 units/systemd-binfmt.service
3868 $(prefix)/lib/binfmt.d \
3869 $(sysconfdir)/binfmt.d
3871 SYSINIT_TARGET_WANTS += \
3872 systemd-binfmt.service \
3873 proc-sys-fs-binfmt_misc.automount
3878 units/systemd-binfmt.service.in
3880 # ------------------------------------------------------------------------------
3882 systemd_vconsole_setup_SOURCES = \
3883 src/vconsole/vconsole-setup.c
3885 systemd_vconsole_setup_LDADD = \
3886 libsystemd-shared.la
3888 rootlibexec_PROGRAMS += \
3889 systemd-vconsole-setup
3891 nodist_systemunit_DATA += \
3892 units/systemd-vconsole-setup.service
3894 SYSINIT_TARGET_WANTS += \
3895 systemd-vconsole-setup.service
3899 units/systemd-vconsole-setup.service.in
3901 # ------------------------------------------------------------------------------
3903 systemd_readahead_SOURCES = \
3904 src/readahead/readahead.c \
3905 src/readahead/readahead-collect.c \
3906 src/readahead/readahead-replay.c \
3907 src/readahead/readahead-analyze.c \
3908 src/readahead/readahead-common.c \
3909 src/readahead/readahead-common.h
3911 systemd_readahead_LDADD = \
3912 libsystemd-internal.la \
3913 libudev-internal.la \
3914 libsystemd-shared.la
3917 src/readahead/sd-readahead.c \
3918 src/systemd/sd-readahead.h
3920 rootlibexec_PROGRAMS += \
3923 dist_systemunit_DATA += \
3924 units/systemd-readahead-drop.service \
3925 units/systemd-readahead-done.timer
3927 nodist_systemunit_DATA += \
3928 units/systemd-readahead-collect.service \
3929 units/systemd-readahead-replay.service \
3930 units/systemd-readahead-done.service
3935 test_ssd_SOURCES = \
3936 src/readahead/test-ssd.c \
3937 src/readahead/readahead-common.c \
3938 src/readahead/readahead-common.h
3941 libsystemd-internal.la \
3942 libudev-internal.la \
3943 libsystemd-shared.la
3948 units/systemd-readahead-collect.service.in \
3949 units/systemd-readahead-replay.service.in \
3950 units/systemd-readahead-done.service.in
3952 # ------------------------------------------------------------------------------
3954 systemd_bootchart_SOURCES = \
3955 src/bootchart/bootchart.c \
3956 src/bootchart/bootchart.h \
3957 src/bootchart/store.c \
3958 src/bootchart/store.h \
3959 src/bootchart/svg.c \
3962 systemd_bootchart_LDADD = \
3963 libsystemd-journal-internal.la \
3964 libsystemd-shared.la
3966 rootlibexec_PROGRAMS += \
3969 dist_pkgsysconf_DATA += \
3970 src/bootchart/bootchart.conf
3973 # ------------------------------------------------------------------------------
3974 if ENABLE_QUOTACHECK
3975 rootlibexec_PROGRAMS += \
3978 nodist_systemunit_DATA += \
3979 units/systemd-quotacheck.service
3981 systemd_quotacheck_SOURCES = \
3982 src/quotacheck/quotacheck.c
3984 systemd_quotacheck_LDADD = \
3985 libsystemd-shared.la
3989 units/systemd-quotacheck.service.in
3991 nodist_systemunit_DATA += \
3992 units/quotaon.service
3994 # ------------------------------------------------------------------------------
3995 if ENABLE_RANDOMSEED
3996 rootlibexec_PROGRAMS += \
3999 nodist_systemunit_DATA += \
4000 units/systemd-random-seed.service
4002 systemd_random_seed_SOURCES = \
4003 src/random-seed/random-seed.c
4005 systemd_random_seed_LDADD = \
4006 libsystemd-label.la \
4007 libsystemd-shared.la
4009 SYSINIT_TARGET_WANTS += \
4010 systemd-random-seed.service
4015 units/systemd-random-seed.service.in
4017 # ------------------------------------------------------------------------------
4019 rootlibexec_PROGRAMS += \
4022 nodist_systemunit_DATA += \
4023 units/systemd-backlight@.service
4025 systemd_backlight_SOURCES = \
4026 src/backlight/backlight.c
4028 systemd_backlight_LDADD = \
4029 libsystemd-label.la \
4030 libudev-internal.la \
4031 libsystemd-shared.la
4035 units/systemd-backlight@.service.in
4037 # ------------------------------------------------------------------------------
4039 rootlibexec_PROGRAMS += \
4042 nodist_systemunit_DATA += \
4043 units/systemd-rfkill@.service
4045 systemd_rfkill_SOURCES = \
4048 systemd_rfkill_LDADD = \
4049 libsystemd-label.la \
4050 libudev-internal.la \
4051 libsystemd-shared.la
4055 units/systemd-rfkill@.service.in
4057 # ------------------------------------------------------------------------------
4058 if HAVE_LIBCRYPTSETUP
4059 rootlibexec_PROGRAMS += \
4062 systemgenerator_PROGRAMS += \
4063 systemd-cryptsetup-generator
4065 dist_systemunit_DATA += \
4066 units/cryptsetup.target \
4067 units/cryptsetup-pre.target
4069 systemd_cryptsetup_SOURCES = \
4070 src/cryptsetup/cryptsetup.c
4072 systemd_cryptsetup_CFLAGS = \
4074 $(LIBCRYPTSETUP_CFLAGS)
4076 systemd_cryptsetup_LDADD = \
4077 libsystemd-label.la \
4078 libudev-internal.la \
4079 libsystemd-shared.la \
4080 $(LIBCRYPTSETUP_LIBS)
4082 systemd_cryptsetup_generator_SOURCES = \
4083 src/cryptsetup/cryptsetup-generator.c
4085 systemd_cryptsetup_generator_LDADD = \
4086 libsystemd-label.la \
4087 libsystemd-shared.la
4089 SYSINIT_TARGET_WANTS += \
4094 # ------------------------------------------------------------------------------
4096 systemd_hostnamed_SOURCES = \
4097 src/hostname/hostnamed.c
4099 systemd_hostnamed_LDADD = \
4100 libsystemd-label.la \
4101 libsystemd-internal.la \
4102 libsystemd-shared.la
4104 rootlibexec_PROGRAMS += \
4107 nodist_systemunit_DATA += \
4108 units/systemd-hostnamed.service
4110 dist_systemunit_DATA += \
4111 units/org.freedesktop.hostname1.busname
4113 dist_dbuspolicy_DATA += \
4114 src/hostname/org.freedesktop.hostname1.conf
4116 dist_dbussystemservice_DATA += \
4117 src/hostname/org.freedesktop.hostname1.service
4119 polkitpolicy_files += \
4120 src/hostname/org.freedesktop.hostname1.policy
4122 SYSTEM_UNIT_ALIASES += \
4123 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4125 BUSNAMES_TARGET_WANTS += \
4126 org.freedesktop.hostname1.busname
4128 hostnamectl_SOURCES = \
4129 src/hostname/hostnamectl.c
4131 hostnamectl_LDADD = \
4132 libsystemd-internal.la \
4133 libsystemd-shared.la
4138 dist_bashcompletion_DATA += \
4139 shell-completion/bash/hostnamectl
4141 dist_zshcompletion_DATA += \
4142 shell-completion/zsh/_hostnamectl
4146 polkitpolicy_in_files += \
4147 src/hostname/org.freedesktop.hostname1.policy.in
4150 units/systemd-hostnamed.service.in
4152 # ------------------------------------------------------------------------------
4154 dist_systemunit_DATA += \
4155 units/org.freedesktop.systemd1.busname
4157 BUSNAMES_TARGET_WANTS += \
4158 org.freedesktop.systemd1.busname
4161 # ------------------------------------------------------------------------------
4163 systemd_localed_SOURCES = \
4164 src/locale/localed.c
4166 systemd_localed_LDADD = \
4167 libsystemd-label.la \
4168 libsystemd-internal.la \
4169 libsystemd-shared.la
4171 nodist_systemunit_DATA += \
4172 units/systemd-localed.service
4174 dist_systemunit_DATA += \
4175 units/org.freedesktop.locale1.busname
4177 rootlibexec_PROGRAMS += \
4180 dist_dbuspolicy_DATA += \
4181 src/locale/org.freedesktop.locale1.conf
4183 dist_dbussystemservice_DATA += \
4184 src/locale/org.freedesktop.locale1.service
4186 polkitpolicy_files += \
4187 src/locale/org.freedesktop.locale1.policy
4189 SYSTEM_UNIT_ALIASES += \
4190 systemd-localed.service dbus-org.freedesktop.locale1.service
4192 BUSNAMES_TARGET_WANTS += \
4193 org.freedesktop.locale1.busname
4195 dist_pkgdata_DATA += \
4196 src/locale/kbd-model-map
4198 dist_noinst_SCRIPT = \
4199 src/locale/generate-kbd-model-map
4201 update-kbd-model-map: src/locale/generate-kbd-model-map
4202 $PYTHON $< >src/locale/kbd-model-map
4204 localectl_SOURCES = \
4205 src/locale/localectl.c
4208 libsystemd-internal.la \
4209 libsystemd-shared.la
4214 dist_bashcompletion_DATA += \
4215 shell-completion/bash/localectl
4217 dist_zshcompletion_DATA += \
4218 shell-completion/zsh/_localectl
4222 .PHONY: update-kbd-model-map
4224 polkitpolicy_in_files += \
4225 src/locale/org.freedesktop.locale1.policy.in
4228 units/systemd-localed.service.in
4230 # ------------------------------------------------------------------------------
4232 systemd_timedated_SOURCES = \
4233 src/timedate/timedated.c
4235 systemd_timedated_LDADD = \
4236 libsystemd-label.la \
4237 libsystemd-internal.la \
4238 libsystemd-shared.la
4240 rootlibexec_PROGRAMS += \
4243 dist_dbussystemservice_DATA += \
4244 src/timedate/org.freedesktop.timedate1.service
4246 dist_dbuspolicy_DATA += \
4247 src/timedate/org.freedesktop.timedate1.conf
4249 nodist_systemunit_DATA += \
4250 units/systemd-timedated.service
4252 dist_systemunit_DATA += \
4253 units/org.freedesktop.timedate1.busname
4255 polkitpolicy_files += \
4256 src/timedate/org.freedesktop.timedate1.policy
4259 $(prefix)/lib/systemd/ntp-units.d \
4260 $(sysconfdir)/systemd/ntp-units.d
4262 SYSTEM_UNIT_ALIASES += \
4263 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4265 BUSNAMES_TARGET_WANTS += \
4266 org.freedesktop.timedate1.busname
4268 timedatectl_SOURCES = \
4269 src/timedate/timedatectl.c
4271 timedatectl_LDADD = \
4272 libsystemd-internal.la \
4273 libsystemd-shared.la
4278 dist_bashcompletion_DATA += \
4279 shell-completion/bash/timedatectl
4281 dist_zshcompletion_DATA += \
4282 shell-completion/zsh/_timedatectl
4285 polkitpolicy_in_files += \
4286 src/timedate/org.freedesktop.timedate1.policy.in
4289 units/systemd-timedated.service.in
4291 # ------------------------------------------------------------------------------
4293 systemd_timesyncd_SOURCES = \
4294 src/timesync/timesyncd.c \
4295 src/timesync/timesyncd.h
4297 nodist_systemd_timesyncd_SOURCES = \
4298 src/timesync/timesyncd-gperf.c
4301 src/timesync/timesyncd-gperf.gperf
4304 src/timesync/timesyncd-gperf.c
4306 systemd_timesyncd_LDADD = \
4307 libsystemd-resolve.la \
4308 libsystemd-network.la \
4309 libsystemd-label.la \
4310 libsystemd-capability.la \
4311 libsystemd-internal.la \
4312 libsystemd-shared.la \
4315 rootlibexec_PROGRAMS += \
4318 nodist_systemunit_DATA += \
4319 units/systemd-timesyncd.service
4321 GENERAL_ALIASES += \
4322 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-timesyncd.service
4325 units/systemd-timesyncd.service.in
4327 nodist_pkgsysconf_DATA += \
4328 src/timesync/timesyncd.conf
4331 src/timesync/timesyncd.conf.in
4334 src/timesync/timesyncd.conf
4336 dist_ntpunits_DATA = \
4337 src/timesync/90-systemd.list
4341 # ------------------------------------------------------------------------------
4343 libnss_myhostname_la_SOURCES = \
4344 src/nss-myhostname/nss-myhostname.c \
4345 src/nss-myhostname/ifconf.h \
4346 src/nss-myhostname/netlink.c
4348 libnss_myhostname_la_LDFLAGS = \
4356 libnss_myhostname_la_LIBADD = \
4357 libsystemd-shared.la \
4358 libsystemd-internal.la
4360 lib_LTLIBRARIES += \
4361 libnss_myhostname.la
4364 # ------------------------------------------------------------------------------
4366 systemd_machined_SOURCES = \
4367 src/machine/machined.c \
4368 src/machine/machined.h
4370 systemd_machined_LDADD = \
4371 libsystemd-machine-core.la
4373 rootlibexec_PROGRAMS += \
4376 libsystemd_machine_core_la_SOURCES = \
4377 src/machine/machined-dbus.c \
4378 src/machine/machine.c \
4379 src/machine/machine.h \
4380 src/machine/machine-dbus.c
4382 libsystemd_machine_core_la_LIBADD = \
4383 libsystemd-label.la \
4384 libsystemd-internal.la \
4385 libudev-internal.la \
4386 libsystemd-shared.la
4388 noinst_LTLIBRARIES += \
4389 libsystemd-machine-core.la
4391 machinectl_SOURCES = \
4392 src/machine/machinectl.c
4394 machinectl_LDADD = \
4395 libsystemd-internal.la \
4396 libsystemd-shared.la
4398 rootbin_PROGRAMS += \
4401 dist_bashcompletion_DATA += \
4402 shell-completion/bash/machinectl
4404 test_machine_tables_SOURCES = \
4405 src/machine/test-machine-tables.c
4407 test_machine_tables_LDADD = \
4408 libsystemd-machine-core.la
4413 nodist_systemunit_DATA += \
4414 units/systemd-machined.service
4416 dist_systemunit_DATA += \
4417 units/machine.slice \
4418 units/org.freedesktop.machine1.busname
4420 dist_dbussystemservice_DATA += \
4421 src/machine/org.freedesktop.machine1.service
4423 dist_dbuspolicy_DATA += \
4424 src/machine/org.freedesktop.machine1.conf
4426 dist_zshcompletion_DATA += \
4427 shell-completion/zsh/_machinectl \
4428 shell-completion/zsh/_sd_machines
4430 SYSTEM_UNIT_ALIASES += \
4431 systemd-machined.service dbus-org.freedesktop.machine1.service
4433 BUSNAMES_TARGET_WANTS += \
4434 org.freedesktop.machine1.busname
4437 units/systemd-machined.service.in
4441 # ------------------------------------------------------------------------------
4443 systemd_resolved_SOURCES = \
4444 src/resolve/resolved.h \
4445 src/resolve/resolved.c \
4446 src/resolve/resolved-manager.c
4448 systemd_resolved_CFLAGS = \
4452 nodist_systemd_resolved_SOURCES = \
4453 src/resolve/resolved-gperf.c
4456 src/resolve/resolved-gperf.gperf
4459 src/resolve/resolved-gperf.c
4461 systemd_resolved_LDADD = \
4462 libsystemd-capability.la \
4463 libsystemd-network.la \
4464 libsystemd-label.la \
4465 libsystemd-internal.la \
4466 libsystemd-shared.la
4468 rootlibexec_PROGRAMS += \
4471 nodist_systemunit_DATA += \
4472 units/systemd-resolved.service
4475 units/systemd-resolved.service.in
4477 GENERAL_ALIASES += \
4478 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
4480 nodist_pkgsysconf_DATA += \
4481 src/resolve/resolved.conf
4484 src/resolve/resolved.conf.in
4487 src/resolve/resolved.conf
4491 # ------------------------------------------------------------------------------
4493 rootlibexec_PROGRAMS += \
4496 systemd_networkd_SOURCES = \
4497 src/network/networkd.c
4499 systemd_networkd_LDADD = \
4500 libsystemd-networkd-core.la \
4501 libsystemd-capability.la
4503 noinst_LTLIBRARIES += \
4504 libsystemd-networkd-core.la
4506 libsystemd_networkd_core_la_CFLAGS = \
4509 libsystemd_networkd_core_la_SOURCES = \
4510 src/libsystemd-network/network-internal.h \
4511 src/network/networkd.h \
4512 src/network/networkd-link.c \
4513 src/network/networkd-netdev.c \
4514 src/network/networkd-tunnel.c \
4515 src/network/networkd-veth.c \
4516 src/network/networkd-vxlan.c \
4517 src/network/networkd-network.c \
4518 src/network/networkd-address.c \
4519 src/network/networkd-route.c \
4520 src/network/networkd-manager.c \
4521 src/network/networkd-address-pool.c
4523 nodist_libsystemd_networkd_core_la_SOURCES = \
4524 src/network/networkd-network-gperf.c \
4525 src/network/networkd-netdev-gperf.c
4527 libsystemd_networkd_core_la_LIBADD = \
4528 libudev-internal.la \
4529 libsystemd-internal.la \
4530 libsystemd-network.la \
4531 libsystemd-label.la \
4532 libsystemd-shared.la
4534 rootlibexec_PROGRAMS += \
4535 systemd-networkd-wait-online
4537 systemd_networkd_wait_online_CFLAGS = \
4540 systemd_networkd_wait_online_SOURCES = \
4541 src/libsystemd-network/network-internal.h \
4542 src/network/networkd-wait-online.c \
4543 src/network/networkd-wait-online.h
4545 systemd_networkd_wait_online_LDADD = \
4546 libsystemd-network.la \
4547 libudev-internal.la \
4548 libsystemd-internal.la \
4549 libsystemd-shared.la
4551 test_network_SOURCES = \
4552 src/network/test-network.c
4554 test_network_CFLAGS = \
4557 test_network_LDADD = \
4558 libsystemd-networkd-core.la
4563 nodist_systemunit_DATA += \
4564 units/systemd-networkd.service \
4565 units/systemd-networkd-wait-online.service
4567 GENERAL_ALIASES += \
4568 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
4569 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
4572 src/network/networkd-network-gperf.gperf \
4573 src/network/networkd-netdev-gperf.gperf \
4574 units/systemd-networkd.service.in \
4575 units/systemd-networkd-wait-online.service.in
4578 src/network/networkd-network-gperf.c \
4579 src/network/networkd-netdev-gperf.c
4582 # ------------------------------------------------------------------------------
4584 systemd_logind_SOURCES = \
4585 src/login/logind.c \
4588 nodist_systemd_logind_SOURCES = \
4589 src/login/logind-gperf.c
4591 systemd_logind_LDADD = \
4592 libsystemd-logind-core.la
4594 libsystemd_logind_core_la_SOURCES = \
4595 src/login/logind-core.c \
4596 src/login/logind-device.c \
4597 src/login/logind-device.h \
4598 src/login/logind-button.c \
4599 src/login/logind-button.h \
4600 src/login/logind-action.c \
4601 src/login/logind-action.h \
4602 src/login/logind-seat.c \
4603 src/login/logind-seat.h \
4604 src/login/logind-session.c \
4605 src/login/logind-session.h \
4606 src/login/logind-session-device.c \
4607 src/login/logind-session-device.h \
4608 src/login/logind-user.c \
4609 src/login/logind-user.h \
4610 src/login/logind-inhibit.c \
4611 src/login/logind-inhibit.h \
4612 src/login/logind-dbus.c \
4613 src/login/logind-session-dbus.c \
4614 src/login/logind-seat-dbus.c \
4615 src/login/logind-user-dbus.c \
4616 src/login/logind-acl.h
4618 libsystemd_logind_core_la_LIBADD = \
4619 libsystemd-label.la \
4620 libsystemd-capability.la \
4621 libsystemd-internal.la \
4622 libudev-internal.la \
4623 libsystemd-shared.la
4626 libsystemd_logind_core_la_SOURCES += \
4627 src/login/logind-acl.c
4629 libsystemd_logind_core_la_LIBADD += \
4633 noinst_LTLIBRARIES += \
4634 libsystemd-logind-core.la
4636 systemd_user_sessions_SOURCES = \
4637 src/login/user-sessions.c
4639 systemd_user_sessions_LDADD = \
4640 libsystemd-shared.la
4642 rootlibexec_PROGRAMS += \
4644 systemd-user-sessions
4646 loginctl_SOURCES = \
4647 src/login/loginctl.c \
4648 src/login/sysfs-show.c
4651 libsystemd-internal.la \
4652 libudev-internal.la \
4653 libsystemd-shared.la
4655 rootbin_PROGRAMS += \
4658 dist_bashcompletion_DATA += \
4659 shell-completion/bash/loginctl
4661 dist_zshcompletion_DATA += \
4662 shell-completion/zsh/_loginctl \
4663 shell-completion/zsh/_systemd-inhibit
4665 systemd_inhibit_SOURCES = \
4668 systemd_inhibit_LDADD = \
4669 libsystemd-internal.la \
4670 libsystemd-shared.la
4672 rootbin_PROGRAMS += \
4675 test_login_SOURCES = \
4676 src/libsystemd/sd-login/test-login.c
4678 test_login_LDADD = \
4679 libsystemd-internal.la \
4680 libsystemd-shared.la
4682 test_login_shared_SOURCES = \
4683 src/login/test-login-shared.c
4685 test_login_shared_LDADD = \
4686 libsystemd-internal.la \
4687 libsystemd-shared.la
4689 test_inhibit_SOURCES = \
4690 src/login/test-inhibit.c
4692 test_inhibit_LDADD = \
4693 libsystemd-internal.la \
4694 libsystemd-shared.la
4696 test_login_tables_SOURCES = \
4697 src/login/test-login-tables.c
4699 test_login_tables_LDADD = \
4700 libsystemd-logind-core.la
4711 pam_systemd_la_SOURCES = \
4712 src/login/pam_systemd.sym \
4713 src/login/pam_systemd.c
4715 pam_systemd_la_CFLAGS = \
4720 pam_systemd_la_LDFLAGS = \
4726 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
4728 pam_systemd_la_LIBADD = \
4729 libsystemd-capability.la \
4730 libsystemd-internal.la \
4731 libsystemd-shared.la \
4734 pamlib_LTLIBRARIES = \
4737 dist_pamconf_DATA = \
4738 src/login/systemd-user
4741 nodist_systemunit_DATA += \
4742 units/systemd-logind.service \
4743 units/systemd-user-sessions.service
4745 dist_systemunit_DATA += \
4747 units/org.freedesktop.login1.busname
4749 dist_dbussystemservice_DATA += \
4750 src/login/org.freedesktop.login1.service
4752 dist_dbuspolicy_DATA += \
4753 src/login/org.freedesktop.login1.conf
4755 dist_pkgsysconf_DATA += \
4756 src/login/logind.conf
4758 polkitpolicy_files += \
4759 src/login/org.freedesktop.login1.policy
4764 MULTI_USER_TARGET_WANTS += \
4765 systemd-logind.service \
4766 systemd-user-sessions.service
4768 SYSTEM_UNIT_ALIASES += \
4769 systemd-logind.service dbus-org.freedesktop.login1.service
4771 BUSNAMES_TARGET_WANTS += \
4772 org.freedesktop.login1.busname
4774 if ENABLE_MULTI_SEAT_X
4776 systemd_multi_seat_x_SOURCES = \
4777 src/login/multi-seat-x.c
4779 systemd_multi_seat_x_LDADD = \
4780 libsystemd-label.la \
4781 libsystemd-shared.la
4783 rootlibexec_PROGRAMS += \
4784 systemd-multi-seat-x
4788 dist_udevrules_DATA += \
4789 src/login/70-uaccess.rules \
4790 src/login/70-power-switch.rules
4792 nodist_udevrules_DATA += \
4793 src/login/71-seat.rules \
4794 src/login/73-seat-late.rules
4797 src/login/logind-gperf.c \
4798 src/login/71-seat.rules \
4799 src/login/73-seat-late.rules
4802 polkitpolicy_in_files += \
4803 src/login/org.freedesktop.login1.policy.in
4806 src/login/logind-gperf.gperf \
4807 src/login/71-seat.rules.in \
4808 src/login/73-seat-late.rules.in \
4809 units/systemd-logind.service.in \
4810 units/systemd-user-sessions.service.in
4812 # ------------------------------------------------------------------------------
4813 if HAVE_PYTHON_DEVEL
4814 pkgpyexec_LTLIBRARIES = \
4821 _journal_la_SOURCES = \
4822 src/python-systemd/_journal.c
4824 _journal_la_CFLAGS = \
4826 -fvisibility=default \
4827 $(PYTHON_DEVEL_CFLAGS)
4829 _journal_la_LDFLAGS = \
4835 _journal_la_LIBADD = \
4836 $(PYTHON_DEVEL_LIBS) \
4839 id128_la_SOURCES = \
4840 src/python-systemd/id128.c \
4841 src/python-systemd/pyutil.c \
4842 src/python-systemd/pyutil.h
4844 nodist_id128_la_SOURCES = \
4845 src/python-systemd/id128-constants.h
4849 -fvisibility=default \
4850 $(PYTHON_DEVEL_CFLAGS) \
4851 -I$(top_builddir)/src/python-systemd
4853 id128_la_LDFLAGS = \
4860 $(PYTHON_DEVEL_LIBS) \
4861 libsystemd-shared.la \
4864 _daemon_la_SOURCES = \
4865 src/python-systemd/_daemon.c \
4866 src/python-systemd/pyutil.c \
4867 src/python-systemd/pyutil.h
4869 _daemon_la_CFLAGS = \
4871 -fvisibility=default \
4872 $(PYTHON_DEVEL_CFLAGS) \
4873 -I$(top_builddir)/src/python-systemd
4875 _daemon_la_LDFLAGS = \
4881 _daemon_la_LIBADD = \
4882 $(PYTHON_DEVEL_LIBS) \
4883 libsystemd-shared.la \
4886 _reader_la_SOURCES = \
4887 src/python-systemd/_reader.c \
4888 src/python-systemd/pyutil.c \
4889 src/python-systemd/pyutil.h
4891 _reader_la_CFLAGS = \
4893 -fvisibility=default \
4894 $(PYTHON_DEVEL_CFLAGS)
4896 _reader_la_LDFLAGS = \
4902 _reader_la_LIBADD = \
4903 $(PYTHON_DEVEL_LIBS) \
4904 libsystemd-shared.la \
4907 login_la_SOURCES = \
4908 src/python-systemd/login.c \
4909 src/python-systemd/pyutil.c \
4910 src/python-systemd/pyutil.h
4914 -fvisibility=default \
4915 $(PYTHON_DEVEL_CFLAGS)
4917 login_la_LDFLAGS = \
4924 $(PYTHON_DEVEL_LIBS) \
4925 libsystemd-shared.la \
4928 dist_pkgpyexec_PYTHON = \
4929 src/python-systemd/journal.py \
4930 src/python-systemd/daemon.py \
4931 src/python-systemd/__init__.py
4933 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
4934 $(AM_V_at)$(MKDIR_P) $(dir $@)
4935 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
4938 src/python-systemd/id128-constants.h
4940 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
4942 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
4943 $(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/
4944 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
4947 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
4948 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
4951 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
4952 $(MAKE) DESTDIR="$$dir" install && \
4953 $(MAKE) DESTDIR="$$dir" sphinx-html && \
4958 CLEAN_LOCAL_HOOKS += clean-sphinx
4960 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
4963 -rm -rf docs/html/python-systemd/
4965 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
4967 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
4968 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
4970 # ------------------------------------------------------------------------------
4971 if ENABLE_COMPAT_LIBS
4973 src/compat-libs/linkwarning.h
4975 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
4976 $(AM_V_at)$(MKDIR_P) $(dir $@)
4977 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
4980 libsystemd-journal.c \
4981 libsystemd-login.c \
4982 libsystemd-id128.c \
4985 libsystemd_journal_la_SOURCES = \
4986 libsystemd-journal.c \
4987 src/compat-libs/libsystemd-journal.sym
4989 libsystemd_journal_la_CPPFLAGS = \
4991 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
4993 libsystemd_journal_la_LDFLAGS = \
4995 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
4996 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
4998 libsystemd_journal_la_LIBADD = \
4999 libsystemd-journal-internal.la \
5000 libsystemd-internal.la \
5001 libsystemd-shared.la
5003 libsystemd_login_la_SOURCES = \
5004 libsystemd-login.c \
5005 src/compat-libs/libsystemd-login.sym
5007 libsystemd_login_la_CPPFLAGS = \
5009 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5011 libsystemd_login_la_LDFLAGS = \
5013 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
5014 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
5016 libsystemd_login_la_LIBADD = \
5017 libsystemd-internal.la \
5018 libsystemd-shared.la
5020 libsystemd_id128_la_SOURCES = \
5021 libsystemd-id128.c \
5022 src/compat-libs/libsystemd-id128.sym
5024 libsystemd_id128_la_CPPFLAGS = \
5026 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5028 libsystemd_id128_la_LDFLAGS = \
5030 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
5031 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
5033 libsystemd_id128_la_LIBADD = \
5034 libsystemd-internal.la \
5035 libsystemd-shared.la
5037 libsystemd_daemon_la_SOURCES = \
5038 libsystemd-daemon.c \
5039 src/compat-libs/libsystemd-daemon.sym
5041 libsystemd_daemon_la_CPPFLAGS = \
5043 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5045 libsystemd_daemon_la_LDFLAGS = \
5047 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
5048 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
5050 libsystemd_daemon_la_LIBADD = \
5051 libsystemd-internal.la \
5052 libsystemd-shared.la
5054 lib_LTLIBRARIES += \
5055 libsystemd-journal.la \
5056 libsystemd-login.la \
5057 libsystemd-id128.la \
5058 libsystemd-daemon.la
5060 pkgconfiglib_DATA += \
5061 src/compat-libs/libsystemd-journal.pc \
5062 src/compat-libs/libsystemd-login.pc \
5063 src/compat-libs/libsystemd-id128.pc \
5064 src/compat-libs/libsystemd-daemon.pc
5066 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
5067 compat-lib-install-hook:
5068 libname=libsystemd-login.so && $(move-to-rootlibdir)
5069 libname=libsystemd-journal.so && $(move-to-rootlibdir)
5070 libname=libsystemd-id128.so && $(move-to-rootlibdir)
5071 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
5073 compat-lib-uninstall-hook:
5074 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
5075 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
5076 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
5077 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
5079 INSTALL_EXEC_HOOKS += compat-lib-install-hook
5080 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
5084 src/compat-libs/libsystemd-journal.pc.in \
5085 src/compat-libs/libsystemd-login.pc.in \
5086 src/compat-libs/libsystemd-id128.pc.in \
5087 src/compat-libs/libsystemd-daemon.pc.in
5089 # ------------------------------------------------------------------------------
5091 '|rootlibexecdir=$(rootlibexecdir)|' \
5092 '|rootbindir=$(rootbindir)|' \
5093 '|bindir=$(bindir)|' \
5094 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5095 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5096 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5097 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5098 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
5099 '|pkgdatadir=$(pkgdatadir)|' \
5100 '|systemunitdir=$(systemunitdir)|' \
5101 '|userunitdir=$(userunitdir)|' \
5102 '|systempresetdir=$(systempresetdir)|' \
5103 '|userpresetdir=$(userpresetdir)|' \
5104 '|udevhwdbdir=$(udevhwdbdir)|' \
5105 '|udevrulesdir=$(udevrulesdir)|' \
5106 '|catalogdir=$(catalogdir)|' \
5107 '|tmpfilesdir=$(tmpfilesdir)|' \
5108 '|sysusersdir=$(sysusersdir)|' \
5109 '|sysctldir=$(sysctldir)|' \
5110 '|systemgeneratordir=$(systemgeneratordir)|' \
5111 '|usergeneratordir=$(usergeneratordir)|' \
5112 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
5113 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
5114 '|PACKAGE_URL=$(PACKAGE_URL)|' \
5115 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
5116 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
5117 '|prefix=$(prefix)|' \
5118 '|exec_prefix=$(exec_prefix)|' \
5119 '|libdir=$(libdir)|' \
5120 '|includedir=$(includedir)|' \
5121 '|VERSION=$(VERSION)|' \
5122 '|rootprefix=$(rootprefix)|' \
5123 '|udevlibexecdir=$(udevlibexecdir)|' \
5124 '|SUSHELL=$(SUSHELL)|' \
5125 '|DEBUGTTY=$(DEBUGTTY)|' \
5128 '|MKDIR_P=$(MKDIR_P)|' \
5129 '|QUOTAON=$(QUOTAON)|' \
5130 '|QUOTACHECK=$(QUOTACHECK)|' \
5131 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
5132 '|VARLOGDIR=$(varlogdir)|' \
5133 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
5134 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
5135 '|PYTHON=$(PYTHON)|' \
5136 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
5137 '|NTP_SERVERS=$(NTP_SERVERS)|' \
5138 '|DNS_SERVERS=$(DNS_SERVERS)|' \
5139 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
5140 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
5141 '|TTY_GID=$(TTY_GID)|'
5144 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
5145 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
5154 sysctl.d/%: sysctl.d/%.in
5160 src/core/macros.%: src/core/macros.%.in
5163 src/%.policy.in: src/%.policy.in.in
5174 $(AM_V_GEN)chmod +x $@
5176 src/%.c: src/%.gperf
5177 $(AM_V_at)$(MKDIR_P) $(dir $@)
5178 $(AM_V_GPERF)$(GPERF) < $< > $@
5181 $(AM_V_at)$(MKDIR_P) $(dir $@)
5182 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5185 $(AM_V_at)$(MKDIR_P) $(dir $@)
5186 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
5188 units/user/%: units/%.m4
5189 $(AM_V_at)$(MKDIR_P) $(dir $@)
5190 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
5193 dist_polkitpolicy_DATA = \
5194 $(polkitpolicy_files) \
5195 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
5199 $(polkitpolicy_in_files) \
5200 $(polkitpolicy_in_in_files)
5203 $(nodist_systemunit_DATA) \
5204 $(nodist_userunit_DATA) \
5205 $(pkgconfigdata_DATA) \
5206 $(pkgconfiglib_DATA) \
5207 $(nodist_polkitpolicy_DATA)
5209 # ------------------------------------------------------------------------------
5211 man/custom-entities.ent: configure.ac
5212 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
5213 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
5214 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
5218 man/custom-entities.ent
5223 --stringparam man.output.quietly 1 \
5224 --stringparam funcsynopsis.style ansi \
5225 --stringparam man.authors.section.enabled 0 \
5226 --stringparam man.copyright.section.enabled 0 \
5227 --stringparam systemd.version $(VERSION) \
5228 --path '$(builddir)/man:$(srcdir)/man'
5230 XSLTPROC_PROCESS_MAN = \
5231 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
5233 XSLTPROC_PROCESS_HTML = \
5234 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
5236 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
5237 $(XSLTPROC_PROCESS_MAN)
5239 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
5240 $(XSLTPROC_PROCESS_MAN)
5242 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
5243 $(XSLTPROC_PROCESS_MAN)
5245 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
5246 $(XSLTPROC_PROCESS_MAN)
5248 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
5249 $(XSLTPROC_PROCESS_MAN)
5251 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
5252 $(XSLTPROC_PROCESS_HTML)
5255 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
5261 man/custom-html.xsl \
5264 # ------------------------------------------------------------------------------
5267 docs/sysvinit/README
5272 docs/sysvinit/README: docs/sysvinit/README.in
5275 docs/var-log/README: docs/var-log/README.in
5279 docs/sysvinit/README \
5284 docs/sysvinit/README.in \
5285 docs/var-log/README.in
5287 SOCKETS_TARGET_WANTS += \
5288 systemd-initctl.socket \
5289 systemd-shutdownd.socket
5292 RUNLEVEL1_TARGET_WANTS += \
5293 systemd-update-utmp-runlevel.service
5294 RUNLEVEL2_TARGET_WANTS += \
5295 systemd-update-utmp-runlevel.service
5296 RUNLEVEL3_TARGET_WANTS += \
5297 systemd-update-utmp-runlevel.service
5298 RUNLEVEL4_TARGET_WANTS += \
5299 systemd-update-utmp-runlevel.service
5300 RUNLEVEL5_TARGET_WANTS += \
5301 systemd-update-utmp-runlevel.service
5304 SYSINIT_TARGET_WANTS += \
5305 systemd-update-utmp.service \
5306 systemd-update-done.service \
5309 LOCAL_FS_TARGET_WANTS += \
5310 systemd-remount-fs.service \
5313 MULTI_USER_TARGET_WANTS += \
5315 systemd-ask-password-wall.path
5317 SYSINIT_TARGET_WANTS += \
5318 dev-hugepages.mount \
5320 sys-kernel-config.mount \
5321 sys-kernel-debug.mount \
5322 sys-fs-fuse-connections.mount \
5323 systemd-sysctl.service \
5324 systemd-ask-password-console.path
5327 SYSTEM_UNIT_ALIASES += \
5328 poweroff.target runlevel0.target \
5329 rescue.target runlevel1.target \
5330 multi-user.target runlevel2.target \
5331 multi-user.target runlevel3.target \
5332 multi-user.target runlevel4.target \
5333 graphical.target runlevel5.target \
5334 reboot.target runlevel6.target
5337 SYSTEM_UNIT_ALIASES += \
5338 graphical.target default.target \
5339 reboot.target ctrl-alt-del.target \
5340 getty@.service autovt@.service
5342 USER_UNIT_ALIASES += \
5343 $(systemunitdir)/shutdown.target shutdown.target \
5344 $(systemunitdir)/sockets.target sockets.target \
5345 $(systemunitdir)/busnames.target busnames.target \
5346 $(systemunitdir)/timers.target timers.target \
5347 $(systemunitdir)/paths.target paths.target \
5348 $(systemunitdir)/bluetooth.target bluetooth.target \
5349 $(systemunitdir)/printer.target printer.target \
5350 $(systemunitdir)/sound.target sound.target \
5351 $(systemunitdir)/smartcard.target smartcard.target
5353 GENERAL_ALIASES += \
5354 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
5355 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
5356 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
5357 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
5361 $(systemunitdir)/runlevel1.target.wants \
5362 $(systemunitdir)/runlevel2.target.wants \
5363 $(systemunitdir)/runlevel3.target.wants \
5364 $(systemunitdir)/runlevel4.target.wants \
5365 $(systemunitdir)/runlevel5.target.wants
5369 $(prefix)/lib/modules-load.d \
5370 $(sysconfdir)/modules-load.d \
5371 $(prefix)/lib/systemd/network \
5372 $(sysconfdir)/systemd/network \
5373 $(prefix)/lib/sysctl.d \
5374 $(sysconfdir)/sysctl.d \
5375 $(prefix)/lib/kernel/install.d \
5376 $(sysconfdir)/kernel/install.d \
5377 $(systemshutdowndir) \
5379 $(systemgeneratordir) \
5380 $(usergeneratordir) \
5383 $(pkgsysconfdir)/system \
5384 $(pkgsysconfdir)/system/multi-user.target.wants \
5385 $(pkgsysconfdir)/system/getty.target.wants \
5386 $(pkgsysconfdir)/user \
5387 $(dbussessionservicedir) \
5388 $(sysconfdir)/xdg/systemd
5390 install-exec-hook: $(INSTALL_EXEC_HOOKS)
5392 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
5394 install-data-hook: $(INSTALL_DATA_HOOKS)
5396 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
5398 clean-local: $(CLEAN_LOCAL_HOOKS)
5399 rm -rf $(abs_srcdir)/install-tree
5400 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
5401 $(abs_srcdir)/hwdb/iab.txt
5403 DISTCHECK_CONFIGURE_FLAGS = \
5404 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
5405 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
5406 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
5407 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
5408 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
5409 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
5410 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
5411 --with-rootprefix=$$dc_install_base \
5412 --disable-split-usr \
5414 --enable-compat-libs
5417 DISTCHECK_CONFIGURE_FLAGS += \
5418 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
5419 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
5421 DISTCHECK_CONFIGURE_FLAGS += \
5422 --with-sysvinit-path= \
5423 --with-sysvrcnd-path=
5427 DISTCHECK_CONFIGURE_FLAGS += \
5432 DISTCHECK_CONFIGURE_FLAGS += \
5437 # Require python when making dist
5439 .PHONY: dist-check-python
5442 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
5446 dist-check-compat-libs:
5447 if !ENABLE_COMPAT_LIBS
5448 @echo "*** compat-libs must be enabled in order to make dist"
5452 dist: dist-check-python dist-check-compat-libs
5454 # check "broken" platforms limited toolchains for link breakage before we release
5457 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
5461 ( cd $(top_srcdir)/hwdb && \
5462 wget -N http://www.linux-usb.org/usb.ids \
5463 http://pci-ids.ucw.cz/v2.2/pci.ids \
5464 http://standards.ieee.org/develop/regauth/oui/oui.txt \
5465 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
5468 .PHONY: kdbus-update
5470 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
5471 wget -N https://d-bus.googlecode.com/git/kdbus.h )
5475 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
5477 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
5479 upload: all check dist
5480 scp systemd-$(VERSION).tar.xz $(www_target)
5483 doc-sync: all destdir-sphinx
5484 gtkdoc-rebase --html-dir=docs/libudev/html --online
5485 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
5486 gtkdoc-rebase --html-dir=docs/gudev/html --online
5487 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
5488 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
5489 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
5493 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
5494 scp man/*.html tango:public/systemd-man/
5496 .PHONY: install-tree
5498 rm -rf $(abs_srcdir)/install-tree
5499 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
5500 tree $(abs_srcdir)/install-tree
5502 # Let's run all tests of the test suite, but under valgrind. Let's
5503 # exclude the one perl script we have in there
5504 .PHONY: valgrind-tests
5505 valgrind-tests: $(TESTS)
5506 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
5507 if file $$f | grep -q shell; then \
5508 echo -e "$${x}Skipping non-binary $$f"; else \
5509 echo -e "$${x}Running $$f"; \
5510 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
5515 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
5517 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
5518 $(AM_V_GEN)cat $^ > $@
5520 .PHONY: check-api-docs
5521 check-api-docs: exported man
5522 $(AM_V_GEN)for symbol in `cat exported` ; do \
5523 if test -f $(builddir)/man/$$symbol.html ; then \
5524 echo " Symbol $$symbol() is documented." ; \
5526 echo "‣ Symbol $$symbol() lacks documentation." ; \
5530 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
5531 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
5533 undefined defined: $(ALL_OBJECTS)
5534 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
5535 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
5536 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
5542 .PHONY: check-api-unused
5543 check-api-unused: defined undefined exported
5544 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
5546 .PHONY: check-includes
5547 check-includes: $(top_srcdir)/tools/check-includes.pl
5548 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
5549 | xargs $(top_srcdir)/tools/check-includes.pl
5552 $(top_srcdir)/tools/check-includes.pl
5554 # Stupid test that everything purported to be exported really is
5555 define generate-sym-test
5556 $(AM_V_at)$(MKDIR_P) $(dir $@)
5557 $(AM_V_at)printf '#include <stdio.h>\n' > $@
5558 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
5559 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
5560 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
5561 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
5562 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
5563 $(AM_V_at)printf 'return 0; }\n' >> $@
5566 test-libsystemd-sym.c: \
5567 $(top_builddir)/src/libsystemd/libsystemd.sym \
5568 src/systemd/sd-journal.h \
5569 src/systemd/sd-daemon.h \
5570 src/systemd/sd-login.h \
5571 src/systemd/sd-bus.h \
5572 src/systemd/sd-utf8.h \
5573 src/systemd/sd-resolve.h
5574 $(generate-sym-test)
5576 test-libudev-sym.c: \
5577 src/libudev/libudev.sym \
5579 $(generate-sym-test)
5581 test_libsystemd_sym_SOURCES = \
5582 test-libsystemd-sym.c
5583 test_libsystemd_sym_LDADD = \
5586 test_libudev_sym_SOURCES = \
5588 test_libudev_sym_CFLAGS = \
5590 -Wno-deprecated-declarations
5591 test_libudev_sym_LDADD = \
5595 $(test_libsystemd_sym_SOURCES) \
5596 $(test_libudev_sym_SOURCES)
5599 test-libsystemd-sym \
5604 cppcheck --enable=all -q $(top_srcdir)
5606 # Used to extract compile flags for YCM.
5611 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u