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