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