chiark / gitweb /
test-tables: add new entries
[elogind.git] / Makefile.am
1 #  -*- Mode: makefile; indent-tabs-mode: t -*-
2 #
3 #  This file is part of systemd.
4 #
5 #  Copyright 2010-2012 Lennart Poettering
6 #  Copyright 2010-2012 Kay Sievers
7 #  Copyright 2013 Zbigniew JÄ™drzejewski-Szmek
8 #  Copyright 2013 David Strauss
9 #
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.
14 #
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.
19 #
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/>.
22
23 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
24 AM_MAKEFLAGS = --no-print-directory
25 AUTOMAKE_OPTIONS = color-tests parallel-tests
26
27 SUBDIRS = . po
28
29 # remove targets if the command fails
30 .DELETE_ON_ERROR:
31
32 # keep intermediate files
33 .SECONDARY:
34
35 # Keep the test-suite.log
36 .PRECIOUS: $(TEST_SUITE_LOG) Makefile
37
38 LIBUDEV_CURRENT=6
39 LIBUDEV_REVISION=0
40 LIBUDEV_AGE=5
41
42 LIBGUDEV_CURRENT=2
43 LIBGUDEV_REVISION=0
44 LIBGUDEV_AGE=2
45
46 LIBSYSTEMD_CURRENT=3
47 LIBSYSTEMD_REVISION=1
48 LIBSYSTEMD_AGE=3
49
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
55
56 LIBSYSTEMD_DAEMON_CURRENT=0
57 LIBSYSTEMD_DAEMON_REVISION=12
58 LIBSYSTEMD_DAEMON_AGE=0
59
60 LIBSYSTEMD_ID128_CURRENT=0
61 LIBSYSTEMD_ID128_REVISION=28
62 LIBSYSTEMD_ID128_AGE=0
63
64 LIBSYSTEMD_JOURNAL_CURRENT=11
65 LIBSYSTEMD_JOURNAL_REVISION=5
66 LIBSYSTEMD_JOURNAL_AGE=11
67
68 # Dirs of external packages
69 dbuspolicydir=@dbuspolicydir@
70 dbussessionservicedir=@dbussessionservicedir@
71 dbussystemservicedir=@dbussystemservicedir@
72 pamlibdir=@pamlibdir@
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
85
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
110 # And these are the special ones for /
111 rootprefix=@rootprefix@
112 rootbindir=$(rootprefix)/bin
113 rootlibexecdir=$(rootprefix)/lib/systemd
114
115 CLEANFILES = $(BUILT_SOURCES)
116 DISTCLEANFILES =
117 EXTRA_DIST =
118 BUILT_SOURCES =
119 INSTALL_EXEC_HOOKS =
120 UNINSTALL_EXEC_HOOKS =
121 INSTALL_DATA_HOOKS =
122 UNINSTALL_DATA_HOOKS =
123 DISTCLEAN_LOCAL_HOOKS =
124 CLEAN_LOCAL_HOOKS =
125 pkginclude_HEADERS =
126 noinst_LTLIBRARIES =
127 lib_LTLIBRARIES =
128 include_HEADERS =
129 noinst_DATA =
130 pkgconfiglib_DATA =
131 polkitpolicy_in_in_files =
132 polkitpolicy_in_files =
133 polkitpolicy_files =
134 dist_udevrules_DATA =
135 nodist_udevrules_DATA =
136 dist_pkgsysconf_DATA =
137 nodist_pkgsysconf_DATA =
138 dist_pkgdata_DATA =
139 dist_dbuspolicy_DATA =
140 dist_dbussystemservice_DATA =
141 check_PROGRAMS =
142 check_DATA =
143 tests=
144 manual_tests =
145 if ENABLE_TESTS
146 noinst_PROGRAMS = $(manual_tests) $(tests)
147 TESTS = $(tests)
148 else
149 noinst_PROGRAMS =
150 TESTS =
151 endif
152 udevlibexec_PROGRAMS =
153
154 .PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \
155         $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \
156         $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS)
157
158 AM_CPPFLAGS = \
159         -include $(top_builddir)/config.h \
160         -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
161         -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
162         -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
163         -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
164         -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
165         -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
166         -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
167         -DCERTIFICATE_ROOT=\"$(CERTIFICATEROOT)\" \
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         -DLIBDIR=\"$(libdir)\" \
191         -DROOTLIBDIR=\"$(rootlibdir)\" \
192         -I $(top_srcdir)/src \
193         -I $(top_builddir)/src/shared \
194         -I $(top_srcdir)/src/shared \
195         -I $(top_srcdir)/src/network \
196         -I $(top_srcdir)/src/login \
197         -I $(top_srcdir)/src/journal \
198         -I $(top_srcdir)/src/timedate \
199         -I $(top_srcdir)/src/timesync \
200         -I $(top_srcdir)/src/resolve \
201         -I $(top_srcdir)/src/systemd \
202         -I $(top_builddir)/src/core \
203         -I $(top_srcdir)/src/core \
204         -I $(top_srcdir)/src/libudev \
205         -I $(top_srcdir)/src/udev \
206         -I $(top_srcdir)/src/udev/net \
207         -I $(top_builddir)/src/udev \
208         -I $(top_srcdir)/src/libsystemd/sd-bus \
209         -I $(top_srcdir)/src/libsystemd/sd-event \
210         -I $(top_srcdir)/src/libsystemd/sd-rtnl \
211         -I $(top_srcdir)/src/libsystemd-network \
212         $(OUR_CPPFLAGS)
213
214 AM_CFLAGS = $(OUR_CFLAGS)
215 AM_LDFLAGS = $(OUR_LDFLAGS)
216
217 # ------------------------------------------------------------------------------
218 define move-to-rootlibdir
219         if test "$(libdir)" != "$(rootlibdir)"; then \
220                 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
221                 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
222                 rm -f $(DESTDIR)$(libdir)/$$libname && \
223                 $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
224                 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
225         fi
226 endef
227
228 INSTALL_DIRS =
229
230 RUNLEVEL1_TARGET_WANTS =
231 RUNLEVEL2_TARGET_WANTS =
232 RUNLEVEL3_TARGET_WANTS =
233 RUNLEVEL4_TARGET_WANTS =
234 RUNLEVEL5_TARGET_WANTS =
235 SHUTDOWN_TARGET_WANTS =
236 LOCAL_FS_TARGET_WANTS =
237 MULTI_USER_TARGET_WANTS =
238 SYSINIT_TARGET_WANTS =
239 SOCKETS_TARGET_WANTS =
240 BUSNAMES_TARGET_WANTS =
241 TIMERS_TARGET_WANTS =
242 USER_SOCKETS_TARGET_WANTS =
243 USER_BUSNAMES_TARGET_WANTS =
244
245 SYSTEM_UNIT_ALIASES =
246 USER_UNIT_ALIASES =
247 GENERAL_ALIASES =
248
249 install-target-wants-hook:
250         what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && dir=$(systemunitdir) && $(add-wants)
251         what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && dir=$(systemunitdir) && $(add-wants)
252         what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && dir=$(systemunitdir) && $(add-wants)
253         what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && dir=$(systemunitdir) && $(add-wants)
254         what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && dir=$(systemunitdir) && $(add-wants)
255         what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
256         what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
257         what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
258         what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
259         what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
260         what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
261         what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
262         what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
263         what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
264         what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
265
266 define add-wants
267         [ -z "$$what" ] || ( \
268           dir=$(DESTDIR)$$dir/$$wants.wants && \
269           $(MKDIR_P) -m 0755 $$dir && \
270           cd $$dir && \
271           rm -f $$what && \
272           for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
273 endef
274
275 install-directories-hook:
276         $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
277
278 install-aliases-hook:
279         set -- $(SYSTEM_UNIT_ALIASES) && \
280                 dir=$(systemunitdir) && $(install-aliases)
281         set -- $(USER_UNIT_ALIASES) && \
282                 dir=$(userunitdir) && $(install-relative-aliases)
283         set -- $(GENERAL_ALIASES) && \
284                 dir= && $(install-relative-aliases)
285
286 define install-aliases
287         while [ -n "$$1" ]; do \
288                 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
289                 rm -f $(DESTDIR)$$dir/$$2 && \
290                 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
291                 shift 2 || exit $$?; \
292         done
293 endef
294
295 define install-relative-aliases
296         while [ -n "$$1" ]; do \
297                 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
298                 rm -f $(DESTDIR)$$dir/$$2 && \
299                 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
300                 shift 2 || exit $$?; \
301         done
302 endef
303
304 install-touch-usr-hook:
305         touch -c $(DESTDIR)/$(prefix)
306
307 INSTALL_EXEC_HOOKS += \
308         install-target-wants-hook \
309         install-directories-hook \
310         install-aliases-hook \
311         install-touch-usr-hook
312
313 # ------------------------------------------------------------------------------
314 AM_V_M4 = $(AM_V_M4_$(V))
315 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
316 AM_V_M4_0 = @echo "  M4      " $@;
317
318 AM_V_XSLT = $(AM_V_XSLT_$(V))
319 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
320 AM_V_XSLT_0 = @echo "  XSLT    " $@;
321
322 AM_V_GPERF = $(AM_V_GPERF_$(V))
323 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
324 AM_V_GPERF_0 = @echo "  GPERF   " $@;
325
326 AM_V_LN = $(AM_V_LN_$(V))
327 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
328 AM_V_LN_0 = @echo "  LN      " $@;
329
330 AM_V_RM = $(AM_V_RM_$(V))
331 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
332 AM_V_RM_0 = @echo "  RM      " $@;
333
334 # ------------------------------------------------------------------------------
335 rootbin_PROGRAMS = \
336         systemctl \
337         systemd-notify \
338         systemd-ask-password \
339         systemd-tty-ask-password-agent \
340         systemd-machine-id-setup \
341         systemd-escape
342
343 bin_PROGRAMS = \
344         systemd-cgls \
345         systemd-cgtop \
346         systemd-nspawn \
347         systemd-detect-virt \
348         systemd-delta \
349         systemd-analyze \
350         systemd-run \
351         systemd-path
352
353 dist_bin_SCRIPTS = \
354         src/kernel-install/kernel-install
355
356 dist_kernelinstall_SCRIPTS = \
357         src/kernel-install/50-depmod.install \
358         src/kernel-install/90-loaderentry.install
359
360 rootlibexec_PROGRAMS = \
361         systemd \
362         systemd-cgroups-agent \
363         systemd-initctl \
364         systemd-update-utmp \
365         systemd-shutdownd \
366         systemd-shutdown \
367         systemd-remount-fs \
368         systemd-reply-password \
369         systemd-fsck \
370         systemd-ac-power \
371         systemd-sysctl \
372         systemd-sleep \
373         systemd-bus-proxyd \
374         systemd-socket-proxyd \
375         systemd-update-done
376
377 systemgenerator_PROGRAMS = \
378         systemd-getty-generator \
379         systemd-fstab-generator \
380         systemd-system-update-generator \
381         systemd-debug-generator
382
383 dist_bashcompletion_DATA = \
384         shell-completion/bash/busctl \
385         shell-completion/bash/journalctl \
386         shell-completion/bash/systemd-analyze \
387         shell-completion/bash/systemd-cat \
388         shell-completion/bash/systemd-cgls \
389         shell-completion/bash/systemd-cgtop \
390         shell-completion/bash/systemd-delta \
391         shell-completion/bash/systemd-detect-virt \
392         shell-completion/bash/systemd-nspawn \
393         shell-completion/bash/systemd-run \
394         shell-completion/bash/udevadm \
395         shell-completion/bash/kernel-install
396
397 nodist_bashcompletion_DATA = \
398         shell-completion/bash/systemctl
399
400 dist_zshcompletion_DATA = \
401         shell-completion/zsh/_journalctl \
402         shell-completion/zsh/_udevadm \
403         shell-completion/zsh/_kernel-install \
404         shell-completion/zsh/_systemd-nspawn \
405         shell-completion/zsh/_systemd-analyze \
406         shell-completion/zsh/_systemd-run \
407         shell-completion/zsh/_sd_hosts_or_user_at_host \
408         shell-completion/zsh/_systemd-delta \
409         shell-completion/zsh/_systemd
410
411 nodist_zshcompletion_DATA = \
412         shell-completion/zsh/_systemctl
413
414 EXTRA_DIST += \
415         shell-completion/bash/systemctl.in \
416         shell-completion/zsh/_systemctl.in
417
418 CLEANFILES += \
419         $(nodist_bashcompletion_DATA) \
420         $(nodist_zshcompletion_DATA)
421
422 dist_sysctl_DATA = \
423         sysctl.d/50-default.conf
424
425 dist_systemunit_DATA = \
426         units/graphical.target \
427         units/multi-user.target \
428         units/emergency.target \
429         units/sysinit.target \
430         units/basic.target \
431         units/getty.target \
432         units/halt.target \
433         units/kexec.target \
434         units/local-fs.target \
435         units/local-fs-pre.target \
436         units/initrd.target \
437         units/initrd-fs.target \
438         units/initrd-root-fs.target \
439         units/remote-fs.target \
440         units/remote-fs-pre.target \
441         units/network.target \
442         units/network-pre.target \
443         units/network-online.target \
444         units/nss-lookup.target \
445         units/nss-user-lookup.target \
446         units/hibernate.target \
447         units/hybrid-sleep.target \
448         units/poweroff.target \
449         units/reboot.target \
450         units/rescue.target \
451         units/rpcbind.target \
452         units/time-sync.target \
453         units/shutdown.target \
454         units/final.target \
455         units/umount.target \
456         units/sigpwr.target \
457         units/sleep.target \
458         units/sockets.target \
459         units/busnames.target \
460         units/timers.target \
461         units/paths.target \
462         units/suspend.target \
463         units/swap.target \
464         units/slices.target \
465         units/system.slice \
466         units/x-.slice \
467         units/systemd-initctl.socket \
468         units/systemd-shutdownd.socket \
469         units/syslog.socket \
470         units/dev-hugepages.mount \
471         units/dev-mqueue.mount \
472         units/sys-kernel-config.mount \
473         units/sys-kernel-debug.mount \
474         units/sys-fs-fuse-connections.mount \
475         units/tmp.mount \
476         units/printer.target \
477         units/sound.target \
478         units/bluetooth.target \
479         units/smartcard.target \
480         units/systemd-ask-password-wall.path \
481         units/systemd-ask-password-console.path \
482         units/systemd-udevd-control.socket \
483         units/systemd-udevd-kernel.socket \
484         units/system-update.target \
485         units/initrd-switch-root.target \
486         units/ldconfig.service
487
488 nodist_systemunit_DATA = \
489         units/getty@.service \
490         units/serial-getty@.service \
491         units/console-shell.service \
492         units/console-getty.service \
493         units/container-getty@.service \
494         units/systemd-initctl.service \
495         units/systemd-shutdownd.service \
496         units/systemd-remount-fs.service \
497         units/systemd-update-utmp.service \
498         units/systemd-update-utmp-runlevel.service \
499         units/systemd-ask-password-wall.service \
500         units/systemd-ask-password-console.service \
501         units/systemd-sysctl.service \
502         units/emergency.service \
503         units/rescue.service \
504         units/user@.service \
505         units/systemd-hibernate.service \
506         units/systemd-hybrid-sleep.service \
507         units/systemd-suspend.service \
508         units/systemd-halt.service \
509         units/systemd-poweroff.service \
510         units/systemd-reboot.service \
511         units/systemd-kexec.service \
512         units/systemd-fsck@.service \
513         units/systemd-fsck-root.service \
514         units/systemd-udevd.service \
515         units/systemd-udev-trigger.service \
516         units/systemd-udev-settle.service \
517         units/systemd-udev-hwdb-update.service \
518         units/debug-shell.service \
519         units/initrd-parse-etc.service \
520         units/initrd-cleanup.service \
521         units/initrd-udevadm-cleanup-db.service \
522         units/initrd-switch-root.service \
523         units/systemd-nspawn@.service \
524         units/systemd-update-done.service
525
526 dist_userunit_DATA = \
527         units/user/basic.target \
528         units/user/default.target \
529         units/user/exit.target
530
531 nodist_userunit_DATA = \
532         units/user/systemd-exit.service
533
534 dist_systempreset_DATA = \
535         system-preset/90-systemd.preset
536
537 EXTRA_DIST += \
538         units/getty@.service.m4 \
539         units/serial-getty@.service.m4 \
540         units/console-shell.service.m4.in \
541         units/console-getty.service.m4.in \
542         units/container-getty@.service.m4.in \
543         units/rescue.service.m4.in \
544         units/systemd-initctl.service.in \
545         units/systemd-shutdownd.service.in \
546         units/systemd-remount-fs.service.in \
547         units/systemd-update-utmp.service.in \
548         units/systemd-update-utmp-runlevel.service.in \
549         units/systemd-ask-password-wall.service.in \
550         units/systemd-ask-password-console.service.in \
551         units/systemd-sysctl.service.in \
552         units/emergency.service.in \
553         units/systemd-halt.service.in \
554         units/systemd-poweroff.service.in \
555         units/systemd-reboot.service.in \
556         units/systemd-kexec.service.in \
557         units/user/systemd-exit.service.in \
558         units/systemd-fsck@.service.in \
559         units/systemd-fsck-root.service.in \
560         units/user@.service.in \
561         units/debug-shell.service.in \
562         units/systemd-hibernate.service.in \
563         units/systemd-hybrid-sleep.service.in \
564         units/systemd-suspend.service.in \
565         units/quotaon.service.in \
566         units/initrd-parse-etc.service.in \
567         units/initrd-cleanup.service.in \
568         units/initrd-udevadm-cleanup-db.service.in \
569         units/initrd-switch-root.service.in \
570         units/systemd-nspawn@.service.in \
571         units/systemd-update-done.service.in
572
573 CLEANFILES += \
574         units/console-shell.service.m4 \
575         units/console-getty.service.m4 \
576         units/container-getty@.service.m4 \
577         units/rescue.service.m4 \
578         units/user@.service.m4
579
580 if HAVE_SYSV_COMPAT
581 nodist_systemunit_DATA += \
582         units/rc-local.service \
583         units/halt-local.service
584
585 systemgenerator_PROGRAMS += \
586         systemd-sysv-generator \
587         systemd-rc-local-generator
588 endif
589
590 EXTRA_DIST += \
591         units/rc-local.service.in \
592         units/halt-local.service.in
593
594 # automake is broken and can't handle files with a dash in front
595 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
596 units-install-hook:
597         mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
598
599 units-uninstall-hook:
600         rm -f $(DESTDIR)/$(systemunitdir)/-.slice
601
602 INSTALL_DATA_HOOKS += units-install-hook
603 UNINSTALL_DATA_HOOKS += units-uninstall-hook
604
605 dist_doc_DATA = \
606         README \
607         NEWS \
608         LICENSE.LGPL2.1 \
609         LICENSE.GPL2 \
610         LICENSE.MIT \
611         DISTRO_PORTING \
612         src/libsystemd/sd-bus/PORTING-DBUS1 \
613         src/libsystemd/sd-bus/DIFFERENCES \
614         src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
615
616 @INTLTOOL_POLICY_RULE@
617
618 # ------------------------------------------------------------------------------
619
620 MANPAGES =
621 MANPAGES_ALIAS =
622
623 include Makefile-man.am
624
625 .PHONY: man update-man-list
626 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
627
628 XML_FILES = \
629         ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
630 HTML_FILES = \
631         ${XML_FILES:.xml=.html}
632 HTML_ALIAS = \
633         ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
634
635 if ENABLE_MANPAGES
636 man_MANS = \
637         $(MANPAGES) \
638         $(MANPAGES_ALIAS)
639
640 noinst_DATA += \
641         $(HTML_FILES) \
642         $(HTML_ALIAS)
643
644 CLEANFILES += \
645         $(man_MANS) \
646         $(HTML_FILES) \
647         $(HTML_ALIAS)
648
649 docs/html/man:
650         $(AM_V_at)$(MKDIR_P) $(dir $@)
651         $(AM_V_LN)$(LN_S) -f ../../man $@
652
653 noinst_DATA += \
654         docs/html/man
655
656 CLEANFILES += \
657         docs/html/man
658
659 if HAVE_PYTHON
660 man/index.html: man/systemd.index.html
661         $(AM_V_LN)$(LN_S) -f systemd.index.html $@
662
663 noinst_DATA += \
664         man/index.html
665
666 CLEANFILES += \
667         man/index.html
668
669 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
670 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
671 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
672
673 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB)
674         $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
675         $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
676         @echo "Makefile-man.am has been regenerated"
677
678 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
679         $(AM_V_at)$(MKDIR_P) $(dir $@)
680         $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
681
682 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py $(SOURCE_XML_FILES)
683         $(AM_V_at)$(MKDIR_P) $(dir $@)
684         $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
685
686 EXTRA_DIST += \
687         man/systemd.index.xml \
688         man/index.html \
689         man/systemd.directives.xml
690
691 CLEANFILES += \
692         man/systemd.index.xml \
693         man/systemd.directives.xml
694
695 endif
696
697 endif
698
699 EXTRA_DIST += \
700         $(XML_FILES) \
701         $(HTML_FILES) \
702         $(HTML_ALIAS) \
703         $(man_MANS) \
704         tools/make-man-index.py \
705         tools/make-directive-index.py \
706         tools/make-man-rules.py \
707         tools/xml_helper.py
708
709 # ------------------------------------------------------------------------------
710 noinst_LTLIBRARIES += \
711         libsystemd-shared.la
712
713 libsystemd_shared_la_SOURCES = \
714         src/shared/linux/auto_dev-ioctl.h \
715         src/shared/linux/fanotify.h \
716         src/shared/ioprio.h \
717         src/shared/missing.h \
718         src/shared/initreq.h \
719         src/shared/securebits.h \
720         src/shared/special.h \
721         src/shared/list.h \
722         src/shared/macro.h \
723         src/shared/def.h \
724         src/shared/sparse-endian.h \
725         src/shared/refcnt.h \
726         src/shared/udev-util.h \
727         src/shared/bus-errors.h \
728         src/shared/device-nodes.c \
729         src/shared/device-nodes.h \
730         src/shared/util.c \
731         src/shared/util.h \
732         src/shared/virt.c \
733         src/shared/virt.h \
734         src/shared/architecture.c \
735         src/shared/architecture.h \
736         src/shared/efivars.c \
737         src/shared/efivars.h \
738         src/shared/path-util.c \
739         src/shared/path-util.h \
740         src/shared/time-util.c \
741         src/shared/time-util.h \
742         src/shared/locale-util.c \
743         src/shared/locale-util.h \
744         src/shared/hashmap.c \
745         src/shared/hashmap.h \
746         src/shared/siphash24.c \
747         src/shared/siphash24.h \
748         src/shared/set.c \
749         src/shared/set.h \
750         src/shared/fdset.c \
751         src/shared/fdset.h \
752         src/shared/prioq.c \
753         src/shared/prioq.h \
754         src/shared/sleep-config.c \
755         src/shared/sleep-config.h \
756         src/shared/strv.c \
757         src/shared/strv.h \
758         src/shared/env-util.c \
759         src/shared/env-util.h \
760         src/shared/strbuf.c \
761         src/shared/strbuf.h \
762         src/shared/strxcpyx.c \
763         src/shared/strxcpyx.h \
764         src/shared/conf-parser.c \
765         src/shared/conf-parser.h \
766         src/shared/log.c \
767         src/shared/log.h \
768         src/shared/ratelimit.h \
769         src/shared/ratelimit.c \
770         src/shared/exit-status.c \
771         src/shared/exit-status.h \
772         src/shared/utf8.c \
773         src/shared/utf8.h \
774         src/shared/gunicode.c \
775         src/shared/gunicode.h \
776         src/shared/pager.c \
777         src/shared/pager.h \
778         src/shared/socket-util.c \
779         src/shared/socket-util.h \
780         src/shared/in-addr-util.c \
781         src/shared/in-addr-util.h \
782         src/shared/conf-files.c \
783         src/shared/conf-files.h \
784         src/shared/cgroup-util.c \
785         src/shared/cgroup-util.h \
786         src/shared/cgroup-show.c \
787         src/shared/cgroup-show.h \
788         src/shared/unit-name.c \
789         src/shared/unit-name.h \
790         src/shared/utmp-wtmp.c \
791         src/shared/utmp-wtmp.h \
792         src/shared/watchdog.c \
793         src/shared/watchdog.h \
794         src/shared/spawn-ask-password-agent.c \
795         src/shared/spawn-ask-password-agent.h \
796         src/shared/replace-var.c \
797         src/shared/replace-var.h \
798         src/shared/spawn-polkit-agent.c \
799         src/shared/spawn-polkit-agent.h \
800         src/shared/clock-util.c \
801         src/shared/clock-util.h \
802         src/shared/time-dst.c \
803         src/shared/time-dst.h \
804         src/shared/calendarspec.c \
805         src/shared/calendarspec.h \
806         src/shared/fileio.c \
807         src/shared/fileio.h \
808         src/shared/output-mode.h \
809         src/shared/MurmurHash2.c \
810         src/shared/MurmurHash2.h \
811         src/shared/acpi-fpdt.h \
812         src/shared/acpi-fpdt.c \
813         src/shared/boot-timestamps.h \
814         src/shared/boot-timestamps.c \
815         src/shared/mkdir.c \
816         src/shared/mkdir.h \
817         src/shared/smack-util.c \
818         src/shared/smack-util.h \
819         src/shared/apparmor-util.c \
820         src/shared/apparmor-util.h \
821         src/shared/ima-util.c \
822         src/shared/ima-util.h \
823         src/shared/ptyfwd.c \
824         src/shared/ptyfwd.h \
825         src/shared/errno-list.c \
826         src/shared/errno-list.h \
827         src/shared/af-list.c \
828         src/shared/af-list.h \
829         src/shared/audit.c \
830         src/shared/audit.h \
831         src/shared/xml.c \
832         src/shared/xml.h \
833         src/shared/condition-util.c \
834         src/shared/condition-util.h \
835         src/shared/bus-label.c \
836         src/shared/bus-label.h \
837         src/shared/gpt.h \
838         src/shared/clean-ipc.h \
839         src/shared/clean-ipc.c \
840         src/shared/login-shared.c \
841         src/shared/login-shared.h \
842         src/shared/ring.c \
843         src/shared/ring.h \
844         src/shared/async.c \
845         src/shared/async.h \
846         src/shared/eventfd-util.c \
847         src/shared/eventfd-util.h \
848         src/shared/copy.c \
849         src/shared/copy.h \
850         src/shared/base-filesystem.c \
851         src/shared/base-filesystem.h \
852         src/shared/nss-util.h
853
854 nodist_libsystemd_shared_la_SOURCES = \
855         src/shared/errno-from-name.h \
856         src/shared/errno-to-name.h \
857         src/shared/af-from-name.h \
858         src/shared/af-to-name.h
859
860 libsystemd_shared_la_CFLAGS = \
861         $(AM_CFLAGS) \
862         $(SECCOMP_CFLAGS) \
863         -pthread
864
865 # ------------------------------------------------------------------------------
866 noinst_LTLIBRARIES += \
867         libsystemd-units.la
868
869 libsystemd_units_la_SOURCES = \
870         src/shared/install.c \
871         src/shared/install.h \
872         src/shared/install-printf.c \
873         src/shared/install-printf.h \
874         src/shared/path-lookup.c \
875         src/shared/path-lookup.h \
876         src/shared/specifier.c \
877         src/shared/specifier.h
878
879 # ------------------------------------------------------------------------------
880 noinst_LTLIBRARIES += \
881         libsystemd-label.la
882
883 libsystemd_label_la_SOURCES = \
884         src/shared/socket-label.c \
885         src/shared/label.c \
886         src/shared/label.h \
887         src/shared/selinux-util.c \
888         src/shared/selinux-util.h \
889         src/shared/mkdir-label.c \
890         src/shared/ask-password-api.c \
891         src/shared/ask-password-api.h \
892         src/shared/fileio-label.c \
893         src/shared/fileio-label.h \
894         src/shared/dev-setup.c \
895         src/shared/dev-setup.h \
896         src/shared/dropin.c \
897         src/shared/dropin.h \
898         src/shared/generator.h \
899         src/shared/generator.c
900
901 libsystemd_label_la_CFLAGS = \
902         $(AM_CFLAGS) \
903         $(SELINUX_CFLAGS)
904
905 libsystemd_label_la_LIBADD = \
906         $(SELINUX_LIBS)
907
908 # ------------------------------------------------------------------------------
909
910 if HAVE_SECCOMP
911 noinst_LTLIBRARIES += \
912         libsystemd-seccomp.la
913
914 libsystemd_seccomp_la_SOURCES = \
915         src/shared/seccomp-util.h \
916         src/shared/seccomp-util.c
917
918 libsystemd_seccomp_la_CFLAGS = \
919         $(AM_CFLAGS) \
920         $(SECCOMP_CFLAGS)
921
922 libsystemd_seccomp_la_LIBADD = \
923         $(SECCOMP_LIBS)
924 endif
925
926 # ------------------------------------------------------------------------------
927 noinst_LTLIBRARIES += \
928         libsystemd-logs.la
929
930 libsystemd_logs_la_SOURCES = \
931         src/shared/logs-show.c \
932         src/shared/logs-show.h
933
934 # ------------------------------------------------------------------------------
935 noinst_LTLIBRARIES += \
936         libsystemd-capability.la
937
938 libsystemd_capability_la_SOURCES = \
939         src/shared/capability.c \
940         src/shared/capability.h
941
942 libsystemd_capability_la_CFLAGS = \
943         $(AM_CFLAGS) \
944         $(CAP_CFLAGS)
945
946 libsystemd_capability_la_LIBADD = \
947         $(CAP_LIBS)
948
949 # ------------------------------------------------------------------------------
950 if HAVE_ACL
951 noinst_LTLIBRARIES += \
952         libsystemd-acl.la
953
954 libsystemd_acl_la_SOURCES = \
955         src/shared/acl-util.c \
956         src/shared/acl-util.h
957
958 libsystemd_acl_la_CFLAGS = \
959         $(AM_CFLAGS) \
960         $(ACL_CFLAGS)
961
962 libsystemd_acl_la_LIBADD = \
963         $(ACL_LIBS)
964 endif
965
966 # ------------------------------------------------------------------------------
967 noinst_LTLIBRARIES += \
968         libsystemd-core.la
969
970 libsystemd_core_la_SOURCES = \
971         src/core/unit.c \
972         src/core/unit.h \
973         src/core/unit-printf.c \
974         src/core/unit-printf.h \
975         src/core/job.c \
976         src/core/job.h \
977         src/core/manager.c \
978         src/core/manager.h \
979         src/core/transaction.c \
980         src/core/transaction.h \
981         src/core/load-fragment.c \
982         src/core/load-fragment.h \
983         src/core/service.c \
984         src/core/service.h \
985         src/core/socket.c \
986         src/core/socket.h \
987         src/core/busname.c \
988         src/core/busname.h \
989         src/core/target.c \
990         src/core/target.h \
991         src/core/snapshot.c \
992         src/core/snapshot.h \
993         src/core/device.c \
994         src/core/device.h \
995         src/core/mount.c \
996         src/core/mount.h \
997         src/core/automount.c \
998         src/core/automount.h \
999         src/core/swap.c \
1000         src/core/swap.h \
1001         src/core/timer.c \
1002         src/core/timer.h \
1003         src/core/path.c \
1004         src/core/path.h \
1005         src/core/slice.c \
1006         src/core/slice.h \
1007         src/core/scope.c \
1008         src/core/scope.h \
1009         src/core/load-dropin.c \
1010         src/core/load-dropin.h \
1011         src/core/execute.c \
1012         src/core/execute.h \
1013         src/core/kill.c \
1014         src/core/kill.h \
1015         src/core/dbus.c \
1016         src/core/dbus.h \
1017         src/core/dbus-manager.c \
1018         src/core/dbus-manager.h \
1019         src/core/dbus-unit.c \
1020         src/core/dbus-unit.h \
1021         src/core/dbus-job.c \
1022         src/core/dbus-job.h \
1023         src/core/dbus-service.c \
1024         src/core/dbus-service.h \
1025         src/core/dbus-socket.c \
1026         src/core/dbus-socket.h \
1027         src/core/dbus-busname.c \
1028         src/core/dbus-busname.h \
1029         src/core/dbus-target.c \
1030         src/core/dbus-target.h \
1031         src/core/dbus-snapshot.c \
1032         src/core/dbus-snapshot.h \
1033         src/core/dbus-device.c \
1034         src/core/dbus-device.h \
1035         src/core/dbus-mount.c \
1036         src/core/dbus-mount.h \
1037         src/core/dbus-automount.c \
1038         src/core/dbus-automount.h \
1039         src/core/dbus-swap.c \
1040         src/core/dbus-swap.h \
1041         src/core/dbus-timer.c \
1042         src/core/dbus-timer.h \
1043         src/core/dbus-path.c \
1044         src/core/dbus-path.h \
1045         src/core/dbus-slice.c \
1046         src/core/dbus-slice.h \
1047         src/core/dbus-scope.c \
1048         src/core/dbus-scope.h \
1049         src/core/dbus-execute.c \
1050         src/core/dbus-execute.h \
1051         src/core/dbus-kill.c \
1052         src/core/dbus-kill.h \
1053         src/core/dbus-cgroup.c \
1054         src/core/dbus-cgroup.h \
1055         src/core/cgroup.c \
1056         src/core/cgroup.h \
1057         src/core/selinux-access.c \
1058         src/core/selinux-access.h \
1059         src/core/selinux-setup.c \
1060         src/core/selinux-setup.h \
1061         src/core/smack-setup.c \
1062         src/core/smack-setup.h \
1063         src/core/ima-setup.c \
1064         src/core/ima-setup.h \
1065         src/core/locale-setup.h \
1066         src/core/locale-setup.c \
1067         src/core/hostname-setup.c \
1068         src/core/hostname-setup.h \
1069         src/core/machine-id-setup.c \
1070         src/core/machine-id-setup.h \
1071         src/core/mount-setup.c \
1072         src/core/mount-setup.h \
1073         src/core/loopback-setup.h \
1074         src/core/loopback-setup.c \
1075         src/core/condition.c \
1076         src/core/condition.h \
1077         src/core/namespace.c \
1078         src/core/namespace.h \
1079         src/core/build.h \
1080         src/core/sysfs-show.h \
1081         src/core/switch-root.h \
1082         src/core/switch-root.c \
1083         src/core/killall.h \
1084         src/core/killall.c \
1085         src/core/audit-fd.c \
1086         src/core/audit-fd.h \
1087         src/core/show-status.c \
1088         src/core/show-status.h
1089
1090 if HAVE_KMOD
1091 libsystemd_core_la_SOURCES += \
1092         src/core/kmod-setup.c \
1093         src/core/kmod-setup.h
1094 endif
1095
1096 nodist_libsystemd_core_la_SOURCES = \
1097         src/core/load-fragment-gperf.c \
1098         src/core/load-fragment-gperf-nulstr.c
1099
1100 libsystemd_core_la_CFLAGS = \
1101         $(AM_CFLAGS) \
1102         $(PAM_CFLAGS) \
1103         $(AUDIT_CFLAGS) \
1104         $(CAP_CFLAGS) \
1105         $(KMOD_CFLAGS) \
1106         $(APPARMOR_CFLAGS) \
1107         $(SECCOMP_CFLAGS) \
1108         -pthread
1109
1110 libsystemd_core_la_LIBADD = \
1111         libsystemd-capability.la \
1112         libsystemd-units.la \
1113         libsystemd-label.la \
1114         libudev-internal.la \
1115         libsystemd-shared.la \
1116         libsystemd-internal.la \
1117         $(PAM_LIBS) \
1118         $(AUDIT_LIBS) \
1119         $(CAP_LIBS) \
1120         $(KMOD_LIBS) \
1121         $(APPARMOR_LIBS) \
1122         $(SECCOMP_LIBS)
1123
1124 if HAVE_SECCOMP
1125 libsystemd_core_la_LIBADD += \
1126         libsystemd-seccomp.la
1127 endif
1128
1129 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1130         $(AM_V_at)$(MKDIR_P) $(dir $@)
1131         $(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 ";" }' < $< > $@
1132
1133 EXTRA_DIST += \
1134         src/core/load-fragment-gperf.gperf.m4
1135
1136 CLEANFILES += \
1137         src/core/load-fragment-gperf.gperf \
1138         src/core/load-fragment-gperf.c \
1139         src/core/load-fragment-gperf-nulstr.c \
1140         src/shared/errno-list.txt \
1141         src/shared/errno-from-name.gperf \
1142         src/shared/af-list.txt \
1143         src/shared/af-from-name.gperf
1144
1145 BUILT_SOURCES += \
1146         src/shared/errno-from-name.h \
1147         src/shared/errno-to-name.h \
1148         src/shared/af-from-name.h \
1149         src/shared/af-to-name.h
1150
1151 src/shared/errno-list.txt:
1152         $(AM_V_at)$(MKDIR_P) $(dir $@)
1153         $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - < /dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }'  > $@
1154
1155 src/shared/errno-from-name.gperf: src/shared/errno-list.txt
1156         $(AM_V_at)$(MKDIR_P) $(dir $@)
1157         $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct errno_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' < $< > $@
1158
1159 src/shared/errno-from-name.h: src/shared/errno-from-name.gperf
1160         $(AM_V_at)$(MKDIR_P) $(dir $@)
1161         $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_errno -H hash_errno_name -p -C < $< > $@
1162
1163 src/shared/errno-to-name.h: src/shared/errno-list.txt
1164         $(AM_V_at)$(MKDIR_P) $(dir $@)
1165         $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' < $< > $@
1166
1167 src/shared/af-list.txt:
1168         $(AM_V_at)$(MKDIR_P) $(dir $@)
1169         $(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; }'  > $@
1170
1171 src/shared/af-from-name.gperf: src/shared/af-list.txt
1172         $(AM_V_at)$(MKDIR_P) $(dir $@)
1173         $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct af_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' < $< > $@
1174
1175 src/shared/af-from-name.h: src/shared/af-from-name.gperf
1176         $(AM_V_at)$(MKDIR_P) $(dir $@)
1177         $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_af -H hash_af_name -p -C < $< > $@
1178
1179 src/shared/af-to-name.h: src/shared/af-list.txt
1180         $(AM_V_at)$(MKDIR_P) $(dir $@)
1181         $(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 "};"}' < $< > $@
1182
1183 # ------------------------------------------------------------------------------
1184 systemd_SOURCES = \
1185         src/core/main.c
1186
1187 systemd_CFLAGS = \
1188         $(AM_CFLAGS) \
1189         $(SECCOMP_CFLAGS)
1190
1191 systemd_LDADD = \
1192         libsystemd-core.la \
1193         $(RT_LIBS)
1194
1195 dist_pkgsysconf_DATA += \
1196         src/core/system.conf \
1197         src/core/user.conf
1198
1199 dist_dbuspolicy_DATA += \
1200         src/core/org.freedesktop.systemd1.conf
1201
1202 dist_dbussystemservice_DATA += \
1203         src/core/org.freedesktop.systemd1.service
1204
1205 polkitpolicy_in_in_files += \
1206         src/core/org.freedesktop.systemd1.policy.in.in
1207
1208 pkgconfigdata_DATA = \
1209         src/core/systemd.pc
1210
1211 nodist_rpmmacros_DATA = \
1212         src/core/macros.systemd
1213
1214 EXTRA_DIST += \
1215         src/core/systemd.pc.in \
1216         src/core/macros.systemd.in
1217
1218 CLEANFILES += \
1219         src/core/macros.systemd \
1220         src/core/org.freedesktop.systemd1.policy.in
1221
1222 # ------------------------------------------------------------------------------
1223 manual_tests += \
1224         test-engine \
1225         test-ns \
1226         test-loopback \
1227         test-hostname \
1228         test-daemon \
1229         test-cgroup \
1230         test-cgroup-mask \
1231         test-install \
1232         test-watchdog \
1233         test-log \
1234         test-ipcrm
1235
1236 if HAVE_KMOD
1237 manual_tests += \
1238         test-rtnl-manual
1239 endif
1240
1241 tests += \
1242         test-job-type \
1243         test-env-replace \
1244         test-strbuf \
1245         test-strv \
1246         test-path-util \
1247         test-strxcpyx \
1248         test-unit-name \
1249         test-unit-file \
1250         test-utf8 \
1251         test-ellipsize \
1252         test-util \
1253         test-ring \
1254         test-tmpfiles \
1255         test-namespace \
1256         test-date \
1257         test-sleep \
1258         test-replace-var \
1259         test-sched-prio \
1260         test-calendarspec \
1261         test-strip-tab-ansi \
1262         test-cgroup-util \
1263         test-prioq \
1264         test-fileio \
1265         test-time \
1266         test-hashmap \
1267         test-list \
1268         test-tables \
1269         test-device-nodes \
1270         test-xml \
1271         test-architecture \
1272         test-socket-util \
1273         test-fdset \
1274         test-conf-files \
1275         test-capability \
1276         test-async \
1277         test-ratelimit
1278
1279 EXTRA_DIST += \
1280         test/sched_idle_bad.service \
1281         test/sched_idle_ok.service \
1282         test/sched_rr_bad.service \
1283         test/sched_rr_ok.service \
1284         test/sched_rr_change.service \
1285         test/son.service \
1286         test/daughter.service \
1287         test/parent.slice
1288
1289 EXTRA_DIST += \
1290         src/test/test-helper.h
1291
1292 test_device_nodes_SOURCES = \
1293         src/test/test-device-nodes.c
1294
1295 test_device_nodes_LDADD = \
1296         libsystemd-shared.la
1297
1298 test_engine_SOURCES = \
1299         src/test/test-engine.c
1300
1301 test_engine_CFLAGS = \
1302         $(AM_CFLAGS) \
1303         $(SECCOMP_CFLAGS)
1304
1305 test_engine_LDADD = \
1306         libsystemd-core.la \
1307         $(RT_LIBS)
1308
1309 test_job_type_SOURCES = \
1310         src/test/test-job-type.c
1311
1312 test_job_type_CFLAGS = \
1313         $(AM_CFLAGS) \
1314         $(SECCOMP_CFLAGS)
1315
1316 test_job_type_LDADD = \
1317         libsystemd-core.la \
1318         $(RT_LIBS)
1319
1320 test_ns_SOURCES = \
1321         src/test/test-ns.c
1322
1323 test_ns_CFLAGS = \
1324         $(AM_CFLAGS) \
1325         $(SECCOMP_CFLAGS)
1326
1327 test_ns_LDADD = \
1328         libsystemd-core.la
1329
1330 test_loopback_SOURCES = \
1331         src/test/test-loopback.c
1332
1333 test_loopback_LDADD = \
1334         libsystemd-core.la
1335
1336 test_hostname_SOURCES = \
1337         src/test/test-hostname.c
1338
1339 test_hostname_LDADD = \
1340         libsystemd-core.la
1341
1342 if ENABLE_EFI
1343 manual_tests += \
1344         test-boot-timestamp
1345
1346 test_boot_timestamp_SOURCES = \
1347         src/test/test-boot-timestamps.c
1348
1349 test_boot_timestamp_LDADD = \
1350         libsystemd-shared.la
1351 endif
1352
1353 test_unit_name_SOURCES = \
1354         src/test/test-unit-name.c
1355
1356 test_unit_name_CFLAGS = \
1357         $(AM_CFLAGS) \
1358         $(SECCOMP_CFLAGS)
1359
1360 test_unit_name_LDADD = \
1361         libsystemd-core.la \
1362         $(RT_LIBS)
1363
1364 test_unit_file_SOURCES = \
1365         src/test/test-unit-file.c
1366
1367 test_unit_file_CFLAGS = \
1368         $(AM_CFLAGS) \
1369         $(SECCOMP_CFLAGS)
1370
1371 test_unit_file_LDADD = \
1372         libsystemd-core.la \
1373         $(RT_LIBS)
1374
1375 test_utf8_SOURCES = \
1376         src/test/test-utf8.c
1377
1378 test_utf8_LDADD = \
1379         libsystemd-shared.la
1380
1381 test_capability_SOURCES = \
1382         src/test/test-capability.c
1383
1384 test_capability_LDADD = \
1385         libsystemd-shared.la \
1386         libsystemd-capability.la
1387
1388 test_async_SOURCES = \
1389         src/test/test-async.c
1390
1391 test_async_LDADD = \
1392         libsystemd-shared.la
1393
1394 test_fdset_SOURCES = \
1395         src/test/test-fdset.c
1396
1397 test_fdset_LDADD = \
1398         libsystemd-core.la
1399
1400 test_ratelimit_SOURCES = \
1401         src/test/test-ratelimit.c
1402
1403 test_ratelimit_LDADD = \
1404         libsystemd-shared.la
1405
1406 test_util_SOURCES = \
1407         src/test/test-util.c
1408
1409 test_util_LDADD = \
1410         libsystemd-core.la
1411
1412 test_socket_util_SOURCES = \
1413         src/test/test-socket-util.c
1414
1415 test_socket_util_LDADD = \
1416         libsystemd-core.la
1417
1418 test_ring_SOURCES = \
1419         src/test/test-ring.c
1420
1421 test_ring_LDADD = \
1422         libsystemd-core.la
1423
1424 test_tmpfiles_SOURCES = \
1425         src/test/test-tmpfiles.c
1426
1427 test_tmpfiles_LDADD = \
1428         libsystemd-shared.la
1429
1430 test_namespace_SOURCES = \
1431         src/test/test-namespace.c
1432
1433 test_namespace_LDADD = \
1434         libsystemd-core.la
1435
1436 test_hashmap_SOURCES = \
1437         src/test/test-hashmap.c
1438
1439 test_hashmap_LDADD = \
1440         libsystemd-core.la
1441
1442 test_xml_SOURCES = \
1443         src/test/test-xml.c
1444
1445 test_xml_LDADD = \
1446         libsystemd-shared.la
1447
1448 test_list_SOURCES = \
1449         src/test/test-list.c
1450
1451 test_list_LDADD = \
1452         libsystemd-core.la
1453
1454 test_tables_SOURCES = \
1455         src/test/test-tables.c \
1456         src/shared/test-tables.h \
1457         src/bus-proxyd/bus-policy.c \
1458         src/bus-proxyd/bus-policy.h \
1459         src/journal/journald-server.c \
1460         src/journal/journald-server.h
1461
1462 test_tables_CFLAGS = \
1463         $(AM_CFLAGS) \
1464         $(SECCOMP_CFLAGS) \
1465         -I$(srcdir)/src/bus-proxyd
1466
1467 test_tables_LDADD = \
1468         libsystemd-logs.la \
1469         libsystemd-journal-internal.la \
1470         libsystemd-core.la \
1471         libudev-core.la \
1472         $(RT_LIBS)
1473
1474 test_prioq_SOURCES = \
1475         src/test/test-prioq.c
1476
1477 test_prioq_LDADD = \
1478         libsystemd-core.la
1479
1480 test_fileio_SOURCES = \
1481         src/test/test-fileio.c
1482
1483 test_fileio_LDADD = \
1484         libsystemd-core.la
1485
1486 test_time_SOURCES = \
1487         src/test/test-time.c
1488
1489 test_time_LDADD = \
1490         libsystemd-core.la
1491
1492 test_architecture_SOURCES = \
1493         src/test/test-architecture.c
1494
1495 test_architecture_LDADD = \
1496         libsystemd-shared.la
1497
1498 test_log_SOURCES = \
1499         src/test/test-log.c
1500
1501 test_log_LDADD = \
1502         libsystemd-core.la
1503
1504 test_ipcrm_SOURCES = \
1505         src/test/test-ipcrm.c
1506
1507 test_ipcrm_LDADD = \
1508         libsystemd-shared.la \
1509         -lrt
1510
1511 test_rtnl_manual_SOURCES = \
1512         src/test/test-rtnl-manual.c
1513
1514 test_rtnl_manual_CFLAGS = \
1515         $(AM_CFLAGS) \
1516         $(KMOD_CFLAGS)
1517
1518 test_rtnl_manual_LDADD = \
1519         libsystemd-internal.la \
1520         libsystemd-shared.la \
1521         $(KMOD_LIBS)
1522
1523 test_ellipsize_SOURCES = \
1524         src/test/test-ellipsize.c
1525
1526 test_ellipsize_LDADD = \
1527         libsystemd-core.la
1528
1529 test_date_SOURCES = \
1530         src/test/test-date.c
1531
1532 test_date_LDADD = \
1533         libsystemd-core.la
1534
1535 test_sleep_SOURCES = \
1536         src/test/test-sleep.c
1537
1538 test_sleep_LDADD = \
1539         libsystemd-core.la
1540
1541 test_replace_var_SOURCES = \
1542         src/test/test-replace-var.c
1543
1544 test_replace_var_LDADD = \
1545         libsystemd-shared.la
1546
1547 test_calendarspec_SOURCES = \
1548         src/test/test-calendarspec.c
1549
1550 test_calendarspec_LDADD = \
1551         libsystemd-shared.la
1552
1553 test_strip_tab_ansi_SOURCES = \
1554         src/test/test-strip-tab-ansi.c
1555
1556 test_strip_tab_ansi_LDADD = \
1557         libsystemd-shared.la
1558
1559 test_daemon_SOURCES = \
1560         src/test/test-daemon.c
1561
1562 test_daemon_LDADD = \
1563         libsystemd-internal.la \
1564         libsystemd-shared.la
1565
1566 test_cgroup_SOURCES = \
1567         src/test/test-cgroup.c
1568
1569 test_cgroup_LDADD = \
1570         libsystemd-label.la \
1571         libsystemd-shared.la \
1572         libsystemd-internal.la
1573
1574 test_cgroup_mask_SOURCES = \
1575         src/test/test-cgroup-mask.c
1576
1577 test_cgroup_mask_CPPFLAGS = \
1578         $(AM_CPPFLAGS) \
1579         -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1580
1581 test_cgroup_mask_CFLAGS = \
1582         $(AM_CFLAGS) \
1583         $(SECCOMP_CFLAGS)
1584
1585 test_cgroup_mask_LDADD = \
1586         libsystemd-core.la \
1587         $(RT_LIBS)
1588
1589 test_cgroup_util_SOURCES = \
1590         src/test/test-cgroup-util.c
1591
1592 test_cgroup_util_LDADD = \
1593         libsystemd-label.la \
1594         libsystemd-internal.la \
1595         libsystemd-shared.la
1596
1597 test_env_replace_SOURCES = \
1598         src/test/test-env-replace.c
1599
1600 test_env_replace_LDADD = \
1601         libsystemd-shared.la
1602
1603 test_strbuf_SOURCES = \
1604         src/test/test-strbuf.c
1605
1606 test_strbuf_LDADD = \
1607         libsystemd-shared.la
1608
1609 test_strv_SOURCES = \
1610         src/test/test-strv.c
1611
1612 test_strv_LDADD = \
1613         libsystemd-units.la \
1614         libsystemd-internal.la \
1615         libsystemd-shared.la
1616
1617 test_path_util_SOURCES = \
1618         src/test/test-path-util.c
1619
1620 test_path_util_LDADD = \
1621         libsystemd-shared.la
1622
1623 test_strxcpyx_SOURCES = \
1624         src/test/test-strxcpyx.c
1625
1626 test_strxcpyx_LDADD = \
1627         libsystemd-shared.la
1628
1629 test_install_SOURCES = \
1630         src/test/test-install.c
1631
1632 test_install_LDADD = \
1633         libsystemd-units.la \
1634         libsystemd-label.la \
1635         libsystemd-shared.la \
1636         libsystemd-internal.la
1637
1638 test_watchdog_SOURCES = \
1639         src/test/test-watchdog.c
1640
1641 test_watchdog_LDADD = \
1642         libsystemd-shared.la
1643
1644 test_sched_prio_SOURCES = \
1645         src/test/test-sched-prio.c
1646
1647 test_sched_prio_CPPFLAGS = \
1648         $(AM_CPPFLAGS) \
1649         -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1650
1651 test_sched_prio_CFLAGS = \
1652         $(AM_CFLAGS) \
1653         $(SECCOMP_CFLAGS)
1654
1655 test_sched_prio_LDADD = \
1656         libsystemd-core.la \
1657         $(RT_LIBS)
1658
1659 test_conf_files_SOURCES = \
1660         src/test/test-conf-files.c
1661
1662 test_conf_files_LDADD = \
1663         libsystemd-shared.la
1664
1665 # ------------------------------------------------------------------------------
1666 ## .PHONY so it always rebuilds it
1667 .PHONY: coverage lcov-run lcov-report coverage-sync
1668
1669 # run lcov from scratch, always
1670 coverage: all
1671         $(MAKE) lcov-run
1672         $(MAKE) lcov-report
1673
1674 coverage_dir = coverage
1675 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1676
1677 if ENABLE_COVERAGE
1678 # reset run coverage tests
1679 lcov-run:
1680         @rm -rf $(coverage_dir)
1681         lcov $(coverage_opts) --zerocounters
1682         -$(MAKE) check
1683
1684 # generate report based on current coverage data
1685 lcov-report:
1686         $(MKDIR_P) $(coverage_dir)
1687         lcov $(coverage_opts) --compat-libtool --capture --no-external \
1688                 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1689         genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1690         @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1691
1692 # lcov doesn't work properly with vpath builds, make sure that bad
1693 # output is not uploaded by mistake.
1694 coverage-sync: coverage
1695         test "$(builddir)" = "$(srcdir)"
1696         rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1697
1698 else
1699 lcov-run lcov-report:
1700         echo "Need to reconfigure with --enable-coverage"
1701 endif
1702
1703 # ------------------------------------------------------------------------------
1704 systemd_analyze_SOURCES = \
1705         src/analyze/analyze.c
1706
1707 systemd_analyze_LDADD = \
1708         libsystemd-internal.la \
1709         libsystemd-shared.la
1710
1711 # ------------------------------------------------------------------------------
1712 systemd_initctl_SOURCES = \
1713         src/initctl/initctl.c
1714
1715 systemd_initctl_LDADD = \
1716         libsystemd-internal.la \
1717         libsystemd-shared.la
1718
1719 # ------------------------------------------------------------------------------
1720 systemd_update_utmp_SOURCES = \
1721         src/update-utmp/update-utmp.c
1722
1723 systemd_update_utmp_CFLAGS = \
1724         $(AM_CFLAGS) \
1725         $(AUDIT_CFLAGS)
1726
1727 systemd_update_utmp_LDADD = \
1728         libsystemd-internal.la \
1729         libsystemd-shared.la \
1730         $(AUDIT_LIBS)
1731
1732 # ------------------------------------------------------------------------------
1733 systemd_update_done_SOURCES = \
1734         src/update-done/update-done.c
1735
1736 systemd_update_done_LDADD = \
1737         libsystemd-internal.la \
1738         libsystemd-shared.la
1739
1740 # ------------------------------------------------------------------------------
1741 systemd_shutdownd_SOURCES = \
1742         src/shutdownd/shutdownd.c
1743
1744 systemd_shutdownd_LDADD = \
1745         libsystemd-label.la \
1746         libsystemd-internal.la \
1747         libsystemd-shared.la
1748
1749 dist_doc_DATA += \
1750         src/systemd/sd-shutdown.h
1751
1752 # ------------------------------------------------------------------------------
1753 systemd_shutdown_SOURCES = \
1754         src/core/umount.c \
1755         src/core/umount.h \
1756         src/core/shutdown.c \
1757         src/core/mount-setup.c \
1758         src/core/mount-setup.h \
1759         src/core/killall.h \
1760         src/core/killall.c
1761
1762 systemd_shutdown_LDADD = \
1763         libsystemd-label.la \
1764         libudev-internal.la \
1765         libsystemd-shared.la
1766
1767 # ------------------------------------------------------------------------------
1768 if HAVE_KMOD
1769 systemd_modules_load_SOURCES = \
1770         src/modules-load/modules-load.c
1771
1772 systemd_modules_load_CFLAGS = \
1773         $(AM_CFLAGS) \
1774         $(KMOD_CFLAGS)
1775
1776 systemd_modules_load_LDADD = \
1777         libsystemd-shared.la \
1778         $(KMOD_LIBS)
1779
1780 rootlibexec_PROGRAMS += \
1781         systemd-modules-load
1782
1783 nodist_systemunit_DATA += \
1784         units/systemd-modules-load.service
1785
1786 SYSINIT_TARGET_WANTS += \
1787         systemd-modules-load.service
1788
1789 if ENABLE_TMPFILES
1790 nodist_systemunit_DATA += \
1791         units/kmod-static-nodes.service
1792
1793 SYSINIT_TARGET_WANTS += \
1794         kmod-static-nodes.service
1795 endif
1796 endif
1797
1798 EXTRA_DIST += \
1799         units/systemd-modules-load.service.in \
1800         units/kmod-static-nodes.service.in
1801
1802 # ------------------------------------------------------------------------------
1803 if ENABLE_TMPFILES
1804 systemd_tmpfiles_SOURCES = \
1805         src/tmpfiles/tmpfiles.c
1806
1807 systemd_tmpfiles_LDADD = \
1808         libsystemd-units.la \
1809         libsystemd-label.la \
1810         libsystemd-capability.la \
1811         libsystemd-internal.la \
1812         libsystemd-shared.la
1813
1814 rootbin_PROGRAMS += \
1815         systemd-tmpfiles
1816
1817 dist_systemunit_DATA += \
1818         units/systemd-tmpfiles-clean.timer
1819
1820 nodist_systemunit_DATA += \
1821         units/systemd-tmpfiles-setup-dev.service \
1822         units/systemd-tmpfiles-setup.service \
1823         units/systemd-tmpfiles-clean.service
1824
1825 dist_tmpfiles_DATA = \
1826         tmpfiles.d/systemd.conf \
1827         tmpfiles.d/systemd-nologin.conf \
1828         tmpfiles.d/systemd-remote.conf \
1829         tmpfiles.d/tmp.conf \
1830         tmpfiles.d/x11.conf \
1831         tmpfiles.d/var.conf \
1832         tmpfiles.d/etc.conf
1833
1834 if HAVE_SYSV_COMPAT
1835 dist_tmpfiles_DATA += \
1836         tmpfiles.d/legacy.conf
1837 endif
1838
1839 SYSINIT_TARGET_WANTS += \
1840         systemd-tmpfiles-setup-dev.service \
1841         systemd-tmpfiles-setup.service
1842
1843 dist_zshcompletion_DATA += \
1844         shell-completion/zsh/_systemd-tmpfiles
1845
1846 TIMERS_TARGET_WANTS += \
1847         systemd-tmpfiles-clean.timer
1848
1849 INSTALL_DIRS += \
1850         $(tmpfilesdir) \
1851         $(sysconfdir)/tmpfiles.d
1852 endif
1853
1854 EXTRA_DIST += \
1855         units/systemd-tmpfiles-setup-dev.service.in \
1856         units/systemd-tmpfiles-setup.service.in \
1857         units/systemd-tmpfiles-clean.service.in
1858
1859 # ------------------------------------------------------------------------------
1860 if ENABLE_SYSUSERS
1861 systemd_sysusers_SOURCES = \
1862         src/sysusers/sysusers.c
1863
1864 systemd_sysusers_LDADD = \
1865         libsystemd-units.la \
1866         libsystemd-label.la \
1867         libsystemd-capability.la \
1868         libsystemd-internal.la \
1869         libsystemd-shared.la
1870
1871 rootbin_PROGRAMS += \
1872         systemd-sysusers
1873
1874 nodist_systemunit_DATA += \
1875         units/systemd-sysusers.service
1876
1877 SYSINIT_TARGET_WANTS += \
1878         systemd-sysusers.service
1879
1880 dist_sysusers_DATA = \
1881         sysusers.d/systemd.conf
1882
1883 nodist_sysusers_DATA = \
1884         sysusers.d/basic.conf
1885
1886 EXTRA_DIST += \
1887         units/systemd-sysusers.service.in \
1888         sysusers.d/basic.conf.in
1889
1890 CLEANFILES += \
1891         sysusers.d/basic.conf
1892
1893 INSTALL_DIRS += \
1894         $(sysusersdir)
1895 endif
1896
1897 # ------------------------------------------------------------------------------
1898 if ENABLE_FIRSTBOOT
1899 systemd_firstboot_SOURCES = \
1900         src/firstboot/firstboot.c
1901
1902 systemd_firstboot_LDADD = \
1903         libsystemd-units.la \
1904         libsystemd-label.la \
1905         libsystemd-capability.la \
1906         libsystemd-internal.la \
1907         libsystemd-shared.la \
1908         -lcrypt
1909
1910 rootbin_PROGRAMS += \
1911         systemd-firstboot
1912
1913 nodist_systemunit_DATA += \
1914         units/systemd-firstboot.service
1915
1916 EXTRA_DIST += \
1917         units/systemd-firstboot.service.in
1918
1919 SYSINIT_TARGET_WANTS += \
1920         systemd-firstboot.service
1921
1922 endif
1923
1924 # ------------------------------------------------------------------------------
1925 systemd_machine_id_setup_SOURCES = \
1926         src/machine-id-setup/machine-id-setup-main.c \
1927         src/core/machine-id-setup.c \
1928         src/core/machine-id-setup.h
1929
1930 systemd_machine_id_setup_LDADD = \
1931         libsystemd-label.la \
1932         libsystemd-internal.la \
1933         libsystemd-shared.la
1934
1935 # ------------------------------------------------------------------------------
1936 systemd_sysctl_SOURCES = \
1937         src/sysctl/sysctl.c
1938
1939 systemd_sysctl_LDADD = \
1940         libsystemd-shared.la
1941
1942 # ------------------------------------------------------------------------------
1943 systemd_sleep_SOURCES = \
1944         src/sleep/sleep.c
1945
1946 systemd_sleep_LDADD = \
1947         libsystemd-shared.la
1948
1949 # ------------------------------------------------------------------------------
1950 systemd_fsck_SOURCES = \
1951         src/fsck/fsck.c
1952
1953 systemd_fsck_LDADD = \
1954         libsystemd-internal.la \
1955         libudev-internal.la \
1956         libsystemd-shared.la
1957
1958 # ------------------------------------------------------------------------------
1959 systemd_ac_power_SOURCES = \
1960         src/ac-power/ac-power.c
1961
1962 systemd_ac_power_LDADD = \
1963         libudev-internal.la \
1964         libsystemd-shared.la
1965
1966 # ------------------------------------------------------------------------------
1967 systemd_detect_virt_SOURCES = \
1968         src/detect-virt/detect-virt.c
1969
1970 systemd_detect_virt_LDADD = \
1971         libsystemd-shared.la
1972
1973 INSTALL_EXEC_HOOKS += \
1974         systemd-detect-virt-install-hook
1975
1976 # ------------------------------------------------------------------------------
1977 systemd_delta_SOURCES = \
1978         src/delta/delta.c
1979
1980 systemd_delta_LDADD = \
1981         libsystemd-shared.la
1982
1983 # ------------------------------------------------------------------------------
1984 systemd_getty_generator_SOURCES = \
1985         src/getty-generator/getty-generator.c
1986
1987 systemd_getty_generator_LDADD = \
1988         libsystemd-label.la \
1989         libsystemd-shared.la
1990
1991 # ------------------------------------------------------------------------------
1992 systemd_debug_generator_SOURCES = \
1993         src/debug-generator/debug-generator.c
1994
1995 systemd_debug_generator_LDADD = \
1996         libsystemd-label.la \
1997         libsystemd-shared.la
1998
1999 # ------------------------------------------------------------------------------
2000 systemd_fstab_generator_SOURCES = \
2001         src/fstab-generator/fstab-generator.c \
2002         src/core/mount-setup.c
2003
2004 systemd_fstab_generator_LDADD = \
2005         libsystemd-label.la \
2006         libsystemd-shared.la
2007
2008 # ------------------------------------------------------------------------------
2009 systemd_system_update_generator_SOURCES = \
2010         src/system-update-generator/system-update-generator.c
2011
2012 systemd_system_update_generator_LDADD = \
2013         libsystemd-label.la \
2014         libsystemd-shared.la
2015
2016 if ENABLE_EFI
2017 # ------------------------------------------------------------------------------
2018 systemgenerator_PROGRAMS +=  \
2019         systemd-efi-boot-generator
2020
2021 systemd_efi_boot_generator_SOURCES = \
2022         src/efi-boot-generator/efi-boot-generator.c
2023
2024 systemd_efi_boot_generator_LDADD = \
2025         libsystemd-label.la \
2026         libsystemd-shared.la
2027
2028 # ------------------------------------------------------------------------------
2029 bootctl_SOURCES = \
2030         src/boot/boot.h \
2031         src/boot/boot-loader.h \
2032         src/boot/bootctl.c \
2033         src/boot/boot-loader.c \
2034         src/boot/boot-efi.c
2035
2036 bootctl_LDADD = \
2037         libsystemd-shared.la \
2038         libsystemd-internal.la
2039
2040 bin_PROGRAMS += \
2041         bootctl
2042
2043 dist_bashcompletion_DATA += \
2044         shell-completion/bash/bootctl
2045
2046 dist_zshcompletion_DATA += \
2047         shell-completion/zsh/_bootctl
2048
2049 endif
2050
2051 # ------------------------------------------------------------------------------
2052 if HAVE_BLKID
2053 systemgenerator_PROGRAMS +=  \
2054         systemd-gpt-auto-generator
2055
2056 systemd_gpt_auto_generator_SOURCES = \
2057         src/gpt-auto-generator/gpt-auto-generator.c \
2058         src/shared/blkid-util.h
2059
2060 systemd_gpt_auto_generator_LDADD = \
2061         libsystemd-label.la \
2062         libsystemd-internal.la \
2063         libudev-internal.la \
2064         libsystemd-shared.la \
2065         $(BLKID_LIBS)
2066
2067 systemd_gpt_auto_generator_CFLAGS = \
2068         $(AM_CFLAGS) \
2069         $(BLKID_CFLAGS)
2070 endif
2071
2072 # ------------------------------------------------------------------------------
2073 if ENABLE_KDBUS
2074 systemgenerator_PROGRAMS +=  \
2075         systemd-dbus1-generator
2076
2077 systemd_dbus1_generator_SOURCES = \
2078         src/dbus1-generator/dbus1-generator.c
2079
2080 systemd_dbus1_generator_LDADD = \
2081         libsystemd-label.la \
2082         libsystemd-shared.la \
2083         libsystemd-internal.la
2084
2085 dbus1-generator-install-hook:
2086         $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2087         $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2088         $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2089
2090 dbus1-generator-uninstall-hook:
2091         rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2092
2093 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2094 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2095 endif
2096
2097 # ------------------------------------------------------------------------------
2098 systemd_sysv_generator_SOURCES = \
2099         src/sysv-generator/sysv-generator.c
2100
2101 systemd_sysv_generator_LDADD = \
2102         libsystemd-core.la \
2103         libsystemd-label.la \
2104         libsystemd-shared.la
2105
2106 # ------------------------------------------------------------------------------
2107 systemd_rc_local_generator_SOURCES = \
2108         src/rc-local-generator/rc-local-generator.c
2109
2110 systemd_rc_local_generator_LDADD = \
2111         libsystemd-label.la \
2112         libsystemd-shared.la
2113
2114 # ------------------------------------------------------------------------------
2115 systemd_remount_fs_SOURCES = \
2116         src/remount-fs/remount-fs.c \
2117         src/core/mount-setup.c \
2118         src/core/mount-setup.h
2119
2120 systemd_remount_fs_LDADD = \
2121         libsystemd-label.la \
2122         libsystemd-shared.la
2123
2124 # ------------------------------------------------------------------------------
2125 systemd_cgroups_agent_SOURCES = \
2126         src/cgroups-agent/cgroups-agent.c
2127
2128 systemd_cgroups_agent_LDADD = \
2129         libsystemd-internal.la \
2130         libsystemd-shared.la
2131
2132 # ------------------------------------------------------------------------------
2133 systemd_escape_SOURCES = \
2134         src/escape/escape.c
2135
2136 systemd_escape_LDADD = \
2137         libsystemd-shared.la
2138
2139 # -----------------------------------------------------------------------------
2140 systemctl_SOURCES = \
2141         src/systemctl/systemctl.c
2142
2143 systemctl_LDADD = \
2144         libsystemd-units.la \
2145         libsystemd-label.la \
2146         libsystemd-internal.la \
2147         libsystemd-logs.la \
2148         libsystemd-journal-internal.la \
2149         libsystemd-shared.la
2150
2151 # ------------------------------------------------------------------------------
2152 systemd_notify_SOURCES = \
2153         src/notify/notify.c \
2154         src/readahead/sd-readahead.c
2155
2156 systemd_notify_LDADD = \
2157         libsystemd-internal.la \
2158         libsystemd-shared.la
2159
2160 # ------------------------------------------------------------------------------
2161 systemd_path_SOURCES = \
2162         src/path/path.c
2163
2164 systemd_path_LDADD = \
2165         libsystemd-internal.la \
2166         libsystemd-shared.la
2167
2168 # ------------------------------------------------------------------------------
2169 systemd_ask_password_SOURCES = \
2170         src/ask-password/ask-password.c
2171
2172 systemd_ask_password_LDADD = \
2173         libsystemd-label.la \
2174         libsystemd-shared.la
2175
2176 # ------------------------------------------------------------------------------
2177 systemd_reply_password_SOURCES = \
2178         src/reply-password/reply-password.c
2179
2180 systemd_reply_password_LDADD = \
2181         libsystemd-shared.la
2182
2183 # ------------------------------------------------------------------------------
2184 systemd_cgls_SOURCES = \
2185         src/cgls/cgls.c
2186
2187 systemd_cgls_LDADD = \
2188         libsystemd-internal.la \
2189         libsystemd-shared.la
2190
2191 # ------------------------------------------------------------------------------
2192 systemd_cgtop_SOURCES = \
2193         src/cgtop/cgtop.c
2194
2195 systemd_cgtop_LDADD = \
2196         libsystemd-shared.la
2197
2198 # ------------------------------------------------------------------------------
2199 systemd_nspawn_SOURCES = \
2200         src/nspawn/nspawn.c \
2201         src/core/mount-setup.c \
2202         src/core/mount-setup.h \
2203         src/core/loopback-setup.c \
2204         src/core/loopback-setup.h
2205
2206 systemd_nspawn_CFLAGS = \
2207         $(AM_CFLAGS) \
2208         $(SECCOMP_CFLAGS) \
2209         $(BLKID_CFLAGS)
2210
2211 systemd_nspawn_LDADD = \
2212         libsystemd-label.la \
2213         libsystemd-capability.la \
2214         libsystemd-internal.la \
2215         libudev-internal.la \
2216         libsystemd-shared.la \
2217         $(BLKID_LIBS)
2218
2219 if HAVE_SECCOMP
2220 systemd_nspawn_LDADD += \
2221         libsystemd-seccomp.la \
2222         $(SECCOMP_LIBS)
2223 endif
2224
2225 # ------------------------------------------------------------------------------
2226 systemd_run_SOURCES = \
2227         src/run/run.c
2228
2229 systemd_run_LDADD = \
2230         libsystemd-label.la \
2231         libsystemd-capability.la \
2232         libsystemd-internal.la \
2233         libsystemd-shared.la
2234
2235 # ------------------------------------------------------------------------------
2236 systemd_bus_proxyd_SOURCES = \
2237         src/bus-proxyd/bus-proxyd.c \
2238         src/bus-proxyd/bus-policy.c \
2239         src/bus-proxyd/bus-policy.h
2240
2241 systemd_bus_proxyd_LDADD = \
2242         libsystemd-capability.la \
2243         libsystemd-internal.la \
2244         libsystemd-shared.la
2245
2246 bus-proxyd-install-hook:
2247         $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
2248         $(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2249         $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
2250
2251 bus-proxyd-uninstall-hook:
2252         rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2253
2254 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
2255 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
2256
2257 if ENABLE_KDBUS
2258 nodist_systemunit_DATA += \
2259         units/systemd-bus-proxyd@.service
2260
2261 dist_systemunit_DATA += \
2262         units/systemd-bus-proxyd.socket
2263
2264 dist_userunit_DATA += \
2265         units/user/systemd-bus-proxyd.socket \
2266         units/user/systemd-bus-proxyd@.service
2267 endif
2268
2269 EXTRA_DIST += \
2270         units/systemd-bus-proxyd@.service.in
2271
2272 # ------------------------------------------------------------------------------
2273 systemd_tty_ask_password_agent_SOURCES = \
2274         src/tty-ask-password-agent/tty-ask-password-agent.c
2275
2276 systemd_tty_ask_password_agent_LDADD = \
2277         libsystemd-label.la \
2278         libsystemd-shared.la
2279
2280 # ------------------------------------------------------------------------------
2281 libsystemd_internal_la_SOURCES = \
2282         src/systemd/sd-bus.h \
2283         src/systemd/sd-bus-protocol.h \
2284         src/systemd/sd-bus-vtable.h \
2285         src/systemd/sd-memfd.h \
2286         src/systemd/sd-utf8.h \
2287         src/systemd/sd-event.h \
2288         src/systemd/sd-rtnl.h \
2289         src/systemd/sd-resolve.h \
2290         src/systemd/sd-login.h \
2291         src/systemd/sd-id128.h \
2292         src/systemd/sd-daemon.h \
2293         src/systemd/sd-path.h \
2294         src/libsystemd/sd-bus/sd-bus.c \
2295         src/libsystemd/sd-bus/bus-control.c \
2296         src/libsystemd/sd-bus/bus-control.h \
2297         src/libsystemd/sd-bus/bus-error.c \
2298         src/libsystemd/sd-bus/bus-error.h \
2299         src/libsystemd/sd-bus/bus-internal.c \
2300         src/libsystemd/sd-bus/bus-internal.h \
2301         src/libsystemd/sd-bus/bus-socket.c \
2302         src/libsystemd/sd-bus/bus-socket.h \
2303         src/libsystemd/sd-bus/bus-kernel.c \
2304         src/libsystemd/sd-bus/bus-kernel.h \
2305         src/libsystemd/sd-bus/bus-container.c \
2306         src/libsystemd/sd-bus/bus-container.h \
2307         src/libsystemd/sd-bus/bus-message.c \
2308         src/libsystemd/sd-bus/bus-message.h \
2309         src/libsystemd/sd-bus/bus-creds.c \
2310         src/libsystemd/sd-bus/bus-creds.h \
2311         src/libsystemd/sd-bus/bus-signature.c \
2312         src/libsystemd/sd-bus/bus-signature.h \
2313         src/libsystemd/sd-bus/bus-type.c \
2314         src/libsystemd/sd-bus/bus-type.h \
2315         src/libsystemd/sd-bus/bus-match.c \
2316         src/libsystemd/sd-bus/bus-match.h \
2317         src/libsystemd/sd-bus/bus-bloom.c \
2318         src/libsystemd/sd-bus/bus-bloom.h \
2319         src/libsystemd/sd-bus/bus-introspect.c \
2320         src/libsystemd/sd-bus/bus-introspect.h \
2321         src/libsystemd/sd-bus/bus-objects.c \
2322         src/libsystemd/sd-bus/bus-objects.h \
2323         src/libsystemd/sd-bus/bus-gvariant.c \
2324         src/libsystemd/sd-bus/bus-gvariant.h \
2325         src/libsystemd/sd-bus/bus-convenience.c \
2326         src/libsystemd/sd-bus/bus-track.c \
2327         src/libsystemd/sd-bus/bus-track.h \
2328         src/libsystemd/sd-bus/bus-util.c \
2329         src/libsystemd/sd-bus/bus-util.h \
2330         src/libsystemd/sd-bus/bus-slot.c \
2331         src/libsystemd/sd-bus/bus-slot.h \
2332         src/libsystemd/sd-bus/bus-protocol.h \
2333         src/libsystemd/sd-bus/kdbus.h \
2334         src/libsystemd/sd-bus/sd-memfd.c \
2335         src/libsystemd/sd-utf8/sd-utf8.c \
2336         src/libsystemd/sd-event/sd-event.c \
2337         src/libsystemd/sd-event/event-util.h \
2338         src/libsystemd/sd-rtnl/sd-rtnl.c \
2339         src/libsystemd/sd-rtnl/rtnl-internal.h \
2340         src/libsystemd/sd-rtnl/rtnl-message.c \
2341         src/libsystemd/sd-rtnl/rtnl-types.h \
2342         src/libsystemd/sd-rtnl/rtnl-types.c \
2343         src/libsystemd/sd-rtnl/rtnl-util.h \
2344         src/libsystemd/sd-rtnl/rtnl-util.c \
2345         src/libsystemd/sd-rtnl/local-addresses.h \
2346         src/libsystemd/sd-rtnl/local-addresses.c \
2347         src/libsystemd/sd-id128/sd-id128.c \
2348         src/libsystemd/sd-daemon/sd-daemon.c \
2349         src/libsystemd/sd-login/sd-login.c \
2350         src/libsystemd/sd-path/sd-path.c
2351
2352 nodist_libsystemd_internal_la_SOURCES = \
2353         src/libsystemd/libsystemd.sym \
2354         src/libsystemd/sd-bus/bus-error-mapping.c
2355
2356 libsystemd_internal_la_CFLAGS = \
2357         $(AM_CFLAGS) \
2358         -pthread
2359
2360 libsystemd_internal_la_LIBADD = \
2361         $(RT_LIBS)
2362
2363 libsystemd_resolve_la_SOURCES = \
2364         src/libsystemd/sd-resolve/sd-resolve.c \
2365         src/libsystemd/sd-resolve/resolve-util.h
2366
2367 libsystemd_resolve_la_CFLAGS = \
2368         $(AM_CFLAGS) \
2369         -pthread
2370
2371 libsystemd_resolve_la_LIBADD = \
2372         -lresolv
2373
2374 noinst_LTLIBRARIES += \
2375         libsystemd-internal.la \
2376         libsystemd-resolve.la
2377
2378 libsystemd_dump_la_SOURCES = \
2379         src/libsystemd/sd-bus/bus-dump.c \
2380         src/libsystemd/sd-bus/bus-dump.h
2381
2382 libsystemd_dump_la_CFLAGS = \
2383         $(AM_CFLAGS) \
2384         $(CAP_CFLAGS)
2385
2386 noinst_LTLIBRARIES += \
2387         libsystemd-dump.la
2388
2389 EXTRA_DIST += \
2390         src/libsystemd/libsystemd.sym.m4 \
2391         src/libsystemd/libsystemd.pc.in \
2392         src/libsystemd/sd-bus/bus-error-mapping.gperf \
2393         src/libsystemd/sd-bus/DIFFERENCES \
2394         src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2395
2396 CLEANFILES += \
2397         src/libsystemd/libsystemd.sym \
2398         src/libsystemd/sd-bus/bus-error-mapping.c
2399
2400 BUILT_SOURCES += \
2401         src/libsystemd/libsystemd.sym
2402
2403 libsystemd_la_SOURCES = \
2404         $(libsystemd_internal_la_SOURCES) \
2405         $(libsystemd_resolve_la_SOURCES) \
2406         $(libsystemd_journal_internal_la_SOURCES)
2407
2408 nodist_libsystemd_la_SOURCES = \
2409         $(nodist_libsystemd_internal_la_SOURCES)
2410
2411 libsystemd_la_CFLAGS = \
2412         $(libsystemd_internal_la_CFLAGS) \
2413         $(libsystemd_resolve_la_CFLAGS) \
2414         $(libsystemd_journal_internal_la_CFLAGS)
2415
2416 libsystemd_la_LDFLAGS = \
2417         $(AM_LDFLAGS) \
2418         -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2419         -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2420
2421 libsystemd_la_LIBADD = \
2422         libsystemd-shared.la \
2423         $(libsystemd_internal_la_LIBADD) \
2424         $(libsystemd_journal_internal_la_LIBADD) \
2425         $(libsystemd_resolve_la_LIBADD)
2426
2427 libsystemd-install-hook:
2428         libname=libsystemd.so && $(move-to-rootlibdir)
2429
2430 libsystemd-uninstall-hook:
2431         rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2432
2433 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2434 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2435
2436 pkgconfiglib_DATA += \
2437         src/libsystemd/libsystemd.pc
2438
2439 pkginclude_HEADERS += \
2440         src/systemd/sd-login.h \
2441         src/systemd/sd-id128.h \
2442         src/systemd/sd-daemon.h
2443
2444 if ENABLE_KDBUS
2445 pkginclude_HEADERS += \
2446         src/systemd/sd-bus.h \
2447         src/systemd/sd-bus-protocol.h \
2448         src/systemd/sd-bus-vtable.h \
2449         src/systemd/sd-memfd.h \
2450         src/systemd/sd-utf8.h \
2451         src/systemd/sd-event.h \
2452         src/systemd/sd-rtnl.h \
2453         src/systemd/sd-resolve.h \
2454         src/systemd/sd-path.h
2455 endif
2456
2457 lib_LTLIBRARIES += \
2458         libsystemd.la
2459
2460 tests += \
2461         test-bus-marshal \
2462         test-bus-signature \
2463         test-bus-chat \
2464         test-bus-cleanup \
2465         test-bus-server \
2466         test-bus-match \
2467         test-bus-kernel \
2468         test-bus-kernel-bloom \
2469         test-bus-kernel-benchmark \
2470         test-bus-memfd \
2471         test-bus-zero-copy \
2472         test-bus-introspect \
2473         test-bus-objects \
2474         test-bus-error \
2475         test-bus-creds \
2476         test-bus-gvariant \
2477         test-event \
2478         test-rtnl \
2479         test-resolve
2480
2481 bin_PROGRAMS += \
2482         busctl
2483
2484 test_bus_marshal_SOURCES = \
2485         src/libsystemd/sd-bus/test-bus-marshal.c
2486
2487 test_bus_marshal_LDADD = \
2488         libsystemd-internal.la \
2489         libsystemd-shared.la \
2490         libsystemd-dump.la \
2491         libsystemd-capability.la \
2492         $(GLIB_LIBS) \
2493         $(DBUS_LIBS) \
2494         $(CAP_LIBS)
2495
2496 test_bus_marshal_CFLAGS = \
2497         $(AM_CFLAGS) \
2498         $(GLIB_CFLAGS) \
2499         $(DBUS_CFLAGS) \
2500         $(CAP_CFLAGS)
2501
2502 test_bus_signature_SOURCES = \
2503         src/libsystemd/sd-bus/test-bus-signature.c
2504
2505 test_bus_signature_LDADD = \
2506         libsystemd-shared.la \
2507         libsystemd-internal.la
2508
2509 test_bus_chat_SOURCES = \
2510         src/libsystemd/sd-bus/test-bus-chat.c
2511
2512 test_bus_chat_CFLAGS = \
2513         $(AM_CFLAGS) \
2514         -pthread
2515
2516 test_bus_chat_LDADD = \
2517         libsystemd-internal.la \
2518         libsystemd-shared.la
2519
2520 test_bus_cleanup_SOURCES = \
2521         src/libsystemd/sd-bus/test-bus-cleanup.c
2522
2523 test_bus_cleanup_CFLAGS = \
2524         $(AM_CFLAGS) \
2525         $(SECCOMP_CFLAGS)
2526
2527 test_bus_cleanup_LDADD = \
2528         libsystemd-internal.la \
2529         libsystemd-shared.la
2530
2531 test_bus_server_SOURCES = \
2532         src/libsystemd/sd-bus/test-bus-server.c
2533
2534 test_bus_server_CFLAGS = \
2535         $(AM_CFLAGS) \
2536         -pthread
2537
2538 test_bus_server_LDADD = \
2539         libsystemd-internal.la \
2540         libsystemd-shared.la
2541
2542 test_bus_objects_SOURCES = \
2543         src/libsystemd/sd-bus/test-bus-objects.c
2544
2545 test_bus_objects_CFLAGS = \
2546         $(AM_CFLAGS) \
2547         $(CAP_CFLAGS) \
2548         -pthread
2549
2550 test_bus_objects_LDADD = \
2551         libsystemd-internal.la \
2552         libsystemd-shared.la \
2553         libsystemd-dump.la \
2554         libsystemd-capability.la \
2555         $(CAP_LIBS)
2556
2557 test_bus_error_SOURCES = \
2558         src/libsystemd/sd-bus/test-bus-error.c
2559
2560 test_bus_error_LDADD = \
2561         libsystemd-internal.la \
2562         libsystemd-shared.la
2563
2564 test_bus_gvariant_SOURCES = \
2565         src/libsystemd/sd-bus/test-bus-gvariant.c
2566
2567 test_bus_gvariant_LDADD = \
2568         libsystemd-internal.la \
2569         libsystemd-shared.la \
2570         libsystemd-dump.la \
2571         libsystemd-capability.la \
2572         $(GLIB_LIBS) \
2573         $(CAP_LIBS)
2574
2575 test_bus_gvariant_CFLAGS = \
2576         $(AM_CFLAGS) \
2577         $(GLIB_CFLAGS)
2578         $(CAP_CFLAGS)
2579
2580 test_bus_creds_SOURCES = \
2581         src/libsystemd/sd-bus/test-bus-creds.c
2582
2583 test_bus_creds_LDADD = \
2584         libsystemd-internal.la \
2585         libsystemd-shared.la \
2586         libsystemd-dump.la \
2587         libsystemd-capability.la
2588
2589 test_bus_match_SOURCES = \
2590         src/libsystemd/sd-bus/test-bus-match.c
2591
2592 test_bus_match_LDADD = \
2593         libsystemd-internal.la \
2594         libsystemd-shared.la
2595
2596 test_bus_kernel_SOURCES = \
2597         src/libsystemd/sd-bus/test-bus-kernel.c
2598
2599 test_bus_kernel_LDADD = \
2600         libsystemd-internal.la \
2601         libsystemd-shared.la \
2602         libsystemd-dump.la \
2603         libsystemd-capability.la \
2604         $(CAP_LIBS)
2605
2606 test_bus_kernel_CFLAGS = \
2607         $(AM_CFLAGS) \
2608         $(CAP_CFLAGS)
2609
2610 test_bus_kernel_bloom_SOURCES = \
2611         src/libsystemd/sd-bus/test-bus-kernel-bloom.c
2612
2613 test_bus_kernel_bloom_LDADD = \
2614         libsystemd-internal.la \
2615         libsystemd-shared.la
2616
2617 test_bus_kernel_benchmark_SOURCES = \
2618         src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
2619
2620 test_bus_kernel_benchmark_LDADD = \
2621         libsystemd-internal.la \
2622         libsystemd-shared.la
2623
2624 test_bus_memfd_SOURCES = \
2625         src/libsystemd/sd-bus/test-bus-memfd.c
2626
2627 test_bus_memfd_LDADD = \
2628         libsystemd-internal.la \
2629         libsystemd-shared.la
2630
2631 test_bus_zero_copy_SOURCES = \
2632         src/libsystemd/sd-bus/test-bus-zero-copy.c
2633
2634 test_bus_zero_copy_LDADD = \
2635         libsystemd-internal.la \
2636         libsystemd-shared.la \
2637         libsystemd-dump.la \
2638         libsystemd-capability.la \
2639         $(CAP_LIBS)
2640
2641 test_bus_zero_copy_CFLAGS = \
2642         $(AM_CFLAGS) \
2643         $(CAP_CFLAGS)
2644
2645 test_bus_introspect_SOURCES = \
2646         src/libsystemd/sd-bus/test-bus-introspect.c
2647
2648 test_bus_introspect_LDADD = \
2649         libsystemd-internal.la \
2650         libsystemd-shared.la
2651
2652 test_event_SOURCES = \
2653         src/libsystemd/sd-event/test-event.c
2654
2655 test_event_LDADD = \
2656         libsystemd-internal.la \
2657         libsystemd-shared.la
2658
2659 test_rtnl_SOURCES = \
2660         src/libsystemd/sd-rtnl/test-rtnl.c
2661
2662 test_rtnl_LDADD = \
2663         libsystemd-internal.la \
2664         libsystemd-shared.la
2665
2666 test_resolve_SOURCES = \
2667         src/libsystemd/sd-resolve/test-resolve.c
2668
2669 test_resolve_LDADD = \
2670         libsystemd-resolve.la \
2671         libsystemd-internal.la \
2672         libsystemd-shared.la
2673
2674 test_resolve_CFLAGS = \
2675         $(AM_CFLAGS) \
2676         -pthread
2677
2678 busctl_SOURCES = \
2679         src/libsystemd/sd-bus/busctl.c
2680
2681 busctl_LDADD = \
2682         libsystemd-internal.la \
2683         libsystemd-shared.la \
2684         libsystemd-dump.la \
2685         libsystemd-capability.la \
2686         $(CAP_LIBS)
2687
2688 busctl_CFLAGS = \
2689         $(AM_CFLAGS) \
2690         $(CAP_CFLAGS)
2691
2692 # ------------------------------------------------------------------------------
2693 noinst_LTLIBRARIES += \
2694         libsystemd-network.la
2695
2696 libsystemd_network_la_CFLAGS = \
2697         $(AM_CFLAGS) \
2698         $(KMOD_CFLAGS)
2699
2700 libsystemd_network_la_SOURCES = \
2701         src/systemd/sd-network.h \
2702         src/systemd/sd-dhcp-client.h \
2703         src/systemd/sd-dhcp-server.h \
2704         src/systemd/sd-dhcp-lease.h \
2705         src/systemd/sd-ipv4ll.h \
2706         src/network/sd-network.c \
2707         src/network/network-util.h \
2708         src/libsystemd-network/sd-dhcp-client.c \
2709         src/libsystemd-network/sd-dhcp-server.c \
2710         src/libsystemd-network/dhcp-network.c \
2711         src/libsystemd-network/dhcp-option.c \
2712         src/libsystemd-network/dhcp-packet.c \
2713         src/libsystemd-network/dhcp-internal.h \
2714         src/libsystemd-network/dhcp-server-internal.h \
2715         src/libsystemd-network/dhcp-protocol.h \
2716         src/libsystemd-network/dhcp-lease-internal.h \
2717         src/libsystemd-network/sd-dhcp-lease.c \
2718         src/libsystemd-network/sd-ipv4ll.c \
2719         src/libsystemd-network/ipv4ll-network.c \
2720         src/libsystemd-network/ipv4ll-packet.c \
2721         src/libsystemd-network/ipv4ll-internal.h \
2722         src/libsystemd-network/network-internal.c \
2723         src/libsystemd-network/network-internal.h \
2724         src/systemd/sd-icmp6-nd.h \
2725         src/systemd/sd-dhcp6-client.h \
2726         src/systemd/sd-dhcp6-lease.h \
2727         src/libsystemd-network/sd-icmp6-nd.c \
2728         src/libsystemd-network/sd-dhcp6-client.c \
2729         src/libsystemd-network/dhcp6-internal.h \
2730         src/libsystemd-network/dhcp6-protocol.h \
2731         src/libsystemd-network/dhcp6-network.c \
2732         src/libsystemd-network/dhcp6-option.c \
2733         src/libsystemd-network/dhcp6-lease-internal.h \
2734         src/libsystemd-network/sd-dhcp6-lease.c
2735
2736 libsystemd_network_la_LIBADD = \
2737         libudev-internal.la \
2738         libsystemd-label.la \
2739         libsystemd-internal.la \
2740         libsystemd-shared.la \
2741         $(KMOD_LIBS)
2742
2743 test_dhcp_option_SOURCES = \
2744         src/libsystemd-network/dhcp-protocol.h \
2745         src/libsystemd-network/dhcp-internal.h \
2746         src/libsystemd-network/test-dhcp-option.c
2747
2748 test_dhcp_option_LDADD = \
2749         libsystemd-network.la \
2750         libsystemd-internal.la \
2751         libsystemd-shared.la
2752
2753 test_dhcp_client_SOURCES = \
2754         src/systemd/sd-dhcp-client.h \
2755         src/libsystemd-network/dhcp-protocol.h \
2756         src/libsystemd-network/dhcp-internal.h \
2757         src/libsystemd-network/test-dhcp-client.c
2758
2759 test_dhcp_client_LDADD = \
2760         libsystemd-network.la \
2761         libsystemd-label.la \
2762         libsystemd-internal.la \
2763         libsystemd-shared.la
2764
2765 test_dhcp_server_SOURCES = \
2766         src/libsystemd-network/test-dhcp-server.c
2767
2768 test_dhcp_server_LDADD = \
2769         libsystemd-network.la \
2770         libsystemd-internal.la \
2771         libsystemd-shared.la
2772
2773 test_ipv4ll_SOURCES = \
2774         src/systemd/sd-ipv4ll.h \
2775         src/libsystemd-network/ipv4ll-internal.h \
2776         src/libsystemd-network/test-ipv4ll.c
2777
2778 test_ipv4ll_LDADD = \
2779         libsystemd-network.la \
2780         libsystemd-label.la \
2781         libsystemd-internal.la \
2782         libsystemd-shared.la
2783
2784 test_icmp6_rs_SOURCES = \
2785         src/systemd/sd-dhcp6-client.h \
2786         src/systemd/sd-icmp6-nd.h \
2787         src/libsystemd-network/dhcp6-internal.h \
2788         src/libsystemd-network/test-icmp6-rs.c
2789
2790 test_icmp6_rs_LDADD = \
2791         libsystemd-network.la \
2792         libsystemd-internal.la \
2793         libsystemd-shared.la
2794
2795 test_dhcp6_client_SOURCES = \
2796         src/systemd/sd-dhcp6-client.h \
2797         src/libsystemd-network/dhcp6-internal.h \
2798         src/libsystemd-network/test-dhcp6-client.c
2799
2800 test_dhcp6_client_LDADD = \
2801         libsystemd-network.la \
2802         libsystemd-internal.la \
2803         libsystemd-shared.la
2804
2805 tests += \
2806         test-dhcp-option \
2807         test-dhcp-client \
2808         test-dhcp-server \
2809         test-ipv4ll \
2810         test-icmp6-rs \
2811         test-dhcp6-client
2812
2813 # ------------------------------------------------------------------------------
2814 if ENABLE_GTK_DOC
2815 SUBDIRS += \
2816         docs/libudev
2817
2818 noinst_DATA += \
2819         docs/html/libudev \
2820         docs/html/gudev
2821 endif
2822
2823 include_HEADERS += \
2824         src/libudev/libudev.h
2825
2826 lib_LTLIBRARIES += \
2827         libudev.la
2828
2829 libudev_la_SOURCES =\
2830         src/libudev/libudev.sym \
2831         src/libudev/libudev-private.h \
2832         src/libudev/libudev.c \
2833         src/libudev/libudev-list.c \
2834         src/libudev/libudev-util.c \
2835         src/libudev/libudev-device.c \
2836         src/libudev/libudev-enumerate.c \
2837         src/libudev/libudev-monitor.c \
2838         src/libudev/libudev-queue.c \
2839         src/libudev/libudev-hwdb-def.h \
2840         src/libudev/libudev-hwdb.c
2841
2842 libudev_la_CFLAGS = \
2843         $(AM_CFLAGS) \
2844         -fvisibility=hidden
2845
2846 libudev_la_LDFLAGS = \
2847         $(AM_LDFLAGS) \
2848         -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
2849         -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
2850
2851 libudev_la_LIBADD = \
2852         libsystemd-internal.la \
2853         libsystemd-shared.la
2854
2855 pkgconfiglib_DATA += \
2856         src/libudev/libudev.pc
2857
2858 EXTRA_DIST += \
2859         src/libudev/libudev.pc.in
2860
2861 CLEANFILES += \
2862         src/libudev/libudev.pc \
2863         docs/html/libudev \
2864         docs/html/gudev
2865
2866 docs/html/libudev:
2867         $(AM_V_at)$(MKDIR_P) $(dir $@)
2868         $(AM_V_LN)$(LN_S) -f ../libudev/html $@
2869
2870 docs/html/gudev:
2871         $(AM_V_at)$(MKDIR_P) $(dir $@)
2872         $(AM_V_LN)$(LN_S) -f ../gudev/html $@
2873
2874 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2875 libudev-install-hook:
2876         libname=libudev.so && $(move-to-rootlibdir)
2877
2878 libudev-uninstall-hook:
2879         rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
2880
2881 INSTALL_EXEC_HOOKS += libudev-install-hook
2882 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
2883
2884 # ------------------------------------------------------------------------------
2885 noinst_LTLIBRARIES += \
2886         libudev-internal.la
2887
2888 libudev_internal_la_SOURCES =\
2889         $(libudev_la_SOURCES) \
2890         src/libudev/libudev-device-private.c
2891
2892 libudev_internal_la_CFLAGS = \
2893         $(AM_CFLAGS) \
2894         -fvisibility=default
2895
2896 # ------------------------------------------------------------------------------
2897 INSTALL_DIRS += \
2898         $(sysconfdir)/udev/rules.d \
2899         $(sysconfdir)/udev/hwdb.d
2900
2901 dist_network_DATA = \
2902         network/99-default.link \
2903         network/80-container-host0.network \
2904         network/80-container-ve.network
2905
2906 dist_udevrules_DATA += \
2907         rules/42-usb-hid-pm.rules \
2908         rules/50-udev-default.rules \
2909         rules/60-drm.rules \
2910         rules/60-keyboard.rules \
2911         rules/60-persistent-storage-tape.rules \
2912         rules/60-persistent-serial.rules \
2913         rules/60-persistent-input.rules \
2914         rules/60-persistent-alsa.rules \
2915         rules/60-persistent-storage.rules \
2916         rules/64-btrfs.rules \
2917         rules/75-net-description.rules \
2918         rules/75-tty-description.rules \
2919         rules/78-sound-card.rules \
2920         rules/80-net-setup-link.rules \
2921         rules/95-udev-late.rules
2922
2923 nodist_udevrules_DATA += \
2924         rules/99-systemd.rules
2925
2926 dist_udevhwdb_DATA = \
2927         hwdb/20-pci-vendor-model.hwdb \
2928         hwdb/20-pci-classes.hwdb \
2929         hwdb/20-usb-vendor-model.hwdb \
2930         hwdb/20-usb-classes.hwdb \
2931         hwdb/20-sdio-vendor-model.hwdb \
2932         hwdb/20-sdio-classes.hwdb \
2933         hwdb/20-bluetooth-vendor-product.hwdb \
2934         hwdb/20-acpi-vendor.hwdb \
2935         hwdb/20-OUI.hwdb \
2936         hwdb/20-net-ifname.hwdb \
2937         hwdb/60-keyboard.hwdb
2938
2939 udevconfdir = $(sysconfdir)/udev
2940 dist_udevconf_DATA = \
2941         src/udev/udev.conf
2942
2943 sharepkgconfigdir = $(datadir)/pkgconfig
2944 sharepkgconfig_DATA = \
2945         src/udev/udev.pc
2946
2947 EXTRA_DIST += \
2948         rules/99-systemd.rules.in \
2949         src/udev/udev.pc.in
2950
2951 CLEANFILES += \
2952         rules/99-systemd.rules \
2953         src/udev/udev.pc
2954
2955 EXTRA_DIST += \
2956         units/systemd-udevd.service.in \
2957         units/systemd-udev-trigger.service.in \
2958         units/systemd-udev-settle.service.in \
2959         units/systemd-udev-hwdb-update.service.in
2960
2961 CLEANFILES += \
2962         units/systemd-udevd.service \
2963         units/systemd-udev-trigger.service \
2964         units/systemd-udev-settle.service \
2965         units/systemd-udev-hwdb-update.service
2966
2967 SOCKETS_TARGET_WANTS += \
2968         systemd-udevd-control.socket \
2969         systemd-udevd-kernel.socket
2970
2971 SYSINIT_TARGET_WANTS += \
2972         systemd-udevd.service \
2973         systemd-udev-trigger.service \
2974         systemd-udev-hwdb-update.service
2975
2976 rootbin_PROGRAMS += \
2977         udevadm
2978
2979 rootlibexec_PROGRAMS += \
2980         systemd-udevd
2981
2982 noinst_LTLIBRARIES += \
2983         libudev-core.la
2984
2985 src/udev/keyboard-keys.txt:
2986         $(AM_V_at)$(MKDIR_P) $(dir $@)
2987         $(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/' > $@
2988
2989 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
2990         $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
2991
2992 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
2993         $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
2994
2995 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
2996         $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
2997
2998 libudev_core_la_SOURCES = \
2999         src/udev/udev.h \
3000         src/udev/udev-event.c \
3001         src/udev/udev-watch.c \
3002         src/udev/udev-node.c \
3003         src/udev/udev-rules.c \
3004         src/udev/udev-ctrl.c \
3005         src/udev/udev-builtin.c \
3006         src/udev/udev-builtin-btrfs.c \
3007         src/udev/udev-builtin-hwdb.c \
3008         src/udev/udev-builtin-input_id.c \
3009         src/udev/udev-builtin-keyboard.c \
3010         src/udev/udev-builtin-net_id.c \
3011         src/udev/udev-builtin-net_setup_link.c \
3012         src/udev/udev-builtin-path_id.c \
3013         src/udev/udev-builtin-usb_id.c \
3014         src/udev/net/link-config.h \
3015         src/udev/net/link-config.c \
3016         src/udev/net/ethtool-util.h \
3017         src/udev/net/ethtool-util.c
3018
3019 nodist_libudev_core_la_SOURCES = \
3020         src/udev/keyboard-keys-from-name.h \
3021         src/udev/keyboard-keys-to-name.h \
3022         src/udev/net/link-config-gperf.c
3023
3024 BUILT_SOURCES += \
3025         $(nodist_libudev_core_la_SOURCES)
3026
3027 CLEANFILES += \
3028         src/udev/keyboard-keys-from-name.gperf \
3029         src/udev/keyboard-keys.txt \
3030         src/udev/net/link-config-gperf.c
3031
3032 EXTRA_DIST += \
3033         src/udev/net/link-config-gperf.gperf
3034
3035 libudev_core_la_CFLAGS = \
3036         $(AM_CFLAGS) \
3037         $(BLKID_CFLAGS) \
3038         $(KMOD_CFLAGS)
3039
3040 libudev_core_la_LIBADD = \
3041         libudev-internal.la \
3042         libsystemd-label.la \
3043         libsystemd-internal.la \
3044         libsystemd-network.la \
3045         libsystemd-shared.la \
3046         $(BLKID_LIBS) \
3047         $(KMOD_LIBS)
3048
3049 libudev_core_la_CPPFLAGS = \
3050         $(AM_CPPFLAGS) \
3051         -DFIRMWARE_PATH="$(FIRMWARE_PATH)"
3052
3053 if ENABLE_FIRMWARE
3054 libudev_core_la_SOURCES += \
3055         src/udev/udev-builtin-firmware.c
3056
3057 dist_udevrules_DATA += \
3058         rules/50-firmware.rules
3059 endif
3060
3061 if HAVE_KMOD
3062 libudev_core_la_SOURCES += \
3063         src/udev/udev-builtin-kmod.c
3064
3065 dist_udevrules_DATA += \
3066         rules/80-drivers.rules
3067 endif
3068
3069 if HAVE_BLKID
3070 libudev_core_la_SOURCES += \
3071         src/udev/udev-builtin-blkid.c
3072 endif
3073
3074 if HAVE_ACL
3075 libudev_core_la_SOURCES += \
3076         src/udev/udev-builtin-uaccess.c \
3077         src/login/logind-acl.c \
3078         src/libsystemd/sd-login/sd-login.c \
3079         src/systemd/sd-login.h
3080
3081 libudev_core_la_LIBADD += \
3082         libsystemd-acl.la
3083 endif
3084
3085 systemd_udevd_SOURCES = \
3086         src/udev/udevd.c
3087
3088 systemd_udevd_LDADD = \
3089         libudev-core.la
3090
3091 udevadm_SOURCES = \
3092         src/udev/udevadm.c \
3093         src/udev/udevadm-info.c \
3094         src/udev/udevadm-control.c \
3095         src/udev/udevadm-monitor.c \
3096         src/udev/udevadm-hwdb.c \
3097         src/udev/udevadm-settle.c \
3098         src/udev/udevadm-trigger.c \
3099         src/udev/udevadm-test.c \
3100         src/udev/udevadm-test-builtin.c
3101
3102 udevadm_LDADD = \
3103         libudev-core.la
3104
3105 # Update hwdb on installation. Do not bother if installing
3106 # in DESTDIR, since this is likely for packaging purposes.
3107 hwdb-update-hook:
3108         -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
3109
3110 INSTALL_DATA_HOOKS += \
3111         hwdb-update-hook
3112
3113 hwdb-remove-hook:
3114         -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3115
3116 # ------------------------------------------------------------------------------
3117 TESTS += \
3118         test/udev-test.pl \
3119         test/rules-test.sh
3120
3121 manual_tests += \
3122         test-libudev \
3123         test-udev
3124
3125 test_libudev_SOURCES = \
3126         src/test/test-libudev.c
3127
3128 test_libudev_LDADD = \
3129         libsystemd-label.la \
3130         libudev-internal.la \
3131         libsystemd-shared.la
3132
3133 test_udev_SOURCES = \
3134         src/test/test-udev.c
3135
3136 test_udev_LDADD = \
3137         libudev-core.la \
3138         $(BLKID_LIBS) \
3139         $(KMOD_LIBS) \
3140         $(SELINUX_LIBS)
3141
3142 if HAVE_ACL
3143 test_udev_LDADD += \
3144         libsystemd-acl.la
3145 endif
3146
3147 check_DATA += \
3148         test/sys
3149
3150 # packed sysfs test tree
3151 test/sys:
3152         $(AM_V_at)$(MKDIR_P) $(dir $@)
3153         $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3154
3155 test-sys-distclean:
3156         -rm -rf test/sys
3157 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3158
3159 EXTRA_DIST += \
3160         test/sys.tar.xz \
3161         test/udev-test.pl \
3162         test/rules-test.sh \
3163         test/rule-syntax-check.py
3164
3165 # ------------------------------------------------------------------------------
3166 ata_id_SOURCES = \
3167         src/udev/ata_id/ata_id.c
3168
3169 ata_id_LDADD = \
3170         libudev-internal.la \
3171         libsystemd-shared.la
3172
3173 udevlibexec_PROGRAMS += \
3174         ata_id
3175
3176 # ------------------------------------------------------------------------------
3177 cdrom_id_SOURCES = \
3178         src/udev/cdrom_id/cdrom_id.c
3179
3180 cdrom_id_LDADD = \
3181         libudev-internal.la \
3182         libsystemd-shared.la
3183
3184 udevlibexec_PROGRAMS += \
3185         cdrom_id
3186
3187 dist_udevrules_DATA += \
3188         rules/60-cdrom_id.rules
3189
3190 # ------------------------------------------------------------------------------
3191 collect_SOURCES = \
3192         src/udev/collect/collect.c
3193
3194 collect_LDADD = \
3195         libudev-internal.la \
3196         libsystemd-shared.la
3197
3198 udevlibexec_PROGRAMS += \
3199         collect
3200
3201 # ------------------------------------------------------------------------------
3202 scsi_id_SOURCES =\
3203         src/udev/scsi_id/scsi_id.c \
3204         src/udev/scsi_id/scsi_serial.c \
3205         src/udev/scsi_id/scsi.h \
3206         src/udev/scsi_id/scsi_id.h
3207
3208 scsi_id_LDADD = \
3209         libudev-internal.la \
3210         libsystemd-shared.la
3211
3212 udevlibexec_PROGRAMS += \
3213         scsi_id
3214
3215 EXTRA_DIST += \
3216         src/udev/scsi_id/README
3217
3218 # ------------------------------------------------------------------------------
3219 v4l_id_SOURCES = \
3220         src/udev/v4l_id/v4l_id.c
3221
3222 v4l_id_LDADD = \
3223         libudev-internal.la
3224
3225 udevlibexec_PROGRAMS += \
3226         v4l_id
3227
3228 dist_udevrules_DATA += \
3229         rules/60-persistent-v4l.rules
3230
3231 # ------------------------------------------------------------------------------
3232 accelerometer_SOURCES = \
3233         src/udev/accelerometer/accelerometer.c
3234
3235 accelerometer_LDADD = \
3236         libudev-internal.la -lm \
3237         libsystemd-shared.la
3238
3239 udevlibexec_PROGRAMS += \
3240         accelerometer
3241
3242 dist_udevrules_DATA += \
3243         rules/61-accelerometer.rules
3244
3245 # ------------------------------------------------------------------------------
3246 if ENABLE_GUDEV
3247 if ENABLE_GTK_DOC
3248 SUBDIRS += \
3249         docs/gudev
3250 endif
3251
3252 libgudev_includedir = \
3253         $(includedir)/gudev-1.0/gudev
3254
3255 libgudev_include_HEADERS = \
3256         src/gudev/gudev.h \
3257         src/gudev/gudevenums.h \
3258         src/gudev/gudevenumtypes.h \
3259         src/gudev/gudevtypes.h \
3260         src/gudev/gudevclient.h \
3261         src/gudev/gudevdevice.h \
3262         src/gudev/gudevenumerator.h
3263
3264 lib_LTLIBRARIES += libgudev-1.0.la
3265
3266 pkgconfiglib_DATA += \
3267         src/gudev/gudev-1.0.pc
3268
3269 CLEANFILES += \
3270         src/gudev/gudev-1.0.pc
3271
3272 libgudev_1_0_la_SOURCES = \
3273         src/gudev/libgudev-1.0.sym \
3274         src/gudev/gudevenums.h \
3275         src/gudev/gudevenumtypes.h \
3276         src/gudev/gudevenumtypes.h\
3277         src/gudev/gudevtypes.h \
3278         src/gudev/gudevclient.h \
3279         src/gudev/gudevclient.c \
3280         src/gudev/gudevdevice.h \
3281         src/gudev/gudevdevice.c \
3282         src/gudev/gudevenumerator.h \
3283         src/gudev/gudevenumerator.c \
3284         src/gudev/gudevprivate.h
3285
3286 nodist_libgudev_1_0_la_SOURCES = \
3287         src/gudev/gudevmarshal.h \
3288         src/gudev/gudevmarshal.c \
3289         src/gudev/gudevenumtypes.h \
3290         src/gudev/gudevenumtypes.c
3291
3292 BUILT_SOURCES += \
3293         $(nodist_libgudev_1_0_la_SOURCES)
3294
3295 libgudev_1_0_la_CPPFLAGS = \
3296         $(AM_CPPFLAGS) \
3297         -I$(top_builddir)/src\
3298         -I$(top_srcdir)/src\
3299         -I$(top_builddir)/src/gudev \
3300         -I$(top_srcdir)/src/gudev \
3301         -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3302         -D_GUDEV_COMPILATION \
3303         -DG_LOG_DOMAIN=\"GUdev\"
3304
3305 libgudev_1_0_la_CFLAGS = \
3306         $(AM_CFLAGS) \
3307         -fvisibility=default \
3308         $(GLIB_CFLAGS)
3309
3310 libgudev_1_0_la_LIBADD = \
3311         libudev.la \
3312         $(GLIB_LIBS)
3313
3314 libgudev_1_0_la_LDFLAGS = \
3315         $(AM_LDFLAGS) \
3316         -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3317         -export-dynamic \
3318         -no-undefined \
3319         -Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym
3320
3321 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3322         $(AM_V_at)$(MKDIR_P) $(dir $@)
3323         $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3324
3325 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3326         $(AM_V_at)$(MKDIR_P) $(dir $@)
3327         $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3328         glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3329
3330 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3331         $(AM_V_at)$(MKDIR_P) $(dir $@)
3332         $(AM_V_GEN)glib-mkenums --template $^ > $@
3333
3334 if HAVE_INTROSPECTION
3335 -include $(INTROSPECTION_MAKEFILE)
3336
3337 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3338
3339 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3340
3341 src_gudev_GUdev_1_0_gir_CFLAGS = \
3342         $(AM_CFLAGS) \
3343         $(INCLUDES) \
3344         -D_GUDEV_COMPILATION \
3345         -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3346         -I$(top_srcdir)/src \
3347         -I$(top_builddir)/src \
3348         -I$(top_srcdir)/src/gudev \
3349         -I$(top_builddir)/src/gudev
3350
3351 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
3352
3353 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
3354         --pkg-export=gudev-1.0 \
3355         --warn-all
3356
3357 src_gudev_GUdev_1_0_gir_FILES = \
3358         src/gudev/gudev.h \
3359         src/gudev/gudevtypes.h \
3360         src/gudev/gudevenums.h \
3361         src/gudev/gudevenumtypes.h \
3362         src/gudev/gudevclient.h \
3363         src/gudev/gudevdevice.h \
3364         src/gudev/gudevenumerator.h \
3365         src/gudev/gudevclient.c \
3366         src/gudev/gudevdevice.c \
3367         src/gudev/gudevenumerator.c
3368
3369 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
3370 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
3371
3372 girdir = $(datadir)/gir-1.0
3373 gir_DATA = \
3374         src/gudev/GUdev-1.0.gir
3375
3376 typelibsdir = $(libdir)/girepository-1.0
3377 typelibs_DATA = \
3378         src/gudev/GUdev-1.0.typelib
3379
3380 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
3381 endif # HAVE_INTROSPECTION
3382 endif
3383
3384 EXTRA_DIST += \
3385         src/gudev/gudev-1.0.pc.in \
3386         src/gudev/gudevmarshal.list \
3387         src/gudev/gudevenumtypes.h.template \
3388         src/gudev/gudevenumtypes.c.template \
3389         src/gudev/gjs-example.js \
3390         src/gudev/seed-example-enum.js \
3391         src/gudev/seed-example.js
3392
3393 # ------------------------------------------------------------------------------
3394 mtd_probe_SOURCES =  \
3395         src/udev/mtd_probe/mtd_probe.c \
3396         src/udev/mtd_probe/mtd_probe.h \
3397         src/udev/mtd_probe/probe_smartmedia.c
3398
3399 dist_udevrules_DATA += \
3400         rules/75-probe_mtd.rules
3401
3402 udevlibexec_PROGRAMS += \
3403         mtd_probe
3404
3405 # ------------------------------------------------------------------------------
3406 test_id128_SOURCES = \
3407         src/test/test-id128.c
3408
3409 test_id128_LDADD = \
3410         libsystemd-internal.la \
3411         libsystemd-shared.la
3412
3413 tests += \
3414         test-id128
3415
3416 # ------------------------------------------------------------------------------
3417
3418 rootlibexec_PROGRAMS += \
3419         systemd-activate
3420
3421 systemd_activate_SOURCES = \
3422         src/activate/activate.c
3423
3424 systemd_activate_LDADD = \
3425         libsystemd-label.la \
3426         libsystemd-internal.la \
3427         libsystemd-shared.la
3428
3429 # ------------------------------------------------------------------------------
3430 systemd_journald_SOURCES = \
3431         src/journal/journald.c \
3432         src/journal/journald-server.h
3433
3434 systemd_journald_LDADD = \
3435         libsystemd-journal-core.la \
3436         libsystemd-internal.la \
3437         libsystemd-shared.la
3438
3439 systemd_cat_SOURCES = \
3440         src/journal/cat.c
3441
3442 systemd_cat_LDADD = \
3443         libsystemd-journal-core.la
3444
3445 if HAVE_MICROHTTPD
3446 rootlibexec_PROGRAMS += \
3447         systemd-journal-remote
3448
3449 systemd_journal_remote_SOURCES = \
3450         src/journal-remote/journal-remote-parse.h \
3451         src/journal-remote/journal-remote-parse.c \
3452         src/journal-remote/journal-remote-write.h \
3453         src/journal-remote/journal-remote-write.c \
3454         src/journal-remote/journal-remote.h \
3455         src/journal-remote/journal-remote.c
3456
3457 systemd_journal_remote_LDADD = \
3458         libsystemd-internal.la \
3459         libsystemd-journal-core.la
3460
3461 systemd_journal_remote_SOURCES += \
3462         src/journal-remote/microhttpd-util.h \
3463         src/journal-remote/microhttpd-util.c
3464
3465 systemd_journal_remote_CFLAGS = \
3466         $(AM_CFLAGS) \
3467         $(MICROHTTPD_CFLAGS)
3468
3469 systemd_journal_remote_LDADD += \
3470         $(MICROHTTPD_LIBS)
3471
3472 if HAVE_GNUTLS
3473 systemd_journal_remote_LDADD += \
3474         $(GNUTLS_LIBS)
3475
3476 # systemd-journal-remote make sense mostly with full crypto stack
3477 dist_systemunit_DATA += \
3478         units/systemd-journal-remote.socket
3479
3480 nodist_systemunit_DATA += \
3481         units/systemd-journal-remote.service
3482
3483 EXTRA_DIST += \
3484         units/systemd-journal-remote.service.in
3485
3486 journal-remote-install-hook: journal-install-hook
3487         -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
3488         -chown 0:0 $(DESTDIR)/var/log/journal/remote
3489         -chmod 755 $(DESTDIR)/var/log/journal/remote
3490
3491 INSTALL_EXEC_HOOKS += journal-remote-install-hook
3492
3493 endif
3494
3495 nodist_pkgsysconf_DATA += \
3496         src/journal-remote/journal-remote.conf
3497
3498 EXTRA_DIST += \
3499         src/journal-remote/journal-remote.conf.in
3500
3501 CLEANFILES += \
3502         src/journal-remote/journal-remote.conf
3503 endif
3504
3505 if HAVE_LIBCURL
3506 rootlibexec_PROGRAMS += \
3507         systemd-journal-upload
3508
3509 systemd_journal_upload_SOURCES = \
3510         src/journal-remote/journal-upload.h \
3511         src/journal-remote/journal-upload.c \
3512         src/journal-remote/journal-upload-journal.c
3513
3514 systemd_journal_upload_CFLAGS = \
3515         $(AM_CFLAGS) \
3516         $(LIBCURL_CFLAGS)
3517
3518 systemd_journal_upload_LDADD = \
3519         libsystemd-core.la \
3520         libsystemd-internal.la \
3521         libsystemd-journal-internal.la \
3522         libsystemd-shared.la \
3523         $(LIBCURL_LIBS)
3524
3525 nodist_systemunit_DATA += \
3526         units/systemd-journal-upload.service
3527
3528 EXTRA_DIST += \
3529         units/systemd-journal-upload.service.in
3530
3531 nodist_pkgsysconf_DATA += \
3532         src/journal-remote/journal-upload.conf
3533
3534 EXTRA_DIST += \
3535         src/journal-remote/journal-upload.conf.in
3536
3537 CLEANFILES += \
3538         src/journal-remote/journal-upload.conf
3539 endif
3540
3541 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3542 journalctl_CFLAGS = \
3543         $(AM_CFLAGS)
3544
3545 journalctl_SOURCES = \
3546         src/journal/journalctl.c
3547
3548 journalctl_LDADD = \
3549         libsystemd-journal-internal.la \
3550         libsystemd-internal.la \
3551         libsystemd-logs.la \
3552         libsystemd-shared.la
3553
3554 if HAVE_ACL
3555 journalctl_LDADD += \
3556         libsystemd-acl.la
3557 endif
3558
3559 if HAVE_QRENCODE
3560 journalctl_SOURCES += \
3561         src/journal/journal-qrcode.c \
3562         src/journal/journal-qrcode.h
3563
3564 journalctl_CFLAGS += \
3565         $(QRENCODE_CFLAGS)
3566
3567 journalctl_LDADD += \
3568         $(QRENCODE_LIBS)
3569 endif
3570
3571 test_journal_SOURCES = \
3572         src/journal/test-journal.c
3573
3574 test_journal_LDADD = \
3575         libsystemd-journal-core.la
3576
3577 test_journal_send_SOURCES = \
3578         src/journal/test-journal-send.c
3579
3580 test_journal_send_LDADD = \
3581         libsystemd-journal-core.la
3582
3583 test_journal_syslog_SOURCES = \
3584         src/journal/test-journal-syslog.c
3585
3586 test_journal_syslog_LDADD = \
3587         libsystemd-journal-core.la
3588
3589 test_journal_match_SOURCES = \
3590         src/journal/test-journal-match.c
3591
3592 test_journal_match_LDADD = \
3593         libsystemd-journal-core.la
3594
3595 test_journal_enum_SOURCES = \
3596         src/journal/test-journal-enum.c
3597
3598 test_journal_enum_LDADD = \
3599         libsystemd-journal-core.la
3600
3601 test_journal_stream_SOURCES = \
3602         src/journal/test-journal-stream.c
3603
3604 test_journal_stream_LDADD = \
3605         libsystemd-journal-core.la
3606
3607 test_journal_flush_SOURCES = \
3608         src/journal/test-journal-flush.c
3609
3610 test_journal_flush_LDADD = \
3611         libsystemd-journal-core.la
3612
3613 test_journal_init_SOURCES = \
3614         src/journal/test-journal-init.c
3615
3616 test_journal_init_LDADD = \
3617         libsystemd-journal-core.la
3618
3619 test_journal_verify_SOURCES = \
3620         src/journal/test-journal-verify.c
3621
3622 test_journal_verify_LDADD = \
3623         libsystemd-journal-core.la
3624
3625 test_journal_interleaving_SOURCES = \
3626         src/journal/test-journal-interleaving.c
3627
3628 test_journal_interleaving_LDADD = \
3629         libsystemd-journal-core.la
3630
3631 test_mmap_cache_SOURCES = \
3632         src/journal/test-mmap-cache.c
3633
3634 test_mmap_cache_LDADD = \
3635         libsystemd-journal-core.la
3636
3637 test_catalog_SOURCES = \
3638         src/journal/test-catalog.c
3639
3640 test_catalog_CPPFLAGS = \
3641         $(AM_CPPFLAGS) \
3642         -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
3643
3644 test_catalog_LDADD = \
3645         libsystemd-journal-core.la
3646
3647 test_compress_SOURCES = \
3648         src/journal/test-compress.c
3649
3650 test_compress_LDADD = \
3651         libsystemd-journal-internal.la \
3652         libsystemd-shared.la
3653
3654 test_compress_benchmark_SOURCES = \
3655         src/journal/test-compress-benchmark.c
3656
3657 test_compress_benchmark_LDADD = \
3658         libsystemd-journal-internal.la \
3659         libsystemd-shared.la
3660
3661 libsystemd_journal_core_la_SOURCES = \
3662         src/journal/journald-kmsg.c \
3663         src/journal/journald-kmsg.h \
3664         src/journal/journald-syslog.c \
3665         src/journal/journald-syslog.h \
3666         src/journal/journald-stream.c \
3667         src/journal/journald-stream.h \
3668         src/journal/journald-server.c \
3669         src/journal/journald-server.h \
3670         src/journal/journald-console.c \
3671         src/journal/journald-console.h \
3672         src/journal/journald-wall.c \
3673         src/journal/journald-wall.h \
3674         src/journal/journald-native.c \
3675         src/journal/journald-native.h \
3676         src/journal/journald-rate-limit.c \
3677         src/journal/journald-rate-limit.h \
3678         src/journal/journal-internal.h
3679
3680 nodist_libsystemd_journal_core_la_SOURCES = \
3681         src/journal/journald-gperf.c
3682
3683 libsystemd_journal_core_la_LIBADD = \
3684         libsystemd-journal-internal.la \
3685         libudev-internal.la \
3686         libsystemd-capability.la \
3687         libsystemd-label.la \
3688         libsystemd-internal.la \
3689         libsystemd-shared.la
3690
3691 if HAVE_ACL
3692 libsystemd_journal_core_la_LIBADD += \
3693         libsystemd-acl.la
3694 endif
3695
3696 noinst_LTLIBRARIES += \
3697         libsystemd-journal-core.la
3698
3699 journal-install-hook:
3700         -$(MKDIR_P) $(DESTDIR)/var/log/journal
3701         -chown 0:0 $(DESTDIR)/var/log/journal
3702         -chmod 755 $(DESTDIR)/var/log/journal
3703         -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
3704         -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
3705
3706 journal-uninstall-hook:
3707         -rmdir $(DESTDIR)/var/log/journal/remote
3708         -rmdir $(DESTDIR)/var/log/journal/
3709
3710 INSTALL_EXEC_HOOKS += journal-install-hook
3711 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
3712
3713 # ------------------------------------------------------------------------------
3714 # Update catalog on installation. Do not bother if installing
3715 # in DESTDIR, since this is likely for packaging purposes.
3716 catalog-update-hook:
3717         -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
3718
3719 INSTALL_DATA_HOOKS += \
3720         catalog-update-hook
3721
3722 catalog-remove-hook:
3723         -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
3724
3725 UNINSTALL_DATA_HOOKS += \
3726         catalog-remove-hook
3727
3728 manual_tests += \
3729         test-journal-enum
3730
3731 tests += \
3732         test-journal \
3733         test-journal-send \
3734         test-journal-syslog \
3735         test-journal-match \
3736         test-journal-stream \
3737         test-journal-init \
3738         test-journal-verify \
3739         test-journal-interleaving \
3740         test-journal-flush \
3741         test-mmap-cache \
3742         test-catalog
3743
3744 if HAVE_COMPRESSION
3745 tests += \
3746         test-compress \
3747         test-compress-benchmark
3748 endif
3749
3750 pkginclude_HEADERS += \
3751         src/systemd/sd-journal.h \
3752         src/systemd/sd-messages.h \
3753         src/systemd/_sd-common.h
3754
3755 libsystemd_journal_internal_la_SOURCES = \
3756         src/journal/sd-journal.c \
3757         src/systemd/sd-journal.h \
3758         src/systemd/_sd-common.h \
3759         src/journal/journal-file.c \
3760         src/journal/journal-file.h \
3761         src/journal/journal-vacuum.c \
3762         src/journal/journal-vacuum.h \
3763         src/journal/journal-verify.c \
3764         src/journal/journal-verify.h \
3765         src/journal/lookup3.c \
3766         src/journal/lookup3.h \
3767         src/journal/journal-send.c \
3768         src/journal/journal-def.h \
3769         src/journal/compress.h \
3770         src/journal/catalog.c \
3771         src/journal/catalog.h \
3772         src/journal/mmap-cache.c \
3773         src/journal/mmap-cache.h
3774
3775 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3776 libsystemd_journal_internal_la_CFLAGS = \
3777         $(AM_CFLAGS)
3778
3779 libsystemd_journal_internal_la_LIBADD =
3780
3781 libsystemd_journal_internal_la_SOURCES += \
3782         src/journal/compress.c
3783
3784 if HAVE_XZ
3785 libsystemd_journal_internal_la_CFLAGS += \
3786         $(XZ_CFLAGS)
3787
3788 libsystemd_journal_internal_la_LIBADD += \
3789         $(XZ_LIBS)
3790 endif
3791
3792 if HAVE_LZ4
3793 libsystemd_journal_internal_la_LIBADD += \
3794         -llz4
3795 endif
3796
3797 if HAVE_GCRYPT
3798 libsystemd_journal_internal_la_SOURCES += \
3799         src/journal/journal-authenticate.c \
3800         src/journal/journal-authenticate.h \
3801         src/journal/fsprg.c \
3802         src/journal/fsprg.h
3803
3804 libsystemd_journal_internal_la_LIBADD += \
3805         $(GCRYPT_LIBS)
3806
3807 # fsprg.c is a drop-in file using void pointer arithmetic
3808 libsystemd_journal_internal_la_CFLAGS += \
3809         $(GCRYPT_CFLAGS) \
3810         -Wno-pointer-arith
3811 endif
3812
3813 noinst_LTLIBRARIES += \
3814         libsystemd-journal-internal.la
3815
3816 rootlibexec_PROGRAMS += \
3817         systemd-journald
3818
3819 rootbin_PROGRAMS += \
3820         journalctl
3821
3822 bin_PROGRAMS += \
3823         systemd-cat
3824
3825 dist_systemunit_DATA += \
3826         units/systemd-journald.socket \
3827         units/systemd-journald-dev-log.socket
3828
3829 nodist_systemunit_DATA += \
3830         units/systemd-journald.service \
3831         units/systemd-journal-flush.service \
3832         units/systemd-journal-catalog-update.service
3833
3834 dist_pkgsysconf_DATA += \
3835         src/journal/journald.conf
3836
3837 dist_catalog_DATA = \
3838         catalog/systemd.fr.catalog \
3839         catalog/systemd.ru.catalog \
3840         catalog/systemd.it.catalog \
3841         catalog/systemd.catalog
3842
3843 SOCKETS_TARGET_WANTS += \
3844         systemd-journald.socket \
3845         systemd-journald-dev-log.socket
3846
3847 SYSINIT_TARGET_WANTS += \
3848         systemd-journald.service \
3849         systemd-journal-flush.service \
3850         systemd-journal-catalog-update.service
3851
3852 EXTRA_DIST += \
3853         units/systemd-journald.service.in \
3854         units/systemd-journal-flush.service.in \
3855         units/systemd-journal-catalog-update.service.in \
3856         src/journal/journald-gperf.gperf
3857
3858 CLEANFILES += \
3859         src/journal/journald-gperf.c
3860
3861 # ------------------------------------------------------------------------------
3862 if HAVE_MICROHTTPD
3863 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
3864
3865 rootlibexec_PROGRAMS += \
3866         systemd-journal-gatewayd
3867
3868 systemd_journal_gatewayd_SOURCES = \
3869         src/journal-remote/journal-gatewayd.c \
3870         src/journal-remote/microhttpd-util.h \
3871         src/journal-remote/microhttpd-util.c
3872
3873 systemd_journal_gatewayd_LDADD = \
3874         libsystemd-logs.la \
3875         libsystemd-journal-internal.la \
3876         libsystemd-internal.la \
3877         libsystemd-shared.la \
3878         $(MICROHTTPD_LIBS)
3879
3880 if HAVE_GNUTLS
3881 systemd_journal_gatewayd_LDADD += \
3882         $(GNUTLS_LIBS)
3883 endif
3884
3885 systemd_journal_gatewayd_CFLAGS = \
3886         $(AM_CFLAGS) \
3887         $(MICROHTTPD_CFLAGS)
3888
3889 systemd_journal_gatewayd_CPPFLAGS = \
3890         $(AM_CPPFLAGS) \
3891         -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
3892
3893 dist_systemunit_DATA += \
3894         units/systemd-journal-gatewayd.socket
3895
3896 nodist_systemunit_DATA += \
3897         units/systemd-journal-gatewayd.service
3898
3899 dist_gatewayddocumentroot_DATA = \
3900         src/journal-remote/browse.html
3901
3902 endif
3903
3904 EXTRA_DIST += \
3905         units/systemd-journal-gatewayd.service.in
3906
3907 # ------------------------------------------------------------------------------
3908
3909 systemd_socket_proxyd_SOURCES = \
3910         src/socket-proxy/socket-proxyd.c
3911
3912 systemd_socket_proxyd_LDADD = \
3913         libsystemd-logs.la \
3914         libsystemd-internal.la \
3915         libsystemd-journal-internal.la \
3916         libsystemd-shared.la \
3917         libsystemd-resolve.la
3918
3919 # ------------------------------------------------------------------------------
3920 if ENABLE_COREDUMP
3921 systemd_coredump_SOURCES = \
3922         src/journal/coredump.c \
3923         src/journal/coredump-vacuum.c \
3924         src/journal/coredump-vacuum.h
3925
3926 systemd_coredump_LDADD = \
3927         libsystemd-journal-internal.la \
3928         libsystemd-label.la \
3929         libsystemd-internal.la \
3930         libsystemd-shared.la
3931
3932 if HAVE_ELFUTILS
3933 systemd_coredump_SOURCES += \
3934         src/journal/stacktrace.c \
3935         src/journal/stacktrace.h
3936
3937 systemd_coredump_LDADD += \
3938         $(ELFUTILS_LIBS)
3939 endif
3940
3941 rootlibexec_PROGRAMS += \
3942         systemd-coredump
3943
3944 dist_pkgsysconf_DATA += \
3945         src/journal/coredump.conf
3946
3947 if HAVE_ACL
3948 systemd_coredump_LDADD += \
3949         libsystemd-acl.la
3950 endif
3951
3952 coredumpctl_SOURCES = \
3953         src/journal/coredumpctl.c
3954
3955 coredumpctl_LDADD = \
3956         libsystemd-journal-internal.la \
3957         libsystemd-internal.la \
3958         libsystemd-shared.la
3959
3960 bin_PROGRAMS += \
3961         coredumpctl
3962
3963 manual_tests += \
3964         test-coredump-vacuum
3965
3966 test_coredump_vacuum_SOURCES = \
3967         src/journal/test-coredump-vacuum.c  \
3968         src/journal/coredump-vacuum.c \
3969         src/journal/coredump-vacuum.h
3970
3971 test_coredump_vacuum_LDADD = \
3972         libsystemd-internal.la \
3973         libsystemd-shared.la
3974
3975 dist_bashcompletion_DATA += \
3976         shell-completion/bash/coredumpctl
3977
3978 dist_zshcompletion_DATA += \
3979         shell-completion/zsh/_coredumpctl
3980
3981 GENERAL_ALIASES += \
3982         $(bindir)/coredumpctl $(bindir)/systemd-coredumpctl
3983
3984 sysctl_DATA = \
3985         sysctl.d/50-coredump.conf
3986
3987 CLEANFILES += \
3988         sysctl.d/50-coredump.conf
3989 endif
3990
3991 EXTRA_DIST += \
3992         sysctl.d/50-coredump.conf.in
3993
3994 # ------------------------------------------------------------------------------
3995 if ENABLE_BINFMT
3996 systemd_binfmt_SOURCES = \
3997         src/binfmt/binfmt.c
3998
3999 systemd_binfmt_LDADD = \
4000         libsystemd-shared.la
4001
4002 rootlibexec_PROGRAMS += \
4003         systemd-binfmt
4004
4005 dist_systemunit_DATA += \
4006         units/proc-sys-fs-binfmt_misc.automount \
4007         units/proc-sys-fs-binfmt_misc.mount
4008
4009 nodist_systemunit_DATA += \
4010         units/systemd-binfmt.service
4011
4012 INSTALL_DIRS += \
4013         $(prefix)/lib/binfmt.d \
4014         $(sysconfdir)/binfmt.d
4015
4016 SYSINIT_TARGET_WANTS += \
4017         systemd-binfmt.service \
4018         proc-sys-fs-binfmt_misc.automount
4019
4020 endif
4021
4022 EXTRA_DIST += \
4023         units/systemd-binfmt.service.in
4024
4025 # ------------------------------------------------------------------------------
4026 if ENABLE_VCONSOLE
4027 systemd_vconsole_setup_SOURCES = \
4028         src/vconsole/vconsole-setup.c
4029
4030 systemd_vconsole_setup_LDADD = \
4031         libsystemd-shared.la
4032
4033 rootlibexec_PROGRAMS += \
4034         systemd-vconsole-setup
4035
4036 nodist_systemunit_DATA += \
4037         units/systemd-vconsole-setup.service
4038
4039 SYSINIT_TARGET_WANTS += \
4040         systemd-vconsole-setup.service
4041 endif
4042
4043 EXTRA_DIST += \
4044         units/systemd-vconsole-setup.service.in
4045
4046 # ------------------------------------------------------------------------------
4047 if ENABLE_READAHEAD
4048 systemd_readahead_SOURCES = \
4049         src/readahead/readahead.c \
4050         src/readahead/readahead-collect.c \
4051         src/readahead/readahead-replay.c \
4052         src/readahead/readahead-analyze.c \
4053         src/readahead/readahead-common.c \
4054         src/readahead/readahead-common.h
4055
4056 systemd_readahead_LDADD = \
4057         libsystemd-internal.la \
4058         libudev-internal.la \
4059         libsystemd-shared.la
4060
4061 dist_doc_DATA += \
4062         src/readahead/sd-readahead.c \
4063         src/systemd/sd-readahead.h
4064
4065 rootlibexec_PROGRAMS += \
4066         systemd-readahead
4067
4068 dist_systemunit_DATA += \
4069         units/systemd-readahead-drop.service \
4070         units/systemd-readahead-done.timer
4071
4072 nodist_systemunit_DATA += \
4073         units/systemd-readahead-collect.service \
4074         units/systemd-readahead-replay.service \
4075         units/systemd-readahead-done.service
4076
4077 manual_tests += \
4078         test-ssd
4079
4080 test_ssd_SOURCES = \
4081         src/readahead/test-ssd.c \
4082         src/readahead/readahead-common.c \
4083         src/readahead/readahead-common.h
4084
4085 test_ssd_LDADD = \
4086         libsystemd-internal.la \
4087         libudev-internal.la \
4088         libsystemd-shared.la
4089
4090 endif
4091
4092 EXTRA_DIST += \
4093         units/systemd-readahead-collect.service.in \
4094         units/systemd-readahead-replay.service.in \
4095         units/systemd-readahead-done.service.in
4096
4097 # ------------------------------------------------------------------------------
4098 if ENABLE_BOOTCHART
4099 systemd_bootchart_SOURCES = \
4100         src/bootchart/bootchart.c \
4101         src/bootchart/bootchart.h \
4102         src/bootchart/store.c \
4103         src/bootchart/store.h \
4104         src/bootchart/svg.c \
4105         src/bootchart/svg.h
4106
4107 systemd_bootchart_LDADD = \
4108         libsystemd-journal-internal.la \
4109         libsystemd-shared.la
4110
4111 rootlibexec_PROGRAMS += \
4112         systemd-bootchart
4113
4114 dist_pkgsysconf_DATA += \
4115         src/bootchart/bootchart.conf
4116 endif
4117
4118 # ------------------------------------------------------------------------------
4119 if ENABLE_QUOTACHECK
4120 rootlibexec_PROGRAMS += \
4121         systemd-quotacheck
4122
4123 nodist_systemunit_DATA += \
4124         units/systemd-quotacheck.service
4125
4126 systemd_quotacheck_SOURCES = \
4127         src/quotacheck/quotacheck.c
4128
4129 systemd_quotacheck_LDADD = \
4130         libsystemd-shared.la
4131 endif
4132
4133 EXTRA_DIST += \
4134         units/systemd-quotacheck.service.in
4135
4136 nodist_systemunit_DATA += \
4137         units/quotaon.service
4138
4139 # ------------------------------------------------------------------------------
4140 if ENABLE_RANDOMSEED
4141 rootlibexec_PROGRAMS += \
4142         systemd-random-seed
4143
4144 nodist_systemunit_DATA += \
4145         units/systemd-random-seed.service
4146
4147 systemd_random_seed_SOURCES = \
4148         src/random-seed/random-seed.c
4149
4150 systemd_random_seed_LDADD = \
4151         libsystemd-label.la \
4152         libsystemd-shared.la
4153
4154 SYSINIT_TARGET_WANTS += \
4155         systemd-random-seed.service
4156
4157 endif
4158
4159 EXTRA_DIST += \
4160         units/systemd-random-seed.service.in
4161
4162 # ------------------------------------------------------------------------------
4163 if ENABLE_BACKLIGHT
4164 rootlibexec_PROGRAMS += \
4165         systemd-backlight
4166
4167 nodist_systemunit_DATA += \
4168         units/systemd-backlight@.service
4169
4170 systemd_backlight_SOURCES = \
4171         src/backlight/backlight.c
4172
4173 systemd_backlight_LDADD = \
4174         libsystemd-label.la \
4175         libudev-internal.la \
4176         libsystemd-shared.la
4177 endif
4178
4179 EXTRA_DIST += \
4180         units/systemd-backlight@.service.in
4181
4182 # ------------------------------------------------------------------------------
4183 if ENABLE_RFKILL
4184 rootlibexec_PROGRAMS += \
4185         systemd-rfkill
4186
4187 nodist_systemunit_DATA += \
4188         units/systemd-rfkill@.service
4189
4190 systemd_rfkill_SOURCES = \
4191         src/rfkill/rfkill.c
4192
4193 systemd_rfkill_LDADD = \
4194         libsystemd-label.la \
4195         libudev-internal.la \
4196         libsystemd-shared.la
4197 endif
4198
4199 EXTRA_DIST += \
4200         units/systemd-rfkill@.service.in
4201
4202 # ------------------------------------------------------------------------------
4203 if HAVE_LIBCRYPTSETUP
4204 rootlibexec_PROGRAMS += \
4205         systemd-cryptsetup
4206
4207 systemgenerator_PROGRAMS += \
4208         systemd-cryptsetup-generator
4209
4210 dist_systemunit_DATA += \
4211         units/cryptsetup.target \
4212         units/cryptsetup-pre.target
4213
4214 systemd_cryptsetup_SOURCES = \
4215         src/cryptsetup/cryptsetup.c
4216
4217 systemd_cryptsetup_CFLAGS = \
4218         $(AM_CFLAGS) \
4219         $(LIBCRYPTSETUP_CFLAGS)
4220
4221 systemd_cryptsetup_LDADD = \
4222         libsystemd-label.la \
4223         libudev-internal.la \
4224         libsystemd-shared.la \
4225         $(LIBCRYPTSETUP_LIBS)
4226
4227 systemd_cryptsetup_generator_SOURCES = \
4228         src/cryptsetup/cryptsetup-generator.c
4229
4230 systemd_cryptsetup_generator_LDADD = \
4231         libsystemd-label.la \
4232         libsystemd-shared.la
4233
4234 SYSINIT_TARGET_WANTS += \
4235         cryptsetup.target
4236
4237 endif
4238
4239 # ------------------------------------------------------------------------------
4240 if ENABLE_HOSTNAMED
4241 systemd_hostnamed_SOURCES = \
4242         src/hostname/hostnamed.c
4243
4244 systemd_hostnamed_LDADD = \
4245         libsystemd-label.la \
4246         libsystemd-internal.la \
4247         libsystemd-shared.la
4248
4249 rootlibexec_PROGRAMS += \
4250         systemd-hostnamed
4251
4252 nodist_systemunit_DATA += \
4253         units/systemd-hostnamed.service
4254
4255 dist_systemunit_DATA += \
4256         units/org.freedesktop.hostname1.busname
4257
4258 dist_dbuspolicy_DATA += \
4259         src/hostname/org.freedesktop.hostname1.conf
4260
4261 dist_dbussystemservice_DATA += \
4262         src/hostname/org.freedesktop.hostname1.service
4263
4264 polkitpolicy_files += \
4265         src/hostname/org.freedesktop.hostname1.policy
4266
4267 SYSTEM_UNIT_ALIASES += \
4268         systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4269
4270 BUSNAMES_TARGET_WANTS += \
4271         org.freedesktop.hostname1.busname
4272
4273 hostnamectl_SOURCES = \
4274         src/hostname/hostnamectl.c
4275
4276 hostnamectl_LDADD = \
4277         libsystemd-internal.la \
4278         libsystemd-shared.la
4279
4280 bin_PROGRAMS += \
4281         hostnamectl
4282
4283 dist_bashcompletion_DATA += \
4284         shell-completion/bash/hostnamectl
4285
4286 dist_zshcompletion_DATA += \
4287         shell-completion/zsh/_hostnamectl
4288
4289 endif
4290
4291 polkitpolicy_in_files += \
4292         src/hostname/org.freedesktop.hostname1.policy.in
4293
4294 EXTRA_DIST += \
4295         units/systemd-hostnamed.service.in
4296
4297 # ------------------------------------------------------------------------------
4298 if ENABLE_KDBUS
4299 dist_systemunit_DATA += \
4300         units/org.freedesktop.systemd1.busname
4301
4302 BUSNAMES_TARGET_WANTS += \
4303         org.freedesktop.systemd1.busname
4304 endif
4305
4306 # ------------------------------------------------------------------------------
4307 if ENABLE_LOCALED
4308 systemd_localed_SOURCES = \
4309         src/locale/localed.c
4310
4311 systemd_localed_LDADD = \
4312         libsystemd-label.la \
4313         libsystemd-internal.la \
4314         libsystemd-shared.la
4315
4316 nodist_systemunit_DATA += \
4317         units/systemd-localed.service
4318
4319 dist_systemunit_DATA += \
4320         units/org.freedesktop.locale1.busname
4321
4322 rootlibexec_PROGRAMS += \
4323         systemd-localed
4324
4325 dist_dbuspolicy_DATA += \
4326         src/locale/org.freedesktop.locale1.conf
4327
4328 dist_dbussystemservice_DATA += \
4329         src/locale/org.freedesktop.locale1.service
4330
4331 polkitpolicy_files += \
4332         src/locale/org.freedesktop.locale1.policy
4333
4334 SYSTEM_UNIT_ALIASES += \
4335         systemd-localed.service dbus-org.freedesktop.locale1.service
4336
4337 BUSNAMES_TARGET_WANTS += \
4338         org.freedesktop.locale1.busname
4339
4340 dist_pkgdata_DATA += \
4341         src/locale/kbd-model-map
4342
4343 dist_noinst_SCRIPT = \
4344         src/locale/generate-kbd-model-map
4345
4346 update-kbd-model-map: src/locale/generate-kbd-model-map
4347         $PYTHON $< >src/locale/kbd-model-map
4348
4349 localectl_SOURCES = \
4350         src/locale/localectl.c
4351
4352 localectl_LDADD = \
4353         libsystemd-internal.la \
4354         libsystemd-shared.la
4355
4356 bin_PROGRAMS += \
4357         localectl
4358
4359 dist_bashcompletion_DATA += \
4360         shell-completion/bash/localectl
4361
4362 dist_zshcompletion_DATA += \
4363         shell-completion/zsh/_localectl
4364
4365 endif
4366
4367 .PHONY: update-kbd-model-map
4368
4369 polkitpolicy_in_files += \
4370         src/locale/org.freedesktop.locale1.policy.in
4371
4372 EXTRA_DIST += \
4373         units/systemd-localed.service.in
4374
4375 # ------------------------------------------------------------------------------
4376 if ENABLE_TIMEDATED
4377 systemd_timedated_SOURCES = \
4378         src/timedate/timedated.c
4379
4380 systemd_timedated_LDADD = \
4381         libsystemd-label.la \
4382         libsystemd-internal.la \
4383         libsystemd-shared.la
4384
4385 rootlibexec_PROGRAMS += \
4386         systemd-timedated
4387
4388 dist_dbussystemservice_DATA += \
4389         src/timedate/org.freedesktop.timedate1.service
4390
4391 dist_dbuspolicy_DATA += \
4392         src/timedate/org.freedesktop.timedate1.conf
4393
4394 nodist_systemunit_DATA += \
4395         units/systemd-timedated.service
4396
4397 dist_systemunit_DATA += \
4398         units/org.freedesktop.timedate1.busname
4399
4400 polkitpolicy_files += \
4401         src/timedate/org.freedesktop.timedate1.policy
4402
4403 SYSTEM_UNIT_ALIASES += \
4404         systemd-timedated.service dbus-org.freedesktop.timedate1.service
4405
4406 BUSNAMES_TARGET_WANTS += \
4407         org.freedesktop.timedate1.busname
4408
4409 timedatectl_SOURCES = \
4410         src/timedate/timedatectl.c
4411
4412 timedatectl_LDADD = \
4413         libsystemd-internal.la \
4414         libsystemd-shared.la
4415
4416 bin_PROGRAMS += \
4417         timedatectl
4418
4419 dist_bashcompletion_DATA += \
4420         shell-completion/bash/timedatectl
4421
4422 dist_zshcompletion_DATA += \
4423         shell-completion/zsh/_timedatectl
4424 endif
4425
4426 polkitpolicy_in_files += \
4427         src/timedate/org.freedesktop.timedate1.policy.in
4428
4429 EXTRA_DIST += \
4430         units/systemd-timedated.service.in
4431
4432 # ------------------------------------------------------------------------------
4433 if ENABLE_TIMESYNCD
4434 systemd_timesyncd_SOURCES = \
4435         src/timesync/timesyncd.c \
4436         src/timesync/timesyncd.h
4437
4438 nodist_systemd_timesyncd_SOURCES = \
4439         src/timesync/timesyncd-gperf.c
4440
4441 EXTRA_DIST += \
4442         src/timesync/timesyncd-gperf.gperf
4443
4444 CLEANFILES += \
4445         src/timesync/timesyncd-gperf.c
4446
4447 systemd_timesyncd_LDADD = \
4448         libsystemd-resolve.la \
4449         libsystemd-network.la \
4450         libsystemd-label.la \
4451         libsystemd-capability.la \
4452         libsystemd-internal.la \
4453         libsystemd-shared.la \
4454         -lm
4455
4456 rootlibexec_PROGRAMS += \
4457         systemd-timesyncd
4458
4459 nodist_systemunit_DATA += \
4460         units/systemd-timesyncd.service
4461
4462 GENERAL_ALIASES += \
4463         $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-timesyncd.service
4464
4465 EXTRA_DIST += \
4466         units/systemd-timesyncd.service.in
4467
4468 nodist_pkgsysconf_DATA += \
4469         src/timesync/timesyncd.conf
4470
4471 EXTRA_DIST += \
4472         src/timesync/timesyncd.conf.in
4473
4474 CLEANFILES += \
4475         src/timesync/timesyncd.conf
4476 endif
4477
4478 # ------------------------------------------------------------------------------
4479 if HAVE_MYHOSTNAME
4480 libnss_myhostname_la_SOURCES = \
4481         src/nss-myhostname/nss-myhostname.sym \
4482         src/nss-myhostname/nss-myhostname.c
4483
4484 libnss_myhostname_la_LDFLAGS = \
4485         $(AM_LDFLAGS) \
4486         -module \
4487         -export-dynamic \
4488         -avoid-version \
4489         -shared \
4490         -shrext .so.2 \
4491         -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
4492
4493 libnss_myhostname_la_LIBADD = \
4494         libsystemd-shared.la \
4495         libsystemd-internal.la
4496
4497 lib_LTLIBRARIES += \
4498         libnss_myhostname.la
4499 endif
4500
4501 # ------------------------------------------------------------------------------
4502 if ENABLE_MACHINED
4503 systemd_machined_SOURCES = \
4504         src/machine/machined.c \
4505         src/machine/machined.h
4506
4507 systemd_machined_LDADD = \
4508         libsystemd-machine-core.la
4509
4510 rootlibexec_PROGRAMS += \
4511         systemd-machined
4512
4513 libsystemd_machine_core_la_SOURCES = \
4514         src/machine/machined-dbus.c \
4515         src/machine/machine.c \
4516         src/machine/machine.h \
4517         src/machine/machine-dbus.c
4518
4519 libsystemd_machine_core_la_LIBADD = \
4520         libsystemd-label.la \
4521         libsystemd-internal.la \
4522         libudev-internal.la \
4523         libsystemd-shared.la
4524
4525 noinst_LTLIBRARIES += \
4526         libsystemd-machine-core.la
4527
4528 machinectl_SOURCES = \
4529         src/machine/machinectl.c
4530
4531 machinectl_LDADD = \
4532         libsystemd-internal.la \
4533         libsystemd-shared.la
4534
4535 rootbin_PROGRAMS += \
4536         machinectl
4537
4538 dist_bashcompletion_DATA += \
4539         shell-completion/bash/machinectl
4540
4541 test_machine_tables_SOURCES = \
4542         src/machine/test-machine-tables.c
4543
4544 test_machine_tables_LDADD = \
4545         libsystemd-machine-core.la
4546
4547 tests += \
4548         test-machine-tables
4549
4550 nodist_systemunit_DATA += \
4551         units/systemd-machined.service
4552
4553 dist_systemunit_DATA += \
4554         units/machine.slice \
4555         units/org.freedesktop.machine1.busname
4556
4557 dist_dbussystemservice_DATA += \
4558         src/machine/org.freedesktop.machine1.service
4559
4560 dist_dbuspolicy_DATA += \
4561         src/machine/org.freedesktop.machine1.conf
4562
4563 dist_zshcompletion_DATA += \
4564         shell-completion/zsh/_machinectl \
4565         shell-completion/zsh/_sd_machines
4566
4567 SYSTEM_UNIT_ALIASES += \
4568         systemd-machined.service dbus-org.freedesktop.machine1.service
4569
4570 BUSNAMES_TARGET_WANTS += \
4571         org.freedesktop.machine1.busname
4572
4573 EXTRA_DIST += \
4574         units/systemd-machined.service.in
4575
4576 libnss_mymachines_la_SOURCES = \
4577         src/nss-mymachines/nss-mymachines.sym \
4578         src/nss-mymachines/nss-mymachines.c
4579
4580 libnss_mymachines_la_LDFLAGS = \
4581         $(AM_LDFLAGS) \
4582         -module \
4583         -export-dynamic \
4584         -avoid-version \
4585         -shared \
4586         -shrext .so.2 \
4587         -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
4588
4589 libnss_mymachines_la_LIBADD = \
4590         libsystemd-shared.la \
4591         libsystemd-internal.la
4592
4593 lib_LTLIBRARIES += \
4594         libnss_mymachines.la
4595 endif
4596
4597 # ------------------------------------------------------------------------------
4598 if ENABLE_RESOLVED
4599 systemd_resolved_SOURCES = \
4600         src/resolve/resolved.h \
4601         src/resolve/resolved.c \
4602         src/resolve/resolved-manager.c \
4603         src/resolve/resolved-bus.c \
4604         src/resolve/resolved-link.h \
4605         src/resolve/resolved-link.c \
4606         src/resolve/resolved-dns-domain.h \
4607         src/resolve/resolved-dns-domain.c \
4608         src/resolve/resolved-dns-packet.h \
4609         src/resolve/resolved-dns-packet.c \
4610         src/resolve/resolved-dns-query.h \
4611         src/resolve/resolved-dns-query.c \
4612         src/resolve/resolved-dns-scope.h \
4613         src/resolve/resolved-dns-scope.c \
4614        &nb