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 binfmtdir=$(prefix)/lib/binfmt.d
94 modulesloaddir=$(prefix)/lib/modules-load.d
95 networkdir=$(rootprefix)/lib/systemd/network
96 pkgincludedir=$(includedir)/systemd
97 systemgeneratordir=$(rootlibexecdir)/system-generators
98 usergeneratordir=$(prefix)/lib/systemd/user-generators
99 systemshutdowndir=$(rootlibexecdir)/system-shutdown
100 systemsleepdir=$(rootlibexecdir)/system-sleep
101 systemunitdir=$(rootprefix)/lib/systemd/system
102 systempresetdir=$(rootprefix)/lib/systemd/system-preset
103 udevlibexecdir=$(rootprefix)/lib/udev
104 udevhomedir=$(udevlibexecdir)
105 udevrulesdir=$(udevlibexecdir)/rules.d
106 udevhwdbdir=$(udevlibexecdir)/hwdb.d
107 catalogdir=$(prefix)/lib/systemd/catalog
108 kernelinstalldir = $(prefix)/lib/kernel/install.d
109 ntpunitsdir=$(prefix)/lib/systemd/ntp-units.d
111 # And these are the special ones for /
112 rootprefix=@rootprefix@
113 rootbindir=$(rootprefix)/bin
114 rootlibexecdir=$(rootprefix)/lib/systemd
116 CLEANFILES = $(BUILT_SOURCES)
121 UNINSTALL_EXEC_HOOKS =
123 UNINSTALL_DATA_HOOKS =
124 DISTCLEAN_LOCAL_HOOKS =
132 polkitpolicy_in_in_files =
133 polkitpolicy_in_files =
135 dist_udevrules_DATA =
136 nodist_udevrules_DATA =
137 nodist_pkgsysconf_DATA =
138 dist_pkgsysconf_DATA =
140 dist_dbuspolicy_DATA =
141 dist_dbussystemservice_DATA =
147 noinst_PROGRAMS = $(manual_tests) $(tests)
153 udevlibexec_PROGRAMS =
155 .PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \
156 $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \
157 $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS)
160 -include $(top_builddir)/config.h \
161 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
162 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
163 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
164 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
165 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
166 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
167 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
168 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
169 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
170 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
171 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
172 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
173 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
174 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
175 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
176 -DROOTPREFIX=\"$(rootprefix)\" \
177 -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \
178 -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
179 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
180 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
181 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
182 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
183 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
184 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
185 -DX_SERVER=\"$(bindir)/X\" \
186 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
187 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
188 -DQUOTACHECK=\"$(QUOTACHECK)\" \
189 -DKEXEC=\"$(KEXEC)\" \
190 -I $(top_srcdir)/src \
191 -I $(top_builddir)/src/shared \
192 -I $(top_srcdir)/src/shared \
193 -I $(top_srcdir)/src/network \
194 -I $(top_srcdir)/src/login \
195 -I $(top_srcdir)/src/journal \
196 -I $(top_srcdir)/src/timedate \
197 -I $(top_srcdir)/src/timesync \
198 -I $(top_srcdir)/src/resolve \
199 -I $(top_srcdir)/src/systemd \
200 -I $(top_builddir)/src/core \
201 -I $(top_srcdir)/src/core \
202 -I $(top_srcdir)/src/libudev \
203 -I $(top_srcdir)/src/udev \
204 -I $(top_srcdir)/src/udev/net \
205 -I $(top_builddir)/src/udev \
206 -I $(top_srcdir)/src/libsystemd/sd-bus \
207 -I $(top_srcdir)/src/libsystemd/sd-event \
208 -I $(top_srcdir)/src/libsystemd/sd-rtnl \
209 -I $(top_srcdir)/src/libsystemd-network \
212 AM_CFLAGS = $(OUR_CFLAGS)
213 AM_LDFLAGS = $(OUR_LDFLAGS)
215 # ------------------------------------------------------------------------------
216 define move-to-rootlibdir
217 if test "$(libdir)" != "$(rootlibdir)"; then \
218 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
219 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
220 rm -f $(DESTDIR)$(libdir)/$$libname && \
221 $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
222 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
228 RUNLEVEL1_TARGET_WANTS =
229 RUNLEVEL2_TARGET_WANTS =
230 RUNLEVEL3_TARGET_WANTS =
231 RUNLEVEL4_TARGET_WANTS =
232 RUNLEVEL5_TARGET_WANTS =
233 SHUTDOWN_TARGET_WANTS =
234 LOCAL_FS_TARGET_WANTS =
235 MULTI_USER_TARGET_WANTS =
236 SYSINIT_TARGET_WANTS =
237 SOCKETS_TARGET_WANTS =
238 BUSNAMES_TARGET_WANTS =
239 TIMERS_TARGET_WANTS =
240 USER_SOCKETS_TARGET_WANTS =
241 USER_BUSNAMES_TARGET_WANTS =
243 SYSTEM_UNIT_ALIASES =
247 install-target-wants-hook:
248 what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && dir=$(systemunitdir) && $(add-wants)
249 what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && dir=$(systemunitdir) && $(add-wants)
250 what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && dir=$(systemunitdir) && $(add-wants)
251 what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && dir=$(systemunitdir) && $(add-wants)
252 what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && dir=$(systemunitdir) && $(add-wants)
253 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
254 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
255 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
256 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
257 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
258 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
259 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
260 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
261 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
262 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
265 [ -z "$$what" ] || ( \
266 dir=$(DESTDIR)$$dir/$$wants.wants && \
267 $(MKDIR_P) -m 0755 $$dir && \
270 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
273 install-directories-hook:
274 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
276 install-aliases-hook:
277 set -- $(SYSTEM_UNIT_ALIASES) && \
278 dir=$(systemunitdir) && $(install-aliases)
279 set -- $(USER_UNIT_ALIASES) && \
280 dir=$(userunitdir) && $(install-relative-aliases)
281 set -- $(GENERAL_ALIASES) && \
282 dir= && $(install-relative-aliases)
284 define install-aliases
285 while [ -n "$$1" ]; do \
286 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
287 rm -f $(DESTDIR)$$dir/$$2 && \
288 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
289 shift 2 || exit $$?; \
293 define install-relative-aliases
294 while [ -n "$$1" ]; do \
295 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
296 rm -f $(DESTDIR)$$dir/$$2 && \
297 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
298 shift 2 || exit $$?; \
302 install-touch-usr-hook:
303 touch -c $(DESTDIR)/$(prefix)
305 INSTALL_EXEC_HOOKS += \
306 install-target-wants-hook \
307 install-directories-hook \
308 install-aliases-hook \
309 install-touch-usr-hook
311 # ------------------------------------------------------------------------------
312 AM_V_M4 = $(AM_V_M4_$(V))
313 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
314 AM_V_M4_0 = @echo " M4 " $@;
316 AM_V_XSLT = $(AM_V_XSLT_$(V))
317 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
318 AM_V_XSLT_0 = @echo " XSLT " $@;
320 AM_V_GPERF = $(AM_V_GPERF_$(V))
321 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
322 AM_V_GPERF_0 = @echo " GPERF " $@;
324 AM_V_LN = $(AM_V_LN_$(V))
325 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
326 AM_V_LN_0 = @echo " LN " $@;
328 AM_V_RM = $(AM_V_RM_$(V))
329 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
330 AM_V_RM_0 = @echo " RM " $@;
332 # ------------------------------------------------------------------------------
336 systemd-ask-password \
337 systemd-tty-ask-password-agent \
338 systemd-machine-id-setup
344 systemd-detect-virt \
350 src/kernel-install/kernel-install
352 dist_kernelinstall_SCRIPTS = \
353 src/kernel-install/50-depmod.install \
354 src/kernel-install/90-loaderentry.install
356 rootlibexec_PROGRAMS = \
358 systemd-cgroups-agent \
360 systemd-update-utmp \
364 systemd-reply-password \
370 systemd-socket-proxyd \
373 systemgenerator_PROGRAMS = \
374 systemd-getty-generator \
375 systemd-fstab-generator \
376 systemd-system-update-generator \
377 systemd-debug-generator
379 dist_bashcompletion_DATA = \
380 shell-completion/bash/busctl \
381 shell-completion/bash/journalctl \
382 shell-completion/bash/systemctl \
383 shell-completion/bash/systemd-analyze \
384 shell-completion/bash/systemd-cat \
385 shell-completion/bash/systemd-cgls \
386 shell-completion/bash/systemd-cgtop \
387 shell-completion/bash/systemd-delta \
388 shell-completion/bash/systemd-detect-virt \
389 shell-completion/bash/systemd-nspawn \
390 shell-completion/bash/systemd-run \
391 shell-completion/bash/udevadm \
392 shell-completion/bash/kernel-install
394 dist_zshcompletion_DATA = \
395 shell-completion/zsh/_systemctl \
396 shell-completion/zsh/_journalctl \
397 shell-completion/zsh/_udevadm \
398 shell-completion/zsh/_kernel-install \
399 shell-completion/zsh/_systemd-nspawn \
400 shell-completion/zsh/_systemd-analyze \
401 shell-completion/zsh/_systemd-run \
402 shell-completion/zsh/_sd_hosts_or_user_at_host \
403 shell-completion/zsh/_systemd-delta \
404 shell-completion/zsh/_systemd
407 sysctl.d/50-default.conf
409 dist_systemunit_DATA = \
410 units/graphical.target \
411 units/multi-user.target \
412 units/emergency.service \
413 units/emergency.target \
414 units/sysinit.target \
419 units/local-fs.target \
420 units/local-fs-pre.target \
421 units/initrd.target \
422 units/initrd-fs.target \
423 units/initrd-root-fs.target \
424 units/remote-fs.target \
425 units/remote-fs-pre.target \
426 units/network.target \
427 units/network-pre.target \
428 units/network-online.target \
429 units/nss-lookup.target \
430 units/nss-user-lookup.target \
431 units/hibernate.target \
432 units/hybrid-sleep.target \
433 units/poweroff.target \
434 units/reboot.target \
435 units/rescue.target \
436 units/rpcbind.target \
437 units/time-sync.target \
438 units/shutdown.target \
440 units/umount.target \
441 units/sigpwr.target \
443 units/sockets.target \
444 units/busnames.target \
445 units/timers.target \
447 units/suspend.target \
449 units/slices.target \
452 units/systemd-initctl.socket \
453 units/systemd-shutdownd.socket \
454 units/syslog.socket \
455 units/dev-hugepages.mount \
456 units/dev-mqueue.mount \
457 units/sys-kernel-config.mount \
458 units/sys-kernel-debug.mount \
459 units/sys-fs-fuse-connections.mount \
461 units/printer.target \
463 units/bluetooth.target \
464 units/smartcard.target \
465 units/systemd-ask-password-wall.path \
466 units/systemd-ask-password-console.path \
467 units/systemd-udevd-control.socket \
468 units/systemd-udevd-kernel.socket \
469 units/system-update.target \
470 units/initrd-switch-root.target \
471 units/ldconfig.service
473 nodist_systemunit_DATA = \
474 units/getty@.service \
475 units/serial-getty@.service \
476 units/console-shell.service \
477 units/console-getty.service \
478 units/container-getty@.service \
479 units/systemd-initctl.service \
480 units/systemd-shutdownd.service \
481 units/systemd-remount-fs.service \
482 units/systemd-update-utmp.service \
483 units/systemd-update-utmp-runlevel.service \
484 units/systemd-ask-password-wall.service \
485 units/systemd-ask-password-console.service \
486 units/systemd-sysctl.service \
487 units/emergency.service \
488 units/rescue.service \
489 units/user@.service \
490 units/systemd-hibernate.service \
491 units/systemd-hybrid-sleep.service \
492 units/systemd-suspend.service \
493 units/systemd-halt.service \
494 units/systemd-poweroff.service \
495 units/systemd-reboot.service \
496 units/systemd-kexec.service \
497 units/systemd-fsck@.service \
498 units/systemd-fsck-root.service \
499 units/systemd-udevd.service \
500 units/systemd-udev-trigger.service \
501 units/systemd-udev-settle.service \
502 units/systemd-udev-hwdb-update.service \
503 units/debug-shell.service \
504 units/initrd-parse-etc.service \
505 units/initrd-cleanup.service \
506 units/initrd-udevadm-cleanup-db.service \
507 units/initrd-switch-root.service \
508 units/systemd-nspawn@.service \
509 units/systemd-update-done.service
511 dist_userunit_DATA = \
512 units/user/basic.target \
513 units/user/default.target \
514 units/user/exit.target
516 nodist_userunit_DATA = \
517 units/user/systemd-exit.service
519 dist_systempreset_DATA = \
520 system-preset/90-systemd.preset
523 units/getty@.service.m4 \
524 units/serial-getty@.service.m4 \
525 units/console-shell.service.m4.in \
526 units/console-getty.service.m4.in \
527 units/container-getty@.service.m4.in \
528 units/rescue.service.m4.in \
529 units/systemd-initctl.service.in \
530 units/systemd-shutdownd.service.in \
531 units/systemd-remount-fs.service.in \
532 units/systemd-update-utmp.service.in \
533 units/systemd-update-utmp-runlevel.service.in \
534 units/systemd-ask-password-wall.service.in \
535 units/systemd-ask-password-console.service.in \
536 units/systemd-sysctl.service.in \
537 units/emergency.service.in \
538 units/systemd-halt.service.in \
539 units/systemd-poweroff.service.in \
540 units/systemd-reboot.service.in \
541 units/systemd-kexec.service.in \
542 units/user/systemd-exit.service.in \
543 units/systemd-fsck@.service.in \
544 units/systemd-fsck-root.service.in \
545 units/user@.service.in \
546 units/debug-shell.service.in \
547 units/systemd-hibernate.service.in \
548 units/systemd-hybrid-sleep.service.in \
549 units/systemd-suspend.service.in \
550 units/quotaon.service.in \
551 units/initrd-parse-etc.service.in \
552 units/initrd-cleanup.service.in \
553 units/initrd-udevadm-cleanup-db.service.in \
554 units/initrd-switch-root.service.in \
555 units/systemd-nspawn@.service.in \
556 units/systemd-update-done.service.in
559 units/console-shell.service.m4 \
560 units/console-getty.service.m4 \
561 units/container-getty@.service.m4 \
562 units/rescue.service.m4 \
563 units/user@.service.m4
566 nodist_systemunit_DATA += \
567 units/rc-local.service \
568 units/halt-local.service
570 systemgenerator_PROGRAMS += \
571 systemd-sysv-generator \
572 systemd-rc-local-generator
576 units/rc-local.service.in \
577 units/halt-local.service.in
579 # automake is broken and can't handle files with a dash in front
580 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
582 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
584 units-uninstall-hook:
585 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
587 INSTALL_DATA_HOOKS += units-install-hook
588 UNINSTALL_DATA_HOOKS += units-uninstall-hook
597 src/libsystemd/sd-bus/PORTING-DBUS1 \
598 src/libsystemd/sd-bus/DIFFERENCES \
599 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
601 @INTLTOOL_POLICY_RULE@
603 # ------------------------------------------------------------------------------
608 include Makefile-man.am
610 .PHONY: man update-man-list
611 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
614 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
616 ${XML_FILES:.xml=.html}
618 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
635 $(AM_V_at)$(MKDIR_P) $(dir $@)
636 $(AM_V_LN)$(LN_S) -f ../../man $@
645 man/index.html: man/systemd.index.html
646 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
654 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
655 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
656 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
658 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB)
659 $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
660 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
661 @echo "Makefile-man.am has been regenerated"
663 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
664 $(AM_V_at)$(MKDIR_P) $(dir $@)
665 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
667 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py $(SOURCE_XML_FILES)
668 $(AM_V_at)$(MKDIR_P) $(dir $@)
669 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
672 man/systemd.index.xml \
674 man/systemd.directives.xml
677 man/systemd.index.xml \
678 man/systemd.directives.xml
689 tools/make-man-index.py \
690 tools/make-directive-index.py \
691 tools/make-man-rules.py \
694 # ------------------------------------------------------------------------------
695 noinst_LTLIBRARIES += \
698 libsystemd_shared_la_SOURCES = \
699 src/shared/linux/auto_dev-ioctl.h \
700 src/shared/linux/fanotify.h \
701 src/shared/ioprio.h \
702 src/shared/missing.h \
703 src/shared/initreq.h \
704 src/shared/securebits.h \
705 src/shared/special.h \
709 src/shared/sparse-endian.h \
710 src/shared/refcnt.h \
711 src/shared/udev-util.h \
712 src/shared/bus-errors.h \
713 src/shared/device-nodes.c \
714 src/shared/device-nodes.h \
719 src/shared/architecture.c \
720 src/shared/architecture.h \
721 src/shared/efivars.c \
722 src/shared/efivars.h \
723 src/shared/path-util.c \
724 src/shared/path-util.h \
725 src/shared/time-util.c \
726 src/shared/time-util.h \
727 src/shared/hashmap.c \
728 src/shared/hashmap.h \
729 src/shared/siphash24.c \
730 src/shared/siphash24.h \
737 src/shared/sleep-config.c \
738 src/shared/sleep-config.h \
741 src/shared/env-util.c \
742 src/shared/env-util.h \
743 src/shared/strbuf.c \
744 src/shared/strbuf.h \
745 src/shared/strxcpyx.c \
746 src/shared/strxcpyx.h \
747 src/shared/conf-parser.c \
748 src/shared/conf-parser.h \
751 src/shared/ratelimit.h \
752 src/shared/ratelimit.c \
753 src/shared/exit-status.c \
754 src/shared/exit-status.h \
757 src/shared/gunicode.c \
758 src/shared/gunicode.h \
761 src/shared/socket-util.c \
762 src/shared/socket-util.h \
763 src/shared/conf-files.c \
764 src/shared/conf-files.h \
765 src/shared/cgroup-util.c \
766 src/shared/cgroup-util.h \
767 src/shared/cgroup-show.c \
768 src/shared/cgroup-show.h \
769 src/shared/unit-name.c \
770 src/shared/unit-name.h \
771 src/shared/utmp-wtmp.c \
772 src/shared/utmp-wtmp.h \
773 src/shared/watchdog.c \
774 src/shared/watchdog.h \
775 src/shared/spawn-ask-password-agent.c \
776 src/shared/spawn-ask-password-agent.h \
777 src/shared/replace-var.c \
778 src/shared/replace-var.h \
779 src/shared/spawn-polkit-agent.c \
780 src/shared/spawn-polkit-agent.h \
781 src/shared/clock-util.c \
782 src/shared/clock-util.h \
783 src/shared/time-dst.c \
784 src/shared/time-dst.h \
785 src/shared/calendarspec.c \
786 src/shared/calendarspec.h \
787 src/shared/fileio.c \
788 src/shared/fileio.h \
789 src/shared/output-mode.h \
790 src/shared/MurmurHash2.c \
791 src/shared/MurmurHash2.h \
792 src/shared/acpi-fpdt.h \
793 src/shared/acpi-fpdt.c \
794 src/shared/boot-timestamps.h \
795 src/shared/boot-timestamps.c \
798 src/shared/smack-util.c \
799 src/shared/smack-util.h \
800 src/shared/apparmor-util.c \
801 src/shared/apparmor-util.h \
802 src/shared/ima-util.c \
803 src/shared/ima-util.h \
804 src/shared/ptyfwd.c \
805 src/shared/ptyfwd.h \
806 src/shared/errno-list.c \
807 src/shared/errno-list.h \
808 src/shared/af-list.c \
809 src/shared/af-list.h \
814 src/shared/condition-util.c \
815 src/shared/condition-util.h \
816 src/shared/bus-label.c \
817 src/shared/bus-label.h \
819 src/shared/generator.h \
820 src/shared/generator.c \
821 src/shared/clean-ipc.h \
822 src/shared/clean-ipc.c \
823 src/shared/login-shared.c \
824 src/shared/login-shared.h \
829 src/shared/eventfd-util.c \
830 src/shared/eventfd-util.h \
833 src/shared/base-filesystem.c \
834 src/shared/base-filesystem.h
836 nodist_libsystemd_shared_la_SOURCES = \
837 src/shared/errno-from-name.h \
838 src/shared/errno-to-name.h \
839 src/shared/af-from-name.h \
840 src/shared/af-to-name.h
842 libsystemd_shared_la_CFLAGS = \
847 # ------------------------------------------------------------------------------
848 noinst_LTLIBRARIES += \
851 libsystemd_units_la_SOURCES = \
852 src/shared/install.c \
853 src/shared/install.h \
854 src/shared/install-printf.c \
855 src/shared/install-printf.h \
856 src/shared/path-lookup.c \
857 src/shared/path-lookup.h \
858 src/shared/specifier.c \
859 src/shared/specifier.h
861 # ------------------------------------------------------------------------------
862 noinst_LTLIBRARIES += \
865 libsystemd_label_la_SOURCES = \
866 src/shared/socket-label.c \
869 src/shared/selinux-util.c \
870 src/shared/selinux-util.h \
871 src/shared/mkdir-label.c \
872 src/shared/ask-password-api.c \
873 src/shared/ask-password-api.h \
874 src/shared/fileio-label.c \
875 src/shared/fileio-label.h \
876 src/shared/dev-setup.c \
877 src/shared/dev-setup.h
879 libsystemd_label_la_CFLAGS = \
883 libsystemd_label_la_LIBADD = \
886 # ------------------------------------------------------------------------------
889 noinst_LTLIBRARIES += \
890 libsystemd-seccomp.la
892 libsystemd_seccomp_la_SOURCES = \
893 src/shared/seccomp-util.h \
894 src/shared/seccomp-util.c
896 libsystemd_seccomp_la_CFLAGS = \
900 libsystemd_seccomp_la_LIBADD = \
904 # ------------------------------------------------------------------------------
905 noinst_LTLIBRARIES += \
908 libsystemd_logs_la_SOURCES = \
909 src/shared/logs-show.c \
910 src/shared/logs-show.h
912 # ------------------------------------------------------------------------------
913 noinst_LTLIBRARIES += \
914 libsystemd-capability.la
916 libsystemd_capability_la_SOURCES = \
917 src/shared/capability.c \
918 src/shared/capability.h
920 libsystemd_capability_la_CFLAGS = \
924 libsystemd_capability_la_LIBADD = \
927 # ------------------------------------------------------------------------------
929 noinst_LTLIBRARIES += \
932 libsystemd_acl_la_SOURCES = \
933 src/shared/acl-util.c \
934 src/shared/acl-util.h
936 libsystemd_acl_la_CFLAGS = \
940 libsystemd_acl_la_LIBADD = \
944 # ------------------------------------------------------------------------------
945 noinst_LTLIBRARIES += \
948 libsystemd_core_la_SOURCES = \
951 src/core/unit-printf.c \
952 src/core/unit-printf.h \
957 src/core/transaction.c \
958 src/core/transaction.h \
959 src/core/load-fragment.c \
960 src/core/load-fragment.h \
969 src/core/snapshot.c \
970 src/core/snapshot.h \
975 src/core/automount.c \
976 src/core/automount.h \
987 src/core/load-dropin.c \
988 src/core/load-dropin.h \
995 src/core/dbus-manager.c \
996 src/core/dbus-manager.h \
997 src/core/dbus-unit.c \
998 src/core/dbus-unit.h \
999 src/core/dbus-job.c \
1000 src/core/dbus-job.h \
1001 src/core/dbus-service.c \
1002 src/core/dbus-service.h \
1003 src/core/dbus-socket.c \
1004 src/core/dbus-socket.h \
1005 src/core/dbus-busname.c \
1006 src/core/dbus-busname.h \
1007 src/core/dbus-target.c \
1008 src/core/dbus-target.h \
1009 src/core/dbus-snapshot.c \
1010 src/core/dbus-snapshot.h \
1011 src/core/dbus-device.c \
1012 src/core/dbus-device.h \
1013 src/core/dbus-mount.c \
1014 src/core/dbus-mount.h \
1015 src/core/dbus-automount.c \
1016 src/core/dbus-automount.h \
1017 src/core/dbus-swap.c \
1018 src/core/dbus-swap.h \
1019 src/core/dbus-timer.c \
1020 src/core/dbus-timer.h \
1021 src/core/dbus-path.c \
1022 src/core/dbus-path.h \
1023 src/core/dbus-slice.c \
1024 src/core/dbus-slice.h \
1025 src/core/dbus-scope.c \
1026 src/core/dbus-scope.h \
1027 src/core/dbus-execute.c \
1028 src/core/dbus-execute.h \
1029 src/core/dbus-kill.c \
1030 src/core/dbus-kill.h \
1031 src/core/dbus-cgroup.c \
1032 src/core/dbus-cgroup.h \
1035 src/core/selinux-access.c \
1036 src/core/selinux-access.h \
1037 src/core/selinux-setup.c \
1038 src/core/selinux-setup.h \
1039 src/core/smack-setup.c \
1040 src/core/smack-setup.h \
1041 src/core/ima-setup.c \
1042 src/core/ima-setup.h \
1043 src/core/locale-setup.h \
1044 src/core/locale-setup.c \
1045 src/core/hostname-setup.c \
1046 src/core/hostname-setup.h \
1047 src/core/machine-id-setup.c \
1048 src/core/machine-id-setup.h \
1049 src/core/mount-setup.c \
1050 src/core/mount-setup.h \
1051 src/core/loopback-setup.h \
1052 src/core/loopback-setup.c \
1053 src/core/condition.c \
1054 src/core/condition.h \
1055 src/core/namespace.c \
1056 src/core/namespace.h \
1058 src/core/sysfs-show.h \
1059 src/core/switch-root.h \
1060 src/core/switch-root.c \
1061 src/core/killall.h \
1062 src/core/killall.c \
1063 src/core/audit-fd.c \
1064 src/core/audit-fd.h \
1065 src/core/show-status.c \
1066 src/core/show-status.h
1069 libsystemd_core_la_SOURCES += \
1070 src/core/kmod-setup.c \
1071 src/core/kmod-setup.h
1074 nodist_libsystemd_core_la_SOURCES = \
1075 src/core/load-fragment-gperf.c \
1076 src/core/load-fragment-gperf-nulstr.c
1078 libsystemd_core_la_CFLAGS = \
1084 $(APPARMOR_CFLAGS) \
1088 libsystemd_core_la_LIBADD = \
1089 libsystemd-capability.la \
1090 libsystemd-units.la \
1091 libsystemd-label.la \
1092 libudev-internal.la \
1093 libsystemd-shared.la \
1094 libsystemd-internal.la \
1103 libsystemd_core_la_LIBADD += \
1104 libsystemd-seccomp.la
1107 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1108 $(AM_V_at)$(MKDIR_P) $(dir $@)
1109 $(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 ";" }' < $< > $@
1112 src/core/load-fragment-gperf.gperf.m4
1115 src/core/load-fragment-gperf.gperf \
1116 src/core/load-fragment-gperf.c \
1117 src/core/load-fragment-gperf-nulstr.c \
1118 src/shared/errno-list.txt \
1119 src/shared/errno-from-name.gperf \
1120 src/shared/af-list.txt \
1121 src/shared/af-from-name.gperf
1124 src/shared/errno-from-name.h \
1125 src/shared/errno-to-name.h \
1126 src/shared/af-from-name.h \
1127 src/shared/af-to-name.h
1129 src/shared/errno-list.txt:
1130 $(AM_V_at)$(MKDIR_P) $(dir $@)
1131 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - < /dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' > $@
1133 src/shared/errno-from-name.gperf: src/shared/errno-list.txt
1134 $(AM_V_at)$(MKDIR_P) $(dir $@)
1135 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct errno_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' < $< > $@
1137 src/shared/errno-from-name.h: src/shared/errno-from-name.gperf
1138 $(AM_V_at)$(MKDIR_P) $(dir $@)
1139 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_errno -H hash_errno_name -p -C < $< > $@
1141 src/shared/errno-to-name.h: src/shared/errno-list.txt
1142 $(AM_V_at)$(MKDIR_P) $(dir $@)
1143 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' < $< > $@
1145 src/shared/af-list.txt:
1146 $(AM_V_at)$(MKDIR_P) $(dir $@)
1147 $(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; }' > $@
1149 src/shared/af-from-name.gperf: src/shared/af-list.txt
1150 $(AM_V_at)$(MKDIR_P) $(dir $@)
1151 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct af_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' < $< > $@
1153 src/shared/af-from-name.h: src/shared/af-from-name.gperf
1154 $(AM_V_at)$(MKDIR_P) $(dir $@)
1155 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_af -H hash_af_name -p -C < $< > $@
1157 src/shared/af-to-name.h: src/shared/af-list.txt
1158 $(AM_V_at)$(MKDIR_P) $(dir $@)
1159 $(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 "};"}' < $< > $@
1161 # ------------------------------------------------------------------------------
1170 libsystemd-core.la \
1173 dist_pkgsysconf_DATA += \
1174 src/core/system.conf \
1177 dist_dbuspolicy_DATA += \
1178 src/core/org.freedesktop.systemd1.conf
1180 dist_dbussystemservice_DATA += \
1181 src/core/org.freedesktop.systemd1.service
1183 polkitpolicy_in_in_files += \
1184 src/core/org.freedesktop.systemd1.policy.in.in
1186 pkgconfigdata_DATA = \
1189 nodist_rpmmacros_DATA = \
1190 src/core/macros.systemd
1193 src/core/systemd.pc.in \
1194 src/core/macros.systemd.in
1197 src/core/macros.systemd \
1198 src/core/org.freedesktop.systemd1.policy.in
1200 # ------------------------------------------------------------------------------
1239 test-strip-tab-ansi \
1258 test/sched_idle_bad.service \
1259 test/sched_idle_ok.service \
1260 test/sched_rr_bad.service \
1261 test/sched_rr_ok.service \
1262 test/sched_rr_change.service \
1264 test/daughter.service \
1268 src/test/test-helper.h
1270 test_device_nodes_SOURCES = \
1271 src/test/test-device-nodes.c
1273 test_device_nodes_LDADD = \
1274 libsystemd-shared.la
1276 test_engine_SOURCES = \
1277 src/test/test-engine.c
1279 test_engine_CFLAGS = \
1283 test_engine_LDADD = \
1284 libsystemd-core.la \
1287 test_job_type_SOURCES = \
1288 src/test/test-job-type.c
1290 test_job_type_CFLAGS = \
1294 test_job_type_LDADD = \
1295 libsystemd-core.la \
1308 test_loopback_SOURCES = \
1309 src/test/test-loopback.c
1311 test_loopback_LDADD = \
1314 test_hostname_SOURCES = \
1315 src/test/test-hostname.c
1317 test_hostname_LDADD = \
1324 test_boot_timestamp_SOURCES = \
1325 src/test/test-boot-timestamps.c
1327 test_boot_timestamp_LDADD = \
1328 libsystemd-shared.la
1331 test_unit_name_SOURCES = \
1332 src/test/test-unit-name.c
1334 test_unit_name_CFLAGS = \
1338 test_unit_name_LDADD = \
1339 libsystemd-core.la \
1342 test_unit_file_SOURCES = \
1343 src/test/test-unit-file.c
1345 test_unit_file_CFLAGS = \
1349 test_unit_file_LDADD = \
1350 libsystemd-core.la \
1353 test_utf8_SOURCES = \
1354 src/test/test-utf8.c
1357 libsystemd-shared.la
1359 test_capability_SOURCES = \
1360 src/test/test-capability.c
1362 test_capability_LDADD = \
1363 libsystemd-shared.la \
1364 libsystemd-capability.la
1366 test_async_SOURCES = \
1367 src/test/test-async.c
1369 test_async_LDADD = \
1370 libsystemd-shared.la
1372 test_fdset_SOURCES = \
1373 src/test/test-fdset.c
1375 test_fdset_LDADD = \
1378 test_ratelimit_SOURCES = \
1379 src/test/test-ratelimit.c
1381 test_ratelimit_LDADD = \
1382 libsystemd-shared.la
1384 test_util_SOURCES = \
1385 src/test/test-util.c
1390 test_socket_util_SOURCES = \
1391 src/test/test-socket-util.c
1393 test_socket_util_LDADD = \
1396 test_ring_SOURCES = \
1397 src/test/test-ring.c
1402 test_tmpfiles_SOURCES = \
1403 src/test/test-tmpfiles.c
1405 test_tmpfiles_LDADD = \
1406 libsystemd-shared.la
1408 test_namespace_SOURCES = \
1409 src/test/test-namespace.c
1411 test_namespace_LDADD = \
1414 test_hashmap_SOURCES = \
1415 src/test/test-hashmap.c
1417 test_hashmap_LDADD = \
1420 test_xml_SOURCES = \
1424 libsystemd-shared.la
1426 test_list_SOURCES = \
1427 src/test/test-list.c
1432 test_tables_SOURCES = \
1433 src/test/test-tables.c \
1434 src/shared/test-tables.h
1436 test_tables_CFLAGS = \
1440 test_tables_LDADD = \
1441 libsystemd-logs.la \
1442 libsystemd-journal-internal.la \
1443 libsystemd-core.la \
1446 test_prioq_SOURCES = \
1447 src/test/test-prioq.c
1449 test_prioq_LDADD = \
1452 test_fileio_SOURCES = \
1453 src/test/test-fileio.c
1455 test_fileio_LDADD = \
1458 test_time_SOURCES = \
1459 src/test/test-time.c
1464 test_architecture_SOURCES = \
1465 src/test/test-architecture.c
1467 test_architecture_LDADD = \
1468 libsystemd-shared.la
1470 test_log_SOURCES = \
1476 test_ipcrm_SOURCES = \
1477 src/test/test-ipcrm.c
1479 test_ipcrm_LDADD = \
1480 libsystemd-shared.la \
1483 test_rtnl_manual_SOURCES = \
1484 src/test/test-rtnl-manual.c
1486 test_rtnl_manual_CFLAGS = \
1490 test_rtnl_manual_LDADD = \
1491 libsystemd-internal.la \
1492 libsystemd-shared.la \
1495 test_ellipsize_SOURCES = \
1496 src/test/test-ellipsize.c
1498 test_ellipsize_LDADD = \
1501 test_date_SOURCES = \
1502 src/test/test-date.c
1507 test_sleep_SOURCES = \
1508 src/test/test-sleep.c
1510 test_sleep_LDADD = \
1513 test_replace_var_SOURCES = \
1514 src/test/test-replace-var.c
1516 test_replace_var_LDADD = \
1517 libsystemd-shared.la
1519 test_calendarspec_SOURCES = \
1520 src/test/test-calendarspec.c
1522 test_calendarspec_LDADD = \
1523 libsystemd-shared.la
1525 test_strip_tab_ansi_SOURCES = \
1526 src/test/test-strip-tab-ansi.c
1528 test_strip_tab_ansi_LDADD = \
1529 libsystemd-shared.la
1531 test_daemon_SOURCES = \
1532 src/test/test-daemon.c
1534 test_daemon_LDADD = \
1535 libsystemd-internal.la \
1536 libsystemd-shared.la
1538 test_cgroup_SOURCES = \
1539 src/test/test-cgroup.c
1541 test_cgroup_LDADD = \
1542 libsystemd-label.la \
1543 libsystemd-shared.la \
1544 libsystemd-internal.la
1546 test_cgroup_mask_SOURCES = \
1547 src/test/test-cgroup-mask.c
1549 test_cgroup_mask_CPPFLAGS = \
1551 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1553 test_cgroup_mask_CFLAGS = \
1557 test_cgroup_mask_LDADD = \
1558 libsystemd-core.la \
1561 test_cgroup_util_SOURCES = \
1562 src/test/test-cgroup-util.c
1564 test_cgroup_util_LDADD = \
1565 libsystemd-label.la \
1566 libsystemd-internal.la \
1567 libsystemd-shared.la
1569 test_env_replace_SOURCES = \
1570 src/test/test-env-replace.c
1572 test_env_replace_LDADD = \
1573 libsystemd-shared.la
1575 test_strbuf_SOURCES = \
1576 src/test/test-strbuf.c
1578 test_strbuf_LDADD = \
1579 libsystemd-shared.la
1581 test_strv_SOURCES = \
1582 src/test/test-strv.c
1585 libsystemd-units.la \
1586 libsystemd-internal.la \
1587 libsystemd-shared.la
1589 test_path_util_SOURCES = \
1590 src/test/test-path-util.c
1592 test_path_util_LDADD = \
1593 libsystemd-shared.la
1595 test_strxcpyx_SOURCES = \
1596 src/test/test-strxcpyx.c
1598 test_strxcpyx_LDADD = \
1599 libsystemd-shared.la
1601 test_install_SOURCES = \
1602 src/test/test-install.c
1604 test_install_LDADD = \
1605 libsystemd-units.la \
1606 libsystemd-label.la \
1607 libsystemd-shared.la \
1608 libsystemd-internal.la
1610 test_watchdog_SOURCES = \
1611 src/test/test-watchdog.c
1613 test_watchdog_LDADD = \
1614 libsystemd-shared.la
1616 test_sched_prio_SOURCES = \
1617 src/test/test-sched-prio.c
1619 test_sched_prio_CPPFLAGS = \
1621 -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1623 test_sched_prio_CFLAGS = \
1627 test_sched_prio_LDADD = \
1628 libsystemd-core.la \
1631 test_conf_files_SOURCES = \
1632 src/test/test-conf-files.c
1634 test_conf_files_LDADD = \
1635 libsystemd-shared.la
1637 # ------------------------------------------------------------------------------
1638 ## .PHONY so it always rebuilds it
1639 .PHONY: coverage lcov-run lcov-report coverage-sync
1641 # run lcov from scratch, always
1646 coverage_dir = coverage
1647 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1650 # reset run coverage tests
1652 @rm -rf $(coverage_dir)
1653 lcov $(coverage_opts) --zerocounters
1656 # generate report based on current coverage data
1658 $(MKDIR_P) $(coverage_dir)
1659 lcov $(coverage_opts) --compat-libtool --capture --no-external \
1660 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1661 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1662 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1664 # lcov doesn't work properly with vpath builds, make sure that bad
1665 # output is not uploaded by mistake.
1666 coverage-sync: coverage
1667 test "$(builddir)" = "$(srcdir)"
1668 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1671 lcov-run lcov-report:
1672 echo "Need to reconfigure with --enable-coverage"
1675 # ------------------------------------------------------------------------------
1676 systemd_analyze_SOURCES = \
1677 src/analyze/analyze.c
1679 systemd_analyze_LDADD = \
1680 libsystemd-internal.la \
1681 libsystemd-shared.la
1683 # ------------------------------------------------------------------------------
1684 systemd_initctl_SOURCES = \
1685 src/initctl/initctl.c
1687 systemd_initctl_LDADD = \
1688 libsystemd-internal.la \
1689 libsystemd-shared.la
1691 # ------------------------------------------------------------------------------
1692 systemd_update_utmp_SOURCES = \
1693 src/update-utmp/update-utmp.c
1695 systemd_update_utmp_CFLAGS = \
1699 systemd_update_utmp_LDADD = \
1700 libsystemd-internal.la \
1701 libsystemd-shared.la \
1704 # ------------------------------------------------------------------------------
1705 systemd_update_done_SOURCES = \
1706 src/update-done/update-done.c
1708 systemd_update_done_LDADD = \
1709 libsystemd-internal.la \
1710 libsystemd-shared.la
1712 # ------------------------------------------------------------------------------
1713 systemd_shutdownd_SOURCES = \
1714 src/shutdownd/shutdownd.c
1716 systemd_shutdownd_LDADD = \
1717 libsystemd-label.la \
1718 libsystemd-internal.la \
1719 libsystemd-shared.la
1722 src/systemd/sd-shutdown.h
1724 # ------------------------------------------------------------------------------
1725 systemd_shutdown_SOURCES = \
1728 src/core/shutdown.c \
1729 src/core/mount-setup.c \
1730 src/core/mount-setup.h \
1731 src/core/killall.h \
1734 systemd_shutdown_LDADD = \
1735 libsystemd-label.la \
1736 libudev-internal.la \
1737 libsystemd-shared.la
1739 # ------------------------------------------------------------------------------
1741 systemd_modules_load_SOURCES = \
1742 src/modules-load/modules-load.c
1744 systemd_modules_load_CFLAGS = \
1748 systemd_modules_load_LDADD = \
1749 libsystemd-shared.la \
1752 rootlibexec_PROGRAMS += \
1753 systemd-modules-load
1755 nodist_systemunit_DATA += \
1756 units/systemd-modules-load.service
1758 SYSINIT_TARGET_WANTS += \
1759 systemd-modules-load.service
1762 nodist_systemunit_DATA += \
1763 units/kmod-static-nodes.service
1765 SYSINIT_TARGET_WANTS += \
1766 kmod-static-nodes.service
1771 units/systemd-modules-load.service.in \
1772 units/kmod-static-nodes.service.in
1774 # ------------------------------------------------------------------------------
1776 systemd_tmpfiles_SOURCES = \
1777 src/tmpfiles/tmpfiles.c
1779 systemd_tmpfiles_LDADD = \
1780 libsystemd-units.la \
1781 libsystemd-label.la \
1782 libsystemd-capability.la \
1783 libsystemd-internal.la \
1784 libsystemd-shared.la
1786 rootbin_PROGRAMS += \
1789 dist_systemunit_DATA += \
1790 units/systemd-tmpfiles-clean.timer
1792 nodist_systemunit_DATA += \
1793 units/systemd-tmpfiles-setup-dev.service \
1794 units/systemd-tmpfiles-setup.service \
1795 units/systemd-tmpfiles-clean.service
1797 dist_tmpfiles_DATA = \
1798 tmpfiles.d/systemd.conf \
1799 tmpfiles.d/systemd-nologin.conf \
1800 tmpfiles.d/tmp.conf \
1801 tmpfiles.d/x11.conf \
1802 tmpfiles.d/var.conf \
1806 dist_tmpfiles_DATA += \
1807 tmpfiles.d/legacy.conf
1810 SYSINIT_TARGET_WANTS += \
1811 systemd-tmpfiles-setup-dev.service \
1812 systemd-tmpfiles-setup.service
1814 dist_zshcompletion_DATA += \
1815 shell-completion/zsh/_systemd-tmpfiles
1817 TIMERS_TARGET_WANTS += \
1818 systemd-tmpfiles-clean.timer
1822 $(sysconfdir)/tmpfiles.d
1826 units/systemd-tmpfiles-setup-dev.service.in \
1827 units/systemd-tmpfiles-setup.service.in \
1828 units/systemd-tmpfiles-clean.service.in
1830 # ------------------------------------------------------------------------------
1832 systemd_sysusers_SOURCES = \
1833 src/sysusers/sysusers.c
1835 systemd_sysusers_LDADD = \
1836 libsystemd-units.la \
1837 libsystemd-label.la \
1838 libsystemd-capability.la \
1839 libsystemd-internal.la \
1840 libsystemd-shared.la
1842 rootbin_PROGRAMS += \
1845 nodist_systemunit_DATA += \
1846 units/systemd-sysusers.service
1848 SYSINIT_TARGET_WANTS += \
1849 systemd-sysusers.service
1851 dist_sysusers_DATA = \
1852 sysusers.d/systemd.conf
1854 nodist_sysusers_DATA = \
1855 sysusers.d/basic.conf
1858 units/systemd-sysusers.service.in \
1859 sysusers.d/basic.conf.in
1862 sysusers.d/basic.conf
1868 # ------------------------------------------------------------------------------
1869 systemd_machine_id_setup_SOURCES = \
1870 src/machine-id-setup/machine-id-setup-main.c \
1871 src/core/machine-id-setup.c \
1872 src/core/machine-id-setup.h
1874 systemd_machine_id_setup_LDADD = \
1875 libsystemd-label.la \
1876 libsystemd-internal.la \
1877 libsystemd-shared.la
1879 # ------------------------------------------------------------------------------
1880 systemd_sysctl_SOURCES = \
1883 systemd_sysctl_LDADD = \
1884 libsystemd-shared.la
1886 # ------------------------------------------------------------------------------
1887 systemd_sleep_SOURCES = \
1890 systemd_sleep_LDADD = \
1891 libsystemd-shared.la
1893 # ------------------------------------------------------------------------------
1894 systemd_fsck_SOURCES = \
1897 systemd_fsck_LDADD = \
1898 libsystemd-internal.la \
1899 libudev-internal.la \
1900 libsystemd-shared.la
1902 # ------------------------------------------------------------------------------
1903 systemd_ac_power_SOURCES = \
1904 src/ac-power/ac-power.c
1906 systemd_ac_power_LDADD = \
1907 libudev-internal.la \
1908 libsystemd-shared.la
1910 # ------------------------------------------------------------------------------
1911 systemd_detect_virt_SOURCES = \
1912 src/detect-virt/detect-virt.c
1914 systemd_detect_virt_LDADD = \
1915 libsystemd-shared.la
1917 INSTALL_EXEC_HOOKS += \
1918 systemd-detect-virt-install-hook
1920 # ------------------------------------------------------------------------------
1921 systemd_delta_SOURCES = \
1924 systemd_delta_LDADD = \
1925 libsystemd-shared.la
1927 # ------------------------------------------------------------------------------
1928 systemd_getty_generator_SOURCES = \
1929 src/getty-generator/getty-generator.c
1931 systemd_getty_generator_LDADD = \
1932 libsystemd-label.la \
1933 libsystemd-shared.la
1935 # ------------------------------------------------------------------------------
1936 systemd_debug_generator_SOURCES = \
1937 src/debug-generator/debug-generator.c
1939 systemd_debug_generator_LDADD = \
1940 libsystemd-label.la \
1941 libsystemd-shared.la
1943 # ------------------------------------------------------------------------------
1944 systemd_fstab_generator_SOURCES = \
1945 src/fstab-generator/fstab-generator.c \
1946 src/core/mount-setup.c
1948 systemd_fstab_generator_LDADD = \
1949 libsystemd-label.la \
1950 libsystemd-shared.la
1952 # ------------------------------------------------------------------------------
1953 systemd_system_update_generator_SOURCES = \
1954 src/system-update-generator/system-update-generator.c
1956 systemd_system_update_generator_LDADD = \
1957 libsystemd-label.la \
1958 libsystemd-shared.la
1961 # ------------------------------------------------------------------------------
1962 systemgenerator_PROGRAMS += \
1963 systemd-efi-boot-generator
1965 systemd_efi_boot_generator_SOURCES = \
1966 src/efi-boot-generator/efi-boot-generator.c
1968 systemd_efi_boot_generator_LDADD = \
1969 libsystemd-label.la \
1970 libsystemd-shared.la
1972 # ------------------------------------------------------------------------------
1975 src/boot/boot-loader.h \
1976 src/boot/bootctl.c \
1977 src/boot/boot-loader.c \
1981 libsystemd-shared.la \
1982 libsystemd-internal.la
1987 dist_bashcompletion_DATA += \
1988 shell-completion/bash/bootctl
1990 dist_zshcompletion_DATA += \
1991 shell-completion/zsh/_bootctl
1995 # ------------------------------------------------------------------------------
1997 systemgenerator_PROGRAMS += \
1998 systemd-gpt-auto-generator
2000 systemd_gpt_auto_generator_SOURCES = \
2001 src/gpt-auto-generator/gpt-auto-generator.c \
2002 src/shared/blkid-util.h
2004 systemd_gpt_auto_generator_LDADD = \
2005 libsystemd-label.la \
2006 libsystemd-internal.la \
2007 libudev-internal.la \
2008 libsystemd-shared.la \
2011 systemd_gpt_auto_generator_CFLAGS = \
2016 # ------------------------------------------------------------------------------
2018 systemgenerator_PROGRAMS += \
2019 systemd-dbus1-generator
2021 systemd_dbus1_generator_SOURCES = \
2022 src/dbus1-generator/dbus1-generator.c
2024 systemd_dbus1_generator_LDADD = \
2025 libsystemd-label.la \
2026 libsystemd-shared.la \
2027 libsystemd-internal.la
2029 dbus1-generator-install-hook:
2030 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2031 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2032 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2034 dbus1-generator-uninstall-hook:
2035 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2037 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2038 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2041 # ------------------------------------------------------------------------------
2042 systemd_sysv_generator_SOURCES = \
2043 src/sysv-generator/sysv-generator.c
2045 systemd_sysv_generator_LDADD = \
2046 libsystemd-core.la \
2047 libsystemd-label.la \
2048 libsystemd-shared.la
2050 # ------------------------------------------------------------------------------
2051 systemd_rc_local_generator_SOURCES = \
2052 src/rc-local-generator/rc-local-generator.c
2054 systemd_rc_local_generator_LDADD = \
2055 libsystemd-label.la \
2056 libsystemd-shared.la
2058 # ------------------------------------------------------------------------------
2059 systemd_remount_fs_SOURCES = \
2060 src/remount-fs/remount-fs.c \
2061 src/core/mount-setup.c \
2062 src/core/mount-setup.h
2064 systemd_remount_fs_LDADD = \
2065 libsystemd-label.la \
2066 libsystemd-shared.la
2068 # ------------------------------------------------------------------------------
2069 systemd_cgroups_agent_SOURCES = \
2070 src/cgroups-agent/cgroups-agent.c
2072 systemd_cgroups_agent_LDADD = \
2073 libsystemd-internal.la \
2074 libsystemd-shared.la
2076 # ------------------------------------------------------------------------------
2077 systemctl_SOURCES = \
2078 src/systemctl/systemctl.c
2081 libsystemd-units.la \
2082 libsystemd-label.la \
2083 libsystemd-internal.la \
2084 libsystemd-logs.la \
2085 libsystemd-journal-internal.la \
2086 libsystemd-shared.la
2088 # ------------------------------------------------------------------------------
2089 systemd_notify_SOURCES = \
2090 src/notify/notify.c \
2091 src/readahead/sd-readahead.c
2093 systemd_notify_LDADD = \
2094 libsystemd-internal.la \
2095 libsystemd-shared.la
2097 # ------------------------------------------------------------------------------
2098 systemd_ask_password_SOURCES = \
2099 src/ask-password/ask-password.c
2101 systemd_ask_password_LDADD = \
2102 libsystemd-label.la \
2103 libsystemd-shared.la
2105 # ------------------------------------------------------------------------------
2106 systemd_reply_password_SOURCES = \
2107 src/reply-password/reply-password.c
2109 systemd_reply_password_LDADD = \
2110 libsystemd-shared.la
2112 # ------------------------------------------------------------------------------
2113 systemd_cgls_SOURCES = \
2116 systemd_cgls_LDADD = \
2117 libsystemd-internal.la \
2118 libsystemd-shared.la
2120 # ------------------------------------------------------------------------------
2121 systemd_cgtop_SOURCES = \
2124 systemd_cgtop_LDADD = \
2125 libsystemd-shared.la
2127 # ------------------------------------------------------------------------------
2128 systemd_nspawn_SOURCES = \
2129 src/nspawn/nspawn.c \
2130 src/core/mount-setup.c \
2131 src/core/mount-setup.h \
2132 src/core/loopback-setup.c \
2133 src/core/loopback-setup.h
2135 systemd_nspawn_CFLAGS = \
2140 systemd_nspawn_LDADD = \
2141 libsystemd-label.la \
2142 libsystemd-capability.la \
2143 libsystemd-internal.la \
2144 libudev-internal.la \
2145 libsystemd-shared.la \
2149 systemd_nspawn_LDADD += \
2150 libsystemd-seccomp.la \
2154 # ------------------------------------------------------------------------------
2155 systemd_run_SOURCES = \
2158 systemd_run_LDADD = \
2159 libsystemd-label.la \
2160 libsystemd-capability.la \
2161 libsystemd-internal.la \
2162 libsystemd-shared.la
2164 # ------------------------------------------------------------------------------
2165 systemd_bus_proxyd_SOURCES = \
2166 src/bus-proxyd/bus-proxyd.c \
2167 src/bus-proxyd/bus-policy.c \
2168 src/bus-proxyd/bus-policy.h
2170 systemd_bus_proxyd_LDADD = \
2171 libsystemd-capability.la \
2172 libsystemd-internal.la \
2173 libsystemd-shared.la
2175 bus-proxyd-install-hook:
2176 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
2177 $(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2178 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
2180 bus-proxyd-uninstall-hook:
2181 rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2183 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
2184 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
2187 nodist_systemunit_DATA += \
2188 units/systemd-bus-proxyd@.service
2190 dist_systemunit_DATA += \
2191 units/systemd-bus-proxyd.socket
2193 dist_userunit_DATA += \
2194 units/user/systemd-bus-proxyd.socket \
2195 units/user/systemd-bus-proxyd@.service
2199 units/systemd-bus-proxyd@.service.in
2201 # ------------------------------------------------------------------------------
2202 systemd_tty_ask_password_agent_SOURCES = \
2203 src/tty-ask-password-agent/tty-ask-password-agent.c
2205 systemd_tty_ask_password_agent_LDADD = \
2206 libsystemd-label.la \
2207 libsystemd-shared.la
2209 # ------------------------------------------------------------------------------
2210 libsystemd_internal_la_SOURCES = \
2211 src/systemd/sd-bus.h \
2212 src/systemd/sd-bus-protocol.h \
2213 src/systemd/sd-bus-vtable.h \
2214 src/systemd/sd-memfd.h \
2215 src/systemd/sd-utf8.h \
2216 src/systemd/sd-event.h \
2217 src/systemd/sd-rtnl.h \
2218 src/systemd/sd-resolve.h \
2219 src/systemd/sd-login.h \
2220 src/systemd/sd-id128.h \
2221 src/systemd/sd-daemon.h \
2222 src/libsystemd/sd-bus/sd-bus.c \
2223 src/libsystemd/sd-bus/bus-control.c \
2224 src/libsystemd/sd-bus/bus-control.h \
2225 src/libsystemd/sd-bus/bus-error.c \
2226 src/libsystemd/sd-bus/bus-error.h \
2227 src/libsystemd/sd-bus/bus-internal.c \
2228 src/libsystemd/sd-bus/bus-internal.h \
2229 src/libsystemd/sd-bus/bus-socket.c \
2230 src/libsystemd/sd-bus/bus-socket.h \
2231 src/libsystemd/sd-bus/bus-kernel.c \
2232 src/libsystemd/sd-bus/bus-kernel.h \
2233 src/libsystemd/sd-bus/bus-container.c \
2234 src/libsystemd/sd-bus/bus-container.h \
2235 src/libsystemd/sd-bus/bus-message.c \
2236 src/libsystemd/sd-bus/bus-message.h \
2237 src/libsystemd/sd-bus/bus-creds.c \
2238 src/libsystemd/sd-bus/bus-creds.h \
2239 src/libsystemd/sd-bus/bus-signature.c \
2240 src/libsystemd/sd-bus/bus-signature.h \
2241 src/libsystemd/sd-bus/bus-type.c \
2242 src/libsystemd/sd-bus/bus-type.h \
2243 src/libsystemd/sd-bus/bus-match.c \
2244 src/libsystemd/sd-bus/bus-match.h \
2245 src/libsystemd/sd-bus/bus-bloom.c \
2246 src/libsystemd/sd-bus/bus-bloom.h \
2247 src/libsystemd/sd-bus/bus-introspect.c \
2248 src/libsystemd/sd-bus/bus-introspect.h \
2249 src/libsystemd/sd-bus/bus-objects.c \
2250 src/libsystemd/sd-bus/bus-objects.h \
2251 src/libsystemd/sd-bus/bus-gvariant.c \
2252 src/libsystemd/sd-bus/bus-gvariant.h \
2253 src/libsystemd/sd-bus/bus-convenience.c \
2254 src/libsystemd/sd-bus/bus-track.c \
2255 src/libsystemd/sd-bus/bus-track.h \
2256 src/libsystemd/sd-bus/bus-util.c \
2257 src/libsystemd/sd-bus/bus-util.h \
2258 src/libsystemd/sd-bus/bus-slot.c \
2259 src/libsystemd/sd-bus/bus-slot.h \
2260 src/libsystemd/sd-bus/bus-protocol.h \
2261 src/libsystemd/sd-bus/kdbus.h \
2262 src/libsystemd/sd-bus/sd-memfd.c \
2263 src/libsystemd/sd-utf8/sd-utf8.c \
2264 src/libsystemd/sd-event/sd-event.c \
2265 src/libsystemd/sd-event/event-util.h \
2266 src/libsystemd/sd-rtnl/sd-rtnl.c \
2267 src/libsystemd/sd-rtnl/rtnl-internal.h \
2268 src/libsystemd/sd-rtnl/rtnl-message.c \
2269 src/libsystemd/sd-rtnl/rtnl-types.h \
2270 src/libsystemd/sd-rtnl/rtnl-types.c \
2271 src/libsystemd/sd-rtnl/rtnl-util.h \
2272 src/libsystemd/sd-rtnl/rtnl-util.c \
2273 src/libsystemd/sd-id128/sd-id128.c \
2274 src/libsystemd/sd-daemon/sd-daemon.c \
2275 src/libsystemd/sd-login/sd-login.c
2277 nodist_libsystemd_internal_la_SOURCES = \
2278 src/libsystemd/libsystemd.sym \
2279 src/libsystemd/sd-bus/bus-error-mapping.c
2281 libsystemd_internal_la_CFLAGS = \
2285 libsystemd_internal_la_LIBADD = \
2288 libsystemd_resolve_la_SOURCES = \
2289 src/libsystemd/sd-resolve/sd-resolve.c \
2290 src/libsystemd/sd-resolve/resolve-util.h
2292 libsystemd_resolve_la_CFLAGS = \
2296 libsystemd_resolve_la_LIBADD = \
2299 noinst_LTLIBRARIES += \
2300 libsystemd-internal.la \
2301 libsystemd-resolve.la
2303 libsystemd_dump_la_SOURCES = \
2304 src/libsystemd/sd-bus/bus-dump.c \
2305 src/libsystemd/sd-bus/bus-dump.h
2307 libsystemd_dump_la_CFLAGS = \
2311 noinst_LTLIBRARIES += \
2315 src/libsystemd/libsystemd.sym.m4 \
2316 src/libsystemd/libsystemd.pc.in \
2317 src/libsystemd/sd-bus/bus-error-mapping.gperf \
2318 src/libsystemd/sd-bus/DIFFERENCES \
2319 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2322 src/libsystemd/libsystemd.sym \
2323 src/libsystemd/sd-bus/bus-error-mapping.c
2326 src/libsystemd/libsystemd.sym
2328 libsystemd_la_SOURCES = \
2329 $(libsystemd_internal_la_SOURCES) \
2330 $(libsystemd_resolve_la_SOURCES) \
2331 $(libsystemd_journal_internal_la_SOURCES)
2333 nodist_libsystemd_la_SOURCES = \
2334 $(nodist_libsystemd_internal_la_SOURCES)
2336 libsystemd_la_CFLAGS = \
2337 $(libsystemd_internal_la_CFLAGS) \
2338 $(libsystemd_resolve_la_CFLAGS) \
2339 $(libsystemd_journal_internal_la_CFLAGS)
2341 libsystemd_la_LDFLAGS = \
2343 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2344 -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2346 libsystemd_la_LIBADD = \
2347 libsystemd-shared.la \
2348 $(libsystemd_internal_la_LIBADD) \
2349 $(libsystemd_journal_internal_la_LIBADD) \
2350 $(libsystemd_resolve_la_LIBADD)
2352 libsystemd-install-hook:
2353 libname=libsystemd.so && $(move-to-rootlibdir)
2355 libsystemd-uninstall-hook:
2356 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2358 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2359 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2361 pkgconfiglib_DATA += \
2362 src/libsystemd/libsystemd.pc
2364 pkginclude_HEADERS += \
2365 src/systemd/sd-login.h \
2366 src/systemd/sd-id128.h \
2367 src/systemd/sd-daemon.h
2370 pkginclude_HEADERS += \
2371 src/systemd/sd-bus.h \
2372 src/systemd/sd-bus-protocol.h \
2373 src/systemd/sd-bus-vtable.h \
2374 src/systemd/sd-memfd.h \
2375 src/systemd/sd-utf8.h \
2376 src/systemd/sd-event.h \
2377 src/systemd/sd-rtnl.h \
2378 src/systemd/sd-resolve.h
2381 lib_LTLIBRARIES += \
2386 test-bus-signature \
2392 test-bus-kernel-bloom \
2393 test-bus-kernel-benchmark \
2395 test-bus-zero-copy \
2396 test-bus-introspect \
2408 test_bus_marshal_SOURCES = \
2409 src/libsystemd/sd-bus/test-bus-marshal.c
2411 test_bus_marshal_LDADD = \
2412 libsystemd-internal.la \
2413 libsystemd-shared.la \
2414 libsystemd-dump.la \
2415 libsystemd-capability.la \
2420 test_bus_marshal_CFLAGS = \
2426 test_bus_signature_SOURCES = \
2427 src/libsystemd/sd-bus/test-bus-signature.c
2429 test_bus_signature_LDADD = \
2430 libsystemd-shared.la \
2431 libsystemd-internal.la
2433 test_bus_chat_SOURCES = \
2434 src/libsystemd/sd-bus/test-bus-chat.c
2436 test_bus_chat_CFLAGS = \
2440 test_bus_chat_LDADD = \
2441 libsystemd-internal.la \
2442 libsystemd-shared.la
2444 test_bus_cleanup_SOURCES = \
2445 src/libsystemd/sd-bus/test-bus-cleanup.c
2447 test_bus_cleanup_CFLAGS = \
2451 test_bus_cleanup_LDADD = \
2452 libsystemd-internal.la \
2453 libsystemd-shared.la
2455 test_bus_server_SOURCES = \
2456 src/libsystemd/sd-bus/test-bus-server.c
2458 test_bus_server_CFLAGS = \
2462 test_bus_server_LDADD = \
2463 libsystemd-internal.la \
2464 libsystemd-shared.la
2466 test_bus_objects_SOURCES = \
2467 src/libsystemd/sd-bus/test-bus-objects.c
2469 test_bus_objects_CFLAGS = \
2474 test_bus_objects_LDADD = \
2475 libsystemd-internal.la \
2476 libsystemd-shared.la \
2477 libsystemd-dump.la \
2478 libsystemd-capability.la \
2481 test_bus_error_SOURCES = \
2482 src/libsystemd/sd-bus/test-bus-error.c
2484 test_bus_error_LDADD = \
2485 libsystemd-internal.la \
2486 libsystemd-shared.la
2488 test_bus_gvariant_SOURCES = \
2489 src/libsystemd/sd-bus/test-bus-gvariant.c
2491 test_bus_gvariant_LDADD = \
2492 libsystemd-internal.la \
2493 libsystemd-shared.la \
2494 libsystemd-dump.la \
2495 libsystemd-capability.la \
2499 test_bus_gvariant_CFLAGS = \
2504 test_bus_creds_SOURCES = \
2505 src/libsystemd/sd-bus/test-bus-creds.c
2507 test_bus_creds_LDADD = \
2508 libsystemd-internal.la \
2509 libsystemd-shared.la \
2510 libsystemd-dump.la \
2511 libsystemd-capability.la
2513 test_bus_match_SOURCES = \
2514 src/libsystemd/sd-bus/test-bus-match.c
2516 test_bus_match_LDADD = \
2517 libsystemd-internal.la \
2518 libsystemd-shared.la
2520 test_bus_kernel_SOURCES = \
2521 src/libsystemd/sd-bus/test-bus-kernel.c
2523 test_bus_kernel_LDADD = \
2524 libsystemd-internal.la \
2525 libsystemd-shared.la \
2526 libsystemd-dump.la \
2527 libsystemd-capability.la \
2530 test_bus_kernel_CFLAGS = \
2534 test_bus_kernel_bloom_SOURCES = \
2535 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
2537 test_bus_kernel_bloom_LDADD = \
2538 libsystemd-internal.la \
2539 libsystemd-shared.la
2541 test_bus_kernel_benchmark_SOURCES = \
2542 src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
2544 test_bus_kernel_benchmark_LDADD = \
2545 libsystemd-internal.la \
2546 libsystemd-shared.la
2548 test_bus_memfd_SOURCES = \
2549 src/libsystemd/sd-bus/test-bus-memfd.c
2551 test_bus_memfd_LDADD = \
2552 libsystemd-internal.la \
2553 libsystemd-shared.la
2555 test_bus_zero_copy_SOURCES = \
2556 src/libsystemd/sd-bus/test-bus-zero-copy.c
2558 test_bus_zero_copy_LDADD = \
2559 libsystemd-internal.la \
2560 libsystemd-shared.la \
2561 libsystemd-dump.la \
2562 libsystemd-capability.la \
2565 test_bus_zero_copy_CFLAGS = \
2569 test_bus_introspect_SOURCES = \
2570 src/libsystemd/sd-bus/test-bus-introspect.c
2572 test_bus_introspect_LDADD = \
2573 libsystemd-internal.la \
2574 libsystemd-shared.la
2576 test_event_SOURCES = \
2577 src/libsystemd/sd-event/test-event.c
2579 test_event_LDADD = \
2580 libsystemd-internal.la \
2581 libsystemd-shared.la
2583 test_rtnl_SOURCES = \
2584 src/libsystemd/sd-rtnl/test-rtnl.c
2587 libsystemd-internal.la \
2588 libsystemd-shared.la
2590 test_resolve_SOURCES = \
2591 src/libsystemd/sd-resolve/test-resolve.c
2593 test_resolve_LDADD = \
2594 libsystemd-resolve.la \
2595 libsystemd-internal.la \
2596 libsystemd-shared.la
2598 test_resolve_CFLAGS = \
2603 src/libsystemd/sd-bus/busctl.c
2606 libsystemd-internal.la \
2607 libsystemd-shared.la \
2608 libsystemd-dump.la \
2609 libsystemd-capability.la \
2616 # ------------------------------------------------------------------------------
2617 noinst_LTLIBRARIES += \
2618 libsystemd-network.la
2620 libsystemd_network_la_CFLAGS = \
2624 libsystemd_network_la_SOURCES = \
2625 src/systemd/sd-network.h \
2626 src/systemd/sd-dhcp-client.h \
2627 src/systemd/sd-dhcp-server.h \
2628 src/systemd/sd-dhcp-lease.h \
2629 src/systemd/sd-ipv4ll.h \
2630 src/network/sd-network.c \
2631 src/network/network-util.h \
2632 src/libsystemd-network/sd-dhcp-client.c \
2633 src/libsystemd-network/sd-dhcp-server.c \
2634 src/libsystemd-network/dhcp-network.c \
2635 src/libsystemd-network/dhcp-option.c \
2636 src/libsystemd-network/dhcp-packet.c \
2637 src/libsystemd-network/dhcp-internal.h \
2638 src/libsystemd-network/dhcp-server-internal.h \
2639 src/libsystemd-network/dhcp-protocol.h \
2640 src/libsystemd-network/dhcp-lease-internal.h \
2641 src/libsystemd-network/sd-dhcp-lease.c \
2642 src/libsystemd-network/sd-ipv4ll.c \
2643 src/libsystemd-network/ipv4ll-network.c \
2644 src/libsystemd-network/ipv4ll-packet.c \
2645 src/libsystemd-network/ipv4ll-internal.h \
2646 src/libsystemd-network/network-internal.c \
2647 src/libsystemd-network/network-internal.h \
2648 src/systemd/sd-icmp6-nd.h \
2649 src/systemd/sd-dhcp6-client.h \
2650 src/systemd/sd-dhcp6-lease.h \
2651 src/libsystemd-network/sd-icmp6-nd.c \
2652 src/libsystemd-network/sd-dhcp6-client.c \
2653 src/libsystemd-network/dhcp6-internal.h \
2654 src/libsystemd-network/dhcp6-protocol.h \
2655 src/libsystemd-network/dhcp6-network.c \
2656 src/libsystemd-network/dhcp6-option.c \
2657 src/libsystemd-network/dhcp6-lease-internal.h \
2658 src/libsystemd-network/sd-dhcp6-lease.c
2660 libsystemd_network_la_LIBADD = \
2661 libudev-internal.la \
2662 libsystemd-label.la \
2663 libsystemd-internal.la \
2664 libsystemd-shared.la \
2667 test_dhcp_option_SOURCES = \
2668 src/libsystemd-network/dhcp-protocol.h \
2669 src/libsystemd-network/dhcp-internal.h \
2670 src/libsystemd-network/test-dhcp-option.c
2672 test_dhcp_option_LDADD = \
2673 libsystemd-network.la \
2674 libsystemd-internal.la \
2675 libsystemd-shared.la
2677 test_dhcp_client_SOURCES = \
2678 src/systemd/sd-dhcp-client.h \
2679 src/libsystemd-network/dhcp-protocol.h \
2680 src/libsystemd-network/dhcp-internal.h \
2681 src/libsystemd-network/test-dhcp-client.c
2683 test_dhcp_client_LDADD = \
2684 libsystemd-network.la \
2685 libsystemd-label.la \
2686 libsystemd-internal.la \
2687 libsystemd-shared.la
2689 test_dhcp_server_SOURCES = \
2690 src/libsystemd-network/test-dhcp-server.c
2692 test_dhcp_server_LDADD = \
2693 libsystemd-network.la \
2694 libsystemd-internal.la \
2695 libsystemd-shared.la
2697 test_ipv4ll_SOURCES = \
2698 src/systemd/sd-ipv4ll.h \
2699 src/libsystemd-network/ipv4ll-internal.h \
2700 src/libsystemd-network/test-ipv4ll.c
2702 test_ipv4ll_LDADD = \
2703 libsystemd-network.la \
2704 libsystemd-label.la \
2705 libsystemd-internal.la \
2706 libsystemd-shared.la
2708 test_icmp6_rs_SOURCES = \
2709 src/systemd/sd-dhcp6-client.h \
2710 src/systemd/sd-icmp6-nd.h \
2711 src/libsystemd-network/dhcp6-internal.h \
2712 src/libsystemd-network/test-icmp6-rs.c
2714 test_icmp6_rs_LDADD = \
2715 libsystemd-network.la \
2716 libsystemd-internal.la \
2717 libsystemd-shared.la
2719 test_dhcp6_client_SOURCES = \
2720 src/systemd/sd-dhcp6-client.h \
2721 src/libsystemd-network/dhcp6-internal.h \
2722 src/libsystemd-network/test-dhcp6-client.c
2724 test_dhcp6_client_LDADD = \
2725 libsystemd-network.la \
2726 libsystemd-internal.la \
2727 libsystemd-shared.la
2737 # ------------------------------------------------------------------------------
2747 include_HEADERS += \
2748 src/libudev/libudev.h
2750 lib_LTLIBRARIES += \
2753 libudev_la_SOURCES =\
2754 src/libudev/libudev.sym \
2755 src/libudev/libudev-private.h \
2756 src/libudev/libudev.c \
2757 src/libudev/libudev-list.c \
2758 src/libudev/libudev-util.c \
2759 src/libudev/libudev-device.c \
2760 src/libudev/libudev-enumerate.c \
2761 src/libudev/libudev-monitor.c \
2762 src/libudev/libudev-queue.c \
2763 src/libudev/libudev-hwdb-def.h \
2764 src/libudev/libudev-hwdb.c
2766 libudev_la_CFLAGS = \
2770 libudev_la_LDFLAGS = \
2772 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
2773 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
2775 libudev_la_LIBADD = \
2776 libsystemd-internal.la \
2777 libsystemd-shared.la
2779 pkgconfiglib_DATA += \
2780 src/libudev/libudev.pc
2783 src/libudev/libudev.pc.in
2786 src/libudev/libudev.pc \
2791 $(AM_V_at)$(MKDIR_P) $(dir $@)
2792 $(AM_V_LN)$(LN_S) -f ../libudev/html $@
2795 $(AM_V_at)$(MKDIR_P) $(dir $@)
2796 $(AM_V_LN)$(LN_S) -f ../gudev/html $@
2798 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2799 libudev-install-hook:
2800 libname=libudev.so && $(move-to-rootlibdir)
2802 libudev-uninstall-hook:
2803 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
2805 INSTALL_EXEC_HOOKS += libudev-install-hook
2806 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
2808 # ------------------------------------------------------------------------------
2809 noinst_LTLIBRARIES += \
2812 libudev_internal_la_SOURCES =\
2813 $(libudev_la_SOURCES) \
2814 src/libudev/libudev-device-private.c
2816 libudev_internal_la_CFLAGS = \
2818 -fvisibility=default
2820 # ------------------------------------------------------------------------------
2822 $(sysconfdir)/udev/rules.d \
2823 $(sysconfdir)/udev/hwdb.d
2825 dist_network_DATA = \
2826 network/99-default.link \
2827 network/80-container-host0.network \
2828 network/80-container-ve.network
2830 dist_udevrules_DATA += \
2831 rules/42-usb-hid-pm.rules \
2832 rules/50-udev-default.rules \
2833 rules/60-drm.rules \
2834 rules/60-keyboard.rules \
2835 rules/60-persistent-storage-tape.rules \
2836 rules/60-persistent-serial.rules \
2837 rules/60-persistent-input.rules \
2838 rules/60-persistent-alsa.rules \
2839 rules/60-persistent-storage.rules \
2840 rules/64-btrfs.rules \
2841 rules/75-net-description.rules \
2842 rules/75-tty-description.rules \
2843 rules/78-sound-card.rules \
2844 rules/80-net-setup-link.rules \
2845 rules/95-udev-late.rules
2847 nodist_udevrules_DATA += \
2848 rules/99-systemd.rules
2850 dist_udevhwdb_DATA = \
2851 hwdb/20-pci-vendor-model.hwdb \
2852 hwdb/20-pci-classes.hwdb \
2853 hwdb/20-usb-vendor-model.hwdb \
2854 hwdb/20-usb-classes.hwdb \
2855 hwdb/20-sdio-vendor-model.hwdb \
2856 hwdb/20-sdio-classes.hwdb \
2857 hwdb/20-bluetooth-vendor-product.hwdb \
2858 hwdb/20-acpi-vendor.hwdb \
2860 hwdb/20-net-ifname.hwdb \
2861 hwdb/60-keyboard.hwdb
2863 udevconfdir = $(sysconfdir)/udev
2864 dist_udevconf_DATA = \
2867 sharepkgconfigdir = $(datadir)/pkgconfig
2868 sharepkgconfig_DATA = \
2872 rules/99-systemd.rules.in \
2876 rules/99-systemd.rules \
2880 units/systemd-udevd.service.in \
2881 units/systemd-udev-trigger.service.in \
2882 units/systemd-udev-settle.service.in \
2883 units/systemd-udev-hwdb-update.service.in
2886 units/systemd-udevd.service \
2887 units/systemd-udev-trigger.service \
2888 units/systemd-udev-settle.service \
2889 units/systemd-udev-hwdb-update.service
2891 SOCKETS_TARGET_WANTS += \
2892 systemd-udevd-control.socket \
2893 systemd-udevd-kernel.socket
2895 SYSINIT_TARGET_WANTS += \
2896 systemd-udevd.service \
2897 systemd-udev-trigger.service \
2898 systemd-udev-hwdb-update.service
2900 rootbin_PROGRAMS += \
2903 rootlibexec_PROGRAMS += \
2906 noinst_LTLIBRARIES += \
2909 src/udev/keyboard-keys.txt:
2910 $(AM_V_at)$(MKDIR_P) $(dir $@)
2911 $(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/' > $@
2913 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
2914 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
2916 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
2917 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
2919 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
2920 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
2922 libudev_core_la_SOURCES = \
2924 src/udev/udev-event.c \
2925 src/udev/udev-watch.c \
2926 src/udev/udev-node.c \
2927 src/udev/udev-rules.c \
2928 src/udev/udev-ctrl.c \
2929 src/udev/udev-builtin.c \
2930 src/udev/udev-builtin-btrfs.c \
2931 src/udev/udev-builtin-hwdb.c \
2932 src/udev/udev-builtin-input_id.c \
2933 src/udev/udev-builtin-keyboard.c \
2934 src/udev/udev-builtin-net_id.c \
2935 src/udev/udev-builtin-net_setup_link.c \
2936 src/udev/udev-builtin-path_id.c \
2937 src/udev/udev-builtin-usb_id.c \
2938 src/udev/net/link-config.h \
2939 src/udev/net/link-config.c \
2940 src/udev/net/ethtool-util.h \
2941 src/udev/net/ethtool-util.c
2943 nodist_libudev_core_la_SOURCES = \
2944 src/udev/keyboard-keys-from-name.h \
2945 src/udev/keyboard-keys-to-name.h \
2946 src/udev/net/link-config-gperf.c
2949 $(nodist_libudev_core_la_SOURCES)
2952 src/udev/keyboard-keys-from-name.gperf \
2953 src/udev/keyboard-keys.txt \
2954 src/udev/net/link-config-gperf.c
2957 src/udev/net/link-config-gperf.gperf
2959 libudev_core_la_CFLAGS = \
2964 libudev_core_la_LIBADD = \
2965 libudev-internal.la \
2966 libsystemd-label.la \
2967 libsystemd-internal.la \
2968 libsystemd-network.la \
2969 libsystemd-shared.la \
2973 libudev_core_la_CPPFLAGS = \
2975 -DFIRMWARE_PATH="$(FIRMWARE_PATH)"
2978 libudev_core_la_SOURCES += \
2979 src/udev/udev-builtin-firmware.c
2981 dist_udevrules_DATA += \
2982 rules/50-firmware.rules
2986 libudev_core_la_SOURCES += \
2987 src/udev/udev-builtin-kmod.c
2989 dist_udevrules_DATA += \
2990 rules/80-drivers.rules
2994 libudev_core_la_SOURCES += \
2995 src/udev/udev-builtin-blkid.c
2999 libudev_core_la_SOURCES += \
3000 src/udev/udev-builtin-uaccess.c \
3001 src/login/logind-acl.c \
3002 src/libsystemd/sd-login/sd-login.c \
3003 src/systemd/sd-login.h
3005 libudev_core_la_LIBADD += \
3009 systemd_udevd_SOURCES = \
3012 systemd_udevd_LDADD = \
3016 src/udev/udevadm.c \
3017 src/udev/udevadm-info.c \
3018 src/udev/udevadm-control.c \
3019 src/udev/udevadm-monitor.c \
3020 src/udev/udevadm-hwdb.c \
3021 src/udev/udevadm-settle.c \
3022 src/udev/udevadm-trigger.c \
3023 src/udev/udevadm-test.c \
3024 src/udev/udevadm-test-builtin.c
3029 # Update hwdb on installation. Do not bother if installing
3030 # in DESTDIR, since this is likely for packaging purposes.
3032 -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
3034 INSTALL_DATA_HOOKS += \
3038 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3040 # ------------------------------------------------------------------------------
3049 test_libudev_SOURCES = \
3050 src/test/test-libudev.c
3052 test_libudev_LDADD = \
3053 libsystemd-label.la \
3054 libudev-internal.la \
3055 libsystemd-shared.la
3057 test_udev_SOURCES = \
3058 src/test/test-udev.c
3067 test_udev_LDADD += \
3074 # packed sysfs test tree
3076 $(AM_V_at)$(MKDIR_P) $(dir $@)
3077 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3081 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3086 test/rules-test.sh \
3087 test/rule-syntax-check.py
3089 # ------------------------------------------------------------------------------
3091 src/udev/ata_id/ata_id.c
3094 libudev-internal.la \
3095 libsystemd-shared.la
3097 udevlibexec_PROGRAMS += \
3100 # ------------------------------------------------------------------------------
3101 cdrom_id_SOURCES = \
3102 src/udev/cdrom_id/cdrom_id.c
3105 libudev-internal.la \
3106 libsystemd-shared.la
3108 udevlibexec_PROGRAMS += \
3111 dist_udevrules_DATA += \
3112 rules/60-cdrom_id.rules
3114 # ------------------------------------------------------------------------------
3116 src/udev/collect/collect.c
3119 libudev-internal.la \
3120 libsystemd-shared.la
3122 udevlibexec_PROGRAMS += \
3125 # ------------------------------------------------------------------------------
3127 src/udev/scsi_id/scsi_id.c \
3128 src/udev/scsi_id/scsi_serial.c \
3129 src/udev/scsi_id/scsi.h \
3130 src/udev/scsi_id/scsi_id.h
3133 libudev-internal.la \
3134 libsystemd-shared.la
3136 udevlibexec_PROGRAMS += \
3140 src/udev/scsi_id/README
3142 # ------------------------------------------------------------------------------
3144 src/udev/v4l_id/v4l_id.c
3149 udevlibexec_PROGRAMS += \
3152 dist_udevrules_DATA += \
3153 rules/60-persistent-v4l.rules
3155 # ------------------------------------------------------------------------------
3156 accelerometer_SOURCES = \
3157 src/udev/accelerometer/accelerometer.c
3159 accelerometer_LDADD = \
3160 libudev-internal.la -lm \
3161 libsystemd-shared.la
3163 udevlibexec_PROGRAMS += \
3166 dist_udevrules_DATA += \
3167 rules/61-accelerometer.rules
3169 # ------------------------------------------------------------------------------
3176 libgudev_includedir = \
3177 $(includedir)/gudev-1.0/gudev
3179 libgudev_include_HEADERS = \
3181 src/gudev/gudevenums.h \
3182 src/gudev/gudevenumtypes.h \
3183 src/gudev/gudevtypes.h \
3184 src/gudev/gudevclient.h \
3185 src/gudev/gudevdevice.h \
3186 src/gudev/gudevenumerator.h
3188 lib_LTLIBRARIES += libgudev-1.0.la
3190 pkgconfiglib_DATA += \
3191 src/gudev/gudev-1.0.pc
3194 src/gudev/gudev-1.0.pc
3196 libgudev_1_0_la_SOURCES = \
3197 src/gudev/libgudev-1.0.sym \
3198 src/gudev/gudevenums.h \
3199 src/gudev/gudevenumtypes.h \
3200 src/gudev/gudevenumtypes.h\
3201 src/gudev/gudevtypes.h \
3202 src/gudev/gudevclient.h \
3203 src/gudev/gudevclient.c \
3204 src/gudev/gudevdevice.h \
3205 src/gudev/gudevdevice.c \
3206 src/gudev/gudevenumerator.h \
3207 src/gudev/gudevenumerator.c \
3208 src/gudev/gudevprivate.h
3210 nodist_libgudev_1_0_la_SOURCES = \
3211 src/gudev/gudevmarshal.h \
3212 src/gudev/gudevmarshal.c \
3213 src/gudev/gudevenumtypes.h \
3214 src/gudev/gudevenumtypes.c
3217 $(nodist_libgudev_1_0_la_SOURCES)
3219 libgudev_1_0_la_CPPFLAGS = \
3221 -I$(top_builddir)/src\
3222 -I$(top_srcdir)/src\
3223 -I$(top_builddir)/src/gudev \
3224 -I$(top_srcdir)/src/gudev \
3225 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3226 -D_GUDEV_COMPILATION \
3227 -DG_LOG_DOMAIN=\"GUdev\"
3229 libgudev_1_0_la_CFLAGS = \
3231 -fvisibility=default \
3234 libgudev_1_0_la_LIBADD = \
3238 libgudev_1_0_la_LDFLAGS = \
3240 -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3243 -Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym
3245 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3246 $(AM_V_at)$(MKDIR_P) $(dir $@)
3247 $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3249 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3250 $(AM_V_at)$(MKDIR_P) $(dir $@)
3251 $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3252 glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3254 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3255 $(AM_V_at)$(MKDIR_P) $(dir $@)
3256 $(AM_V_GEN)glib-mkenums --template $^ > $@
3258 if HAVE_INTROSPECTION
3259 -include $(INTROSPECTION_MAKEFILE)
3261 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3263 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3265 src_gudev_GUdev_1_0_gir_CFLAGS = \
3268 -D_GUDEV_COMPILATION \
3269 -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3270 -I$(top_srcdir)/src \
3271 -I$(top_builddir)/src \
3272 -I$(top_srcdir)/src/gudev \
3273 -I$(top_builddir)/src/gudev
3275 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
3277 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
3278 --pkg-export=gudev-1.0 \
3281 src_gudev_GUdev_1_0_gir_FILES = \
3283 src/gudev/gudevtypes.h \
3284 src/gudev/gudevenums.h \
3285 src/gudev/gudevenumtypes.h \
3286 src/gudev/gudevclient.h \
3287 src/gudev/gudevdevice.h \
3288 src/gudev/gudevenumerator.h \
3289 src/gudev/gudevclient.c \
3290 src/gudev/gudevdevice.c \
3291 src/gudev/gudevenumerator.c
3293 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
3294 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
3296 girdir = $(datadir)/gir-1.0
3298 src/gudev/GUdev-1.0.gir
3300 typelibsdir = $(libdir)/girepository-1.0
3302 src/gudev/GUdev-1.0.typelib
3304 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
3305 endif # HAVE_INTROSPECTION
3307 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3308 libgudev-install-hook:
3309 libname=libgudev-1.0.so && $(move-to-rootlibdir)
3311 libgudev-uninstall-hook:
3312 rm -f $(DESTDIR)$(rootlibdir)/libgudev-1.0.so*
3314 INSTALL_EXEC_HOOKS += libgudev-install-hook
3315 UNINSTALL_EXEC_HOOKS += libgudev-uninstall-hook
3319 src/gudev/gudev-1.0.pc.in \
3320 src/gudev/gudevmarshal.list \
3321 src/gudev/gudevenumtypes.h.template \
3322 src/gudev/gudevenumtypes.c.template \
3323 src/gudev/gjs-example.js \
3324 src/gudev/seed-example-enum.js \
3325 src/gudev/seed-example.js
3327 # ------------------------------------------------------------------------------
3328 mtd_probe_SOURCES = \
3329 src/udev/mtd_probe/mtd_probe.c \
3330 src/udev/mtd_probe/mtd_probe.h \
3331 src/udev/mtd_probe/probe_smartmedia.c
3333 dist_udevrules_DATA += \
3334 rules/75-probe_mtd.rules
3336 udevlibexec_PROGRAMS += \
3339 # ------------------------------------------------------------------------------
3340 test_id128_SOURCES = \
3341 src/test/test-id128.c
3343 test_id128_LDADD = \
3344 libsystemd-internal.la \
3345 libsystemd-shared.la
3350 # ------------------------------------------------------------------------------
3352 rootlibexec_PROGRAMS += \
3355 systemd_activate_SOURCES = \
3356 src/activate/activate.c
3358 systemd_activate_LDADD = \
3359 libsystemd-label.la \
3360 libsystemd-internal.la \
3361 libsystemd-shared.la
3363 # ------------------------------------------------------------------------------
3364 systemd_journald_SOURCES = \
3365 src/journal/journald.c \
3366 src/journal/journald-server.h
3368 systemd_journald_LDADD = \
3369 libsystemd-journal-core.la \
3370 libsystemd-internal.la \
3371 libsystemd-shared.la
3373 systemd_cat_SOURCES = \
3376 systemd_cat_LDADD = \
3377 libsystemd-journal-core.la
3380 rootlibexec_PROGRAMS += \
3381 systemd-journal-remote
3383 systemd_journal_remote_SOURCES = \
3384 src/journal/journal-remote-parse.h \
3385 src/journal/journal-remote-parse.c \
3386 src/journal/journal-remote-write.h \
3387 src/journal/journal-remote-write.c \
3388 src/journal/journal-remote.c
3390 systemd_journal_remote_LDADD = \
3391 libsystemd-internal.la \
3392 libsystemd-journal-core.la
3394 systemd_journal_remote_SOURCES += \
3395 src/journal/microhttpd-util.h \
3396 src/journal/microhttpd-util.c
3398 systemd_journal_remote_CFLAGS = \
3400 $(MICROHTTPD_CFLAGS)
3402 systemd_journal_remote_LDADD += \
3406 systemd_journal_remote_LDADD += \
3411 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3412 journalctl_CFLAGS = \
3415 journalctl_SOURCES = \
3416 src/journal/journalctl.c
3418 journalctl_LDADD = \
3419 libsystemd-journal-internal.la \
3420 libsystemd-internal.la \
3421 libsystemd-logs.la \
3422 libsystemd-shared.la
3425 journalctl_LDADD += \
3430 journalctl_SOURCES += \
3431 src/journal/journal-qrcode.c \
3432 src/journal/journal-qrcode.h
3434 journalctl_CFLAGS += \
3437 journalctl_LDADD += \
3441 test_journal_SOURCES = \
3442 src/journal/test-journal.c
3444 test_journal_LDADD = \
3445 libsystemd-journal-core.la
3447 test_journal_send_SOURCES = \
3448 src/journal/test-journal-send.c
3450 test_journal_send_LDADD = \
3451 libsystemd-journal-core.la
3453 test_journal_syslog_SOURCES = \
3454 src/journal/test-journal-syslog.c
3456 test_journal_syslog_LDADD = \
3457 libsystemd-journal-core.la
3459 test_journal_match_SOURCES = \
3460 src/journal/test-journal-match.c
3462 test_journal_match_LDADD = \
3463 libsystemd-journal-core.la
3465 test_journal_enum_SOURCES = \
3466 src/journal/test-journal-enum.c
3468 test_journal_enum_LDADD = \
3469 libsystemd-journal-core.la
3471 test_journal_stream_SOURCES = \
3472 src/journal/test-journal-stream.c
3474 test_journal_stream_LDADD = \
3475 libsystemd-journal-core.la
3477 test_journal_flush_SOURCES = \
3478 src/journal/test-journal-flush.c
3480 test_journal_flush_LDADD = \
3481 libsystemd-journal-core.la
3483 test_journal_init_SOURCES = \
3484 src/journal/test-journal-init.c
3486 test_journal_init_LDADD = \
3487 libsystemd-journal-core.la
3489 test_journal_verify_SOURCES = \
3490 src/journal/test-journal-verify.c
3492 test_journal_verify_LDADD = \
3493 libsystemd-journal-core.la
3495 test_journal_interleaving_SOURCES = \
3496 src/journal/test-journal-interleaving.c
3498 test_journal_interleaving_LDADD = \
3499 libsystemd-journal-core.la
3501 test_mmap_cache_SOURCES = \
3502 src/journal/test-mmap-cache.c
3504 test_mmap_cache_LDADD = \
3505 libsystemd-journal-core.la
3507 test_catalog_SOURCES = \
3508 src/journal/test-catalog.c
3510 test_catalog_CPPFLAGS = \
3512 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
3514 test_catalog_LDADD = \
3515 libsystemd-journal-core.la
3518 test_compress_SOURCES = \
3519 src/journal/test-compress.c
3521 test_compress_LDADD = \
3522 libsystemd-journal-internal.la \
3523 libsystemd-shared.la
3526 libsystemd_journal_core_la_SOURCES = \
3527 src/journal/journald-kmsg.c \
3528 src/journal/journald-kmsg.h \
3529 src/journal/journald-syslog.c \
3530 src/journal/journald-syslog.h \
3531 src/journal/journald-stream.c \
3532 src/journal/journald-stream.h \
3533 src/journal/journald-server.c \
3534 src/journal/journald-server.h \
3535 src/journal/journald-console.c \
3536 src/journal/journald-console.h \
3537 src/journal/journald-wall.c \
3538 src/journal/journald-wall.h \
3539 src/journal/journald-native.c \
3540 src/journal/journald-native.h \
3541 src/journal/journald-rate-limit.c \
3542 src/journal/journald-rate-limit.h \
3543 src/journal/journal-internal.h
3545 nodist_libsystemd_journal_core_la_SOURCES = \
3546 src/journal/journald-gperf.c
3548 libsystemd_journal_core_la_LIBADD = \
3549 libsystemd-journal-internal.la \
3550 libudev-internal.la \
3551 libsystemd-capability.la \
3552 libsystemd-label.la \
3553 libsystemd-internal.la \
3554 libsystemd-shared.la
3557 libsystemd_journal_core_la_LIBADD += \
3561 noinst_LTLIBRARIES += \
3562 libsystemd-journal-core.la
3564 journal-install-hook:
3565 -$(MKDIR_P) $(DESTDIR)/var/log/journal
3566 -chown 0:0 $(DESTDIR)/var/log/journal
3567 -chmod 755 $(DESTDIR)/var/log/journal
3568 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
3569 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
3571 journal-uninstall-hook:
3572 -rmdir $(DESTDIR)/var/log/journal/
3574 INSTALL_EXEC_HOOKS += journal-install-hook
3575 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
3577 # ------------------------------------------------------------------------------
3578 # Update catalog on installation. Do not bother if installing
3579 # in DESTDIR, since this is likely for packaging purposes.
3580 catalog-update-hook:
3581 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
3583 INSTALL_DATA_HOOKS += \
3586 catalog-remove-hook:
3587 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
3589 UNINSTALL_DATA_HOOKS += \
3598 test-journal-syslog \
3599 test-journal-match \
3600 test-journal-stream \
3602 test-journal-verify \
3603 test-journal-interleaving \
3604 test-journal-flush \
3609 tests += test-compress
3612 pkginclude_HEADERS += \
3613 src/systemd/sd-journal.h \
3614 src/systemd/sd-messages.h \
3615 src/systemd/_sd-common.h
3617 libsystemd_journal_internal_la_SOURCES = \
3618 src/journal/sd-journal.c \
3619 src/systemd/sd-journal.h \
3620 src/systemd/_sd-common.h \
3621 src/journal/journal-file.c \
3622 src/journal/journal-file.h \
3623 src/journal/journal-vacuum.c \
3624 src/journal/journal-vacuum.h \
3625 src/journal/journal-verify.c \
3626 src/journal/journal-verify.h \
3627 src/journal/lookup3.c \
3628 src/journal/lookup3.h \
3629 src/journal/journal-send.c \
3630 src/journal/journal-def.h \
3631 src/journal/compress.h \
3632 src/journal/catalog.c \
3633 src/journal/catalog.h \
3634 src/journal/mmap-cache.c \
3635 src/journal/mmap-cache.h
3637 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3638 libsystemd_journal_internal_la_CFLAGS = \
3641 libsystemd_journal_internal_la_LIBADD =
3644 libsystemd_journal_internal_la_SOURCES += \
3645 src/journal/compress.c
3647 libsystemd_journal_internal_la_CFLAGS += \
3650 libsystemd_journal_internal_la_LIBADD += \
3655 libsystemd_journal_internal_la_SOURCES += \
3656 src/journal/journal-authenticate.c \
3657 src/journal/journal-authenticate.h \
3658 src/journal/fsprg.c \
3661 libsystemd_journal_internal_la_LIBADD += \
3664 # fsprg.c is a drop-in file using void pointer arithmetic
3665 libsystemd_journal_internal_la_CFLAGS += \
3670 noinst_LTLIBRARIES += \
3671 libsystemd-journal-internal.la
3673 rootlibexec_PROGRAMS += \
3676 rootbin_PROGRAMS += \
3682 dist_systemunit_DATA += \
3683 units/systemd-journald.socket \
3684 units/systemd-journald-dev-log.socket
3686 nodist_systemunit_DATA += \
3687 units/systemd-journald.service \
3688 units/systemd-journal-flush.service \
3689 units/systemd-journal-catalog-update.service
3691 dist_pkgsysconf_DATA += \
3692 src/journal/journald.conf
3694 dist_catalog_DATA = \
3695 catalog/systemd.fr.catalog \
3696 catalog/systemd.ru.catalog \
3697 catalog/systemd.it.catalog \
3698 catalog/systemd.catalog
3700 SOCKETS_TARGET_WANTS += \
3701 systemd-journald.socket \
3702 systemd-journald-dev-log.socket
3704 SYSINIT_TARGET_WANTS += \
3705 systemd-journald.service \
3706 systemd-journal-flush.service \
3707 systemd-journal-catalog-update.service
3710 units/systemd-journald.service.in \
3711 units/systemd-journal-flush.service.in \
3712 units/systemd-journal-catalog-update.service.in \
3713 src/journal/journald-gperf.gperf
3716 src/journal/journald-gperf.c
3718 # ------------------------------------------------------------------------------
3720 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
3722 rootlibexec_PROGRAMS += \
3723 systemd-journal-gatewayd
3725 systemd_journal_gatewayd_SOURCES = \
3726 src/journal/journal-gatewayd.c \
3727 src/journal/microhttpd-util.h \
3728 src/journal/microhttpd-util.c
3730 systemd_journal_gatewayd_LDADD = \
3731 libsystemd-logs.la \
3732 libsystemd-journal-internal.la \
3733 libsystemd-internal.la \
3734 libsystemd-shared.la \
3738 systemd_journal_gatewayd_LDADD += \
3742 systemd_journal_gatewayd_CFLAGS = \
3744 $(MICROHTTPD_CFLAGS)
3746 systemd_journal_gatewayd_CPPFLAGS = \
3748 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
3750 dist_systemunit_DATA += \
3751 units/systemd-journal-gatewayd.socket
3753 nodist_systemunit_DATA += \
3754 units/systemd-journal-gatewayd.service
3756 dist_gatewayddocumentroot_DATA = \
3757 src/journal/browse.html
3762 units/systemd-journal-gatewayd.service.in
3764 # ------------------------------------------------------------------------------
3766 systemd_socket_proxyd_SOURCES = \
3767 src/socket-proxy/socket-proxyd.c
3769 systemd_socket_proxyd_LDADD = \
3770 libsystemd-logs.la \
3771 libsystemd-internal.la \
3772 libsystemd-journal-internal.la \
3773 libsystemd-shared.la \
3774 libsystemd-resolve.la
3776 # ------------------------------------------------------------------------------
3778 systemd_coredump_SOURCES = \
3779 src/journal/coredump.c \
3780 src/journal/coredump-vacuum.c \
3781 src/journal/coredump-vacuum.h
3783 systemd_coredump_LDADD = \
3784 libsystemd-journal-internal.la \
3785 libsystemd-label.la \
3786 libsystemd-internal.la \
3787 libsystemd-shared.la
3790 systemd_coredump_SOURCES += \
3791 src/journal/stacktrace.c \
3792 src/journal/stacktrace.h
3794 systemd_coredump_LDADD += \
3798 rootlibexec_PROGRAMS += \
3801 dist_pkgsysconf_DATA += \
3802 src/journal/coredump.conf
3805 systemd_coredump_LDADD += \
3809 coredumpctl_SOURCES = \
3810 src/journal/coredumpctl.c
3812 coredumpctl_LDADD = \
3813 libsystemd-journal-internal.la \
3814 libsystemd-internal.la \
3815 libsystemd-shared.la
3821 test-coredump-vacuum
3823 test_coredump_vacuum_SOURCES = \
3824 src/journal/test-coredump-vacuum.c \
3825 src/journal/coredump-vacuum.c \
3826 src/journal/coredump-vacuum.h
3828 test_coredump_vacuum_LDADD = \
3829 libsystemd-internal.la \
3830 libsystemd-shared.la
3832 dist_bashcompletion_DATA += \
3833 shell-completion/bash/coredumpctl
3835 dist_zshcompletion_DATA += \
3836 shell-completion/zsh/_coredumpctl
3838 GENERAL_ALIASES += \
3839 $(bindir)/coredumpctl $(bindir)/systemd-coredumpctl
3842 sysctl.d/50-coredump.conf
3845 sysctl.d/50-coredump.conf
3849 sysctl.d/50-coredump.conf.in
3851 # ------------------------------------------------------------------------------
3853 systemd_binfmt_SOURCES = \
3856 systemd_binfmt_LDADD = \
3857 libsystemd-shared.la
3859 rootlibexec_PROGRAMS += \
3862 dist_systemunit_DATA += \
3863 units/proc-sys-fs-binfmt_misc.automount \
3864 units/proc-sys-fs-binfmt_misc.mount
3866 nodist_systemunit_DATA += \
3867 units/systemd-binfmt.service
3870 $(prefix)/lib/binfmt.d \
3871 $(sysconfdir)/binfmt.d
3873 SYSINIT_TARGET_WANTS += \
3874 systemd-binfmt.service \
3875 proc-sys-fs-binfmt_misc.automount
3880 units/systemd-binfmt.service.in
3882 # ------------------------------------------------------------------------------
3884 systemd_vconsole_setup_SOURCES = \
3885 src/vconsole/vconsole-setup.c
3887 systemd_vconsole_setup_LDADD = \
3888 libsystemd-shared.la
3890 rootlibexec_PROGRAMS += \
3891 systemd-vconsole-setup
3893 nodist_systemunit_DATA += \
3894 units/systemd-vconsole-setup.service
3896 SYSINIT_TARGET_WANTS += \
3897 systemd-vconsole-setup.service
3901 units/systemd-vconsole-setup.service.in
3903 # ------------------------------------------------------------------------------
3905 systemd_readahead_SOURCES = \
3906 src/readahead/readahead.c \
3907 src/readahead/readahead-collect.c \
3908 src/readahead/readahead-replay.c \
3909 src/readahead/readahead-analyze.c \
3910 src/readahead/readahead-common.c \
3911 src/readahead/readahead-common.h
3913 systemd_readahead_LDADD = \
3914 libsystemd-internal.la \
3915 libudev-internal.la \
3916 libsystemd-shared.la
3919 src/readahead/sd-readahead.c \
3920 src/systemd/sd-readahead.h
3922 rootlibexec_PROGRAMS += \
3925 dist_systemunit_DATA += \
3926 units/systemd-readahead-drop.service \
3927 units/systemd-readahead-done.timer
3929 nodist_systemunit_DATA += \
3930 units/systemd-readahead-collect.service \
3931 units/systemd-readahead-replay.service \
3932 units/systemd-readahead-done.service
3937 test_ssd_SOURCES = \
3938 src/readahead/test-ssd.c \
3939 src/readahead/readahead-common.c \
3940 src/readahead/readahead-common.h
3943 libsystemd-internal.la \
3944 libudev-internal.la \
3945 libsystemd-shared.la
3950 units/systemd-readahead-collect.service.in \
3951 units/systemd-readahead-replay.service.in \
3952 units/systemd-readahead-done.service.in
3954 # ------------------------------------------------------------------------------
3956 systemd_bootchart_SOURCES = \
3957 src/bootchart/bootchart.c \
3958 src/bootchart/bootchart.h \
3959 src/bootchart/store.c \
3960 src/bootchart/store.h \
3961 src/bootchart/svg.c \
3964 systemd_bootchart_LDADD = \
3965 libsystemd-journal-internal.la \
3966 libsystemd-shared.la
3968 rootlibexec_PROGRAMS += \
3971 dist_pkgsysconf_DATA += \
3972 src/bootchart/bootchart.conf
3975 # ------------------------------------------------------------------------------
3976 if ENABLE_QUOTACHECK
3977 rootlibexec_PROGRAMS += \
3980 nodist_systemunit_DATA += \
3981 units/systemd-quotacheck.service
3983 systemd_quotacheck_SOURCES = \
3984 src/quotacheck/quotacheck.c
3986 systemd_quotacheck_LDADD = \
3987 libsystemd-shared.la
3991 units/systemd-quotacheck.service.in
3993 nodist_systemunit_DATA += \
3994 units/quotaon.service
3996 # ------------------------------------------------------------------------------
3997 if ENABLE_RANDOMSEED
3998 rootlibexec_PROGRAMS += \
4001 nodist_systemunit_DATA += \
4002 units/systemd-random-seed.service
4004 systemd_random_seed_SOURCES = \
4005 src/random-seed/random-seed.c
4007 systemd_random_seed_LDADD = \
4008 libsystemd-label.la \
4009 libsystemd-shared.la
4011 SYSINIT_TARGET_WANTS += \
4012 systemd-random-seed.service
4017 units/systemd-random-seed.service.in
4019 # ------------------------------------------------------------------------------
4021 rootlibexec_PROGRAMS += \
4024 nodist_systemunit_DATA += \
4025 units/systemd-backlight@.service
4027 systemd_backlight_SOURCES = \
4028 src/backlight/backlight.c
4030 systemd_backlight_LDADD = \
4031 libsystemd-label.la \
4032 libudev-internal.la \
4033 libsystemd-shared.la
4037 units/systemd-backlight@.service.in
4039 # ------------------------------------------------------------------------------
4041 rootlibexec_PROGRAMS += \
4044 nodist_systemunit_DATA += \
4045 units/systemd-rfkill@.service
4047 systemd_rfkill_SOURCES = \
4050 systemd_rfkill_LDADD = \
4051 libsystemd-label.la \
4052 libudev-internal.la \
4053 libsystemd-shared.la
4057 units/systemd-rfkill@.service.in
4059 # ------------------------------------------------------------------------------
4060 if HAVE_LIBCRYPTSETUP
4061 rootlibexec_PROGRAMS += \
4064 systemgenerator_PROGRAMS += \
4065 systemd-cryptsetup-generator
4067 dist_systemunit_DATA += \
4068 units/cryptsetup.target \
4069 units/cryptsetup-pre.target
4071 systemd_cryptsetup_SOURCES = \
4072 src/cryptsetup/cryptsetup.c
4074 systemd_cryptsetup_CFLAGS = \
4076 $(LIBCRYPTSETUP_CFLAGS)
4078 systemd_cryptsetup_LDADD = \
4079 libsystemd-label.la \
4080 libudev-internal.la \
4081 libsystemd-shared.la \
4082 $(LIBCRYPTSETUP_LIBS)
4084 systemd_cryptsetup_generator_SOURCES = \
4085 src/cryptsetup/cryptsetup-generator.c
4087 systemd_cryptsetup_generator_LDADD = \
4088 libsystemd-label.la \
4089 libsystemd-shared.la
4091 SYSINIT_TARGET_WANTS += \
4096 # ------------------------------------------------------------------------------
4098 systemd_hostnamed_SOURCES = \
4099 src/hostname/hostnamed.c
4101 systemd_hostnamed_LDADD = \
4102 libsystemd-label.la \
4103 libsystemd-internal.la \
4104 libsystemd-shared.la
4106 rootlibexec_PROGRAMS += \
4109 nodist_systemunit_DATA += \
4110 units/systemd-hostnamed.service
4112 dist_systemunit_DATA += \
4113 units/org.freedesktop.hostname1.busname
4115 dist_dbuspolicy_DATA += \
4116 src/hostname/org.freedesktop.hostname1.conf
4118 dist_dbussystemservice_DATA += \
4119 src/hostname/org.freedesktop.hostname1.service
4121 polkitpolicy_files += \
4122 src/hostname/org.freedesktop.hostname1.policy
4124 SYSTEM_UNIT_ALIASES += \
4125 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4127 BUSNAMES_TARGET_WANTS += \
4128 org.freedesktop.hostname1.busname
4130 hostnamectl_SOURCES = \
4131 src/hostname/hostnamectl.c
4133 hostnamectl_LDADD = \
4134 libsystemd-internal.la \
4135 libsystemd-shared.la
4140 dist_bashcompletion_DATA += \
4141 shell-completion/bash/hostnamectl
4143 dist_zshcompletion_DATA += \
4144 shell-completion/zsh/_hostnamectl
4148 polkitpolicy_in_files += \
4149 src/hostname/org.freedesktop.hostname1.policy.in
4152 units/systemd-hostnamed.service.in
4154 # ------------------------------------------------------------------------------
4156 dist_systemunit_DATA += \
4157 units/org.freedesktop.systemd1.busname
4159 BUSNAMES_TARGET_WANTS += \
4160 org.freedesktop.systemd1.busname
4163 # ------------------------------------------------------------------------------
4165 systemd_localed_SOURCES = \
4166 src/locale/localed.c
4168 systemd_localed_LDADD = \
4169 libsystemd-label.la \
4170 libsystemd-internal.la \
4171 libsystemd-shared.la
4173 nodist_systemunit_DATA += \
4174 units/systemd-localed.service
4176 dist_systemunit_DATA += \
4177 units/org.freedesktop.locale1.busname
4179 rootlibexec_PROGRAMS += \
4182 dist_dbuspolicy_DATA += \
4183 src/locale/org.freedesktop.locale1.conf
4185 dist_dbussystemservice_DATA += \
4186 src/locale/org.freedesktop.locale1.service
4188 polkitpolicy_files += \
4189 src/locale/org.freedesktop.locale1.policy
4191 SYSTEM_UNIT_ALIASES += \
4192 systemd-localed.service dbus-org.freedesktop.locale1.service
4194 BUSNAMES_TARGET_WANTS += \
4195 org.freedesktop.locale1.busname
4197 dist_pkgdata_DATA += \
4198 src/locale/kbd-model-map
4200 dist_noinst_SCRIPT = \
4201 src/locale/generate-kbd-model-map
4203 update-kbd-model-map: src/locale/generate-kbd-model-map
4204 $PYTHON $< >src/locale/kbd-model-map
4206 localectl_SOURCES = \
4207 src/locale/localectl.c
4210 libsystemd-internal.la \
4211 libsystemd-shared.la
4216 dist_bashcompletion_DATA += \
4217 shell-completion/bash/localectl
4219 dist_zshcompletion_DATA += \
4220 shell-completion/zsh/_localectl
4224 .PHONY: update-kbd-model-map
4226 polkitpolicy_in_files += \
4227 src/locale/org.freedesktop.locale1.policy.in
4230 units/systemd-localed.service.in
4232 # ------------------------------------------------------------------------------
4234 systemd_timedated_SOURCES = \
4235 src/timedate/timedated.c
4237 systemd_timedated_LDADD = \
4238 libsystemd-label.la \
4239 libsystemd-internal.la \
4240 libsystemd-shared.la
4242 rootlibexec_PROGRAMS += \
4245 dist_dbussystemservice_DATA += \
4246 src/timedate/org.freedesktop.timedate1.service
4248 dist_dbuspolicy_DATA += \
4249 src/timedate/org.freedesktop.timedate1.conf
4251 nodist_systemunit_DATA += \
4252 units/systemd-timedated.service
4254 dist_systemunit_DATA += \
4255 units/org.freedesktop.timedate1.busname
4257 polkitpolicy_files += \
4258 src/timedate/org.freedesktop.timedate1.policy
4261 $(prefix)/lib/systemd/ntp-units.d \
4262 $(sysconfdir)/systemd/ntp-units.d
4264 SYSTEM_UNIT_ALIASES += \
4265 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4267 BUSNAMES_TARGET_WANTS += \
4268 org.freedesktop.timedate1.busname
4270 timedatectl_SOURCES = \
4271 src/timedate/timedatectl.c
4273 timedatectl_LDADD = \
4274 libsystemd-internal.la \
4275 libsystemd-shared.la
4280 dist_bashcompletion_DATA += \
4281 shell-completion/bash/timedatectl
4283 dist_zshcompletion_DATA += \
4284 shell-completion/zsh/_timedatectl
4287 polkitpolicy_in_files += \
4288 src/timedate/org.freedesktop.timedate1.policy.in
4291 units/systemd-timedated.service.in
4293 # ------------------------------------------------------------------------------
4295 systemd_timesyncd_SOURCES = \
4296 src/timesync/timesyncd.c \
4297 src/timesync/timesyncd.h
4299 nodist_systemd_timesyncd_SOURCES = \
4300 src/timesync/timesyncd-gperf.c
4303 src/timesync/timesyncd-gperf.gperf
4306 src/timesync/timesyncd-gperf.c
4308 systemd_timesyncd_LDADD = \
4309 libsystemd-resolve.la \
4310 libsystemd-network.la \
4311 libsystemd-label.la \
4312 libsystemd-capability.la \
4313 libsystemd-internal.la \
4314 libsystemd-shared.la \
4317 rootlibexec_PROGRAMS += \
4320 nodist_systemunit_DATA += \
4321 units/systemd-timesyncd.service
4323 GENERAL_ALIASES += \
4324 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-timesyncd.service
4327 units/systemd-timesyncd.service.in
4329 nodist_pkgsysconf_DATA += \
4330 src/timesync/timesyncd.conf
4333 src/timesync/timesyncd.conf.in
4336 src/timesync/timesyncd.conf
4338 dist_ntpunits_DATA = \
4339 src/timesync/90-systemd.list
4343 # ------------------------------------------------------------------------------
4345 libnss_myhostname_la_SOURCES = \
4346 src/nss-myhostname/nss-myhostname.c \
4347 src/nss-myhostname/ifconf.h \
4348 src/nss-myhostname/netlink.c
4350 libnss_myhostname_la_LDFLAGS = \
4358 libnss_myhostname_la_LIBADD = \
4359 libsystemd-shared.la \
4360 libsystemd-internal.la
4362 lib_LTLIBRARIES += \
4363 libnss_myhostname.la
4366 # ------------------------------------------------------------------------------
4368 systemd_machined_SOURCES = \
4369 src/machine/machined.c \
4370 src/machine/machined.h
4372 systemd_machined_LDADD = \
4373 libsystemd-machine-core.la
4375 rootlibexec_PROGRAMS += \
4378 libsystemd_machine_core_la_SOURCES = \
4379 src/machine/machined-dbus.c \
4380 src/machine/machine.c \
4381 src/machine/machine.h \
4382 src/machine/machine-dbus.c
4384 libsystemd_machine_core_la_LIBADD = \
4385 libsystemd-label.la \
4386 libsystemd-internal.la \
4387 libudev-internal.la \
4388 libsystemd-shared.la
4390 noinst_LTLIBRARIES += \
4391 libsystemd-machine-core.la
4393 machinectl_SOURCES = \
4394 src/machine/machinectl.c
4396 machinectl_LDADD = \
4397 libsystemd-internal.la \
4398 libsystemd-shared.la
4400 rootbin_PROGRAMS += \
4403 dist_bashcompletion_DATA += \
4404 shell-completion/bash/machinectl
4406 test_machine_tables_SOURCES = \
4407 src/machine/test-machine-tables.c
4409 test_machine_tables_LDADD = \
4410 libsystemd-machine-core.la
4415 nodist_systemunit_DATA += \
4416 units/systemd-machined.service
4418 dist_systemunit_DATA += \
4419 units/machine.slice \
4420 units/org.freedesktop.machine1.busname
4422 dist_dbussystemservice_DATA += \
4423 src/machine/org.freedesktop.machine1.service
4425 dist_dbuspolicy_DATA += \
4426 src/machine/org.freedesktop.machine1.conf
4428 dist_zshcompletion_DATA += \
4429 shell-completion/zsh/_machinectl \
4430 shell-completion/zsh/_sd_machines
4432 SYSTEM_UNIT_ALIASES += \
4433 systemd-machined.service dbus-org.freedesktop.machine1.service
4435 BUSNAMES_TARGET_WANTS += \
4436 org.freedesktop.machine1.busname
4439 units/systemd-machined.service.in
4443 # ------------------------------------------------------------------------------
4445 systemd_resolved_SOURCES = \
4446 src/resolve/resolved.h \
4447 src/resolve/resolved.c \
4448 src/resolve/resolved-manager.c
4450 systemd_resolved_CFLAGS = \
4454 nodist_systemd_resolved_SOURCES = \
4455 src/resolve/resolved-gperf.c
4458 src/resolve/resolved-gperf.gperf
4461 src/resolve/resolved-gperf.c
4463 systemd_resolved_LDADD = \
4464 libsystemd-capability.la \
4465 libsystemd-network.la \
4466 libsystemd-label.la \
4467 libsystemd-internal.la \
4468 libsystemd-shared.la
4470 rootlibexec_PROGRAMS += \
4473 nodist_systemunit_DATA += \
4474 units/systemd-resolved.service
4477 units/systemd-resolved.service.in
4479 GENERAL_ALIASES += \
4480 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
4482 nodist_pkgsysconf_DATA += \
4483 src/resolve/resolved.conf
4486 src/resolve/resolved.conf.in
4489 src/resolve/resolved.conf
4493 # ------------------------------------------------------------------------------
4495 rootlibexec_PROGRAMS += \
4498 systemd_networkd_SOURCES = \
4499 src/network/networkd.c
4501 systemd_networkd_LDADD = \
4502 libsystemd-networkd-core.la \
4503 libsystemd-capability.la
4505 noinst_LTLIBRARIES += \
4506 libsystemd-networkd-core.la
4508 libsystemd_networkd_core_la_CFLAGS = \
4511 libsystemd_networkd_core_la_SOURCES = \
4512 src/libsystemd-network/network-internal.h \
4513 src/network/networkd.h \
4514 src/network/networkd-link.c \
4515 src/network/networkd-netdev.c \
4516 src/network/networkd-tunnel.c \
4517 src/network/networkd-veth.c \
4518 src/network/networkd-vxlan.c \
4519 src/network/networkd-network.c \
4520 src/network/networkd-address.c \
4521 src/network/networkd-route.c \
4522 src/network/networkd-manager.c \
4523 src/network/networkd-address-pool.c
4525 nodist_libsystemd_networkd_core_la_SOURCES = \
4526 src/network/networkd-network-gperf.c \
4527 src/network/networkd-netdev-gperf.c
4529 libsystemd_networkd_core_la_LIBADD = \
4530 libudev-internal.la \
4531 libsystemd-internal.la \
4532 libsystemd-network.la \
4533 libsystemd-label.la \
4534 libsystemd-shared.la
4536 rootlibexec_PROGRAMS += \
4537 systemd-networkd-wait-online
4539 systemd_networkd_wait_online_CFLAGS = \
4542 systemd_networkd_wait_online_SOURCES = \
4543 src/libsystemd-network/network-internal.h \
4544 src/network/networkd-wait-online.c \
4545 src/network/networkd-wait-online.h
4547 systemd_networkd_wait_online_LDADD = \
4548 libsystemd-network.la \
4549 libudev-internal.la \
4550 libsystemd-internal.la \
4551 libsystemd-shared.la
4553 test_network_SOURCES = \
4554 src/network/test-network.c
4556 test_network_CFLAGS = \
4559 test_network_LDADD = \
4560 libsystemd-networkd-core.la
4565 nodist_systemunit_DATA += \
4566 units/systemd-networkd.service \
4567 units/systemd-networkd-wait-online.service
4569 GENERAL_ALIASES += \
4570 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
4571 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
4574 src/network/networkd-network-gperf.gperf \
4575 src/network/networkd-netdev-gperf.gperf \
4576 units/systemd-networkd.service.in \
4577 units/systemd-networkd-wait-online.service.in
4580 src/network/networkd-network-gperf.c \
4581 src/network/networkd-netdev-gperf.c
4584 # ------------------------------------------------------------------------------
4586 systemd_logind_SOURCES = \
4587 src/login/logind.c \
4590 nodist_systemd_logind_SOURCES = \
4591 src/login/logind-gperf.c
4593 systemd_logind_LDADD = \
4594 libsystemd-logind-core.la
4596 libsystemd_logind_core_la_SOURCES = \
4597 src/login/logind-core.c \
4598 src/login/logind-device.c \
4599 src/login/logind-device.h \
4600 src/login/logind-button.c \
4601 src/login/logind-button.h \
4602 src/login/logind-action.c \
4603 src/login/logind-action.h \
4604 src/login/logind-seat.c \
4605 src/login/logind-seat.h \
4606 src/login/logind-session.c \
4607 src/login/logind-session.h \
4608 src/login/logind-session-device.c \
4609 src/login/logind-session-device.h \
4610 src/login/logind-user.c \
4611 src/login/logind-user.h \
4612 src/login/logind-inhibit.c \
4613 src/login/logind-inhibit.h \
4614 src/login/logind-dbus.c \
4615 src/login/logind-session-dbus.c \
4616 src/login/logind-seat-dbus.c \
4617 src/login/logind-user-dbus.c \
4618 src/login/logind-acl.h
4620 libsystemd_logind_core_la_LIBADD = \
4621 libsystemd-label.la \
4622 libsystemd-capability.la \
4623 libsystemd-internal.la \
4624 libudev-internal.la \
4625 libsystemd-shared.la
4628 libsystemd_logind_core_la_SOURCES += \
4629 src/login/logind-acl.c
4631 libsystemd_logind_core_la_LIBADD += \
4635 noinst_LTLIBRARIES += \
4636 libsystemd-logind-core.la
4638 systemd_user_sessions_SOURCES = \
4639 src/login/user-sessions.c
4641 systemd_user_sessions_LDADD = \
4642 libsystemd-shared.la
4644 rootlibexec_PROGRAMS += \
4646 systemd-user-sessions
4648 loginctl_SOURCES = \
4649 src/login/loginctl.c \
4650 src/login/sysfs-show.c
4653 libsystemd-internal.la \
4654 libudev-internal.la \
4655 libsystemd-shared.la
4657 rootbin_PROGRAMS += \
4660 dist_bashcompletion_DATA += \
4661 shell-completion/bash/loginctl
4663 dist_zshcompletion_DATA += \
4664 shell-completion/zsh/_loginctl \
4665 shell-completion/zsh/_systemd-inhibit
4667 systemd_inhibit_SOURCES = \
4670 systemd_inhibit_LDADD = \
4671 libsystemd-internal.la \
4672 libsystemd-shared.la
4674 rootbin_PROGRAMS += \
4677 test_login_SOURCES = \
4678 src/libsystemd/sd-login/test-login.c
4680 test_login_LDADD = \
4681 libsystemd-internal.la \
4682 libsystemd-shared.la
4684 test_login_shared_SOURCES = \
4685 src/login/test-login-shared.c
4687 test_login_shared_LDADD = \
4688 libsystemd-internal.la \
4689 libsystemd-shared.la
4691 test_inhibit_SOURCES = \
4692 src/login/test-inhibit.c
4694 test_inhibit_LDADD = \
4695 libsystemd-internal.la \
4696 libsystemd-shared.la
4698 test_login_tables_SOURCES = \
4699 src/login/test-login-tables.c
4701 test_login_tables_LDADD = \
4702 libsystemd-logind-core.la
4713 pam_systemd_la_SOURCES = \
4714 src/login/pam_systemd.sym \
4715 src/login/pam_systemd.c
4717 pam_systemd_la_CFLAGS = \
4722 pam_systemd_la_LDFLAGS = \
4728 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
4730 pam_systemd_la_LIBADD = \
4731 libsystemd-capability.la \
4732 libsystemd-internal.la \
4733 libsystemd-shared.la \
4736 pamlib_LTLIBRARIES = \
4739 dist_pamconf_DATA = \
4740 src/login/systemd-user
4743 nodist_systemunit_DATA += \
4744 units/systemd-logind.service \
4745 units/systemd-user-sessions.service
4747 dist_systemunit_DATA += \
4749 units/org.freedesktop.login1.busname
4751 dist_dbussystemservice_DATA += \
4752 src/login/org.freedesktop.login1.service
4754 dist_dbuspolicy_DATA += \
4755 src/login/org.freedesktop.login1.conf
4757 dist_pkgsysconf_DATA += \
4758 src/login/logind.conf
4760 polkitpolicy_files += \
4761 src/login/org.freedesktop.login1.policy
4766 MULTI_USER_TARGET_WANTS += \
4767 systemd-logind.service \
4768 systemd-user-sessions.service
4770 SYSTEM_UNIT_ALIASES += \
4771 systemd-logind.service dbus-org.freedesktop.login1.service
4773 BUSNAMES_TARGET_WANTS += \
4774 org.freedesktop.login1.busname
4776 if ENABLE_MULTI_SEAT_X
4778 systemd_multi_seat_x_SOURCES = \
4779 src/login/multi-seat-x.c
4781 systemd_multi_seat_x_LDADD = \
4782 libsystemd-label.la \
4783 libsystemd-shared.la
4785 rootlibexec_PROGRAMS += \
4786 systemd-multi-seat-x
4790 dist_udevrules_DATA += \
4791 src/login/70-uaccess.rules \
4792 src/login/70-power-switch.rules
4794 nodist_udevrules_DATA += \
4795 src/login/71-seat.rules \
4796 src/login/73-seat-late.rules
4799 src/login/logind-gperf.c \
4800 src/login/71-seat.rules \
4801 src/login/73-seat-late.rules
4804 polkitpolicy_in_files += \
4805 src/login/org.freedesktop.login1.policy.in
4808 src/login/logind-gperf.gperf \
4809 src/login/71-seat.rules.in \
4810 src/login/73-seat-late.rules.in \
4811 units/systemd-logind.service.in \
4812 units/systemd-user-sessions.service.in
4814 # ------------------------------------------------------------------------------
4815 if HAVE_PYTHON_DEVEL
4816 pkgpyexec_LTLIBRARIES = \
4823 _journal_la_SOURCES = \
4824 src/python-systemd/_journal.c
4826 _journal_la_CFLAGS = \
4828 -fvisibility=default \
4829 $(PYTHON_DEVEL_CFLAGS)
4831 _journal_la_LDFLAGS = \
4837 _journal_la_LIBADD = \
4838 $(PYTHON_DEVEL_LIBS) \
4841 id128_la_SOURCES = \
4842 src/python-systemd/id128.c \
4843 src/python-systemd/pyutil.c \
4844 src/python-systemd/pyutil.h
4846 nodist_id128_la_SOURCES = \
4847 src/python-systemd/id128-constants.h
4851 -fvisibility=default \
4852 $(PYTHON_DEVEL_CFLAGS) \
4853 -I$(top_builddir)/src/python-systemd
4855 id128_la_LDFLAGS = \
4862 $(PYTHON_DEVEL_LIBS) \
4863 libsystemd-shared.la \
4866 _daemon_la_SOURCES = \
4867 src/python-systemd/_daemon.c \
4868 src/python-systemd/pyutil.c \
4869 src/python-systemd/pyutil.h
4871 _daemon_la_CFLAGS = \
4873 -fvisibility=default \
4874 $(PYTHON_DEVEL_CFLAGS) \
4875 -I$(top_builddir)/src/python-systemd
4877 _daemon_la_LDFLAGS = \
4883 _daemon_la_LIBADD = \
4884 $(PYTHON_DEVEL_LIBS) \
4885 libsystemd-shared.la \
4888 _reader_la_SOURCES = \
4889 src/python-systemd/_reader.c \
4890 src/python-systemd/pyutil.c \
4891 src/python-systemd/pyutil.h
4893 _reader_la_CFLAGS = \
4895 -fvisibility=default \
4896 $(PYTHON_DEVEL_CFLAGS)
4898 _reader_la_LDFLAGS = \
4904 _reader_la_LIBADD = \
4905 $(PYTHON_DEVEL_LIBS) \
4906 libsystemd-shared.la \
4909 login_la_SOURCES = \
4910 src/python-systemd/login.c \
4911 src/python-systemd/pyutil.c \
4912 src/python-systemd/pyutil.h
4916 -fvisibility=default \
4917 $(PYTHON_DEVEL_CFLAGS)
4919 login_la_LDFLAGS = \
4926 $(PYTHON_DEVEL_LIBS) \
4927 libsystemd-shared.la \
4930 dist_pkgpyexec_PYTHON = \
4931 src/python-systemd/journal.py \
4932 src/python-systemd/daemon.py \
4933 src/python-systemd/__init__.py
4935 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
4936 $(AM_V_at)$(MKDIR_P) $(dir $@)
4937 $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
4940 src/python-systemd/id128-constants.h
4942 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
4944 $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
4945 $(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/
4946 $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
4949 $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
4950 $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
4953 dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
4954 $(MAKE) DESTDIR="$$dir" install && \
4955 $(MAKE) DESTDIR="$$dir" sphinx-html && \
4960 CLEAN_LOCAL_HOOKS += clean-sphinx
4962 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
4965 -rm -rf docs/html/python-systemd/
4967 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
4969 -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
4970 -rm -f _daemon.la id128.la _journal.la login.la _reader.la
4972 # ------------------------------------------------------------------------------
4973 if ENABLE_COMPAT_LIBS
4975 src/compat-libs/linkwarning.h
4977 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
4978 $(AM_V_at)$(MKDIR_P) $(dir $@)
4979 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
4982 libsystemd-journal.c \
4983 libsystemd-login.c \
4984 libsystemd-id128.c \
4987 libsystemd_journal_la_SOURCES = \
4988 libsystemd-journal.c \
4989 src/compat-libs/libsystemd-journal.sym
4991 libsystemd_journal_la_CPPFLAGS = \
4993 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
4995 libsystemd_journal_la_LDFLAGS = \
4997 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
4998 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
5000 libsystemd_journal_la_LIBADD = \
5001 libsystemd-journal-internal.la \
5002 libsystemd-internal.la \
5003 libsystemd-shared.la
5005 libsystemd_login_la_SOURCES = \
5006 libsystemd-login.c \
5007 src/compat-libs/libsystemd-login.sym
5009 libsystemd_login_la_CPPFLAGS = \
5011 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5013 libsystemd_login_la_LDFLAGS = \
5015 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
5016 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
5018 libsystemd_login_la_LIBADD = \
5019 libsystemd-internal.la \
5020 libsystemd-shared.la
5022 libsystemd_id128_la_SOURCES = \
5023 libsystemd-id128.c \
5024 src/compat-libs/libsystemd-id128.sym
5026 libsystemd_id128_la_CPPFLAGS = \
5028 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5030 libsystemd_id128_la_LDFLAGS = \
5032 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
5033 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
5035 libsystemd_id128_la_LIBADD = \
5036 libsystemd-internal.la \
5037 libsystemd-shared.la
5039 libsystemd_daemon_la_SOURCES = \
5040 libsystemd-daemon.c \
5041 src/compat-libs/libsystemd-daemon.sym
5043 libsystemd_daemon_la_CPPFLAGS = \
5045 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5047 libsystemd_daemon_la_LDFLAGS = \
5049 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
5050 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
5052 libsystemd_daemon_la_LIBADD = \
5053 libsystemd-internal.la \
5054 libsystemd-shared.la
5056 lib_LTLIBRARIES += \
5057 libsystemd-journal.la \
5058 libsystemd-login.la \
5059 libsystemd-id128.la \
5060 libsystemd-daemon.la
5062 pkgconfiglib_DATA += \
5063 src/compat-libs/libsystemd-journal.pc \
5064 src/compat-libs/libsystemd-login.pc \
5065 src/compat-libs/libsystemd-id128.pc \
5066 src/compat-libs/libsystemd-daemon.pc
5068 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
5069 compat-lib-install-hook:
5070 libname=libsystemd-login.so && $(move-to-rootlibdir)
5071 libname=libsystemd-journal.so && $(move-to-rootlibdir)
5072 libname=libsystemd-id128.so && $(move-to-rootlibdir)
5073 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
5075 compat-lib-uninstall-hook:
5076 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
5077 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
5078 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
5079 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
5081 INSTALL_EXEC_HOOKS += compat-lib-install-hook
5082 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
5086 src/compat-libs/libsystemd-journal.pc.in \
5087 src/compat-libs/libsystemd-login.pc.in \
5088 src/compat-libs/libsystemd-id128.pc.in \
5089 src/compat-libs/libsystemd-daemon.pc.in
5091 # ------------------------------------------------------------------------------
5093 '|rootlibexecdir=$(rootlibexecdir)|' \
5094 '|rootbindir=$(rootbindir)|' \
5095 '|bindir=$(bindir)|' \
5096 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5097 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5098 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5099 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5100 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
5101 '|pkgdatadir=$(pkgdatadir)|' \
5102 '|systemunitdir=$(systemunitdir)|' \
5103 '|userunitdir=$(userunitdir)|' \
5104 '|systempresetdir=$(systempresetdir)|' \
5105 '|userpresetdir=$(userpresetdir)|' \
5106 '|udevhwdbdir=$(udevhwdbdir)|' \
5107 '|udevrulesdir=$(udevrulesdir)|' \
5108 '|catalogdir=$(catalogdir)|' \
5109 '|tmpfilesdir=$(tmpfilesdir)|' \
5110 '|sysusersdir=$(sysusersdir)|' \
5111 '|sysctldir=$(sysctldir)|' \
5112 '|systemgeneratordir=$(systemgeneratordir)|' \
5113 '|usergeneratordir=$(usergeneratordir)|' \
5114 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
5115 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
5116 '|PACKAGE_URL=$(PACKAGE_URL)|' \
5117 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
5118 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
5119 '|prefix=$(prefix)|' \
5120 '|exec_prefix=$(exec_prefix)|' \
5121 '|libdir=$(libdir)|' \
5122 '|includedir=$(includedir)|' \
5123 '|VERSION=$(VERSION)|' \
5124 '|rootprefix=$(rootprefix)|' \
5125 '|udevlibexecdir=$(udevlibexecdir)|' \
5126 '|SUSHELL=$(SUSHELL)|' \
5127 '|DEBUGTTY=$(DEBUGTTY)|' \
5130 '|MKDIR_P=$(MKDIR_P)|' \
5131 '|QUOTAON=$(QUOTAON)|' \
5132 '|QUOTACHECK=$(QUOTACHECK)|' \
5133 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
5134 '|VARLOGDIR=$(varlogdir)|' \
5135 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
5136 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
5137 '|PYTHON=$(PYTHON)|' \
5138 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
5139 '|NTP_SERVERS=$(NTP_SERVERS)|' \
5140 '|DNS_SERVERS=$(DNS_SERVERS)|' \
5141 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
5142 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
5143 '|TTY_GID=$(TTY_GID)|' \
5144 '|systemsleepdir=$(systemsleepdir)|' \
5145 '|systemshutdowndir=$(systemshutdowndir)|' \
5146 '|binfmtdir=$(binfmtdir)|' \
5147 '|modulesloaddir=$(modulesloaddir)|'
5150 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
5151 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
5160 sysctl.d/%: sysctl.d/%.in
5166 src/core/macros.%: src/core/macros.%.in
5169 src/%.policy.in: src/%.policy.in.in
5180 $(AM_V_GEN)chmod +x $@
5182 src/%.c: src/%.gperf
5183 $(AM_V_at)$(MKDIR_P) $(dir $@)
5184 $(AM_V_GPERF)$(GPERF) < $< > $@
5187 $(AM_V_at)$(MKDIR_P) $(dir $@)
5188 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5191 $(AM_V_at)$(MKDIR_P) $(dir $@)
5192 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
5194 units/user/%: units/%.m4
5195 $(AM_V_at)$(MKDIR_P) $(dir $@)
5196 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
5199 dist_polkitpolicy_DATA = \
5200 $(polkitpolicy_files) \
5201 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
5205 $(polkitpolicy_in_files) \
5206 $(polkitpolicy_in_in_files)
5209 $(nodist_systemunit_DATA) \
5210 $(nodist_userunit_DATA) \
5211 $(pkgconfigdata_DATA) \
5212 $(pkgconfiglib_DATA) \
5213 $(nodist_polkitpolicy_DATA)
5215 # ------------------------------------------------------------------------------
5217 man/custom-entities.ent: configure.ac
5218 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
5219 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
5220 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
5224 man/custom-entities.ent
5229 --stringparam man.output.quietly 1 \
5230 --stringparam funcsynopsis.style ansi \
5231 --stringparam man.authors.section.enabled 0 \
5232 --stringparam man.copyright.section.enabled 0 \
5233 --stringparam systemd.version $(VERSION) \
5234 --path '$(builddir)/man:$(srcdir)/man'
5236 XSLTPROC_PROCESS_MAN = \
5237 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
5239 XSLTPROC_PROCESS_HTML = \
5240 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
5242 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
5243 $(XSLTPROC_PROCESS_MAN)
5245 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
5246 $(XSLTPROC_PROCESS_MAN)
5248 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
5249 $(XSLTPROC_PROCESS_MAN)
5251 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
5252 $(XSLTPROC_PROCESS_MAN)
5254 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
5255 $(XSLTPROC_PROCESS_MAN)
5257 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
5258 $(XSLTPROC_PROCESS_HTML)
5261 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
5267 man/custom-html.xsl \
5270 # ------------------------------------------------------------------------------
5273 docs/sysvinit/README
5278 docs/sysvinit/README: docs/sysvinit/README.in
5281 docs/var-log/README: docs/var-log/README.in
5285 docs/sysvinit/README \
5290 docs/sysvinit/README.in \
5291 docs/var-log/README.in
5293 SOCKETS_TARGET_WANTS += \
5294 systemd-initctl.socket \
5295 systemd-shutdownd.socket
5298 RUNLEVEL1_TARGET_WANTS += \
5299 systemd-update-utmp-runlevel.service
5300 RUNLEVEL2_TARGET_WANTS += \
5301 systemd-update-utmp-runlevel.service
5302 RUNLEVEL3_TARGET_WANTS += \
5303 systemd-update-utmp-runlevel.service
5304 RUNLEVEL4_TARGET_WANTS += \
5305 systemd-update-utmp-runlevel.service
5306 RUNLEVEL5_TARGET_WANTS += \
5307 systemd-update-utmp-runlevel.service
5310 SYSINIT_TARGET_WANTS += \
5311 systemd-update-utmp.service \
5312 systemd-update-done.service \
5315 LOCAL_FS_TARGET_WANTS += \
5316 systemd-remount-fs.service \
5319 MULTI_USER_TARGET_WANTS += \
5321 systemd-ask-password-wall.path
5323 SYSINIT_TARGET_WANTS += \
5324 dev-hugepages.mount \
5326 sys-kernel-config.mount \
5327 sys-kernel-debug.mount \
5328 sys-fs-fuse-connections.mount \
5329 systemd-sysctl.service \
5330 systemd-ask-password-console.path
5333 SYSTEM_UNIT_ALIASES += \
5334 poweroff.target runlevel0.target \
5335 rescue.target runlevel1.target \
5336 multi-user.target runlevel2.target \
5337 multi-user.target runlevel3.target \
5338 multi-user.target runlevel4.target \
5339 graphical.target runlevel5.target \
5340 reboot.target runlevel6.target
5343 SYSTEM_UNIT_ALIASES += \
5344 graphical.target default.target \
5345 reboot.target ctrl-alt-del.target \
5346 getty@.service autovt@.service
5348 USER_UNIT_ALIASES += \
5349 $(systemunitdir)/shutdown.target shutdown.target \
5350 $(systemunitdir)/sockets.target sockets.target \
5351 $(systemunitdir)/busnames.target busnames.target \
5352 $(systemunitdir)/timers.target timers.target \
5353 $(systemunitdir)/paths.target paths.target \
5354 $(systemunitdir)/bluetooth.target bluetooth.target \
5355 $(systemunitdir)/printer.target printer.target \
5356 $(systemunitdir)/sound.target sound.target \
5357 $(systemunitdir)/smartcard.target smartcard.target
5359 GENERAL_ALIASES += \
5360 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
5361 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
5362 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
5363 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
5367 $(systemunitdir)/runlevel1.target.wants \
5368 $(systemunitdir)/runlevel2.target.wants \
5369 $(systemunitdir)/runlevel3.target.wants \
5370 $(systemunitdir)/runlevel4.target.wants \
5371 $(systemunitdir)/runlevel5.target.wants
5375 $(prefix)/lib/modules-load.d \
5376 $(sysconfdir)/modules-load.d \
5377 $(prefix)/lib/systemd/network \
5378 $(sysconfdir)/systemd/network \
5379 $(prefix)/lib/sysctl.d \
5380 $(sysconfdir)/sysctl.d \
5381 $(prefix)/lib/kernel/install.d \
5382 $(sysconfdir)/kernel/install.d \
5383 $(systemshutdowndir) \
5385 $(systemgeneratordir) \
5386 $(usergeneratordir) \
5389 $(pkgsysconfdir)/system \
5390 $(pkgsysconfdir)/system/multi-user.target.wants \
5391 $(pkgsysconfdir)/system/getty.target.wants \
5392 $(pkgsysconfdir)/user \
5393 $(dbussessionservicedir) \
5394 $(sysconfdir)/xdg/systemd
5396 install-exec-hook: $(INSTALL_EXEC_HOOKS)
5398 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
5400 install-data-hook: $(INSTALL_DATA_HOOKS)
5402 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
5404 clean-local: $(CLEAN_LOCAL_HOOKS)
5405 rm -rf $(abs_srcdir)/install-tree
5406 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
5407 $(abs_srcdir)/hwdb/iab.txt
5409 DISTCHECK_CONFIGURE_FLAGS = \
5410 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
5411 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
5412 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
5413 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
5414 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
5415 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
5416 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
5417 --with-rootprefix=$$dc_install_base \
5418 --disable-split-usr \
5420 --enable-compat-libs
5423 DISTCHECK_CONFIGURE_FLAGS += \
5424 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
5425 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
5427 DISTCHECK_CONFIGURE_FLAGS += \
5428 --with-sysvinit-path= \
5429 --with-sysvrcnd-path=
5433 DISTCHECK_CONFIGURE_FLAGS += \
5438 DISTCHECK_CONFIGURE_FLAGS += \
5443 # Require python when making dist
5445 .PHONY: dist-check-python
5448 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
5452 dist-check-compat-libs:
5453 if !ENABLE_COMPAT_LIBS
5454 @echo "*** compat-libs must be enabled in order to make dist"
5458 dist: dist-check-python dist-check-compat-libs
5460 # check "broken" platforms limited toolchains for link breakage before we release
5463 $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck
5467 ( cd $(top_srcdir)/hwdb && \
5468 wget -N http://www.linux-usb.org/usb.ids \
5469 http://pci-ids.ucw.cz/v2.2/pci.ids \
5470 http://standards.ieee.org/develop/regauth/oui/oui.txt \
5471 http://standards.ieee.org/develop/regauth/iab/iab.txt && \
5474 .PHONY: kdbus-update
5476 ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \
5477 wget -N https://d-bus.googlecode.com/git/kdbus.h )
5481 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
5483 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
5485 upload: all check dist
5486 scp systemd-$(VERSION).tar.xz $(www_target)
5489 doc-sync: all destdir-sphinx
5490 gtkdoc-rebase --html-dir=docs/libudev/html --online
5491 rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/
5492 gtkdoc-rebase --html-dir=docs/gudev/html --online
5493 rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/
5494 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
5495 rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
5499 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
5500 scp man/*.html tango:public/systemd-man/
5502 .PHONY: install-tree
5504 rm -rf $(abs_srcdir)/install-tree
5505 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
5506 tree $(abs_srcdir)/install-tree
5508 # Let's run all tests of the test suite, but under valgrind. Let's
5509 # exclude the one perl script we have in there
5510 .PHONY: valgrind-tests
5511 valgrind-tests: $(TESTS)
5512 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
5513 if file $$f | grep -q shell; then \
5514 echo -e "$${x}Skipping non-binary $$f"; else \
5515 echo -e "$${x}Running $$f"; \
5516 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
5521 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
5523 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
5524 $(AM_V_GEN)cat $^ > $@
5526 .PHONY: check-api-docs
5527 check-api-docs: exported man
5528 $(AM_V_GEN)for symbol in `cat exported` ; do \
5529 if test -f $(builddir)/man/$$symbol.html ; then \
5530 echo " Symbol $$symbol() is documented." ; \
5532 echo "‣ Symbol $$symbol() lacks documentation." ; \
5536 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
5537 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
5539 undefined defined: $(ALL_OBJECTS)
5540 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
5541 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
5542 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
5548 .PHONY: check-api-unused
5549 check-api-unused: defined undefined exported
5550 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
5552 .PHONY: check-includes
5553 check-includes: $(top_srcdir)/tools/check-includes.pl
5554 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
5555 | xargs $(top_srcdir)/tools/check-includes.pl
5558 $(top_srcdir)/tools/check-includes.pl
5560 # Stupid test that everything purported to be exported really is
5561 define generate-sym-test
5562 $(AM_V_at)$(MKDIR_P) $(dir $@)
5563 $(AM_V_at)printf '#include <stdio.h>\n' > $@
5564 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
5565 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
5566 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
5567 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
5568 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
5569 $(AM_V_at)printf 'return 0; }\n' >> $@
5572 test-libsystemd-sym.c: \
5573 $(top_builddir)/src/libsystemd/libsystemd.sym \
5574 src/systemd/sd-journal.h \
5575 src/systemd/sd-daemon.h \
5576 src/systemd/sd-login.h \
5577 src/systemd/sd-bus.h \
5578 src/systemd/sd-utf8.h \
5579 src/systemd/sd-resolve.h
5580 $(generate-sym-test)
5582 test-libudev-sym.c: \
5583 src/libudev/libudev.sym \
5585 $(generate-sym-test)
5587 test_libsystemd_sym_SOURCES = \
5588 test-libsystemd-sym.c
5589 test_libsystemd_sym_LDADD = \
5592 test_libudev_sym_SOURCES = \
5594 test_libudev_sym_CFLAGS = \
5596 -Wno-deprecated-declarations
5597 test_libudev_sym_LDADD = \
5601 $(test_libsystemd_sym_SOURCES) \
5602 $(test_libudev_sym_SOURCES)
5605 test-libsystemd-sym \
5610 cppcheck --enable=all -q $(top_srcdir)
5612 # Used to extract compile flags for YCM.
5617 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u