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