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