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