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