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