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