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