]> git.ipfire.org Git - thirdparty/systemd.git/blob - Makefile.am
resolved: when synthesizing NODATA from cached NSEC bitmaps, honour CNAME/DNAME
[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
1502 if HAVE_ACL
1503 tests += \
1504 test-acl-util
1505 endif
1506
1507 EXTRA_DIST += \
1508 test/a.service \
1509 test/basic.target \
1510 test/b.service \
1511 test/c.service \
1512 test/daughter.service \
1513 test/d.service \
1514 test/end.service \
1515 test/e.service \
1516 test/f.service \
1517 test/grandchild.service \
1518 test/g.service \
1519 test/hello-after-sleep.target \
1520 test/hello.service \
1521 test/h.service \
1522 test/parent-deep.slice \
1523 test/parent.slice \
1524 test/sched_idle_bad.service \
1525 test/sched_idle_ok.service \
1526 test/sched_rr_bad.service \
1527 test/sched_rr_change.service \
1528 test/sched_rr_ok.service \
1529 test/shutdown.target \
1530 test/sleep.service \
1531 test/sockets.target \
1532 test/son.service \
1533 test/sysinit.target \
1534 test/testsuite.target \
1535 test/timers.target \
1536 test/unstoppable.service \
1537 test/test-path/paths.target \
1538 test/test-path/basic.target \
1539 test/test-path/sysinit.target \
1540 test/test-path/path-changed.service \
1541 test/test-path/path-directorynotempty.service \
1542 test/test-path/path-existsglob.service \
1543 test/test-path/path-exists.service \
1544 test/test-path/path-makedirectory.service \
1545 test/test-path/path-modified.service \
1546 test/test-path/path-mycustomunit.service \
1547 test/test-path/path-service.service \
1548 test/test-path/path-changed.path \
1549 test/test-path/path-directorynotempty.path \
1550 test/test-path/path-existsglob.path \
1551 test/test-path/path-exists.path \
1552 test/test-path/path-makedirectory.path \
1553 test/test-path/path-modified.path \
1554 test/test-path/path-unit.path \
1555 test/test-execute/exec-environment-empty.service \
1556 test/test-execute/exec-environment-multiple.service \
1557 test/test-execute/exec-environment.service \
1558 test/test-execute/exec-passenvironment-absent.service \
1559 test/test-execute/exec-passenvironment-empty.service \
1560 test/test-execute/exec-passenvironment-repeated.service \
1561 test/test-execute/exec-passenvironment.service \
1562 test/test-execute/exec-group.service \
1563 test/test-execute/exec-ignoresigpipe-no.service \
1564 test/test-execute/exec-ignoresigpipe-yes.service \
1565 test/test-execute/exec-personality-x86-64.service \
1566 test/test-execute/exec-personality-x86.service \
1567 test/test-execute/exec-personality-s390.service \
1568 test/test-execute/exec-privatedevices-no.service \
1569 test/test-execute/exec-privatedevices-yes.service \
1570 test/test-execute/exec-privatetmp-no.service \
1571 test/test-execute/exec-privatetmp-yes.service \
1572 test/test-execute/exec-systemcallerrornumber.service \
1573 test/test-execute/exec-systemcallfilter-failing2.service \
1574 test/test-execute/exec-systemcallfilter-failing.service \
1575 test/test-execute/exec-systemcallfilter-not-failing2.service \
1576 test/test-execute/exec-systemcallfilter-not-failing.service \
1577 test/test-execute/exec-user.service \
1578 test/test-execute/exec-workingdirectory.service \
1579 test/test-execute/exec-umask-0177.service \
1580 test/test-execute/exec-umask-default.service \
1581 test/test-execute/exec-privatenetwork-yes.service \
1582 test/test-execute/exec-environmentfile.service \
1583 test/test-execute/exec-oomscoreadjust-positive.service \
1584 test/test-execute/exec-oomscoreadjust-negative.service \
1585 test/test-execute/exec-ioschedulingclass-best-effort.service \
1586 test/test-execute/exec-ioschedulingclass-idle.service \
1587 test/test-execute/exec-ioschedulingclass-none.service \
1588 test/test-execute/exec-ioschedulingclass-realtime.service \
1589 test/test-execute/exec-capabilityboundingset-invert.service \
1590 test/test-execute/exec-capabilityboundingset-merge.service \
1591 test/test-execute/exec-capabilityboundingset-reset.service \
1592 test/test-execute/exec-capabilityboundingset-simple.service \
1593 test/bus-policy/hello.conf \
1594 test/bus-policy/methods.conf \
1595 test/bus-policy/ownerships.conf \
1596 test/bus-policy/signals.conf \
1597 test/bus-policy/check-own-rules.conf \
1598 test/bus-policy/many-rules.conf \
1599 test/bus-policy/test.conf
1600
1601
1602 EXTRA_DIST += \
1603 src/test/test-helper.h
1604
1605 test_device_nodes_SOURCES = \
1606 src/test/test-device-nodes.c
1607
1608 test_device_nodes_LDADD = \
1609 libshared.la
1610
1611 test_engine_SOURCES = \
1612 src/test/test-engine.c
1613
1614 test_engine_CFLAGS = \
1615 $(AM_CFLAGS) \
1616 $(SECCOMP_CFLAGS) \
1617 $(MOUNT_CFLAGS)
1618
1619 test_engine_LDADD = \
1620 libcore.la
1621
1622 test_job_type_SOURCES = \
1623 src/test/test-job-type.c
1624
1625 test_job_type_CFLAGS = \
1626 $(AM_CFLAGS) \
1627 $(SECCOMP_CFLAGS) \
1628 $(MOUNT_CFLAGS)
1629
1630 test_job_type_LDADD = \
1631 libcore.la
1632
1633 test_ns_SOURCES = \
1634 src/test/test-ns.c
1635
1636 test_ns_CFLAGS = \
1637 $(AM_CFLAGS) \
1638 $(SECCOMP_CFLAGS)
1639
1640 test_ns_LDADD = \
1641 libcore.la
1642
1643 test_loopback_SOURCES = \
1644 src/test/test-loopback.c
1645
1646 test_loopback_LDADD = \
1647 libcore.la
1648
1649 test_hostname_SOURCES = \
1650 src/test/test-hostname.c
1651
1652 test_hostname_LDADD = \
1653 libcore.la
1654
1655 test_dns_domain_SOURCES = \
1656 src/test/test-dns-domain.c
1657
1658 test_dns_domain_LDADD = \
1659 libsystemd-network.la \
1660 libshared.la
1661
1662 if ENABLE_EFI
1663 manual_tests += \
1664 test-boot-timestamp
1665
1666 test_boot_timestamp_SOURCES = \
1667 src/test/test-boot-timestamps.c
1668
1669 test_boot_timestamp_LDADD = \
1670 libshared.la
1671 endif
1672
1673 test_unit_name_SOURCES = \
1674 src/test/test-unit-name.c
1675
1676 test_unit_name_CFLAGS = \
1677 $(AM_CFLAGS) \
1678 $(SECCOMP_CFLAGS) \
1679 $(MOUNT_CFLAGS)
1680
1681 test_unit_name_LDADD = \
1682 libcore.la
1683
1684 test_unit_file_SOURCES = \
1685 src/test/test-unit-file.c
1686
1687 test_unit_file_CFLAGS = \
1688 $(AM_CFLAGS) \
1689 $(SECCOMP_CFLAGS) \
1690 $(MOUNT_CFLAGS)
1691
1692 test_unit_file_LDADD = \
1693 libcore.la
1694
1695 test_utf8_SOURCES = \
1696 src/test/test-utf8.c
1697
1698 test_utf8_LDADD = \
1699 libshared.la
1700
1701 test_capability_SOURCES = \
1702 src/test/test-capability.c
1703
1704 test_capability_LDADD = \
1705 libshared.la
1706
1707 test_async_SOURCES = \
1708 src/test/test-async.c
1709
1710 test_async_LDADD = \
1711 libshared.la
1712
1713 test_locale_util_SOURCES = \
1714 src/test/test-locale-util.c
1715
1716 test_locale_util_LDADD = \
1717 libshared.la
1718
1719 test_copy_SOURCES = \
1720 src/test/test-copy.c
1721
1722 test_copy_LDADD = \
1723 libshared.la
1724
1725 test_sigbus_SOURCES = \
1726 src/test/test-sigbus.c
1727
1728 test_sigbus_LDADD = \
1729 libshared.la
1730
1731 test_condition_SOURCES = \
1732 src/test/test-condition.c
1733
1734 test_condition_LDADD = \
1735 libshared.la
1736
1737 test_fdset_SOURCES = \
1738 src/test/test-fdset.c
1739
1740 test_fdset_LDADD = \
1741 libshared.la
1742
1743 test_fstab_util_SOURCES = \
1744 src/test/test-fstab-util.c
1745
1746 test_fstab_util_LDADD = \
1747 libshared.la
1748
1749 test_ratelimit_SOURCES = \
1750 src/test/test-ratelimit.c
1751
1752 test_ratelimit_LDADD = \
1753 libshared.la
1754
1755 test_util_SOURCES = \
1756 src/test/test-util.c
1757
1758 test_util_LDADD = \
1759 libshared.la
1760
1761 test_string_util_SOURCES = \
1762 src/test/test-string-util.c
1763
1764 test_string_util_LDADD = \
1765 libshared.la
1766
1767 test_extract_word_SOURCES = \
1768 src/test/test-extract-word.c
1769
1770 test_extract_word_LDADD = \
1771 libshared.la
1772
1773 test_parse_util_SOURCES = \
1774 src/test/test-parse-util.c
1775
1776 test_parse_util_LDADD = \
1777 libshared.la
1778
1779 test_user_util_SOURCES = \
1780 src/test/test-user-util.c
1781
1782 test_user_util_LDADD = \
1783 libshared.la
1784
1785 test_hostname_util_SOURCES = \
1786 src/test/test-hostname-util.c
1787
1788 test_hostname_util_LDADD = \
1789 libshared.la
1790
1791 test_process_util_SOURCES = \
1792 src/test/test-process-util.c
1793
1794 test_process_util_LDADD = \
1795 libshared.la
1796
1797 test_terminal_util_SOURCES = \
1798 src/test/test-terminal-util.c
1799
1800 test_terminal_util_LDADD = \
1801 libshared.la
1802
1803 test_path_lookup_SOURCES = \
1804 src/test/test-path-lookup.c
1805
1806 test_path_lookup_LDADD = \
1807 libshared.la
1808
1809 test_uid_range_SOURCES = \
1810 src/test/test-uid-range.c
1811
1812 test_uid_range_LDADD = \
1813 libshared.la
1814
1815 test_cap_list_SOURCES = \
1816 src/test/test-cap-list.c
1817
1818 test_cap_list_LDADD = \
1819 libshared.la
1820
1821 test_socket_util_SOURCES = \
1822 src/test/test-socket-util.c
1823
1824 test_socket_util_LDADD = \
1825 libshared.la
1826
1827 test_barrier_SOURCES = \
1828 src/test/test-barrier.c
1829
1830 test_barrier_LDADD = \
1831 libshared.la
1832
1833 test_tmpfiles_SOURCES = \
1834 src/test/test-tmpfiles.c
1835
1836 test_tmpfiles_LDADD = \
1837 libshared.la
1838
1839 test_namespace_SOURCES = \
1840 src/test/test-namespace.c
1841
1842 test_verbs_SOURCES = \
1843 src/test/test-verbs.c
1844
1845 test_verbs_LDADD = \
1846 libshared.la
1847
1848 test_install_root_SOURCES = \
1849 src/test/test-install-root.c
1850
1851 test_install_root_LDADD = \
1852 libshared.la
1853
1854 test_acl_util_SOURCES = \
1855 src/test/test-acl-util.c
1856
1857 test_acl_util_LDADD = \
1858 libshared.la
1859
1860 test_namespace_LDADD = \
1861 libcore.la
1862
1863 BUILT_SOURCES += \
1864 src/test/test-hashmap-ordered.c
1865
1866 src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c
1867 $(AM_V_at)$(MKDIR_P) $(dir $@)
1868 $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \
1869 { if (!match($$0, "^#include")) \
1870 gsub(/hashmap/, "ordered_hashmap"); \
1871 gsub(/HASHMAP/, "ORDERED_HASHMAP"); \
1872 gsub(/Hashmap/, "OrderedHashmap"); \
1873 print }' <$< >$@
1874
1875 nodist_test_hashmap_SOURCES = \
1876 src/test/test-hashmap-ordered.c
1877
1878 test_hashmap_SOURCES = \
1879 src/test/test-hashmap.c \
1880 src/test/test-hashmap-plain.c
1881
1882 test_hashmap_LDADD = \
1883 libshared.la
1884
1885 test_set_SOURCES = \
1886 src/test/test-set.c
1887
1888 test_set_LDADD = \
1889 libshared.la
1890
1891 test_bitmap_SOURCES = \
1892 src/test/test-bitmap.c
1893
1894 test_bitmap_LDADD = \
1895 libshared.la
1896
1897 test_xml_SOURCES = \
1898 src/test/test-xml.c
1899
1900 test_xml_LDADD = \
1901 libshared.la
1902
1903 test_json_SOURCES = \
1904 src/test/test-json.c
1905
1906 test_json_LDADD = \
1907 libshared.la
1908
1909 test_list_SOURCES = \
1910 src/test/test-list.c
1911
1912 test_list_LDADD = \
1913 libshared.la
1914
1915 test_unaligned_LDADD = \
1916 libshared.la
1917
1918 test_unaligned_SOURCES = \
1919 src/test/test-unaligned.c
1920
1921 test_tables_SOURCES = \
1922 src/test/test-tables.c \
1923 src/shared/test-tables.h \
1924 src/bus-proxyd/bus-xml-policy.c \
1925 src/bus-proxyd/bus-xml-policy.h \
1926 src/journal/journald-server.c \
1927 src/journal/journald-server.h
1928
1929 test_tables_CPPFLAGS = \
1930 $(AM_CPPFLAGS) \
1931 -I$(top_srcdir)/src/bus-proxyd
1932
1933 test_tables_CFLAGS = \
1934 $(AM_CFLAGS) \
1935 $(SECCOMP_CFLAGS) \
1936 $(MOUNT_CFLAGS)
1937
1938 test_tables_LDADD = \
1939 libjournal-core.la \
1940 libcore.la \
1941 libudev-core.la
1942
1943 test_prioq_SOURCES = \
1944 src/test/test-prioq.c
1945
1946 test_prioq_LDADD = \
1947 libshared.la
1948
1949 test_fileio_SOURCES = \
1950 src/test/test-fileio.c
1951
1952 test_fileio_LDADD = \
1953 libshared.la
1954
1955 test_time_SOURCES = \
1956 src/test/test-time.c
1957
1958 test_time_LDADD = \
1959 libshared.la
1960
1961 test_architecture_SOURCES = \
1962 src/test/test-architecture.c
1963
1964 test_architecture_LDADD = \
1965 libshared.la
1966
1967 test_log_SOURCES = \
1968 src/test/test-log.c
1969
1970 test_log_LDADD = \
1971 libshared.la
1972
1973 test_ipcrm_SOURCES = \
1974 src/test/test-ipcrm.c
1975
1976 test_ipcrm_LDADD = \
1977 libshared.la
1978
1979 test_btrfs_SOURCES = \
1980 src/test/test-btrfs.c
1981
1982 test_btrfs_LDADD = \
1983 libshared.la
1984
1985 if HAVE_LIBIPTC
1986 test_firewall_util_SOURCES = \
1987 src/test/test-firewall-util.c
1988
1989 test_firewall_util_CFLAGS = \
1990 $(AM_CFLAGS) \
1991 $(LIBIPTC_CFLAGS)
1992
1993 test_firewall_util_LDADD = \
1994 libfirewall.la \
1995 libshared.la \
1996 $(LIBIPTC_LIBS)
1997 endif
1998
1999 test_netlink_manual_SOURCES = \
2000 src/test/test-netlink-manual.c
2001
2002 test_netlink_manual_CFLAGS = \
2003 $(AM_CFLAGS) \
2004 $(KMOD_CFLAGS)
2005
2006 test_netlink_manual_LDADD = \
2007 libshared.la \
2008 $(KMOD_LIBS)
2009
2010 test_ellipsize_SOURCES = \
2011 src/test/test-ellipsize.c
2012
2013 test_ellipsize_LDADD = \
2014 libshared.la
2015
2016 test_date_SOURCES = \
2017 src/test/test-date.c
2018
2019 test_date_LDADD = \
2020 libshared.la
2021
2022 test_sleep_SOURCES = \
2023 src/test/test-sleep.c
2024
2025 test_sleep_LDADD = \
2026 libcore.la
2027
2028 test_replace_var_SOURCES = \
2029 src/test/test-replace-var.c
2030
2031 test_replace_var_LDADD = \
2032 libshared.la
2033
2034 test_calendarspec_SOURCES = \
2035 src/test/test-calendarspec.c
2036
2037 test_calendarspec_LDADD = \
2038 libshared.la
2039
2040 test_strip_tab_ansi_SOURCES = \
2041 src/test/test-strip-tab-ansi.c
2042
2043 test_strip_tab_ansi_LDADD = \
2044 libshared.la
2045
2046 test_daemon_SOURCES = \
2047 src/test/test-daemon.c
2048
2049 test_daemon_LDADD = \
2050 libshared.la
2051
2052 test_cgroup_SOURCES = \
2053 src/test/test-cgroup.c
2054
2055 test_cgroup_LDADD = \
2056 libshared.la
2057
2058 test_cgroup_mask_SOURCES = \
2059 src/test/test-cgroup-mask.c
2060
2061 test_cgroup_mask_CPPFLAGS = \
2062 $(AM_CPPFLAGS) \
2063 $(MOUNT_CFLAGS)
2064
2065 test_cgroup_mask_CFLAGS = \
2066 $(AM_CFLAGS) \
2067 $(SECCOMP_CFLAGS)
2068
2069 test_cgroup_mask_LDADD = \
2070 libcore.la
2071
2072 test_cgroup_util_SOURCES = \
2073 src/test/test-cgroup-util.c
2074
2075 test_cgroup_util_LDADD = \
2076 libshared.la
2077
2078 test_env_replace_SOURCES = \
2079 src/test/test-env-replace.c
2080
2081 test_env_replace_LDADD = \
2082 libshared.la
2083
2084 test_strbuf_SOURCES = \
2085 src/test/test-strbuf.c
2086
2087 test_strbuf_LDADD = \
2088 libshared.la
2089
2090 test_strv_SOURCES = \
2091 src/test/test-strv.c
2092
2093 test_strv_LDADD = \
2094 libshared.la
2095
2096 test_path_util_SOURCES = \
2097 src/test/test-path-util.c
2098
2099 test_path_util_LDADD = \
2100 libshared.la
2101
2102 test_path_SOURCES = \
2103 src/test/test-path.c
2104
2105 test_path_CFLAGS = \
2106 $(AM_CFLAGS) \
2107 $(MOUNT_CFLAGS)
2108
2109 test_path_LDADD = \
2110 libcore.la
2111
2112 test_execute_SOURCES = \
2113 src/test/test-execute.c
2114
2115 test_execute_CFLAGS = \
2116 $(AM_CFLAGS) \
2117 $(MOUNT_CFLAGS)
2118
2119 test_execute_LDADD = \
2120 libcore.la
2121
2122 test_siphash24_SOURCES = \
2123 src/test/test-siphash24.c
2124
2125 test_siphash24_LDADD = \
2126 libshared.la
2127
2128 test_strxcpyx_SOURCES = \
2129 src/test/test-strxcpyx.c
2130
2131 test_strxcpyx_LDADD = \
2132 libshared.la
2133
2134 test_install_SOURCES = \
2135 src/test/test-install.c
2136
2137 test_install_LDADD = \
2138 libshared.la
2139
2140 test_watchdog_SOURCES = \
2141 src/test/test-watchdog.c
2142
2143 test_watchdog_LDADD = \
2144 libshared.la
2145
2146 test_sched_prio_SOURCES = \
2147 src/test/test-sched-prio.c
2148
2149 test_sched_prio_CPPFLAGS = \
2150 $(AM_CPPFLAGS) \
2151 $(MOUNT_CFLAGS)
2152
2153 test_sched_prio_CFLAGS = \
2154 $(AM_CFLAGS) \
2155 $(SECCOMP_CFLAGS)
2156
2157 test_sched_prio_LDADD = \
2158 libcore.la
2159
2160 test_conf_files_SOURCES = \
2161 src/test/test-conf-files.c
2162
2163 test_conf_files_LDADD = \
2164 libshared.la
2165
2166 test_conf_parser_SOURCES = \
2167 src/test/test-conf-parser.c
2168
2169 test_conf_parser_LDADD = \
2170 libshared.la
2171
2172 test_bus_policy_SOURCES = \
2173 src/bus-proxyd/test-bus-xml-policy.c
2174
2175 test_bus_policy_LDADD = \
2176 libbus-proxy-core.la \
2177 libshared.la
2178
2179 test_af_list_SOURCES = \
2180 src/test/test-af-list.c
2181
2182 test_af_list_LDADD = \
2183 libbasic.la
2184
2185 test_arphrd_list_SOURCES = \
2186 src/test/test-arphrd-list.c
2187
2188 test_arphrd_list_LDADD = \
2189 libbasic.la
2190
2191 # ------------------------------------------------------------------------------
2192 ## .PHONY so it always rebuilds it
2193 .PHONY: coverage lcov-run lcov-report coverage-sync
2194
2195 # run lcov from scratch, always
2196 coverage: all
2197 $(MAKE) lcov-run
2198 $(MAKE) lcov-report
2199
2200 coverage_dir = coverage
2201 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
2202
2203 if ENABLE_COVERAGE
2204 # reset run coverage tests
2205 lcov-run:
2206 @rm -rf $(coverage_dir)
2207 lcov $(coverage_opts) --zerocounters
2208 -$(MAKE) check
2209
2210 # generate report based on current coverage data
2211 lcov-report:
2212 $(MKDIR_P) $(coverage_dir)
2213 lcov $(coverage_opts) --compat-libtool --capture --no-external \
2214 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
2215 lcov --remove $(coverage_dir)/.lcov.info --output-file $(coverage_dir)/.lcov-clean.info 'test-*'
2216 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov-clean.info
2217 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
2218
2219 # lcov doesn't work properly with vpath builds, make sure that bad
2220 # output is not uploaded by mistake.
2221 coverage-sync: coverage
2222 test "$(builddir)" = "$(srcdir)"
2223 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
2224
2225 else
2226 lcov-run lcov-report:
2227 echo "Need to reconfigure with --enable-coverage"
2228 endif
2229
2230 # ------------------------------------------------------------------------------
2231 systemd_analyze_SOURCES = \
2232 src/analyze/analyze.c \
2233 src/analyze/analyze-verify.c \
2234 src/analyze/analyze-verify.h
2235
2236 systemd_analyze_CFLAGS = \
2237 $(AM_CFLAGS) \
2238 $(SECCOMP_CFLAGS) \
2239 $(MOUNT_CFLAGS)
2240
2241 systemd_analyze_LDADD = \
2242 libcore.la
2243
2244 # ------------------------------------------------------------------------------
2245 systemd_initctl_SOURCES = \
2246 src/initctl/initctl.c
2247
2248 systemd_initctl_LDADD = \
2249 libshared.la
2250
2251 # ------------------------------------------------------------------------------
2252 systemd_update_utmp_SOURCES = \
2253 src/update-utmp/update-utmp.c
2254
2255 systemd_update_utmp_CFLAGS = \
2256 $(AM_CFLAGS) \
2257 $(AUDIT_CFLAGS)
2258
2259 systemd_update_utmp_LDADD = \
2260 libshared.la \
2261 $(AUDIT_LIBS)
2262
2263 # ------------------------------------------------------------------------------
2264 systemd_update_done_SOURCES = \
2265 src/update-done/update-done.c
2266
2267 systemd_update_done_LDADD = \
2268 libshared.la
2269
2270 # ------------------------------------------------------------------------------
2271 systemd_shutdown_SOURCES = \
2272 src/core/umount.c \
2273 src/core/umount.h \
2274 src/core/shutdown.c \
2275 src/core/mount-setup.c \
2276 src/core/mount-setup.h \
2277 src/core/killall.h \
2278 src/core/killall.c
2279
2280 systemd_shutdown_LDADD = \
2281 libshared.la
2282
2283 # ------------------------------------------------------------------------------
2284 if HAVE_KMOD
2285 systemd_modules_load_SOURCES = \
2286 src/modules-load/modules-load.c
2287
2288 systemd_modules_load_CFLAGS = \
2289 $(AM_CFLAGS) \
2290 $(KMOD_CFLAGS)
2291
2292 systemd_modules_load_LDADD = \
2293 libshared.la \
2294 $(KMOD_LIBS)
2295
2296 rootlibexec_PROGRAMS += \
2297 systemd-modules-load
2298
2299 nodist_systemunit_DATA += \
2300 units/systemd-modules-load.service
2301
2302 SYSINIT_TARGET_WANTS += \
2303 systemd-modules-load.service
2304
2305 if ENABLE_TMPFILES
2306 nodist_systemunit_DATA += \
2307 units/kmod-static-nodes.service
2308
2309 SYSINIT_TARGET_WANTS += \
2310 kmod-static-nodes.service
2311 endif
2312 endif
2313
2314 EXTRA_DIST += \
2315 units/systemd-modules-load.service.in \
2316 units/kmod-static-nodes.service.in
2317
2318 # ------------------------------------------------------------------------------
2319 if ENABLE_TMPFILES
2320 systemd_tmpfiles_SOURCES = \
2321 src/tmpfiles/tmpfiles.c
2322
2323 systemd_tmpfiles_LDADD = \
2324 libshared.la
2325
2326 rootbin_PROGRAMS += \
2327 systemd-tmpfiles
2328
2329 dist_systemunit_DATA += \
2330 units/systemd-tmpfiles-clean.timer
2331
2332 nodist_systemunit_DATA += \
2333 units/systemd-tmpfiles-setup-dev.service \
2334 units/systemd-tmpfiles-setup.service \
2335 units/systemd-tmpfiles-clean.service
2336
2337 nodist_tmpfiles_DATA = \
2338 tmpfiles.d/systemd.conf \
2339 tmpfiles.d/etc.conf
2340
2341 dist_tmpfiles_DATA = \
2342 tmpfiles.d/systemd-nologin.conf \
2343 tmpfiles.d/tmp.conf \
2344 tmpfiles.d/x11.conf \
2345 tmpfiles.d/var.conf \
2346 tmpfiles.d/home.conf \
2347 tmpfiles.d/systemd-nspawn.conf \
2348 tmpfiles.d/journal-nocow.conf
2349
2350 if HAVE_SYSV_COMPAT
2351 dist_tmpfiles_DATA += \
2352 tmpfiles.d/legacy.conf
2353 endif
2354
2355 SYSINIT_TARGET_WANTS += \
2356 systemd-tmpfiles-setup-dev.service \
2357 systemd-tmpfiles-setup.service
2358
2359 if ENABLE_ZSH_COMPLETION
2360 dist_zshcompletion_DATA += \
2361 shell-completion/zsh/_systemd-tmpfiles
2362 endif
2363
2364 TIMERS_TARGET_WANTS += \
2365 systemd-tmpfiles-clean.timer
2366
2367 INSTALL_DIRS += \
2368 $(tmpfilesdir) \
2369 $(sysconfdir)/tmpfiles.d
2370 endif
2371
2372 EXTRA_DIST += \
2373 tmpfiles.d/systemd.conf.m4 \
2374 tmpfiles.d/etc.conf.m4 \
2375 units/systemd-tmpfiles-setup-dev.service.in \
2376 units/systemd-tmpfiles-setup.service.in \
2377 units/systemd-tmpfiles-clean.service.in
2378
2379 # ------------------------------------------------------------------------------
2380 if ENABLE_SYSUSERS
2381 systemd_sysusers_SOURCES = \
2382 src/sysusers/sysusers.c
2383
2384 systemd_sysusers_LDADD = \
2385 libshared.la
2386
2387 rootbin_PROGRAMS += \
2388 systemd-sysusers
2389
2390 nodist_systemunit_DATA += \
2391 units/systemd-sysusers.service
2392
2393 SYSINIT_TARGET_WANTS += \
2394 systemd-sysusers.service
2395
2396 nodist_sysusers_DATA = \
2397 sysusers.d/systemd.conf \
2398 sysusers.d/basic.conf
2399
2400 INSTALL_DIRS += \
2401 $(sysusersdir)
2402 endif
2403
2404 EXTRA_DIST += \
2405 units/systemd-sysusers.service.in \
2406 sysusers.d/systemd.conf.m4 \
2407 sysusers.d/basic.conf.in
2408
2409 # ------------------------------------------------------------------------------
2410 dist_factory_etc_DATA = \
2411 factory/etc/nsswitch.conf
2412
2413 if HAVE_PAM
2414 dist_factory_pam_DATA = \
2415 factory/etc/pam.d/system-auth \
2416 factory/etc/pam.d/other
2417 endif
2418
2419 # ------------------------------------------------------------------------------
2420 if ENABLE_FIRSTBOOT
2421 systemd_firstboot_SOURCES = \
2422 src/firstboot/firstboot.c
2423
2424 systemd_firstboot_LDADD = \
2425 libshared.la \
2426 -lcrypt
2427
2428 rootbin_PROGRAMS += \
2429 systemd-firstboot
2430
2431 nodist_systemunit_DATA += \
2432 units/systemd-firstboot.service
2433
2434 SYSINIT_TARGET_WANTS += \
2435 systemd-firstboot.service
2436 endif
2437
2438 EXTRA_DIST += \
2439 units/systemd-firstboot.service.in
2440
2441 # ------------------------------------------------------------------------------
2442 systemd_machine_id_setup_SOURCES = \
2443 src/machine-id-setup/machine-id-setup-main.c \
2444 src/core/machine-id-setup.c \
2445 src/core/machine-id-setup.h
2446
2447 systemd_machine_id_setup_LDADD = \
2448 libshared.la
2449
2450 SYSINIT_TARGET_WANTS += \
2451 systemd-machine-id-commit.service
2452
2453 # ------------------------------------------------------------------------------
2454 systemd_sysctl_SOURCES = \
2455 src/sysctl/sysctl.c
2456
2457 systemd_sysctl_LDADD = \
2458 libshared.la
2459
2460 # ------------------------------------------------------------------------------
2461 systemd_sleep_SOURCES = \
2462 src/sleep/sleep.c
2463
2464 systemd_sleep_LDADD = \
2465 libshared.la
2466
2467 # ------------------------------------------------------------------------------
2468 systemd_fsck_SOURCES = \
2469 src/fsck/fsck.c
2470
2471 systemd_fsck_LDADD = \
2472 libshared.la
2473
2474 # ------------------------------------------------------------------------------
2475 systemd_ac_power_SOURCES = \
2476 src/ac-power/ac-power.c
2477
2478 systemd_ac_power_LDADD = \
2479 libshared.la
2480
2481 # ------------------------------------------------------------------------------
2482 systemd_detect_virt_SOURCES = \
2483 src/detect-virt/detect-virt.c
2484
2485 systemd_detect_virt_LDADD = \
2486 libshared.la
2487
2488 INSTALL_EXEC_HOOKS += \
2489 systemd-detect-virt-install-hook
2490
2491 # ------------------------------------------------------------------------------
2492 systemd_delta_SOURCES = \
2493 src/delta/delta.c
2494
2495 systemd_delta_LDADD = \
2496 libshared.la
2497
2498 # ------------------------------------------------------------------------------
2499 systemd_getty_generator_SOURCES = \
2500 src/getty-generator/getty-generator.c
2501
2502 systemd_getty_generator_LDADD = \
2503 libshared.la
2504
2505 # ------------------------------------------------------------------------------
2506 systemd_debug_generator_SOURCES = \
2507 src/debug-generator/debug-generator.c
2508
2509 systemd_debug_generator_LDADD = \
2510 libshared.la
2511
2512 # ------------------------------------------------------------------------------
2513 systemd_fstab_generator_SOURCES = \
2514 src/fstab-generator/fstab-generator.c \
2515 src/core/mount-setup.c
2516
2517 systemd_fstab_generator_LDADD = \
2518 libshared.la
2519
2520 # ------------------------------------------------------------------------------
2521 systemd_system_update_generator_SOURCES = \
2522 src/system-update-generator/system-update-generator.c
2523
2524 systemd_system_update_generator_LDADD = \
2525 libshared.la
2526
2527 # ------------------------------------------------------------------------------
2528 if ENABLE_HIBERNATE
2529 systemgenerator_PROGRAMS += \
2530 systemd-hibernate-resume-generator
2531
2532 rootlibexec_PROGRAMS += \
2533 systemd-hibernate-resume
2534
2535 systemd_hibernate_resume_SOURCES = \
2536 src/hibernate-resume/hibernate-resume.c
2537
2538 systemd_hibernate_resume_LDADD = \
2539 libshared.la
2540
2541 systemd_hibernate_resume_generator_SOURCES = \
2542 src/hibernate-resume/hibernate-resume-generator.c
2543
2544 systemd_hibernate_resume_generator_LDADD = \
2545 libshared.la
2546
2547 dist_systemunit_DATA += \
2548 units/hibernate.target \
2549 units/hybrid-sleep.target
2550
2551 nodist_systemunit_DATA += \
2552 units/systemd-hibernate.service \
2553 units/systemd-hibernate-resume@.service \
2554 units/systemd-hybrid-sleep.service
2555 endif
2556
2557 EXTRA_DIST += \
2558 units/systemd-hibernate.service.in \
2559 units/systemd-hibernate-resume@.service.in \
2560 units/systemd-hybrid-sleep.service.in
2561
2562 # ------------------------------------------------------------------------------
2563 if ENABLE_EFI
2564 if HAVE_BLKID
2565 bootctl_SOURCES = \
2566 src/boot/bootctl.c
2567
2568 bootctl_CPPFLAGS = \
2569 $(AM_CPPFLAGS) \
2570 -DEFI_MACHINE_TYPE_NAME=\"$(EFI_MACHINE_TYPE_NAME)\" \
2571 -DBOOTLIBDIR=\"$(bootlibdir)\"
2572
2573 bootctl_CFLAGS = \
2574 $(AM_CFLAGS) \
2575 $(BLKID_CFLAGS)
2576
2577 bootctl_LDADD = \
2578 libshared.la \
2579 $(BLKID_LIBS)
2580
2581 bin_PROGRAMS += \
2582 bootctl
2583
2584 if ENABLE_BASH_COMPLETION
2585 dist_bashcompletion_DATA += \
2586 shell-completion/bash/bootctl
2587 endif
2588
2589 if ENABLE_ZSH_COMPLETION
2590 dist_zshcompletion_DATA += \
2591 shell-completion/zsh/_bootctl
2592 endif
2593 endif
2594
2595 # ------------------------------------------------------------------------------
2596 if HAVE_GNUEFI
2597 efi_cppflags = \
2598 $(EFI_CPPFLAGS) \
2599 -I$(top_builddir) -include config.h \
2600 -I$(EFI_INC_DIR)/efi \
2601 -I$(EFI_INC_DIR)/efi/$(EFI_ARCH) \
2602 -DEFI_MACHINE_TYPE_NAME=\"$(EFI_MACHINE_TYPE_NAME)\"
2603
2604 efi_cflags = \
2605 $(EFI_CFLAGS) \
2606 -Wall \
2607 -Wextra \
2608 -std=gnu90 \
2609 -nostdinc \
2610 -ggdb -O0 \
2611 -fpic \
2612 -fshort-wchar \
2613 -nostdinc \
2614 -ffreestanding \
2615 -fno-strict-aliasing \
2616 -fno-stack-protector \
2617 -Wsign-compare \
2618 -Wno-missing-field-initializers
2619
2620 if ARCH_X86_64
2621 efi_cflags += \
2622 -mno-red-zone \
2623 -mno-sse \
2624 -mno-mmx \
2625 -DEFI_FUNCTION_WRAPPER \
2626 -DGNU_EFI_USE_MS_ABI
2627 endif
2628
2629 if ARCH_IA32
2630 efi_cflags += \
2631 -mno-sse \
2632 -mno-mmx
2633 endif
2634
2635 efi_ldflags = \
2636 $(EFI_LDFLAGS) \
2637 -T $(EFI_LDS_DIR)/elf_$(EFI_ARCH)_efi.lds \
2638 -shared \
2639 -Bsymbolic \
2640 -nostdlib \
2641 -znocombreloc \
2642 -L $(EFI_LIB_DIR) \
2643 $(EFI_LDS_DIR)/crt0-efi-$(EFI_ARCH).o
2644
2645 # Aarch64 and ARM32 don't have an EFI capable objcopy. Use 'binary' instead,
2646 # and add required symbols manually.
2647 if ARCH_AARCH64
2648 efi_ldflags += --defsym=EFI_SUBSYSTEM=0xa
2649 EFI_FORMAT = -O binary
2650 else
2651 EFI_FORMAT = --target=efi-app-$(EFI_ARCH)
2652 endif
2653 endif
2654 endif
2655
2656 # ------------------------------------------------------------------------------
2657 systemd_boot_headers = \
2658 src/boot/efi/util.h \
2659 src/boot/efi/console.h \
2660 src/boot/efi/graphics.h \
2661 src/boot/efi/pefile.h \
2662 src/boot/efi/disk.h
2663
2664 systemd_boot_sources = \
2665 src/boot/efi/util.c \
2666 src/boot/efi/console.c \
2667 src/boot/efi/graphics.c \
2668 src/boot/efi/pefile.c \
2669 src/boot/efi/disk.c \
2670 src/boot/efi/boot.c
2671
2672 EXTRA_DIST += $(systemd_boot_sources) $(systemd_boot_headers)
2673
2674 if ENABLE_EFI
2675 if HAVE_GNUEFI
2676 systemd_boot_objects = $(addprefix $(top_builddir)/,$(systemd_boot_sources:.c=.o))
2677 systemd_boot_solib = $(top_builddir)/src/boot/efi/systemd_boot.so
2678 systemd_boot = systemd-boot$(EFI_MACHINE_TYPE_NAME).efi
2679
2680 bootlib_DATA = $(systemd_boot)
2681 CLEANFILES += $(systemd_boot_objects) $(systemd_boot_solib) $(systemd_boot)
2682
2683 $(top_builddir)/src/boot/efi/%.o: $(top_srcdir)/src/boot/efi/%.c $(addprefix $(top_srcdir)/,$(systemd_boot_headers))
2684 @$(MKDIR_P) $(top_builddir)/src/boot/efi/
2685 $(AM_V_CC)$(EFI_CC) $(efi_cppflags) $(efi_cflags) -c $< -o $@
2686
2687 $(systemd_boot_solib): $(systemd_boot_objects)
2688 $(AM_V_CCLD)$(LD) $(efi_ldflags) $(systemd_boot_objects) \
2689 -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name); \
2690 nm -D -u $@ | grep ' U ' && exit 1 || :
2691
2692 $(systemd_boot): $(systemd_boot_solib)
2693 $(AM_V_GEN)$(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic \
2694 -j .dynsym -j .rel -j .rela -j .reloc $(EFI_FORMAT) $< $@
2695 endif
2696 endif
2697
2698 # ------------------------------------------------------------------------------
2699 stub_headers = \
2700 src/boot/efi/util.h \
2701 src/boot/efi/pefile.h \
2702 src/boot/efi/disk.h \
2703 src/boot/efi/graphics.h \
2704 src/boot/efi/splash.h \
2705 src/boot/efi/linux.h
2706
2707 stub_sources = \
2708 src/boot/efi/util.c \
2709 src/boot/efi/pefile.c \
2710 src/boot/efi/disk.c \
2711 src/boot/efi/graphics.c \
2712 src/boot/efi/splash.c \
2713 src/boot/efi/linux.c \
2714 src/boot/efi/stub.c
2715
2716 EXTRA_DIST += \
2717 $(stub_sources) \
2718 $(stub_headers) \
2719 test/splash.bmp
2720
2721 if ENABLE_EFI
2722 if HAVE_GNUEFI
2723 stub_objects = $(addprefix $(top_builddir)/,$(stub_sources:.c=.o))
2724 stub_solib = $(top_builddir)/src/boot/efi/stub.so
2725 stub = linux$(EFI_MACHINE_TYPE_NAME).efi.stub
2726
2727 bootlib_DATA += $(stub)
2728 CLEANFILES += $(stub_objects) $(stub_solib) $(stub)
2729
2730 $(top_builddir)/src/boot/efi/%.o: $(top_srcdir)/src/boot/efi/%.c $(addprefix $(top_srcdir)/,$(stub_headers))
2731 @$(MKDIR_P) $(top_builddir)/src/boot/efi/
2732 $(AM_V_CC)$(EFI_CC) $(efi_cppflags) $(efi_cflags) -c $< -o $@
2733
2734 $(stub_solib): $(stub_objects)
2735 $(AM_V_CCLD)$(LD) $(efi_ldflags) $(stub_objects) \
2736 -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name); \
2737 nm -D -u $@ | grep ' U ' && exit 1 || :
2738
2739 $(stub): $(stub_solib)
2740 $(AM_V_GEN)$(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic \
2741 -j .dynsym -j .rel -j .rela -j .reloc $(EFI_FORMAT) $< $@
2742
2743 # ------------------------------------------------------------------------------
2744 CLEANFILES += test-efi-disk.img
2745
2746 test-efi-disk.img: $(systemd_boot) $(stub) test/test-efi-create-disk.sh
2747 $(AM_V_GEN)test/test-efi-create-disk.sh
2748
2749 test-efi: test-efi-disk.img
2750 $(QEMU) -machine accel=kvm -m 1024 -bios $(QEMU_BIOS) -snapshot test-efi-disk.img
2751 endif
2752 endif
2753
2754 EXTRA_DIST += test/test-efi-create-disk.sh
2755
2756 # ------------------------------------------------------------------------------
2757 if HAVE_BLKID
2758 systemgenerator_PROGRAMS += \
2759 systemd-gpt-auto-generator
2760
2761 systemd_gpt_auto_generator_SOURCES = \
2762 src/gpt-auto-generator/gpt-auto-generator.c \
2763 src/basic/blkid-util.h
2764
2765 systemd_gpt_auto_generator_LDADD = \
2766 libshared.la \
2767 $(BLKID_LIBS)
2768
2769 systemd_gpt_auto_generator_CFLAGS = \
2770 $(AM_CFLAGS) \
2771 $(BLKID_CFLAGS)
2772 endif
2773
2774 # ------------------------------------------------------------------------------
2775 systemgenerator_PROGRAMS += \
2776 systemd-dbus1-generator
2777
2778 systemd_dbus1_generator_SOURCES = \
2779 src/dbus1-generator/dbus1-generator.c
2780
2781 systemd_dbus1_generator_LDADD = \
2782 libshared.la
2783
2784 dbus1-generator-install-hook:
2785 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2786 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2787 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2788
2789 dbus1-generator-uninstall-hook:
2790 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2791
2792 dist_xinitrc_SCRIPTS = \
2793 xorg/50-systemd-user.sh
2794
2795 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2796 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2797
2798 # ------------------------------------------------------------------------------
2799 systemd_sysv_generator_SOURCES = \
2800 src/sysv-generator/sysv-generator.c
2801
2802 systemd_sysv_generator_LDADD = \
2803 libcore.la
2804
2805 # ------------------------------------------------------------------------------
2806 systemd_rc_local_generator_SOURCES = \
2807 src/rc-local-generator/rc-local-generator.c
2808
2809 systemd_rc_local_generator_LDADD = \
2810 libshared.la
2811
2812 # ------------------------------------------------------------------------------
2813 systemd_remount_fs_SOURCES = \
2814 src/remount-fs/remount-fs.c \
2815 src/core/mount-setup.c \
2816 src/core/mount-setup.h
2817
2818 systemd_remount_fs_LDADD = \
2819 libshared.la
2820
2821 # ------------------------------------------------------------------------------
2822 systemd_cgroups_agent_SOURCES = \
2823 src/cgroups-agent/cgroups-agent.c
2824
2825 systemd_cgroups_agent_LDADD = \
2826 libshared.la
2827
2828 # ------------------------------------------------------------------------------
2829 systemd_escape_SOURCES = \
2830 src/escape/escape.c
2831
2832 systemd_escape_LDADD = \
2833 libshared.la
2834
2835 # -----------------------------------------------------------------------------
2836 systemctl_SOURCES = \
2837 src/systemctl/systemctl.c
2838
2839 systemctl_LDADD = \
2840 libshared.la
2841
2842 # ------------------------------------------------------------------------------
2843 systemd_notify_SOURCES = \
2844 src/notify/notify.c
2845
2846 systemd_notify_LDADD = \
2847 libshared.la
2848
2849 # ------------------------------------------------------------------------------
2850 systemd_path_SOURCES = \
2851 src/path/path.c
2852
2853 systemd_path_LDADD = \
2854 libshared.la
2855
2856 # ------------------------------------------------------------------------------
2857 systemd_ask_password_SOURCES = \
2858 src/ask-password/ask-password.c
2859
2860 systemd_ask_password_LDADD = \
2861 libshared.la
2862
2863 # ------------------------------------------------------------------------------
2864 systemd_reply_password_SOURCES = \
2865 src/reply-password/reply-password.c
2866
2867 systemd_reply_password_LDADD = \
2868 libshared.la
2869
2870 # ------------------------------------------------------------------------------
2871 systemd_cgls_SOURCES = \
2872 src/cgls/cgls.c
2873
2874 systemd_cgls_LDADD = \
2875 libshared.la
2876
2877 # ------------------------------------------------------------------------------
2878 systemd_cgtop_SOURCES = \
2879 src/cgtop/cgtop.c
2880
2881 systemd_cgtop_LDADD = \
2882 libshared.la
2883
2884 # ------------------------------------------------------------------------------
2885 systemd_nspawn_SOURCES = \
2886 src/nspawn/nspawn.c \
2887 src/nspawn/nspawn-settings.c \
2888 src/nspawn/nspawn-settings.h \
2889 src/nspawn/nspawn-mount.c \
2890 src/nspawn/nspawn-mount.h \
2891 src/nspawn/nspawn-network.c \
2892 src/nspawn/nspawn-network.h \
2893 src/nspawn/nspawn-expose-ports.c \
2894 src/nspawn/nspawn-expose-ports.h \
2895 src/nspawn/nspawn-cgroup.c \
2896 src/nspawn/nspawn-cgroup.h \
2897 src/nspawn/nspawn-register.c \
2898 src/nspawn/nspawn-register.h \
2899 src/nspawn/nspawn-setuid.c \
2900 src/nspawn/nspawn-setuid.h \
2901 src/core/mount-setup.c \
2902 src/core/mount-setup.h \
2903 src/core/loopback-setup.c \
2904 src/core/loopback-setup.h
2905
2906 nodist_systemd_nspawn_SOURCES = \
2907 src/nspawn/nspawn-gperf.c
2908
2909 gperf_gperf_sources += \
2910 src/nspawn/nspawn-gperf.gperf
2911
2912 systemd_nspawn_CFLAGS = \
2913 $(AM_CFLAGS) \
2914 $(BLKID_CFLAGS) \
2915 $(SECCOMP_CFLAGS)
2916
2917 systemd_nspawn_LDADD = \
2918 libshared.la \
2919 $(BLKID_LIBS)
2920
2921 if HAVE_LIBIPTC
2922 systemd_nspawn_LDADD += \
2923 libfirewall.la
2924 endif
2925
2926 # ------------------------------------------------------------------------------
2927 systemd_run_SOURCES = \
2928 src/run/run.c
2929
2930 systemd_run_LDADD = \
2931 libshared.la
2932
2933 # ------------------------------------------------------------------------------
2934 noinst_LTLIBRARIES += \
2935 libbus-proxy-core.la
2936
2937 libbus_proxy_core_la_SOURCES = \
2938 src/bus-proxyd/bus-xml-policy.c \
2939 src/bus-proxyd/bus-xml-policy.h \
2940 src/bus-proxyd/driver.c \
2941 src/bus-proxyd/driver.h \
2942 src/bus-proxyd/proxy.c \
2943 src/bus-proxyd/proxy.h \
2944 src/bus-proxyd/synthesize.c \
2945 src/bus-proxyd/synthesize.h
2946
2947 libbus_proxy_core_la_LIBADD = \
2948 libshared.la
2949
2950 systemd_bus_proxyd_SOURCES = \
2951 src/bus-proxyd/bus-proxyd.c
2952
2953 systemd_bus_proxyd_LDADD = \
2954 libbus-proxy-core.la \
2955 libshared.la
2956
2957 systemd_stdio_bridge_SOURCES = \
2958 src/bus-proxyd/stdio-bridge.c
2959
2960 systemd_stdio_bridge_LDADD = \
2961 libbus-proxy-core.la \
2962 libshared.la
2963
2964 nodist_systemunit_DATA += \
2965 units/systemd-bus-proxyd.service
2966
2967 dist_systemunit_DATA += \
2968 units/systemd-bus-proxyd.socket
2969
2970 nodist_userunit_DATA += \
2971 units/user/systemd-bus-proxyd.service
2972
2973 dist_userunit_DATA += \
2974 units/user/systemd-bus-proxyd.socket
2975
2976 EXTRA_DIST += \
2977 units/systemd-bus-proxyd.service.m4.in \
2978 units/user/systemd-bus-proxyd.service.in
2979
2980 if HAVE_SMACK
2981 bus-proxyd-set-cap-hook:
2982 -$(SETCAP) cap_mac_admin+ei $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd
2983
2984 INSTALL_EXEC_HOOKS += bus-proxyd-set-cap-hook
2985 endif
2986
2987 # ------------------------------------------------------------------------------
2988 systemd_tty_ask_password_agent_SOURCES = \
2989 src/tty-ask-password-agent/tty-ask-password-agent.c
2990
2991 systemd_tty_ask_password_agent_LDADD = \
2992 libshared.la
2993
2994 # ------------------------------------------------------------------------------
2995 libsystemd_internal_la_SOURCES = \
2996 src/systemd/sd-bus.h \
2997 src/systemd/sd-bus-protocol.h \
2998 src/systemd/sd-bus-vtable.h \
2999 src/systemd/sd-utf8.h \
3000 src/systemd/sd-event.h \
3001 src/systemd/sd-netlink.h \
3002 src/systemd/sd-resolve.h \
3003 src/systemd/sd-login.h \
3004 src/systemd/sd-id128.h \
3005 src/systemd/sd-daemon.h \
3006 src/systemd/sd-path.h \
3007 src/systemd/sd-network.h \
3008 src/systemd/sd-hwdb.h \
3009 src/systemd/sd-device.h \
3010 src/libsystemd/libsystemd.sym \
3011 src/libsystemd/sd-bus/sd-bus.c \
3012 src/libsystemd/sd-bus/bus-control.c \
3013 src/libsystemd/sd-bus/bus-control.h \
3014 src/libsystemd/sd-bus/bus-error.c \
3015 src/libsystemd/sd-bus/bus-error.h \
3016 src/libsystemd/sd-bus/bus-common-errors.h \
3017 src/libsystemd/sd-bus/bus-common-errors.c \
3018 src/libsystemd/sd-bus/bus-internal.c \
3019 src/libsystemd/sd-bus/bus-internal.h \
3020 src/libsystemd/sd-bus/bus-socket.c \
3021 src/libsystemd/sd-bus/bus-socket.h \
3022 src/libsystemd/sd-bus/bus-kernel.c \
3023 src/libsystemd/sd-bus/bus-kernel.h \
3024 src/libsystemd/sd-bus/bus-container.c \
3025 src/libsystemd/sd-bus/bus-container.h \
3026 src/libsystemd/sd-bus/bus-message.c \
3027 src/libsystemd/sd-bus/bus-message.h \
3028 src/libsystemd/sd-bus/bus-creds.c \
3029 src/libsystemd/sd-bus/bus-creds.h \
3030 src/libsystemd/sd-bus/bus-signature.c \
3031 src/libsystemd/sd-bus/bus-signature.h \
3032 src/libsystemd/sd-bus/bus-type.c \
3033 src/libsystemd/sd-bus/bus-type.h \
3034 src/libsystemd/sd-bus/bus-match.c \
3035 src/libsystemd/sd-bus/bus-match.h \
3036 src/libsystemd/sd-bus/bus-bloom.c \
3037 src/libsystemd/sd-bus/bus-bloom.h \
3038 src/libsystemd/sd-bus/bus-introspect.c \
3039 src/libsystemd/sd-bus/bus-introspect.h \
3040 src/libsystemd/sd-bus/bus-objects.c \
3041 src/libsystemd/sd-bus/bus-objects.h \
3042 src/libsystemd/sd-bus/bus-gvariant.c \
3043 src/libsystemd/sd-bus/bus-gvariant.h \
3044 src/libsystemd/sd-bus/bus-convenience.c \
3045 src/libsystemd/sd-bus/bus-track.c \
3046 src/libsystemd/sd-bus/bus-track.h \
3047 src/libsystemd/sd-bus/bus-slot.c \
3048 src/libsystemd/sd-bus/bus-slot.h \
3049 src/libsystemd/sd-bus/bus-protocol.h \
3050 src/libsystemd/sd-bus/kdbus.h \
3051 src/libsystemd/sd-bus/bus-dump.c \
3052 src/libsystemd/sd-bus/bus-dump.h \
3053 src/libsystemd/sd-utf8/sd-utf8.c \
3054 src/libsystemd/sd-event/sd-event.c \
3055 src/libsystemd/sd-netlink/sd-netlink.c \
3056 src/libsystemd/sd-netlink/netlink-internal.h \
3057 src/libsystemd/sd-netlink/netlink-message.c \
3058 src/libsystemd/sd-netlink/netlink-socket.c \
3059 src/libsystemd/sd-netlink/rtnl-message.c \
3060 src/libsystemd/sd-netlink/netlink-types.h \
3061 src/libsystemd/sd-netlink/netlink-types.c \
3062 src/libsystemd/sd-netlink/netlink-util.h \
3063 src/libsystemd/sd-netlink/netlink-util.c \
3064 src/libsystemd/sd-netlink/local-addresses.h \
3065 src/libsystemd/sd-netlink/local-addresses.c \
3066 src/libsystemd/sd-id128/sd-id128.c \
3067 src/libsystemd/sd-daemon/sd-daemon.c \
3068 src/libsystemd/sd-login/sd-login.c \
3069 src/libsystemd/sd-path/sd-path.c \
3070 src/libsystemd/sd-network/sd-network.c \
3071 src/libsystemd/sd-network/network-util.h \
3072 src/libsystemd/sd-network/network-util.c \
3073 src/libsystemd/sd-hwdb/sd-hwdb.c \
3074 src/libsystemd/sd-hwdb/hwdb-util.h \
3075 src/libsystemd/sd-hwdb/hwdb-internal.h \
3076 src/libsystemd/sd-device/device-internal.h \
3077 src/libsystemd/sd-device/device-util.h \
3078 src/libsystemd/sd-device/device-enumerator.c \
3079 src/libsystemd/sd-device/device-enumerator-private.h \
3080 src/libsystemd/sd-device/sd-device.c \
3081 src/libsystemd/sd-device/device-private.c \
3082 src/libsystemd/sd-device/device-private.h \
3083 src/libsystemd/sd-resolve/sd-resolve.c
3084
3085 libsystemd_internal_la_LIBADD = \
3086 libbasic.la \
3087 -lresolv
3088
3089 noinst_LTLIBRARIES += \
3090 libsystemd-internal.la
3091
3092 EXTRA_DIST += \
3093 src/libsystemd/libsystemd.pc.in \
3094 src/libsystemd/sd-bus/DIFFERENCES \
3095 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
3096
3097 libsystemd_la_SOURCES = \
3098 $(libsystemd_internal_la_SOURCES) \
3099 $(libsystemd_journal_internal_la_SOURCES)
3100
3101 nodist_libsystemd_la_SOURCES = \
3102 $(nodist_libsystemd_internal_la_SOURCES)
3103
3104 libsystemd_la_CFLAGS = \
3105 $(libsystemd_internal_la_CFLAGS) \
3106 $(libsystemd_journal_internal_la_CFLAGS)
3107
3108 libsystemd_la_LDFLAGS = \
3109 $(AM_LDFLAGS) \
3110 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
3111 -Wl,--version-script=$(top_srcdir)/src/libsystemd/libsystemd.sym
3112
3113 libsystemd_la_LIBADD = \
3114 $(libsystemd_internal_la_LIBADD) \
3115 $(libsystemd_journal_internal_la_LIBADD)
3116
3117 libsystemd-install-hook:
3118 libname=libsystemd.so && $(move-to-rootlibdir)
3119
3120 libsystemd-uninstall-hook:
3121 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
3122
3123 INSTALL_EXEC_HOOKS += libsystemd-install-hook
3124 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
3125
3126 pkgconfiglib_DATA += \
3127 src/libsystemd/libsystemd.pc
3128
3129 pkginclude_HEADERS += \
3130 src/systemd/sd-bus.h \
3131 src/systemd/sd-bus-protocol.h \
3132 src/systemd/sd-bus-vtable.h \
3133 src/systemd/sd-event.h \
3134 src/systemd/sd-login.h \
3135 src/systemd/sd-id128.h \
3136 src/systemd/sd-daemon.h
3137
3138 lib_LTLIBRARIES += \
3139 libsystemd.la
3140
3141 tests += \
3142 test-bus-marshal \
3143 test-bus-signature \
3144 test-bus-benchmark \
3145 test-bus-chat \
3146 test-bus-cleanup \
3147 test-bus-server \
3148 test-bus-match \
3149 test-bus-proxy \
3150 test-bus-kernel \
3151 test-bus-kernel-bloom \
3152 test-bus-zero-copy \
3153 test-bus-introspect \
3154 test-bus-objects \
3155 test-bus-error \
3156 test-bus-creds \
3157 test-bus-gvariant \
3158 test-event \
3159 test-netlink \
3160 test-local-addresses \
3161 test-resolve
3162
3163 bin_PROGRAMS += \
3164 busctl
3165
3166 test_bus_marshal_SOURCES = \
3167 src/libsystemd/sd-bus/test-bus-marshal.c
3168
3169 test_bus_marshal_LDADD = \
3170 libshared.la \
3171 $(GLIB_LIBS) \
3172 $(DBUS_LIBS)
3173
3174 test_bus_marshal_CFLAGS = \
3175 $(AM_CFLAGS) \
3176 $(GLIB_CFLAGS) \
3177 $(DBUS_CFLAGS)
3178
3179 test_bus_signature_SOURCES = \
3180 src/libsystemd/sd-bus/test-bus-signature.c
3181
3182 test_bus_signature_LDADD = \
3183 libshared.la
3184
3185 test_bus_chat_SOURCES = \
3186 src/libsystemd/sd-bus/test-bus-chat.c
3187
3188 test_bus_chat_LDADD = \
3189 libshared.la
3190
3191 test_bus_cleanup_SOURCES = \
3192 src/libsystemd/sd-bus/test-bus-cleanup.c
3193
3194 test_bus_cleanup_CFLAGS = \
3195 $(AM_CFLAGS) \
3196 $(SECCOMP_CFLAGS)
3197
3198 test_bus_cleanup_LDADD = \
3199 libshared.la
3200
3201 test_bus_server_SOURCES = \
3202 src/libsystemd/sd-bus/test-bus-server.c
3203
3204 test_bus_server_LDADD = \
3205 libshared.la
3206
3207 test_bus_objects_SOURCES = \
3208 src/libsystemd/sd-bus/test-bus-objects.c
3209
3210 test_bus_objects_LDADD = \
3211 libshared.la
3212
3213 test_bus_error_SOURCES = \
3214 src/libsystemd/sd-bus/test-bus-error.c
3215
3216 test_bus_error_LDADD = \
3217 libshared.la
3218
3219 test_bus_gvariant_SOURCES = \
3220 src/libsystemd/sd-bus/test-bus-gvariant.c
3221
3222 test_bus_gvariant_LDADD = \
3223 libshared.la \
3224 $(GLIB_LIBS)
3225
3226 test_bus_gvariant_CFLAGS = \
3227 $(AM_CFLAGS) \
3228 $(GLIB_CFLAGS)
3229
3230 test_bus_creds_SOURCES = \
3231 src/libsystemd/sd-bus/test-bus-creds.c
3232
3233 test_bus_creds_LDADD = \
3234 libshared.la
3235
3236 test_bus_match_SOURCES = \
3237 src/libsystemd/sd-bus/test-bus-match.c
3238
3239 test_bus_match_LDADD = \
3240 libshared.la
3241
3242 test_bus_proxy_SOURCES = \
3243 src/libsystemd/sd-bus/test-bus-proxy.c
3244
3245 test_bus_proxy_LDADD = \
3246 libshared.la
3247
3248 test_bus_kernel_SOURCES = \
3249 src/libsystemd/sd-bus/test-bus-kernel.c
3250
3251 test_bus_kernel_LDADD = \
3252 libshared.la
3253
3254 test_bus_kernel_bloom_SOURCES = \
3255 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
3256
3257 test_bus_kernel_bloom_LDADD = \
3258 libshared.la
3259
3260 test_bus_benchmark_SOURCES = \
3261 src/libsystemd/sd-bus/test-bus-benchmark.c
3262
3263 test_bus_benchmark_LDADD = \
3264 libshared.la
3265
3266 test_bus_zero_copy_SOURCES = \
3267 src/libsystemd/sd-bus/test-bus-zero-copy.c
3268
3269 test_bus_zero_copy_LDADD = \
3270 libshared.la
3271
3272 test_bus_introspect_SOURCES = \
3273 src/libsystemd/sd-bus/test-bus-introspect.c
3274
3275 test_bus_introspect_LDADD = \
3276 libshared.la
3277
3278 test_event_SOURCES = \
3279 src/libsystemd/sd-event/test-event.c
3280
3281 test_event_LDADD = \
3282 libshared.la
3283
3284 test_netlink_SOURCES = \
3285 src/libsystemd/sd-netlink/test-netlink.c
3286
3287 test_netlink_LDADD = \
3288 libshared.la
3289
3290 test_local_addresses_SOURCES = \
3291 src/libsystemd/sd-netlink/test-local-addresses.c
3292
3293 test_local_addresses_LDADD = \
3294 libshared.la
3295
3296 test_resolve_SOURCES = \
3297 src/libsystemd/sd-resolve/test-resolve.c
3298
3299 test_resolve_LDADD = \
3300 libshared.la
3301
3302 busctl_SOURCES = \
3303 src/libsystemd/sd-bus/busctl.c \
3304 src/libsystemd/sd-bus/busctl-introspect.c \
3305 src/libsystemd/sd-bus/busctl-introspect.h
3306
3307 busctl_LDADD = \
3308 libshared.la
3309
3310 # ------------------------------------------------------------------------------
3311 noinst_LTLIBRARIES += \
3312 libsystemd-network.la
3313
3314 libsystemd_network_la_CFLAGS = \
3315 $(AM_CFLAGS) \
3316 $(KMOD_CFLAGS)
3317
3318 libsystemd_network_la_SOURCES = \
3319 src/systemd/sd-dhcp-client.h \
3320 src/systemd/sd-dhcp-server.h \
3321 src/systemd/sd-dhcp-lease.h \
3322 src/systemd/sd-ipv4ll.h \
3323 src/systemd/sd-ipv4acd.h \
3324 src/systemd/sd-ndisc.h \
3325 src/systemd/sd-dhcp6-client.h \
3326 src/systemd/sd-dhcp6-lease.h \
3327 src/systemd/sd-lldp.h \
3328 src/libsystemd-network/sd-dhcp-client.c \
3329 src/libsystemd-network/sd-dhcp-server.c \
3330 src/libsystemd-network/dhcp-network.c \
3331 src/libsystemd-network/dhcp-option.c \
3332 src/libsystemd-network/dhcp-packet.c \
3333 src/libsystemd-network/dhcp-internal.h \
3334 src/libsystemd-network/dhcp-server-internal.h \
3335 src/libsystemd-network/dhcp-protocol.h \
3336 src/libsystemd-network/dhcp-lease-internal.h \
3337 src/libsystemd-network/sd-dhcp-lease.c \
3338 src/libsystemd-network/sd-ipv4ll.c \
3339 src/libsystemd-network/sd-ipv4acd.c \
3340 src/libsystemd-network/arp-util.h \
3341 src/libsystemd-network/arp-util.c \
3342 src/libsystemd-network/network-internal.c \
3343 src/libsystemd-network/network-internal.h \
3344 src/libsystemd-network/sd-ndisc.c \
3345 src/libsystemd-network/icmp6-util.h \
3346 src/libsystemd-network/icmp6-util.c \
3347 src/libsystemd-network/sd-dhcp6-client.c \
3348 src/libsystemd-network/dhcp6-internal.h \
3349 src/libsystemd-network/dhcp6-protocol.h \
3350 src/libsystemd-network/dhcp6-network.c \
3351 src/libsystemd-network/dhcp6-option.c \
3352 src/libsystemd-network/dhcp6-lease-internal.h \
3353 src/libsystemd-network/sd-dhcp6-lease.c \
3354 src/libsystemd-network/dhcp-identifier.h \
3355 src/libsystemd-network/dhcp-identifier.c \
3356 src/libsystemd-network/lldp.h \
3357 src/libsystemd-network/lldp-tlv.h \
3358 src/libsystemd-network/lldp-tlv.c \
3359 src/libsystemd-network/lldp-network.h \
3360 src/libsystemd-network/lldp-network.c \
3361 src/libsystemd-network/lldp-port.h \
3362 src/libsystemd-network/lldp-port.c \
3363 src/libsystemd-network/lldp-internal.h \
3364 src/libsystemd-network/lldp-internal.c \
3365 src/libsystemd-network/sd-lldp.c
3366
3367 libsystemd_network_la_LIBADD = \
3368 $(KMOD_LIBS)
3369
3370 test_dhcp_option_SOURCES = \
3371 src/libsystemd-network/dhcp-protocol.h \
3372 src/libsystemd-network/dhcp-internal.h \
3373 src/libsystemd-network/test-dhcp-option.c
3374
3375 test_dhcp_option_LDADD = \
3376 libsystemd-network.la \
3377 libshared.la
3378
3379 test_dhcp_client_SOURCES = \
3380 src/systemd/sd-dhcp-client.h \
3381 src/libsystemd-network/dhcp-protocol.h \
3382 src/libsystemd-network/dhcp-internal.h \
3383 src/libsystemd-network/test-dhcp-client.c
3384
3385 test_dhcp_client_LDADD = \
3386 libsystemd-network.la \
3387 libshared.la
3388
3389 test_dhcp_server_SOURCES = \
3390 src/libsystemd-network/test-dhcp-server.c
3391
3392 test_dhcp_server_LDADD = \
3393 libsystemd-network.la \
3394 libshared.la
3395
3396 test_ipv4ll_SOURCES = \
3397 src/systemd/sd-ipv4ll.h \
3398 src/libsystemd-network/arp-util.h \
3399 src/libsystemd-network/test-ipv4ll.c
3400
3401 test_ipv4ll_LDADD = \
3402 libsystemd-network.la \
3403 libshared.la
3404
3405 test_ipv4ll_manual_SOURCES = \
3406 src/systemd/sd-ipv4ll.h \
3407 src/libsystemd-network/test-ipv4ll-manual.c
3408
3409 test_ipv4ll_manual_LDADD = \
3410 libsystemd-network.la \
3411 libshared.la
3412
3413 test_acd_SOURCES = \
3414 src/systemd/sd-ipv4acd.h \
3415 src/libsystemd-network/test-acd.c
3416
3417 test_acd_LDADD = \
3418 libsystemd-network.la \
3419 libshared.la
3420
3421 test_ndisc_rs_SOURCES = \
3422 src/systemd/sd-dhcp6-client.h \
3423 src/systemd/sd-ndisc.h \
3424 src/libsystemd-network/icmp6-util.h \
3425 src/libsystemd-network/test-ndisc-rs.c \
3426 src/libsystemd-network/dhcp-identifier.h \
3427 src/libsystemd-network/dhcp-identifier.c
3428
3429 test_ndisc_rs_LDADD = \
3430 libsystemd-network.la \
3431 libudev.la \
3432 libshared.la
3433
3434 test_dhcp6_client_SOURCES = \
3435 src/systemd/sd-dhcp6-client.h \
3436 src/libsystemd-network/dhcp6-internal.h \
3437 src/libsystemd-network/test-dhcp6-client.c \
3438 src/libsystemd-network/dhcp-identifier.h \
3439 src/libsystemd-network/dhcp-identifier.c
3440
3441 test_dhcp6_client_LDADD = \
3442 libsystemd-network.la \
3443 libudev.la \
3444 libshared.la
3445
3446 test_lldp_SOURCES = \
3447 src/libsystemd-network/lldp.h \
3448 src/libsystemd-network/lldp-tlv.h \
3449 src/libsystemd-network/lldp-tlv.c \
3450 src/libsystemd-network/test-lldp.c
3451
3452 test_lldp_LDADD = \
3453 libsystemd-network.la \
3454 libshared.la
3455
3456 tests += \
3457 test-dhcp-option \
3458 test-dhcp-client \
3459 test-dhcp-server \
3460 test-ipv4ll \
3461 test-ndisc-rs \
3462 test-dhcp6-client \
3463 test-lldp
3464
3465 # ------------------------------------------------------------------------------
3466 include_HEADERS += \
3467 src/libudev/libudev.h
3468
3469 lib_LTLIBRARIES += \
3470 libudev.la
3471
3472 libudev_la_SOURCES =\
3473 src/libudev/libudev.sym \
3474 src/libudev/libudev-private.h \
3475 src/libudev/libudev-device-internal.h \
3476 src/libudev/libudev.c \
3477 src/libudev/libudev-list.c \
3478 src/libudev/libudev-util.c \
3479 src/libudev/libudev-device.c \
3480 src/libudev/libudev-device-private.c \
3481 src/libudev/libudev-enumerate.c \
3482 src/libudev/libudev-monitor.c \
3483 src/libudev/libudev-queue.c \
3484 src/libudev/libudev-hwdb.c
3485
3486 libudev_la_LDFLAGS = \
3487 $(AM_LDFLAGS) \
3488 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3489 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3490
3491 libudev_la_LIBADD = \
3492 libsystemd-internal.la
3493
3494 pkgconfiglib_DATA += \
3495 src/libudev/libudev.pc
3496
3497 EXTRA_DIST += \
3498 src/libudev/libudev.pc.in
3499
3500 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3501 libudev-install-hook:
3502 libname=libudev.so && $(move-to-rootlibdir)
3503
3504 libudev-uninstall-hook:
3505 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3506
3507 INSTALL_EXEC_HOOKS += libudev-install-hook
3508 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3509
3510 # ------------------------------------------------------------------------------
3511 noinst_LTLIBRARIES += \
3512 libudev-internal.la
3513
3514 libudev_internal_la_SOURCES =\
3515 $(libudev_la_SOURCES)
3516
3517 # ------------------------------------------------------------------------------
3518 INSTALL_DIRS += \
3519 $(sysconfdir)/udev/rules.d
3520
3521 dist_network_DATA = \
3522 network/99-default.link \
3523 network/80-container-host0.network \
3524 network/80-container-ve.network
3525
3526 dist_udevrules_DATA += \
3527 rules/50-udev-default.rules \
3528 rules/60-block.rules \
3529 rules/60-drm.rules \
3530 rules/60-evdev.rules \
3531 rules/60-persistent-storage-tape.rules \
3532 rules/60-persistent-input.rules \
3533 rules/60-persistent-alsa.rules \
3534 rules/60-persistent-storage.rules \
3535 rules/60-serial.rules \
3536 rules/64-btrfs.rules \
3537 rules/70-mouse.rules \
3538 rules/75-net-description.rules \
3539 rules/78-sound-card.rules \
3540 rules/80-net-setup-link.rules
3541
3542 nodist_udevrules_DATA += \
3543 rules/99-systemd.rules
3544
3545 udevconfdir = $(sysconfdir)/udev
3546 dist_udevconf_DATA = \
3547 src/udev/udev.conf
3548
3549 pkgconfigdata_DATA += \
3550 src/udev/udev.pc
3551
3552 EXTRA_DIST += \
3553 rules/99-systemd.rules.in \
3554 src/udev/udev.pc.in
3555
3556 EXTRA_DIST += \
3557 units/systemd-udevd.service.in \
3558 units/systemd-udev-trigger.service.in \
3559 units/systemd-udev-settle.service.in
3560
3561 SOCKETS_TARGET_WANTS += \
3562 systemd-udevd-control.socket \
3563 systemd-udevd-kernel.socket
3564
3565 SYSINIT_TARGET_WANTS += \
3566 systemd-udevd.service \
3567 systemd-udev-trigger.service
3568
3569 rootbin_PROGRAMS += \
3570 udevadm
3571
3572 rootlibexec_PROGRAMS += \
3573 systemd-udevd
3574
3575 noinst_LTLIBRARIES += \
3576 libudev-core.la
3577
3578 src/udev/keyboard-keys-list.txt:
3579 $(AM_V_at)$(MKDIR_P) $(dir $@)
3580 $(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 } }' > $@
3581
3582 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys-list.txt
3583 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3584
3585 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3586 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3587
3588 gperf_txt_sources += \
3589 src/udev/keyboard-keys-list.txt
3590
3591 libudev_core_la_SOURCES = \
3592 src/udev/udev.h \
3593 src/udev/udev-event.c \
3594 src/udev/udev-watch.c \
3595 src/udev/udev-node.c \
3596 src/udev/udev-rules.c \
3597 src/udev/udev-ctrl.c \
3598 src/udev/udev-builtin.c \
3599 src/udev/udev-builtin-btrfs.c \
3600 src/udev/udev-builtin-hwdb.c \
3601 src/udev/udev-builtin-input_id.c \
3602 src/udev/udev-builtin-keyboard.c \
3603 src/udev/udev-builtin-net_id.c \
3604 src/udev/udev-builtin-net_setup_link.c \
3605 src/udev/udev-builtin-path_id.c \
3606 src/udev/udev-builtin-usb_id.c \
3607 src/udev/net/link-config.h \
3608 src/udev/net/link-config.c \
3609 src/udev/net/ethtool-util.h \
3610 src/udev/net/ethtool-util.c
3611
3612 nodist_libudev_core_la_SOURCES = \
3613 src/udev/keyboard-keys-from-name.h \
3614 src/udev/net/link-config-gperf.c
3615
3616 gperf_gperf_sources += \
3617 src/udev/net/link-config-gperf.gperf
3618
3619 libudev_core_la_CFLAGS = \
3620 $(AM_CFLAGS) \
3621 $(BLKID_CFLAGS) \
3622 $(KMOD_CFLAGS)
3623
3624 libudev_core_la_LIBADD = \
3625 libsystemd-network.la \
3626 libshared.la \
3627 $(BLKID_LIBS) \
3628 $(KMOD_LIBS)
3629
3630 if HAVE_KMOD
3631 libudev_core_la_SOURCES += \
3632 src/udev/udev-builtin-kmod.c
3633
3634 dist_udevrules_DATA += \
3635 rules/80-drivers.rules
3636 endif
3637
3638 if HAVE_BLKID
3639 libudev_core_la_SOURCES += \
3640 src/udev/udev-builtin-blkid.c
3641 endif
3642
3643 if HAVE_ACL
3644 libudev_core_la_SOURCES += \
3645 src/udev/udev-builtin-uaccess.c \
3646 src/login/logind-acl.c \
3647 src/libsystemd/sd-login/sd-login.c \
3648 src/systemd/sd-login.h
3649 endif
3650
3651 systemd_udevd_SOURCES = \
3652 src/udev/udevd.c
3653
3654 systemd_udevd_LDADD = \
3655 libudev-core.la
3656
3657 udevadm_SOURCES = \
3658 src/udev/udevadm.c \
3659 src/udev/udevadm-info.c \
3660 src/udev/udevadm-control.c \
3661 src/udev/udevadm-monitor.c \
3662 src/udev/udevadm-hwdb.c \
3663 src/udev/udevadm-settle.c \
3664 src/udev/udevadm-trigger.c \
3665 src/udev/udevadm-test.c \
3666 src/udev/udevadm-test-builtin.c \
3667 src/udev/udevadm-util.c \
3668 src/udev/udevadm-util.h
3669
3670 udevadm_LDADD = \
3671 libudev-core.la
3672
3673 # ------------------------------------------------------------------------------
3674 if ENABLE_HWDB
3675 INSTALL_DIRS += \
3676 $(sysconfdir)/udev/hwdb.d
3677
3678 systemd_hwdb_SOURCES = \
3679 src/libsystemd/sd-hwdb/hwdb-internal.h \
3680 src/hwdb/hwdb.c
3681
3682 systemd_hwdb_LDADD = \
3683 libshared.la
3684
3685 rootbin_PROGRAMS += \
3686 systemd-hwdb
3687
3688 dist_udevhwdb_DATA = \
3689 hwdb/20-pci-vendor-model.hwdb \
3690 hwdb/20-pci-classes.hwdb \
3691 hwdb/20-usb-vendor-model.hwdb \
3692 hwdb/20-usb-classes.hwdb \
3693 hwdb/20-sdio-vendor-model.hwdb \
3694 hwdb/20-sdio-classes.hwdb \
3695 hwdb/20-bluetooth-vendor-product.hwdb \
3696 hwdb/20-acpi-vendor.hwdb \
3697 hwdb/20-OUI.hwdb \
3698 hwdb/20-net-ifname.hwdb \
3699 hwdb/60-evdev.hwdb \
3700 hwdb/60-keyboard.hwdb \
3701 hwdb/70-mouse.hwdb \
3702 hwdb/70-pointingstick.hwdb
3703
3704 SYSINIT_TARGET_WANTS += \
3705 systemd-hwdb-update.service
3706
3707 # Update hwdb on installation. Do not bother if installing
3708 # in DESTDIR, since this is likely for packaging purposes.
3709 hwdb-update-hook:
3710 -test -n "$(DESTDIR)" || $(rootbindir)/systemd-hwdb update
3711
3712 INSTALL_DATA_HOOKS += \
3713 hwdb-update-hook
3714
3715 hwdb-remove-hook:
3716 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3717 endif
3718
3719 EXTRA_DIST += \
3720 units/systemd-hwdb-update.service.in \
3721 hwdb/ids-update.pl \
3722 hwdb/sdio.ids
3723
3724 # ------------------------------------------------------------------------------
3725 TESTS += \
3726 test/udev-test.pl
3727
3728 if HAVE_PYTHON
3729 TESTS += \
3730 test/rule-syntax-check.py
3731
3732 if HAVE_SYSV_COMPAT
3733 TESTS += \
3734 test/sysv-generator-test.py
3735 endif
3736 endif
3737
3738 manual_tests += \
3739 test-libudev \
3740 test-udev
3741
3742 test_libudev_SOURCES = \
3743 src/test/test-libudev.c
3744
3745 test_libudev_LDADD = \
3746 libshared.la
3747
3748 test_udev_SOURCES = \
3749 src/test/test-udev.c
3750
3751 test_udev_LDADD = \
3752 libudev-core.la \
3753 $(BLKID_LIBS) \
3754 $(KMOD_LIBS)
3755
3756 check_DATA += \
3757 test/sys
3758
3759 # packed sysfs test tree
3760 test/sys:
3761 $(AM_V_at)$(MKDIR_P) $(dir $@)
3762 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3763
3764 test-sys-distclean:
3765 -rm -rf test/sys
3766 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3767
3768 EXTRA_DIST += \
3769 test/sys.tar.xz \
3770 test/udev-test.pl \
3771 test/rule-syntax-check.py \
3772 test/sysv-generator-test.py \
3773 test/mocks/fsck
3774
3775 # ------------------------------------------------------------------------------
3776 ata_id_SOURCES = \
3777 src/udev/ata_id/ata_id.c
3778
3779 ata_id_LDADD = \
3780 libshared.la
3781
3782 udevlibexec_PROGRAMS += \
3783 ata_id
3784
3785 # ------------------------------------------------------------------------------
3786 cdrom_id_SOURCES = \
3787 src/udev/cdrom_id/cdrom_id.c
3788
3789 cdrom_id_LDADD = \
3790 libshared.la
3791
3792 udevlibexec_PROGRAMS += \
3793 cdrom_id
3794
3795 dist_udevrules_DATA += \
3796 rules/60-cdrom_id.rules
3797
3798 # ------------------------------------------------------------------------------
3799 collect_SOURCES = \
3800 src/udev/collect/collect.c
3801
3802 collect_LDADD = \
3803 libshared.la
3804
3805 udevlibexec_PROGRAMS += \
3806 collect
3807
3808 # ------------------------------------------------------------------------------
3809 scsi_id_SOURCES =\
3810 src/udev/scsi_id/scsi_id.c \
3811 src/udev/scsi_id/scsi_serial.c \
3812 src/udev/scsi_id/scsi.h \
3813 src/udev/scsi_id/scsi_id.h
3814
3815 scsi_id_LDADD = \
3816 libshared.la
3817
3818 udevlibexec_PROGRAMS += \
3819 scsi_id
3820
3821 EXTRA_DIST += \
3822 src/udev/scsi_id/README
3823
3824 # ------------------------------------------------------------------------------
3825 v4l_id_SOURCES = \
3826 src/udev/v4l_id/v4l_id.c
3827
3828 v4l_id_LDADD = \
3829 libshared.la
3830
3831 udevlibexec_PROGRAMS += \
3832 v4l_id
3833
3834 dist_udevrules_DATA += \
3835 rules/60-persistent-v4l.rules
3836
3837 # ------------------------------------------------------------------------------
3838 mtd_probe_SOURCES = \
3839 src/udev/mtd_probe/mtd_probe.c \
3840 src/udev/mtd_probe/mtd_probe.h \
3841 src/udev/mtd_probe/probe_smartmedia.c
3842
3843 dist_udevrules_DATA += \
3844 rules/75-probe_mtd.rules
3845
3846 udevlibexec_PROGRAMS += \
3847 mtd_probe
3848
3849 # ------------------------------------------------------------------------------
3850 test_id128_SOURCES = \
3851 src/test/test-id128.c
3852
3853 test_id128_LDADD = \
3854 libshared.la
3855
3856 tests += \
3857 test-id128
3858
3859 # ------------------------------------------------------------------------------
3860
3861 rootlibexec_PROGRAMS += \
3862 systemd-activate
3863
3864 systemd_activate_SOURCES = \
3865 src/activate/activate.c
3866
3867 systemd_activate_LDADD = \
3868 libshared.la
3869
3870 # ------------------------------------------------------------------------------
3871 systemd_journald_SOURCES = \
3872 src/journal/journald.c \
3873 src/journal/journald-server.h
3874
3875 systemd_journald_LDADD = \
3876 libjournal-core.la \
3877 libshared.la
3878
3879 systemd_cat_SOURCES = \
3880 src/journal/cat.c
3881
3882 systemd_cat_LDADD = \
3883 libjournal-core.la
3884
3885 if HAVE_MICROHTTPD
3886 rootlibexec_PROGRAMS += \
3887 systemd-journal-remote
3888
3889 systemd_journal_remote_SOURCES = \
3890 src/journal-remote/journal-remote-parse.h \
3891 src/journal-remote/journal-remote-parse.c \
3892 src/journal-remote/journal-remote-write.h \
3893 src/journal-remote/journal-remote-write.c \
3894 src/journal-remote/journal-remote.h \
3895 src/journal-remote/journal-remote.c
3896
3897 systemd_journal_remote_LDADD = \
3898 libjournal-core.la
3899
3900 systemd_journal_remote_SOURCES += \
3901 src/journal-remote/microhttpd-util.h \
3902 src/journal-remote/microhttpd-util.c
3903
3904 systemd_journal_remote_CFLAGS = \
3905 $(AM_CFLAGS) \
3906 $(MICROHTTPD_CFLAGS)
3907
3908 systemd_journal_remote_LDADD += \
3909 $(MICROHTTPD_LIBS)
3910
3911 if ENABLE_SYSUSERS
3912 dist_sysusers_DATA += \
3913 sysusers.d/systemd-remote.conf
3914 endif
3915
3916 if ENABLE_TMPFILES
3917 dist_tmpfiles_DATA += \
3918 tmpfiles.d/systemd-remote.conf
3919 endif
3920
3921 if HAVE_GNUTLS
3922 systemd_journal_remote_LDADD += \
3923 $(GNUTLS_LIBS)
3924 endif
3925
3926 # systemd-journal-remote make sense mostly with full crypto stack
3927 dist_systemunit_DATA += \
3928 units/systemd-journal-remote.socket
3929
3930 nodist_systemunit_DATA += \
3931 units/systemd-journal-remote.service
3932
3933 journal-remote-install-hook: journal-install-hook
3934 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
3935 -chown 0:0 $(DESTDIR)/var/log/journal/remote
3936 -chmod 755 $(DESTDIR)/var/log/journal/remote
3937
3938 INSTALL_EXEC_HOOKS += journal-remote-install-hook
3939
3940 nodist_pkgsysconf_DATA += \
3941 src/journal-remote/journal-remote.conf
3942
3943 EXTRA_DIST += \
3944 units/systemd-journal-remote.service.in \
3945 src/journal-remote/journal-remote.conf.in \
3946 src/journal-remote/log-generator.py
3947 endif
3948
3949 if HAVE_LIBCURL
3950 rootlibexec_PROGRAMS += \
3951 systemd-journal-upload
3952
3953 systemd_journal_upload_SOURCES = \
3954 src/journal-remote/journal-upload.h \
3955 src/journal-remote/journal-upload.c \
3956 src/journal-remote/journal-upload-journal.c
3957
3958 systemd_journal_upload_CFLAGS = \
3959 $(AM_CFLAGS) \
3960 $(LIBCURL_CFLAGS)
3961
3962 systemd_journal_upload_LDADD = \
3963 libshared.la \
3964 $(LIBCURL_LIBS)
3965
3966 nodist_systemunit_DATA += \
3967 units/systemd-journal-upload.service
3968
3969 nodist_pkgsysconf_DATA += \
3970 src/journal-remote/journal-upload.conf
3971 endif
3972
3973 EXTRA_DIST += \
3974 units/systemd-journal-upload.service.in \
3975 src/journal-remote/journal-upload.conf.in
3976
3977 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3978 journalctl_CFLAGS = \
3979 $(AM_CFLAGS)
3980
3981 journalctl_SOURCES = \
3982 src/journal/journalctl.c
3983
3984 journalctl_LDADD = \
3985 libshared.la
3986
3987 if HAVE_QRENCODE
3988 journalctl_SOURCES += \
3989 src/journal/journal-qrcode.c \
3990 src/journal/journal-qrcode.h
3991
3992 journalctl_CFLAGS += \
3993 $(QRENCODE_CFLAGS)
3994
3995 journalctl_LDADD += \
3996 $(QRENCODE_LIBS)
3997 endif
3998
3999 test_journal_SOURCES = \
4000 src/journal/test-journal.c
4001
4002 test_journal_LDADD = \
4003 libjournal-core.la
4004
4005 test_journal_send_SOURCES = \
4006 src/journal/test-journal-send.c
4007
4008 test_journal_send_LDADD = \
4009 libjournal-core.la
4010
4011 test_journal_syslog_SOURCES = \
4012 src/journal/test-journal-syslog.c
4013
4014 test_journal_syslog_LDADD = \
4015 libjournal-core.la
4016
4017 test_journal_match_SOURCES = \
4018 src/journal/test-journal-match.c
4019
4020 test_journal_match_LDADD = \
4021 libjournal-core.la
4022
4023 test_journal_enum_SOURCES = \
4024 src/journal/test-journal-enum.c
4025
4026 test_journal_enum_LDADD = \
4027 libjournal-core.la
4028
4029 test_journal_stream_SOURCES = \
4030 src/journal/test-journal-stream.c
4031
4032 test_journal_stream_LDADD = \
4033 libjournal-core.la
4034
4035 test_journal_flush_SOURCES = \
4036 src/journal/test-journal-flush.c
4037
4038 test_journal_flush_LDADD = \
4039 libjournal-core.la
4040
4041 test_journal_init_SOURCES = \
4042 src/journal/test-journal-init.c
4043
4044 test_journal_init_LDADD = \
4045 libjournal-core.la
4046
4047 test_journal_verify_SOURCES = \
4048 src/journal/test-journal-verify.c
4049
4050 test_journal_verify_LDADD = \
4051 libjournal-core.la
4052
4053 test_journal_interleaving_SOURCES = \
4054 src/journal/test-journal-interleaving.c
4055
4056 test_journal_interleaving_LDADD = \
4057 libjournal-core.la
4058
4059 test_mmap_cache_SOURCES = \
4060 src/journal/test-mmap-cache.c
4061
4062 test_mmap_cache_LDADD = \
4063 libjournal-core.la
4064
4065 test_catalog_SOURCES = \
4066 src/journal/test-catalog.c
4067
4068 test_catalog_CPPFLAGS = \
4069 $(AM_CPPFLAGS) \
4070 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
4071
4072 test_catalog_LDADD = \
4073 libjournal-core.la
4074
4075 test_compress_SOURCES = \
4076 src/journal/test-compress.c
4077
4078 test_compress_LDADD = \
4079 libshared.la
4080
4081 test_compress_benchmark_SOURCES = \
4082 src/journal/test-compress-benchmark.c
4083
4084 test_compress_benchmark_LDADD = \
4085 libshared.la
4086
4087 test_audit_type_SOURCES = \
4088 src/journal/test-audit-type.c
4089
4090 test_audit_type_LDADD = \
4091 libjournal-core.la
4092
4093 libjournal_core_la_SOURCES = \
4094 src/journal/journald-kmsg.c \
4095 src/journal/journald-kmsg.h \
4096 src/journal/journald-syslog.c \
4097 src/journal/journald-syslog.h \
4098 src/journal/journald-stream.c \
4099 src/journal/journald-stream.h \
4100 src/journal/journald-server.c \
4101 src/journal/journald-server.h \
4102 src/journal/journald-console.c \
4103 src/journal/journald-console.h \
4104 src/journal/journald-wall.c \
4105 src/journal/journald-wall.h \
4106 src/journal/journald-native.c \
4107 src/journal/journald-native.h \
4108 src/journal/journald-audit.c \
4109 src/journal/journald-audit.h \
4110 src/journal/journald-rate-limit.c \
4111 src/journal/journald-rate-limit.h \
4112 src/journal/journal-internal.h
4113
4114 nodist_libjournal_core_la_SOURCES = \
4115 src/journal/journald-gperf.c
4116
4117 libjournal_core_la_LIBADD = \
4118 libshared.la
4119
4120 noinst_LTLIBRARIES += \
4121 libjournal-core.la
4122
4123 journal-install-hook:
4124 -$(MKDIR_P) $(DESTDIR)/var/log/journal
4125 -chown 0:0 $(DESTDIR)/var/log/journal
4126 -chmod 755 $(DESTDIR)/var/log/journal
4127 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4128 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4129
4130 journal-uninstall-hook:
4131 -rmdir $(DESTDIR)/var/log/journal/remote
4132 -rmdir $(DESTDIR)/var/log/journal/
4133
4134 INSTALL_EXEC_HOOKS += journal-install-hook
4135 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4136
4137 # ------------------------------------------------------------------------------
4138 # Update catalog on installation. Do not bother if installing
4139 # in DESTDIR, since this is likely for packaging purposes.
4140 catalog-update-hook:
4141 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4142
4143 INSTALL_DATA_HOOKS += \
4144 catalog-update-hook
4145
4146 catalog-remove-hook:
4147 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4148
4149 UNINSTALL_DATA_HOOKS += \
4150 catalog-remove-hook
4151
4152 manual_tests += \
4153 test-journal-enum
4154
4155 tests += \
4156 test-journal \
4157 test-journal-send \
4158 test-journal-syslog \
4159 test-journal-match \
4160 test-journal-stream \
4161 test-journal-init \
4162 test-journal-verify \
4163 test-journal-interleaving \
4164 test-journal-flush \
4165 test-mmap-cache \
4166 test-catalog \
4167 test-audit-type
4168
4169 if HAVE_COMPRESSION
4170 tests += \
4171 test-compress \
4172 test-compress-benchmark
4173 endif
4174
4175 pkginclude_HEADERS += \
4176 src/systemd/sd-journal.h \
4177 src/systemd/sd-messages.h \
4178 src/systemd/_sd-common.h
4179
4180 libsystemd_journal_internal_la_SOURCES = \
4181 src/journal/sd-journal.c \
4182 src/systemd/sd-journal.h \
4183 src/systemd/_sd-common.h \
4184 src/journal/journal-file.c \
4185 src/journal/journal-file.h \
4186 src/journal/journal-vacuum.c \
4187 src/journal/journal-vacuum.h \
4188 src/journal/journal-verify.c \
4189 src/journal/journal-verify.h \
4190 src/journal/lookup3.c \
4191 src/journal/lookup3.h \
4192 src/journal/journal-send.c \
4193 src/journal/journal-def.h \
4194 src/journal/compress.h \
4195 src/journal/catalog.c \
4196 src/journal/catalog.h \
4197 src/journal/mmap-cache.c \
4198 src/journal/mmap-cache.h \
4199 src/journal/compress.c \
4200 src/journal/audit-type.h \
4201 src/journal/audit-type.c
4202
4203 nodist_libsystemd_journal_internal_la_SOURCES = \
4204 src/journal/audit_type-to-name.h
4205
4206 gperf_txt_sources += \
4207 src/journal/audit_type-list.txt
4208
4209 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4210 libsystemd_journal_internal_la_CFLAGS = \
4211 $(AM_CFLAGS)
4212
4213 libsystemd_journal_internal_la_LIBADD =
4214
4215 if HAVE_XZ
4216 libsystemd_journal_internal_la_CFLAGS += \
4217 $(XZ_CFLAGS)
4218
4219 libsystemd_journal_internal_la_LIBADD += \
4220 $(XZ_LIBS)
4221 endif
4222
4223 if HAVE_LZ4
4224 libsystemd_journal_internal_la_LIBADD += \
4225 -llz4
4226 endif
4227
4228 if HAVE_GCRYPT
4229 libsystemd_journal_internal_la_SOURCES += \
4230 src/journal/journal-authenticate.c \
4231 src/journal/journal-authenticate.h \
4232 src/journal/fsprg.c \
4233 src/journal/fsprg.h
4234
4235 libsystemd_journal_internal_la_LIBADD += \
4236 $(GCRYPT_LIBS)
4237
4238 # fsprg.c is a drop-in file using void pointer arithmetic
4239 libsystemd_journal_internal_la_CFLAGS += \
4240 $(GCRYPT_CFLAGS) \
4241 -Wno-pointer-arith
4242 endif
4243
4244 noinst_LTLIBRARIES += \
4245 libsystemd-journal-internal.la
4246
4247 rootlibexec_PROGRAMS += \
4248 systemd-journald
4249
4250 rootbin_PROGRAMS += \
4251 journalctl
4252
4253 bin_PROGRAMS += \
4254 systemd-cat
4255
4256 dist_systemunit_DATA += \
4257 units/systemd-journald.socket \
4258 units/systemd-journald-dev-log.socket \
4259 units/systemd-journald-audit.socket
4260
4261 nodist_systemunit_DATA += \
4262 units/systemd-journald.service \
4263 units/systemd-journal-flush.service \
4264 units/systemd-journal-catalog-update.service
4265
4266 dist_pkgsysconf_DATA += \
4267 src/journal/journald.conf
4268
4269 dist_catalog_DATA = \
4270 catalog/systemd.be.catalog \
4271 catalog/systemd.be@latin.catalog \
4272 catalog/systemd.fr.catalog \
4273 catalog/systemd.it.catalog \
4274 catalog/systemd.pl.catalog \
4275 catalog/systemd.pt_BR.catalog \
4276 catalog/systemd.ru.catalog \
4277 catalog/systemd.zh_CN.catalog \
4278 catalog/systemd.zh_TW.catalog \
4279 catalog/systemd.catalog
4280
4281 SOCKETS_TARGET_WANTS += \
4282 systemd-journald.socket \
4283 systemd-journald-dev-log.socket \
4284 systemd-journald-audit.socket
4285
4286 SYSINIT_TARGET_WANTS += \
4287 systemd-journald.service \
4288 systemd-journal-flush.service \
4289 systemd-journal-catalog-update.service
4290
4291 EXTRA_DIST += \
4292 units/systemd-journald.service.in \
4293 units/systemd-journal-flush.service.in \
4294 units/systemd-journal-catalog-update.service.in
4295
4296 gperf_gperf_sources += \
4297 src/journal/journald-gperf.gperf
4298
4299 # ------------------------------------------------------------------------------
4300 if HAVE_MICROHTTPD
4301 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4302
4303 rootlibexec_PROGRAMS += \
4304 systemd-journal-gatewayd
4305
4306 systemd_journal_gatewayd_SOURCES = \
4307 src/journal-remote/journal-gatewayd.c \
4308 src/journal-remote/microhttpd-util.h \
4309 src/journal-remote/microhttpd-util.c
4310
4311 systemd_journal_gatewayd_LDADD = \
4312 libshared.la \
4313 $(MICROHTTPD_LIBS)
4314
4315 if HAVE_GNUTLS
4316 systemd_journal_gatewayd_LDADD += \
4317 $(GNUTLS_LIBS)
4318 endif
4319
4320 systemd_journal_gatewayd_CFLAGS = \
4321 $(AM_CFLAGS) \
4322 $(MICROHTTPD_CFLAGS)
4323
4324 systemd_journal_gatewayd_CPPFLAGS = \
4325 $(AM_CPPFLAGS) \
4326 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4327
4328 dist_systemunit_DATA += \
4329 units/systemd-journal-gatewayd.socket
4330
4331 nodist_systemunit_DATA += \
4332 units/systemd-journal-gatewayd.service
4333
4334 dist_gatewayddocumentroot_DATA = \
4335 src/journal-remote/browse.html
4336
4337 endif
4338
4339 EXTRA_DIST += \
4340 units/systemd-journal-gatewayd.service.in
4341
4342 # ------------------------------------------------------------------------------
4343
4344 systemd_socket_proxyd_SOURCES = \
4345 src/socket-proxy/socket-proxyd.c
4346
4347 systemd_socket_proxyd_LDADD = \
4348 libshared.la
4349
4350 # ------------------------------------------------------------------------------
4351 if ENABLE_COREDUMP
4352 systemd_coredump_SOURCES = \
4353 src/journal/coredump.c \
4354 src/journal/coredump-vacuum.c \
4355 src/journal/coredump-vacuum.h
4356
4357 systemd_coredump_LDADD = \
4358 libshared.la
4359
4360 if HAVE_ELFUTILS
4361 systemd_coredump_SOURCES += \
4362 src/journal/stacktrace.c \
4363 src/journal/stacktrace.h
4364
4365 systemd_coredump_LDADD += \
4366 $(ELFUTILS_LIBS)
4367 endif
4368
4369 rootlibexec_PROGRAMS += \
4370 systemd-coredump
4371
4372 dist_pkgsysconf_DATA += \
4373 src/journal/coredump.conf
4374
4375 coredumpctl_SOURCES = \
4376 src/journal/coredumpctl.c
4377
4378 coredumpctl_LDADD = \
4379 libshared.la
4380
4381 bin_PROGRAMS += \
4382 coredumpctl
4383
4384 manual_tests += \
4385 test-coredump-vacuum
4386
4387 test_coredump_vacuum_SOURCES = \
4388 src/journal/test-coredump-vacuum.c \
4389 src/journal/coredump-vacuum.c \
4390 src/journal/coredump-vacuum.h
4391
4392 test_coredump_vacuum_LDADD = \
4393 libshared.la
4394
4395 if ENABLE_BASH_COMPLETION
4396 dist_bashcompletion_DATA += \
4397 shell-completion/bash/coredumpctl
4398 endif
4399
4400 if ENABLE_ZSH_COMPLETION
4401 dist_zshcompletion_DATA += \
4402 shell-completion/zsh/_coredumpctl
4403 endif
4404
4405 nodist_sysctl_DATA = \
4406 sysctl.d/50-coredump.conf
4407
4408 CLEANFILES += \
4409 sysctl.d/50-coredump.conf
4410 endif
4411
4412 EXTRA_DIST += \
4413 sysctl.d/50-coredump.conf.in
4414
4415 # ------------------------------------------------------------------------------
4416 if ENABLE_BINFMT
4417 systemd_binfmt_SOURCES = \
4418 src/binfmt/binfmt.c
4419
4420 systemd_binfmt_LDADD = \
4421 libshared.la
4422
4423 rootlibexec_PROGRAMS += \
4424 systemd-binfmt
4425
4426 dist_systemunit_DATA += \
4427 units/proc-sys-fs-binfmt_misc.automount \
4428 units/proc-sys-fs-binfmt_misc.mount
4429
4430 nodist_systemunit_DATA += \
4431 units/systemd-binfmt.service
4432
4433 INSTALL_DIRS += \
4434 $(prefix)/lib/binfmt.d \
4435 $(sysconfdir)/binfmt.d
4436
4437 SYSINIT_TARGET_WANTS += \
4438 systemd-binfmt.service \
4439 proc-sys-fs-binfmt_misc.automount
4440
4441 endif
4442
4443 EXTRA_DIST += \
4444 units/systemd-binfmt.service.in
4445
4446 # ------------------------------------------------------------------------------
4447 if ENABLE_VCONSOLE
4448 systemd_vconsole_setup_SOURCES = \
4449 src/vconsole/vconsole-setup.c
4450
4451 systemd_vconsole_setup_LDADD = \
4452 libshared.la
4453
4454 rootlibexec_PROGRAMS += \
4455 systemd-vconsole-setup
4456
4457 nodist_udevrules_DATA += \
4458 src/vconsole/90-vconsole.rules
4459
4460 nodist_systemunit_DATA += \
4461 units/systemd-vconsole-setup.service
4462
4463 SYSINIT_TARGET_WANTS += \
4464 systemd-vconsole-setup.service
4465 endif
4466
4467 EXTRA_DIST += \
4468 src/vconsole/90-vconsole.rules.in \
4469 units/systemd-vconsole-setup.service.in
4470
4471 # ------------------------------------------------------------------------------
4472 if ENABLE_BOOTCHART
4473 systemd_bootchart_SOURCES = \
4474 src/bootchart/bootchart.c \
4475 src/bootchart/bootchart.h \
4476 src/bootchart/store.c \
4477 src/bootchart/store.h \
4478 src/bootchart/svg.c \
4479 src/bootchart/svg.h
4480
4481 systemd_bootchart_LDADD = \
4482 libshared.la
4483
4484 rootlibexec_PROGRAMS += \
4485 systemd-bootchart
4486
4487 dist_pkgsysconf_DATA += \
4488 src/bootchart/bootchart.conf
4489
4490 nodist_systemunit_DATA += \
4491 units/systemd-bootchart.service
4492 endif
4493
4494 EXTRA_DIST += \
4495 units/systemd-bootchart.service.in
4496
4497 # ------------------------------------------------------------------------------
4498 if ENABLE_QUOTACHECK
4499 rootlibexec_PROGRAMS += \
4500 systemd-quotacheck
4501
4502 nodist_systemunit_DATA += \
4503 units/systemd-quotacheck.service
4504
4505 systemd_quotacheck_SOURCES = \
4506 src/quotacheck/quotacheck.c
4507
4508 systemd_quotacheck_LDADD = \
4509 libshared.la
4510 endif
4511
4512 EXTRA_DIST += \
4513 units/systemd-quotacheck.service.in
4514
4515 nodist_systemunit_DATA += \
4516 units/quotaon.service
4517
4518 # ------------------------------------------------------------------------------
4519 if ENABLE_RANDOMSEED
4520 rootlibexec_PROGRAMS += \
4521 systemd-random-seed
4522
4523 nodist_systemunit_DATA += \
4524 units/systemd-random-seed.service
4525
4526 systemd_random_seed_SOURCES = \
4527 src/random-seed/random-seed.c
4528
4529 systemd_random_seed_LDADD = \
4530 libshared.la
4531
4532 SYSINIT_TARGET_WANTS += \
4533 systemd-random-seed.service
4534
4535 endif
4536
4537 EXTRA_DIST += \
4538 units/systemd-random-seed.service.in
4539
4540 # ------------------------------------------------------------------------------
4541 if ENABLE_BACKLIGHT
4542 rootlibexec_PROGRAMS += \
4543 systemd-backlight
4544
4545 nodist_systemunit_DATA += \
4546 units/systemd-backlight@.service
4547
4548 systemd_backlight_SOURCES = \
4549 src/backlight/backlight.c
4550
4551 systemd_backlight_LDADD = \
4552 libshared.la
4553 endif
4554
4555 EXTRA_DIST += \
4556 units/systemd-backlight@.service.in
4557
4558 # ------------------------------------------------------------------------------
4559 if ENABLE_RFKILL
4560 rootlibexec_PROGRAMS += \
4561 systemd-rfkill
4562
4563 nodist_systemunit_DATA += \
4564 units/systemd-rfkill.service
4565
4566 dist_systemunit_DATA += \
4567 units/systemd-rfkill.socket
4568
4569 systemd_rfkill_SOURCES = \
4570 src/rfkill/rfkill.c
4571
4572 systemd_rfkill_LDADD = \
4573 libshared.la
4574 endif
4575
4576 EXTRA_DIST += \
4577 units/systemd-rfkill.service.in
4578
4579 # ------------------------------------------------------------------------------
4580 if HAVE_LIBCRYPTSETUP
4581 rootlibexec_PROGRAMS += \
4582 systemd-cryptsetup
4583
4584 systemgenerator_PROGRAMS += \
4585 systemd-cryptsetup-generator
4586
4587 dist_systemunit_DATA += \
4588 units/cryptsetup.target \
4589 units/cryptsetup-pre.target
4590
4591 systemd_cryptsetup_SOURCES = \
4592 src/cryptsetup/cryptsetup.c
4593
4594 systemd_cryptsetup_CFLAGS = \
4595 $(AM_CFLAGS) \
4596 $(LIBCRYPTSETUP_CFLAGS)
4597
4598 systemd_cryptsetup_LDADD = \
4599 libshared.la \
4600 $(LIBCRYPTSETUP_LIBS)
4601
4602 systemd_cryptsetup_generator_SOURCES = \
4603 src/cryptsetup/cryptsetup-generator.c
4604
4605 systemd_cryptsetup_generator_LDADD = \
4606 libshared.la
4607
4608 SYSINIT_TARGET_WANTS += \
4609 cryptsetup.target
4610
4611 endif
4612
4613 # ------------------------------------------------------------------------------
4614 if ENABLE_HOSTNAMED
4615 systemd_hostnamed_SOURCES = \
4616 src/hostname/hostnamed.c
4617
4618 systemd_hostnamed_LDADD = \
4619 libshared.la
4620
4621 rootlibexec_PROGRAMS += \
4622 systemd-hostnamed
4623
4624 nodist_systemunit_DATA += \
4625 units/systemd-hostnamed.service
4626
4627 dist_systemunit_DATA_busnames += \
4628 units/org.freedesktop.hostname1.busname
4629
4630 dist_dbuspolicy_DATA += \
4631 src/hostname/org.freedesktop.hostname1.conf
4632
4633 dist_dbussystemservice_DATA += \
4634 src/hostname/org.freedesktop.hostname1.service
4635
4636 polkitpolicy_files += \
4637 src/hostname/org.freedesktop.hostname1.policy
4638
4639 SYSTEM_UNIT_ALIASES += \
4640 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4641
4642 BUSNAMES_TARGET_WANTS += \
4643 org.freedesktop.hostname1.busname
4644
4645 hostnamectl_SOURCES = \
4646 src/hostname/hostnamectl.c
4647
4648 hostnamectl_LDADD = \
4649 libshared.la
4650
4651 bin_PROGRAMS += \
4652 hostnamectl
4653
4654 if ENABLE_BASH_COMPLETION
4655 dist_bashcompletion_DATA += \
4656 shell-completion/bash/hostnamectl
4657 endif
4658
4659 if ENABLE_ZSH_COMPLETION
4660 dist_zshcompletion_DATA += \
4661 shell-completion/zsh/_hostnamectl
4662 endif
4663 endif
4664
4665 polkitpolicy_in_files += \
4666 src/hostname/org.freedesktop.hostname1.policy.in
4667
4668 EXTRA_DIST += \
4669 units/systemd-hostnamed.service.in
4670
4671 # ------------------------------------------------------------------------------
4672 dist_systemunit_DATA_busnames += \
4673 units/org.freedesktop.systemd1.busname
4674
4675 BUSNAMES_TARGET_WANTS += \
4676 org.freedesktop.systemd1.busname
4677
4678 # ------------------------------------------------------------------------------
4679 if ENABLE_LOCALED
4680 systemd_localed_SOURCES = \
4681 src/locale/localed.c
4682
4683 systemd_localed_LDADD = \
4684 libshared.la \
4685 $(XKBCOMMON_LIBS)
4686
4687 systemd_localed_CFLAGS = \
4688 $(AM_CFLAGS) \
4689 $(XKBCOMMON_CFLAGS)
4690
4691 nodist_systemunit_DATA += \
4692 units/systemd-localed.service
4693
4694 dist_systemunit_DATA_busnames += \
4695 units/org.freedesktop.locale1.busname
4696
4697 rootlibexec_PROGRAMS += \
4698 systemd-localed
4699
4700 dist_dbuspolicy_DATA += \
4701 src/locale/org.freedesktop.locale1.conf
4702
4703 dist_dbussystemservice_DATA += \
4704 src/locale/org.freedesktop.locale1.service
4705
4706 polkitpolicy_files += \
4707 src/locale/org.freedesktop.locale1.policy
4708
4709 SYSTEM_UNIT_ALIASES += \
4710 systemd-localed.service dbus-org.freedesktop.locale1.service
4711
4712 BUSNAMES_TARGET_WANTS += \
4713 org.freedesktop.locale1.busname
4714
4715 dist_pkgdata_DATA = \
4716 src/locale/kbd-model-map \
4717 src/locale/language-fallback-map
4718
4719 localectl_SOURCES = \
4720 src/locale/localectl.c
4721
4722 localectl_LDADD = \
4723 libshared.la
4724
4725 bin_PROGRAMS += \
4726 localectl
4727
4728 if ENABLE_BASH_COMPLETION
4729 dist_bashcompletion_DATA += \
4730 shell-completion/bash/localectl
4731 endif
4732
4733 if ENABLE_ZSH_COMPLETION
4734 dist_zshcompletion_DATA += \
4735 shell-completion/zsh/_localectl
4736 endif
4737 endif
4738
4739 .PHONY: update-kbd-model-map
4740
4741 polkitpolicy_in_files += \
4742 src/locale/org.freedesktop.locale1.policy.in
4743
4744 EXTRA_DIST += \
4745 units/systemd-localed.service.in
4746
4747 # ------------------------------------------------------------------------------
4748 if ENABLE_TIMEDATED
4749 systemd_timedated_SOURCES = \
4750 src/timedate/timedated.c
4751
4752 systemd_timedated_LDADD = \
4753 libshared.la
4754
4755 rootlibexec_PROGRAMS += \
4756 systemd-timedated
4757
4758 dist_dbussystemservice_DATA += \
4759 src/timedate/org.freedesktop.timedate1.service
4760
4761 dist_dbuspolicy_DATA += \
4762 src/timedate/org.freedesktop.timedate1.conf
4763
4764 nodist_systemunit_DATA += \
4765 units/systemd-timedated.service
4766
4767 dist_systemunit_DATA_busnames += \
4768 units/org.freedesktop.timedate1.busname
4769
4770 polkitpolicy_files += \
4771 src/timedate/org.freedesktop.timedate1.policy
4772
4773 SYSTEM_UNIT_ALIASES += \
4774 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4775
4776 BUSNAMES_TARGET_WANTS += \
4777 org.freedesktop.timedate1.busname
4778
4779 timedatectl_SOURCES = \
4780 src/timedate/timedatectl.c
4781
4782 timedatectl_LDADD = \
4783 libshared.la
4784
4785 bin_PROGRAMS += \
4786 timedatectl
4787
4788 if ENABLE_BASH_COMPLETION
4789 dist_bashcompletion_DATA += \
4790 shell-completion/bash/timedatectl
4791 endif
4792
4793 if ENABLE_ZSH_COMPLETION
4794 dist_zshcompletion_DATA += \
4795 shell-completion/zsh/_timedatectl
4796 endif
4797 endif
4798
4799 polkitpolicy_in_files += \
4800 src/timedate/org.freedesktop.timedate1.policy.in
4801
4802 EXTRA_DIST += \
4803 units/systemd-timedated.service.in
4804
4805 # ------------------------------------------------------------------------------
4806 if ENABLE_TIMESYNCD
4807 systemd_timesyncd_SOURCES = \
4808 src/timesync/timesyncd.c \
4809 src/timesync/timesyncd-manager.c \
4810 src/timesync/timesyncd-manager.h \
4811 src/timesync/timesyncd-conf.c \
4812 src/timesync/timesyncd-conf.h \
4813 src/timesync/timesyncd-server.c \
4814 src/timesync/timesyncd-server.h
4815
4816 nodist_systemd_timesyncd_SOURCES = \
4817 src/timesync/timesyncd-gperf.c
4818
4819 gperf_gperf_sources += \
4820 src/timesync/timesyncd-gperf.gperf
4821
4822 systemd_timesyncd_LDADD = \
4823 libsystemd-network.la \
4824 libshared.la
4825
4826 rootlibexec_PROGRAMS += \
4827 systemd-timesyncd
4828
4829 nodist_systemunit_DATA += \
4830 units/systemd-timesyncd.service
4831
4832 GENERAL_ALIASES += \
4833 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
4834
4835 EXTRA_DIST += \
4836 units/systemd-timesyncd.service.in
4837
4838 nodist_pkgsysconf_DATA += \
4839 src/timesync/timesyncd.conf
4840
4841 EXTRA_DIST += \
4842 src/timesync/timesyncd.conf.in
4843 endif
4844
4845 # ------------------------------------------------------------------------------
4846 if HAVE_MYHOSTNAME
4847 libnss_myhostname_la_SOURCES = \
4848 src/nss-myhostname/nss-myhostname.sym \
4849 src/nss-myhostname/nss-myhostname.c
4850
4851 libnss_myhostname_la_LDFLAGS = \
4852 $(AM_LDFLAGS) \
4853 -module \
4854 -export-dynamic \
4855 -avoid-version \
4856 -shared \
4857 -shrext .so.2 \
4858 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
4859
4860 libnss_myhostname_la_LIBADD = \
4861 libshared.la
4862
4863 lib_LTLIBRARIES += \
4864 libnss_myhostname.la
4865 endif
4866
4867 # ------------------------------------------------------------------------------
4868 if ENABLE_MACHINED
4869 systemd_machined_SOURCES = \
4870 src/machine/machined.c \
4871 src/machine/machined.h
4872
4873 systemd_machined_LDADD = \
4874 libmachine-core.la
4875
4876 rootlibexec_PROGRAMS += \
4877 systemd-machined
4878
4879 libmachine_core_la_SOURCES = \
4880 src/machine/machine.c \
4881 src/machine/machine.h \
4882 src/machine/machined-dbus.c \
4883 src/machine/machine-dbus.c \
4884 src/machine/machine-dbus.h \
4885 src/machine/image-dbus.c \
4886 src/machine/image-dbus.h
4887
4888 libmachine_core_la_LIBADD = \
4889 libshared.la
4890
4891 noinst_LTLIBRARIES += \
4892 libmachine-core.la
4893
4894 machinectl_SOURCES = \
4895 src/machine/machinectl.c
4896
4897 machinectl_LDADD = \
4898 libshared.la
4899
4900 rootbin_PROGRAMS += \
4901 machinectl
4902
4903 if ENABLE_BASH_COMPLETION
4904 dist_bashcompletion_DATA += \
4905 shell-completion/bash/machinectl
4906 endif
4907
4908 test_machine_tables_SOURCES = \
4909 src/machine/test-machine-tables.c
4910
4911 test_machine_tables_LDADD = \
4912 libmachine-core.la
4913
4914 tests += \
4915 test-machine-tables
4916
4917 nodist_systemunit_DATA += \
4918 units/systemd-machined.service
4919
4920 dist_systemunit_DATA += \
4921 units/machine.slice
4922
4923 dist_systemunit_DATA_busnames += \
4924 units/org.freedesktop.machine1.busname
4925
4926 dist_dbussystemservice_DATA += \
4927 src/machine/org.freedesktop.machine1.service
4928
4929 dist_dbuspolicy_DATA += \
4930 src/machine/org.freedesktop.machine1.conf
4931
4932 polkitpolicy_files += \
4933 src/machine/org.freedesktop.machine1.policy
4934
4935 if ENABLE_ZSH_COMPLETION
4936 dist_zshcompletion_DATA += \
4937 shell-completion/zsh/_machinectl \
4938 shell-completion/zsh/_sd_machines
4939 endif
4940
4941 SYSTEM_UNIT_ALIASES += \
4942 systemd-machined.service dbus-org.freedesktop.machine1.service
4943
4944 BUSNAMES_TARGET_WANTS += \
4945 org.freedesktop.machine1.busname
4946
4947 libnss_mymachines_la_SOURCES = \
4948 src/nss-mymachines/nss-mymachines.sym \
4949 src/nss-mymachines/nss-mymachines.c
4950
4951 libnss_mymachines_la_LDFLAGS = \
4952 $(AM_LDFLAGS) \
4953 -module \
4954 -export-dynamic \
4955 -avoid-version \
4956 -shared \
4957 -shrext .so.2 \
4958 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
4959
4960 libnss_mymachines_la_LIBADD = \
4961 libshared.la
4962
4963 lib_LTLIBRARIES += \
4964 libnss_mymachines.la
4965
4966 endif
4967
4968 polkitpolicy_in_files += \
4969 src/machine/org.freedesktop.machine1.policy.in
4970
4971 EXTRA_DIST += \
4972 units/systemd-machined.service.in
4973
4974 # ------------------------------------------------------------------------------
4975 if ENABLE_IMPORTD
4976
4977 if HAVE_LIBCURL
4978 if HAVE_XZ
4979 if HAVE_ZLIB
4980 if HAVE_BZIP2
4981 if HAVE_GCRYPT
4982
4983 rootlibexec_PROGRAMS += \
4984 systemd-importd \
4985 systemd-pull \
4986 systemd-import \
4987 systemd-export
4988
4989 systemd_importd_SOURCES = \
4990 src/import/importd.c
4991
4992 systemd_importd_CFLAGS = \
4993 $(AM_CFLAGS) \
4994 -D SYSTEMD_PULL_PATH=\"$(rootlibexecdir)/systemd-pull\" \
4995 -D SYSTEMD_IMPORT_PATH=\"$(rootlibexecdir)/systemd-import\" \
4996 -D SYSTEMD_EXPORT_PATH=\"$(rootlibexecdir)/systemd-export\"
4997
4998 systemd_importd_LDADD = \
4999 libshared.la
5000
5001 systemd_pull_SOURCES = \
5002 src/import/pull.c \
5003 src/import/pull-raw.c \
5004 src/import/pull-raw.h \
5005 src/import/pull-tar.c \
5006 src/import/pull-tar.h \
5007 src/import/pull-dkr.c \
5008 src/import/pull-dkr.h \
5009 src/import/pull-job.c \
5010 src/import/pull-job.h \
5011 src/import/pull-common.c \
5012 src/import/pull-common.h \
5013 src/import/import-common.c \
5014 src/import/import-common.h \
5015 src/import/import-compress.c \
5016 src/import/import-compress.h \
5017 src/import/curl-util.c \
5018 src/import/curl-util.h \
5019 src/import/aufs-util.c \
5020 src/import/aufs-util.h \
5021 src/import/qcow2-util.c \
5022 src/import/qcow2-util.h
5023
5024 systemd_pull_CFLAGS = \
5025 $(AM_CFLAGS) \
5026 $(LIBCURL_CFLAGS) \
5027 $(XZ_CFLAGS) \
5028 $(ZLIB_CFLAGS) \
5029 $(GCRYPT_CFLAGS) \
5030 -D VENDOR_KEYRING_PATH=\"$(rootlibexecdir)/import-pubring.gpg\" \
5031 -D USER_KEYRING_PATH=\"$(pkgsysconfdir)/import-pubring.gpg\"
5032
5033 systemd_pull_LDADD = \
5034 libshared.la \
5035 $(LIBCURL_LIBS) \
5036 $(XZ_LIBS) \
5037 $(ZLIB_LIBS) \
5038 -lbz2 \
5039 $(GCRYPT_LIBS)
5040
5041 systemd_import_SOURCES = \
5042 src/import/import.c \
5043 src/import/import-raw.c \
5044 src/import/import-raw.h \
5045 src/import/import-tar.c \
5046 src/import/import-tar.h \
5047 src/import/import-common.c \
5048 src/import/import-common.h \
5049 src/import/import-compress.c \
5050 src/import/import-compress.h \
5051 src/import/qcow2-util.c \
5052 src/import/qcow2-util.h
5053
5054 systemd_import_CFLAGS = \
5055 $(AM_CFLAGS) \
5056 $(XZ_CFLAGS) \
5057 $(ZLIB_CFLAGS)
5058
5059 systemd_import_LDADD = \
5060 libshared.la \
5061 $(XZ_LIBS) \
5062 $(ZLIB_LIBS) \
5063 -lbz2
5064
5065 systemd_export_SOURCES = \
5066 src/import/export.c \
5067 src/import/export-tar.c \
5068 src/import/export-tar.h \
5069 src/import/export-raw.c \
5070 src/import/export-raw.h \
5071 src/import/import-common.c \
5072 src/import/import-common.h \
5073 src/import/import-compress.c \
5074 src/import/import-compress.h
5075
5076 systemd_export_CFLAGS = \
5077 $(AM_CFLAGS) \
5078 $(XZ_CFLAGS) \
5079 $(ZLIB_CFLAGS)
5080
5081 systemd_export_LDADD = \
5082 libshared.la \
5083 $(XZ_LIBS) \
5084 $(ZLIB_LIBS) \
5085 -lbz2
5086
5087 dist_rootlibexec_DATA = \
5088 src/import/import-pubring.gpg
5089
5090 nodist_systemunit_DATA += \
5091 units/systemd-importd.service
5092
5093 dist_systemunit_DATA_busnames += \
5094 units/org.freedesktop.import1.busname
5095
5096 BUSNAMES_TARGET_WANTS += \
5097 org.freedesktop.import1.busname
5098
5099 SYSTEM_UNIT_ALIASES += \
5100 systemd-importd.service dbus-org.freedesktop.import1.service
5101
5102 dist_dbussystemservice_DATA += \
5103 src/import/org.freedesktop.import1.service
5104
5105 dist_dbuspolicy_DATA += \
5106 src/import/org.freedesktop.import1.conf
5107
5108 polkitpolicy_files += \
5109 src/import/org.freedesktop.import1.policy
5110
5111 manual_tests += \
5112 test-qcow2
5113
5114 test_qcow2_SOURCES = \
5115 src/import/test-qcow2.c \
5116 src/import/qcow2-util.c \
5117 src/import/qcow2-util.h
5118
5119 test_qcow2_CFLAGS = \
5120 $(AM_CFLAGS) \
5121 $(ZLIB_CFLAGS)
5122
5123 test_qcow2_LDADD = \
5124 libshared.la \
5125 $(ZLIB_LIBS)
5126
5127 endif
5128 endif
5129 endif
5130 endif
5131 endif
5132
5133 endif
5134
5135 polkitpolicy_in_files += \
5136 src/import/org.freedesktop.import1.policy.in
5137
5138 EXTRA_DIST += \
5139 units/systemd-importd.service.in
5140
5141
5142 # ------------------------------------------------------------------------------
5143 if ENABLE_RESOLVED
5144 if HAVE_GCRYPT
5145
5146 systemd_resolved_SOURCES = \
5147 src/resolve/resolved.c \
5148 src/resolve/resolved-manager.c \
5149 src/resolve/resolved-manager.h \
5150 src/resolve/resolved-conf.c \
5151 src/resolve/resolved-conf.h \
5152 src/resolve/resolved-resolv-conf.c \
5153 src/resolve/resolved-resolv-conf.h \
5154 src/resolve/resolved-bus.c \
5155 src/resolve/resolved-bus.h \
5156 src/resolve/resolved-link.h \
5157 src/resolve/resolved-link.c \
5158 src/resolve/resolved-llmnr.h \
5159 src/resolve/resolved-llmnr.c \
5160 src/resolve/resolved-def.h \
5161 src/resolve/resolved-dns-rr.h \
5162 src/resolve/resolved-dns-rr.c \
5163 src/resolve/resolved-dns-question.h \
5164 src/resolve/resolved-dns-question.c \
5165 src/resolve/resolved-dns-answer.h \
5166 src/resolve/resolved-dns-answer.c \
5167 src/resolve/resolved-dns-packet.h \
5168 src/resolve/resolved-dns-packet.c \
5169 src/resolve/resolved-dns-query.h \
5170 src/resolve/resolved-dns-query.c \
5171 src/resolve/resolved-dns-transaction.h \
5172 src/resolve/resolved-dns-transaction.c \
5173 src/resolve/resolved-dns-scope.h \
5174 src/resolve/resolved-dns-scope.c \
5175 src/resolve/resolved-dns-server.h \
5176 src/resolve/resolved-dns-server.c \
5177 src/resolve/resolved-dns-search-domain.h \
5178 src/resolve/resolved-dns-search-domain.c \
5179 src/resolve/resolved-dns-cache.h \
5180 src/resolve/resolved-dns-cache.c \
5181 src/resolve/resolved-dns-zone.h \
5182 src/resolve/resolved-dns-zone.c \
5183 src/resolve/resolved-dns-stream.h \
5184 src/resolve/resolved-dns-stream.c \
5185 src/resolve/resolved-dns-dnssec.h \
5186 src/resolve/resolved-dns-dnssec.c \
5187 src/resolve/resolved-dns-trust-anchor.h \
5188 src/resolve/resolved-dns-trust-anchor.c \
5189 src/resolve/dns-type.c \
5190 src/resolve/dns-type.h
5191
5192 nodist_systemd_resolved_SOURCES = \
5193 src/resolve/dns_type-from-name.h \
5194 src/resolve/dns_type-to-name.h \
5195 src/resolve/resolved-gperf.c
5196
5197 gperf_gperf_sources += \
5198 src/resolve/resolved-gperf.gperf
5199
5200 gperf_txt_sources += \
5201 src/resolve/dns_type-list.txt
5202
5203 systemd_resolved_LDADD = \
5204 libsystemd-network.la \
5205 libshared.la
5206
5207 rootlibexec_PROGRAMS += \
5208 systemd-resolved
5209
5210 nodist_systemunit_DATA += \
5211 units/systemd-resolved.service
5212
5213 dist_systemunit_DATA_busnames += \
5214 units/org.freedesktop.resolve1.busname
5215
5216 dist_dbuspolicy_DATA += \
5217 src/resolve/org.freedesktop.resolve1.conf
5218
5219 dist_dbussystemservice_DATA += \
5220 src/resolve/org.freedesktop.resolve1.service
5221
5222 SYSTEM_UNIT_ALIASES += \
5223 systemd-resolved.service dbus-org.freedesktop.resolve1.service
5224
5225 BUSNAMES_TARGET_WANTS += \
5226 org.freedesktop.resolve1.busname
5227
5228 GENERAL_ALIASES += \
5229 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
5230
5231 nodist_pkgsysconf_DATA += \
5232 src/resolve/resolved.conf
5233
5234 libnss_resolve_la_SOURCES = \
5235 src/nss-resolve/nss-resolve.sym \
5236 src/nss-resolve/nss-resolve.c
5237
5238 libnss_resolve_la_LDFLAGS = \
5239 $(AM_LDFLAGS) \
5240 -module \
5241 -export-dynamic \
5242 -avoid-version \
5243 -shared \
5244 -shrext .so.2 \
5245 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
5246
5247 libnss_resolve_la_LIBADD = \
5248 libshared.la \
5249 -ldl
5250
5251 lib_LTLIBRARIES += \
5252 libnss_resolve.la
5253
5254 systemd_resolve_host_SOURCES = \
5255 src/resolve-host/resolve-host.c \
5256 src/resolve/resolved-dns-packet.c \
5257 src/resolve/resolved-dns-packet.h \
5258 src/resolve/resolved-dns-rr.c \
5259 src/resolve/resolved-dns-rr.h \
5260 src/resolve/resolved-dns-answer.c \
5261 src/resolve/resolved-dns-answer.h \
5262 src/resolve/resolved-dns-question.c \
5263 src/resolve/resolved-dns-question.h \
5264 src/resolve/dns-type.c \
5265 src/resolve/dns-type.h
5266
5267 nodist_systemd_resolve_host_SOURCES = \
5268 src/resolve/dns_type-from-name.h \
5269 src/resolve/dns_type-to-name.h
5270
5271 systemd_resolve_host_LDADD = \
5272 libshared.la
5273
5274 rootlibexec_PROGRAMS += \
5275 systemd-resolve-host
5276
5277 tests += \
5278 test-dns-domain \
5279 test-dnssec
5280
5281 test_dnssec_SOURCES = \
5282 src/resolve/test-dnssec.c \
5283 src/resolve/resolved-dns-packet.c \
5284 src/resolve/resolved-dns-packet.h \
5285 src/resolve/resolved-dns-rr.c \
5286 src/resolve/resolved-dns-rr.h \
5287 src/resolve/resolved-dns-answer.c \
5288 src/resolve/resolved-dns-answer.h \
5289 src/resolve/resolved-dns-question.c \
5290 src/resolve/resolved-dns-question.h \
5291 src/resolve/resolved-dns-dnssec.c \
5292 src/resolve/resolved-dns-dnssec.h \
5293 src/resolve/dns-type.c \
5294 src/resolve/dns-type.h
5295
5296 test_dnssec_LDADD = \
5297 libshared.la
5298
5299 endif
5300 endif
5301
5302 EXTRA_DIST += \
5303 units/systemd-resolved.service.m4.in \
5304 src/resolve/resolved.conf.in
5305
5306 # ------------------------------------------------------------------------------
5307 if ENABLE_NETWORKD
5308 rootlibexec_PROGRAMS += \
5309 systemd-networkd
5310
5311 systemd_networkd_SOURCES = \
5312 src/network/networkd.c
5313
5314 systemd_networkd_LDADD = \
5315 libnetworkd-core.la
5316
5317 if HAVE_LIBIPTC
5318 systemd_networkd_LDADD += \
5319 libfirewall.la
5320 endif
5321
5322 noinst_LTLIBRARIES += \
5323 libnetworkd-core.la
5324
5325 libnetworkd_core_la_CFLAGS = \
5326 $(AM_CFLAGS)
5327
5328 libnetworkd_core_la_SOURCES = \
5329 src/libsystemd-network/network-internal.h \
5330 src/network/networkd.h \
5331 src/network/networkd-link.h \
5332 src/network/networkd-link.c \
5333 src/network/networkd-netdev.h \
5334 src/network/networkd-netdev.c \
5335 src/network/networkd-netdev-tunnel.h \
5336 src/network/networkd-netdev-tunnel.c \
5337 src/network/networkd-netdev-veth.h \
5338 src/network/networkd-netdev-veth.c \
5339 src/network/networkd-netdev-vxlan.h \
5340 src/network/networkd-netdev-vxlan.c \
5341 src/network/networkd-netdev-vlan.h \
5342 src/network/networkd-netdev-vlan.c \
5343 src/network/networkd-netdev-macvlan.h \
5344 src/network/networkd-netdev-macvlan.c \
5345 src/network/networkd-netdev-ipvlan.h \
5346 src/network/networkd-netdev-ipvlan.c \
5347 src/network/networkd-netdev-dummy.h \
5348 src/network/networkd-netdev-dummy.c \
5349 src/network/networkd-netdev-tuntap.h \
5350 src/network/networkd-netdev-tuntap.c \
5351 src/network/networkd-netdev-bond.h \
5352 src/network/networkd-netdev-bond.c \
5353 src/network/networkd-netdev-bridge.h \
5354 src/network/networkd-netdev-bridge.c \
5355 src/network/networkd-link-bus.c \
5356 src/network/networkd-ipv4ll.c \
5357 src/network/networkd-dhcp4.c \
5358 src/network/networkd-dhcp6.c \
5359 src/network/networkd-ndisc.c \
5360 src/network/networkd-network.h \
5361 src/network/networkd-network.c \
5362 src/network/networkd-network-bus.c \
5363 src/network/networkd-address.h \
5364 src/network/networkd-address.c \
5365 src/network/networkd-route.h \
5366 src/network/networkd-route.c \
5367 src/network/networkd-manager.c \
5368 src/network/networkd-manager-bus.c \
5369 src/network/networkd-fdb.h \
5370 src/network/networkd-fdb.c \
5371 src/network/networkd-address-pool.h \
5372 src/network/networkd-address-pool.c \
5373 src/network/networkd-util.h \
5374 src/network/networkd-util.c
5375
5376 nodist_libnetworkd_core_la_SOURCES = \
5377 src/network/networkd-network-gperf.c \
5378 src/network/networkd-netdev-gperf.c
5379
5380 libnetworkd_core_la_LIBADD = \
5381 libsystemd-network.la \
5382 libshared.la
5383
5384 rootlibexec_PROGRAMS += \
5385 systemd-networkd-wait-online
5386
5387 systemd_networkd_wait_online_CFLAGS = \
5388 $(AM_CFLAGS)
5389
5390 systemd_networkd_wait_online_SOURCES = \
5391 src/libsystemd-network/network-internal.h \
5392 src/network/networkd-wait-online.h \
5393 src/network/networkd-wait-online-link.h \
5394 src/network/networkd-wait-online.c \
5395 src/network/networkd-wait-online-manager.c \
5396 src/network/networkd-wait-online-link.c
5397
5398 systemd_networkd_wait_online_LDADD = \
5399 libsystemd-network.la \
5400 libshared.la
5401
5402 rootbin_PROGRAMS += \
5403 networkctl
5404
5405 networkctl_SOURCES = \
5406 src/network/networkctl.c
5407
5408 networkctl_LDADD = \
5409 libshared.la \
5410 libsystemd-network.la
5411
5412 if ENABLE_BASH_COMPLETION
5413 dist_bashcompletion_DATA += \
5414 shell-completion/bash/networkctl
5415 endif
5416
5417 test_network_SOURCES = \
5418 src/network/test-network.c
5419
5420 test_network_LDADD = \
5421 libnetworkd-core.la
5422
5423 if HAVE_LIBIPTC
5424 test_network_LDADD += \
5425 libfirewall.la
5426 endif
5427
5428 test_network_tables_SOURCES = \
5429 src/network/test-network-tables.c \
5430 src/shared/test-tables.h
5431
5432 test_network_tables_LDADD = \
5433 libnetworkd-core.la \
5434 libudev-core.la
5435
5436 if HAVE_LIBIPTC
5437 test_network_tables_LDADD += \
5438 libfirewall.la
5439 endif
5440
5441 tests += \
5442 test-network \
5443 test-network-tables
5444
5445 dist_systemunit_DATA += \
5446 units/systemd-networkd.socket
5447
5448 nodist_systemunit_DATA += \
5449 units/systemd-networkd.service \
5450 units/systemd-networkd-wait-online.service
5451
5452 dist_systemunit_DATA_busnames += \
5453 units/org.freedesktop.network1.busname
5454
5455 dist_dbussystemservice_DATA += \
5456 src/network/org.freedesktop.network1.service
5457
5458 dist_dbuspolicy_DATA += \
5459 src/network/org.freedesktop.network1.conf
5460
5461 GENERAL_ALIASES += \
5462 $(systemunitdir)/systemd-networkd.socket $(pkgsysconfdir)/system/sockets.target.wants/systemd-networkd.socket \
5463 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5464 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5465
5466 SYSTEM_UNIT_ALIASES += \
5467 systemd-networkd.service dbus-org.freedesktop.network1.service
5468
5469 BUSNAMES_TARGET_WANTS += \
5470 org.freedesktop.network1.busname
5471
5472 gperf_gperf_sources += \
5473 src/network/networkd-network-gperf.gperf \
5474 src/network/networkd-netdev-gperf.gperf
5475 endif
5476
5477 EXTRA_DIST += \
5478 units/systemd-networkd.service.m4.in \
5479 units/systemd-networkd-wait-online.service.in \
5480 test/networkd-test.py
5481
5482 # ------------------------------------------------------------------------------
5483 if ENABLE_LOGIND
5484 systemd_logind_SOURCES = \
5485 src/login/logind.c \
5486 src/login/logind.h
5487
5488 nodist_systemd_logind_SOURCES = \
5489 src/login/logind-gperf.c
5490
5491 systemd_logind_LDADD = \
5492 liblogind-core.la
5493
5494 liblogind_core_la_SOURCES = \
5495 src/login/logind-core.c \
5496 src/login/logind-device.c \
5497 src/login/logind-device.h \
5498 src/login/logind-button.c \
5499 src/login/logind-button.h \
5500 src/login/logind-action.c \
5501 src/login/logind-action.h \
5502 src/login/logind-seat.c \
5503 src/login/logind-seat.h \
5504 src/login/logind-session.c \
5505 src/login/logind-session.h \
5506 src/login/logind-session-device.c \
5507 src/login/logind-session-device.h \
5508 src/login/logind-user.c \
5509 src/login/logind-user.h \
5510 src/login/logind-inhibit.c \
5511 src/login/logind-inhibit.h \
5512 src/login/logind-dbus.c \
5513 src/login/logind-session-dbus.c \
5514 src/login/logind-seat-dbus.c \
5515 src/login/logind-user-dbus.c \
5516 src/login/logind-utmp.c \
5517 src/login/logind-acl.h
5518
5519 liblogind_core_la_LIBADD = \
5520 libshared.la
5521
5522 if HAVE_ACL
5523 liblogind_core_la_SOURCES += \
5524 src/login/logind-acl.c
5525 endif
5526
5527 noinst_LTLIBRARIES += \
5528 liblogind-core.la
5529
5530 rootlibexec_PROGRAMS += \
5531 systemd-logind
5532
5533 loginctl_SOURCES = \
5534 src/login/loginctl.c \
5535 src/login/sysfs-show.h \
5536 src/login/sysfs-show.c
5537
5538 loginctl_LDADD = \
5539 libshared.la
5540
5541 rootbin_PROGRAMS += \
5542 loginctl
5543
5544 if ENABLE_BASH_COMPLETION
5545 dist_bashcompletion_DATA += \
5546 shell-completion/bash/loginctl
5547 endif
5548
5549 if ENABLE_ZSH_COMPLETION
5550 dist_zshcompletion_DATA += \
5551 shell-completion/zsh/_loginctl \
5552 shell-completion/zsh/_systemd-inhibit
5553 endif
5554
5555 systemd_inhibit_SOURCES = \
5556 src/login/inhibit.c
5557
5558 systemd_inhibit_LDADD = \
5559 libshared.la
5560
5561 rootbin_PROGRAMS += \
5562 systemd-inhibit
5563
5564 test_login_SOURCES = \
5565 src/libsystemd/sd-login/test-login.c
5566
5567 test_login_LDADD = \
5568 libshared.la
5569
5570 test_login_shared_SOURCES = \
5571 src/login/test-login-shared.c
5572
5573 test_login_shared_LDADD = \
5574 libshared.la
5575
5576 test_inhibit_SOURCES = \
5577 src/login/test-inhibit.c
5578
5579 test_inhibit_LDADD = \
5580 libshared.la
5581
5582 test_login_tables_SOURCES = \
5583 src/login/test-login-tables.c
5584
5585 test_login_tables_LDADD = \
5586 liblogind-core.la
5587
5588 manual_tests += \
5589 test-login \
5590 test-inhibit
5591
5592 tests += \
5593 test-login-tables \
5594 test-login-shared
5595
5596 if HAVE_PAM
5597 pam_systemd_la_SOURCES = \
5598 src/login/pam_systemd.sym \
5599 src/login/pam_systemd.c
5600
5601 pam_systemd_la_CFLAGS = \
5602 $(AM_CFLAGS) \
5603 $(PAM_CFLAGS)
5604
5605 pam_systemd_la_LDFLAGS = \
5606 $(AM_LDFLAGS) \
5607 -module \
5608 -export-dynamic \
5609 -avoid-version \
5610 -shared \
5611 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5612
5613 pam_systemd_la_LIBADD = \
5614 libshared.la \
5615 $(PAM_LIBS)
5616
5617 pamlib_LTLIBRARIES = \
5618 pam_systemd.la
5619
5620 dist_pamconf_DATA = \
5621 src/login/systemd-user
5622
5623 EXTRA_DIST += \
5624 src/login/systemd-user.m4
5625 endif
5626
5627 nodist_systemunit_DATA += \
5628 units/systemd-logind.service
5629
5630 dist_systemunit_DATA += \
5631 units/user.slice
5632
5633 dist_systemunit_DATA_busnames += \
5634 units/org.freedesktop.login1.busname
5635
5636 dist_dbussystemservice_DATA += \
5637 src/login/org.freedesktop.login1.service
5638
5639 dist_dbuspolicy_DATA += \
5640 src/login/org.freedesktop.login1.conf
5641
5642 dist_pkgsysconf_DATA += \
5643 src/login/logind.conf
5644
5645 polkitpolicy_files += \
5646 src/login/org.freedesktop.login1.policy
5647
5648 INSTALL_DIRS += \
5649 $(systemdstatedir)
5650
5651 MULTI_USER_TARGET_WANTS += \
5652 systemd-logind.service
5653
5654 SYSTEM_UNIT_ALIASES += \
5655 systemd-logind.service dbus-org.freedesktop.login1.service
5656
5657 BUSNAMES_TARGET_WANTS += \
5658 org.freedesktop.login1.busname
5659
5660 dist_udevrules_DATA += \
5661 src/login/70-uaccess.rules \
5662 src/login/70-power-switch.rules
5663
5664 nodist_udevrules_DATA += \
5665 src/login/71-seat.rules \
5666 src/login/73-seat-late.rules
5667
5668 endif
5669
5670 polkitpolicy_in_files += \
5671 src/login/org.freedesktop.login1.policy.in
5672
5673 gperf_gperf_sources += \
5674 src/login/logind-gperf.gperf
5675
5676 EXTRA_DIST += \
5677 src/login/71-seat.rules.in \
5678 src/login/73-seat-late.rules.in \
5679 units/systemd-logind.service.in
5680
5681 # ------------------------------------------------------------------------------
5682 if HAVE_PAM
5683
5684 systemd_user_sessions_SOURCES = \
5685 src/user-sessions/user-sessions.c
5686
5687 systemd_user_sessions_LDADD = \
5688 libshared.la
5689
5690 rootlibexec_PROGRAMS += \
5691 systemd-user-sessions
5692
5693 nodist_systemunit_DATA += \
5694 units/systemd-user-sessions.service
5695
5696 MULTI_USER_TARGET_WANTS += \
5697 systemd-user-sessions.service
5698
5699 endif
5700
5701 EXTRA_DIST += \
5702 units/systemd-user-sessions.service.in
5703
5704 # ------------------------------------------------------------------------------
5705 EXTRA_DIST += \
5706 test/Makefile \
5707 test/README.testsuite \
5708 test/TEST-01-BASIC \
5709 test/TEST-01-BASIC/Makefile \
5710 test/TEST-01-BASIC/test.sh \
5711 test/TEST-02-CRYPTSETUP \
5712 test/TEST-02-CRYPTSETUP/Makefile \
5713 test/TEST-02-CRYPTSETUP/test.sh \
5714 test/TEST-03-JOBS \
5715 test/TEST-03-JOBS/Makefile \
5716 test/TEST-03-JOBS/test-jobs.sh \
5717 test/TEST-03-JOBS/test.sh \
5718 test/TEST-04-JOURNAL/Makefile \
5719 test/TEST-04-JOURNAL/test-journal.sh \
5720 test/TEST-04-JOURNAL/test.sh \
5721 test/test-functions
5722
5723 EXTRA_DIST += \
5724 test/loopy2.service \
5725 test/loopy3.service \
5726 test/loopy4.service \
5727 test/loopy.service \
5728 test/loopy.service.d \
5729 test/loopy.service.d/compat.conf
5730
5731 # ------------------------------------------------------------------------------
5732 if ENABLE_COMPAT_LIBS
5733 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
5734 $(AM_V_at)$(MKDIR_P) $(dir $@)
5735 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
5736
5737 BUILT_SOURCES += \
5738 libsystemd-journal.c \
5739 libsystemd-login.c \
5740 libsystemd-id128.c \
5741 libsystemd-daemon.c
5742
5743 nodist_libsystemd_journal_la_SOURCES = \
5744 libsystemd-journal.c
5745
5746 libsystemd_journal_la_SOURCES = \
5747 src/compat-libs/libsystemd-journal.sym
5748
5749 libsystemd_journal_la_CPPFLAGS = \
5750 $(AM_CPPFLAGS) \
5751 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5752
5753 libsystemd_journal_la_LDFLAGS = \
5754 $(AM_LDFLAGS) \
5755 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
5756 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
5757
5758 libsystemd_journal_la_LIBADD = \
5759 libsystemd-journal-internal.la \
5760 libsystemd-internal.la
5761
5762 nodist_libsystemd_login_la_SOURCES = \
5763 libsystemd-login.c
5764
5765 libsystemd_login_la_SOURCES = \
5766 src/compat-libs/libsystemd-login.sym
5767
5768 libsystemd_login_la_CPPFLAGS = \
5769 $(AM_CPPFLAGS) \
5770 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5771
5772 libsystemd_login_la_LDFLAGS = \
5773 $(AM_LDFLAGS) \
5774 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
5775 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
5776
5777 libsystemd_login_la_LIBADD = \
5778 libsystemd-internal.la
5779
5780 nodist_libsystemd_id128_la_SOURCES = \
5781 libsystemd-id128.c
5782
5783 libsystemd_id128_la_SOURCES = \
5784 src/compat-libs/libsystemd-id128.sym
5785
5786 libsystemd_id128_la_CPPFLAGS = \
5787 $(AM_CPPFLAGS) \
5788 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5789
5790 libsystemd_id128_la_LDFLAGS = \
5791 $(AM_LDFLAGS) \
5792 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
5793 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
5794
5795 libsystemd_id128_la_LIBADD = \
5796 libsystemd-internal.la
5797
5798 nodist_libsystemd_daemon_la_SOURCES = \
5799 libsystemd-daemon.c
5800
5801 libsystemd_daemon_la_SOURCES = \
5802 src/compat-libs/libsystemd-daemon.sym
5803
5804 libsystemd_daemon_la_CPPFLAGS = \
5805 $(AM_CPPFLAGS) \
5806 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5807
5808 libsystemd_daemon_la_LDFLAGS = \
5809 $(AM_LDFLAGS) \
5810 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
5811 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
5812
5813 libsystemd_daemon_la_LIBADD = \
5814 libsystemd-internal.la
5815
5816 lib_LTLIBRARIES += \
5817 libsystemd-journal.la \
5818 libsystemd-login.la \
5819 libsystemd-id128.la \
5820 libsystemd-daemon.la
5821
5822 pkgconfiglib_DATA += \
5823 src/compat-libs/libsystemd-journal.pc \
5824 src/compat-libs/libsystemd-login.pc \
5825 src/compat-libs/libsystemd-id128.pc \
5826 src/compat-libs/libsystemd-daemon.pc
5827
5828 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
5829 compat-lib-install-hook:
5830 libname=libsystemd-login.so && $(move-to-rootlibdir)
5831 libname=libsystemd-journal.so && $(move-to-rootlibdir)
5832 libname=libsystemd-id128.so && $(move-to-rootlibdir)
5833 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
5834
5835 compat-lib-uninstall-hook:
5836 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
5837 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
5838 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
5839 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
5840
5841 INSTALL_EXEC_HOOKS += compat-lib-install-hook
5842 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
5843 endif
5844
5845 EXTRA_DIST += \
5846 src/compat-libs/linkwarning.h \
5847 src/compat-libs/libsystemd-journal.pc.in \
5848 src/compat-libs/libsystemd-login.pc.in \
5849 src/compat-libs/libsystemd-id128.pc.in \
5850 src/compat-libs/libsystemd-daemon.pc.in
5851
5852 # ------------------------------------------------------------------------------
5853 substitutions = \
5854 '|rootlibexecdir=$(rootlibexecdir)|' \
5855 '|rootbindir=$(rootbindir)|' \
5856 '|bindir=$(bindir)|' \
5857 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5858 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5859 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5860 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5861 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
5862 '|pkgdatadir=$(pkgdatadir)|' \
5863 '|systemunitdir=$(systemunitdir)|' \
5864 '|userunitdir=$(userunitdir)|' \
5865 '|systempresetdir=$(systempresetdir)|' \
5866 '|userpresetdir=$(userpresetdir)|' \
5867 '|udevhwdbdir=$(udevhwdbdir)|' \
5868 '|udevrulesdir=$(udevrulesdir)|' \
5869 '|catalogdir=$(catalogdir)|' \
5870 '|tmpfilesdir=$(tmpfilesdir)|' \
5871 '|sysusersdir=$(sysusersdir)|' \
5872 '|sysctldir=$(sysctldir)|' \
5873 '|systemgeneratordir=$(systemgeneratordir)|' \
5874 '|usergeneratordir=$(usergeneratordir)|' \
5875 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
5876 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
5877 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
5878 '|PACKAGE_URL=$(PACKAGE_URL)|' \
5879 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
5880 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
5881 '|prefix=$(prefix)|' \
5882 '|exec_prefix=$(exec_prefix)|' \
5883 '|libdir=$(libdir)|' \
5884 '|includedir=$(includedir)|' \
5885 '|VERSION=$(VERSION)|' \
5886 '|rootprefix=$(rootprefix)|' \
5887 '|udevlibexecdir=$(udevlibexecdir)|' \
5888 '|SUSHELL=$(SUSHELL)|' \
5889 '|SULOGIN=$(SULOGIN)|' \
5890 '|DEBUGTTY=$(DEBUGTTY)|' \
5891 '|KILL=$(KILL)|' \
5892 '|KMOD=$(KMOD)|' \
5893 '|MOUNT_PATH=$(MOUNT_PATH)|' \
5894 '|UMOUNT_PATH=$(UMOUNT_PATH)|' \
5895 '|MKDIR_P=$(MKDIR_P)|' \
5896 '|QUOTAON=$(QUOTAON)|' \
5897 '|QUOTACHECK=$(QUOTACHECK)|' \
5898 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
5899 '|VARLOGDIR=$(varlogdir)|' \
5900 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
5901 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
5902 '|PYTHON=$(PYTHON)|' \
5903 '|NTP_SERVERS=$(NTP_SERVERS)|' \
5904 '|DNS_SERVERS=$(DNS_SERVERS)|' \
5905 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
5906 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
5907 '|TTY_GID=$(TTY_GID)|' \
5908 '|systemsleepdir=$(systemsleepdir)|' \
5909 '|systemshutdowndir=$(systemshutdowndir)|' \
5910 '|binfmtdir=$(binfmtdir)|' \
5911 '|modulesloaddir=$(modulesloaddir)|'
5912
5913 SED_PROCESS = \
5914 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
5915 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
5916 < $< > $@
5917
5918 units/%: units/%.in
5919 $(SED_PROCESS)
5920
5921 man/%: man/%.in
5922 $(SED_PROCESS)
5923
5924 sysctl.d/%: sysctl.d/%.in
5925 $(SED_PROCESS)
5926
5927 %.pc: %.pc.in
5928 $(SED_PROCESS)
5929
5930 %.conf: %.conf.in
5931 $(SED_PROCESS)
5932
5933 src/core/%.systemd: src/core/%.systemd.in
5934 $(SED_PROCESS)
5935
5936 src/%.policy.in: src/%.policy.in.in
5937 $(SED_PROCESS)
5938
5939 shell-completion/%: shell-completion/%.in
5940 $(SED_PROCESS)
5941
5942 %.rules: %.rules.in
5943 $(SED_PROCESS)
5944
5945 %.conf: %.conf.in
5946 $(SED_PROCESS)
5947
5948 %.sh: %.sh.in
5949 $(SED_PROCESS)
5950 $(AM_V_GEN)chmod +x $@
5951
5952 src/%.c: src/%.gperf
5953 $(AM_V_at)$(MKDIR_P) $(dir $@)
5954 $(AM_V_GPERF)$(GPERF) < $< > $@
5955
5956 src/%: src/%.m4
5957 $(AM_V_at)$(MKDIR_P) $(dir $@)
5958 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5959
5960 sysusers.d/%: sysusers.d/%.m4
5961 $(AM_V_at)$(MKDIR_P) $(dir $@)
5962 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5963
5964 tmpfiles.d/%: tmpfiles.d/%.m4
5965 $(AM_V_at)$(MKDIR_P) $(dir $@)
5966 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5967
5968
5969 units/%: units/%.m4
5970 $(AM_V_at)$(MKDIR_P) $(dir $@)
5971 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
5972
5973 units/user/%: units/user/%.m4
5974 $(AM_V_at)$(MKDIR_P) $(dir $@)
5975 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
5976
5977 if ENABLE_POLKIT
5978 nodist_polkitpolicy_DATA = \
5979 $(polkitpolicy_files) \
5980 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
5981 endif
5982
5983 EXTRA_DIST += \
5984 $(polkitpolicy_in_files) \
5985 $(polkitpolicy_in_in_files)
5986
5987 # ------------------------------------------------------------------------------
5988 if ENABLE_MANPAGES
5989 man/custom-entities.ent: configure.ac
5990 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
5991 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
5992 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
5993 > $@ # '
5994
5995 CLEANFILES += \
5996 man/custom-entities.ent
5997
5998 XSLTPROC_FLAGS = \
5999 --nonet \
6000 --xinclude \
6001 --stringparam man.output.quietly 1 \
6002 --stringparam funcsynopsis.style ansi \
6003 --stringparam man.authors.section.enabled 0 \
6004 --stringparam man.copyright.section.enabled 0 \
6005 --stringparam systemd.version $(VERSION) \
6006 --path '$(builddir)/man:$(srcdir)/man'
6007
6008 XSLTPROC_PROCESS_MAN = \
6009 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
6010
6011 XSLTPROC_PROCESS_HTML = \
6012 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
6013
6014 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
6015 $(XSLTPROC_PROCESS_MAN)
6016
6017 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
6018 $(XSLTPROC_PROCESS_MAN)
6019
6020 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
6021 $(XSLTPROC_PROCESS_MAN)
6022
6023 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
6024 $(XSLTPROC_PROCESS_MAN)
6025
6026 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
6027 $(XSLTPROC_PROCESS_MAN)
6028
6029 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
6030 $(XSLTPROC_PROCESS_HTML)
6031
6032 define html-alias
6033 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
6034 endef
6035
6036 endif
6037
6038 EXTRA_DIST += \
6039 man/custom-html.xsl \
6040 man/custom-man.xsl
6041
6042 # ------------------------------------------------------------------------------
6043 if HAVE_SYSV_COMPAT
6044 sysvinit_DATA = \
6045 docs/sysvinit/README
6046
6047 varlog_DATA = \
6048 docs/var-log/README
6049
6050 docs/sysvinit/README: docs/sysvinit/README.in
6051 $(SED_PROCESS)
6052
6053 docs/var-log/README: docs/var-log/README.in
6054 $(SED_PROCESS)
6055
6056 CLEANFILES += \
6057 docs/sysvinit/README \
6058 docs/var-log/README
6059 endif
6060
6061 EXTRA_DIST += \
6062 docs/sysvinit/README.in \
6063 docs/var-log/README.in
6064
6065 SOCKETS_TARGET_WANTS += \
6066 systemd-initctl.socket
6067
6068 if HAVE_UTMP
6069 if HAVE_SYSV_COMPAT
6070 MULTI_USER_TARGET_WANTS += \
6071 systemd-update-utmp-runlevel.service
6072 GRAPHICAL_TARGET_WANTS += \
6073 systemd-update-utmp-runlevel.service
6074 RESCUE_TARGET_WANTS += \
6075 systemd-update-utmp-runlevel.service
6076 endif
6077
6078 SYSINIT_TARGET_WANTS += \
6079 systemd-update-utmp.service
6080 endif
6081
6082 SYSINIT_TARGET_WANTS += \
6083 systemd-update-done.service
6084
6085 LOCAL_FS_TARGET_WANTS += \
6086 systemd-remount-fs.service \
6087 tmp.mount \
6088 var-lib-machines.mount
6089
6090 MULTI_USER_TARGET_WANTS += \
6091 getty.target \
6092 systemd-ask-password-wall.path
6093
6094 SYSINIT_TARGET_WANTS += \
6095 dev-hugepages.mount \
6096 dev-mqueue.mount \
6097 sys-kernel-config.mount \
6098 sys-kernel-debug.mount \
6099 sys-fs-fuse-connections.mount \
6100 systemd-sysctl.service \
6101 systemd-ask-password-console.path
6102
6103 if HAVE_SYSV_COMPAT
6104 SYSTEM_UNIT_ALIASES += \
6105 poweroff.target runlevel0.target \
6106 rescue.target runlevel1.target \
6107 multi-user.target runlevel2.target \
6108 multi-user.target runlevel3.target \
6109 multi-user.target runlevel4.target \
6110 graphical.target runlevel5.target \
6111 reboot.target runlevel6.target
6112 endif
6113
6114 SYSTEM_UNIT_ALIASES += \
6115 graphical.target default.target \
6116 reboot.target ctrl-alt-del.target \
6117 getty@.service autovt@.service
6118
6119 USER_UNIT_ALIASES += \
6120 $(systemunitdir)/shutdown.target shutdown.target \
6121 $(systemunitdir)/sockets.target sockets.target \
6122 $(systemunitdir)/timers.target timers.target \
6123 $(systemunitdir)/paths.target paths.target \
6124 $(systemunitdir)/bluetooth.target bluetooth.target \
6125 $(systemunitdir)/printer.target printer.target \
6126 $(systemunitdir)/sound.target sound.target \
6127 $(systemunitdir)/smartcard.target smartcard.target
6128
6129 USER_UNIT_ALIASES += \
6130 $(systemunitdir)/busnames.target busnames.target
6131
6132 GENERAL_ALIASES += \
6133 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
6134 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
6135 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
6136 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
6137
6138 if HAVE_SYSV_COMPAT
6139 INSTALL_DIRS += \
6140 $(systemunitdir)/runlevel1.target.wants \
6141 $(systemunitdir)/runlevel2.target.wants \
6142 $(systemunitdir)/runlevel3.target.wants \
6143 $(systemunitdir)/runlevel4.target.wants \
6144 $(systemunitdir)/runlevel5.target.wants
6145 endif
6146
6147 INSTALL_DIRS += \
6148 $(prefix)/lib/modules-load.d \
6149 $(sysconfdir)/modules-load.d \
6150 $(prefix)/lib/systemd/network \
6151 $(sysconfdir)/systemd/network \
6152 $(prefix)/lib/sysctl.d \
6153 $(sysconfdir)/sysctl.d \
6154 $(prefix)/lib/kernel/install.d \
6155 $(sysconfdir)/kernel/install.d \
6156 $(systemshutdowndir) \
6157 $(systemsleepdir) \
6158 $(systemgeneratordir) \
6159 $(usergeneratordir) \
6160 \
6161 $(userunitdir) \
6162 $(pkgsysconfdir)/system \
6163 $(pkgsysconfdir)/system/multi-user.target.wants \
6164 $(pkgsysconfdir)/system/getty.target.wants \
6165 $(pkgsysconfdir)/user \
6166 $(dbussessionservicedir) \
6167 $(sysconfdir)/xdg/systemd
6168
6169 install-exec-hook: $(INSTALL_EXEC_HOOKS)
6170
6171 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
6172
6173 install-data-hook: $(INSTALL_DATA_HOOKS)
6174
6175 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
6176
6177 clean-local: $(CLEAN_LOCAL_HOOKS)
6178 rm -rf $(abs_srcdir)/install-tree
6179 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
6180 $(abs_srcdir)/hwdb/iab.txt
6181
6182 DISTCHECK_CONFIGURE_FLAGS = \
6183 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
6184 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6185 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
6186 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
6187 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
6188 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
6189 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
6190 --with-rootprefix=$$dc_install_base \
6191 --enable-compat-libs
6192
6193 if HAVE_SYSV_COMPAT
6194 DISTCHECK_CONFIGURE_FLAGS += \
6195 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
6196 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
6197 else
6198 DISTCHECK_CONFIGURE_FLAGS += \
6199 --with-sysvinit-path= \
6200 --with-sysvrcnd-path=
6201 endif
6202
6203 if ENABLE_SPLIT_USR
6204 DISTCHECK_CONFIGURE_FLAGS += \
6205 --enable-split-usr
6206 else
6207 DISTCHECK_CONFIGURE_FLAGS += \
6208 --disable-split-usr
6209 endif
6210
6211 #
6212 # Require python when making dist
6213 #
6214 .PHONY: dist-check-python dist-check-compat-libs dist-check-help
6215 dist-check-python:
6216 if !HAVE_PYTHON
6217 @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
6218 @false
6219 endif
6220
6221 dist-check-compat-libs:
6222 if !ENABLE_COMPAT_LIBS
6223 @echo "*** compat-libs must be enabled in order to make dist"
6224 @false
6225 endif
6226
6227 dist-check-help: $(rootbin_PROGRAMS) $(bin_PROGRAMS)
6228 for i in $(abspath $^); do \
6229 if $$i --help | grep -v 'default:' | grep -E -q '.{80}.' ; then \
6230 echo "$(basename $$i) --help output is too wide:"; \
6231 $$i --help | awk 'length > 80' | grep -E --color=yes '.{80}'; \
6232 exit 1; \
6233 fi; done
6234
6235 dist: dist-check-python dist-check-compat-libs
6236
6237 .PHONY: hwdb-update
6238 hwdb-update:
6239 ( cd $(top_srcdir)/hwdb && \
6240 wget -O usb.ids 'http://www.linux-usb.org/usb.ids' && \
6241 wget -O pci.ids 'http://pci-ids.ucw.cz/v2.2/pci.ids' && \
6242 wget -O ma-large.txt 'http://standards.ieee.org/develop/regauth/oui/oui.txt' && \
6243 wget -O ma-medium.txt 'http://standards.ieee.org/develop/regauth/oui28/mam.txt' && \
6244 wget -O ma-small.txt 'http://standards.ieee.org/develop/regauth/oui36/oui36.txt' && \
6245 ./ids-update.pl )
6246
6247 .PHONY: built-sources
6248 built-sources: $(BUILT_SOURCES)
6249
6250 .PHONY: git-tag
6251 git-tag:
6252 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6253
6254 .PHONY: git-tar
6255 git-tar:
6256 git archive --format=tar --prefix=systemd-$(VERSION)/ HEAD | gzip > systemd-$(VERSION).tar.gz
6257
6258 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6259
6260 .PHONY: doc-sync
6261 doc-sync: all
6262 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6263
6264 .PHONY: gardel
6265 gardel:
6266 scp man/*.html gardel:public/systemd-man/
6267
6268 .PHONY: lennart-fedora
6269 lennart-fedora:
6270 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
6271
6272 .PHONY: install-tree
6273 install-tree: all
6274 rm -rf $(abs_srcdir)/install-tree
6275 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6276 tree $(abs_srcdir)/install-tree
6277
6278 # Let's run all tests of the test suite, but under valgrind. Let's
6279 # exclude the one perl script we have in there
6280 .PHONY: valgrind-tests
6281 valgrind-tests: $(TESTS)
6282 $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \
6283 if file $$f | grep -q shell; then \
6284 echo -e "$${x}Skipping non-binary $$f"; else \
6285 echo -e "$${x}Running $$f"; \
6286 libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6287 x="\n\n"; \
6288 done
6289
6290 exported-%: %
6291 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6292
6293 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6294 $(AM_V_GEN)sort -u $^ > $@
6295
6296 .PHONY: check-api-docs
6297 check-api-docs: exported man
6298 $(AM_V_GEN)for symbol in `cat exported` ; do \
6299 if test -f $(builddir)/man/$$symbol.html ; then \
6300 echo " Symbol $$symbol() is documented." ; \
6301 else \
6302 echo "‣ Symbol $$symbol() lacks documentation." ; \
6303 fi ; \
6304 done
6305
6306 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6307 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6308
6309 undefined defined: $(ALL_OBJECTS)
6310 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6311 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6312 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6313
6314 CLEANFILES += \
6315 defined \
6316 undefined
6317
6318 .PHONY: check-api-unused
6319 check-api-unused: defined undefined exported
6320 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6321
6322 .PHONY: check-includes
6323 check-includes: $(top_srcdir)/tools/check-includes.pl
6324 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6325 | xargs $(top_srcdir)/tools/check-includes.pl
6326
6327 EXTRA_DIST += \
6328 $(top_srcdir)/tools/check-includes.pl
6329
6330 # Stupid test that everything purported to be exported really is
6331 define generate-sym-test
6332 $(AM_V_at)$(MKDIR_P) $(dir $@)
6333 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6334 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6335 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6336 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6337 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6338 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6339 $(AM_V_at)printf 'return 0; }\n' >> $@
6340 endef
6341
6342 test-libsystemd-sym.c: \
6343 $(top_builddir)/src/libsystemd/libsystemd.sym \
6344 src/systemd/sd-journal.h \
6345 src/systemd/sd-daemon.h \
6346 src/systemd/sd-login.h \
6347 src/systemd/sd-bus.h \
6348 src/systemd/sd-utf8.h \
6349 src/systemd/sd-resolve.h \
6350 src/systemd/sd-path.h \
6351 src/systemd/sd-event.h
6352 $(generate-sym-test)
6353
6354 test-libudev-sym.c: \
6355 src/libudev/libudev.sym \
6356 src/udev/udev.h
6357 $(generate-sym-test)
6358
6359 nodist_test_libsystemd_sym_SOURCES = \
6360 test-libsystemd-sym.c
6361 test_libsystemd_sym_LDADD = \
6362 libsystemd.la
6363
6364 nodist_test_libudev_sym_SOURCES = \
6365 test-libudev-sym.c
6366 test_libudev_sym_CFLAGS = \
6367 $(AM_CFLAGS) \
6368 -Wno-deprecated-declarations
6369 test_libudev_sym_LDADD = \
6370 libudev.la
6371
6372 BUILT_SOURCES += \
6373 test-libsystemd-sym.c \
6374 test-libudev-sym.c
6375
6376 CLEANFILES += \
6377 test-libsystemd-sym.c \
6378 test-libudev-sym.c
6379
6380 tests += \
6381 test-libsystemd-sym \
6382 test-libudev-sym
6383
6384 .PHONY: cppcheck
6385 cppcheck:
6386 cppcheck --enable=all -q $(top_srcdir)
6387
6388 # Used to extract compile flags for YCM.
6389 print-%:
6390 @echo $($*)
6391
6392 git-contrib:
6393 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u
6394
6395 EXTRA_DIST += \
6396 tools/gdb-sd_dump_hashmaps.py
6397
6398 list-keys:
6399 gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --list-keys
6400
6401 add-key:
6402 gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --import -