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