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