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