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