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