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