]> git.ipfire.org Git - thirdparty/systemd.git/blob - Makefile.am
tests: add test-rlimit-util
[thirdparty/systemd.git] / Makefile.am
1 # -*- Mode: makefile; indent-tabs-mode: t -*-
2 #
3 # This file is part of systemd.
4 #
5 # Copyright 2010-2012 Lennart Poettering
6 # Copyright 2010-2012 Kay Sievers
7 # Copyright 2013 Zbigniew Jędrzejewski-Szmek
8 # Copyright 2013 David Strauss
9 #
10 # systemd is free software; you can redistribute it and/or modify it
11 # under the terms of the GNU Lesser General Public License as published by
12 # the Free Software Foundation; either version 2.1 of the License, or
13 # (at your option) any later version.
14 #
15 # systemd is distributed in the hope that it will be useful, but
16 # WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 # Lesser General Public License for more details.
19 #
20 # You should have received a copy of the GNU Lesser General Public License
21 # along with systemd; If not, see <http://www.gnu.org/licenses/>.
22
23 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
24 AM_MAKEFLAGS = --no-print-directory
25 AUTOMAKE_OPTIONS = color-tests parallel-tests
26
27 GCC_COLORS ?= 'ooh, shiny!'
28 export GCC_COLORS
29
30 SUBDIRS = . po
31
32 # remove targets if the command fails
33 .DELETE_ON_ERROR:
34
35 # keep intermediate files
36 .SECONDARY:
37
38 # Keep the test-suite.log
39 .PRECIOUS: $(TEST_SUITE_LOG) Makefile
40
41 LIBUDEV_CURRENT=7
42 LIBUDEV_REVISION=4
43 LIBUDEV_AGE=6
44
45 LIBSYSTEMD_CURRENT=13
46 LIBSYSTEMD_REVISION=0
47 LIBSYSTEMD_AGE=13
48
49 # The following four libraries only exist for compatibility reasons,
50 # their version info should not be bumped anymore
51 LIBSYSTEMD_LOGIN_CURRENT=9
52 LIBSYSTEMD_LOGIN_REVISION=3
53 LIBSYSTEMD_LOGIN_AGE=9
54
55 LIBSYSTEMD_DAEMON_CURRENT=0
56 LIBSYSTEMD_DAEMON_REVISION=12
57 LIBSYSTEMD_DAEMON_AGE=0
58
59 LIBSYSTEMD_ID128_CURRENT=0
60 LIBSYSTEMD_ID128_REVISION=28
61 LIBSYSTEMD_ID128_AGE=0
62
63 LIBSYSTEMD_JOURNAL_CURRENT=11
64 LIBSYSTEMD_JOURNAL_REVISION=5
65 LIBSYSTEMD_JOURNAL_AGE=11
66
67 # Dirs of external packages
68 dbuspolicydir=@dbuspolicydir@
69 dbussessionservicedir=@dbussessionservicedir@
70 dbussystemservicedir=@dbussystemservicedir@
71 pamlibdir=@pamlibdir@
72 pamconfdir=@pamconfdir@
73 pkgconfigdatadir=$(datadir)/pkgconfig
74 pkgconfiglibdir=$(libdir)/pkgconfig
75 polkitpolicydir=$(datadir)/polkit-1/actions
76 bashcompletiondir=@bashcompletiondir@
77 zshcompletiondir=@zshcompletiondir@
78 rpmmacrosdir=$(prefix)/lib/rpm/macros.d
79 sysvinitdir=$(SYSTEM_SYSVINIT_PATH)
80 sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
81 varlogdir=$(localstatedir)/log
82 systemdstatedir=$(localstatedir)/lib/systemd
83 catalogstatedir=$(systemdstatedir)/catalog
84 xinitrcdir=$(sysconfdir)/X11/xinit/xinitrc.d
85
86 # Our own, non-special dirs
87 pkgsysconfdir=$(sysconfdir)/systemd
88 userunitdir=$(prefix)/lib/systemd/user
89 userpresetdir=$(prefix)/lib/systemd/user-preset
90 tmpfilesdir=$(prefix)/lib/tmpfiles.d
91 sysusersdir=$(prefix)/lib/sysusers.d
92 sysctldir=$(prefix)/lib/sysctl.d
93 binfmtdir=$(prefix)/lib/binfmt.d
94 modulesloaddir=$(prefix)/lib/modules-load.d
95 networkdir=$(rootprefix)/lib/systemd/network
96 pkgincludedir=$(includedir)/systemd
97 systemgeneratordir=$(rootlibexecdir)/system-generators
98 usergeneratordir=$(prefix)/lib/systemd/user-generators
99 systemshutdowndir=$(rootlibexecdir)/system-shutdown
100 systemsleepdir=$(rootlibexecdir)/system-sleep
101 systemunitdir=$(rootprefix)/lib/systemd/system
102 systempresetdir=$(rootprefix)/lib/systemd/system-preset
103 udevlibexecdir=$(rootprefix)/lib/udev
104 udevhomedir=$(udevlibexecdir)
105 udevrulesdir=$(udevlibexecdir)/rules.d
106 udevhwdbdir=$(udevlibexecdir)/hwdb.d
107 catalogdir=$(prefix)/lib/systemd/catalog
108 kernelinstalldir = $(prefix)/lib/kernel/install.d
109 factory_etcdir = $(datadir)/factory/etc
110 factory_pamdir = $(datadir)/factory/etc/pam.d
111 bootlibdir = $(prefix)/lib/systemd/boot/efi
112
113 # And these are the special ones for /
114 rootprefix=@rootprefix@
115 rootbindir=$(rootprefix)/bin
116 rootlibexecdir=$(rootprefix)/lib/systemd
117
118 EXTRA_DIST =
119 BUILT_SOURCES =
120 INSTALL_EXEC_HOOKS =
121 UNINSTALL_EXEC_HOOKS =
122 INSTALL_DATA_HOOKS =
123 UNINSTALL_DATA_HOOKS =
124 DISTCLEAN_LOCAL_HOOKS =
125 CLEAN_LOCAL_HOOKS =
126 pkginclude_HEADERS =
127 noinst_LTLIBRARIES =
128 lib_LTLIBRARIES =
129 include_HEADERS =
130 noinst_DATA =
131 pkgconfigdata_DATA =
132 pkgconfiglib_DATA =
133 polkitpolicy_in_in_files =
134 polkitpolicy_in_files =
135 polkitpolicy_files =
136 dist_udevrules_DATA =
137 nodist_udevrules_DATA =
138 dist_pkgsysconf_DATA =
139 nodist_pkgsysconf_DATA =
140 dist_dbuspolicy_DATA =
141 dist_dbussystemservice_DATA =
142 dist_systemunit_DATA_busnames =
143 dist_sysusers_DATA =
144 check_PROGRAMS =
145 check_DATA =
146 tests=
147 manual_tests =
148 TEST_EXTENSIONS = .py
149 PY_LOG_COMPILER = $(PYTHON)
150 if ENABLE_TESTS
151 noinst_PROGRAMS = $(manual_tests) $(tests)
152 TESTS = $(tests)
153 else
154 noinst_PROGRAMS =
155 TESTS =
156 endif
157 udevlibexec_PROGRAMS =
158 gperf_gperf_sources =
159
160 in_files = $(filter %.in,$(EXTRA_DIST))
161 in_in_files = $(filter %.in.in, $(in_files))
162 m4_files = $(filter %.m4,$(EXTRA_DIST) $(in_files:.m4.in=.m4))
163
164 CLEANFILES = $(BUILT_SOURCES) \
165 $(pkgconfigdata_DATA) \
166 $(pkgconfiglib_DATA) \
167 $(in_files:.in=) $(in_in_files:.in.in=) \
168 $(m4_files:.m4=)
169
170 .PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \
171 $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \
172 $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS)
173
174 AM_CPPFLAGS = \
175 -include $(top_builddir)/config.h \
176 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
177 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
178 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
179 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
180 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
181 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
182 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
183 -DCERTIFICATE_ROOT=\"$(CERTIFICATEROOT)\" \
184 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
185 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
186 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
187 -DSYSTEMD_FSCK_PATH=\"$(rootlibexecdir)/systemd-fsck\" \
188 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
189 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
190 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
191 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
192 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
193 -DROOTPREFIX=\"$(rootprefix)\" \
194 -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \
195 -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
196 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
197 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
198 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
199 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
200 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
201 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
202 -DSYSTEMD_LANGUAGE_FALLBACK_MAP=\"$(pkgdatadir)/language-fallback-map\" \
203 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
204 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
205 -DQUOTACHECK=\"$(QUOTACHECK)\" \
206 -DKEXEC=\"$(KEXEC)\" \
207 -DMOUNT_PATH=\"$(MOUNT_PATH)\" \
208 -DUMOUNT_PATH=\"$(UMOUNT_PATH)\" \
209 -DLIBDIR=\"$(libdir)\" \
210 -DROOTLIBDIR=\"$(rootlibdir)\" \
211 -DROOTLIBEXECDIR=\"$(rootlibexecdir)\" \
212 -DTEST_DIR=\"$(abs_top_srcdir)/test\" \
213 -I $(top_srcdir)/src \
214 -I $(top_builddir)/src/basic \
215 -I $(top_srcdir)/src/basic \
216 -I $(top_srcdir)/src/shared \
217 -I $(top_builddir)/src/shared \
218 -I $(top_srcdir)/src/network \
219 -I $(top_srcdir)/src/login \
220 -I $(top_srcdir)/src/journal \
221 -I $(top_builddir)/src/journal \
222 -I $(top_srcdir)/src/timedate \
223 -I $(top_srcdir)/src/timesync \
224 -I $(top_srcdir)/src/nspawn \
225 -I $(top_srcdir)/src/resolve \
226 -I $(top_builddir)/src/resolve \
227 -I $(top_srcdir)/src/systemd \
228 -I $(top_builddir)/src/core \
229 -I $(top_srcdir)/src/core \
230 -I $(top_srcdir)/src/libudev \
231 -I $(top_srcdir)/src/udev \
232 -I $(top_srcdir)/src/udev/net \
233 -I $(top_builddir)/src/udev \
234 -I $(top_srcdir)/src/libsystemd/sd-bus \
235 -I $(top_srcdir)/src/libsystemd/sd-event \
236 -I $(top_srcdir)/src/libsystemd/sd-login \
237 -I $(top_srcdir)/src/libsystemd/sd-netlink \
238 -I $(top_srcdir)/src/libsystemd/sd-network \
239 -I $(top_srcdir)/src/libsystemd/sd-hwdb \
240 -I $(top_srcdir)/src/libsystemd/sd-device \
241 -I $(top_srcdir)/src/libsystemd-network \
242 $(OUR_CPPFLAGS)
243
244 AM_CFLAGS = $(OUR_CFLAGS)
245 AM_LDFLAGS = $(OUR_LDFLAGS)
246
247 # ------------------------------------------------------------------------------
248 define move-to-rootlibdir
249 if test "$(libdir)" != "$(rootlibdir)"; then \
250 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
251 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
252 rm -f $(DESTDIR)$(libdir)/$$libname && \
253 $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
254 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
255 fi
256 endef
257
258 INSTALL_DIRS =
259
260 SHUTDOWN_TARGET_WANTS =
261 LOCAL_FS_TARGET_WANTS =
262 MULTI_USER_TARGET_WANTS =
263 GRAPHICAL_TARGET_WANTS =
264 RESCUE_TARGET_WANTS =
265 SYSINIT_TARGET_WANTS =
266 SOCKETS_TARGET_WANTS =
267 BUSNAMES_TARGET_WANTS =
268 TIMERS_TARGET_WANTS =
269 USER_SOCKETS_TARGET_WANTS =
270 USER_DEFAULT_TARGET_WANTS =
271 USER_BUSNAMES_TARGET_WANTS =
272
273 SYSTEM_UNIT_ALIASES =
274 USER_UNIT_ALIASES =
275 GENERAL_ALIASES =
276
277 install-target-wants-hook:
278 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
279 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
280 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
281 what="$(GRAPHICAL_TARGET_WANTS)" && wants=graphical.target && dir=$(systemunitdir) && $(add-wants)
282 what="$(RESCUE_TARGET_WANTS)" && wants=rescue.target && dir=$(systemunitdir) && $(add-wants)
283 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
284 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
285 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
286 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
287 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
288 what="$(USER_DEFAULT_TARGET_WANTS)" && wants=default.target && dir=$(userunitdir) && $(add-wants)
289
290 install-busnames-target-wants-hook:
291 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
292 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
293
294 define add-wants
295 [ -z "$$what" ] || ( \
296 dir=$(DESTDIR)$$dir/$$wants.wants && \
297 $(MKDIR_P) -m 0755 $$dir && \
298 cd $$dir && \
299 rm -f $$what && \
300 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
301 endef
302
303 install-directories-hook:
304 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
305
306 install-aliases-hook:
307 set -- $(SYSTEM_UNIT_ALIASES) && \
308 dir=$(systemunitdir) && $(install-aliases)
309 set -- $(USER_UNIT_ALIASES) && \
310 dir=$(userunitdir) && $(install-relative-aliases)
311 set -- $(GENERAL_ALIASES) && \
312 dir= && $(install-relative-aliases)
313
314 define install-aliases
315 while [ -n "$$1" ]; do \
316 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
317 rm -f $(DESTDIR)$$dir/$$2 && \
318 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
319 shift 2 || exit $$?; \
320 done
321 endef
322
323 define install-relative-aliases
324 while [ -n "$$1" ]; do \
325 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
326 rm -f $(DESTDIR)$$dir/$$2 && \
327 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
328 shift 2 || exit $$?; \
329 done
330 endef
331
332 install-touch-usr-hook:
333 touch -c $(DESTDIR)/$(prefix)
334
335 INSTALL_EXEC_HOOKS += \
336 install-target-wants-hook \
337 install-directories-hook \
338 install-aliases-hook \
339 install-touch-usr-hook
340
341 INSTALL_EXEC_HOOKS += \
342 install-busnames-target-wants-hook
343
344 # ------------------------------------------------------------------------------
345 AM_V_M4 = $(AM_V_M4_$(V))
346 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
347 AM_V_M4_0 = @echo " M4 " $@;
348
349 AM_V_XSLT = $(AM_V_XSLT_$(V))
350 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
351 AM_V_XSLT_0 = @echo " XSLT " $@;
352
353 AM_V_GPERF = $(AM_V_GPERF_$(V))
354 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
355 AM_V_GPERF_0 = @echo " GPERF " $@;
356
357 AM_V_LN = $(AM_V_LN_$(V))
358 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
359 AM_V_LN_0 = @echo " LN " $@;
360
361 AM_V_RM = $(AM_V_RM_$(V))
362 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
363 AM_V_RM_0 = @echo " RM " $@;
364
365 # ------------------------------------------------------------------------------
366 rootbin_PROGRAMS = \
367 systemctl \
368 systemd-notify \
369 systemd-ask-password \
370 systemd-tty-ask-password-agent \
371 systemd-machine-id-setup \
372 systemd-escape
373
374 bin_PROGRAMS = \
375 systemd-cgls \
376 systemd-cgtop \
377 systemd-nspawn \
378 systemd-detect-virt \
379 systemd-delta \
380 systemd-analyze \
381 systemd-run \
382 systemd-stdio-bridge \
383 systemd-path
384
385 dist_bin_SCRIPTS = \
386 src/kernel-install/kernel-install
387
388 dist_kernelinstall_SCRIPTS = \
389 src/kernel-install/50-depmod.install \
390 src/kernel-install/90-loaderentry.install
391
392 rootlibexec_PROGRAMS = \
393 systemd \
394 systemd-cgroups-agent \
395 systemd-initctl \
396 systemd-shutdown \
397 systemd-remount-fs \
398 systemd-reply-password \
399 systemd-fsck \
400 systemd-ac-power \
401 systemd-sysctl \
402 systemd-sleep \
403 systemd-bus-proxyd \
404 systemd-socket-proxyd \
405 systemd-update-done
406
407 if HAVE_UTMP
408 rootlibexec_PROGRAMS += \
409 systemd-update-utmp
410 endif
411
412 systemgenerator_PROGRAMS = \
413 systemd-getty-generator \
414 systemd-fstab-generator \
415 systemd-system-update-generator \
416 systemd-debug-generator
417
418 if ENABLE_BASH_COMPLETION
419 dist_bashcompletion_DATA = \
420 shell-completion/bash/busctl \
421 shell-completion/bash/journalctl \
422 shell-completion/bash/systemd-analyze \
423 shell-completion/bash/systemd-cat \
424 shell-completion/bash/systemd-cgls \
425 shell-completion/bash/systemd-cgtop \
426 shell-completion/bash/systemd-delta \
427 shell-completion/bash/systemd-detect-virt \
428 shell-completion/bash/systemd-nspawn \
429 shell-completion/bash/systemd-path \
430 shell-completion/bash/systemd-run \
431 shell-completion/bash/udevadm \
432 shell-completion/bash/kernel-install
433
434 nodist_bashcompletion_DATA = \
435 shell-completion/bash/systemctl
436 endif
437
438 if ENABLE_ZSH_COMPLETION
439 dist_zshcompletion_DATA = \
440 shell-completion/zsh/_busctl \
441 shell-completion/zsh/_journalctl \
442 shell-completion/zsh/_udevadm \
443 shell-completion/zsh/_kernel-install \
444 shell-completion/zsh/_systemd-nspawn \
445 shell-completion/zsh/_systemd-analyze \
446 shell-completion/zsh/_systemd-run \
447 shell-completion/zsh/_sd_hosts_or_user_at_host \
448 shell-completion/zsh/_sd_outputmodes \
449 shell-completion/zsh/_sd_unit_files \
450 shell-completion/zsh/_systemd-delta \
451 shell-completion/zsh/_systemd
452
453 nodist_zshcompletion_DATA = \
454 shell-completion/zsh/_systemctl
455 endif
456
457 EXTRA_DIST += \
458 shell-completion/bash/systemctl.in \
459 shell-completion/zsh/_systemctl.in
460
461 CLEANFILES += \
462 $(nodist_bashcompletion_DATA) \
463 $(nodist_zshcompletion_DATA)
464
465 dist_sysctl_DATA = \
466 sysctl.d/50-default.conf
467
468 dist_systemunit_DATA = \
469 units/graphical.target \
470 units/multi-user.target \
471 units/emergency.target \
472 units/sysinit.target \
473 units/basic.target \
474 units/getty.target \
475 units/halt.target \
476 units/kexec.target \
477 units/exit.target \
478 units/local-fs.target \
479 units/local-fs-pre.target \
480 units/initrd.target \
481 units/initrd-fs.target \
482 units/initrd-root-fs.target \
483 units/remote-fs.target \
484 units/remote-fs-pre.target \
485 units/network.target \
486 units/network-pre.target \
487 units/network-online.target \
488 units/nss-lookup.target \
489 units/nss-user-lookup.target \
490 units/poweroff.target \
491 units/reboot.target \
492 units/rescue.target \
493 units/rpcbind.target \
494 units/time-sync.target \
495 units/shutdown.target \
496 units/final.target \
497 units/umount.target \
498 units/sigpwr.target \
499 units/sleep.target \
500 units/sockets.target \
501 units/timers.target \
502 units/paths.target \
503 units/suspend.target \
504 units/swap.target \
505 units/slices.target \
506 units/system.slice \
507 units/x-.slice \
508 units/systemd-initctl.socket \
509 units/syslog.socket \
510 units/dev-hugepages.mount \
511 units/dev-mqueue.mount \
512 units/sys-kernel-config.mount \
513 units/sys-kernel-debug.mount \
514 units/sys-fs-fuse-connections.mount \
515 units/tmp.mount \
516 units/var-lib-machines.mount \
517 units/printer.target \
518 units/sound.target \
519 units/bluetooth.target \
520 units/smartcard.target \
521 units/systemd-ask-password-wall.path \
522 units/systemd-ask-password-console.path \
523 units/systemd-udevd-control.socket \
524 units/systemd-udevd-kernel.socket \
525 units/system-update.target \
526 units/initrd-switch-root.target \
527 units/machines.target
528
529 dist_systemunit_DATA += \
530 $(dist_systemunit_DATA_busnames)
531
532 dist_systemunit_DATA_busnames += \
533 units/busnames.target
534
535 nodist_systemunit_DATA = \
536 units/getty@.service \
537 units/serial-getty@.service \
538 units/console-shell.service \
539 units/console-getty.service \
540 units/container-getty@.service \
541 units/systemd-initctl.service \
542 units/systemd-remount-fs.service \
543 units/systemd-ask-password-wall.service \
544 units/systemd-ask-password-console.service \
545 units/systemd-sysctl.service \
546 units/emergency.service \
547 units/rescue.service \
548 units/user@.service \
549 units/systemd-suspend.service \
550 units/systemd-halt.service \
551 units/systemd-poweroff.service \
552 units/systemd-reboot.service \
553 units/systemd-kexec.service \
554 units/systemd-exit.service \
555 units/systemd-fsck@.service \
556 units/systemd-fsck-root.service \
557 units/systemd-machine-id-commit.service \
558 units/systemd-udevd.service \
559 units/systemd-udev-trigger.service \
560 units/systemd-udev-settle.service \
561 units/systemd-hwdb-update.service \
562 units/debug-shell.service \
563 units/initrd-parse-etc.service \
564 units/initrd-cleanup.service \
565 units/initrd-udevadm-cleanup-db.service \
566 units/initrd-switch-root.service \
567 units/systemd-nspawn@.service \
568 units/systemd-update-done.service
569
570 if HAVE_UTMP
571 nodist_systemunit_DATA += \
572 units/systemd-update-utmp.service \
573 units/systemd-update-utmp-runlevel.service
574 endif
575
576 dist_userunit_DATA = \
577 units/user/basic.target \
578 units/user/default.target \
579 units/user/exit.target
580
581 nodist_userunit_DATA = \
582 units/user/systemd-exit.service
583
584 dist_systempreset_DATA = \
585 system-preset/90-systemd.preset
586
587 EXTRA_DIST += \
588 units/getty@.service.m4 \
589 units/serial-getty@.service.m4 \
590 units/console-shell.service.m4.in \
591 units/console-getty.service.m4.in \
592 units/container-getty@.service.m4.in \
593 units/rescue.service.in \
594 units/systemd-initctl.service.in \
595 units/systemd-remount-fs.service.in \
596 units/systemd-update-utmp.service.in \
597 units/systemd-update-utmp-runlevel.service.in \
598 units/systemd-ask-password-wall.service.in \
599 units/systemd-ask-password-console.service.in \
600 units/systemd-sysctl.service.in \
601 units/emergency.service.in \
602 units/systemd-halt.service.in \
603 units/systemd-poweroff.service.in \
604 units/systemd-reboot.service.in \
605 units/systemd-kexec.service.in \
606 units/systemd-exit.service.in \
607 units/user/systemd-exit.service.in \
608 units/systemd-fsck@.service.in \
609 units/systemd-fsck-root.service.in \
610 units/systemd-machine-id-commit.service.in \
611 units/user@.service.m4.in \
612 units/debug-shell.service.in \
613 units/systemd-suspend.service.in \
614 units/quotaon.service.in \
615 units/initrd-parse-etc.service.in \
616 units/initrd-cleanup.service.in \
617 units/initrd-udevadm-cleanup-db.service.in \
618 units/initrd-switch-root.service.in \
619 units/systemd-nspawn@.service.in \
620 units/systemd-update-done.service.in \
621 units/tmp.mount.m4
622
623 if HAVE_SYSV_COMPAT
624 nodist_systemunit_DATA += \
625 units/rc-local.service \
626 units/halt-local.service
627
628 systemgenerator_PROGRAMS += \
629 systemd-sysv-generator \
630 systemd-rc-local-generator
631 endif
632
633 EXTRA_DIST += \
634 src/systemctl/systemd-sysv-install.SKELETON \
635 units/rc-local.service.in \
636 units/halt-local.service.in
637
638 # automake is broken and can't handle files with a dash in front
639 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
640 units-install-hook:
641 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
642
643 units-uninstall-hook:
644 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
645
646 INSTALL_DATA_HOOKS += units-install-hook
647 UNINSTALL_DATA_HOOKS += units-uninstall-hook
648
649 dist_doc_DATA = \
650 README \
651 NEWS \
652 CODING_STYLE \
653 LICENSE.LGPL2.1 \
654 LICENSE.GPL2 \
655 DISTRO_PORTING \
656 src/libsystemd/sd-bus/PORTING-DBUS1 \
657 src/libsystemd/sd-bus/DIFFERENCES \
658 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
659
660 EXTRA_DIST += \
661 README.md \
662 autogen.sh \
663 .dir-locals.el \
664 .editorconfig \
665 .vimrc \
666 .ycm_extra_conf.py \
667 .travis.yml \
668 .mailmap
669
670 @INTLTOOL_POLICY_RULE@
671
672 # ------------------------------------------------------------------------------
673
674 MANPAGES =
675 MANPAGES_ALIAS =
676
677 include Makefile-man.am
678
679 .PHONY: man update-man-list
680 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
681
682 XML_FILES = \
683 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
684 HTML_FILES = \
685 ${XML_FILES:.xml=.html}
686 HTML_ALIAS = \
687 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
688
689 if ENABLE_MANPAGES
690 man_MANS = \
691 $(MANPAGES) \
692 $(MANPAGES_ALIAS)
693
694 noinst_DATA += \
695 $(HTML_FILES) \
696 $(HTML_ALIAS)
697
698 CLEANFILES += \
699 $(man_MANS) \
700 $(HTML_FILES) \
701 $(HTML_ALIAS)
702
703 docs/html/man:
704 $(AM_V_at)$(MKDIR_P) $(dir $@)
705 $(AM_V_LN)$(LN_S) -f ../../man $@
706
707 noinst_DATA += \
708 docs/html/man
709
710 CLEANFILES += \
711 docs/html/man
712
713 if HAVE_PYTHON
714 man/index.html: man/systemd.index.html
715 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
716
717 noinst_DATA += \
718 man/index.html
719
720 CLEANFILES += \
721 man/index.html
722
723 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml)
724 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
725 SOURCE_XML_FILES = ${patsubst %,$(top_srcdir)/%,$(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))}
726
727 # This target should only be run manually. It recreates Makefile-man.am
728 # file in the source directory based on all man/*.xml files. Run it after
729 # adding, removing, or changing the conditional in a man page.
730 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB) man/custom-entities.ent
731 $(AM_V_GEN)$(PYTHON) $< $(XML_GLOB) > $(top_srcdir)/Makefile-man.tmp
732 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
733 @echo "Makefile-man.am has been regenerated"
734
735 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
736 $(AM_V_at)$(MKDIR_P) $(dir $@)
737 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
738
739 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py man/custom-entities.ent $(SOURCE_XML_FILES)
740 $(AM_V_at)$(MKDIR_P) $(dir $@)
741 $(AM_V_GEN)$(PYTHON) $< $@ $(SOURCE_XML_FILES)
742
743 CLEANFILES += \
744 man/systemd.index.xml \
745 man/systemd.directives.xml
746
747 EXTRA_DIST += \
748 tools/make-man-rules.py
749
750 endif
751
752 endif
753
754 EXTRA_DIST += \
755 $(filter-out man/systemd.directives.xml man/systemd.index.xml,$(XML_FILES)) \
756 tools/make-man-index.py \
757 tools/make-directive-index.py \
758 tools/xml_helper.py \
759 man/glib-event-glue.c
760
761 # ------------------------------------------------------------------------------
762 noinst_LTLIBRARIES += \
763 libbasic.la
764
765 libbasic_la_SOURCES = \
766 src/basic/missing.h \
767 src/basic/capability-util.c \
768 src/basic/capability-util.h \
769 src/basic/conf-files.c \
770 src/basic/conf-files.h \
771 src/basic/stdio-util.h \
772 src/basic/hostname-util.h \
773 src/basic/hostname-util.c \
774 src/basic/unit-name.c \
775 src/basic/unit-name.h \
776 src/basic/ioprio.h \
777 src/basic/securebits.h \
778 src/basic/special.h \
779 src/basic/list.h \
780 src/basic/unaligned.h \
781 src/basic/macro.h \
782 src/basic/def.h \
783 src/basic/sparse-endian.h \
784 src/basic/refcnt.h \
785 src/basic/util.c \
786 src/basic/util.h \
787 src/basic/io-util.c \
788 src/basic/io-util.h \
789 src/basic/string-util.c \
790 src/basic/string-util.h \
791 src/basic/fd-util.c \
792 src/basic/fd-util.h \
793 src/basic/parse-util.c \
794 src/basic/parse-util.h \
795 src/basic/user-util.c \
796 src/basic/user-util.h \
797 src/basic/rlimit-util.c \
798 src/basic/rlimit-util.h \
799 src/basic/dirent-util.c \
800 src/basic/dirent-util.h \
801 src/basic/xattr-util.c \
802 src/basic/xattr-util.h \
803 src/basic/chattr-util.c \
804 src/basic/chattr-util.h \
805 src/basic/proc-cmdline.c \
806 src/basic/proc-cmdline.h \
807 src/basic/fs-util.c \
808 src/basic/fs-util.h \
809 src/basic/syslog-util.c \
810 src/basic/syslog-util.h \
811 src/basic/stat-util.c \
812 src/basic/stat-util.h \
813 src/basic/mount-util.c \
814 src/basic/mount-util.h \
815 src/basic/hexdecoct.c \
816 src/basic/hexdecoct.h \
817 src/basic/glob-util.h \
818 src/basic/glob-util.c \
819 src/basic/extract-word.c \
820 src/basic/extract-word.h \
821 src/basic/escape.c \
822 src/basic/escape.h \
823 src/basic/cpu-set-util.c \
824 src/basic/cpu-set-util.h \
825 src/basic/lockfile-util.c \
826 src/basic/lockfile-util.h \
827 src/basic/path-util.c \
828 src/basic/path-util.h \
829 src/basic/time-util.c \
830 src/basic/time-util.h \
831 src/basic/locale-util.c \
832 src/basic/locale-util.h \
833 src/basic/umask-util.h \
834 src/basic/signal-util.c \
835 src/basic/signal-util.h \
836 src/basic/string-table.c \
837 src/basic/string-table.h \
838 src/basic/mempool.c \
839 src/basic/mempool.h \
840 src/basic/hashmap.c \
841 src/basic/hashmap.h \
842 src/basic/siphash24.c \
843 src/basic/siphash24.h \
844 src/basic/set.h \
845 src/basic/ordered-set.h \
846 src/basic/bitmap.c \
847 src/basic/bitmap.h \
848 src/basic/fdset.c \
849 src/basic/fdset.h \
850 src/basic/prioq.c \
851 src/basic/prioq.h \
852 src/basic/web-util.c \
853 src/basic/web-util.h \
854 src/basic/strv.c \
855 src/basic/strv.h \
856 src/basic/env-util.c \
857 src/basic/env-util.h \
858 src/basic/strbuf.c \
859 src/basic/strbuf.h \
860 src/basic/strxcpyx.c \
861 src/basic/strxcpyx.h \
862 src/basic/log.c \
863 src/basic/log.h \
864 src/basic/bus-label.c \
865 src/basic/bus-label.h \
866 src/basic/ratelimit.h \
867 src/basic/ratelimit.c \
868 src/basic/exit-status.c \
869 src/basic/exit-status.h \
870 src/basic/virt.c \
871 src/basic/virt.h \
872 src/basic/smack-util.c \
873 src/basic/smack-util.h \
874 src/basic/device-nodes.c \
875 src/basic/device-nodes.h \
876 src/basic/utf8.c \
877 src/basic/utf8.h \
878 src/basic/gunicode.c \
879 src/basic/gunicode.h \
880 src/basic/socket-util.c \
881 src/basic/socket-util.h \
882 src/basic/in-addr-util.c \
883 src/basic/in-addr-util.h \
884 src/basic/ether-addr-util.h \
885 src/basic/ether-addr-util.c \
886 src/basic/replace-var.c \
887 src/basic/replace-var.h \
888 src/basic/clock-util.c \
889 src/basic/clock-util.h \
890 src/basic/calendarspec.c \
891 src/basic/calendarspec.h \
892 src/basic/fileio.c \
893 src/basic/fileio.h \
894 src/basic/MurmurHash2.c \
895 src/basic/MurmurHash2.h \
896 src/basic/mkdir.c \
897 src/basic/mkdir.h \
898 src/basic/cgroup-util.c \
899 src/basic/cgroup-util.h \
900 src/basic/errno-list.c \
901 src/basic/errno-list.h \
902 src/basic/af-list.c \
903 src/basic/af-list.h \
904 src/basic/arphrd-list.c \
905 src/basic/arphrd-list.h \
906 src/basic/terminal-util.c \
907 src/basic/terminal-util.h \
908 src/basic/login-util.h \
909 src/basic/login-util.c \
910 src/basic/cap-list.c \
911 src/basic/cap-list.h \
912 src/basic/audit-util.c \
913 src/basic/audit-util.h \
914 src/basic/xml.c \
915 src/basic/xml.h \
916 src/basic/json.c \
917 src/basic/json.h \
918 src/basic/barrier.c \
919 src/basic/barrier.h \
920 src/basic/async.c \
921 src/basic/async.h \
922 src/basic/memfd-util.c \
923 src/basic/memfd-util.h \
924 src/basic/process-util.c \
925 src/basic/process-util.h \
926 src/basic/random-util.c \
927 src/basic/random-util.h \
928 src/basic/verbs.c \
929 src/basic/verbs.h \
930 src/basic/sigbus.c \
931 src/basic/sigbus.h \
932 src/basic/build.h \
933 src/basic/socket-label.c \
934 src/basic/label.c \
935 src/basic/label.h \
936 src/basic/btrfs-util.c \
937 src/basic/btrfs-util.h \
938 src/basic/btrfs-ctree.h \
939 src/basic/selinux-util.c \
940 src/basic/selinux-util.h \
941 src/basic/mkdir-label.c \
942 src/basic/fileio-label.c \
943 src/basic/fileio-label.h \
944 src/basic/rm-rf.c \
945 src/basic/rm-rf.h \
946 src/basic/copy.c \
947 src/basic/copy.h \
948 src/basic/alloc-util.h \
949 src/basic/alloc-util.c \
950 src/basic/formats-util.h \
951 src/basic/nss-util.h
952
953 nodist_libbasic_la_SOURCES = \
954 src/basic/errno-from-name.h \
955 src/basic/errno-to-name.h \
956 src/basic/af-from-name.h \
957 src/basic/af-to-name.h \
958 src/basic/arphrd-from-name.h \
959 src/basic/arphrd-to-name.h \
960 src/basic/cap-from-name.h \
961 src/basic/cap-to-name.h
962
963 libbasic_la_CFLAGS = \
964 $(AM_CFLAGS) \
965 $(SELINUX_CFLAGS) \
966 $(CAP_CFLAGS) \
967 -pthread
968
969 libbasic_la_LIBADD = \
970 $(SELINUX_LIBS) \
971 $(CAP_LIBS) \
972 -lrt \
973 -lm
974
975 # -----------------------------------------------------------------------------
976 noinst_LTLIBRARIES += \
977 libshared.la
978
979 libshared_la_SOURCES = \
980 src/shared/output-mode.h \
981 src/shared/gpt.h \
982 src/shared/udev-util.h \
983 src/shared/linux/auto_dev-ioctl.h \
984 src/shared/initreq.h \
985 src/shared/dns-domain.c \
986 src/shared/dns-domain.h \
987 src/shared/architecture.c \
988 src/shared/architecture.h \
989 src/shared/efivars.c \
990 src/shared/efivars.h \
991 src/shared/fstab-util.c \
992 src/shared/fstab-util.h \
993 src/shared/sleep-config.c \
994 src/shared/sleep-config.h \
995 src/shared/conf-parser.c \
996 src/shared/conf-parser.h \
997 src/shared/pager.c \
998 src/shared/pager.h \
999 src/shared/spawn-polkit-agent.c \
1000 src/shared/spawn-polkit-agent.h \
1001 src/shared/apparmor-util.c \
1002 src/shared/apparmor-util.h \
1003 src/shared/ima-util.c \
1004 src/shared/ima-util.h \
1005 src/shared/ptyfwd.c \
1006 src/shared/ptyfwd.h \
1007 src/shared/base-filesystem.c \
1008 src/shared/base-filesystem.h \
1009 src/shared/uid-range.c \
1010 src/shared/uid-range.h \
1011 src/shared/install.c \
1012 src/shared/install.h \
1013 src/shared/install-printf.c \
1014 src/shared/install-printf.h \
1015 src/shared/path-lookup.c \
1016 src/shared/path-lookup.h \
1017 src/shared/specifier.c \
1018 src/shared/specifier.h \
1019 src/shared/dev-setup.c \
1020 src/shared/dev-setup.h \
1021 src/shared/dropin.c \
1022 src/shared/dropin.h \
1023 src/shared/condition.c \
1024 src/shared/condition.h \
1025 src/shared/clean-ipc.c \
1026 src/shared/clean-ipc.h \
1027 src/shared/generator.h \
1028 src/shared/generator.c \
1029 src/shared/acpi-fpdt.h \
1030 src/shared/acpi-fpdt.c \
1031 src/shared/boot-timestamps.h \
1032 src/shared/boot-timestamps.c \
1033 src/shared/cgroup-show.c \
1034 src/shared/cgroup-show.h \
1035 src/shared/utmp-wtmp.h \
1036 src/shared/watchdog.c \
1037 src/shared/watchdog.h \
1038 src/shared/spawn-ask-password-agent.c \
1039 src/shared/spawn-ask-password-agent.h \
1040 src/shared/ask-password-api.c \
1041 src/shared/ask-password-api.h \
1042 src/shared/switch-root.h \
1043 src/shared/switch-root.c \
1044 src/shared/import-util.c \
1045 src/shared/import-util.h \
1046 src/shared/sysctl-util.c \
1047 src/shared/sysctl-util.h \
1048 src/shared/bus-util.c \
1049 src/shared/bus-util.h \
1050 src/shared/logs-show.c \
1051 src/shared/logs-show.h \
1052 src/shared/machine-image.c \
1053 src/shared/machine-image.h \
1054 src/shared/machine-pool.c \
1055 src/shared/machine-pool.h
1056
1057 if HAVE_UTMP
1058 libshared_la_SOURCES += \
1059 src/shared/utmp-wtmp.c
1060 endif
1061
1062 if HAVE_SECCOMP
1063 libshared_la_SOURCES += \
1064 src/shared/seccomp-util.h \
1065 src/shared/seccomp-util.c
1066 endif
1067
1068 if HAVE_ACL
1069 libshared_la_SOURCES += \
1070 src/shared/acl-util.c \
1071 src/shared/acl-util.h
1072 endif
1073
1074 libshared_la_CFLAGS = \
1075 $(AM_CFLAGS) \
1076 $(ACL_CFLAGS) \
1077 $(LIBIDN_CFLAGS) \
1078 $(SECCOMP_CFLAGS)
1079
1080 libshared_la_LIBADD = \
1081 libsystemd-internal.la \
1082 libsystemd-journal-internal.la \
1083 libudev-internal.la \
1084 $(ACL_LIBS) \
1085 $(LIBIDN_LIBS) \
1086 $(SECCOMP_LIBS)
1087
1088 # -----------------------------------------------------------------------------
1089 if HAVE_LIBIPTC
1090 noinst_LTLIBRARIES += \
1091 libfirewall.la
1092
1093 libfirewall_la_SOURCES = \
1094 src/shared/firewall-util.h \
1095 src/shared/firewall-util.c
1096
1097 libfirewall_la_CFLAGS = \
1098 $(AM_CFLAGS) \
1099 $(LIBIPTC_CFLAGS)
1100
1101 libfirewall_la_LIBADD = \
1102 $(LIBIPTC_LIBS)
1103 endif
1104
1105 # -----------------------------------------------------------------------------
1106 if ENABLE_LDCONFIG
1107 dist_systemunit_DATA += \
1108 units/ldconfig.service
1109
1110 SYSINIT_TARGET_WANTS += \
1111 ldconfig.service
1112 endif
1113
1114 # ------------------------------------------------------------------------------
1115 noinst_LTLIBRARIES += \
1116 libcore.la
1117
1118 libcore_la_SOURCES = \
1119 src/core/unit.c \
1120 src/core/unit.h \
1121 src/core/unit-printf.c \
1122 src/core/unit-printf.h \
1123 src/core/job.c \
1124 src/core/job.h \
1125 src/core/manager.c \
1126 src/core/manager.h \
1127 src/core/transaction.c \
1128 src/core/transaction.h \
1129 src/core/load-fragment.c \
1130 src/core/load-fragment.h \
1131 src/core/service.c \
1132 src/core/service.h \
1133 src/core/socket.c \
1134 src/core/socket.h \
1135 src/core/busname.c \
1136 src/core/busname.h \
1137 src/core/bus-endpoint.c \
1138 src/core/bus-endpoint.h \
1139 src/core/bus-policy.c \
1140 src/core/bus-policy.h \
1141 src/core/target.c \
1142 src/core/target.h \
1143 src/core/device.c \
1144 src/core/device.h \
1145 src/core/mount.c \
1146 src/core/mount.h \
1147 src/core/automount.c \
1148 src/core/automount.h \
1149 src/core/swap.c \
1150 src/core/swap.h \
1151 src/core/timer.c \
1152 src/core/timer.h \
1153 src/core/path.c \
1154 src/core/path.h \
1155 src/core/slice.c \
1156 src/core/slice.h \
1157 src/core/scope.c \
1158 src/core/scope.h \
1159 src/core/load-dropin.c \
1160 src/core/load-dropin.h \
1161 src/core/execute.c \
1162 src/core/execute.h \
1163 src/core/kill.c \
1164 src/core/kill.h \
1165 src/core/dbus.c \
1166 src/core/dbus.h \
1167 src/core/dbus-manager.c \
1168 src/core/dbus-manager.h \
1169 src/core/dbus-unit.c \
1170 src/core/dbus-unit.h \
1171 src/core/dbus-job.c \
1172 src/core/dbus-job.h \
1173 src/core/dbus-service.c \
1174 src/core/dbus-service.h \
1175 src/core/dbus-socket.c \
1176 src/core/dbus-socket.h \
1177 src/core/dbus-busname.c \
1178 src/core/dbus-busname.h \
1179 src/core/dbus-target.c \
1180 src/core/dbus-target.h \
1181 src/core/dbus-device.c \
1182 src/core/dbus-device.h \
1183 src/core/dbus-mount.c \
1184 src/core/dbus-mount.h \
1185 src/core/dbus-automount.c \
1186 src/core/dbus-automount.h \
1187 src/core/dbus-swap.c \
1188 src/core/dbus-swap.h \
1189 src/core/dbus-timer.c \
1190 src/core/dbus-timer.h \
1191 src/core/dbus-path.c \
1192 src/core/dbus-path.h \
1193 src/core/dbus-slice.c \
1194 src/core/dbus-slice.h \
1195 src/core/dbus-scope.c \
1196 src/core/dbus-scope.h \
1197 src/core/dbus-execute.c \
1198 src/core/dbus-execute.h \
1199 src/core/dbus-kill.c \
1200 src/core/dbus-kill.h \
1201 src/core/dbus-cgroup.c \
1202 src/core/dbus-cgroup.h \
1203 src/core/cgroup.c \
1204 src/core/cgroup.h \
1205 src/core/selinux-access.c \
1206 src/core/selinux-access.h \
1207 src/core/selinux-setup.c \
1208 src/core/selinux-setup.h \
1209 src/core/smack-setup.c \
1210 src/core/smack-setup.h \
1211 src/core/ima-setup.c \
1212 src/core/ima-setup.h \
1213 src/core/locale-setup.h \
1214 src/core/locale-setup.c \
1215 src/core/hostname-setup.c \
1216 src/core/hostname-setup.h \
1217 src/core/machine-id-setup.c \
1218 src/core/machine-id-setup.h \
1219 src/core/mount-setup.c \
1220 src/core/mount-setup.h \
1221 src/core/kmod-setup.c \
1222 src/core/kmod-setup.h \
1223 src/core/loopback-setup.h \
1224 src/core/loopback-setup.c \
1225 src/core/namespace.c \
1226 src/core/namespace.h \
1227 src/core/killall.h \
1228 src/core/killall.c \
1229 src/core/audit-fd.c \
1230 src/core/audit-fd.h \
1231 src/core/show-status.c \
1232 src/core/show-status.h \
1233 src/core/failure-action.c \
1234 src/core/failure-action.h
1235
1236 nodist_libcore_la_SOURCES = \
1237 src/core/load-fragment-gperf.c \
1238 src/core/load-fragment-gperf-nulstr.c
1239
1240 libcore_la_CFLAGS = \
1241 $(AM_CFLAGS) \
1242 $(PAM_CFLAGS) \
1243 $(AUDIT_CFLAGS) \
1244 $(KMOD_CFLAGS) \
1245 $(APPARMOR_CFLAGS) \
1246 $(MOUNT_CFLAGS) \
1247 $(SECCOMP_CFLAGS)
1248
1249 libcore_la_LIBADD = \
1250 libshared.la \
1251 $(PAM_LIBS) \
1252 $(AUDIT_LIBS) \
1253 $(KMOD_LIBS) \
1254 $(APPARMOR_LIBS) \
1255 $(MOUNT_LIBS)
1256
1257 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1258 $(AM_V_at)$(MKDIR_P) $(dir $@)
1259 $(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 ";" }' < $< > $@
1260
1261 gperf_gperf_m4_sources = \
1262 src/core/load-fragment-gperf.gperf.m4
1263
1264 gperf_txt_sources = \
1265 src/basic/errno-list.txt \
1266 src/basic/af-list.txt \
1267 src/basic/arphrd-list.txt \
1268 src/basic/cap-list.txt
1269
1270 BUILT_SOURCES += \
1271 $(gperf_gperf_m4_sources:-gperf.gperf.m4=-gperf.c) \
1272 $(gperf_gperf_m4_sources:-gperf.gperf.m4=-gperf-nulstr.c) \
1273 $(gperf_gperf_sources:-gperf.gperf=-gperf.c) \
1274 $(gperf_txt_sources:-list.txt=-from-name.h) \
1275 $(filter-out %keyboard-keys-to-name.h,$(gperf_txt_sources:-list.txt=-to-name.h))
1276
1277 CLEANFILES += \
1278 $(gperf_txt_sources:-list.txt=-from-name.gperf)
1279 DISTCLEANFILES = \
1280 $(gperf_txt_sources)
1281
1282 EXTRA_DIST += \
1283 $(gperf_gperf_m4_sources) \
1284 $(gperf_gperf_sources)
1285
1286 CLEANFILES += \
1287 $(gperf_txt_sources)
1288
1289 %-from-name.gperf: %-list.txt
1290 $(AM_V_at)$(MKDIR_P) $(dir $@)
1291 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1292
1293 %-from-name.h: %-from-name.gperf
1294 $(AM_V_at)$(MKDIR_P) $(dir $@)
1295 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1296
1297
1298 src/basic/errno-list.txt:
1299 $(AM_V_at)$(MKDIR_P) $(dir $@)
1300 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1301
1302 src/basic/errno-to-name.h: src/basic/errno-list.txt
1303 $(AM_V_at)$(MKDIR_P) $(dir $@)
1304 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1305
1306
1307 src/basic/af-list.txt:
1308 $(AM_V_at)$(MKDIR_P) $(dir $@)
1309 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include sys/socket.h - </dev/null | grep -v AF_UNSPEC | grep -v AF_MAX | $(AWK) '/^#define[ \t]+AF_[^ \t]+[ \t]+PF_[^ \t]/ { print $$2; }' >$@
1310
1311 src/basic/af-to-name.h: src/basic/af-list.txt
1312 $(AM_V_at)$(MKDIR_P) $(dir $@)
1313 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const af_names[] = { "} !/AF_FILE/ && !/AF_ROUTE/ && !/AF_LOCAL/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1314
1315
1316 src/basic/arphrd-list.txt:
1317 $(AM_V_at)$(MKDIR_P) $(dir $@)
1318 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include net/if_arp.h - </dev/null | $(AWK) '/^#define[ \t]+ARPHRD_[^ \t]+[ \t]+[^ \t]/ { print $$2; }' | sed -e 's/ARPHRD_//' >$@
1319
1320 src/basic/arphrd-to-name.h: src/basic/arphrd-list.txt
1321 $(AM_V_at)$(MKDIR_P) $(dir $@)
1322 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1323
1324 src/basic/arphrd-from-name.gperf: src/basic/arphrd-list.txt
1325 $(AM_V_at)$(MKDIR_P) $(dir $@)
1326 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct arphrd_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, ARPHRD_%s\n", $$1, $$1 }' <$< >$@
1327
1328
1329 src/basic/cap-list.txt:
1330 $(AM_V_at)$(MKDIR_P) $(dir $@)
1331 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include linux/capability.h -include missing.h - </dev/null | $(AWK) '/^#define[ \t]+CAP_[A-Z_]+[ \t]+/ { print $$2; }' | grep -v CAP_LAST_CAP >$@
1332
1333 src/basic/cap-to-name.h: src/basic/cap-list.txt
1334 $(AM_V_at)$(MKDIR_P) $(dir $@)
1335 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const capability_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, tolower($$1) } END{print "};"}' <$< >$@
1336
1337 src/basic/cap-from-name.gperf: src/basic/cap-list.txt
1338 $(AM_V_at)$(MKDIR_P) $(dir $@)
1339 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct capability_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1340
1341 src/basic/cap-from-name.h: src/basic/cap-from-name.gperf
1342 $(AM_V_at)$(MKDIR_P) $(dir $@)
1343 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_capability -H hash_capability_name -p -C <$< >$@
1344
1345 audit_list_includes = -include linux/audit.h -include missing.h
1346 if HAVE_AUDIT
1347 audit_list_includes += -include libaudit.h
1348 endif
1349
1350 src/journal/audit_type-list.txt:
1351 $(AM_V_at)$(MKDIR_P) $(dir $@)
1352 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM $(audit_list_includes) - </dev/null | grep -vE 'AUDIT_.*(FIRST|LAST)_' | $(SED) -r -n 's/^#define\s+AUDIT_(\w+)\s+([0-9]{4})\s*$$/\1\t\2/p' | sort -k2 >$@
1353
1354 src/journal/audit_type-to-name.h: src/journal/audit_type-list.txt
1355 $(AM_V_at)$(MKDIR_P) $(dir $@)
1356 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char *audit_type_to_string(int type) {\n\tswitch(type) {" } {printf " case AUDIT_%s: return \"%s\";\n", $$1, $$1 } END{ print " default: return NULL;\n\t}\n}\n" }' <$< >$@
1357
1358
1359 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1360 $(AM_V_at)$(MKDIR_P) $(dir $@)
1361 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1362
1363 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1364 $(AM_V_at)$(MKDIR_P) $(dir $@)
1365 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char *dns_type_to_string(int type) {\n\tswitch(type) {" } {printf " case DNS_TYPE_%s: return ", $$1; sub(/_/, "-"); printf "\"%s\";\n", $$1 } END{ print " default: return NULL;\n\t}\n}\n" }' <$< >$@
1366
1367 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1368 $(AM_V_at)$(MKDIR_P) $(dir $@)
1369 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct dns_type_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { s=$$1; sub(/_/, "-", s); printf "%s, ", $$s; printf "DNS_TYPE_%s\n", $$1 }' <$< >$@
1370
1371 # ------------------------------------------------------------------------------
1372 systemd_SOURCES = \
1373 src/core/main.c
1374
1375 systemd_CFLAGS = \
1376 $(AM_CFLAGS) \
1377 $(SECCOMP_CFLAGS) \
1378 $(MOUNT_CFLAGS)
1379
1380 systemd_LDADD = \
1381 libcore.la
1382
1383 dist_pkgsysconf_DATA += \
1384 src/core/system.conf \
1385 src/core/user.conf
1386
1387 dist_dbuspolicy_DATA += \
1388 src/core/org.freedesktop.systemd1.conf
1389
1390 dist_dbussystemservice_DATA += \
1391 src/core/org.freedesktop.systemd1.service
1392
1393 polkitpolicy_in_in_files += \
1394 src/core/org.freedesktop.systemd1.policy.in.in
1395
1396 pkgconfigdata_DATA += \
1397 src/core/systemd.pc
1398
1399 nodist_rpmmacros_DATA = \
1400 src/core/macros.systemd
1401
1402 EXTRA_DIST += \
1403 src/core/systemd.pc.in \
1404 src/core/macros.systemd.in \
1405 src/core/triggers.systemd.in
1406
1407 # ------------------------------------------------------------------------------
1408
1409 manual_tests += \
1410 test-ns \
1411 test-loopback \
1412 test-hostname \
1413 test-daemon \
1414 test-cgroup \
1415 test-install \
1416 test-watchdog \
1417 test-log \
1418 test-ipcrm \
1419 test-btrfs \
1420 test-acd \
1421 test-ipv4ll-manual
1422
1423 if HAVE_LIBIPTC
1424 manual_tests += \
1425 test-firewall-util
1426 endif
1427
1428 if HAVE_KMOD
1429 manual_tests += \
1430 test-netlink-manual
1431 endif
1432
1433 tests += \
1434 test-engine \
1435 test-cgroup-mask \
1436 test-job-type \
1437 test-env-replace \
1438 test-strbuf \
1439 test-strv \
1440 test-path \
1441 test-path-util \
1442 test-strxcpyx \
1443 test-siphash24 \
1444 test-unit-name \
1445 test-unit-file \
1446 test-utf8 \
1447 test-ellipsize \
1448 test-util \
1449 test-string-util \
1450 test-extract-word \
1451 test-parse-util \
1452 test-user-util \
1453 test-hostname-util \
1454 test-process-util \
1455 test-terminal-util \
1456 test-path-lookup \
1457 test-barrier \
1458 test-tmpfiles \
1459 test-namespace \
1460 test-date \
1461 test-sleep \
1462 test-replace-var \
1463 test-sched-prio \
1464 test-calendarspec \
1465 test-strip-tab-ansi \
1466 test-cgroup-util \
1467 test-fstab-util \
1468 test-prioq \
1469 test-fileio \
1470 test-time \
1471 test-hashmap \
1472 test-set \
1473 test-bitmap \
1474 test-list \
1475 test-unaligned \
1476 test-tables \
1477 test-device-nodes \
1478 test-xml \
1479 test-json \
1480 test-architecture \
1481 test-socket-util \
1482 test-fdset \
1483 test-conf-files \
1484 test-conf-parser \
1485 test-capability \
1486 test-async \
1487 test-ratelimit \
1488 test-condition \
1489 test-uid-range \
1490 test-bus-policy \
1491 test-locale-util \
1492 test-execute \
1493 test-copy \
1494 test-cap-list \
1495 test-sigbus \
1496 test-verbs \
1497 test-af-list \
1498 test-arphrd-list \
1499 test-dns-domain \
1500 test-install-root \
1501 test-rlimit-util
1502
1503 if HAVE_ACL
1504 tests += \
1505 test-acl-util
1506 endif
1507
1508 EXTRA_DIST += \
1509 test/a.service \
1510 test/basic.target \
1511 test/b.service \
1512 test/c.service \
1513 test/daughter.service \
1514 test/d.service \
1515 test/end.service \
1516 test/e.service \
1517 test/f.service \
1518 test/grandchild.service \
1519 test/g.service \
1520 test/hello-after-sleep.target \
1521 test/hello.service \
1522 test/h.service \
1523 test/parent-deep.slice \
1524 test/parent.slice \
1525 test/sched_idle_bad.service \
1526 test/sched_idle_ok.service \
1527 test/sched_rr_bad.service \
1528 test/sched_rr_change.service \
1529 test/sched_rr_ok.service \
1530 test/shutdown.target \
1531 test/sleep.service \
1532 test/sockets.target \
1533 test/son.service \
1534 test/sysinit.target \
1535 test/testsuite.target \
1536 test/timers.target \
1537 test/unstoppable.service \
1538 test/test-path/paths.target \
1539 test/test-path/basic.target \
1540 test/test-path/sysinit.target \
1541 test/test-path/path-changed.service \
1542 test/test-path/path-directorynotempty.service \
1543 test/test-path/path-existsglob.service \
1544 test/test-path/path-exists.service \
1545 test/test-path/path-makedirectory.service \
1546 test/test-path/path-modified.service \
1547 test/test-path/path-mycustomunit.service \
1548 test/test-path/path-service.service \
1549 test/test-path/path-changed.path \
1550 test/test-path/path-directorynotempty.path \
1551 test/test-path/path-existsglob.path \
1552 test/test-path/path-exists.path \
1553 test/test-path/path-makedirectory.path \
1554 test/test-path/path-modified.path \
1555 test/test-path/path-unit.path \
1556 test/test-execute/exec-environment-empty.service \
1557 test/test-execute/exec-environment-multiple.service \
1558 test/test-execute/exec-environment.service \
1559 test/test-execute/exec-passenvironment-absent.service \
1560 test/test-execute/exec-passenvironment-empty.service \
1561 test/test-execute/exec-passenvironment-repeated.service \
1562 test/test-execute/exec-passenvironment.service \
1563 test/test-execute/exec-group.service \
1564 test/test-execute/exec-ignoresigpipe-no.service \
1565 test/test-execute/exec-ignoresigpipe-yes.service \
1566 test/test-execute/exec-personality-x86-64.service \
1567 test/test-execute/exec-personality-x86.service \
1568 test/test-execute/exec-personality-s390.service \
1569 test/test-execute/exec-privatedevices-no.service \
1570 test/test-execute/exec-privatedevices-yes.service \
1571 test/test-execute/exec-privatetmp-no.service \
1572 test/test-execute/exec-privatetmp-yes.service \
1573 test/test-execute/exec-systemcallerrornumber.service \
1574 test/test-execute/exec-systemcallfilter-failing2.service \
1575 test/test-execute/exec-systemcallfilter-failing.service \
1576 test/test-execute/exec-systemcallfilter-not-failing2.service \
1577 test/test-execute/exec-systemcallfilter-not-failing.service \
1578 test/test-execute/exec-user.service \
1579 test/test-execute/exec-workingdirectory.service \
1580 test/test-execute/exec-umask-0177.service \
1581 test/test-execute/exec-umask-default.service \
1582 test/test-execute/exec-privatenetwork-yes.service \
1583 test/test-execute/exec-environmentfile.service \
1584 test/test-execute/exec-oomscoreadjust-positive.service \
1585 test/test-execute/exec-oomscoreadjust-negative.service \
1586 test/test-execute/exec-ioschedulingclass-best-effort.service \
1587 test/test-execute/exec-ioschedulingclass-idle.service \
1588 test/test-execute/exec-ioschedulingclass-none.service \
1589 test/test-execute/exec-ioschedulingclass-realtime.service \
1590 test/test-execute/exec-capabilityboundingset-invert.service \
1591 test/test-execute/exec-capabilityboundingset-merge.service \
1592 test/test-execute/exec-capabilityboundingset-reset.service \
1593 test/test-execute/exec-capabilityboundingset-simple.service \
1594 test/bus-policy/hello.conf \
1595 test/bus-policy/methods.conf \
1596 test/bus-policy/ownerships.conf \
1597 test/bus-policy/signals.conf \
1598 test/bus-policy/check-own-rules.conf \
1599 test/bus-policy/many-rules.conf \
1600 test/bus-policy/test.conf
1601
1602
1603 EXTRA_DIST += \
1604 src/test/test-helper.h
1605
1606 test_device_nodes_SOURCES = \
1607 src/test/test-device-nodes.c
1608
1609 test_device_nodes_LDADD = \
1610 libshared.la
1611
1612 test_engine_SOURCES = \
1613 src/test/test-engine.c
1614
1615 test_engine_CFLAGS = \
1616 $(AM_CFLAGS) \
1617 $(SECCOMP_CFLAGS) \
1618 $(MOUNT_CFLAGS)
1619
1620 test_engine_LDADD = \
1621 libcore.la
1622
1623 test_job_type_SOURCES = \
1624 src/test/test-job-type.c
1625
1626 test_job_type_CFLAGS = \
1627 $(AM_CFLAGS) \
1628 $(SECCOMP_CFLAGS) \
1629 $(MOUNT_CFLAGS)
1630
1631 test_job_type_LDADD = \
1632 libcore.la
1633
1634 test_ns_SOURCES = \
1635 src/test/test-ns.c
1636
1637 test_ns_CFLAGS = \
1638 $(AM_CFLAGS) \
1639 $(SECCOMP_CFLAGS)
1640
1641 test_ns_LDADD = \
1642 libcore.la
1643
1644 test_loopback_SOURCES = \
1645 src/test/test-loopback.c
1646
1647 test_loopback_LDADD = \
1648 libcore.la
1649
1650 test_hostname_SOURCES = \
1651 src/test/test-hostname.c
1652
1653 test_hostname_LDADD = \
1654 libcore.la
1655
1656 test_dns_domain_SOURCES = \
1657 src/test/test-dns-domain.c
1658
1659 test_dns_domain_LDADD = \
1660 libsystemd-network.la \
1661 libshared.la
1662
1663 if ENABLE_EFI
1664 manual_tests += \
1665 test-boot-timestamp
1666
1667 test_boot_timestamp_SOURCES = \
1668 src/test/test-boot-timestamps.c
1669
1670 test_boot_timestamp_LDADD = \
1671 libshared.la
1672 endif
1673
1674 test_unit_name_SOURCES = \
1675 src/test/test-unit-name.c
1676
1677 test_unit_name_CFLAGS = \
1678 $(AM_CFLAGS) \
1679 $(SECCOMP_CFLAGS) \
1680 $(MOUNT_CFLAGS)
1681
1682 test_unit_name_LDADD = \
1683 libcore.la
1684
1685 test_unit_file_SOURCES = \
1686 src/test/test-unit-file.c
1687
1688 test_unit_file_CFLAGS = \
1689 $(AM_CFLAGS) \
1690 $(SECCOMP_CFLAGS) \
1691 $(MOUNT_CFLAGS)
1692
1693 test_unit_file_LDADD = \
1694 libcore.la
1695
1696 test_utf8_SOURCES = \
1697 src/test/test-utf8.c
1698
1699 test_utf8_LDADD = \
1700 libshared.la
1701
1702 test_capability_SOURCES = \
1703 src/test/test-capability.c
1704
1705 test_capability_LDADD = \
1706 libshared.la
1707
1708 test_async_SOURCES = \
1709 src/test/test-async.c
1710
1711 test_async_LDADD = \
1712 libshared.la
1713
1714 test_locale_util_SOURCES = \
1715 src/test/test-locale-util.c
1716
1717 test_locale_util_LDADD = \
1718 libshared.la
1719
1720 test_copy_SOURCES = \
1721 src/test/test-copy.c
1722
1723 test_copy_LDADD = \
1724 libshared.la
1725
1726 test_sigbus_SOURCES = \
1727 src/test/test-sigbus.c
1728
1729 test_sigbus_LDADD = \
1730 libshared.la
1731
1732 test_condition_SOURCES = \
1733 src/test/test-condition.c
1734
1735 test_condition_LDADD = \
1736 libshared.la
1737
1738 test_fdset_SOURCES = \
1739 src/test/test-fdset.c
1740
1741 test_fdset_LDADD = \
1742 libshared.la
1743
1744 test_fstab_util_SOURCES = \
1745 src/test/test-fstab-util.c
1746
1747 test_fstab_util_LDADD = \
1748 libshared.la
1749
1750 test_ratelimit_SOURCES = \
1751 src/test/test-ratelimit.c
1752
1753 test_ratelimit_LDADD = \
1754 libshared.la
1755
1756 test_util_SOURCES = \
1757 src/test/test-util.c
1758
1759 test_util_LDADD = \
1760 libshared.la
1761
1762 test_string_util_SOURCES = \
1763 src/test/test-string-util.c
1764
1765 test_string_util_LDADD = \
1766 libshared.la
1767
1768 test_extract_word_SOURCES = \
1769 src/test/test-extract-word.c
1770
1771 test_extract_word_LDADD = \
1772 libshared.la
1773
1774 test_parse_util_SOURCES = \
1775 src/test/test-parse-util.c
1776
1777 test_parse_util_LDADD = \
1778 libshared.la
1779
1780 test_user_util_SOURCES = \
1781 src/test/test-user-util.c
1782
1783 test_user_util_LDADD = \
1784 libshared.la
1785
1786 test_hostname_util_SOURCES = \
1787 src/test/test-hostname-util.c
1788
1789 test_hostname_util_LDADD = \
1790 libshared.la
1791
1792 test_process_util_SOURCES = \
1793 src/test/test-process-util.c
1794
1795 test_process_util_LDADD = \
1796 libshared.la
1797
1798 test_terminal_util_SOURCES = \
1799 src/test/test-terminal-util.c
1800
1801 test_terminal_util_LDADD = \
1802 libshared.la
1803
1804 test_path_lookup_SOURCES = \
1805 src/test/test-path-lookup.c
1806
1807 test_path_lookup_LDADD = \
1808 libshared.la
1809
1810 test_uid_range_SOURCES = \
1811 src/test/test-uid-range.c
1812
1813 test_uid_range_LDADD = \
1814 libshared.la
1815
1816 test_cap_list_SOURCES = \
1817 src/test/test-cap-list.c
1818
1819 test_cap_list_LDADD = \
1820 libshared.la
1821
1822 test_socket_util_SOURCES = \
1823 src/test/test-socket-util.c
1824
1825 test_socket_util_LDADD = \
1826 libshared.la
1827
1828 test_barrier_SOURCES = \
1829 src/test/test-barrier.c
1830
1831 test_barrier_LDADD = \
1832 libshared.la
1833
1834 test_tmpfiles_SOURCES = \
1835 src/test/test-tmpfiles.c
1836
1837 test_tmpfiles_LDADD = \
1838 libshared.la
1839
1840 test_namespace_SOURCES = \
1841 src/test/test-namespace.c
1842
1843 test_verbs_SOURCES = \
1844 src/test/test-verbs.c
1845
1846 test_verbs_LDADD = \
1847 libshared.la
1848
1849 test_install_root_SOURCES = \
1850 src/test/test-install-root.c
1851
1852 test_install_root_LDADD = \
1853 libshared.la
1854
1855 test_acl_util_SOURCES = \
1856 src/test/test-acl-util.c
1857
1858 test_acl_util_LDADD = \
1859 libshared.la
1860
1861 test_namespace_LDADD = \
1862 libcore.la
1863
1864 test_rlimit_util_SOURCES = \
1865 src/test/test-rlimit-util.c
1866
1867 test_rlimit_util_LDADD = \
1868 libshared.la
1869
1870 BUILT_SOURCES += \
1871 src/test/test-hashmap-ordered.c
1872
1873 src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c
1874 $(AM_V_at)$(MKDIR_P) $(dir $@)
1875 $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \
1876 { if (!match($$0, "^#include")) \
1877 gsub(/hashmap/, "ordered_hashmap"); \
1878 gsub(/HASHMAP/, "ORDERED_HASHMAP"); \
1879 gsub(/Hashmap/, "OrderedHashmap"); \
1880 print }' <$< >$@
1881
1882 nodist_test_hashmap_SOURCES = \
1883 src/test/test-hashmap-ordered.c
1884
1885 test_hashmap_SOURCES = \
1886 src/test/test-hashmap.c \
1887 src/test/test-hashmap-plain.c
1888
1889 test_hashmap_LDADD = \
1890 libshared.la
1891
1892 test_set_SOURCES = \
1893 src/test/test-set.c
1894
1895 test_set_LDADD = \
1896 libshared.la
1897
1898 test_bitmap_SOURCES = \
1899 src/test/test-bitmap.c
1900
1901 test_bitmap_LDADD = \
1902 libshared.la
1903
1904 test_xml_SOURCES = \
1905 src/test/test-xml.c
1906
1907 test_xml_LDADD = \
1908 libshared.la
1909
1910 test_json_SOURCES = \
1911 src/test/test-json.c
1912
1913 test_json_LDADD = \
1914 libshared.la
1915
1916 test_list_SOURCES = \
1917 src/test/test-list.c
1918
1919 test_list_LDADD = \
1920 libshared.la
1921
1922 test_unaligned_LDADD = \
1923 libshared.la
1924
1925 test_unaligned_SOURCES = \
1926 src/test/test-unaligned.c
1927
1928 test_tables_SOURCES = \
1929 src/test/test-tables.c \
1930 src/shared/test-tables.h \
1931 src/bus-proxyd/bus-xml-policy.c \
1932 src/bus-proxyd/bus-xml-policy.h \
1933 src/journal/journald-server.c \
1934 src/journal/journald-server.h
1935
1936 test_tables_CPPFLAGS = \
1937 $(AM_CPPFLAGS) \
1938 -I$(top_srcdir)/src/bus-proxyd
1939
1940 test_tables_CFLAGS = \
1941 $(AM_CFLAGS) \
1942 $(SECCOMP_CFLAGS) \
1943 $(MOUNT_CFLAGS)
1944
1945 test_tables_LDADD = \
1946 libjournal-core.la \
1947 libcore.la \
1948 libudev-core.la
1949
1950 test_prioq_SOURCES = \
1951 src/test/test-prioq.c
1952
1953 test_prioq_LDADD = \
1954 libshared.la
1955
1956 test_fileio_SOURCES = \
1957 src/test/test-fileio.c
1958
1959 test_fileio_LDADD = \
1960 libshared.la
1961
1962 test_time_SOURCES = \
1963 src/test/test-time.c
1964
1965 test_time_LDADD = \
1966 libshared.la
1967
1968 test_architecture_SOURCES = \
1969 src/test/test-architecture.c
1970
1971 test_architecture_LDADD = \
1972 libshared.la
1973
1974 test_log_SOURCES = \
1975 src/test/test-log.c
1976
1977 test_log_LDADD = \
1978 libshared.la
1979
1980 test_ipcrm_SOURCES = \
1981 src/test/test-ipcrm.c
1982
1983 test_ipcrm_LDADD = \
1984 libshared.la
1985
1986 test_btrfs_SOURCES = \
1987 src/test/test-btrfs.c
1988
1989 test_btrfs_LDADD = \
1990 libshared.la
1991
1992 if HAVE_LIBIPTC
1993 test_firewall_util_SOURCES = \
1994 src/test/test-firewall-util.c
1995
1996 test_firewall_util_CFLAGS = \
1997 $(AM_CFLAGS) \
1998 $(LIBIPTC_CFLAGS)
1999
2000 test_firewall_util_LDADD = \
2001 libfirewall.la \
2002 libshared.la \
2003 $(LIBIPTC_LIBS)
2004 endif
2005
2006 test_netlink_manual_SOURCES = \
2007 src/test/test-netlink-manual.c
2008
2009 test_netlink_manual_CFLAGS = \
2010 $(AM_CFLAGS) \
2011 $(KMOD_CFLAGS)
2012
2013 test_netlink_manual_LDADD = \
2014 libshared.la \
2015 $(KMOD_LIBS)
2016
2017 test_ellipsize_SOURCES = \
2018 src/test/test-ellipsize.c
2019
2020 test_ellipsize_LDADD = \
2021 libshared.la
2022
2023 test_date_SOURCES = \
2024 src/test/test-date.c
2025
2026 test_date_LDADD = \
2027 libshared.la
2028
2029 test_sleep_SOURCES = \
2030 src/test/test-sleep.c
2031
2032 test_sleep_LDADD = \
2033 libcore.la
2034
2035 test_replace_var_SOURCES = \
2036 src/test/test-replace-var.c
2037
2038 test_replace_var_LDADD = \
2039 libshared.la
2040
2041 test_calendarspec_SOURCES = \
2042 src/test/test-calendarspec.c
2043
2044 test_calendarspec_LDADD = \
2045 libshared.la
2046
2047 test_strip_tab_ansi_SOURCES = \
2048 src/test/test-strip-tab-ansi.c
2049
2050 test_strip_tab_ansi_LDADD = \
2051 libshared.la
2052
2053 test_daemon_SOURCES = \
2054 src/test/test-daemon.c
2055
2056 test_daemon_LDADD = \
2057 libshared.la
2058
2059 test_cgroup_SOURCES = \
2060 src/test/test-cgroup.c
2061
2062 test_cgroup_LDADD = \
2063 libshared.la
2064
2065 test_cgroup_mask_SOURCES = \
2066 src/test/test-cgroup-mask.c
2067
2068 test_cgroup_mask_CPPFLAGS = \
2069 $(AM_CPPFLAGS) \
2070 $(MOUNT_CFLAGS)
2071
2072 test_cgroup_mask_CFLAGS = \
2073 $(AM_CFLAGS) \
2074 $(SECCOMP_CFLAGS)
2075
2076 test_cgroup_mask_LDADD = \
2077 libcore.la
2078
2079 test_cgroup_util_SOURCES = \
2080 src/test/test-cgroup-util.c
2081
2082 test_cgroup_util_LDADD = \
2083 libshared.la
2084
2085 test_env_replace_SOURCES = \
2086 src/test/test-env-replace.c
2087
2088 test_env_replace_LDADD = \
2089 libshared.la
2090
2091 test_strbuf_SOURCES = \
2092 src/test/test-strbuf.c
2093
2094 test_strbuf_LDADD = \
2095 libshared.la
2096
2097 test_strv_SOURCES = \
2098 src/test/test-strv.c
2099
2100 test_strv_LDADD = \
2101 libshared.la
2102
2103 test_path_util_SOURCES = \
2104 src/test/test-path-util.c
2105
2106 test_path_util_LDADD = \
2107 libshared.la
2108
2109 test_path_SOURCES = \
2110 src/test/test-path.c
2111
2112 test_path_CFLAGS = \
2113 $(AM_CFLAGS) \
2114 $(MOUNT_CFLAGS)
2115
2116 test_path_LDADD = \
2117 libcore.la
2118
2119 test_execute_SOURCES = \
2120 src/test/test-execute.c
2121
2122 test_execute_CFLAGS = \
2123 $(AM_CFLAGS) \
2124 $(MOUNT_CFLAGS)
2125
2126 test_execute_LDADD = \
2127 libcore.la
2128
2129 test_siphash24_SOURCES = \
2130 src/test/test-siphash24.c
2131
2132 test_siphash24_LDADD = \
2133 libshared.la
2134
2135 test_strxcpyx_SOURCES = \
2136 src/test/test-strxcpyx.c
2137
2138 test_strxcpyx_LDADD = \
2139 libshared.la
2140
2141 test_install_SOURCES = \
2142 src/test/test-install.c
2143
2144 test_install_LDADD = \
2145 libshared.la
2146
2147 test_watchdog_SOURCES = \
2148 src/test/test-watchdog.c
2149
2150 test_watchdog_LDADD = \
2151 libshared.la
2152
2153 test_sched_prio_SOURCES = \
2154 src/test/test-sched-prio.c
2155
2156 test_sched_prio_CPPFLAGS = \
2157 $(AM_CPPFLAGS) \
2158 $(MOUNT_CFLAGS)
2159
2160 test_sched_prio_CFLAGS = \
2161 $(AM_CFLAGS) \
2162 $(SECCOMP_CFLAGS)
2163
2164 test_sched_prio_LDADD = \
2165 libcore.la
2166
2167 test_conf_files_SOURCES = \
2168 src/test/test-conf-files.c
2169
2170 test_conf_files_LDADD = \
2171 libshared.la
2172
2173 test_conf_parser_SOURCES = \
2174 src/test/test-conf-parser.c
2175
2176 test_conf_parser_LDADD = \
2177 libshared.la
2178
2179 test_bus_policy_SOURCES = \
2180 src/bus-proxyd/test-bus-xml-policy.c
2181
2182 test_bus_policy_LDADD = \
2183 libbus-proxy-core.la \
2184 libshared.la
2185
2186 test_af_list_SOURCES = \
2187 src/test/test-af-list.c
2188
2189 test_af_list_LDADD = \
2190 libbasic.la
2191
2192 test_arphrd_list_SOURCES = \
2193 src/test/test-arphrd-list.c
2194
2195 test_arphrd_list_LDADD = \
2196 libbasic.la
2197
2198 # ------------------------------------------------------------------------------
2199 ## .PHONY so it always rebuilds it
2200 .PHONY: coverage lcov-run lcov-report coverage-sync
2201
2202 # run lcov from scratch, always
2203 coverage: all
2204 $(MAKE) lcov-run
2205 $(MAKE) lcov-report
2206
2207 coverage_dir = coverage
2208 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
2209
2210 if ENABLE_COVERAGE
2211 # reset run coverage tests
2212 lcov-run:
2213 @rm -rf $(coverage_dir)
2214 lcov $(coverage_opts) --zerocounters
2215 -$(MAKE) check
2216
2217 # generate report based on current coverage data
2218 lcov-report:
2219 $(MKDIR_P) $(coverage_dir)
2220 lcov $(coverage_opts) --compat-libtool --capture --no-external \
2221 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
2222 lcov --remove $(coverage_dir)/.lcov.info --output-file $(coverage_dir)/.lcov-clean.info 'test-*'
2223 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov-clean.info
2224 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
2225
2226 # lcov doesn't work properly with vpath builds, make sure that bad
2227 # output is not uploaded by mistake.
2228 coverage-sync: coverage
2229 test "$(builddir)" = "$(srcdir)"
2230 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
2231
2232 else
2233 lcov-run lcov-report:
2234 echo "Need to reconfigure with --enable-coverage"
2235 endif
2236
2237 # ------------------------------------------------------------------------------
2238 systemd_analyze_SOURCES = \
2239 src/analyze/analyze.c \
2240 src/analyze/analyze-verify.c \
2241 src/analyze/analyze-verify.h
2242
2243 systemd_analyze_CFLAGS = \
2244 $(AM_CFLAGS) \
2245 $(SECCOMP_CFLAGS) \
2246 $(MOUNT_CFLAGS)
2247
2248 systemd_analyze_LDADD = \
2249 libcore.la
2250
2251 # ------------------------------------------------------------------------------
2252 systemd_initctl_SOURCES = \
2253 src/initctl/initctl.c
2254
2255 systemd_initctl_LDADD = \
2256 libshared.la
2257
2258 # ------------------------------------------------------------------------------
2259 systemd_update_utmp_SOURCES = \
2260 src/update-utmp/update-utmp.c
2261
2262 systemd_update_utmp_CFLAGS = \
2263 $(AM_CFLAGS) \
2264 $(AUDIT_CFLAGS)
2265
2266 systemd_update_utmp_LDADD = \
2267 libshared.la \
2268 $(AUDIT_LIBS)
2269
2270 # ------------------------------------------------------------------------------
2271 systemd_update_done_SOURCES = \
2272 src/update-done/update-done.c
2273
2274 systemd_update_done_LDADD = \
2275 libshared.la
2276
2277 # ------------------------------------------------------------------------------
2278 systemd_shutdown_SOURCES = \
2279 src/core/umount.c \
2280 src/core/umount.h \
2281 src/core/shutdown.c \
2282 src/core/mount-setup.c \
2283 src/core/mount-setup.h \
2284 src/core/killall.h \
2285 src/core/killall.c
2286
2287 systemd_shutdown_LDADD = \
2288 libshared.la
2289
2290 # ------------------------------------------------------------------------------
2291 if HAVE_KMOD
2292 systemd_modules_load_SOURCES = \
2293 src/modules-load/modules-load.c
2294
2295 systemd_modules_load_CFLAGS = \
2296 $(AM_CFLAGS) \
2297 $(KMOD_CFLAGS)
2298
2299 systemd_modules_load_LDADD = \
2300 libshared.la \
2301 $(KMOD_LIBS)
2302
2303 rootlibexec_PROGRAMS += \
2304 systemd-modules-load
2305
2306 nodist_systemunit_DATA += \
2307 units/systemd-modules-load.service
2308
2309 SYSINIT_TARGET_WANTS += \
2310 systemd-modules-load.service
2311
2312 if ENABLE_TMPFILES
2313 nodist_systemunit_DATA += \
2314 units/kmod-static-nodes.service
2315
2316 SYSINIT_TARGET_WANTS += \
2317 kmod-static-nodes.service
2318 endif
2319 endif
2320
2321 EXTRA_DIST += \
2322 units/systemd-modules-load.service.in \
2323 units/kmod-static-nodes.service.in
2324
2325 # ------------------------------------------------------------------------------
2326 if ENABLE_TMPFILES
2327 systemd_tmpfiles_SOURCES = \
2328 src/tmpfiles/tmpfiles.c
2329
2330 systemd_tmpfiles_LDADD = \
2331 libshared.la
2332
2333 rootbin_PROGRAMS += \
2334 systemd-tmpfiles
2335
2336 dist_systemunit_DATA += \
2337 units/systemd-tmpfiles-clean.timer
2338
2339 nodist_systemunit_DATA += \
2340 units/systemd-tmpfiles-setup-dev.service \
2341 units/systemd-tmpfiles-setup.service \
2342 units/systemd-tmpfiles-clean.service
2343
2344 nodist_tmpfiles_DATA = \
2345 tmpfiles.d/systemd.conf \
2346 tmpfiles.d/etc.conf
2347
2348 dist_tmpfiles_DATA = \
2349 tmpfiles.d/systemd-nologin.conf \
2350 tmpfiles.d/tmp.conf \
2351 tmpfiles.d/x11.conf \
2352 tmpfiles.d/var.conf \
2353 tmpfiles.d/home.conf \
2354 tmpfiles.d/systemd-nspawn.conf \
2355 tmpfiles.d/journal-nocow.conf
2356
2357 if HAVE_SYSV_COMPAT
2358 dist_tmpfiles_DATA += \
2359 tmpfiles.d/legacy.conf
2360 endif
2361
2362 SYSINIT_TARGET_WANTS += \
2363 systemd-tmpfiles-setup-dev.service \
2364 systemd-tmpfiles-setup.service
2365
2366 if ENABLE_ZSH_COMPLETION
2367 dist_zshcompletion_DATA += \
2368 shell-completion/zsh/_systemd-tmpfiles
2369 endif
2370
2371 TIMERS_TARGET_WANTS += \
2372 systemd-tmpfiles-clean.timer
2373
2374 INSTALL_DIRS += \
2375 $(tmpfilesdir) \
2376 $(sysconfdir)/tmpfiles.d
2377 endif
2378
2379 EXTRA_DIST += \
2380 tmpfiles.d/systemd.conf.m4 \
2381 tmpfiles.d/etc.conf.m4 \
2382 units/systemd-tmpfiles-setup-dev.service.in \
2383 units/systemd-tmpfiles-setup.service.in \
2384 units/systemd-tmpfiles-clean.service.in
2385
2386 # ------------------------------------------------------------------------------
2387 if ENABLE_SYSUSERS
2388 systemd_sysusers_SOURCES = \
2389 src/sysusers/sysusers.c
2390
2391 systemd_sysusers_LDADD = \
2392 libshared.la
2393
2394 rootbin_PROGRAMS += \
2395 systemd-sysusers
2396
2397 nodist_systemunit_DATA += \
2398 units/systemd-sysusers.service
2399
2400 SYSINIT_TARGET_WANTS += \
2401 systemd-sysusers.service
2402
2403 nodist_sysusers_DATA = \
2404 sysusers.d/systemd.conf \
2405 sysusers.d/basic.conf
2406
2407 INSTALL_DIRS += \
2408 $(sysusersdir)
2409 endif
2410
2411 EXTRA_DIST += \
2412 units/systemd-sysusers.service.in \
2413 sysusers.d/systemd.conf.m4 \
2414 sysusers.d/basic.conf.in
2415
2416 # ------------------------------------------------------------------------------
2417 dist_factory_etc_DATA = \
2418 factory/etc/nsswitch.conf
2419
2420 if HAVE_PAM
2421 dist_factory_pam_DATA = \
2422 factory/etc/pam.d/system-auth \
2423 factory/etc/pam.d/other
2424 endif
2425
2426 # ------------------------------------------------------------------------------
2427 if ENABLE_FIRSTBOOT
2428 systemd_firstboot_SOURCES = \
2429 src/firstboot/firstboot.c
2430
2431 systemd_firstboot_LDADD = \
2432 libshared.la \
2433 -lcrypt
2434
2435 rootbin_PROGRAMS += \
2436 systemd-firstboot
2437
2438 nodist_systemunit_DATA += \
2439 units/systemd-firstboot.service
2440
2441 SYSINIT_TARGET_WANTS += \
2442 systemd-firstboot.service
2443 endif
2444
2445 EXTRA_DIST += \
2446 units/systemd-firstboot.service.in
2447
2448 # ------------------------------------------------------------------------------
2449 systemd_machine_id_setup_SOURCES = \
2450 src/machine-id-setup/machine-id-setup-main.c \
2451 src/core/machine-id-setup.c \
2452 src/core/machine-id-setup.h
2453
2454 systemd_machine_id_setup_LDADD = \
2455 libshared.la
2456
2457 SYSINIT_TARGET_WANTS += \
2458 systemd-machine-id-commit.service
2459
2460 # ------------------------------------------------------------------------------
2461 systemd_sysctl_SOURCES = \
2462 src/sysctl/sysctl.c
2463
2464 systemd_sysctl_LDADD = \
2465 libshared.la
2466
2467 # ------------------------------------------------------------------------------
2468 systemd_sleep_SOURCES = \
2469 src/sleep/sleep.c
2470
2471 systemd_sleep_LDADD = \
2472 libshared.la
2473
2474 # ------------------------------------------------------------------------------
2475 systemd_fsck_SOURCES = \
2476 src/fsck/fsck.c
2477
2478 systemd_fsck_LDADD = \
2479 libshared.la
2480
2481 # ------------------------------------------------------------------------------
2482 systemd_ac_power_SOURCES = \
2483 src/ac-power/ac-power.c
2484
2485 systemd_ac_power_LDADD = \
2486 libshared.la
2487
2488 # ------------------------------------------------------------------------------
2489 systemd_detect_virt_SOURCES = \
2490 src/detect-virt/detect-virt.c
2491
2492 systemd_detect_virt_LDADD = \
2493 libshared.la
2494
2495 INSTALL_EXEC_HOOKS += \
2496 systemd-detect-virt-install-hook
2497
2498 # ------------------------------------------------------------------------------
2499 systemd_delta_SOURCES = \
2500 src/delta/delta.c
2501
2502 systemd_delta_LDADD = \
2503 libshared.la
2504
2505 # ------------------------------------------------------------------------------
2506 systemd_getty_generator_SOURCES = \
2507 src/getty-generator/getty-generator.c
2508
2509 systemd_getty_generator_LDADD = \
2510 libshared.la
2511
2512 # ------------------------------------------------------------------------------
2513 systemd_debug_generator_SOURCES = \
2514 src/debug-generator/debug-generator.c
2515
2516 systemd_debug_generator_LDADD = \
2517 libshared.la
2518
2519 # ------------------------------------------------------------------------------
2520 systemd_fstab_generator_SOURCES = \
2521 src/fstab-generator/fstab-generator.c \
2522 src/core/mount-setup.c
2523
2524 systemd_fstab_generator_LDADD = \
2525 libshared.la
2526
2527 # ------------------------------------------------------------------------------
2528 systemd_system_update_generator_SOURCES = \
2529 src/system-update-generator/system-update-generator.c
2530
2531 systemd_system_update_generator_LDADD = \
2532 libshared.la
2533
2534 # ------------------------------------------------------------------------------
2535 if ENABLE_HIBERNATE
2536 systemgenerator_PROGRAMS += \
2537 systemd-hibernate-resume-generator
2538
2539 rootlibexec_PROGRAMS += \
2540 systemd-hibernate-resume
2541
2542 systemd_hibernate_resume_SOURCES = \
2543 src/hibernate-resume/hibernate-resume.c
2544
2545 systemd_hibernate_resume_LDADD = \
2546 libshared.la
2547
2548 systemd_hibernate_resume_generator_SOURCES = \
2549 src/hibernate-resume/hibernate-resume-generator.c
2550
2551 systemd_hibernate_resume_generator_LDADD = \
2552 libshared.la
2553
2554 dist_systemunit_DATA += \
2555 units/hibernate.target \
2556 units/hybrid-sleep.target
2557
2558 nodist_systemunit_DATA += \
2559 units/systemd-hibernate.service \
2560 units/systemd-hibernate-resume@.service \
2561 units/systemd-hybrid-sleep.service
2562 endif
2563
2564 EXTRA_DIST += \
2565 units/systemd-hibernate.service.in \
2566 units/systemd-hibernate-resume@.service.in \
2567 units/systemd-hybrid-sleep.service.in
2568
2569 # ------------------------------------------------------------------------------
2570 if ENABLE_EFI
2571 if HAVE_BLKID
2572 bootctl_SOURCES = \
2573 src/boot/bootctl.c
2574
2575 bootctl_CPPFLAGS = \
2576 $(AM_CPPFLAGS) \
2577 -DEFI_MACHINE_TYPE_NAME=\"$(EFI_MACHINE_TYPE_NAME)\" \
2578 -DBOOTLIBDIR=\"$(bootlibdir)\"
2579
2580 bootctl_CFLAGS = \
2581 $(AM_CFLAGS) \
2582 $(BLKID_CFLAGS)
2583
2584 bootctl_LDADD = \
2585 libshared.la \
2586 $(BLKID_LIBS)
2587
2588 bin_PROGRAMS += \
2589 bootctl
2590
2591 if ENABLE_BASH_COMPLETION
2592 dist_bashcompletion_DATA += \
2593 shell-completion/bash/bootctl
2594 endif
2595
2596 if ENABLE_ZSH_COMPLETION
2597 dist_zshcompletion_DATA += \
2598 shell-completion/zsh/_bootctl
2599 endif
2600 endif
2601
2602 # ------------------------------------------------------------------------------
2603 if HAVE_GNUEFI
2604 efi_cppflags = \
2605 $(EFI_CPPFLAGS) \
2606 -I$(top_builddir) -include config.h \
2607 -I$(EFI_INC_DIR)/efi \
2608 -I$(EFI_INC_DIR)/efi/$(EFI_ARCH) \
2609 -DEFI_MACHINE_TYPE_NAME=\"$(EFI_MACHINE_TYPE_NAME)\"
2610
2611 efi_cflags = \
2612 $(EFI_CFLAGS) \
2613 -Wall \
2614 -Wextra \
2615 -std=gnu90 \
2616 -nostdinc \
2617 -ggdb -O0 \
2618 -fpic \
2619 -fshort-wchar \
2620 -nostdinc \
2621 -ffreestanding \
2622 -fno-strict-aliasing \
2623 -fno-stack-protector \
2624 -Wsign-compare \
2625 -Wno-missing-field-initializers
2626
2627 if ARCH_X86_64
2628 efi_cflags += \
2629 -mno-red-zone \
2630 -mno-sse \
2631 -mno-mmx \
2632 -DEFI_FUNCTION_WRAPPER \
2633 -DGNU_EFI_USE_MS_ABI
2634 endif
2635
2636 if ARCH_IA32
2637 efi_cflags += \
2638 -mno-sse \
2639 -mno-mmx
2640 endif
2641
2642 efi_ldflags = \
2643 $(EFI_LDFLAGS) \
2644 -T $(EFI_LDS_DIR)/elf_$(EFI_ARCH)_efi.lds \
2645 -shared \
2646 -Bsymbolic \
2647 -nostdlib \
2648 -znocombreloc \
2649 -L $(EFI_LIB_DIR) \
2650 $(EFI_LDS_DIR)/crt0-efi-$(EFI_ARCH).o
2651
2652 # Aarch64 and ARM32 don't have an EFI capable objcopy. Use 'binary' instead,
2653 # and add required symbols manually.
2654 if ARCH_AARCH64
2655 efi_ldflags += --defsym=EFI_SUBSYSTEM=0xa
2656 EFI_FORMAT = -O binary
2657 else
2658 EFI_FORMAT = --target=efi-app-$(EFI_ARCH)
2659 endif
2660 endif
2661 endif
2662
2663 # ------------------------------------------------------------------------------
2664 systemd_boot_headers = \
2665 src/boot/efi/util.h \
2666 src/boot/efi/console.h \
2667 src/boot/efi/graphics.h \
2668 src/boot/efi/pefile.h \
2669 src/boot/efi/disk.h
2670
2671 systemd_boot_sources = \
2672 src/boot/efi/util.c \
2673 src/boot/efi/console.c \
2674 src/boot/efi/graphics.c \
2675 src/boot/efi/pefile.c \
2676 src/boot/efi/disk.c \
2677 src/boot/efi/boot.c
2678
2679 EXTRA_DIST += $(systemd_boot_sources) $(systemd_boot_headers)
2680
2681 if ENABLE_EFI
2682 if HAVE_GNUEFI
2683 systemd_boot_objects = $(addprefix $(top_builddir)/,$(systemd_boot_sources:.c=.o))
2684 systemd_boot_solib = $(top_builddir)/src/boot/efi/systemd_boot.so
2685 systemd_boot = systemd-boot$(EFI_MACHINE_TYPE_NAME).efi
2686
2687 bootlib_DATA = $(systemd_boot)
2688 CLEANFILES += $(systemd_boot_objects) $(systemd_boot_solib) $(systemd_boot)
2689
2690 $(top_builddir)/src/boot/efi/%.o: $(top_srcdir)/src/boot/efi/%.c $(addprefix $(top_srcdir)/,$(systemd_boot_headers))
2691 @$(MKDIR_P) $(top_builddir)/src/boot/efi/
2692 $(AM_V_CC)$(EFI_CC) $(efi_cppflags) $(efi_cflags) -c $< -o $@
2693
2694 $(systemd_boot_solib): $(systemd_boot_objects)
2695 $(AM_V_CCLD)$(LD) $(efi_ldflags) $(systemd_boot_objects) \
2696 -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name); \
2697 nm -D -u $@ | grep ' U ' && exit 1 || :
2698
2699 $(systemd_boot): $(systemd_boot_solib)
2700 $(AM_V_GEN)$(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic \
2701 -j .dynsym -j .rel -j .rela -j .reloc $(EFI_FORMAT) $< $@
2702 endif
2703 endif
2704
2705 # ------------------------------------------------------------------------------
2706 stub_headers = \
2707 src/boot/efi/util.h \
2708 src/boot/efi/pefile.h \
2709 src/boot/efi/disk.h \
2710 src/boot/efi/graphics.h \
2711 src/boot/efi/splash.h \
2712 src/boot/efi/linux.h
2713
2714 stub_sources = \
2715 src/boot/efi/util.c \
2716 src/boot/efi/pefile.c \
2717 src/boot/efi/disk.c \
2718 src/boot/efi/graphics.c \
2719 src/boot/efi/splash.c \
2720 src/boot/efi/linux.c \
2721 src/boot/efi/stub.c
2722
2723 EXTRA_DIST += \
2724 $(stub_sources) \
2725 $(stub_headers) \
2726 test/splash.bmp
2727
2728 if ENABLE_EFI
2729 if HAVE_GNUEFI
2730 stub_objects = $(addprefix $(top_builddir)/,$(stub_sources:.c=.o))
2731 stub_solib = $(top_builddir)/src/boot/efi/stub.so
2732 stub = linux$(EFI_MACHINE_TYPE_NAME).efi.stub
2733
2734 bootlib_DATA += $(stub)
2735 CLEANFILES += $(stub_objects) $(stub_solib) $(stub)
2736
2737 $(top_builddir)/src/boot/efi/%.o: $(top_srcdir)/src/boot/efi/%.c $(addprefix $(top_srcdir)/,$(stub_headers))
2738 @$(MKDIR_P) $(top_builddir)/src/boot/efi/
2739 $(AM_V_CC)$(EFI_CC) $(efi_cppflags) $(efi_cflags) -c $< -o $@
2740
2741 $(stub_solib): $(stub_objects)
2742 $(AM_V_CCLD)$(LD) $(efi_ldflags) $(stub_objects) \
2743 -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name); \
2744 nm -D -u $@ | grep ' U ' && exit 1 || :
2745
2746 $(stub): $(stub_solib)
2747 $(AM_V_GEN)$(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic \
2748 -j .dynsym -j .rel -j .rela -j .reloc $(EFI_FORMAT) $< $@
2749
2750 # ------------------------------------------------------------------------------
2751 CLEANFILES += test-efi-disk.img
2752
2753 test-efi-disk.img: $(systemd_boot) $(stub) test/test-efi-create-disk.sh
2754 $(AM_V_GEN)test/test-efi-create-disk.sh
2755
2756 test-efi: test-efi-disk.img
2757 $(QEMU) -machine accel=kvm -m 1024 -bios $(QEMU_BIOS) -snapshot test-efi-disk.img
2758 endif
2759 endif
2760
2761 EXTRA_DIST += test/test-efi-create-disk.sh
2762
2763 # ------------------------------------------------------------------------------
2764 if HAVE_BLKID
2765 systemgenerator_PROGRAMS += \
2766 systemd-gpt-auto-generator
2767
2768 systemd_gpt_auto_generator_SOURCES = \
2769 src/gpt-auto-generator/gpt-auto-generator.c \
2770 src/basic/blkid-util.h
2771
2772 systemd_gpt_auto_generator_LDADD = \
2773 libshared.la \
2774 $(BLKID_LIBS)
2775
2776 systemd_gpt_auto_generator_CFLAGS = \
2777 $(AM_CFLAGS) \
2778 $(BLKID_CFLAGS)
2779 endif
2780
2781 # ------------------------------------------------------------------------------
2782 systemgenerator_PROGRAMS += \
2783 systemd-dbus1-generator
2784
2785 systemd_dbus1_generator_SOURCES = \
2786 src/dbus1-generator/dbus1-generator.c
2787
2788 systemd_dbus1_generator_LDADD = \
2789 libshared.la
2790
2791 dbus1-generator-install-hook:
2792 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2793 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2794 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2795
2796 dbus1-generator-uninstall-hook:
2797 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2798
2799 dist_xinitrc_SCRIPTS = \
2800 xorg/50-systemd-user.sh
2801
2802 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2803 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2804
2805 # ------------------------------------------------------------------------------
2806 systemd_sysv_generator_SOURCES = \
2807 src/sysv-generator/sysv-generator.c
2808
2809 systemd_sysv_generator_LDADD = \
2810 libcore.la
2811
2812 # ------------------------------------------------------------------------------
2813 systemd_rc_local_generator_SOURCES = \
2814 src/rc-local-generator/rc-local-generator.c
2815
2816 systemd_rc_local_generator_LDADD = \
2817 libshared.la
2818
2819 # ------------------------------------------------------------------------------
2820 systemd_remount_fs_SOURCES = \
2821 src/remount-fs/remount-fs.c \
2822 src/core/mount-setup.c \
2823 src/core/mount-setup.h
2824
2825 systemd_remount_fs_LDADD = \
2826 libshared.la
2827
2828 # ------------------------------------------------------------------------------
2829 systemd_cgroups_agent_SOURCES = \
2830 src/cgroups-agent/cgroups-agent.c
2831
2832 systemd_cgroups_agent_LDADD = \
2833 libshared.la
2834
2835 # ------------------------------------------------------------------------------
2836 systemd_escape_SOURCES = \
2837 src/escape/escape.c
2838
2839 systemd_escape_LDADD = \
2840 libshared.la
2841
2842 # -----------------------------------------------------------------------------
2843 systemctl_SOURCES = \
2844 src/systemctl/systemctl.c
2845
2846 systemctl_LDADD = \
2847 libshared.la
2848
2849 # ------------------------------------------------------------------------------
2850 systemd_notify_SOURCES = \
2851 src/notify/notify.c
2852
2853 systemd_notify_LDADD = \
2854 libshared.la
2855
2856 # ------------------------------------------------------------------------------
2857 systemd_path_SOURCES = \
2858 src/path/path.c
2859
2860 systemd_path_LDADD = \
2861 libshared.la
2862
2863 # ------------------------------------------------------------------------------
2864 systemd_ask_password_SOURCES = \
2865 src/ask-password/ask-password.c
2866
2867 systemd_ask_password_LDADD = \
2868 libshared.la
2869
2870 # ------------------------------------------------------------------------------
2871 systemd_reply_password_SOURCES = \
2872 src/reply-password/reply-password.c
2873
2874 systemd_reply_password_LDADD = \
2875 libshared.la
2876
2877 # ------------------------------------------------------------------------------
2878 systemd_cgls_SOURCES = \
2879 src/cgls/cgls.c
2880
2881 systemd_cgls_LDADD = \
2882 libshared.la
2883
2884 # ------------------------------------------------------------------------------
2885 systemd_cgtop_SOURCES = \
2886 src/cgtop/cgtop.c
2887
2888 systemd_cgtop_LDADD = \
2889 libshared.la
2890
2891 # ------------------------------------------------------------------------------
2892 systemd_nspawn_SOURCES = \
2893 src/nspawn/nspawn.c \
2894 src/nspawn/nspawn-settings.c \
2895 src/nspawn/nspawn-settings.h \
2896 src/nspawn/nspawn-mount.c \
2897 src/nspawn/nspawn-mount.h \
2898 src/nspawn/nspawn-network.c \
2899 src/nspawn/nspawn-network.h \
2900 src/nspawn/nspawn-expose-ports.c \
2901 src/nspawn/nspawn-expose-ports.h \
2902 src/nspawn/nspawn-cgroup.c \
2903 src/nspawn/nspawn-cgroup.h \
2904 src/nspawn/nspawn-register.c \
2905 src/nspawn/nspawn-register.h \
2906 src/nspawn/nspawn-setuid.c \
2907 src/nspawn/nspawn-setuid.h \
2908 src/core/mount-setup.c \
2909 src/core/mount-setup.h \
2910 src/core/loopback-setup.c \
2911 src/core/loopback-setup.h
2912
2913 nodist_systemd_nspawn_SOURCES = \
2914 src/nspawn/nspawn-gperf.c
2915
2916 gperf_gperf_sources += \
2917 src/nspawn/nspawn-gperf.gperf
2918
2919 systemd_nspawn_CFLAGS = \
2920 $(AM_CFLAGS) \
2921 $(BLKID_CFLAGS) \
2922 $(SECCOMP_CFLAGS)
2923
2924 systemd_nspawn_LDADD = \
2925 libshared.la \
2926 $(BLKID_LIBS)
2927
2928 if HAVE_LIBIPTC
2929 systemd_nspawn_LDADD += \
2930 libfirewall.la
2931 endif
2932
2933 # ------------------------------------------------------------------------------
2934 systemd_run_SOURCES = \
2935 src/run/run.c
2936
2937 systemd_run_LDADD = \
2938 libshared.la
2939
2940 # ------------------------------------------------------------------------------
2941 noinst_LTLIBRARIES += \
2942 libbus-proxy-core.la
2943
2944 libbus_proxy_core_la_SOURCES = \
2945 src/bus-proxyd/bus-xml-policy.c \
2946 src/bus-proxyd/bus-xml-policy.h \
2947 src/bus-proxyd/driver.c \
2948 src/bus-proxyd/driver.h \
2949 src/bus-proxyd/proxy.c \
2950 src/bus-proxyd/proxy.h \
2951 src/bus-proxyd/synthesize.c \
2952 src/bus-proxyd/synthesize.h
2953
2954 libbus_proxy_core_la_LIBADD = \
2955 libshared.la
2956
2957 systemd_bus_proxyd_SOURCES = \
2958 src/bus-proxyd/bus-proxyd.c
2959
2960 systemd_bus_proxyd_LDADD = \
2961 libbus-proxy-core.la \
2962 libshared.la
2963
2964 systemd_stdio_bridge_SOURCES = \
2965 src/bus-proxyd/stdio-bridge.c
2966
2967 systemd_stdio_bridge_LDADD = \
2968 libbus-proxy-core.la \
2969 libshared.la
2970
2971 nodist_systemunit_DATA += \
2972 units/systemd-bus-proxyd.service
2973
2974 dist_systemunit_DATA += \
2975 units/systemd-bus-proxyd.socket
2976
2977 nodist_userunit_DATA += \
2978 units/user/systemd-bus-proxyd.service
2979
2980 dist_userunit_DATA += \
2981 units/user/systemd-bus-proxyd.socket
2982
2983 EXTRA_DIST += \
2984 units/systemd-bus-proxyd.service.m4.in \
2985 units/user/systemd-bus-proxyd.service.in
2986
2987 if HAVE_SMACK
2988 bus-proxyd-set-cap-hook:
2989 -$(SETCAP) cap_mac_admin+ei $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd
2990
2991 INSTALL_EXEC_HOOKS += bus-proxyd-set-cap-hook
2992 endif
2993
2994 # ------------------------------------------------------------------------------
2995 systemd_tty_ask_password_agent_SOURCES = \
2996 src/tty-ask-password-agent/tty-ask-password-agent.c
2997
2998 systemd_tty_ask_password_agent_LDADD = \
2999 libshared.la
3000
3001 # ------------------------------------------------------------------------------
3002 libsystemd_internal_la_SOURCES = \
3003 src/systemd/sd-bus.h \
3004 src/systemd/sd-bus-protocol.h \
3005 src/systemd/sd-bus-vtable.h \
3006 src/systemd/sd-utf8.h \
3007 src/systemd/sd-event.h \
3008 src/systemd/sd-netlink.h \
3009 src/systemd/sd-resolve.h \
3010 src/systemd/sd-login.h \
3011 src/systemd/sd-id128.h \
3012 src/systemd/sd-daemon.h \
3013 src/systemd/sd-path.h \
3014 src/systemd/sd-network.h \
3015 src/systemd/sd-hwdb.h \
3016 src/systemd/sd-device.h \
3017 src/libsystemd/libsystemd.sym \
3018 src/libsystemd/sd-bus/sd-bus.c \
3019 src/libsystemd/sd-bus/bus-control.c \
3020 src/libsystemd/sd-bus/bus-control.h \
3021 src/libsystemd/sd-bus/bus-error.c \
3022 src/libsystemd/sd-bus/bus-error.h \
3023 src/libsystemd/sd-bus/bus-common-errors.h \
3024 src/libsystemd/sd-bus/bus-common-errors.c \
3025 src/libsystemd/sd-bus/bus-internal.c \
3026 src/libsystemd/sd-bus/bus-internal.h \
3027 src/libsystemd/sd-bus/bus-socket.c \
3028 src/libsystemd/sd-bus/bus-socket.h \
3029 src/libsystemd/sd-bus/bus-kernel.c \
3030 src/libsystemd/sd-bus/bus-kernel.h \
3031 src/libsystemd/sd-bus/bus-container.c \
3032 src/libsystemd/sd-bus/bus-container.h \
3033 src/libsystemd/sd-bus/bus-message.c \
3034 src/libsystemd/sd-bus/bus-message.h \
3035 src/libsystemd/sd-bus/bus-creds.c \
3036 src/libsystemd/sd-bus/bus-creds.h \
3037 src/libsystemd/sd-bus/bus-signature.c \
3038 src/libsystemd/sd-bus/bus-signature.h \
3039 src/libsystemd/sd-bus/bus-type.c \
3040 src/libsystemd/sd-bus/bus-type.h \
3041 src/libsystemd/sd-bus/bus-match.c \
3042 src/libsystemd/sd-bus/bus-match.h \
3043 src/libsystemd/sd-bus/bus-bloom.c \
3044 src/libsystemd/sd-bus/bus-bloom.h \
3045 src/libsystemd/sd-bus/bus-introspect.c \
3046 src/libsystemd/sd-bus/bus-introspect.h \
3047 src/libsystemd/sd-bus/bus-objects.c \
3048 src/libsystemd/sd-bus/bus-objects.h \
3049 src/libsystemd/sd-bus/bus-gvariant.c \
3050 src/libsystemd/sd-bus/bus-gvariant.h \
3051 src/libsystemd/sd-bus/bus-convenience.c \
3052 src/libsystemd/sd-bus/bus-track.c \
3053 src/libsystemd/sd-bus/bus-track.h \
3054 src/libsystemd/sd-bus/bus-slot.c \
3055 src/libsystemd/sd-bus/bus-slot.h \
3056 src/libsystemd/sd-bus/bus-protocol.h \
3057 src/libsystemd/sd-bus/kdbus.h \
3058 src/libsystemd/sd-bus/bus-dump.c \
3059 src/libsystemd/sd-bus/bus-dump.h \
3060 src/libsystemd/sd-utf8/sd-utf8.c \
3061 src/libsystemd/sd-event/sd-event.c \
3062 src/libsystemd/sd-netlink/sd-netlink.c \
3063 src/libsystemd/sd-netlink/netlink-internal.h \
3064 src/libsystemd/sd-netlink/netlink-message.c \
3065 src/libsystemd/sd-netlink/netlink-socket.c \
3066 src/libsystemd/sd-netlink/rtnl-message.c \
3067 src/libsystemd/sd-netlink/netlink-types.h \
3068 src/libsystemd/sd-netlink/netlink-types.c \
3069 src/libsystemd/sd-netlink/netlink-util.h \
3070 src/libsystemd/sd-netlink/netlink-util.c \
3071 src/libsystemd/sd-netlink/local-addresses.h \
3072 src/libsystemd/sd-netlink/local-addresses.c \
3073 src/libsystemd/sd-id128/sd-id128.c \
3074 src/libsystemd/sd-daemon/sd-daemon.c \
3075 src/libsystemd/sd-login/sd-login.c \
3076 src/libsystemd/sd-path/sd-path.c \
3077 src/libsystemd/sd-network/sd-network.c \
3078 src/libsystemd/sd-network/network-util.h \
3079 src/libsystemd/sd-network/network-util.c \
3080 src/libsystemd/sd-hwdb/sd-hwdb.c \
3081 src/libsystemd/sd-hwdb/hwdb-util.h \
3082 src/libsystemd/sd-hwdb/hwdb-internal.h \
3083 src/libsystemd/sd-device/device-internal.h \
3084 src/libsystemd/sd-device/device-util.h \
3085 src/libsystemd/sd-device/device-enumerator.c \
3086 src/libsystemd/sd-device/device-enumerator-private.h \
3087 src/libsystemd/sd-device/sd-device.c \
3088 src/libsystemd/sd-device/device-private.c \
3089 src/libsystemd/sd-device/device-private.h \
3090 src/libsystemd/sd-resolve/sd-resolve.c
3091
3092 libsystemd_internal_la_LIBADD = \
3093 libbasic.la \
3094 -lresolv
3095
3096 noinst_LTLIBRARIES += \
3097 libsystemd-internal.la
3098
3099 EXTRA_DIST += \
3100 src/libsystemd/libsystemd.pc.in \
3101 src/libsystemd/sd-bus/DIFFERENCES \
3102 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
3103
3104 libsystemd_la_SOURCES = \
3105 $(libsystemd_internal_la_SOURCES) \
3106 $(libsystemd_journal_internal_la_SOURCES)
3107
3108 nodist_libsystemd_la_SOURCES = \
3109 $(nodist_libsystemd_internal_la_SOURCES)
3110
3111 libsystemd_la_CFLAGS = \
3112 $(libsystemd_internal_la_CFLAGS) \
3113 $(libsystemd_journal_internal_la_CFLAGS)
3114
3115 libsystemd_la_LDFLAGS = \
3116 $(AM_LDFLAGS) \
3117 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
3118 -Wl,--version-script=$(top_srcdir)/src/libsystemd/libsystemd.sym
3119
3120 libsystemd_la_LIBADD = \
3121 $(libsystemd_internal_la_LIBADD) \
3122 $(libsystemd_journal_internal_la_LIBADD)
3123
3124 libsystemd-install-hook:
3125 libname=libsystemd.so && $(move-to-rootlibdir)
3126
3127 libsystemd-uninstall-hook:
3128 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
3129
3130 INSTALL_EXEC_HOOKS += libsystemd-install-hook
3131 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
3132
3133 pkgconfiglib_DATA += \
3134 src/libsystemd/libsystemd.pc
3135
3136 pkginclude_HEADERS += \
3137 src/systemd/sd-bus.h \
3138 src/systemd/sd-bus-protocol.h \
3139 src/systemd/sd-bus-vtable.h \
3140 src/systemd/sd-event.h \
3141 src/systemd/sd-login.h \
3142 src/systemd/sd-id128.h \
3143 src/systemd/sd-daemon.h
3144
3145 lib_LTLIBRARIES += \
3146 libsystemd.la
3147
3148 tests += \
3149 test-bus-marshal \
3150 test-bus-signature \
3151 test-bus-benchmark \
3152 test-bus-chat \
3153 test-bus-cleanup \
3154 test-bus-server \
3155 test-bus-match \
3156 test-bus-proxy \
3157 test-bus-kernel \
3158 test-bus-kernel-bloom \
3159 test-bus-zero-copy \
3160 test-bus-introspect \
3161 test-bus-objects \
3162 test-bus-error \
3163 test-bus-creds \
3164 test-bus-gvariant \
3165 test-event \
3166 test-netlink \
3167 test-local-addresses \
3168 test-resolve
3169
3170 bin_PROGRAMS += \
3171 busctl
3172
3173 test_bus_marshal_SOURCES = \
3174 src/libsystemd/sd-bus/test-bus-marshal.c
3175
3176 test_bus_marshal_LDADD = \
3177 libshared.la \
3178 $(GLIB_LIBS) \
3179 $(DBUS_LIBS)
3180
3181 test_bus_marshal_CFLAGS = \
3182 $(AM_CFLAGS) \
3183 $(GLIB_CFLAGS) \
3184 $(DBUS_CFLAGS)
3185
3186 test_bus_signature_SOURCES = \
3187 src/libsystemd/sd-bus/test-bus-signature.c
3188
3189 test_bus_signature_LDADD = \
3190 libshared.la
3191
3192 test_bus_chat_SOURCES = \
3193 src/libsystemd/sd-bus/test-bus-chat.c
3194
3195 test_bus_chat_LDADD = \
3196 libshared.la
3197
3198 test_bus_cleanup_SOURCES = \
3199 src/libsystemd/sd-bus/test-bus-cleanup.c
3200
3201 test_bus_cleanup_CFLAGS = \
3202 $(AM_CFLAGS) \
3203 $(SECCOMP_CFLAGS)
3204
3205 test_bus_cleanup_LDADD = \
3206 libshared.la
3207
3208 test_bus_server_SOURCES = \
3209 src/libsystemd/sd-bus/test-bus-server.c
3210
3211 test_bus_server_LDADD = \
3212 libshared.la
3213
3214 test_bus_objects_SOURCES = \
3215 src/libsystemd/sd-bus/test-bus-objects.c
3216
3217 test_bus_objects_LDADD = \
3218 libshared.la
3219
3220 test_bus_error_SOURCES = \
3221 src/libsystemd/sd-bus/test-bus-error.c
3222
3223 test_bus_error_LDADD = \
3224 libshared.la
3225
3226 test_bus_gvariant_SOURCES = \
3227 src/libsystemd/sd-bus/test-bus-gvariant.c
3228
3229 test_bus_gvariant_LDADD = \
3230 libshared.la \
3231 $(GLIB_LIBS)
3232
3233 test_bus_gvariant_CFLAGS = \
3234 $(AM_CFLAGS) \
3235 $(GLIB_CFLAGS)
3236
3237 test_bus_creds_SOURCES = \
3238 src/libsystemd/sd-bus/test-bus-creds.c
3239
3240 test_bus_creds_LDADD = \
3241 libshared.la
3242
3243 test_bus_match_SOURCES = \
3244 src/libsystemd/sd-bus/test-bus-match.c
3245
3246 test_bus_match_LDADD = \
3247 libshared.la
3248
3249 test_bus_proxy_SOURCES = \
3250 src/libsystemd/sd-bus/test-bus-proxy.c
3251
3252 test_bus_proxy_LDADD = \
3253 libshared.la
3254
3255 test_bus_kernel_SOURCES = \
3256 src/libsystemd/sd-bus/test-bus-kernel.c
3257
3258 test_bus_kernel_LDADD = \
3259 libshared.la
3260
3261 test_bus_kernel_bloom_SOURCES = \
3262 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
3263
3264 test_bus_kernel_bloom_LDADD = \
3265 libshared.la
3266
3267 test_bus_benchmark_SOURCES = \
3268 src/libsystemd/sd-bus/test-bus-benchmark.c
3269
3270 test_bus_benchmark_LDADD = \
3271 libshared.la
3272
3273 test_bus_zero_copy_SOURCES = \
3274 src/libsystemd/sd-bus/test-bus-zero-copy.c
3275
3276 test_bus_zero_copy_LDADD = \
3277 libshared.la
3278
3279 test_bus_introspect_SOURCES = \
3280 src/libsystemd/sd-bus/test-bus-introspect.c
3281
3282 test_bus_introspect_LDADD = \
3283 libshared.la
3284
3285 test_event_SOURCES = \
3286 src/libsystemd/sd-event/test-event.c
3287
3288 test_event_LDADD = \
3289 libshared.la
3290
3291 test_netlink_SOURCES = \
3292 src/libsystemd/sd-netlink/test-netlink.c
3293
3294 test_netlink_LDADD = \
3295 libshared.la
3296
3297 test_local_addresses_SOURCES = \
3298 src/libsystemd/sd-netlink/test-local-addresses.c
3299
3300 test_local_addresses_LDADD = \
3301 libshared.la
3302
3303 test_resolve_SOURCES = \
3304 src/libsystemd/sd-resolve/test-resolve.c
3305
3306 test_resolve_LDADD = \
3307 libshared.la
3308
3309 busctl_SOURCES = \
3310 src/libsystemd/sd-bus/busctl.c \
3311 src/libsystemd/sd-bus/busctl-introspect.c \
3312 src/libsystemd/sd-bus/busctl-introspect.h
3313
3314 busctl_LDADD = \
3315 libshared.la
3316
3317 # ------------------------------------------------------------------------------
3318 noinst_LTLIBRARIES += \
3319 libsystemd-network.la
3320
3321 libsystemd_network_la_CFLAGS = \
3322 $(AM_CFLAGS) \
3323 $(KMOD_CFLAGS)
3324
3325 libsystemd_network_la_SOURCES = \
3326 src/systemd/sd-dhcp-client.h \
3327 src/systemd/sd-dhcp-server.h \
3328 src/systemd/sd-dhcp-lease.h \
3329 src/systemd/sd-ipv4ll.h \
3330 src/systemd/sd-ipv4acd.h \
3331 src/systemd/sd-ndisc.h \
3332 src/systemd/sd-dhcp6-client.h \
3333 src/systemd/sd-dhcp6-lease.h \
3334 src/systemd/sd-lldp.h \
3335 src/libsystemd-network/sd-dhcp-client.c \
3336 src/libsystemd-network/sd-dhcp-server.c \
3337 src/libsystemd-network/dhcp-network.c \
3338 src/libsystemd-network/dhcp-option.c \
3339 src/libsystemd-network/dhcp-packet.c \
3340 src/libsystemd-network/dhcp-internal.h \
3341 src/libsystemd-network/dhcp-server-internal.h \
3342 src/libsystemd-network/dhcp-protocol.h \
3343 src/libsystemd-network/dhcp-lease-internal.h \
3344 src/libsystemd-network/sd-dhcp-lease.c \
3345 src/libsystemd-network/sd-ipv4ll.c \
3346 src/libsystemd-network/sd-ipv4acd.c \
3347 src/libsystemd-network/arp-util.h \
3348 src/libsystemd-network/arp-util.c \
3349 src/libsystemd-network/network-internal.c \
3350 src/libsystemd-network/network-internal.h \
3351 src/libsystemd-network/sd-ndisc.c \
3352 src/libsystemd-network/icmp6-util.h \
3353 src/libsystemd-network/icmp6-util.c \
3354 src/libsystemd-network/sd-dhcp6-client.c \
3355 src/libsystemd-network/dhcp6-internal.h \
3356 src/libsystemd-network/dhcp6-protocol.h \
3357 src/libsystemd-network/dhcp6-network.c \
3358 src/libsystemd-network/dhcp6-option.c \
3359 src/libsystemd-network/dhcp6-lease-internal.h \
3360 src/libsystemd-network/sd-dhcp6-lease.c \
3361 src/libsystemd-network/dhcp-identifier.h \
3362 src/libsystemd-network/dhcp-identifier.c \
3363 src/libsystemd-network/lldp.h \
3364 src/libsystemd-network/lldp-tlv.h \
3365 src/libsystemd-network/lldp-tlv.c \
3366 src/libsystemd-network/lldp-network.h \
3367 src/libsystemd-network/lldp-network.c \
3368 src/libsystemd-network/lldp-port.h \
3369 src/libsystemd-network/lldp-port.c \
3370 src/libsystemd-network/lldp-internal.h \
3371 src/libsystemd-network/lldp-internal.c \
3372 src/libsystemd-network/sd-lldp.c
3373
3374 libsystemd_network_la_LIBADD = \
3375 $(KMOD_LIBS)
3376
3377 test_dhcp_option_SOURCES = \
3378 src/libsystemd-network/dhcp-protocol.h \
3379 src/libsystemd-network/dhcp-internal.h \
3380 src/libsystemd-network/test-dhcp-option.c
3381
3382 test_dhcp_option_LDADD = \
3383 libsystemd-network.la \
3384 libshared.la
3385
3386 test_dhcp_client_SOURCES = \
3387 src/systemd/sd-dhcp-client.h \
3388 src/libsystemd-network/dhcp-protocol.h \
3389 src/libsystemd-network/dhcp-internal.h \
3390 src/libsystemd-network/test-dhcp-client.c
3391
3392 test_dhcp_client_LDADD = \
3393 libsystemd-network.la \
3394 libshared.la
3395
3396 test_dhcp_server_SOURCES = \
3397 src/libsystemd-network/test-dhcp-server.c
3398
3399 test_dhcp_server_LDADD = \
3400 libsystemd-network.la \
3401 libshared.la
3402
3403 test_ipv4ll_SOURCES = \
3404 src/systemd/sd-ipv4ll.h \
3405 src/libsystemd-network/arp-util.h \
3406 src/libsystemd-network/test-ipv4ll.c
3407
3408 test_ipv4ll_LDADD = \
3409 libsystemd-network.la \
3410 libshared.la
3411
3412 test_ipv4ll_manual_SOURCES = \
3413 src/systemd/sd-ipv4ll.h \
3414 src/libsystemd-network/test-ipv4ll-manual.c
3415
3416 test_ipv4ll_manual_LDADD = \
3417 libsystemd-network.la \
3418 libshared.la
3419
3420 test_acd_SOURCES = \
3421 src/systemd/sd-ipv4acd.h \
3422 src/libsystemd-network/test-acd.c
3423
3424 test_acd_LDADD = \
3425 libsystemd-network.la \
3426 libshared.la
3427
3428 test_ndisc_rs_SOURCES = \
3429 src/systemd/sd-dhcp6-client.h \
3430 src/systemd/sd-ndisc.h \
3431 src/libsystemd-network/icmp6-util.h \
3432 src/libsystemd-network/test-ndisc-rs.c \
3433 src/libsystemd-network/dhcp-identifier.h \
3434 src/libsystemd-network/dhcp-identifier.c
3435
3436 test_ndisc_rs_LDADD = \
3437 libsystemd-network.la \
3438 libudev.la \
3439 libshared.la
3440
3441 test_dhcp6_client_SOURCES = \
3442 src/systemd/sd-dhcp6-client.h \
3443 src/libsystemd-network/dhcp6-internal.h \
3444 src/libsystemd-network/test-dhcp6-client.c \
3445 src/libsystemd-network/dhcp-identifier.h \
3446 src/libsystemd-network/dhcp-identifier.c
3447
3448 test_dhcp6_client_LDADD = \
3449 libsystemd-network.la \
3450 libudev.la \
3451 libshared.la
3452
3453 test_lldp_SOURCES = \
3454 src/libsystemd-network/lldp.h \
3455 src/libsystemd-network/lldp-tlv.h \
3456 src/libsystemd-network/lldp-tlv.c \
3457 src/libsystemd-network/test-lldp.c
3458
3459 test_lldp_LDADD = \
3460 libsystemd-network.la \
3461 libshared.la
3462
3463 tests += \
3464 test-dhcp-option \
3465 test-dhcp-client \
3466 test-dhcp-server \
3467 test-ipv4ll \
3468 test-ndisc-rs \
3469 test-dhcp6-client \
3470 test-lldp
3471
3472 # ------------------------------------------------------------------------------
3473 include_HEADERS += \
3474 src/libudev/libudev.h
3475
3476 lib_LTLIBRARIES += \
3477 libudev.la
3478
3479 libudev_la_SOURCES =\
3480 src/libudev/libudev.sym \
3481 src/libudev/libudev-private.h \
3482 src/libudev/libudev-device-internal.h \
3483 src/libudev/libudev.c \
3484 src/libudev/libudev-list.c \
3485 src/libudev/libudev-util.c \
3486 src/libudev/libudev-device.c \
3487 src/libudev/libudev-device-private.c \
3488 src/libudev/libudev-enumerate.c \
3489 src/libudev/libudev-monitor.c \
3490 src/libudev/libudev-queue.c \
3491 src/libudev/libudev-hwdb.c
3492
3493 libudev_la_LDFLAGS = \
3494 $(AM_LDFLAGS) \
3495 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3496 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3497
3498 libudev_la_LIBADD = \
3499 libsystemd-internal.la
3500
3501 pkgconfiglib_DATA += \
3502 src/libudev/libudev.pc
3503
3504 EXTRA_DIST += \
3505 src/libudev/libudev.pc.in
3506
3507 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3508 libudev-install-hook:
3509 libname=libudev.so && $(move-to-rootlibdir)
3510
3511 libudev-uninstall-hook:
3512 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3513
3514 INSTALL_EXEC_HOOKS += libudev-install-hook
3515 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3516
3517 # ------------------------------------------------------------------------------
3518 noinst_LTLIBRARIES += \
3519 libudev-internal.la
3520
3521 libudev_internal_la_SOURCES =\
3522 $(libudev_la_SOURCES)
3523
3524 # ------------------------------------------------------------------------------
3525 INSTALL_DIRS += \
3526 $(sysconfdir)/udev/rules.d
3527
3528 dist_network_DATA = \
3529 network/99-default.link \
3530 network/80-container-host0.network \
3531 network/80-container-ve.network
3532
3533 dist_udevrules_DATA += \
3534 rules/50-udev-default.rules \
3535 rules/60-block.rules \
3536 rules/60-drm.rules \
3537 rules/60-evdev.rules \
3538 rules/60-persistent-storage-tape.rules \
3539 rules/60-persistent-input.rules \
3540 rules/60-persistent-alsa.rules \
3541 rules/60-persistent-storage.rules \
3542 rules/60-serial.rules \
3543 rules/64-btrfs.rules \
3544 rules/70-mouse.rules \
3545 rules/75-net-description.rules \
3546 rules/78-sound-card.rules \
3547 rules/80-net-setup-link.rules
3548
3549 nodist_udevrules_DATA += \
3550 rules/99-systemd.rules
3551
3552 udevconfdir = $(sysconfdir)/udev
3553 dist_udevconf_DATA = \
3554 src/udev/udev.conf
3555
3556 pkgconfigdata_DATA += \
3557 src/udev/udev.pc
3558
3559 EXTRA_DIST += \
3560 rules/99-systemd.rules.in \
3561 src/udev/udev.pc.in
3562
3563 EXTRA_DIST += \
3564 units/systemd-udevd.service.in \
3565 units/systemd-udev-trigger.service.in \
3566 units/systemd-udev-settle.service.in
3567
3568 SOCKETS_TARGET_WANTS += \
3569 systemd-udevd-control.socket \
3570 systemd-udevd-kernel.socket
3571
3572 SYSINIT_TARGET_WANTS += \
3573 systemd-udevd.service \
3574 systemd-udev-trigger.service
3575
3576 rootbin_PROGRAMS += \
3577 udevadm
3578
3579 rootlibexec_PROGRAMS += \
3580 systemd-udevd
3581
3582 noinst_LTLIBRARIES += \
3583 libudev-core.la
3584
3585 src/udev/keyboard-keys-list.txt:
3586 $(AM_V_at)$(MKDIR_P) $(dir $@)
3587 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include linux/input.h - < /dev/null | $(AWK) '/^#define[ \t]+KEY_[^ ]+[ \t]+[0-9K]/ { if ($$2 != "KEY_MAX") { print $$2 } }' > $@
3588
3589 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys-list.txt
3590 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3591
3592 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3593 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3594
3595 gperf_txt_sources += \
3596 src/udev/keyboard-keys-list.txt
3597
3598 libudev_core_la_SOURCES = \
3599 src/udev/udev.h \
3600 src/udev/udev-event.c \
3601 src/udev/udev-watch.c \
3602 src/udev/udev-node.c \
3603 src/udev/udev-rules.c \
3604 src/udev/udev-ctrl.c \
3605 src/udev/udev-builtin.c \
3606 src/udev/udev-builtin-btrfs.c \
3607 src/udev/udev-builtin-hwdb.c \
3608 src/udev/udev-builtin-input_id.c \
3609 src/udev/udev-builtin-keyboard.c \
3610 src/udev/udev-builtin-net_id.c \
3611 src/udev/udev-builtin-net_setup_link.c \
3612 src/udev/udev-builtin-path_id.c \
3613 src/udev/udev-builtin-usb_id.c \
3614 src/udev/net/link-config.h \
3615 src/udev/net/link-config.c \
3616 src/udev/net/ethtool-util.h \
3617 src/udev/net/ethtool-util.c
3618
3619 nodist_libudev_core_la_SOURCES = \
3620 src/udev/keyboard-keys-from-name.h \
3621 src/udev/net/link-config-gperf.c
3622
3623 gperf_gperf_sources += \
3624 src/udev/net/link-config-gperf.gperf
3625
3626 libudev_core_la_CFLAGS = \
3627 $(AM_CFLAGS) \
3628 $(BLKID_CFLAGS) \
3629 $(KMOD_CFLAGS)
3630
3631 libudev_core_la_LIBADD = \
3632 libsystemd-network.la \
3633 libshared.la \
3634 $(BLKID_LIBS) \
3635 $(KMOD_LIBS)
3636
3637 if HAVE_KMOD
3638 libudev_core_la_SOURCES += \
3639 src/udev/udev-builtin-kmod.c
3640
3641 dist_udevrules_DATA += \
3642 rules/80-drivers.rules
3643 endif
3644
3645 if HAVE_BLKID
3646 libudev_core_la_SOURCES += \
3647 src/udev/udev-builtin-blkid.c
3648 endif
3649
3650 if HAVE_ACL
3651 libudev_core_la_SOURCES += \
3652 src/udev/udev-builtin-uaccess.c \
3653 src/login/logind-acl.c \
3654 src/libsystemd/sd-login/sd-login.c \
3655 src/systemd/sd-login.h
3656 endif
3657
3658 systemd_udevd_SOURCES = \
3659 src/udev/udevd.c
3660
3661 systemd_udevd_LDADD = \
3662 libudev-core.la
3663
3664 udevadm_SOURCES = \
3665 src/udev/udevadm.c \
3666 src/udev/udevadm-info.c \
3667 src/udev/udevadm-control.c \
3668 src/udev/udevadm-monitor.c \
3669 src/udev/udevadm-hwdb.c \
3670 src/udev/udevadm-settle.c \
3671 src/udev/udevadm-trigger.c \
3672 src/udev/udevadm-test.c \
3673 src/udev/udevadm-test-builtin.c \
3674 src/udev/udevadm-util.c \
3675 src/udev/udevadm-util.h
3676
3677 udevadm_LDADD = \
3678 libudev-core.la
3679
3680 # ------------------------------------------------------------------------------
3681 if ENABLE_HWDB
3682 INSTALL_DIRS += \
3683 $(sysconfdir)/udev/hwdb.d
3684
3685 systemd_hwdb_SOURCES = \
3686 src/libsystemd/sd-hwdb/hwdb-internal.h \
3687 src/hwdb/hwdb.c
3688
3689 systemd_hwdb_LDADD = \
3690 libshared.la
3691
3692 rootbin_PROGRAMS += \
3693 systemd-hwdb
3694
3695 dist_udevhwdb_DATA = \
3696 hwdb/20-pci-vendor-model.hwdb \
3697 hwdb/20-pci-classes.hwdb \
3698 hwdb/20-usb-vendor-model.hwdb \
3699 hwdb/20-usb-classes.hwdb \
3700 hwdb/20-sdio-vendor-model.hwdb \
3701 hwdb/20-sdio-classes.hwdb \
3702 hwdb/20-bluetooth-vendor-product.hwdb \
3703 hwdb/20-acpi-vendor.hwdb \
3704 hwdb/20-OUI.hwdb \
3705 hwdb/20-net-ifname.hwdb \
3706 hwdb/60-evdev.hwdb \
3707 hwdb/60-keyboard.hwdb \
3708 hwdb/70-mouse.hwdb \
3709 hwdb/70-pointingstick.hwdb
3710
3711 SYSINIT_TARGET_WANTS += \
3712 systemd-hwdb-update.service
3713
3714 # Update hwdb on installation. Do not bother if installing
3715 # in DESTDIR, since this is likely for packaging purposes.
3716 hwdb-update-hook:
3717 -test -n "$(DESTDIR)" || $(rootbindir)/systemd-hwdb update
3718
3719 INSTALL_DATA_HOOKS += \
3720 hwdb-update-hook
3721
3722 hwdb-remove-hook:
3723 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3724 endif
3725
3726 EXTRA_DIST += \
3727 units/systemd-hwdb-update.service.in \
3728 hwdb/ids-update.pl \
3729 hwdb/sdio.ids
3730
3731 # ------------------------------------------------------------------------------
3732 TESTS += \
3733 test/udev-test.pl
3734
3735 if HAVE_PYTHON
3736 TESTS += \
3737 test/rule-syntax-check.py
3738
3739 if HAVE_SYSV_COMPAT
3740 TESTS += \
3741 test/sysv-generator-test.py
3742 endif
3743 endif
3744
3745 manual_tests += \
3746 test-libudev \
3747 test-udev
3748
3749 test_libudev_SOURCES = \
3750 src/test/test-libudev.c
3751
3752 test_libudev_LDADD = \
3753 libshared.la
3754
3755 test_udev_SOURCES = \
3756 src/test/test-udev.c
3757
3758 test_udev_LDADD = \
3759 libudev-core.la \
3760 $(BLKID_LIBS) \
3761 $(KMOD_LIBS)
3762
3763 check_DATA += \
3764 test/sys
3765
3766 # packed sysfs test tree
3767 test/sys:
3768 $(AM_V_at)$(MKDIR_P) $(dir $@)
3769 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3770
3771 test-sys-distclean:
3772 -rm -rf test/sys
3773 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3774
3775 EXTRA_DIST += \
3776 test/sys.tar.xz \
3777 test/udev-test.pl \
3778 test/rule-syntax-check.py \
3779 test/sysv-generator-test.py \
3780 test/mocks/fsck
3781
3782 # ------------------------------------------------------------------------------
3783 ata_id_SOURCES = \
3784 src/udev/ata_id/ata_id.c
3785
3786 ata_id_LDADD = \
3787 libshared.la
3788
3789 udevlibexec_PROGRAMS += \
3790 ata_id
3791
3792 # ------------------------------------------------------------------------------
3793 cdrom_id_SOURCES = \
3794 src/udev/cdrom_id/cdrom_id.c
3795
3796 cdrom_id_LDADD = \
3797 libshared.la
3798
3799 udevlibexec_PROGRAMS += \
3800 cdrom_id
3801
3802 dist_udevrules_DATA += \
3803 rules/60-cdrom_id.rules
3804
3805 # ------------------------------------------------------------------------------
3806 collect_SOURCES = \
3807 src/udev/collect/collect.c
3808
3809 collect_LDADD = \
3810 libshared.la
3811
3812 udevlibexec_PROGRAMS += \
3813 collect
3814
3815 # ------------------------------------------------------------------------------
3816 scsi_id_SOURCES =\
3817 src/udev/scsi_id/scsi_id.c \
3818 src/udev/scsi_id/scsi_serial.c \
3819 src/udev/scsi_id/scsi.h \
3820 src/udev/scsi_id/scsi_id.h
3821
3822 scsi_id_LDADD = \
3823 libshared.la
3824
3825 udevlibexec_PROGRAMS += \
3826 scsi_id
3827
3828 EXTRA_DIST += \
3829 src/udev/scsi_id/README
3830
3831 # ------------------------------------------------------------------------------
3832 v4l_id_SOURCES = \
3833 src/udev/v4l_id/v4l_id.c
3834
3835 v4l_id_LDADD = \
3836 libshared.la
3837
3838 udevlibexec_PROGRAMS += \
3839 v4l_id
3840
3841 dist_udevrules_DATA += \
3842 rules/60-persistent-v4l.rules
3843
3844 # ------------------------------------------------------------------------------
3845 mtd_probe_SOURCES = \
3846 src/udev/mtd_probe/mtd_probe.c \
3847 src/udev/mtd_probe/mtd_probe.h \
3848 src/udev/mtd_probe/probe_smartmedia.c
3849
3850 dist_udevrules_DATA += \
3851 rules/75-probe_mtd.rules
3852
3853 udevlibexec_PROGRAMS += \
3854 mtd_probe
3855
3856 # ------------------------------------------------------------------------------
3857 test_id128_SOURCES = \
3858 src/test/test-id128.c
3859
3860 test_id128_LDADD = \
3861 libshared.la
3862
3863 tests += \
3864 test-id128
3865
3866 # ------------------------------------------------------------------------------
3867
3868 rootlibexec_PROGRAMS += \
3869 systemd-activate
3870
3871 systemd_activate_SOURCES = \
3872 src/activate/activate.c
3873
3874 systemd_activate_LDADD = \
3875 libshared.la
3876
3877 # ------------------------------------------------------------------------------
3878 systemd_journald_SOURCES = \
3879 src/journal/journald.c \
3880 src/journal/journald-server.h
3881
3882 systemd_journald_LDADD = \
3883 libjournal-core.la \
3884 libshared.la
3885
3886 systemd_cat_SOURCES = \
3887 src/journal/cat.c
3888
3889 systemd_cat_LDADD = \
3890 libjournal-core.la
3891
3892 if HAVE_MICROHTTPD
3893 rootlibexec_PROGRAMS += \
3894 systemd-journal-remote
3895
3896 systemd_journal_remote_SOURCES = \
3897 src/journal-remote/journal-remote-parse.h \
3898 src/journal-remote/journal-remote-parse.c \
3899 src/journal-remote/journal-remote-write.h \
3900 src/journal-remote/journal-remote-write.c \
3901 src/journal-remote/journal-remote.h \
3902 src/journal-remote/journal-remote.c
3903
3904 systemd_journal_remote_LDADD = \
3905 libjournal-core.la
3906
3907 systemd_journal_remote_SOURCES += \
3908 src/journal-remote/microhttpd-util.h \
3909 src/journal-remote/microhttpd-util.c
3910
3911 systemd_journal_remote_CFLAGS = \
3912 $(AM_CFLAGS) \
3913 $(MICROHTTPD_CFLAGS)
3914
3915 systemd_journal_remote_LDADD += \
3916 $(MICROHTTPD_LIBS)
3917
3918 if ENABLE_SYSUSERS
3919 dist_sysusers_DATA += \
3920 sysusers.d/systemd-remote.conf
3921 endif
3922
3923 if ENABLE_TMPFILES
3924 dist_tmpfiles_DATA += \
3925 tmpfiles.d/systemd-remote.conf
3926 endif
3927
3928 if HAVE_GNUTLS
3929 systemd_journal_remote_LDADD += \
3930 $(GNUTLS_LIBS)
3931 endif
3932
3933 # systemd-journal-remote make sense mostly with full crypto stack
3934 dist_systemunit_DATA += \
3935 units/systemd-journal-remote.socket
3936
3937 nodist_systemunit_DATA += \
3938 units/systemd-journal-remote.service
3939
3940 journal-remote-install-hook: journal-install-hook
3941 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
3942 -chown 0:0 $(DESTDIR)/var/log/journal/remote
3943 -chmod 755 $(DESTDIR)/var/log/journal/remote
3944
3945 INSTALL_EXEC_HOOKS += journal-remote-install-hook
3946
3947 nodist_pkgsysconf_DATA += \
3948 src/journal-remote/journal-remote.conf
3949
3950 EXTRA_DIST += \
3951 units/systemd-journal-remote.service.in \
3952 src/journal-remote/journal-remote.conf.in \
3953 src/journal-remote/log-generator.py
3954 endif
3955
3956 if HAVE_LIBCURL
3957 rootlibexec_PROGRAMS += \
3958 systemd-journal-upload
3959
3960 systemd_journal_upload_SOURCES = \
3961 src/journal-remote/journal-upload.h \
3962 src/journal-remote/journal-upload.c \
3963 src/journal-remote/journal-upload-journal.c
3964
3965 systemd_journal_upload_CFLAGS = \
3966 $(AM_CFLAGS) \
3967 $(LIBCURL_CFLAGS)
3968
3969 systemd_journal_upload_LDADD = \
3970 libshared.la \
3971 $(LIBCURL_LIBS)
3972
3973 nodist_systemunit_DATA += \
3974 units/systemd-journal-upload.service
3975
3976 nodist_pkgsysconf_DATA += \
3977 src/journal-remote/journal-upload.conf
3978 endif
3979
3980 EXTRA_DIST += \
3981 units/systemd-journal-upload.service.in \
3982 src/journal-remote/journal-upload.conf.in
3983
3984 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3985 journalctl_CFLAGS = \
3986 $(AM_CFLAGS)
3987
3988 journalctl_SOURCES = \
3989 src/journal/journalctl.c
3990
3991 journalctl_LDADD = \
3992 libshared.la
3993
3994 if HAVE_QRENCODE
3995 journalctl_SOURCES += \
3996 src/journal/journal-qrcode.c \
3997 src/journal/journal-qrcode.h
3998
3999 journalctl_CFLAGS += \
4000 $(QRENCODE_CFLAGS)
4001
4002 journalctl_LDADD += \
4003 $(QRENCODE_LIBS)
4004 endif
4005
4006 test_journal_SOURCES = \
4007 src/journal/test-journal.c
4008
4009 test_journal_LDADD = \
4010 libjournal-core.la
4011
4012 test_journal_send_SOURCES = \
4013 src/journal/test-journal-send.c
4014
4015 test_journal_send_LDADD = \
4016 libjournal-core.la
4017
4018 test_journal_syslog_SOURCES = \
4019 src/journal/test-journal-syslog.c
4020
4021 test_journal_syslog_LDADD = \
4022 libjournal-core.la
4023
4024 test_journal_match_SOURCES = \
4025 src/journal/test-journal-match.c
4026
4027 test_journal_match_LDADD = \
4028 libjournal-core.la
4029
4030 test_journal_enum_SOURCES = \
4031 src/journal/test-journal-enum.c
4032
4033 test_journal_enum_LDADD = \
4034 libjournal-core.la
4035
4036 test_journal_stream_SOURCES = \
4037 src/journal/test-journal-stream.c
4038
4039 test_journal_stream_LDADD = \
4040 libjournal-core.la
4041
4042 test_journal_flush_SOURCES = \
4043 src/journal/test-journal-flush.c
4044
4045 test_journal_flush_LDADD = \
4046 libjournal-core.la
4047
4048 test_journal_init_SOURCES = \
4049 src/journal/test-journal-init.c
4050
4051 test_journal_init_LDADD = \
4052 libjournal-core.la
4053
4054 test_journal_verify_SOURCES = \
4055 src/journal/test-journal-verify.c
4056
4057 test_journal_verify_LDADD = \
4058 libjournal-core.la
4059
4060 test_journal_interleaving_SOURCES = \
4061 src/journal/test-journal-interleaving.c
4062
4063 test_journal_interleaving_LDADD = \
4064 libjournal-core.la
4065
4066 test_mmap_cache_SOURCES = \
4067 src/journal/test-mmap-cache.c
4068
4069 test_mmap_cache_LDADD = \
4070 libjournal-core.la
4071
4072 test_catalog_SOURCES = \
4073 src/journal/test-catalog.c
4074
4075 test_catalog_CPPFLAGS = \
4076 $(AM_CPPFLAGS) \
4077 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
4078
4079 test_catalog_LDADD = \
4080 libjournal-core.la
4081
4082 test_compress_SOURCES = \
4083 src/journal/test-compress.c
4084
4085 test_compress_LDADD = \
4086 libshared.la
4087
4088 test_compress_benchmark_SOURCES = \
4089 src/journal/test-compress-benchmark.c
4090
4091 test_compress_benchmark_LDADD = \
4092 libshared.la
4093
4094 test_audit_type_SOURCES = \
4095 src/journal/test-audit-type.c
4096
4097 test_audit_type_LDADD = \
4098 libjournal-core.la
4099
4100 libjournal_core_la_SOURCES = \
4101 src/journal/journald-kmsg.c \
4102 src/journal/journald-kmsg.h \
4103 src/journal/journald-syslog.c \
4104 src/journal/journald-syslog.h \
4105 src/journal/journald-stream.c \
4106 src/journal/journald-stream.h \
4107 src/journal/journald-server.c \
4108 src/journal/journald-server.h \
4109 src/journal/journald-console.c \
4110 src/journal/journald-console.h \
4111 src/journal/journald-wall.c \
4112 src/journal/journald-wall.h \
4113 src/journal/journald-native.c \
4114 src/journal/journald-native.h \
4115 src/journal/journald-audit.c \
4116 src/journal/journald-audit.h \
4117 src/journal/journald-rate-limit.c \
4118 src/journal/journald-rate-limit.h \
4119 src/journal/journal-internal.h
4120
4121 nodist_libjournal_core_la_SOURCES = \
4122 src/journal/journald-gperf.c
4123
4124 libjournal_core_la_LIBADD = \
4125 libshared.la
4126
4127 noinst_LTLIBRARIES += \
4128 libjournal-core.la
4129
4130 journal-install-hook:
4131 -$(MKDIR_P) $(DESTDIR)/var/log/journal
4132 -chown 0:0 $(DESTDIR)/var/log/journal
4133 -chmod 755 $(DESTDIR)/var/log/journal
4134 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4135 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4136
4137 journal-uninstall-hook:
4138 -rmdir $(DESTDIR)/var/log/journal/remote
4139 -rmdir $(DESTDIR)/var/log/journal/
4140
4141 INSTALL_EXEC_HOOKS += journal-install-hook
4142 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4143
4144 # ------------------------------------------------------------------------------
4145 # Update catalog on installation. Do not bother if installing
4146 # in DESTDIR, since this is likely for packaging purposes.
4147 catalog-update-hook:
4148 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4149
4150 INSTALL_DATA_HOOKS += \
4151 catalog-update-hook
4152
4153 catalog-remove-hook:
4154 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4155
4156 UNINSTALL_DATA_HOOKS += \
4157 catalog-remove-hook
4158
4159 manual_tests += \
4160 test-journal-enum
4161
4162 tests += \
4163 test-journal \
4164 test-journal-send \
4165 test-journal-syslog \
4166 test-journal-match \
4167 test-journal-stream \
4168 test-journal-init \
4169 test-journal-verify \
4170 test-journal-interleaving \
4171 test-journal-flush \
4172 test-mmap-cache \
4173 test-catalog \
4174 test-audit-type
4175
4176 if HAVE_COMPRESSION
4177 tests += \
4178 test-compress \
4179 test-compress-benchmark
4180 endif
4181
4182 pkginclude_HEADERS += \
4183 src/systemd/sd-journal.h \
4184 src/systemd/sd-messages.h \
4185 src/systemd/_sd-common.h
4186
4187 libsystemd_journal_internal_la_SOURCES = \
4188 src/journal/sd-journal.c \
4189 src/systemd/sd-journal.h \
4190 src/systemd/_sd-common.h \
4191 src/journal/journal-file.c \
4192 src/journal/journal-file.h \
4193 src/journal/journal-vacuum.c \
4194 src/journal/journal-vacuum.h \
4195 src/journal/journal-verify.c \
4196 src/journal/journal-verify.h \
4197 src/journal/lookup3.c \
4198 src/journal/lookup3.h \
4199 src/journal/journal-send.c \
4200 src/journal/journal-def.h \
4201 src/journal/compress.h \
4202 src/journal/catalog.c \
4203 src/journal/catalog.h \
4204 src/journal/mmap-cache.c \
4205 src/journal/mmap-cache.h \
4206 src/journal/compress.c \
4207 src/journal/audit-type.h \
4208 src/journal/audit-type.c
4209
4210 nodist_libsystemd_journal_internal_la_SOURCES = \
4211 src/journal/audit_type-to-name.h
4212
4213 gperf_txt_sources += \
4214 src/journal/audit_type-list.txt
4215
4216 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4217 libsystemd_journal_internal_la_CFLAGS = \
4218 $(AM_CFLAGS)
4219
4220 libsystemd_journal_internal_la_LIBADD =
4221
4222 if HAVE_XZ
4223 libsystemd_journal_internal_la_CFLAGS += \
4224 $(XZ_CFLAGS)
4225
4226 libsystemd_journal_internal_la_LIBADD += \
4227 $(XZ_LIBS)
4228 endif
4229
4230 if HAVE_LZ4
4231 libsystemd_journal_internal_la_LIBADD += \
4232 -llz4
4233 endif
4234
4235 if HAVE_GCRYPT
4236 libsystemd_journal_internal_la_SOURCES += \
4237 src/journal/journal-authenticate.c \
4238 src/journal/journal-authenticate.h \
4239 src/journal/fsprg.c \
4240 src/journal/fsprg.h
4241
4242 libsystemd_journal_internal_la_LIBADD += \
4243 $(GCRYPT_LIBS)
4244
4245 # fsprg.c is a drop-in file using void pointer arithmetic
4246 libsystemd_journal_internal_la_CFLAGS += \
4247 $(GCRYPT_CFLAGS) \
4248 -Wno-pointer-arith
4249 endif
4250
4251 noinst_LTLIBRARIES += \
4252 libsystemd-journal-internal.la
4253
4254 rootlibexec_PROGRAMS += \
4255 systemd-journald
4256
4257 rootbin_PROGRAMS += \
4258 journalctl
4259
4260 bin_PROGRAMS += \
4261 systemd-cat
4262
4263 dist_systemunit_DATA += \
4264 units/systemd-journald.socket \
4265 units/systemd-journald-dev-log.socket \
4266 units/systemd-journald-audit.socket
4267
4268 nodist_systemunit_DATA += \
4269 units/systemd-journald.service \
4270 units/systemd-journal-flush.service \
4271 units/systemd-journal-catalog-update.service
4272
4273 dist_pkgsysconf_DATA += \
4274 src/journal/journald.conf
4275
4276 dist_catalog_DATA = \
4277 catalog/systemd.be.catalog \
4278 catalog/systemd.be@latin.catalog \
4279 catalog/systemd.fr.catalog \
4280 catalog/systemd.it.catalog \
4281 catalog/systemd.pl.catalog \
4282 catalog/systemd.pt_BR.catalog \
4283 catalog/systemd.ru.catalog \
4284 catalog/systemd.zh_CN.catalog \
4285 catalog/systemd.zh_TW.catalog \
4286 catalog/systemd.catalog
4287
4288 SOCKETS_TARGET_WANTS += \
4289 systemd-journald.socket \
4290 systemd-journald-dev-log.socket \
4291 systemd-journald-audit.socket
4292
4293 SYSINIT_TARGET_WANTS += \
4294 systemd-journald.service \
4295 systemd-journal-flush.service \
4296 systemd-journal-catalog-update.service
4297
4298 EXTRA_DIST += \
4299 units/systemd-journald.service.in \
4300 units/systemd-journal-flush.service.in \
4301 units/systemd-journal-catalog-update.service.in
4302
4303 gperf_gperf_sources += \
4304 src/journal/journald-gperf.gperf
4305
4306 # ------------------------------------------------------------------------------
4307 if HAVE_MICROHTTPD
4308 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4309
4310 rootlibexec_PROGRAMS += \
4311 systemd-journal-gatewayd
4312
4313 systemd_journal_gatewayd_SOURCES = \
4314 src/journal-remote/journal-gatewayd.c \
4315 src/journal-remote/microhttpd-util.h \
4316 src/journal-remote/microhttpd-util.c
4317
4318 systemd_journal_gatewayd_LDADD = \
4319 libshared.la \
4320 $(MICROHTTPD_LIBS)
4321
4322 if HAVE_GNUTLS
4323 systemd_journal_gatewayd_LDADD += \
4324 $(GNUTLS_LIBS)
4325 endif
4326
4327 systemd_journal_gatewayd_CFLAGS = \
4328 $(AM_CFLAGS) \
4329 $(MICROHTTPD_CFLAGS)
4330
4331 systemd_journal_gatewayd_CPPFLAGS = \
4332 $(AM_CPPFLAGS) \
4333 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4334
4335 dist_systemunit_DATA += \
4336 units/systemd-journal-gatewayd.socket
4337
4338 nodist_systemunit_DATA += \
4339 units/systemd-journal-gatewayd.service
4340
4341 dist_gatewayddocumentroot_DATA = \
4342 src/journal-remote/browse.html
4343
4344 endif
4345
4346 EXTRA_DIST += \
4347 units/systemd-journal-gatewayd.service.in
4348
4349 # ------------------------------------------------------------------------------
4350
4351 systemd_socket_proxyd_SOURCES = \
4352 src/socket-proxy/socket-proxyd.c
4353
4354 systemd_socket_proxyd_LDADD = \
4355 libshared.la
4356
4357 # ------------------------------------------------------------------------------
4358 if ENABLE_COREDUMP
4359 systemd_coredump_SOURCES = \
4360 src/journal/coredump.c \
4361 src/journal/coredump-vacuum.c \
4362 src/journal/coredump-vacuum.h
4363
4364 systemd_coredump_LDADD = \
4365 libshared.la
4366
4367 if HAVE_ELFUTILS
4368 systemd_coredump_SOURCES += \
4369 src/journal/stacktrace.c \
4370 src/journal/stacktrace.h
4371
4372 systemd_coredump_LDADD += \
4373 $(ELFUTILS_LIBS)
4374 endif
4375
4376 rootlibexec_PROGRAMS += \
4377 systemd-coredump
4378
4379 dist_pkgsysconf_DATA += \
4380 src/journal/coredump.conf
4381
4382 coredumpctl_SOURCES = \
4383 src/journal/coredumpctl.c
4384
4385 coredumpctl_LDADD = \
4386 libshared.la
4387
4388 bin_PROGRAMS += \
4389 coredumpctl
4390
4391 manual_tests += \
4392 test-coredump-vacuum
4393
4394 test_coredump_vacuum_SOURCES = \
4395 src/journal/test-coredump-vacuum.c \
4396 src/journal/coredump-vacuum.c \
4397 src/journal/coredump-vacuum.h
4398
4399 test_coredump_vacuum_LDADD = \
4400 libshared.la
4401
4402 if ENABLE_BASH_COMPLETION
4403 dist_bashcompletion_DATA += \
4404 shell-completion/bash/coredumpctl
4405 endif
4406
4407 if ENABLE_ZSH_COMPLETION
4408 dist_zshcompletion_DATA += \
4409 shell-completion/zsh/_coredumpctl
4410 endif
4411
4412 nodist_sysctl_DATA = \
4413 sysctl.d/50-coredump.conf
4414
4415 CLEANFILES += \
4416 sysctl.d/50-coredump.conf
4417 endif
4418
4419 EXTRA_DIST += \
4420 sysctl.d/50-coredump.conf.in
4421
4422 # ------------------------------------------------------------------------------
4423 if ENABLE_BINFMT
4424 systemd_binfmt_SOURCES = \
4425 src/binfmt/binfmt.c
4426
4427 systemd_binfmt_LDADD = \
4428 libshared.la
4429
4430 rootlibexec_PROGRAMS += \
4431 systemd-binfmt
4432
4433 dist_systemunit_DATA += \
4434 units/proc-sys-fs-binfmt_misc.automount \
4435 units/proc-sys-fs-binfmt_misc.mount
4436
4437 nodist_systemunit_DATA += \
4438 units/systemd-binfmt.service
4439
4440 INSTALL_DIRS += \
4441 $(prefix)/lib/binfmt.d \
4442 $(sysconfdir)/binfmt.d
4443
4444 SYSINIT_TARGET_WANTS += \
4445 systemd-binfmt.service \
4446 proc-sys-fs-binfmt_misc.automount
4447
4448 endif
4449
4450 EXTRA_DIST += \
4451 units/systemd-binfmt.service.in
4452
4453 # ------------------------------------------------------------------------------
4454 if ENABLE_VCONSOLE
4455 systemd_vconsole_setup_SOURCES = \
4456 src/vconsole/vconsole-setup.c
4457
4458 systemd_vconsole_setup_LDADD = \
4459 libshared.la
4460
4461 rootlibexec_PROGRAMS += \
4462 systemd-vconsole-setup
4463
4464 nodist_udevrules_DATA += \
4465 src/vconsole/90-vconsole.rules
4466
4467 nodist_systemunit_DATA += \
4468 units/systemd-vconsole-setup.service
4469
4470 SYSINIT_TARGET_WANTS += \
4471 systemd-vconsole-setup.service
4472 endif
4473
4474 EXTRA_DIST += \
4475 src/vconsole/90-vconsole.rules.in \
4476 units/systemd-vconsole-setup.service.in
4477
4478 # ------------------------------------------------------------------------------
4479 if ENABLE_BOOTCHART
4480 systemd_bootchart_SOURCES = \
4481 src/bootchart/bootchart.c \
4482 src/bootchart/bootchart.h \
4483 src/bootchart/store.c \
4484 src/bootchart/store.h \
4485 src/bootchart/svg.c \
4486 src/bootchart/svg.h
4487
4488 systemd_bootchart_LDADD = \
4489 libshared.la
4490
4491 rootlibexec_PROGRAMS += \
4492 systemd-bootchart
4493
4494 dist_pkgsysconf_DATA += \
4495 src/bootchart/bootchart.conf
4496
4497 nodist_systemunit_DATA += \
4498 units/systemd-bootchart.service
4499 endif
4500
4501 EXTRA_DIST += \
4502 units/systemd-bootchart.service.in
4503
4504 # ------------------------------------------------------------------------------
4505 if ENABLE_QUOTACHECK
4506 rootlibexec_PROGRAMS += \
4507 systemd-quotacheck
4508
4509 nodist_systemunit_DATA += \
4510 units/systemd-quotacheck.service
4511
4512 systemd_quotacheck_SOURCES = \
4513 src/quotacheck/quotacheck.c
4514
4515 systemd_quotacheck_LDADD = \
4516 libshared.la
4517 endif
4518
4519 EXTRA_DIST += \
4520 units/systemd-quotacheck.service.in
4521
4522 nodist_systemunit_DATA += \
4523 units/quotaon.service
4524
4525 # ------------------------------------------------------------------------------
4526 if ENABLE_RANDOMSEED
4527 rootlibexec_PROGRAMS += \
4528 systemd-random-seed
4529
4530 nodist_systemunit_DATA += \
4531 units/systemd-random-seed.service
4532
4533 systemd_random_seed_SOURCES = \
4534 src/random-seed/random-seed.c
4535
4536 systemd_random_seed_LDADD = \
4537 libshared.la
4538
4539 SYSINIT_TARGET_WANTS += \
4540 systemd-random-seed.service
4541
4542 endif
4543
4544 EXTRA_DIST += \
4545 units/systemd-random-seed.service.in
4546
4547 # ------------------------------------------------------------------------------
4548 if ENABLE_BACKLIGHT
4549 rootlibexec_PROGRAMS += \
4550 systemd-backlight
4551
4552 nodist_systemunit_DATA += \
4553 units/systemd-backlight@.service
4554
4555 systemd_backlight_SOURCES = \
4556 src/backlight/backlight.c
4557
4558 systemd_backlight_LDADD = \
4559 libshared.la
4560 endif
4561
4562 EXTRA_DIST += \
4563 units/systemd-backlight@.service.in
4564
4565 # ------------------------------------------------------------------------------
4566 if ENABLE_RFKILL
4567 rootlibexec_PROGRAMS += \
4568 systemd-rfkill
4569
4570 nodist_systemunit_DATA += \
4571 units/systemd-rfkill.service
4572
4573 dist_systemunit_DATA += \
4574 units/systemd-rfkill.socket
4575
4576 systemd_rfkill_SOURCES = \
4577 src/rfkill/rfkill.c
4578
4579 systemd_rfkill_LDADD = \
4580 libshared.la
4581 endif
4582
4583 EXTRA_DIST += \
4584 units/systemd-rfkill.service.in
4585
4586 # ------------------------------------------------------------------------------
4587 if HAVE_LIBCRYPTSETUP
4588 rootlibexec_PROGRAMS += \
4589 systemd-cryptsetup
4590
4591 systemgenerator_PROGRAMS += \
4592 systemd-cryptsetup-generator
4593
4594 dist_systemunit_DATA += \
4595 units/cryptsetup.target \
4596 units/cryptsetup-pre.target
4597
4598 systemd_cryptsetup_SOURCES = \
4599 src/cryptsetup/cryptsetup.c
4600
4601 systemd_cryptsetup_CFLAGS = \
4602 $(AM_CFLAGS) \
4603 $(LIBCRYPTSETUP_CFLAGS)
4604
4605 systemd_cryptsetup_LDADD = \
4606 libshared.la \
4607 $(LIBCRYPTSETUP_LIBS)
4608
4609 systemd_cryptsetup_generator_SOURCES = \
4610 src/cryptsetup/cryptsetup-generator.c
4611
4612 systemd_cryptsetup_generator_LDADD = \
4613 libshared.la
4614
4615 SYSINIT_TARGET_WANTS += \
4616 cryptsetup.target
4617
4618 endif
4619
4620 # ------------------------------------------------------------------------------
4621 if ENABLE_HOSTNAMED
4622 systemd_hostnamed_SOURCES = \
4623 src/hostname/hostnamed.c
4624
4625 systemd_hostnamed_LDADD = \
4626 libshared.la
4627
4628 rootlibexec_PROGRAMS += \
4629 systemd-hostnamed
4630
4631 nodist_systemunit_DATA += \
4632 units/systemd-hostnamed.service
4633
4634 dist_systemunit_DATA_busnames += \
4635 units/org.freedesktop.hostname1.busname
4636
4637 dist_dbuspolicy_DATA += \
4638 src/hostname/org.freedesktop.hostname1.conf
4639
4640 dist_dbussystemservice_DATA += \
4641 src/hostname/org.freedesktop.hostname1.service
4642
4643 polkitpolicy_files += \
4644 src/hostname/org.freedesktop.hostname1.policy
4645
4646 SYSTEM_UNIT_ALIASES += \
4647 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4648
4649 BUSNAMES_TARGET_WANTS += \
4650 org.freedesktop.hostname1.busname
4651
4652 hostnamectl_SOURCES = \
4653 src/hostname/hostnamectl.c
4654
4655 hostnamectl_LDADD = \
4656 libshared.la
4657
4658 bin_PROGRAMS += \
4659 hostnamectl
4660
4661 if ENABLE_BASH_COMPLETION
4662 dist_bashcompletion_DATA += \
4663 shell-completion/bash/hostnamectl
4664 endif
4665
4666 if ENABLE_ZSH_COMPLETION
4667 dist_zshcompletion_DATA += \
4668 shell-completion/zsh/_hostnamectl
4669 endif
4670 endif
4671
4672 polkitpolicy_in_files += \
4673 src/hostname/org.freedesktop.hostname1.policy.in
4674
4675 EXTRA_DIST += \
4676 units/systemd-hostnamed.service.in
4677
4678 # ------------------------------------------------------------------------------
4679 dist_systemunit_DATA_busnames += \
4680 units/org.freedesktop.systemd1.busname
4681
4682 BUSNAMES_TARGET_WANTS += \
4683 org.freedesktop.systemd1.busname
4684
4685 # ------------------------------------------------------------------------------
4686 if ENABLE_LOCALED
4687 systemd_localed_SOURCES = \
4688 src/locale/localed.c
4689
4690 systemd_localed_LDADD = \
4691 libshared.la \
4692 $(XKBCOMMON_LIBS)
4693
4694 systemd_localed_CFLAGS = \
4695 $(AM_CFLAGS) \
4696 $(XKBCOMMON_CFLAGS)
4697
4698 nodist_systemunit_DATA += \
4699 units/systemd-localed.service
4700
4701 dist_systemunit_DATA_busnames += \
4702 units/org.freedesktop.locale1.busname
4703
4704 rootlibexec_PROGRAMS += \
4705 systemd-localed
4706
4707 dist_dbuspolicy_DATA += \
4708 src/locale/org.freedesktop.locale1.conf
4709
4710 dist_dbussystemservice_DATA += \
4711 src/locale/org.freedesktop.locale1.service
4712
4713 polkitpolicy_files += \
4714 src/locale/org.freedesktop.locale1.policy
4715
4716 SYSTEM_UNIT_ALIASES += \
4717 systemd-localed.service dbus-org.freedesktop.locale1.service
4718
4719 BUSNAMES_TARGET_WANTS += \
4720 org.freedesktop.locale1.busname
4721
4722 dist_pkgdata_DATA = \
4723 src/locale/kbd-model-map \
4724 src/locale/language-fallback-map
4725
4726 localectl_SOURCES = \
4727 src/locale/localectl.c
4728
4729 localectl_LDADD = \
4730 libshared.la
4731
4732 bin_PROGRAMS += \
4733 localectl
4734
4735 if ENABLE_BASH_COMPLETION
4736 dist_bashcompletion_DATA += \
4737 shell-completion/bash/localectl
4738 endif
4739
4740 if ENABLE_ZSH_COMPLETION
4741 dist_zshcompletion_DATA += \
4742 shell-completion/zsh/_localectl
4743 endif
4744 endif
4745
4746 .PHONY: update-kbd-model-map
4747
4748 polkitpolicy_in_files += \
4749 src/locale/org.freedesktop.locale1.policy.in
4750
4751 EXTRA_DIST += \
4752 units/systemd-localed.service.in
4753
4754 # ------------------------------------------------------------------------------
4755 if ENABLE_TIMEDATED
4756 systemd_timedated_SOURCES = \
4757 src/timedate/timedated.c
4758
4759 systemd_timedated_LDADD = \
4760 libshared.la
4761
4762 rootlibexec_PROGRAMS += \
4763 systemd-timedated
4764
4765 dist_dbussystemservice_DATA += \
4766 src/timedate/org.freedesktop.timedate1.service
4767
4768 dist_dbuspolicy_DATA += \
4769 src/timedate/org.freedesktop.timedate1.conf
4770
4771 nodist_systemunit_DATA += \
4772 units/systemd-timedated.service
4773
4774 dist_systemunit_DATA_busnames += \
4775 units/org.freedesktop.timedate1.busname
4776
4777 polkitpolicy_files += \
4778 src/timedate/org.freedesktop.timedate1.policy
4779
4780 SYSTEM_UNIT_ALIASES += \
4781 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4782
4783 BUSNAMES_TARGET_WANTS += \
4784 org.freedesktop.timedate1.busname
4785
4786 timedatectl_SOURCES = \
4787 src/timedate/timedatectl.c
4788
4789 timedatectl_LDADD = \
4790 libshared.la
4791
4792 bin_PROGRAMS += \
4793 timedatectl
4794
4795 if ENABLE_BASH_COMPLETION
4796 dist_bashcompletion_DATA += \
4797 shell-completion/bash/timedatectl
4798 endif
4799
4800 if ENABLE_ZSH_COMPLETION
4801 dist_zshcompletion_DATA += \
4802 shell-completion/zsh/_timedatectl
4803 endif
4804 endif
4805
4806 polkitpolicy_in_files += \
4807 src/timedate/org.freedesktop.timedate1.policy.in
4808
4809 EXTRA_DIST += \
4810 units/systemd-timedated.service.in
4811
4812 # ------------------------------------------------------------------------------
4813 if ENABLE_TIMESYNCD
4814 systemd_timesyncd_SOURCES = \
4815 src/timesync/timesyncd.c \
4816 src/timesync/timesyncd-manager.c \
4817 src/timesync/timesyncd-manager.h \
4818 src/timesync/timesyncd-conf.c \
4819 src/timesync/timesyncd-conf.h \
4820 src/timesync/timesyncd-server.c \
4821 src/timesync/timesyncd-server.h
4822
4823 nodist_systemd_timesyncd_SOURCES = \
4824 src/timesync/timesyncd-gperf.c
4825
4826 gperf_gperf_sources += \
4827 src/timesync/timesyncd-gperf.gperf
4828
4829 systemd_timesyncd_LDADD = \
4830 libsystemd-network.la \
4831 libshared.la
4832
4833 rootlibexec_PROGRAMS += \
4834 systemd-timesyncd
4835
4836 nodist_systemunit_DATA += \
4837 units/systemd-timesyncd.service
4838
4839 GENERAL_ALIASES += \
4840 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
4841
4842 EXTRA_DIST += \
4843 units/systemd-timesyncd.service.in
4844
4845 nodist_pkgsysconf_DATA += \
4846 src/timesync/timesyncd.conf
4847
4848 EXTRA_DIST += \
4849 src/timesync/timesyncd.conf.in
4850 endif
4851
4852 # ------------------------------------------------------------------------------
4853 if HAVE_MYHOSTNAME
4854 libnss_myhostname_la_SOURCES = \
4855 src/nss-myhostname/nss-myhostname.sym \
4856 src/nss-myhostname/nss-myhostname.c
4857
4858 libnss_myhostname_la_LDFLAGS = \
4859 $(AM_LDFLAGS) \
4860 -module \
4861 -export-dynamic \
4862 -avoid-version \
4863 -shared \
4864 -shrext .so.2 \
4865 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
4866
4867 libnss_myhostname_la_LIBADD = \
4868 libshared.la
4869
4870 lib_LTLIBRARIES += \
4871 libnss_myhostname.la
4872 endif
4873
4874 # ------------------------------------------------------------------------------
4875 if ENABLE_MACHINED
4876 systemd_machined_SOURCES = \
4877 src/machine/machined.c \
4878 src/machine/machined.h
4879
4880 systemd_machined_LDADD = \
4881 libmachine-core.la
4882
4883 rootlibexec_PROGRAMS += \
4884 systemd-machined
4885
4886 libmachine_core_la_SOURCES = \
4887 src/machine/machine.c \
4888 src/machine/machine.h \
4889 src/machine/machined-dbus.c \
4890 src/machine/machine-dbus.c \
4891 src/machine/machine-dbus.h \
4892 src/machine/image-dbus.c \
4893 src/machine/image-dbus.h
4894
4895 libmachine_core_la_LIBADD = \
4896 libshared.la
4897
4898 noinst_LTLIBRARIES += \
4899 libmachine-core.la
4900
4901 machinectl_SOURCES = \
4902 src/machine/machinectl.c
4903
4904 machinectl_LDADD = \
4905 libshared.la
4906
4907 rootbin_PROGRAMS += \
4908 machinectl
4909
4910 if ENABLE_BASH_COMPLETION
4911 dist_bashcompletion_DATA += \
4912 shell-completion/bash/machinectl
4913 endif
4914
4915 test_machine_tables_SOURCES = \
4916 src/machine/test-machine-tables.c
4917
4918 test_machine_tables_LDADD = \
4919 libmachine-core.la
4920
4921 tests += \
4922 test-machine-tables
4923
4924 nodist_systemunit_DATA += \
4925 units/systemd-machined.service
4926
4927 dist_systemunit_DATA += \
4928 units/machine.slice
4929
4930 dist_systemunit_DATA_busnames += \
4931 units/org.freedesktop.machine1.busname
4932
4933 dist_dbussystemservice_DATA += \
4934 src/machine/org.freedesktop.machine1.service
4935
4936 dist_dbuspolicy_DATA += \
4937 src/machine/org.freedesktop.machine1.conf
4938
4939 polkitpolicy_files += \
4940 src/machine/org.freedesktop.machine1.policy
4941
4942 if ENABLE_ZSH_COMPLETION
4943 dist_zshcompletion_DATA += \
4944 shell-completion/zsh/_machinectl \
4945 shell-completion/zsh/_sd_machines
4946 endif
4947
4948 SYSTEM_UNIT_ALIASES += \
4949 systemd-machined.service dbus-org.freedesktop.machine1.service
4950
4951 BUSNAMES_TARGET_WANTS += \
4952 org.freedesktop.machine1.busname
4953
4954 libnss_mymachines_la_SOURCES = \
4955 src/nss-mymachines/nss-mymachines.sym \
4956 src/nss-mymachines/nss-mymachines.c
4957
4958 libnss_mymachines_la_LDFLAGS = \
4959 $(AM_LDFLAGS) \
4960 -module \
4961 -export-dynamic \
4962 -avoid-version \
4963 -shared \
4964 -shrext .so.2 \
4965 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
4966
4967 libnss_mymachines_la_LIBADD = \
4968 libshared.la
4969
4970 lib_LTLIBRARIES += \
4971 libnss_mymachines.la
4972
4973 endif
4974
4975 polkitpolicy_in_files += \
4976 src/machine/org.freedesktop.machine1.policy.in
4977
4978 EXTRA_DIST += \
4979 units/systemd-machined.service.in
4980
4981 # ------------------------------------------------------------------------------
4982 if ENABLE_IMPORTD
4983
4984 if HAVE_LIBCURL
4985 if HAVE_XZ
4986 if HAVE_ZLIB
4987 if HAVE_BZIP2
4988 if HAVE_GCRYPT
4989
4990 rootlibexec_PROGRAMS += \
4991 systemd-importd \
4992 systemd-pull \
4993 systemd-import \
4994 systemd-export
4995
4996 systemd_importd_SOURCES = \
4997 src/import/importd.c
4998
4999 systemd_importd_CFLAGS = \
5000 $(AM_CFLAGS) \
5001 -D SYSTEMD_PULL_PATH=\"$(rootlibexecdir)/systemd-pull\" \
5002 -D SYSTEMD_IMPORT_PATH=\"$(rootlibexecdir)/systemd-import\" \
5003 -D SYSTEMD_EXPORT_PATH=\"$(rootlibexecdir)/systemd-export\"
5004
5005 systemd_importd_LDADD = \
5006 libshared.la
5007
5008 systemd_pull_SOURCES = \
5009 src/import/pull.c \
5010 src/import/pull-raw.c \
5011 src/import/pull-raw.h \
5012 src/import/pull-tar.c \
5013 src/import/pull-tar.h \
5014 src/import/pull-dkr.c \
5015 src/import/pull-dkr.h \
5016 src/import/pull-job.c \
5017 src/import/pull-job.h \
5018 src/import/pull-common.c \
5019 src/import/pull-common.h \
5020 src/import/import-common.c \
5021 src/import/import-common.h \
5022 src/import/import-compress.c \
5023 src/import/import-compress.h \
5024 src/import/curl-util.c \
5025 src/import/curl-util.h \
5026 src/import/aufs-util.c \
5027 src/import/aufs-util.h \
5028 src/import/qcow2-util.c \
5029 src/import/qcow2-util.h
5030
5031 systemd_pull_CFLAGS = \
5032 $(AM_CFLAGS) \
5033 $(LIBCURL_CFLAGS) \
5034 $(XZ_CFLAGS) \
5035 $(ZLIB_CFLAGS) \
5036 $(GCRYPT_CFLAGS) \
5037 -D VENDOR_KEYRING_PATH=\"$(rootlibexecdir)/import-pubring.gpg\" \
5038 -D USER_KEYRING_PATH=\"$(pkgsysconfdir)/import-pubring.gpg\"
5039
5040 systemd_pull_LDADD = \
5041 libshared.la \
5042 $(LIBCURL_LIBS) \
5043 $(XZ_LIBS) \
5044 $(ZLIB_LIBS) \
5045 -lbz2 \
5046 $(GCRYPT_LIBS)
5047
5048 systemd_import_SOURCES = \
5049 src/import/import.c \
5050 src/import/import-raw.c \
5051 src/import/import-raw.h \
5052 src/import/import-tar.c \
5053 src/import/import-tar.h \
5054 src/import/import-common.c \
5055 src/import/import-common.h \
5056 src/import/import-compress.c \
5057 src/import/import-compress.h \
5058 src/import/qcow2-util.c \
5059 src/import/qcow2-util.h
5060
5061 systemd_import_CFLAGS = \
5062 $(AM_CFLAGS) \
5063 $(XZ_CFLAGS) \
5064 $(ZLIB_CFLAGS)
5065
5066 systemd_import_LDADD = \
5067 libshared.la \
5068 $(XZ_LIBS) \
5069 $(ZLIB_LIBS) \
5070 -lbz2
5071
5072 systemd_export_SOURCES = \
5073 src/import/export.c \
5074 src/import/export-tar.c \
5075 src/import/export-tar.h \
5076 src/import/export-raw.c \
5077 src/import/export-raw.h \
5078 src/import/import-common.c \
5079 src/import/import-common.h \
5080 src/import/import-compress.c \
5081 src/import/import-compress.h
5082
5083 systemd_export_CFLAGS = \
5084 $(AM_CFLAGS) \
5085 $(XZ_CFLAGS) \
5086 $(ZLIB_CFLAGS)
5087
5088 systemd_export_LDADD = \
5089 libshared.la \
5090 $(XZ_LIBS) \
5091 $(ZLIB_LIBS) \
5092 -lbz2
5093
5094 dist_rootlibexec_DATA = \
5095 src/import/import-pubring.gpg
5096
5097 nodist_systemunit_DATA += \
5098 units/systemd-importd.service
5099
5100 dist_systemunit_DATA_busnames += \
5101 units/org.freedesktop.import1.busname
5102
5103 BUSNAMES_TARGET_WANTS += \
5104 org.freedesktop.import1.busname
5105
5106 SYSTEM_UNIT_ALIASES += \
5107 systemd-importd.service dbus-org.freedesktop.import1.service
5108
5109 dist_dbussystemservice_DATA += \
5110 src/import/org.freedesktop.import1.service
5111
5112 dist_dbuspolicy_DATA += \
5113 src/import/org.freedesktop.import1.conf
5114
5115 polkitpolicy_files += \
5116 src/import/org.freedesktop.import1.policy
5117
5118 manual_tests += \
5119 test-qcow2
5120
5121 test_qcow2_SOURCES = \
5122 src/import/test-qcow2.c \
5123 src/import/qcow2-util.c \
5124 src/import/qcow2-util.h
5125
5126 test_qcow2_CFLAGS = \
5127 $(AM_CFLAGS) \
5128 $(ZLIB_CFLAGS)
5129
5130 test_qcow2_LDADD = \
5131 libshared.la \
5132 $(ZLIB_LIBS)
5133
5134 endif
5135 endif
5136 endif
5137 endif
5138 endif
5139
5140 endif
5141
5142 polkitpolicy_in_files += \
5143 src/import/org.freedesktop.import1.policy.in
5144
5145 EXTRA_DIST += \
5146 units/systemd-importd.service.in
5147
5148
5149 # ------------------------------------------------------------------------------
5150 if ENABLE_RESOLVED
5151 if HAVE_GCRYPT
5152
5153 systemd_resolved_SOURCES = \
5154 src/resolve/resolved.c \
5155 src/resolve/resolved-manager.c \
5156 src/resolve/resolved-manager.h \
5157 src/resolve/resolved-conf.c \
5158 src/resolve/resolved-conf.h \
5159 src/resolve/resolved-resolv-conf.c \
5160 src/resolve/resolved-resolv-conf.h \
5161 src/resolve/resolved-bus.c \
5162 src/resolve/resolved-bus.h \
5163 src/resolve/resolved-link.h \
5164 src/resolve/resolved-link.c \
5165 src/resolve/resolved-llmnr.h \
5166 src/resolve/resolved-llmnr.c \
5167 src/resolve/resolved-def.h \
5168 src/resolve/resolved-dns-rr.h \
5169 src/resolve/resolved-dns-rr.c \
5170 src/resolve/resolved-dns-question.h \
5171 src/resolve/resolved-dns-question.c \
5172 src/resolve/resolved-dns-answer.h \
5173 src/resolve/resolved-dns-answer.c \
5174 src/resolve/resolved-dns-packet.h \
5175 src/resolve/resolved-dns-packet.c \
5176 src/resolve/resolved-dns-query.h \
5177 src/resolve/resolved-dns-query.c \
5178 src/resolve/resolved-dns-transaction.h \
5179 src/resolve/resolved-dns-transaction.c \
5180 src/resolve/resolved-dns-scope.h \
5181 src/resolve/resolved-dns-scope.c \
5182 src/resolve/resolved-dns-server.h \
5183 src/resolve/resolved-dns-server.c \
5184 src/resolve/resolved-dns-search-domain.h \
5185 src/resolve/resolved-dns-search-domain.c \
5186 src/resolve/resolved-dns-cache.h \
5187 src/resolve/resolved-dns-cache.c \
5188 src/resolve/resolved-dns-zone.h \
5189 src/resolve/resolved-dns-zone.c \
5190 src/resolve/resolved-dns-stream.h \
5191 src/resolve/resolved-dns-stream.c \
5192 src/resolve/resolved-dns-dnssec.h \
5193 src/resolve/resolved-dns-dnssec.c \
5194 src/resolve/resolved-dns-trust-anchor.h \
5195 src/resolve/resolved-dns-trust-anchor.c \
5196 src/resolve/dns-type.c \
5197 src/resolve/dns-type.h
5198
5199 nodist_systemd_resolved_SOURCES = \
5200 src/resolve/dns_type-from-name.h \
5201 src/resolve/dns_type-to-name.h \
5202 src/resolve/resolved-gperf.c
5203
5204 gperf_gperf_sources += \
5205 src/resolve/resolved-gperf.gperf
5206
5207 gperf_txt_sources += \
5208 src/resolve/dns_type-list.txt
5209
5210 systemd_resolved_LDADD = \
5211 libsystemd-network.la \
5212 libshared.la
5213
5214 rootlibexec_PROGRAMS += \
5215 systemd-resolved
5216
5217 nodist_systemunit_DATA += \
5218 units/systemd-resolved.service
5219
5220 dist_systemunit_DATA_busnames += \
5221 units/org.freedesktop.resolve1.busname
5222
5223 dist_dbuspolicy_DATA += \
5224 src/resolve/org.freedesktop.resolve1.conf
5225
5226 dist_dbussystemservice_DATA += \
5227 src/resolve/org.freedesktop.resolve1.service
5228
5229 SYSTEM_UNIT_ALIASES += \
5230 systemd-resolved.service dbus-org.freedesktop.resolve1.service
5231
5232 BUSNAMES_TARGET_WANTS += \
5233 org.freedesktop.resolve1.busname
5234
5235 GENERAL_ALIASES += \
5236 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
5237
5238 nodist_pkgsysconf_DATA += \
5239 src/resolve/resolved.conf
5240
5241 libnss_resolve_la_SOURCES = \
5242 src/nss-resolve/nss-resolve.sym \
5243 src/nss-resolve/nss-resolve.c
5244
5245 libnss_resolve_la_LDFLAGS = \
5246 $(AM_LDFLAGS) \
5247 -module \
5248 -export-dynamic \
5249 -avoid-version \
5250 -shared \
5251 -shrext .so.2 \
5252 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
5253
5254 libnss_resolve_la_LIBADD = \
5255 libshared.la \
5256 -ldl
5257
5258 lib_LTLIBRARIES += \
5259 libnss_resolve.la
5260
5261 systemd_resolve_host_SOURCES = \
5262 src/resolve-host/resolve-host.c \
5263 src/resolve/resolved-dns-packet.c \
5264 src/resolve/resolved-dns-packet.h \
5265 src/resolve/resolved-dns-rr.c \
5266 src/resolve/resolved-dns-rr.h \
5267 src/resolve/resolved-dns-answer.c \
5268 src/resolve/resolved-dns-answer.h \
5269 src/resolve/resolved-dns-question.c \
5270 src/resolve/resolved-dns-question.h \
5271 src/resolve/dns-type.c \
5272 src/resolve/dns-type.h
5273
5274 nodist_systemd_resolve_host_SOURCES = \
5275 src/resolve/dns_type-from-name.h \
5276 src/resolve/dns_type-to-name.h
5277
5278 systemd_resolve_host_LDADD = \
5279 libshared.la
5280
5281 rootlibexec_PROGRAMS += \
5282 systemd-resolve-host
5283
5284 tests += \
5285 test-dns-domain \
5286 test-dnssec
5287
5288 test_dnssec_SOURCES = \
5289 src/resolve/test-dnssec.c \
5290 src/resolve/resolved-dns-packet.c \
5291 src/resolve/resolved-dns-packet.h \
5292 src/resolve/resolved-dns-rr.c \
5293 src/resolve/resolved-dns-rr.h \
5294 src/resolve/resolved-dns-answer.c \
5295 src/resolve/resolved-dns-answer.h \
5296 src/resolve/resolved-dns-question.c \
5297 src/resolve/resolved-dns-question.h \
5298 src/resolve/resolved-dns-dnssec.c \
5299 src/resolve/resolved-dns-dnssec.h \
5300 src/resolve/dns-type.c \
5301 src/resolve/dns-type.h
5302
5303 test_dnssec_LDADD = \
5304 libshared.la
5305
5306 endif
5307 endif
5308
5309 EXTRA_DIST += \
5310 units/systemd-resolved.service.m4.in \
5311 src/resolve/resolved.conf.in
5312
5313 # ------------------------------------------------------------------------------
5314 if ENABLE_NETWORKD
5315 rootlibexec_PROGRAMS += \
5316 systemd-networkd
5317
5318 systemd_networkd_SOURCES = \
5319 src/network/networkd.c
5320
5321 systemd_networkd_LDADD = \
5322 libnetworkd-core.la
5323
5324 if HAVE_LIBIPTC
5325 systemd_networkd_LDADD += \
5326 libfirewall.la
5327 endif
5328
5329 noinst_LTLIBRARIES += \
5330 libnetworkd-core.la
5331
5332 libnetworkd_core_la_CFLAGS = \
5333 $(AM_CFLAGS)
5334
5335 libnetworkd_core_la_SOURCES = \
5336 src/libsystemd-network/network-internal.h \
5337 src/network/networkd.h \
5338 src/network/networkd-link.h \
5339 src/network/networkd-link.c \
5340 src/network/networkd-netdev.h \
5341 src/network/networkd-netdev.c \
5342 src/network/networkd-netdev-tunnel.h \
5343 src/network/networkd-netdev-tunnel.c \
5344 src/network/networkd-netdev-veth.h \
5345 src/network/networkd-netdev-veth.c \
5346 src/network/networkd-netdev-vxlan.h \
5347 src/network/networkd-netdev-vxlan.c \
5348 src/network/networkd-netdev-vlan.h \
5349 src/network/networkd-netdev-vlan.c \
5350 src/network/networkd-netdev-macvlan.h \
5351 src/network/networkd-netdev-macvlan.c \
5352 src/network/networkd-netdev-ipvlan.h \
5353 src/network/networkd-netdev-ipvlan.c \
5354 src/network/networkd-netdev-dummy.h \
5355 src/network/networkd-netdev-dummy.c \
5356 src/network/networkd-netdev-tuntap.h \
5357 src/network/networkd-netdev-tuntap.c \
5358 src/network/networkd-netdev-bond.h \
5359 src/network/networkd-netdev-bond.c \
5360 src/network/networkd-netdev-bridge.h \
5361 src/network/networkd-netdev-bridge.c \
5362 src/network/networkd-link-bus.c \
5363 src/network/networkd-ipv4ll.c \
5364 src/network/networkd-dhcp4.c \
5365 src/network/networkd-dhcp6.c \
5366 src/network/networkd-ndisc.c \
5367 src/network/networkd-network.h \
5368 src/network/networkd-network.c \
5369 src/network/networkd-network-bus.c \
5370 src/network/networkd-address.h \
5371 src/network/networkd-address.c \
5372 src/network/networkd-route.h \
5373 src/network/networkd-route.c \
5374 src/network/networkd-manager.c \
5375 src/network/networkd-manager-bus.c \
5376 src/network/networkd-fdb.h \
5377 src/network/networkd-fdb.c \
5378 src/network/networkd-address-pool.h \
5379 src/network/networkd-address-pool.c \
5380 src/network/networkd-util.h \
5381 src/network/networkd-util.c
5382
5383 nodist_libnetworkd_core_la_SOURCES = \
5384 src/network/networkd-network-gperf.c \
5385 src/network/networkd-netdev-gperf.c
5386
5387 libnetworkd_core_la_LIBADD = \
5388 libsystemd-network.la \
5389 libshared.la
5390
5391 rootlibexec_PROGRAMS += \
5392 systemd-networkd-wait-online
5393
5394 systemd_networkd_wait_online_CFLAGS = \
5395 $(AM_CFLAGS)
5396
5397 systemd_networkd_wait_online_SOURCES = \
5398 src/libsystemd-network/network-internal.h \
5399 src/network/networkd-wait-online.h \
5400 src/network/networkd-wait-online-link.h \
5401 src/network/networkd-wait-online.c \
5402 src/network/networkd-wait-online-manager.c \
5403 src/network/networkd-wait-online-link.c
5404
5405 systemd_networkd_wait_online_LDADD = \
5406 libsystemd-network.la \
5407 libshared.la
5408
5409 rootbin_PROGRAMS += \
5410 networkctl
5411
5412 networkctl_SOURCES = \
5413 src/network/networkctl.c
5414
5415 networkctl_LDADD = \
5416 libshared.la \
5417 libsystemd-network.la
5418
5419 if ENABLE_BASH_COMPLETION
5420 dist_bashcompletion_DATA += \
5421 shell-completion/bash/networkctl
5422 endif
5423
5424 test_network_SOURCES = \
5425 src/network/test-network.c
5426
5427 test_network_LDADD = \
5428 libnetworkd-core.la
5429
5430 if HAVE_LIBIPTC
5431 test_network_LDADD += \
5432 libfirewall.la
5433 endif
5434
5435 test_network_tables_SOURCES = \
5436 src/network/test-network-tables.c \
5437 src/shared/test-tables.h
5438
5439 test_network_tables_LDADD = \
5440 libnetworkd-core.la \
5441 libudev-core.la
5442
5443 if HAVE_LIBIPTC
5444 test_network_tables_LDADD += \
5445 libfirewall.la
5446 endif
5447
5448 tests += \
5449 test-network \
5450 test-network-tables
5451
5452 dist_systemunit_DATA += \
5453 units/systemd-networkd.socket
5454
5455 nodist_systemunit_DATA += \
5456 units/systemd-networkd.service \
5457 units/systemd-networkd-wait-online.service
5458
5459 dist_systemunit_DATA_busnames += \
5460 units/org.freedesktop.network1.busname
5461
5462 dist_dbussystemservice_DATA += \
5463 src/network/org.freedesktop.network1.service
5464
5465 dist_dbuspolicy_DATA += \
5466 src/network/org.freedesktop.network1.conf
5467
5468 GENERAL_ALIASES += \
5469 $(systemunitdir)/systemd-networkd.socket $(pkgsysconfdir)/system/sockets.target.wants/systemd-networkd.socket \
5470 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5471 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5472
5473 SYSTEM_UNIT_ALIASES += \
5474 systemd-networkd.service dbus-org.freedesktop.network1.service
5475
5476 BUSNAMES_TARGET_WANTS += \
5477 org.freedesktop.network1.busname
5478
5479 gperf_gperf_sources += \
5480 src/network/networkd-network-gperf.gperf \
5481 src/network/networkd-netdev-gperf.gperf
5482 endif
5483
5484 EXTRA_DIST += \
5485 units/systemd-networkd.service.m4.in \
5486 units/systemd-networkd-wait-online.service.in \
5487 test/networkd-test.py
5488
5489 # ------------------------------------------------------------------------------
5490 if ENABLE_LOGIND
5491 systemd_logind_SOURCES = \
5492 src/login/logind.c \
5493 src/login/logind.h
5494
5495 nodist_systemd_logind_SOURCES = \
5496 src/login/logind-gperf.c
5497
5498 systemd_logind_LDADD = \
5499 liblogind-core.la
5500
5501 liblogind_core_la_SOURCES = \
5502 src/login/logind-core.c \
5503 src/login/logind-device.c \
5504 src/login/logind-device.h \
5505 src/login/logind-button.c \
5506 src/login/logind-button.h \
5507 src/login/logind-action.c \
5508 src/login/logind-action.h \
5509 src/login/logind-seat.c \
5510 src/login/logind-seat.h \
5511 src/login/logind-session.c \
5512 src/login/logind-session.h \
5513 src/login/logind-session-device.c \
5514 src/login/logind-session-device.h \
5515 src/login/logind-user.c \
5516 src/login/logind-user.h \
5517 src/login/logind-inhibit.c \
5518 src/login/logind-inhibit.h \
5519 src/login/logind-dbus.c \
5520 src/login/logind-session-dbus.c \
5521 src/login/logind-seat-dbus.c \
5522 src/login/logind-user-dbus.c \
5523 src/login/logind-utmp.c \
5524 src/login/logind-acl.h
5525
5526 liblogind_core_la_LIBADD = \
5527 libshared.la
5528
5529 if HAVE_ACL
5530 liblogind_core_la_SOURCES += \
5531 src/login/logind-acl.c
5532 endif
5533
5534 noinst_LTLIBRARIES += \
5535 liblogind-core.la
5536
5537 rootlibexec_PROGRAMS += \
5538 systemd-logind
5539
5540 loginctl_SOURCES = \
5541 src/login/loginctl.c \
5542 src/login/sysfs-show.h \
5543 src/login/sysfs-show.c
5544
5545 loginctl_LDADD = \
5546 libshared.la
5547
5548 rootbin_PROGRAMS += \
5549 loginctl
5550
5551 if ENABLE_BASH_COMPLETION
5552 dist_bashcompletion_DATA += \
5553 shell-completion/bash/loginctl
5554 endif
5555
5556 if ENABLE_ZSH_COMPLETION
5557 dist_zshcompletion_DATA += \
5558 shell-completion/zsh/_loginctl \
5559 shell-completion/zsh/_systemd-inhibit
5560 endif
5561
5562 systemd_inhibit_SOURCES = \
5563 src/login/inhibit.c
5564
5565 systemd_inhibit_LDADD = \
5566 libshared.la
5567
5568 rootbin_PROGRAMS += \
5569 systemd-inhibit
5570
5571 test_login_SOURCES = \
5572 src/libsystemd/sd-login/test-login.c
5573
5574 test_login_LDADD = \
5575 libshared.la
5576
5577 test_login_shared_SOURCES = \
5578 src/login/test-login-shared.c
5579
5580 test_login_shared_LDADD = \
5581 libshared.la
5582
5583 test_inhibit_SOURCES = \
5584 src/login/test-inhibit.c
5585
5586 test_inhibit_LDADD = \
5587 libshared.la
5588
5589 test_login_tables_SOURCES = \
5590 src/login/test-login-tables.c
5591
5592 test_login_tables_LDADD = \
5593 liblogind-core.la
5594
5595 manual_tests += \
5596 test-login \
5597 test-inhibit
5598
5599 tests += \
5600 test-login-tables \
5601 test-login-shared
5602
5603 if HAVE_PAM
5604 pam_systemd_la_SOURCES = \
5605 src/login/pam_systemd.sym \
5606 src/login/pam_systemd.c
5607
5608 pam_systemd_la_CFLAGS = \
5609 $(AM_CFLAGS) \
5610 $(PAM_CFLAGS)
5611
5612 pam_systemd_la_LDFLAGS = \
5613 $(AM_LDFLAGS) \
5614 -module \
5615 -export-dynamic \
5616 -avoid-version \
5617 -shared \
5618 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5619
5620 pam_systemd_la_LIBADD = \
5621 libshared.la \
5622 $(PAM_LIBS)
5623
5624 pamlib_LTLIBRARIES = \
5625 pam_systemd.la
5626
5627 dist_pamconf_DATA = \
5628 src/login/systemd-user
5629
5630 EXTRA_DIST += \
5631 src/login/systemd-user.m4
5632 endif
5633
5634 nodist_systemunit_DATA += \
5635 units/systemd-logind.service
5636
5637 dist_systemunit_DATA += \
5638 units/user.slice
5639
5640 dist_systemunit_DATA_busnames += \
5641 units/org.freedesktop.login1.busname
5642
5643 dist_dbussystemservice_DATA += \
5644 src/login/org.freedesktop.login1.service
5645
5646 dist_dbuspolicy_DATA += \
5647 src/login/org.freedesktop.login1.conf
5648
5649 dist_pkgsysconf_DATA += \
5650 src/login/logind.conf
5651
5652 polkitpolicy_files += \
5653 src/login/org.freedesktop.login1.policy
5654
5655 INSTALL_DIRS += \
5656 $(systemdstatedir)
5657
5658 MULTI_USER_TARGET_WANTS += \
5659 systemd-logind.service
5660
5661 SYSTEM_UNIT_ALIASES += \
5662 systemd-logind.service dbus-org.freedesktop.login1.service
5663
5664 BUSNAMES_TARGET_WANTS += \
5665 org.freedesktop.login1.busname
5666
5667 dist_udevrules_DATA += \
5668 src/login/70-uaccess.rules \
5669 src/login/70-power-switch.rules
5670
5671 nodist_udevrules_DATA += \
5672 src/login/71-seat.rules \
5673 src/login/73-seat-late.rules
5674
5675 endif
5676
5677 polkitpolicy_in_files += \
5678 src/login/org.freedesktop.login1.policy.in
5679
5680 gperf_gperf_sources += \
5681 src/login/logind-gperf.gperf
5682
5683 EXTRA_DIST += \
5684 src/login/71-seat.rules.in \
5685 src/login/73-seat-late.rules.in \
5686 units/systemd-logind.service.in
5687
5688 # ------------------------------------------------------------------------------
5689 if HAVE_PAM
5690
5691 systemd_user_sessions_SOURCES = \
5692 src/user-sessions/user-sessions.c
5693
5694 systemd_user_sessions_LDADD = \
5695 libshared.la
5696
5697 rootlibexec_PROGRAMS += \
5698 systemd-user-sessions
5699
5700 nodist_systemunit_DATA += \
5701 units/systemd-user-sessions.service
5702
5703 MULTI_USER_TARGET_WANTS += \
5704 systemd-user-sessions.service
5705
5706 endif
5707
5708 EXTRA_DIST += \
5709 units/systemd-user-sessions.service.in
5710
5711 # ------------------------------------------------------------------------------
5712 EXTRA_DIST += \
5713 test/Makefile \
5714 test/README.testsuite \
5715 test/TEST-01-BASIC \
5716 test/TEST-01-BASIC/Makefile \
5717 test/TEST-01-BASIC/test.sh \
5718 test/TEST-02-CRYPTSETUP \
5719 test/TEST-02-CRYPTSETUP/Makefile \
5720 test/TEST-02-CRYPTSETUP/test.sh \
5721 test/TEST-03-JOBS \
5722 test/TEST-03-JOBS/Makefile \
5723 test/TEST-03-JOBS/test-jobs.sh \
5724 test/TEST-03-JOBS/test.sh \
5725 test/TEST-04-JOURNAL/Makefile \
5726 test/TEST-04-JOURNAL/test-journal.sh \
5727 test/TEST-04-JOURNAL/test.sh \
5728 test/test-functions
5729
5730 EXTRA_DIST += \
5731 test/loopy2.service \
5732 test/loopy3.service \
5733 test/loopy4.service \
5734 test/loopy.service \
5735 test/loopy.service.d \
5736 test/loopy.service.d/compat.conf
5737
5738 # ------------------------------------------------------------------------------
5739 if ENABLE_COMPAT_LIBS
5740 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
5741 $(AM_V_at)$(MKDIR_P) $(dir $@)
5742 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
5743
5744 BUILT_SOURCES += \
5745 libsystemd-journal.c \
5746 libsystemd-login.c \
5747 libsystemd-id128.c \
5748 libsystemd-daemon.c
5749
5750 nodist_libsystemd_journal_la_SOURCES = \
5751 libsystemd-journal.c
5752
5753 libsystemd_journal_la_SOURCES = \
5754 src/compat-libs/libsystemd-journal.sym
5755
5756 libsystemd_journal_la_CPPFLAGS = \
5757 $(AM_CPPFLAGS) \
5758 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5759
5760 libsystemd_journal_la_LDFLAGS = \
5761 $(AM_LDFLAGS) \
5762 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
5763 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
5764
5765 libsystemd_journal_la_LIBADD = \
5766 libsystemd-journal-internal.la \
5767 libsystemd-internal.la
5768
5769 nodist_libsystemd_login_la_SOURCES = \
5770 libsystemd-login.c
5771
5772 libsystemd_login_la_SOURCES = \
5773 src/compat-libs/libsystemd-login.sym
5774
5775 libsystemd_login_la_CPPFLAGS = \
5776 $(AM_CPPFLAGS) \
5777 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5778
5779 libsystemd_login_la_LDFLAGS = \
5780 $(AM_LDFLAGS) \
5781 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
5782 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
5783
5784 libsystemd_login_la_LIBADD = \
5785 libsystemd-internal.la
5786
5787 nodist_libsystemd_id128_la_SOURCES = \
5788 libsystemd-id128.c
5789
5790 libsystemd_id128_la_SOURCES = \
5791 src/compat-libs/libsystemd-id128.sym
5792
5793 libsystemd_id128_la_CPPFLAGS = \
5794 $(AM_CPPFLAGS) \
5795 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5796
5797 libsystemd_id128_la_LDFLAGS = \
5798 $(AM_LDFLAGS) \
5799 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
5800 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
5801
5802 libsystemd_id128_la_LIBADD = \
5803 libsystemd-internal.la
5804
5805 nodist_libsystemd_daemon_la_SOURCES = \
5806 libsystemd-daemon.c
5807
5808 libsystemd_daemon_la_SOURCES = \
5809 src/compat-libs/libsystemd-daemon.sym
5810
5811 libsystemd_daemon_la_CPPFLAGS = \
5812 $(AM_CPPFLAGS) \
5813 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5814
5815 libsystemd_daemon_la_LDFLAGS = \
5816 $(AM_LDFLAGS) \
5817 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
5818 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
5819
5820 libsystemd_daemon_la_LIBADD = \
5821 libsystemd-internal.la
5822
5823 lib_LTLIBRARIES += \
5824 libsystemd-journal.la \
5825 libsystemd-login.la \
5826 libsystemd-id128.la \
5827 libsystemd-daemon.la
5828
5829 pkgconfiglib_DATA += \
5830 src/compat-libs/libsystemd-journal.pc \
5831 src/compat-libs/libsystemd-login.pc \
5832 src/compat-libs/libsystemd-id128.pc \
5833 src/compat-libs/libsystemd-daemon.pc
5834
5835 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
5836 compat-lib-install-hook:
5837 libname=libsystemd-login.so && $(move-to-rootlibdir)
5838 libname=libsystemd-journal.so && $(move-to-rootlibdir)
5839 libname=libsystemd-id128.so && $(move-to-rootlibdir)
5840 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
5841
5842 compat-lib-uninstall-hook:
5843 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
5844 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
5845 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
5846 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
5847
5848 INSTALL_EXEC_HOOKS += compat-lib-install-hook
5849 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
5850 endif
5851
5852 EXTRA_DIST += \
5853 src/compat-libs/linkwarning.h \
5854 src/compat-libs/libsystemd-journal.pc.in \
5855 src/compat-libs/libsystemd-login.pc.in \
5856 src/compat-libs/libsystemd-id128.pc.in \
5857 src/compat-libs/libsystemd-daemon.pc.in
5858
5859 # ------------------------------------------------------------------------------
5860 substitutions = \
5861 '|rootlibexecdir=$(rootlibexecdir)|' \
5862 '|rootbindir=$(rootbindir)|' \
5863 '|bindir=$(bindir)|' \
5864 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5865 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5866 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5867 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5868 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
5869 '|pkgdatadir=$(pkgdatadir)|' \
5870 '|systemunitdir=$(systemunitdir)|' \
5871 '|userunitdir=$(userunitdir)|' \
5872 '|systempresetdir=$(systempresetdir)|' \
5873 '|userpresetdir=$(userpresetdir)|' \
5874 '|udevhwdbdir=$(udevhwdbdir)|' \
5875 '|udevrulesdir=$(udevrulesdir)|' \
5876 '|catalogdir=$(catalogdir)|' \
5877 '|tmpfilesdir=$(tmpfilesdir)|' \
5878 '|sysusersdir=$(sysusersdir)|' \
5879 '|sysctldir=$(sysctldir)|' \
5880 '|systemgeneratordir=$(systemgeneratordir)|' \
5881 '|usergeneratordir=$(usergeneratordir)|' \
5882 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
5883 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
5884 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
5885 '|PACKAGE_URL=$(PACKAGE_URL)|' \
5886 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
5887 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
5888 '|prefix=$(prefix)|' \
5889 '|exec_prefix=$(exec_prefix)|' \
5890 '|libdir=$(libdir)|' \
5891 '|includedir=$(includedir)|' \
5892 '|VERSION=$(VERSION)|' \
5893 '|rootprefix=$(rootprefix)|' \
5894 '|udevlibexecdir=$(udevlibexecdir)|' \
5895 '|SUSHELL=$(SUSHELL)|' \
5896 '|SULOGIN=$(SULOGIN)|' \
5897 '|DEBUGTTY=$(DEBUGTTY)|' \
5898 '|KILL=$(KILL)|' \
5899 '|KMOD=$(KMOD)|' \
5900 '|MOUNT_PATH=$(MOUNT_PATH)|' \
5901 '|UMOUNT_PATH=$(UMOUNT_PATH)|' \
5902 '|MKDIR_P=$(MKDIR_P)|' \
5903 '|QUOTAON=$(QUOTAON)|' \
5904 '|QUOTACHECK=$(QUOTACHECK)|' \
5905 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
5906 '|VARLOGDIR=$(varlogdir)|' \
5907 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
5908 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
5909 '|PYTHON=$(PYTHON)|' \
5910 '|NTP_SERVERS=$(NTP_SERVERS)|' \
5911 '|DNS_SERVERS=$(DNS_SERVERS)|' \
5912 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
5913 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
5914 '|TTY_GID=$(TTY_GID)|' \
5915 '|systemsleepdir=$(systemsleepdir)|' \
5916 '|systemshutdowndir=$(systemshutdowndir)|' \
5917 '|binfmtdir=$(binfmtdir)|' \
5918 '|modulesloaddir=$(modulesloaddir)|'
5919
5920 SED_PROCESS = \
5921 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
5922 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
5923 < $< > $@
5924
5925 units/%: units/%.in
5926 $(SED_PROCESS)
5927
5928 man/%: man/%.in
5929 $(SED_PROCESS)
5930
5931 sysctl.d/%: sysctl.d/%.in
5932 $(SED_PROCESS)
5933
5934 %.pc: %.pc.in
5935 $(SED_PROCESS)
5936
5937 %.conf: %.conf.in
5938 $(SED_PROCESS)
5939
5940 src/core/%.systemd: src/core/%.systemd.in
5941 $(SED_PROCESS)
5942
5943 src/%.policy.in: src/%.policy.in.in
5944 $(SED_PROCESS)
5945
5946 shell-completion/%: shell-completion/%.in
5947 $(SED_PROCESS)
5948
5949 %.rules: %.rules.in
5950 $(SED_PROCESS)
5951
5952 %.conf: %.conf.in
5953 $(SED_PROCESS)
5954
5955 %.sh: %.sh.in
5956 $(SED_PROCESS)
5957 $(AM_V_GEN)chmod +x $@
5958
5959 src/%.c: src/%.gperf
5960 $(AM_V_at)$(MKDIR_P) $(dir $@)
5961 $(AM_V_GPERF)$(GPERF) < $< > $@
5962
5963 src/%: src/%.m4
5964 $(AM_V_at)$(MKDIR_P) $(dir $@)
5965 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5966
5967 sysusers.d/%: sysusers.d/%.m4
5968 $(AM_V_at)$(MKDIR_P) $(dir $@)
5969 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5970
5971 tmpfiles.d/%: tmpfiles.d/%.m4
5972 $(AM_V_at)$(MKDIR_P) $(dir $@)
5973 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5974
5975
5976 units/%: units/%.m4
5977 $(AM_V_at)$(MKDIR_P) $(dir $@)
5978 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
5979
5980 units/user/%: units/user/%.m4
5981 $(AM_V_at)$(MKDIR_P) $(dir $@)
5982 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
5983
5984 if ENABLE_POLKIT
5985 nodist_polkitpolicy_DATA = \
5986 $(polkitpolicy_files) \
5987 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
5988 endif
5989
5990 EXTRA_DIST += \
5991 $(polkitpolicy_in_files) \
5992 $(polkitpolicy_in_in_files)
5993
5994 # ------------------------------------------------------------------------------
5995 if ENABLE_MANPAGES
5996 man/custom-entities.ent: configure.ac
5997 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
5998 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
5999 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
6000 > $@ # '
6001
6002 CLEANFILES += \
6003 man/custom-entities.ent
6004
6005 XSLTPROC_FLAGS = \
6006 --nonet \
6007 --xinclude \
6008 --stringparam man.output.quietly 1 \
6009 --stringparam funcsynopsis.style ansi \
6010 --stringparam man.authors.section.enabled 0 \
6011 --stringparam man.copyright.section.enabled 0 \
6012 --stringparam systemd.version $(VERSION) \
6013 --path '$(builddir)/man:$(srcdir)/man'
6014
6015 XSLTPROC_PROCESS_MAN = \
6016 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
6017
6018 XSLTPROC_PROCESS_HTML = \
6019 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
6020
6021 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
6022 $(XSLTPROC_PROCESS_MAN)
6023
6024 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
6025 $(XSLTPROC_PROCESS_MAN)
6026
6027 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
6028 $(XSLTPROC_PROCESS_MAN)
6029
6030 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
6031 $(XSLTPROC_PROCESS_MAN)
6032
6033 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
6034 $(XSLTPROC_PROCESS_MAN)
6035
6036 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
6037 $(XSLTPROC_PROCESS_HTML)
6038
6039 define html-alias
6040 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
6041 endef
6042
6043 endif
6044
6045 EXTRA_DIST += \
6046 man/custom-html.xsl \
6047 man/custom-man.xsl
6048
6049 # ------------------------------------------------------------------------------
6050 if HAVE_SYSV_COMPAT
6051 sysvinit_DATA = \
6052 docs/sysvinit/README
6053
6054 varlog_DATA = \
6055 docs/var-log/README
6056
6057 docs/sysvinit/README: docs/sysvinit/README.in
6058 $(SED_PROCESS)
6059
6060 docs/var-log/README: docs/var-log/README.in
6061 $(SED_PROCESS)
6062
6063 CLEANFILES += \
6064 docs/sysvinit/README \
6065 docs/var-log/README
6066 endif
6067
6068 EXTRA_DIST += \
6069 docs/sysvinit/README.in \
6070 docs/var-log/README.in
6071
6072 SOCKETS_TARGET_WANTS += \
6073 systemd-initctl.socket
6074
6075 if HAVE_UTMP
6076 if HAVE_SYSV_COMPAT
6077 MULTI_USER_TARGET_WANTS += \
6078 systemd-update-utmp-runlevel.service
6079 GRAPHICAL_TARGET_WANTS += \
6080 systemd-update-utmp-runlevel.service
6081 RESCUE_TARGET_WANTS += \
6082 systemd-update-utmp-runlevel.service
6083 endif
6084
6085 SYSINIT_TARGET_WANTS += \
6086 systemd-update-utmp.service
6087 endif
6088
6089 SYSINIT_TARGET_WANTS += \
6090 systemd-update-done.service
6091
6092 LOCAL_FS_TARGET_WANTS += \
6093 systemd-remount-fs.service \
6094 tmp.mount \
6095 var-lib-machines.mount
6096
6097 MULTI_USER_TARGET_WANTS += \
6098 getty.target \
6099 systemd-ask-password-wall.path
6100
6101 SYSINIT_TARGET_WANTS += \
6102 dev-hugepages.mount \
6103 dev-mqueue.mount \
6104 sys-kernel-config.mount \
6105 sys-kernel-debug.mount \
6106 sys-fs-fuse-connections.mount \
6107 systemd-sysctl.service \
6108 systemd-ask-password-console.path
6109
6110 if HAVE_SYSV_COMPAT
6111 SYSTEM_UNIT_ALIASES += \
6112 poweroff.target runlevel0.target \
6113 rescue.target runlevel1.target \
6114 multi-user.target runlevel2.target \
6115 multi-user.target runlevel3.target \
6116 multi-user.target runlevel4.target \
6117 graphical.target runlevel5.target \
6118 reboot.target runlevel6.target
6119 endif
6120
6121 SYSTEM_UNIT_ALIASES += \
6122 graphical.target default.target \
6123 reboot.target ctrl-alt-del.target \
6124 getty@.service autovt@.service
6125
6126 USER_UNIT_ALIASES += \
6127 $(systemunitdir)/shutdown.target shutdown.target \
6128 $(systemunitdir)/sockets.target sockets.target \
6129 $(systemunitdir)/timers.target timers.target \
6130 $(systemunitdir)/paths.target paths.target \
6131 $(systemunitdir)/bluetooth.target bluetooth.target \
6132 $(systemunitdir)/printer.target printer.target \
6133 $(systemunitdir)/sound.target sound.target \
6134 $(systemunitdir)/smartcard.target smartcard.target
6135
6136 USER_UNIT_ALIASES += \
6137 $(systemunitdir)/busnames.target busnames.target
6138
6139 GENERAL_ALIASES += \
6140 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
6141 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
6142 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
6143 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
6144
6145 if HAVE_SYSV_COMPAT
6146 INSTALL_DIRS += \
6147 $(systemunitdir)/runlevel1.target.wants \
6148 $(systemunitdir)/runlevel2.target.wants \
6149 $(systemunitdir)/runlevel3.target.wants \
6150 $(systemunitdir)/runlevel4.target.wants \
6151 $(systemunitdir)/runlevel5.target.wants
6152 endif
6153
6154 INSTALL_DIRS += \
6155 $(prefix)/lib/modules-load.d \
6156 $(sysconfdir)/modules-load.d \
6157 $(prefix)/lib/systemd/network \
6158 $(sysconfdir)/systemd/network \
6159 $(prefix)/lib/sysctl.d \
6160 $(sysconfdir)/sysctl.d \
6161 $(prefix)/lib/kernel/install.d \
6162 $(sysconfdir)/kernel/install.d \
6163 $(systemshutdowndir) \
6164 $(systemsleepdir) \
6165 $(systemgeneratordir) \
6166 $(usergeneratordir) \
6167 \
6168 $(userunitdir) \
6169 $(pkgsysconfdir)/system \
6170 $(pkgsysconfdir)/system/multi-user.target.wants \
6171 $(pkgsysconfdir)/system/getty.target.wants \
6172 $(pkgsysconfdir)/user \
6173 $(dbussessionservicedir) \
6174 $(sysconfdir)/xdg/systemd
6175
6176 install-exec-hook: $(INSTALL_EXEC_HOOKS)
6177
6178 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
6179
6180 install-data-hook: $(INSTALL_DATA_HOOKS)
6181
6182 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
6183
6184 clean-local: $(CLEAN_LOCAL_HOOKS)
6185 rm -rf $(abs_srcdir)/install-tree
6186 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
6187 $(abs_srcdir)/hwdb/iab.txt
6188
6189 DISTCHECK_CONFIGURE_FLAGS = \
6190 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
6191 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6192 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
6193 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
6194 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
6195 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
6196 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
6197 --with-rootprefix=$$dc_install_base \
6198 --enable-compat-libs
6199
6200 if HAVE_SYSV_COMPAT
6201 DISTCHECK_CONFIGURE_FLAGS += \
6202 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
6203 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
6204 else
6205 DISTCHECK_CONFIGURE_FLAGS += \
6206 --with-sysvinit-path= \
6207 --with-sysvrcnd-path=
6208 endif
6209
6210 if ENABLE_SPLIT_USR
6211 DISTCHECK_CONFIGURE_FLAGS += \
6212 --enable-split-usr
6213 else
6214 DISTCHECK_CONFIGURE_FLAGS += \
6215 --disable-split-usr
6216 endif
6217
6218 #
6219 # Require python when making dist
6220 #
6221 .PHONY: dist-check-python dist-check-compat-libs dist-check-help
6222 dist-check-python:
6223 if !HAVE_PYTHON
6224 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
6225 @false
6226 endif
6227
6228 dist-check-compat-libs:
6229 if !ENABLE_COMPAT_LIBS
6230 @echo "*** compat-libs must be enabled in order to make dist"
6231 @false
6232 endif
6233
6234 dist-check-help: $(rootbin_PROGRAMS) $(bin_PROGRAMS)
6235 for i in $(abspath $^); do \
6236 if $$i --help | grep -v 'default:' | grep -E -q '.{80}.' ; then \
6237 echo "$(basename $$i) --help output is too wide:"; \
6238 $$i --help | awk 'length > 80' | grep -E --color=yes '.{80}'; \
6239 exit 1; \
6240 fi; done
6241
6242 dist: dist-check-python dist-check-compat-libs
6243
6244 .PHONY: hwdb-update
6245 hwdb-update:
6246 ( cd $(top_srcdir)/hwdb && \
6247 wget -O usb.ids 'http://www.linux-usb.org/usb.ids' && \
6248 wget -O pci.ids 'http://pci-ids.ucw.cz/v2.2/pci.ids' && \
6249 wget -O ma-large.txt 'http://standards.ieee.org/develop/regauth/oui/oui.txt' && \
6250 wget -O ma-medium.txt 'http://standards.ieee.org/develop/regauth/oui28/mam.txt' && \
6251 wget -O ma-small.txt 'http://standards.ieee.org/develop/regauth/oui36/oui36.txt' && \
6252 ./ids-update.pl )
6253
6254 .PHONY: built-sources
6255 built-sources: $(BUILT_SOURCES)
6256
6257 .PHONY: git-tag
6258 git-tag:
6259 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6260
6261 .PHONY: git-tar
6262 git-tar:
6263 git archive --format=tar --prefix=systemd-$(VERSION)/ HEAD | gzip > systemd-$(VERSION).tar.gz
6264
6265 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6266
6267 .PHONY: doc-sync
6268 doc-sync: all
6269 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6270
6271 .PHONY: gardel
6272 gardel:
6273 scp man/*.html gardel:public/systemd-man/
6274
6275 .PHONY: lennart-fedora
6276 lennart-fedora:
6277 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
6278
6279 .PHONY: install-tree
6280 install-tree: all
6281 rm -rf $(abs_srcdir)/install-tree
6282 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6283 tree $(abs_srcdir)/install-tree
6284
6285 # Let's run all tests of the test suite, but under valgrind. Let's
6286 # exclude the one perl script we have in there
6287 .PHONY: valgrind-tests
6288 valgrind-tests: $(TESTS)
6289 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
6290 if file $$f | grep -q shell; then \
6291 echo -e "$${x}Skipping non-binary $$f"; else \
6292 echo -e "$${x}Running $$f"; \
6293 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6294 x="\n\n"; \
6295 done
6296
6297 exported-%: %
6298 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6299
6300 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6301 $(AM_V_GEN)sort -u $^ > $@
6302
6303 .PHONY: check-api-docs
6304 check-api-docs: exported man
6305 $(AM_V_GEN)for symbol in `cat exported` ; do \
6306 if test -f $(builddir)/man/$$symbol.html ; then \
6307 echo " Symbol $$symbol() is documented." ; \
6308 else \
6309 echo "‣ Symbol $$symbol() lacks documentation." ; \
6310 fi ; \
6311 done
6312
6313 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6314 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6315
6316 undefined defined: $(ALL_OBJECTS)
6317 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6318 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6319 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6320
6321 CLEANFILES += \
6322 defined \
6323 undefined
6324
6325 .PHONY: check-api-unused
6326 check-api-unused: defined undefined exported
6327 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6328
6329 .PHONY: check-includes
6330 check-includes: $(top_srcdir)/tools/check-includes.pl
6331 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6332 | xargs $(top_srcdir)/tools/check-includes.pl
6333
6334 EXTRA_DIST += \
6335 $(top_srcdir)/tools/check-includes.pl
6336
6337 # Stupid test that everything purported to be exported really is
6338 define generate-sym-test
6339 $(AM_V_at)$(MKDIR_P) $(dir $@)
6340 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6341 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6342 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6343 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6344 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6345 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6346 $(AM_V_at)printf 'return 0; }\n' >> $@
6347 endef
6348
6349 test-libsystemd-sym.c: \
6350 $(top_builddir)/src/libsystemd/libsystemd.sym \
6351 src/systemd/sd-journal.h \
6352 src/systemd/sd-daemon.h \
6353 src/systemd/sd-login.h \
6354 src/systemd/sd-bus.h \
6355 src/systemd/sd-utf8.h \
6356 src/systemd/sd-resolve.h \
6357 src/systemd/sd-path.h \
6358 src/systemd/sd-event.h
6359 $(generate-sym-test)
6360
6361 test-libudev-sym.c: \
6362 src/libudev/libudev.sym \
6363 src/udev/udev.h
6364 $(generate-sym-test)
6365
6366 nodist_test_libsystemd_sym_SOURCES = \
6367 test-libsystemd-sym.c
6368 test_libsystemd_sym_LDADD = \
6369 libsystemd.la
6370
6371 nodist_test_libudev_sym_SOURCES = \
6372 test-libudev-sym.c
6373 test_libudev_sym_CFLAGS = \
6374 $(AM_CFLAGS) \
6375 -Wno-deprecated-declarations
6376 test_libudev_sym_LDADD = \
6377 libudev.la
6378
6379 BUILT_SOURCES += \
6380 test-libsystemd-sym.c \
6381 test-libudev-sym.c
6382
6383 CLEANFILES += \
6384 test-libsystemd-sym.c \
6385 test-libudev-sym.c
6386
6387 tests += \
6388 test-libsystemd-sym \
6389 test-libudev-sym
6390
6391 .PHONY: cppcheck
6392 cppcheck:
6393 cppcheck --enable=all -q $(top_srcdir)
6394
6395 # Used to extract compile flags for YCM.
6396 print-%:
6397 @echo $($*)
6398
6399 git-contrib:
6400 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u
6401
6402 EXTRA_DIST += \
6403 tools/gdb-sd_dump_hashmaps.py
6404
6405 list-keys:
6406 gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --list-keys
6407
6408 add-key:
6409 gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --import -