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