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