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