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