]> git.ipfire.org Git - thirdparty/systemd.git/blob - Makefile.am
Merge pull request #2536 from vcaputo/journal-misc-cleanups
[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/nspawn/nspawn-stub-pid1.c \
2948 src/nspawn/nspawn-stub-pid1.h \
2949 src/core/mount-setup.c \
2950 src/core/mount-setup.h \
2951 src/core/loopback-setup.c \
2952 src/core/loopback-setup.h
2953
2954 nodist_systemd_nspawn_SOURCES = \
2955 src/nspawn/nspawn-gperf.c
2956
2957 gperf_gperf_sources += \
2958 src/nspawn/nspawn-gperf.gperf
2959
2960 systemd_nspawn_CFLAGS = \
2961 $(AM_CFLAGS) \
2962 $(BLKID_CFLAGS) \
2963 $(SECCOMP_CFLAGS)
2964
2965 systemd_nspawn_LDADD = \
2966 libshared.la \
2967 $(BLKID_LIBS)
2968
2969 if HAVE_LIBIPTC
2970 systemd_nspawn_LDADD += \
2971 libfirewall.la
2972 endif
2973
2974 # ------------------------------------------------------------------------------
2975 systemd_run_SOURCES = \
2976 src/run/run.c
2977
2978 systemd_run_LDADD = \
2979 libshared.la
2980
2981 # ------------------------------------------------------------------------------
2982 noinst_LTLIBRARIES += \
2983 libbus-proxy-core.la
2984
2985 libbus_proxy_core_la_SOURCES = \
2986 src/bus-proxyd/bus-xml-policy.c \
2987 src/bus-proxyd/bus-xml-policy.h \
2988 src/bus-proxyd/driver.c \
2989 src/bus-proxyd/driver.h \
2990 src/bus-proxyd/proxy.c \
2991 src/bus-proxyd/proxy.h \
2992 src/bus-proxyd/synthesize.c \
2993 src/bus-proxyd/synthesize.h
2994
2995 libbus_proxy_core_la_LIBADD = \
2996 libshared.la
2997
2998 systemd_bus_proxyd_SOURCES = \
2999 src/bus-proxyd/bus-proxyd.c
3000
3001 systemd_bus_proxyd_LDADD = \
3002 libbus-proxy-core.la \
3003 libshared.la
3004
3005 systemd_stdio_bridge_SOURCES = \
3006 src/bus-proxyd/stdio-bridge.c
3007
3008 systemd_stdio_bridge_LDADD = \
3009 libbus-proxy-core.la \
3010 libshared.la
3011
3012 nodist_systemunit_DATA += \
3013 units/systemd-bus-proxyd.service
3014
3015 dist_systemunit_DATA += \
3016 units/systemd-bus-proxyd.socket
3017
3018 nodist_userunit_DATA += \
3019 units/user/systemd-bus-proxyd.service
3020
3021 dist_userunit_DATA += \
3022 units/user/systemd-bus-proxyd.socket
3023
3024 EXTRA_DIST += \
3025 units/systemd-bus-proxyd.service.m4.in \
3026 units/user/systemd-bus-proxyd.service.in
3027
3028 if HAVE_SMACK
3029 bus-proxyd-set-cap-hook:
3030 -$(SETCAP) cap_mac_admin+ei $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd
3031
3032 INSTALL_EXEC_HOOKS += bus-proxyd-set-cap-hook
3033 endif
3034
3035 # ------------------------------------------------------------------------------
3036 systemd_tty_ask_password_agent_SOURCES = \
3037 src/tty-ask-password-agent/tty-ask-password-agent.c
3038
3039 systemd_tty_ask_password_agent_LDADD = \
3040 libshared.la
3041
3042 # ------------------------------------------------------------------------------
3043 libsystemd_internal_la_SOURCES = \
3044 src/systemd/sd-bus.h \
3045 src/systemd/sd-bus-protocol.h \
3046 src/systemd/sd-bus-vtable.h \
3047 src/systemd/sd-utf8.h \
3048 src/systemd/sd-event.h \
3049 src/systemd/sd-netlink.h \
3050 src/systemd/sd-resolve.h \
3051 src/systemd/sd-login.h \
3052 src/systemd/sd-id128.h \
3053 src/systemd/sd-daemon.h \
3054 src/systemd/sd-path.h \
3055 src/systemd/sd-network.h \
3056 src/systemd/sd-hwdb.h \
3057 src/systemd/sd-device.h \
3058 src/libsystemd/libsystemd.sym \
3059 src/libsystemd/sd-bus/sd-bus.c \
3060 src/libsystemd/sd-bus/bus-control.c \
3061 src/libsystemd/sd-bus/bus-control.h \
3062 src/libsystemd/sd-bus/bus-error.c \
3063 src/libsystemd/sd-bus/bus-error.h \
3064 src/libsystemd/sd-bus/bus-common-errors.h \
3065 src/libsystemd/sd-bus/bus-common-errors.c \
3066 src/libsystemd/sd-bus/bus-internal.c \
3067 src/libsystemd/sd-bus/bus-internal.h \
3068 src/libsystemd/sd-bus/bus-socket.c \
3069 src/libsystemd/sd-bus/bus-socket.h \
3070 src/libsystemd/sd-bus/bus-kernel.c \
3071 src/libsystemd/sd-bus/bus-kernel.h \
3072 src/libsystemd/sd-bus/bus-container.c \
3073 src/libsystemd/sd-bus/bus-container.h \
3074 src/libsystemd/sd-bus/bus-message.c \
3075 src/libsystemd/sd-bus/bus-message.h \
3076 src/libsystemd/sd-bus/bus-creds.c \
3077 src/libsystemd/sd-bus/bus-creds.h \
3078 src/libsystemd/sd-bus/bus-signature.c \
3079 src/libsystemd/sd-bus/bus-signature.h \
3080 src/libsystemd/sd-bus/bus-type.c \
3081 src/libsystemd/sd-bus/bus-type.h \
3082 src/libsystemd/sd-bus/bus-match.c \
3083 src/libsystemd/sd-bus/bus-match.h \
3084 src/libsystemd/sd-bus/bus-bloom.c \
3085 src/libsystemd/sd-bus/bus-bloom.h \
3086 src/libsystemd/sd-bus/bus-introspect.c \
3087 src/libsystemd/sd-bus/bus-introspect.h \
3088 src/libsystemd/sd-bus/bus-objects.c \
3089 src/libsystemd/sd-bus/bus-objects.h \
3090 src/libsystemd/sd-bus/bus-gvariant.c \
3091 src/libsystemd/sd-bus/bus-gvariant.h \
3092 src/libsystemd/sd-bus/bus-convenience.c \
3093 src/libsystemd/sd-bus/bus-track.c \
3094 src/libsystemd/sd-bus/bus-track.h \
3095 src/libsystemd/sd-bus/bus-slot.c \
3096 src/libsystemd/sd-bus/bus-slot.h \
3097 src/libsystemd/sd-bus/bus-protocol.h \
3098 src/libsystemd/sd-bus/kdbus.h \
3099 src/libsystemd/sd-bus/bus-dump.c \
3100 src/libsystemd/sd-bus/bus-dump.h \
3101 src/libsystemd/sd-utf8/sd-utf8.c \
3102 src/libsystemd/sd-event/sd-event.c \
3103 src/libsystemd/sd-netlink/sd-netlink.c \
3104 src/libsystemd/sd-netlink/netlink-internal.h \
3105 src/libsystemd/sd-netlink/netlink-message.c \
3106 src/libsystemd/sd-netlink/netlink-socket.c \
3107 src/libsystemd/sd-netlink/rtnl-message.c \
3108 src/libsystemd/sd-netlink/netlink-types.h \
3109 src/libsystemd/sd-netlink/netlink-types.c \
3110 src/libsystemd/sd-netlink/netlink-util.h \
3111 src/libsystemd/sd-netlink/netlink-util.c \
3112 src/libsystemd/sd-netlink/local-addresses.h \
3113 src/libsystemd/sd-netlink/local-addresses.c \
3114 src/libsystemd/sd-id128/sd-id128.c \
3115 src/libsystemd/sd-daemon/sd-daemon.c \
3116 src/libsystemd/sd-login/sd-login.c \
3117 src/libsystemd/sd-path/sd-path.c \
3118 src/libsystemd/sd-network/sd-network.c \
3119 src/libsystemd/sd-network/network-util.h \
3120 src/libsystemd/sd-network/network-util.c \
3121 src/libsystemd/sd-hwdb/sd-hwdb.c \
3122 src/libsystemd/sd-hwdb/hwdb-util.h \
3123 src/libsystemd/sd-hwdb/hwdb-internal.h \
3124 src/libsystemd/sd-device/device-internal.h \
3125 src/libsystemd/sd-device/device-util.h \
3126 src/libsystemd/sd-device/device-enumerator.c \
3127 src/libsystemd/sd-device/device-enumerator-private.h \
3128 src/libsystemd/sd-device/sd-device.c \
3129 src/libsystemd/sd-device/device-private.c \
3130 src/libsystemd/sd-device/device-private.h \
3131 src/libsystemd/sd-resolve/sd-resolve.c
3132
3133 libsystemd_internal_la_LIBADD = \
3134 libbasic.la \
3135 -lresolv
3136
3137 noinst_LTLIBRARIES += \
3138 libsystemd-internal.la
3139
3140 EXTRA_DIST += \
3141 src/libsystemd/libsystemd.pc.in \
3142 src/libsystemd/sd-bus/DIFFERENCES \
3143 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
3144
3145 libsystemd_la_SOURCES = \
3146 $(libsystemd_internal_la_SOURCES) \
3147 $(libsystemd_journal_internal_la_SOURCES)
3148
3149 nodist_libsystemd_la_SOURCES = \
3150 $(nodist_libsystemd_internal_la_SOURCES)
3151
3152 libsystemd_la_CFLAGS = \
3153 $(libsystemd_internal_la_CFLAGS) \
3154 $(libsystemd_journal_internal_la_CFLAGS)
3155
3156 libsystemd_la_LDFLAGS = \
3157 $(AM_LDFLAGS) \
3158 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
3159 -Wl,--version-script=$(top_srcdir)/src/libsystemd/libsystemd.sym
3160
3161 libsystemd_la_LIBADD = \
3162 $(libsystemd_internal_la_LIBADD) \
3163 $(libsystemd_journal_internal_la_LIBADD)
3164
3165 libsystemd-install-hook:
3166 libname=libsystemd.so && $(move-to-rootlibdir)
3167
3168 libsystemd-uninstall-hook:
3169 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
3170
3171 INSTALL_EXEC_HOOKS += libsystemd-install-hook
3172 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
3173
3174 pkgconfiglib_DATA += \
3175 src/libsystemd/libsystemd.pc
3176
3177 pkginclude_HEADERS += \
3178 src/systemd/sd-bus.h \
3179 src/systemd/sd-bus-protocol.h \
3180 src/systemd/sd-bus-vtable.h \
3181 src/systemd/sd-event.h \
3182 src/systemd/sd-login.h \
3183 src/systemd/sd-id128.h \
3184 src/systemd/sd-daemon.h
3185
3186 lib_LTLIBRARIES += \
3187 libsystemd.la
3188
3189 tests += \
3190 test-bus-marshal \
3191 test-bus-signature \
3192 test-bus-benchmark \
3193 test-bus-chat \
3194 test-bus-cleanup \
3195 test-bus-server \
3196 test-bus-match \
3197 test-bus-proxy \
3198 test-bus-kernel \
3199 test-bus-kernel-bloom \
3200 test-bus-zero-copy \
3201 test-bus-introspect \
3202 test-bus-objects \
3203 test-bus-error \
3204 test-bus-creds \
3205 test-bus-gvariant \
3206 test-event \
3207 test-netlink \
3208 test-local-addresses \
3209 test-resolve
3210
3211 bin_PROGRAMS += \
3212 busctl
3213
3214 test_bus_marshal_SOURCES = \
3215 src/libsystemd/sd-bus/test-bus-marshal.c
3216
3217 test_bus_marshal_LDADD = \
3218 libshared.la \
3219 $(GLIB_LIBS) \
3220 $(DBUS_LIBS)
3221
3222 test_bus_marshal_CFLAGS = \
3223 $(AM_CFLAGS) \
3224 $(GLIB_CFLAGS) \
3225 $(DBUS_CFLAGS)
3226
3227 test_bus_signature_SOURCES = \
3228 src/libsystemd/sd-bus/test-bus-signature.c
3229
3230 test_bus_signature_LDADD = \
3231 libshared.la
3232
3233 test_bus_chat_SOURCES = \
3234 src/libsystemd/sd-bus/test-bus-chat.c
3235
3236 test_bus_chat_LDADD = \
3237 libshared.la
3238
3239 test_bus_cleanup_SOURCES = \
3240 src/libsystemd/sd-bus/test-bus-cleanup.c
3241
3242 test_bus_cleanup_CFLAGS = \
3243 $(AM_CFLAGS) \
3244 $(SECCOMP_CFLAGS)
3245
3246 test_bus_cleanup_LDADD = \
3247 libshared.la
3248
3249 test_bus_server_SOURCES = \
3250 src/libsystemd/sd-bus/test-bus-server.c
3251
3252 test_bus_server_LDADD = \
3253 libshared.la
3254
3255 test_bus_objects_SOURCES = \
3256 src/libsystemd/sd-bus/test-bus-objects.c
3257
3258 test_bus_objects_LDADD = \
3259 libshared.la
3260
3261 test_bus_error_SOURCES = \
3262 src/libsystemd/sd-bus/test-bus-error.c
3263
3264 test_bus_error_LDADD = \
3265 libshared.la
3266
3267 test_bus_gvariant_SOURCES = \
3268 src/libsystemd/sd-bus/test-bus-gvariant.c
3269
3270 test_bus_gvariant_LDADD = \
3271 libshared.la \
3272 $(GLIB_LIBS)
3273
3274 test_bus_gvariant_CFLAGS = \
3275 $(AM_CFLAGS) \
3276 $(GLIB_CFLAGS)
3277
3278 test_bus_creds_SOURCES = \
3279 src/libsystemd/sd-bus/test-bus-creds.c
3280
3281 test_bus_creds_LDADD = \
3282 libshared.la
3283
3284 test_bus_match_SOURCES = \
3285 src/libsystemd/sd-bus/test-bus-match.c
3286
3287 test_bus_match_LDADD = \
3288 libshared.la
3289
3290 test_bus_proxy_SOURCES = \
3291 src/libsystemd/sd-bus/test-bus-proxy.c
3292
3293 test_bus_proxy_LDADD = \
3294 libshared.la
3295
3296 test_bus_kernel_SOURCES = \
3297 src/libsystemd/sd-bus/test-bus-kernel.c
3298
3299 test_bus_kernel_LDADD = \
3300 libshared.la
3301
3302 test_bus_kernel_bloom_SOURCES = \
3303 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
3304
3305 test_bus_kernel_bloom_LDADD = \
3306 libshared.la
3307
3308 test_bus_benchmark_SOURCES = \
3309 src/libsystemd/sd-bus/test-bus-benchmark.c
3310
3311 test_bus_benchmark_LDADD = \
3312 libshared.la
3313
3314 test_bus_zero_copy_SOURCES = \
3315 src/libsystemd/sd-bus/test-bus-zero-copy.c
3316
3317 test_bus_zero_copy_LDADD = \
3318 libshared.la
3319
3320 test_bus_introspect_SOURCES = \
3321 src/libsystemd/sd-bus/test-bus-introspect.c
3322
3323 test_bus_introspect_LDADD = \
3324 libshared.la
3325
3326 test_event_SOURCES = \
3327 src/libsystemd/sd-event/test-event.c
3328
3329 test_event_LDADD = \
3330 libshared.la
3331
3332 test_netlink_SOURCES = \
3333 src/libsystemd/sd-netlink/test-netlink.c
3334
3335 test_netlink_LDADD = \
3336 libshared.la
3337
3338 test_local_addresses_SOURCES = \
3339 src/libsystemd/sd-netlink/test-local-addresses.c
3340
3341 test_local_addresses_LDADD = \
3342 libshared.la
3343
3344 test_resolve_SOURCES = \
3345 src/libsystemd/sd-resolve/test-resolve.c
3346
3347 test_resolve_LDADD = \
3348 libshared.la
3349
3350 busctl_SOURCES = \
3351 src/libsystemd/sd-bus/busctl.c \
3352 src/libsystemd/sd-bus/busctl-introspect.c \
3353 src/libsystemd/sd-bus/busctl-introspect.h
3354
3355 busctl_LDADD = \
3356 libshared.la
3357
3358 # ------------------------------------------------------------------------------
3359 noinst_LTLIBRARIES += \
3360 libsystemd-network.la
3361
3362 libsystemd_network_la_CFLAGS = \
3363 $(AM_CFLAGS) \
3364 $(KMOD_CFLAGS)
3365
3366 libsystemd_network_la_SOURCES = \
3367 src/systemd/sd-dhcp-client.h \
3368 src/systemd/sd-dhcp-server.h \
3369 src/systemd/sd-dhcp-lease.h \
3370 src/systemd/sd-ipv4ll.h \
3371 src/systemd/sd-ipv4acd.h \
3372 src/systemd/sd-ndisc.h \
3373 src/systemd/sd-dhcp6-client.h \
3374 src/systemd/sd-dhcp6-lease.h \
3375 src/systemd/sd-lldp.h \
3376 src/libsystemd-network/sd-dhcp-client.c \
3377 src/libsystemd-network/sd-dhcp-server.c \
3378 src/libsystemd-network/dhcp-network.c \
3379 src/libsystemd-network/dhcp-option.c \
3380 src/libsystemd-network/dhcp-packet.c \
3381 src/libsystemd-network/dhcp-internal.h \
3382 src/libsystemd-network/dhcp-server-internal.h \
3383 src/libsystemd-network/dhcp-protocol.h \
3384 src/libsystemd-network/dhcp-lease-internal.h \
3385 src/libsystemd-network/sd-dhcp-lease.c \
3386 src/libsystemd-network/sd-ipv4ll.c \
3387 src/libsystemd-network/sd-ipv4acd.c \
3388 src/libsystemd-network/arp-util.h \
3389 src/libsystemd-network/arp-util.c \
3390 src/libsystemd-network/network-internal.c \
3391 src/libsystemd-network/network-internal.h \
3392 src/libsystemd-network/sd-ndisc.c \
3393 src/libsystemd-network/icmp6-util.h \
3394 src/libsystemd-network/icmp6-util.c \
3395 src/libsystemd-network/sd-dhcp6-client.c \
3396 src/libsystemd-network/dhcp6-internal.h \
3397 src/libsystemd-network/dhcp6-protocol.h \
3398 src/libsystemd-network/dhcp6-network.c \
3399 src/libsystemd-network/dhcp6-option.c \
3400 src/libsystemd-network/dhcp6-lease-internal.h \
3401 src/libsystemd-network/sd-dhcp6-lease.c \
3402 src/libsystemd-network/dhcp-identifier.h \
3403 src/libsystemd-network/dhcp-identifier.c \
3404 src/libsystemd-network/lldp.h \
3405 src/libsystemd-network/lldp-tlv.h \
3406 src/libsystemd-network/lldp-tlv.c \
3407 src/libsystemd-network/lldp-network.h \
3408 src/libsystemd-network/lldp-network.c \
3409 src/libsystemd-network/lldp-port.h \
3410 src/libsystemd-network/lldp-port.c \
3411 src/libsystemd-network/lldp-internal.h \
3412 src/libsystemd-network/lldp-internal.c \
3413 src/libsystemd-network/sd-lldp.c
3414
3415 libsystemd_network_la_LIBADD = \
3416 $(KMOD_LIBS)
3417
3418 test_dhcp_option_SOURCES = \
3419 src/libsystemd-network/dhcp-protocol.h \
3420 src/libsystemd-network/dhcp-internal.h \
3421 src/libsystemd-network/test-dhcp-option.c
3422
3423 test_dhcp_option_LDADD = \
3424 libsystemd-network.la \
3425 libshared.la
3426
3427 test_dhcp_client_SOURCES = \
3428 src/systemd/sd-dhcp-client.h \
3429 src/libsystemd-network/dhcp-protocol.h \
3430 src/libsystemd-network/dhcp-internal.h \
3431 src/libsystemd-network/test-dhcp-client.c
3432
3433 test_dhcp_client_LDADD = \
3434 libsystemd-network.la \
3435 libshared.la
3436
3437 test_dhcp_server_SOURCES = \
3438 src/libsystemd-network/test-dhcp-server.c
3439
3440 test_dhcp_server_LDADD = \
3441 libsystemd-network.la \
3442 libshared.la
3443
3444 test_ipv4ll_SOURCES = \
3445 src/systemd/sd-ipv4ll.h \
3446 src/libsystemd-network/arp-util.h \
3447 src/libsystemd-network/test-ipv4ll.c
3448
3449 test_ipv4ll_LDADD = \
3450 libsystemd-network.la \
3451 libshared.la
3452
3453 test_ipv4ll_manual_SOURCES = \
3454 src/systemd/sd-ipv4ll.h \
3455 src/libsystemd-network/test-ipv4ll-manual.c
3456
3457 test_ipv4ll_manual_LDADD = \
3458 libsystemd-network.la \
3459 libshared.la
3460
3461 test_acd_SOURCES = \
3462 src/systemd/sd-ipv4acd.h \
3463 src/libsystemd-network/test-acd.c
3464
3465 test_acd_LDADD = \
3466 libsystemd-network.la \
3467 libshared.la
3468
3469 test_ndisc_rs_SOURCES = \
3470 src/systemd/sd-dhcp6-client.h \
3471 src/systemd/sd-ndisc.h \
3472 src/libsystemd-network/icmp6-util.h \
3473 src/libsystemd-network/test-ndisc-rs.c \
3474 src/libsystemd-network/dhcp-identifier.h \
3475 src/libsystemd-network/dhcp-identifier.c
3476
3477 test_ndisc_rs_LDADD = \
3478 libsystemd-network.la \
3479 libudev.la \
3480 libshared.la
3481
3482 test_dhcp6_client_SOURCES = \
3483 src/systemd/sd-dhcp6-client.h \
3484 src/libsystemd-network/dhcp6-internal.h \
3485 src/libsystemd-network/test-dhcp6-client.c \
3486 src/libsystemd-network/dhcp-identifier.h \
3487 src/libsystemd-network/dhcp-identifier.c
3488
3489 test_dhcp6_client_LDADD = \
3490 libsystemd-network.la \
3491 libudev.la \
3492 libshared.la
3493
3494 test_lldp_SOURCES = \
3495 src/libsystemd-network/lldp.h \
3496 src/libsystemd-network/lldp-tlv.h \
3497 src/libsystemd-network/lldp-tlv.c \
3498 src/libsystemd-network/test-lldp.c
3499
3500 test_lldp_LDADD = \
3501 libsystemd-network.la \
3502 libshared.la
3503
3504 tests += \
3505 test-dhcp-option \
3506 test-dhcp-client \
3507 test-dhcp-server \
3508 test-ipv4ll \
3509 test-ndisc-rs \
3510 test-dhcp6-client \
3511 test-lldp
3512
3513 # ------------------------------------------------------------------------------
3514 include_HEADERS += \
3515 src/libudev/libudev.h
3516
3517 lib_LTLIBRARIES += \
3518 libudev.la
3519
3520 libudev_la_SOURCES =\
3521 src/libudev/libudev.sym \
3522 src/libudev/libudev-private.h \
3523 src/libudev/libudev-device-internal.h \
3524 src/libudev/libudev.c \
3525 src/libudev/libudev-list.c \
3526 src/libudev/libudev-util.c \
3527 src/libudev/libudev-device.c \
3528 src/libudev/libudev-device-private.c \
3529 src/libudev/libudev-enumerate.c \
3530 src/libudev/libudev-monitor.c \
3531 src/libudev/libudev-queue.c \
3532 src/libudev/libudev-hwdb.c
3533
3534 libudev_la_LDFLAGS = \
3535 $(AM_LDFLAGS) \
3536 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3537 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3538
3539 libudev_la_LIBADD = \
3540 libsystemd-internal.la
3541
3542 pkgconfiglib_DATA += \
3543 src/libudev/libudev.pc
3544
3545 EXTRA_DIST += \
3546 src/libudev/libudev.pc.in
3547
3548 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3549 libudev-install-hook:
3550 libname=libudev.so && $(move-to-rootlibdir)
3551
3552 libudev-uninstall-hook:
3553 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3554
3555 INSTALL_EXEC_HOOKS += libudev-install-hook
3556 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3557
3558 # ------------------------------------------------------------------------------
3559 noinst_LTLIBRARIES += \
3560 libudev-internal.la
3561
3562 libudev_internal_la_SOURCES =\
3563 $(libudev_la_SOURCES)
3564
3565 # ------------------------------------------------------------------------------
3566 INSTALL_DIRS += \
3567 $(sysconfdir)/udev/rules.d
3568
3569 dist_network_DATA = \
3570 network/99-default.link \
3571 network/80-container-host0.network \
3572 network/80-container-ve.network
3573
3574 dist_udevrules_DATA += \
3575 rules/50-udev-default.rules \
3576 rules/60-block.rules \
3577 rules/60-drm.rules \
3578 rules/60-evdev.rules \
3579 rules/60-persistent-storage-tape.rules \
3580 rules/60-persistent-input.rules \
3581 rules/60-persistent-alsa.rules \
3582 rules/60-persistent-storage.rules \
3583 rules/60-serial.rules \
3584 rules/64-btrfs.rules \
3585 rules/70-mouse.rules \
3586 rules/75-net-description.rules \
3587 rules/78-sound-card.rules \
3588 rules/80-net-setup-link.rules
3589
3590 nodist_udevrules_DATA += \
3591 rules/99-systemd.rules
3592
3593 udevconfdir = $(sysconfdir)/udev
3594 dist_udevconf_DATA = \
3595 src/udev/udev.conf
3596
3597 pkgconfigdata_DATA += \
3598 src/udev/udev.pc
3599
3600 EXTRA_DIST += \
3601 rules/99-systemd.rules.in \
3602 src/udev/udev.pc.in
3603
3604 EXTRA_DIST += \
3605 units/systemd-udevd.service.in \
3606 units/systemd-udev-trigger.service.in \
3607 units/systemd-udev-settle.service.in
3608
3609 SOCKETS_TARGET_WANTS += \
3610 systemd-udevd-control.socket \
3611 systemd-udevd-kernel.socket
3612
3613 SYSINIT_TARGET_WANTS += \
3614 systemd-udevd.service \
3615 systemd-udev-trigger.service
3616
3617 rootbin_PROGRAMS += \
3618 udevadm
3619
3620 rootlibexec_PROGRAMS += \
3621 systemd-udevd
3622
3623 noinst_LTLIBRARIES += \
3624 libudev-core.la
3625
3626 src/udev/keyboard-keys-list.txt:
3627 $(AM_V_at)$(MKDIR_P) $(dir $@)
3628 $(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 } }' > $@
3629
3630 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys-list.txt
3631 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3632
3633 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3634 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3635
3636 gperf_txt_sources += \
3637 src/udev/keyboard-keys-list.txt
3638
3639 libudev_core_la_SOURCES = \
3640 src/udev/udev.h \
3641 src/udev/udev-event.c \
3642 src/udev/udev-watch.c \
3643 src/udev/udev-node.c \
3644 src/udev/udev-rules.c \
3645 src/udev/udev-ctrl.c \
3646 src/udev/udev-builtin.c \
3647 src/udev/udev-builtin-btrfs.c \
3648 src/udev/udev-builtin-hwdb.c \
3649 src/udev/udev-builtin-input_id.c \
3650 src/udev/udev-builtin-keyboard.c \
3651 src/udev/udev-builtin-net_id.c \
3652 src/udev/udev-builtin-net_setup_link.c \
3653 src/udev/udev-builtin-path_id.c \
3654 src/udev/udev-builtin-usb_id.c \
3655 src/udev/net/link-config.h \
3656 src/udev/net/link-config.c \
3657 src/udev/net/ethtool-util.h \
3658 src/udev/net/ethtool-util.c
3659
3660 nodist_libudev_core_la_SOURCES = \
3661 src/udev/keyboard-keys-from-name.h \
3662 src/udev/net/link-config-gperf.c
3663
3664 gperf_gperf_sources += \
3665 src/udev/net/link-config-gperf.gperf
3666
3667 libudev_core_la_CFLAGS = \
3668 $(AM_CFLAGS) \
3669 $(BLKID_CFLAGS) \
3670 $(KMOD_CFLAGS)
3671
3672 libudev_core_la_LIBADD = \
3673 libsystemd-network.la \
3674 libshared.la \
3675 $(BLKID_LIBS) \
3676 $(KMOD_LIBS)
3677
3678 if HAVE_KMOD
3679 libudev_core_la_SOURCES += \
3680 src/udev/udev-builtin-kmod.c
3681
3682 dist_udevrules_DATA += \
3683 rules/80-drivers.rules
3684 endif
3685
3686 if HAVE_BLKID
3687 libudev_core_la_SOURCES += \
3688 src/udev/udev-builtin-blkid.c
3689 endif
3690
3691 if HAVE_ACL
3692 libudev_core_la_SOURCES += \
3693 src/udev/udev-builtin-uaccess.c \
3694 src/login/logind-acl.c \
3695 src/libsystemd/sd-login/sd-login.c \
3696 src/systemd/sd-login.h
3697 endif
3698
3699 systemd_udevd_SOURCES = \
3700 src/udev/udevd.c
3701
3702 systemd_udevd_LDADD = \
3703 libudev-core.la
3704
3705 udevadm_SOURCES = \
3706 src/udev/udevadm.c \
3707 src/udev/udevadm-info.c \
3708 src/udev/udevadm-control.c \
3709 src/udev/udevadm-monitor.c \
3710 src/udev/udevadm-hwdb.c \
3711 src/udev/udevadm-settle.c \
3712 src/udev/udevadm-trigger.c \
3713 src/udev/udevadm-test.c \
3714 src/udev/udevadm-test-builtin.c \
3715 src/udev/udevadm-util.c \
3716 src/udev/udevadm-util.h
3717
3718 udevadm_LDADD = \
3719 libudev-core.la
3720
3721 # ------------------------------------------------------------------------------
3722 if ENABLE_HWDB
3723 INSTALL_DIRS += \
3724 $(sysconfdir)/udev/hwdb.d
3725
3726 systemd_hwdb_SOURCES = \
3727 src/libsystemd/sd-hwdb/hwdb-internal.h \
3728 src/hwdb/hwdb.c
3729
3730 systemd_hwdb_LDADD = \
3731 libshared.la
3732
3733 rootbin_PROGRAMS += \
3734 systemd-hwdb
3735
3736 dist_udevhwdb_DATA = \
3737 hwdb/20-pci-vendor-model.hwdb \
3738 hwdb/20-pci-classes.hwdb \
3739 hwdb/20-usb-vendor-model.hwdb \
3740 hwdb/20-usb-classes.hwdb \
3741 hwdb/20-sdio-vendor-model.hwdb \
3742 hwdb/20-sdio-classes.hwdb \
3743 hwdb/20-bluetooth-vendor-product.hwdb \
3744 hwdb/20-acpi-vendor.hwdb \
3745 hwdb/20-OUI.hwdb \
3746 hwdb/20-net-ifname.hwdb \
3747 hwdb/60-evdev.hwdb \
3748 hwdb/60-keyboard.hwdb \
3749 hwdb/70-mouse.hwdb \
3750 hwdb/70-pointingstick.hwdb
3751
3752 SYSINIT_TARGET_WANTS += \
3753 systemd-hwdb-update.service
3754
3755 # Update hwdb on installation. Do not bother if installing
3756 # in DESTDIR, since this is likely for packaging purposes.
3757 hwdb-update-hook:
3758 -test -n "$(DESTDIR)" || $(rootbindir)/systemd-hwdb update
3759
3760 INSTALL_DATA_HOOKS += \
3761 hwdb-update-hook
3762
3763 hwdb-remove-hook:
3764 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3765 endif
3766
3767 EXTRA_DIST += \
3768 units/systemd-hwdb-update.service.in \
3769 hwdb/ids-update.pl \
3770 hwdb/sdio.ids
3771
3772 # ------------------------------------------------------------------------------
3773 if ENABLE_TESTS
3774 TESTS += \
3775 test/udev-test.pl
3776
3777 if HAVE_PYTHON
3778 TESTS += \
3779 test/rule-syntax-check.py
3780
3781 if HAVE_SYSV_COMPAT
3782 TESTS += \
3783 test/sysv-generator-test.py
3784 endif
3785 endif
3786 endif
3787
3788 manual_tests += \
3789 test-libudev \
3790 test-udev
3791
3792 test_libudev_SOURCES = \
3793 src/test/test-libudev.c
3794
3795 test_libudev_LDADD = \
3796 libshared.la
3797
3798 test_udev_SOURCES = \
3799 src/test/test-udev.c
3800
3801 test_udev_LDADD = \
3802 libudev-core.la \
3803 $(BLKID_LIBS) \
3804 $(KMOD_LIBS)
3805
3806 if ENABLE_TESTS
3807 check_DATA += \
3808 test/sys
3809 endif
3810
3811 # packed sysfs test tree
3812 test/sys:
3813 $(AM_V_at)$(MKDIR_P) $(dir $@)
3814 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3815
3816 test-sys-distclean:
3817 -rm -rf test/sys
3818 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3819
3820 EXTRA_DIST += \
3821 test/sys.tar.xz \
3822 test/udev-test.pl \
3823 test/rule-syntax-check.py \
3824 test/sysv-generator-test.py \
3825 test/mocks/fsck
3826
3827 # ------------------------------------------------------------------------------
3828 ata_id_SOURCES = \
3829 src/udev/ata_id/ata_id.c
3830
3831 ata_id_LDADD = \
3832 libshared.la
3833
3834 udevlibexec_PROGRAMS += \
3835 ata_id
3836
3837 # ------------------------------------------------------------------------------
3838 cdrom_id_SOURCES = \
3839 src/udev/cdrom_id/cdrom_id.c
3840
3841 cdrom_id_LDADD = \
3842 libshared.la
3843
3844 udevlibexec_PROGRAMS += \
3845 cdrom_id
3846
3847 dist_udevrules_DATA += \
3848 rules/60-cdrom_id.rules
3849
3850 # ------------------------------------------------------------------------------
3851 collect_SOURCES = \
3852 src/udev/collect/collect.c
3853
3854 collect_LDADD = \
3855 libshared.la
3856
3857 udevlibexec_PROGRAMS += \
3858 collect
3859
3860 # ------------------------------------------------------------------------------
3861 scsi_id_SOURCES =\
3862 src/udev/scsi_id/scsi_id.c \
3863 src/udev/scsi_id/scsi_serial.c \
3864 src/udev/scsi_id/scsi.h \
3865 src/udev/scsi_id/scsi_id.h
3866
3867 scsi_id_LDADD = \
3868 libshared.la
3869
3870 udevlibexec_PROGRAMS += \
3871 scsi_id
3872
3873 EXTRA_DIST += \
3874 src/udev/scsi_id/README
3875
3876 # ------------------------------------------------------------------------------
3877 v4l_id_SOURCES = \
3878 src/udev/v4l_id/v4l_id.c
3879
3880 v4l_id_LDADD = \
3881 libshared.la
3882
3883 udevlibexec_PROGRAMS += \
3884 v4l_id
3885
3886 dist_udevrules_DATA += \
3887 rules/60-persistent-v4l.rules
3888
3889 # ------------------------------------------------------------------------------
3890 mtd_probe_SOURCES = \
3891 src/udev/mtd_probe/mtd_probe.c \
3892 src/udev/mtd_probe/mtd_probe.h \
3893 src/udev/mtd_probe/probe_smartmedia.c
3894
3895 dist_udevrules_DATA += \
3896 rules/75-probe_mtd.rules
3897
3898 udevlibexec_PROGRAMS += \
3899 mtd_probe
3900
3901 # ------------------------------------------------------------------------------
3902 test_id128_SOURCES = \
3903 src/test/test-id128.c
3904
3905 test_id128_LDADD = \
3906 libshared.la
3907
3908 tests += \
3909 test-id128
3910
3911 # ------------------------------------------------------------------------------
3912
3913 rootlibexec_PROGRAMS += \
3914 systemd-activate
3915
3916 systemd_activate_SOURCES = \
3917 src/activate/activate.c
3918
3919 systemd_activate_LDADD = \
3920 libshared.la
3921
3922 # ------------------------------------------------------------------------------
3923 systemd_journald_SOURCES = \
3924 src/journal/journald.c \
3925 src/journal/journald-server.h
3926
3927 systemd_journald_LDADD = \
3928 libjournal-core.la \
3929 libshared.la
3930
3931 systemd_cat_SOURCES = \
3932 src/journal/cat.c
3933
3934 systemd_cat_LDADD = \
3935 libjournal-core.la
3936
3937 if HAVE_MICROHTTPD
3938 rootlibexec_PROGRAMS += \
3939 systemd-journal-remote
3940
3941 systemd_journal_remote_SOURCES = \
3942 src/journal-remote/journal-remote-parse.h \
3943 src/journal-remote/journal-remote-parse.c \
3944 src/journal-remote/journal-remote-write.h \
3945 src/journal-remote/journal-remote-write.c \
3946 src/journal-remote/journal-remote.h \
3947 src/journal-remote/journal-remote.c
3948
3949 systemd_journal_remote_LDADD = \
3950 libjournal-core.la
3951
3952 systemd_journal_remote_SOURCES += \
3953 src/journal-remote/microhttpd-util.h \
3954 src/journal-remote/microhttpd-util.c
3955
3956 systemd_journal_remote_CFLAGS = \
3957 $(AM_CFLAGS) \
3958 $(MICROHTTPD_CFLAGS)
3959
3960 systemd_journal_remote_LDADD += \
3961 $(MICROHTTPD_LIBS)
3962
3963 if ENABLE_TMPFILES
3964 dist_tmpfiles_DATA += \
3965 tmpfiles.d/systemd-remote.conf
3966 endif
3967
3968 if HAVE_GNUTLS
3969 systemd_journal_remote_LDADD += \
3970 $(GNUTLS_LIBS)
3971 endif
3972
3973 # systemd-journal-remote make sense mostly with full crypto stack
3974 dist_systemunit_DATA += \
3975 units/systemd-journal-remote.socket
3976
3977 nodist_systemunit_DATA += \
3978 units/systemd-journal-remote.service
3979
3980 journal-remote-install-hook: journal-install-hook
3981 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
3982 -chown 0:0 $(DESTDIR)/var/log/journal/remote
3983 -chmod 755 $(DESTDIR)/var/log/journal/remote
3984
3985 INSTALL_EXEC_HOOKS += journal-remote-install-hook
3986
3987 nodist_pkgsysconf_DATA += \
3988 src/journal-remote/journal-remote.conf
3989
3990 EXTRA_DIST += \
3991 units/systemd-journal-remote.service.in \
3992 src/journal-remote/journal-remote.conf.in \
3993 src/journal-remote/log-generator.py
3994 endif
3995
3996 if HAVE_LIBCURL
3997 rootlibexec_PROGRAMS += \
3998 systemd-journal-upload
3999
4000 systemd_journal_upload_SOURCES = \
4001 src/journal-remote/journal-upload.h \
4002 src/journal-remote/journal-upload.c \
4003 src/journal-remote/journal-upload-journal.c
4004
4005 systemd_journal_upload_CFLAGS = \
4006 $(AM_CFLAGS) \
4007 $(LIBCURL_CFLAGS)
4008
4009 systemd_journal_upload_LDADD = \
4010 libshared.la \
4011 $(LIBCURL_LIBS)
4012
4013 nodist_systemunit_DATA += \
4014 units/systemd-journal-upload.service
4015
4016 nodist_pkgsysconf_DATA += \
4017 src/journal-remote/journal-upload.conf
4018 endif
4019
4020 EXTRA_DIST += \
4021 units/systemd-journal-upload.service.in \
4022 src/journal-remote/journal-upload.conf.in
4023
4024 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4025 journalctl_CFLAGS = \
4026 $(AM_CFLAGS)
4027
4028 journalctl_SOURCES = \
4029 src/journal/journalctl.c
4030
4031 journalctl_LDADD = \
4032 libshared.la \
4033 libudev-core.la
4034
4035 if HAVE_QRENCODE
4036 journalctl_SOURCES += \
4037 src/journal/journal-qrcode.c \
4038 src/journal/journal-qrcode.h
4039
4040 journalctl_CFLAGS += \
4041 $(QRENCODE_CFLAGS)
4042
4043 journalctl_LDADD += \
4044 $(QRENCODE_LIBS)
4045 endif
4046
4047 test_journal_SOURCES = \
4048 src/journal/test-journal.c
4049
4050 test_journal_LDADD = \
4051 libjournal-core.la
4052
4053 test_journal_send_SOURCES = \
4054 src/journal/test-journal-send.c
4055
4056 test_journal_send_LDADD = \
4057 libjournal-core.la
4058
4059 test_journal_syslog_SOURCES = \
4060 src/journal/test-journal-syslog.c
4061
4062 test_journal_syslog_LDADD = \
4063 libjournal-core.la
4064
4065 test_journal_match_SOURCES = \
4066 src/journal/test-journal-match.c
4067
4068 test_journal_match_LDADD = \
4069 libjournal-core.la
4070
4071 test_journal_enum_SOURCES = \
4072 src/journal/test-journal-enum.c
4073
4074 test_journal_enum_LDADD = \
4075 libjournal-core.la
4076
4077 test_journal_stream_SOURCES = \
4078 src/journal/test-journal-stream.c
4079
4080 test_journal_stream_LDADD = \
4081 libjournal-core.la
4082
4083 test_journal_flush_SOURCES = \
4084 src/journal/test-journal-flush.c
4085
4086 test_journal_flush_LDADD = \
4087 libjournal-core.la
4088
4089 test_journal_init_SOURCES = \
4090 src/journal/test-journal-init.c
4091
4092 test_journal_init_LDADD = \
4093 libjournal-core.la
4094
4095 test_journal_verify_SOURCES = \
4096 src/journal/test-journal-verify.c
4097
4098 test_journal_verify_LDADD = \
4099 libjournal-core.la
4100
4101 test_journal_interleaving_SOURCES = \
4102 src/journal/test-journal-interleaving.c
4103
4104 test_journal_interleaving_LDADD = \
4105 libjournal-core.la
4106
4107 test_mmap_cache_SOURCES = \
4108 src/journal/test-mmap-cache.c
4109
4110 test_mmap_cache_LDADD = \
4111 libjournal-core.la
4112
4113 test_catalog_SOURCES = \
4114 src/journal/test-catalog.c
4115
4116 test_catalog_CPPFLAGS = \
4117 $(AM_CPPFLAGS) \
4118 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
4119
4120 test_catalog_LDADD = \
4121 libjournal-core.la
4122
4123 test_compress_SOURCES = \
4124 src/journal/test-compress.c
4125
4126 test_compress_LDADD = \
4127 libshared.la
4128
4129 test_compress_benchmark_SOURCES = \
4130 src/journal/test-compress-benchmark.c
4131
4132 test_compress_benchmark_LDADD = \
4133 libshared.la
4134
4135 test_audit_type_SOURCES = \
4136 src/journal/test-audit-type.c
4137
4138 test_audit_type_LDADD = \
4139 libjournal-core.la
4140
4141 libjournal_core_la_SOURCES = \
4142 src/journal/journald-kmsg.c \
4143 src/journal/journald-kmsg.h \
4144 src/journal/journald-syslog.c \
4145 src/journal/journald-syslog.h \
4146 src/journal/journald-stream.c \
4147 src/journal/journald-stream.h \
4148 src/journal/journald-server.c \
4149 src/journal/journald-server.h \
4150 src/journal/journald-console.c \
4151 src/journal/journald-console.h \
4152 src/journal/journald-wall.c \
4153 src/journal/journald-wall.h \
4154 src/journal/journald-native.c \
4155 src/journal/journald-native.h \
4156 src/journal/journald-audit.c \
4157 src/journal/journald-audit.h \
4158 src/journal/journald-rate-limit.c \
4159 src/journal/journald-rate-limit.h \
4160 src/journal/journal-internal.h
4161
4162 nodist_libjournal_core_la_SOURCES = \
4163 src/journal/journald-gperf.c
4164
4165 libjournal_core_la_LIBADD = \
4166 libshared.la
4167
4168 noinst_LTLIBRARIES += \
4169 libjournal-core.la
4170
4171 journal-install-hook:
4172 -$(MKDIR_P) $(DESTDIR)/var/log/journal
4173 -chown 0:0 $(DESTDIR)/var/log/journal
4174 -chmod 755 $(DESTDIR)/var/log/journal
4175 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4176 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4177
4178 journal-uninstall-hook:
4179 -rmdir $(DESTDIR)/var/log/journal/remote
4180 -rmdir $(DESTDIR)/var/log/journal/
4181
4182 INSTALL_EXEC_HOOKS += journal-install-hook
4183 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4184
4185 # ------------------------------------------------------------------------------
4186 # Update catalog on installation. Do not bother if installing
4187 # in DESTDIR, since this is likely for packaging purposes.
4188 catalog-update-hook:
4189 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4190
4191 INSTALL_DATA_HOOKS += \
4192 catalog-update-hook
4193
4194 catalog-remove-hook:
4195 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4196
4197 UNINSTALL_DATA_HOOKS += \
4198 catalog-remove-hook
4199
4200 manual_tests += \
4201 test-journal-enum
4202
4203 tests += \
4204 test-journal \
4205 test-journal-send \
4206 test-journal-syslog \
4207 test-journal-match \
4208 test-journal-stream \
4209 test-journal-init \
4210 test-journal-verify \
4211 test-journal-interleaving \
4212 test-journal-flush \
4213 test-mmap-cache \
4214 test-catalog \
4215 test-audit-type
4216
4217 if HAVE_COMPRESSION
4218 tests += \
4219 test-compress \
4220 test-compress-benchmark
4221 endif
4222
4223 pkginclude_HEADERS += \
4224 src/systemd/sd-journal.h \
4225 src/systemd/sd-messages.h \
4226 src/systemd/_sd-common.h
4227
4228 libsystemd_journal_internal_la_SOURCES = \
4229 src/journal/sd-journal.c \
4230 src/systemd/sd-journal.h \
4231 src/systemd/_sd-common.h \
4232 src/journal/journal-file.c \
4233 src/journal/journal-file.h \
4234 src/journal/journal-vacuum.c \
4235 src/journal/journal-vacuum.h \
4236 src/journal/journal-verify.c \
4237 src/journal/journal-verify.h \
4238 src/journal/lookup3.c \
4239 src/journal/lookup3.h \
4240 src/journal/journal-send.c \
4241 src/journal/journal-def.h \
4242 src/journal/compress.h \
4243 src/journal/catalog.c \
4244 src/journal/catalog.h \
4245 src/journal/mmap-cache.c \
4246 src/journal/mmap-cache.h \
4247 src/journal/compress.c \
4248 src/journal/audit-type.h \
4249 src/journal/audit-type.c
4250
4251 nodist_libsystemd_journal_internal_la_SOURCES = \
4252 src/journal/audit_type-to-name.h
4253
4254 gperf_txt_sources += \
4255 src/journal/audit_type-list.txt
4256
4257 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4258 libsystemd_journal_internal_la_CFLAGS = \
4259 $(AM_CFLAGS)
4260
4261 libsystemd_journal_internal_la_LIBADD =
4262
4263 if HAVE_XZ
4264 libsystemd_journal_internal_la_CFLAGS += \
4265 $(XZ_CFLAGS)
4266
4267 libsystemd_journal_internal_la_LIBADD += \
4268 $(XZ_LIBS)
4269 endif
4270
4271 if HAVE_LZ4
4272 libsystemd_journal_internal_la_LIBADD += \
4273 -llz4
4274 endif
4275
4276 if HAVE_GCRYPT
4277 libsystemd_journal_internal_la_SOURCES += \
4278 src/journal/journal-authenticate.c \
4279 src/journal/journal-authenticate.h \
4280 src/journal/fsprg.c \
4281 src/journal/fsprg.h
4282
4283 libsystemd_journal_internal_la_LIBADD += \
4284 $(GCRYPT_LIBS)
4285
4286 # fsprg.c is a drop-in file using void pointer arithmetic
4287 libsystemd_journal_internal_la_CFLAGS += \
4288 $(GCRYPT_CFLAGS) \
4289 -Wno-pointer-arith
4290 endif
4291
4292 noinst_LTLIBRARIES += \
4293 libsystemd-journal-internal.la
4294
4295 rootlibexec_PROGRAMS += \
4296 systemd-journald
4297
4298 rootbin_PROGRAMS += \
4299 journalctl
4300
4301 bin_PROGRAMS += \
4302 systemd-cat
4303
4304 dist_systemunit_DATA += \
4305 units/systemd-journald.socket \
4306 units/systemd-journald-dev-log.socket \
4307 units/systemd-journald-audit.socket
4308
4309 nodist_systemunit_DATA += \
4310 units/systemd-journald.service \
4311 units/systemd-journal-flush.service \
4312 units/systemd-journal-catalog-update.service
4313
4314 dist_pkgsysconf_DATA += \
4315 src/journal/journald.conf
4316
4317 dist_catalog_DATA = \
4318 catalog/systemd.be.catalog \
4319 catalog/systemd.be@latin.catalog \
4320 catalog/systemd.fr.catalog \
4321 catalog/systemd.it.catalog \
4322 catalog/systemd.pl.catalog \
4323 catalog/systemd.pt_BR.catalog \
4324 catalog/systemd.ru.catalog \
4325 catalog/systemd.zh_CN.catalog \
4326 catalog/systemd.zh_TW.catalog \
4327 catalog/systemd.catalog
4328
4329 SOCKETS_TARGET_WANTS += \
4330 systemd-journald.socket \
4331 systemd-journald-dev-log.socket \
4332 systemd-journald-audit.socket
4333
4334 SYSINIT_TARGET_WANTS += \
4335 systemd-journald.service \
4336 systemd-journal-flush.service \
4337 systemd-journal-catalog-update.service
4338
4339 EXTRA_DIST += \
4340 units/systemd-journald.service.in \
4341 units/systemd-journal-flush.service.in \
4342 units/systemd-journal-catalog-update.service.in
4343
4344 gperf_gperf_sources += \
4345 src/journal/journald-gperf.gperf
4346
4347 # ------------------------------------------------------------------------------
4348 if HAVE_MICROHTTPD
4349 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4350
4351 rootlibexec_PROGRAMS += \
4352 systemd-journal-gatewayd
4353
4354 systemd_journal_gatewayd_SOURCES = \
4355 src/journal-remote/journal-gatewayd.c \
4356 src/journal-remote/microhttpd-util.h \
4357 src/journal-remote/microhttpd-util.c
4358
4359 systemd_journal_gatewayd_LDADD = \
4360 libshared.la \
4361 $(MICROHTTPD_LIBS)
4362
4363 if HAVE_GNUTLS
4364 systemd_journal_gatewayd_LDADD += \
4365 $(GNUTLS_LIBS)
4366 endif
4367
4368 systemd_journal_gatewayd_CFLAGS = \
4369 $(AM_CFLAGS) \
4370 $(MICROHTTPD_CFLAGS)
4371
4372 systemd_journal_gatewayd_CPPFLAGS = \
4373 $(AM_CPPFLAGS) \
4374 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4375
4376 dist_systemunit_DATA += \
4377 units/systemd-journal-gatewayd.socket
4378
4379 nodist_systemunit_DATA += \
4380 units/systemd-journal-gatewayd.service
4381
4382 dist_gatewayddocumentroot_DATA = \
4383 src/journal-remote/browse.html
4384
4385 endif
4386
4387 EXTRA_DIST += \
4388 units/systemd-journal-gatewayd.service.in
4389
4390 # ------------------------------------------------------------------------------
4391
4392 systemd_socket_proxyd_SOURCES = \
4393 src/socket-proxy/socket-proxyd.c
4394
4395 systemd_socket_proxyd_LDADD = \
4396 libshared.la
4397
4398 # ------------------------------------------------------------------------------
4399 if ENABLE_COREDUMP
4400 systemd_coredump_SOURCES = \
4401 src/journal/coredump.c \
4402 src/journal/coredump-vacuum.c \
4403 src/journal/coredump-vacuum.h
4404
4405 systemd_coredump_LDADD = \
4406 libshared.la
4407
4408 if HAVE_ELFUTILS
4409 systemd_coredump_SOURCES += \
4410 src/journal/stacktrace.c \
4411 src/journal/stacktrace.h
4412
4413 systemd_coredump_LDADD += \
4414 $(ELFUTILS_LIBS)
4415 endif
4416
4417 rootlibexec_PROGRAMS += \
4418 systemd-coredump
4419
4420 dist_pkgsysconf_DATA += \
4421 src/journal/coredump.conf
4422
4423 coredumpctl_SOURCES = \
4424 src/journal/coredumpctl.c
4425
4426 coredumpctl_LDADD = \
4427 libshared.la
4428
4429 bin_PROGRAMS += \
4430 coredumpctl
4431
4432 manual_tests += \
4433 test-coredump-vacuum
4434
4435 test_coredump_vacuum_SOURCES = \
4436 src/journal/test-coredump-vacuum.c \
4437 src/journal/coredump-vacuum.c \
4438 src/journal/coredump-vacuum.h
4439
4440 test_coredump_vacuum_LDADD = \
4441 libshared.la
4442
4443 if ENABLE_BASH_COMPLETION
4444 dist_bashcompletion_DATA += \
4445 shell-completion/bash/coredumpctl
4446 endif
4447
4448 if ENABLE_ZSH_COMPLETION
4449 dist_zshcompletion_DATA += \
4450 shell-completion/zsh/_coredumpctl
4451 endif
4452
4453 nodist_sysctl_DATA = \
4454 sysctl.d/50-coredump.conf
4455
4456 CLEANFILES += \
4457 sysctl.d/50-coredump.conf
4458 endif
4459
4460 EXTRA_DIST += \
4461 sysctl.d/50-coredump.conf.in
4462
4463 # ------------------------------------------------------------------------------
4464 if ENABLE_BINFMT
4465 systemd_binfmt_SOURCES = \
4466 src/binfmt/binfmt.c
4467
4468 systemd_binfmt_LDADD = \
4469 libshared.la
4470
4471 rootlibexec_PROGRAMS += \
4472 systemd-binfmt
4473
4474 dist_systemunit_DATA += \
4475 units/proc-sys-fs-binfmt_misc.automount \
4476 units/proc-sys-fs-binfmt_misc.mount
4477
4478 nodist_systemunit_DATA += \
4479 units/systemd-binfmt.service
4480
4481 INSTALL_DIRS += \
4482 $(prefix)/lib/binfmt.d \
4483 $(sysconfdir)/binfmt.d
4484
4485 SYSINIT_TARGET_WANTS += \
4486 systemd-binfmt.service \
4487 proc-sys-fs-binfmt_misc.automount
4488
4489 endif
4490
4491 EXTRA_DIST += \
4492 units/systemd-binfmt.service.in
4493
4494 # ------------------------------------------------------------------------------
4495 if ENABLE_VCONSOLE
4496 systemd_vconsole_setup_SOURCES = \
4497 src/vconsole/vconsole-setup.c
4498
4499 systemd_vconsole_setup_LDADD = \
4500 libshared.la
4501
4502 rootlibexec_PROGRAMS += \
4503 systemd-vconsole-setup
4504
4505 nodist_udevrules_DATA += \
4506 src/vconsole/90-vconsole.rules
4507
4508 nodist_systemunit_DATA += \
4509 units/systemd-vconsole-setup.service
4510
4511 SYSINIT_TARGET_WANTS += \
4512 systemd-vconsole-setup.service
4513 endif
4514
4515 EXTRA_DIST += \
4516 src/vconsole/90-vconsole.rules.in \
4517 units/systemd-vconsole-setup.service.in
4518
4519 # ------------------------------------------------------------------------------
4520 if ENABLE_BOOTCHART
4521 systemd_bootchart_SOURCES = \
4522 src/bootchart/bootchart.c \
4523 src/bootchart/bootchart.h \
4524 src/bootchart/store.c \
4525 src/bootchart/store.h \
4526 src/bootchart/svg.c \
4527 src/bootchart/svg.h
4528
4529 systemd_bootchart_LDADD = \
4530 libshared.la
4531
4532 rootlibexec_PROGRAMS += \
4533 systemd-bootchart
4534
4535 dist_pkgsysconf_DATA += \
4536 src/bootchart/bootchart.conf
4537
4538 nodist_systemunit_DATA += \
4539 units/systemd-bootchart.service
4540 endif
4541
4542 EXTRA_DIST += \
4543 units/systemd-bootchart.service.in
4544
4545 # ------------------------------------------------------------------------------
4546 if ENABLE_QUOTACHECK
4547 rootlibexec_PROGRAMS += \
4548 systemd-quotacheck
4549
4550 nodist_systemunit_DATA += \
4551 units/systemd-quotacheck.service
4552
4553 systemd_quotacheck_SOURCES = \
4554 src/quotacheck/quotacheck.c
4555
4556 systemd_quotacheck_LDADD = \
4557 libshared.la
4558 endif
4559
4560 EXTRA_DIST += \
4561 units/systemd-quotacheck.service.in
4562
4563 nodist_systemunit_DATA += \
4564 units/quotaon.service
4565
4566 # ------------------------------------------------------------------------------
4567 if ENABLE_RANDOMSEED
4568 rootlibexec_PROGRAMS += \
4569 systemd-random-seed
4570
4571 nodist_systemunit_DATA += \
4572 units/systemd-random-seed.service
4573
4574 systemd_random_seed_SOURCES = \
4575 src/random-seed/random-seed.c
4576
4577 systemd_random_seed_LDADD = \
4578 libshared.la
4579
4580 SYSINIT_TARGET_WANTS += \
4581 systemd-random-seed.service
4582
4583 endif
4584
4585 EXTRA_DIST += \
4586 units/systemd-random-seed.service.in
4587
4588 # ------------------------------------------------------------------------------
4589 if ENABLE_BACKLIGHT
4590 rootlibexec_PROGRAMS += \
4591 systemd-backlight
4592
4593 nodist_systemunit_DATA += \
4594 units/systemd-backlight@.service
4595
4596 systemd_backlight_SOURCES = \
4597 src/backlight/backlight.c
4598
4599 systemd_backlight_LDADD = \
4600 libshared.la
4601 endif
4602
4603 EXTRA_DIST += \
4604 units/systemd-backlight@.service.in
4605
4606 # ------------------------------------------------------------------------------
4607 if ENABLE_RFKILL
4608 rootlibexec_PROGRAMS += \
4609 systemd-rfkill
4610
4611 nodist_systemunit_DATA += \
4612 units/systemd-rfkill.service
4613
4614 dist_systemunit_DATA += \
4615 units/systemd-rfkill.socket
4616
4617 systemd_rfkill_SOURCES = \
4618 src/rfkill/rfkill.c
4619
4620 systemd_rfkill_LDADD = \
4621 libshared.la
4622 endif
4623
4624 EXTRA_DIST += \
4625 units/systemd-rfkill.service.in
4626
4627 # ------------------------------------------------------------------------------
4628 if HAVE_LIBCRYPTSETUP
4629 rootlibexec_PROGRAMS += \
4630 systemd-cryptsetup
4631
4632 systemgenerator_PROGRAMS += \
4633 systemd-cryptsetup-generator
4634
4635 dist_systemunit_DATA += \
4636 units/cryptsetup.target \
4637 units/cryptsetup-pre.target
4638
4639 systemd_cryptsetup_SOURCES = \
4640 src/cryptsetup/cryptsetup.c
4641
4642 systemd_cryptsetup_CFLAGS = \
4643 $(AM_CFLAGS) \
4644 $(LIBCRYPTSETUP_CFLAGS)
4645
4646 systemd_cryptsetup_LDADD = \
4647 libshared.la \
4648 $(LIBCRYPTSETUP_LIBS)
4649
4650 systemd_cryptsetup_generator_SOURCES = \
4651 src/cryptsetup/cryptsetup-generator.c
4652
4653 systemd_cryptsetup_generator_LDADD = \
4654 libshared.la
4655
4656 SYSINIT_TARGET_WANTS += \
4657 cryptsetup.target
4658
4659 endif
4660
4661 # ------------------------------------------------------------------------------
4662 if ENABLE_HOSTNAMED
4663 systemd_hostnamed_SOURCES = \
4664 src/hostname/hostnamed.c
4665
4666 systemd_hostnamed_LDADD = \
4667 libshared.la
4668
4669 rootlibexec_PROGRAMS += \
4670 systemd-hostnamed
4671
4672 nodist_systemunit_DATA += \
4673 units/systemd-hostnamed.service
4674
4675 dist_systemunit_DATA_busnames += \
4676 units/org.freedesktop.hostname1.busname
4677
4678 dist_dbuspolicy_DATA += \
4679 src/hostname/org.freedesktop.hostname1.conf
4680
4681 dist_dbussystemservice_DATA += \
4682 src/hostname/org.freedesktop.hostname1.service
4683
4684 polkitpolicy_files += \
4685 src/hostname/org.freedesktop.hostname1.policy
4686
4687 SYSTEM_UNIT_ALIASES += \
4688 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4689
4690 BUSNAMES_TARGET_WANTS += \
4691 org.freedesktop.hostname1.busname
4692
4693 hostnamectl_SOURCES = \
4694 src/hostname/hostnamectl.c
4695
4696 hostnamectl_LDADD = \
4697 libshared.la
4698
4699 bin_PROGRAMS += \
4700 hostnamectl
4701
4702 if ENABLE_BASH_COMPLETION
4703 dist_bashcompletion_DATA += \
4704 shell-completion/bash/hostnamectl
4705 endif
4706
4707 if ENABLE_ZSH_COMPLETION
4708 dist_zshcompletion_DATA += \
4709 shell-completion/zsh/_hostnamectl
4710 endif
4711 endif
4712
4713 polkitpolicy_in_files += \
4714 src/hostname/org.freedesktop.hostname1.policy.in
4715
4716 EXTRA_DIST += \
4717 units/systemd-hostnamed.service.in
4718
4719 # ------------------------------------------------------------------------------
4720 dist_systemunit_DATA_busnames += \
4721 units/org.freedesktop.systemd1.busname
4722
4723 BUSNAMES_TARGET_WANTS += \
4724 org.freedesktop.systemd1.busname
4725
4726 # ------------------------------------------------------------------------------
4727 if ENABLE_LOCALED
4728 systemd_localed_SOURCES = \
4729 src/locale/localed.c
4730
4731 systemd_localed_LDADD = \
4732 libshared.la \
4733 $(XKBCOMMON_LIBS)
4734
4735 systemd_localed_CFLAGS = \
4736 $(AM_CFLAGS) \
4737 $(XKBCOMMON_CFLAGS)
4738
4739 nodist_systemunit_DATA += \
4740 units/systemd-localed.service
4741
4742 dist_systemunit_DATA_busnames += \
4743 units/org.freedesktop.locale1.busname
4744
4745 rootlibexec_PROGRAMS += \
4746 systemd-localed
4747
4748 dist_dbuspolicy_DATA += \
4749 src/locale/org.freedesktop.locale1.conf
4750
4751 dist_dbussystemservice_DATA += \
4752 src/locale/org.freedesktop.locale1.service
4753
4754 polkitpolicy_files += \
4755 src/locale/org.freedesktop.locale1.policy
4756
4757 SYSTEM_UNIT_ALIASES += \
4758 systemd-localed.service dbus-org.freedesktop.locale1.service
4759
4760 BUSNAMES_TARGET_WANTS += \
4761 org.freedesktop.locale1.busname
4762
4763 dist_pkgdata_DATA = \
4764 src/locale/kbd-model-map \
4765 src/locale/language-fallback-map
4766
4767 localectl_SOURCES = \
4768 src/locale/localectl.c
4769
4770 localectl_LDADD = \
4771 libshared.la
4772
4773 bin_PROGRAMS += \
4774 localectl
4775
4776 if ENABLE_BASH_COMPLETION
4777 dist_bashcompletion_DATA += \
4778 shell-completion/bash/localectl
4779 endif
4780
4781 if ENABLE_ZSH_COMPLETION
4782 dist_zshcompletion_DATA += \
4783 shell-completion/zsh/_localectl
4784 endif
4785 endif
4786
4787 .PHONY: update-kbd-model-map
4788
4789 polkitpolicy_in_files += \
4790 src/locale/org.freedesktop.locale1.policy.in
4791
4792 EXTRA_DIST += \
4793 units/systemd-localed.service.in
4794
4795 # ------------------------------------------------------------------------------
4796 if ENABLE_TIMEDATED
4797 systemd_timedated_SOURCES = \
4798 src/timedate/timedated.c
4799
4800 systemd_timedated_LDADD = \
4801 libshared.la
4802
4803 rootlibexec_PROGRAMS += \
4804 systemd-timedated
4805
4806 dist_dbussystemservice_DATA += \
4807 src/timedate/org.freedesktop.timedate1.service
4808
4809 dist_dbuspolicy_DATA += \
4810 src/timedate/org.freedesktop.timedate1.conf
4811
4812 nodist_systemunit_DATA += \
4813 units/systemd-timedated.service
4814
4815 dist_systemunit_DATA_busnames += \
4816 units/org.freedesktop.timedate1.busname
4817
4818 polkitpolicy_files += \
4819 src/timedate/org.freedesktop.timedate1.policy
4820
4821 SYSTEM_UNIT_ALIASES += \
4822 systemd-timedated.service dbus-org.freedesktop.timedate1.service
4823
4824 BUSNAMES_TARGET_WANTS += \
4825 org.freedesktop.timedate1.busname
4826
4827 timedatectl_SOURCES = \
4828 src/timedate/timedatectl.c
4829
4830 timedatectl_LDADD = \
4831 libshared.la
4832
4833 bin_PROGRAMS += \
4834 timedatectl
4835
4836 if ENABLE_BASH_COMPLETION
4837 dist_bashcompletion_DATA += \
4838 shell-completion/bash/timedatectl
4839 endif
4840
4841 if ENABLE_ZSH_COMPLETION
4842 dist_zshcompletion_DATA += \
4843 shell-completion/zsh/_timedatectl
4844 endif
4845 endif
4846
4847 polkitpolicy_in_files += \
4848 src/timedate/org.freedesktop.timedate1.policy.in
4849
4850 EXTRA_DIST += \
4851 units/systemd-timedated.service.in
4852
4853 # ------------------------------------------------------------------------------
4854 if ENABLE_TIMESYNCD
4855 systemd_timesyncd_SOURCES = \
4856 src/timesync/timesyncd.c \
4857 src/timesync/timesyncd-manager.c \
4858 src/timesync/timesyncd-manager.h \
4859 src/timesync/timesyncd-conf.c \
4860 src/timesync/timesyncd-conf.h \
4861 src/timesync/timesyncd-server.c \
4862 src/timesync/timesyncd-server.h
4863
4864 nodist_systemd_timesyncd_SOURCES = \
4865 src/timesync/timesyncd-gperf.c
4866
4867 systemd_timesyncd_LDADD = \
4868 libsystemd-network.la \
4869 libshared.la
4870
4871 rootlibexec_PROGRAMS += \
4872 systemd-timesyncd
4873
4874 nodist_systemunit_DATA += \
4875 units/systemd-timesyncd.service
4876
4877 GENERAL_ALIASES += \
4878 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
4879
4880
4881 nodist_pkgsysconf_DATA += \
4882 src/timesync/timesyncd.conf
4883
4884 endif
4885
4886 gperf_gperf_sources += \
4887 src/timesync/timesyncd-gperf.gperf
4888
4889 EXTRA_DIST += \
4890 units/systemd-timesyncd.service.in \
4891 src/timesync/timesyncd.conf.in
4892
4893 # ------------------------------------------------------------------------------
4894 if HAVE_MYHOSTNAME
4895 libnss_myhostname_la_SOURCES = \
4896 src/nss-myhostname/nss-myhostname.sym \
4897 src/nss-myhostname/nss-myhostname.c
4898
4899 libnss_myhostname_la_LDFLAGS = \
4900 $(AM_LDFLAGS) \
4901 -module \
4902 -export-dynamic \
4903 -avoid-version \
4904 -shared \
4905 -shrext .so.2 \
4906 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
4907
4908 libnss_myhostname_la_LIBADD = \
4909 libsystemd-internal.la
4910
4911 lib_LTLIBRARIES += \
4912 libnss_myhostname.la
4913 endif
4914
4915 # ------------------------------------------------------------------------------
4916 if ENABLE_MACHINED
4917 systemd_machined_SOURCES = \
4918 src/machine/machined.c \
4919 src/machine/machined.h
4920
4921 systemd_machined_LDADD = \
4922 libmachine-core.la
4923
4924 rootlibexec_PROGRAMS += \
4925 systemd-machined
4926
4927 libmachine_core_la_SOURCES = \
4928 src/machine/machine.c \
4929 src/machine/machine.h \
4930 src/machine/machined-dbus.c \
4931 src/machine/machine-dbus.c \
4932 src/machine/machine-dbus.h \
4933 src/machine/image-dbus.c \
4934 src/machine/image-dbus.h
4935
4936 libmachine_core_la_LIBADD = \
4937 libshared.la
4938
4939 noinst_LTLIBRARIES += \
4940 libmachine-core.la
4941
4942 machinectl_SOURCES = \
4943 src/machine/machinectl.c
4944
4945 machinectl_LDADD = \
4946 libshared.la
4947
4948 rootbin_PROGRAMS += \
4949 machinectl
4950
4951 if ENABLE_BASH_COMPLETION
4952 dist_bashcompletion_DATA += \
4953 shell-completion/bash/machinectl
4954 endif
4955
4956 test_machine_tables_SOURCES = \
4957 src/machine/test-machine-tables.c
4958
4959 test_machine_tables_LDADD = \
4960 libmachine-core.la
4961
4962 tests += \
4963 test-machine-tables
4964
4965 nodist_systemunit_DATA += \
4966 units/systemd-machined.service
4967
4968 dist_systemunit_DATA += \
4969 units/machine.slice
4970
4971 dist_systemunit_DATA_busnames += \
4972 units/org.freedesktop.machine1.busname
4973
4974 dist_dbussystemservice_DATA += \
4975 src/machine/org.freedesktop.machine1.service
4976
4977 dist_dbuspolicy_DATA += \
4978 src/machine/org.freedesktop.machine1.conf
4979
4980 polkitpolicy_files += \
4981 src/machine/org.freedesktop.machine1.policy
4982
4983 if ENABLE_ZSH_COMPLETION
4984 dist_zshcompletion_DATA += \
4985 shell-completion/zsh/_machinectl \
4986 shell-completion/zsh/_sd_machines
4987 endif
4988
4989 SYSTEM_UNIT_ALIASES += \
4990 systemd-machined.service dbus-org.freedesktop.machine1.service
4991
4992 BUSNAMES_TARGET_WANTS += \
4993 org.freedesktop.machine1.busname
4994
4995 libnss_mymachines_la_SOURCES = \
4996 src/nss-mymachines/nss-mymachines.sym \
4997 src/nss-mymachines/nss-mymachines.c
4998
4999 libnss_mymachines_la_LDFLAGS = \
5000 $(AM_LDFLAGS) \
5001 -module \
5002 -export-dynamic \
5003 -avoid-version \
5004 -shared \
5005 -shrext .so.2 \
5006 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
5007
5008 libnss_mymachines_la_LIBADD = \
5009 libsystemd-internal.la
5010
5011 lib_LTLIBRARIES += \
5012 libnss_mymachines.la
5013
5014 endif
5015
5016 polkitpolicy_in_files += \
5017 src/machine/org.freedesktop.machine1.policy.in
5018
5019 EXTRA_DIST += \
5020 units/systemd-machined.service.in
5021
5022 # ------------------------------------------------------------------------------
5023 if ENABLE_IMPORTD
5024
5025 if HAVE_LIBCURL
5026 if HAVE_XZ
5027 if HAVE_ZLIB
5028 if HAVE_BZIP2
5029 if HAVE_GCRYPT
5030
5031 rootlibexec_PROGRAMS += \
5032 systemd-importd \
5033 systemd-pull \
5034 systemd-import \
5035 systemd-export
5036
5037 systemd_importd_SOURCES = \
5038 src/import/importd.c
5039
5040 systemd_importd_CFLAGS = \
5041 $(AM_CFLAGS) \
5042 -D SYSTEMD_PULL_PATH=\"$(rootlibexecdir)/systemd-pull\" \
5043 -D SYSTEMD_IMPORT_PATH=\"$(rootlibexecdir)/systemd-import\" \
5044 -D SYSTEMD_EXPORT_PATH=\"$(rootlibexecdir)/systemd-export\"
5045
5046 systemd_importd_LDADD = \
5047 libshared.la
5048
5049 systemd_pull_SOURCES = \
5050 src/import/pull.c \
5051 src/import/pull-raw.c \
5052 src/import/pull-raw.h \
5053 src/import/pull-tar.c \
5054 src/import/pull-tar.h \
5055 src/import/pull-job.c \
5056 src/import/pull-job.h \
5057 src/import/pull-common.c \
5058 src/import/pull-common.h \
5059 src/import/import-common.c \
5060 src/import/import-common.h \
5061 src/import/import-compress.c \
5062 src/import/import-compress.h \
5063 src/import/curl-util.c \
5064 src/import/curl-util.h \
5065 src/import/aufs-util.c \
5066 src/import/aufs-util.h \
5067 src/import/qcow2-util.c \
5068 src/import/qcow2-util.h
5069
5070 systemd_pull_CFLAGS = \
5071 $(AM_CFLAGS) \
5072 $(LIBCURL_CFLAGS) \
5073 $(XZ_CFLAGS) \
5074 $(ZLIB_CFLAGS) \
5075 $(GCRYPT_CFLAGS) \
5076 -D VENDOR_KEYRING_PATH=\"$(rootlibexecdir)/import-pubring.gpg\" \
5077 -D USER_KEYRING_PATH=\"$(pkgsysconfdir)/import-pubring.gpg\"
5078
5079 systemd_pull_LDADD = \
5080 libshared.la \
5081 $(LIBCURL_LIBS) \
5082 $(XZ_LIBS) \
5083 $(ZLIB_LIBS) \
5084 -lbz2 \
5085 $(GCRYPT_LIBS)
5086
5087 systemd_import_SOURCES = \
5088 src/import/import.c \
5089 src/import/import-raw.c \
5090 src/import/import-raw.h \
5091 src/import/import-tar.c \
5092 src/import/import-tar.h \
5093 src/import/import-common.c \
5094 src/import/import-common.h \
5095 src/import/import-compress.c \
5096 src/import/import-compress.h \
5097 src/import/qcow2-util.c \
5098 src/import/qcow2-util.h
5099
5100 systemd_import_CFLAGS = \
5101 $(AM_CFLAGS) \
5102 $(XZ_CFLAGS) \
5103 $(ZLIB_CFLAGS)
5104
5105 systemd_import_LDADD = \
5106 libshared.la \
5107 $(XZ_LIBS) \
5108 $(ZLIB_LIBS) \
5109 -lbz2
5110
5111 systemd_export_SOURCES = \
5112 src/import/export.c \
5113 src/import/export-tar.c \
5114 src/import/export-tar.h \
5115 src/import/export-raw.c \
5116 src/import/export-raw.h \
5117 src/import/import-common.c \
5118 src/import/import-common.h \
5119 src/import/import-compress.c \
5120 src/import/import-compress.h
5121
5122 systemd_export_CFLAGS = \
5123 $(AM_CFLAGS) \
5124 $(XZ_CFLAGS) \
5125 $(ZLIB_CFLAGS)
5126
5127 systemd_export_LDADD = \
5128 libshared.la \
5129 $(XZ_LIBS) \
5130 $(ZLIB_LIBS) \
5131 -lbz2
5132
5133 dist_rootlibexec_DATA = \
5134 src/import/import-pubring.gpg
5135
5136 nodist_systemunit_DATA += \
5137 units/systemd-importd.service
5138
5139 dist_systemunit_DATA_busnames += \
5140 units/org.freedesktop.import1.busname
5141
5142 BUSNAMES_TARGET_WANTS += \
5143 org.freedesktop.import1.busname
5144
5145 SYSTEM_UNIT_ALIASES += \
5146 systemd-importd.service dbus-org.freedesktop.import1.service
5147
5148 dist_dbussystemservice_DATA += \
5149 src/import/org.freedesktop.import1.service
5150
5151 dist_dbuspolicy_DATA += \
5152 src/import/org.freedesktop.import1.conf
5153
5154 polkitpolicy_files += \
5155 src/import/org.freedesktop.import1.policy
5156
5157 manual_tests += \
5158 test-qcow2
5159
5160 test_qcow2_SOURCES = \
5161 src/import/test-qcow2.c \
5162 src/import/qcow2-util.c \
5163 src/import/qcow2-util.h
5164
5165 test_qcow2_CFLAGS = \
5166 $(AM_CFLAGS) \
5167 $(ZLIB_CFLAGS)
5168
5169 test_qcow2_LDADD = \
5170 libshared.la \
5171 $(ZLIB_LIBS)
5172
5173 endif
5174 endif
5175 endif
5176 endif
5177 endif
5178
5179 endif
5180
5181 polkitpolicy_in_files += \
5182 src/import/org.freedesktop.import1.policy.in
5183
5184 EXTRA_DIST += \
5185 units/systemd-importd.service.in
5186
5187
5188 # ------------------------------------------------------------------------------
5189 if ENABLE_RESOLVED
5190
5191 systemd_resolved_SOURCES = \
5192 src/resolve/resolved.c \
5193 src/resolve/resolved-manager.c \
5194 src/resolve/resolved-manager.h \
5195 src/resolve/resolved-conf.c \
5196 src/resolve/resolved-conf.h \
5197 src/resolve/resolved-resolv-conf.c \
5198 src/resolve/resolved-resolv-conf.h \
5199 src/resolve/resolved-bus.c \
5200 src/resolve/resolved-bus.h \
5201 src/resolve/resolved-link.h \
5202 src/resolve/resolved-link.c \
5203 src/resolve/resolved-link-bus.c \
5204 src/resolve/resolved-link-bus.h \
5205 src/resolve/resolved-llmnr.h \
5206 src/resolve/resolved-llmnr.c \
5207 src/resolve/resolved-mdns.h \
5208 src/resolve/resolved-mdns.c \
5209 src/resolve/resolved-def.h \
5210 src/resolve/resolved-dns-rr.h \
5211 src/resolve/resolved-dns-rr.c \
5212 src/resolve/resolved-dns-question.h \
5213 src/resolve/resolved-dns-question.c \
5214 src/resolve/resolved-dns-answer.h \
5215 src/resolve/resolved-dns-answer.c \
5216 src/resolve/resolved-dns-packet.h \
5217 src/resolve/resolved-dns-packet.c \
5218 src/resolve/resolved-dns-query.h \
5219 src/resolve/resolved-dns-query.c \
5220 src/resolve/resolved-dns-synthesize.h \
5221 src/resolve/resolved-dns-synthesize.c \
5222 src/resolve/resolved-dns-transaction.h \
5223 src/resolve/resolved-dns-transaction.c \
5224 src/resolve/resolved-dns-scope.h \
5225 src/resolve/resolved-dns-scope.c \
5226 src/resolve/resolved-dns-server.h \
5227 src/resolve/resolved-dns-server.c \
5228 src/resolve/resolved-dns-search-domain.h \
5229 src/resolve/resolved-dns-search-domain.c \
5230 src/resolve/resolved-dns-cache.h \
5231 src/resolve/resolved-dns-cache.c \
5232 src/resolve/resolved-dns-zone.h \
5233 src/resolve/resolved-dns-zone.c \
5234 src/resolve/resolved-dns-stream.h \
5235 src/resolve/resolved-dns-stream.c \
5236 src/resolve/resolved-dns-dnssec.h \
5237 src/resolve/resolved-dns-dnssec.c \
5238 src/resolve/resolved-dns-trust-anchor.h \
5239 src/resolve/resolved-dns-trust-anchor.c \
5240 src/resolve/resolved-etc-hosts.h \
5241 src/resolve/resolved-etc-hosts.c \
5242 src/resolve/dns-type.c \
5243 src/resolve/dns-type.h
5244
5245 nodist_systemd_resolved_SOURCES = \
5246 src/resolve/dns_type-from-name.h \
5247 src/resolve/dns_type-to-name.h \
5248 src/resolve/resolved-gperf.c
5249
5250 systemd_resolved_LDADD = \
5251 libsystemd-network.la \
5252 libshared.la
5253
5254 rootlibexec_PROGRAMS += \
5255 systemd-resolved
5256
5257 nodist_systemunit_DATA += \
5258 units/systemd-resolved.service
5259
5260 dist_systemunit_DATA_busnames += \
5261 units/org.freedesktop.resolve1.busname
5262
5263 dist_dbuspolicy_DATA += \
5264 src/resolve/org.freedesktop.resolve1.conf
5265
5266 dist_dbussystemservice_DATA += \
5267 src/resolve/org.freedesktop.resolve1.service
5268
5269 SYSTEM_UNIT_ALIASES += \
5270 systemd-resolved.service dbus-org.freedesktop.resolve1.service
5271
5272 BUSNAMES_TARGET_WANTS += \
5273 org.freedesktop.resolve1.busname
5274
5275 GENERAL_ALIASES += \
5276 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
5277
5278 nodist_pkgsysconf_DATA += \
5279 src/resolve/resolved.conf
5280
5281 libnss_resolve_la_SOURCES = \
5282 src/nss-resolve/nss-resolve.sym \
5283 src/nss-resolve/nss-resolve.c
5284
5285 libnss_resolve_la_LDFLAGS = \
5286 $(AM_LDFLAGS) \
5287 -module \
5288 -export-dynamic \
5289 -avoid-version \
5290 -shared \
5291 -shrext .so.2 \
5292 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
5293
5294 libnss_resolve_la_LIBADD = \
5295 libsystemd-internal.la \
5296 -ldl
5297
5298 lib_LTLIBRARIES += \
5299 libnss_resolve.la
5300
5301 systemd_resolve_SOURCES = \
5302 src/resolve/resolve-tool.c \
5303 src/resolve/resolved-dns-dnssec.c \
5304 src/resolve/resolved-dns-dnssec.h \
5305 src/resolve/resolved-dns-packet.c \
5306 src/resolve/resolved-dns-packet.h \
5307 src/resolve/resolved-dns-rr.c \
5308 src/resolve/resolved-dns-rr.h \
5309 src/resolve/resolved-dns-answer.c \
5310 src/resolve/resolved-dns-answer.h \
5311 src/resolve/resolved-dns-question.c \
5312 src/resolve/resolved-dns-question.h \
5313 src/resolve/dns-type.c \
5314 src/resolve/dns-type.h
5315
5316 nodist_systemd_resolve_SOURCES = \
5317 src/resolve/dns_type-from-name.h \
5318 src/resolve/dns_type-to-name.h
5319
5320 systemd_resolve_LDADD = \
5321 libshared.la
5322
5323 bin_PROGRAMS += \
5324 systemd-resolve
5325
5326 tests += \
5327 test-dns-domain \
5328 test-dnssec
5329
5330 manual_tests += \
5331 test-dnssec-complex
5332
5333 test_dnssec_SOURCES = \
5334 src/resolve/test-dnssec.c \
5335 src/resolve/resolved-dns-packet.c \
5336 src/resolve/resolved-dns-packet.h \
5337 src/resolve/resolved-dns-rr.c \
5338 src/resolve/resolved-dns-rr.h \
5339 src/resolve/resolved-dns-answer.c \
5340 src/resolve/resolved-dns-answer.h \
5341 src/resolve/resolved-dns-question.c \
5342 src/resolve/resolved-dns-question.h \
5343 src/resolve/resolved-dns-dnssec.c \
5344 src/resolve/resolved-dns-dnssec.h \
5345 src/resolve/dns-type.c \
5346 src/resolve/dns-type.h
5347
5348 test_dnssec_LDADD = \
5349 libshared.la
5350
5351 test_dnssec_complex_SOURCES = \
5352 src/resolve/test-dnssec-complex.c \
5353 src/resolve/dns-type.c \
5354 src/resolve/dns-type.h
5355
5356 test_dnssec_complex_LDADD = \
5357 libshared.la
5358
5359 endif
5360
5361 gperf_txt_sources += \
5362 src/resolve/dns_type-list.txt
5363
5364 gperf_gperf_sources += \
5365 src/resolve/resolved-gperf.gperf
5366
5367 EXTRA_DIST += \
5368 units/systemd-resolved.service.m4.in \
5369 src/resolve/resolved.conf.in
5370
5371 # ------------------------------------------------------------------------------
5372 if ENABLE_NETWORKD
5373 rootlibexec_PROGRAMS += \
5374 systemd-networkd
5375
5376 systemd_networkd_SOURCES = \
5377 src/network/networkd.c
5378
5379 systemd_networkd_LDADD = \
5380 libnetworkd-core.la
5381
5382 if HAVE_LIBIPTC
5383 systemd_networkd_LDADD += \
5384 libfirewall.la
5385 endif
5386
5387 noinst_LTLIBRARIES += \
5388 libnetworkd-core.la
5389
5390 libnetworkd_core_la_CFLAGS = \
5391 $(AM_CFLAGS)
5392
5393 libnetworkd_core_la_SOURCES = \
5394 src/libsystemd-network/network-internal.h \
5395 src/network/networkd.h \
5396 src/network/networkd-link.h \
5397 src/network/networkd-link.c \
5398 src/network/networkd-netdev.h \
5399 src/network/networkd-netdev.c \
5400 src/network/networkd-netdev-tunnel.h \
5401 src/network/networkd-netdev-tunnel.c \
5402 src/network/networkd-netdev-veth.h \
5403 src/network/networkd-netdev-veth.c \
5404 src/network/networkd-netdev-vxlan.h \
5405 src/network/networkd-netdev-vxlan.c \
5406 src/network/networkd-netdev-vlan.h \
5407 src/network/networkd-netdev-vlan.c \
5408 src/network/networkd-netdev-macvlan.h \
5409 src/network/networkd-netdev-macvlan.c \
5410 src/network/networkd-netdev-ipvlan.h \
5411 src/network/networkd-netdev-ipvlan.c \
5412 src/network/networkd-netdev-dummy.h \
5413 src/network/networkd-netdev-dummy.c \
5414 src/network/networkd-netdev-tuntap.h \
5415 src/network/networkd-netdev-tuntap.c \
5416 src/network/networkd-netdev-bond.h \
5417 src/network/networkd-netdev-bond.c \
5418 src/network/networkd-netdev-bridge.h \
5419 src/network/networkd-netdev-bridge.c \
5420 src/network/networkd-link-bus.c \
5421 src/network/networkd-ipv4ll.c \
5422 src/network/networkd-dhcp4.c \
5423 src/network/networkd-dhcp6.c \
5424 src/network/networkd-ndisc.c \
5425 src/network/networkd-network.h \
5426 src/network/networkd-network.c \
5427 src/network/networkd-network-bus.c \
5428 src/network/networkd-address.h \
5429 src/network/networkd-address.c \
5430 src/network/networkd-route.h \
5431 src/network/networkd-route.c \
5432 src/network/networkd-manager.c \
5433 src/network/networkd-manager-bus.c \
5434 src/network/networkd-fdb.h \
5435 src/network/networkd-fdb.c \
5436 src/network/networkd-address-pool.h \
5437 src/network/networkd-address-pool.c \
5438 src/network/networkd-util.h \
5439 src/network/networkd-util.c
5440
5441 nodist_libnetworkd_core_la_SOURCES = \
5442 src/network/networkd-network-gperf.c \
5443 src/network/networkd-netdev-gperf.c
5444
5445 libnetworkd_core_la_LIBADD = \
5446 libsystemd-network.la \
5447 libshared.la
5448
5449 rootlibexec_PROGRAMS += \
5450 systemd-networkd-wait-online
5451
5452 systemd_networkd_wait_online_CFLAGS = \
5453 $(AM_CFLAGS)
5454
5455 systemd_networkd_wait_online_SOURCES = \
5456 src/libsystemd-network/network-internal.h \
5457 src/network/networkd-wait-online.h \
5458 src/network/networkd-wait-online-link.h \
5459 src/network/networkd-wait-online.c \
5460 src/network/networkd-wait-online-manager.c \
5461 src/network/networkd-wait-online-link.c
5462
5463 systemd_networkd_wait_online_LDADD = \
5464 libsystemd-network.la \
5465 libshared.la
5466
5467 rootbin_PROGRAMS += \
5468 networkctl
5469
5470 networkctl_SOURCES = \
5471 src/network/networkctl.c
5472
5473 networkctl_LDADD = \
5474 libshared.la \
5475 libsystemd-network.la
5476
5477 if ENABLE_BASH_COMPLETION
5478 dist_bashcompletion_DATA += \
5479 shell-completion/bash/networkctl
5480 endif
5481
5482 test_network_SOURCES = \
5483 src/network/test-network.c
5484
5485 test_network_LDADD = \
5486 libnetworkd-core.la
5487
5488 if HAVE_LIBIPTC
5489 test_network_LDADD += \
5490 libfirewall.la
5491 endif
5492
5493 test_network_tables_SOURCES = \
5494 src/network/test-network-tables.c \
5495 src/shared/test-tables.h
5496
5497 test_network_tables_LDADD = \
5498 libnetworkd-core.la \
5499 libudev-core.la
5500
5501 if HAVE_LIBIPTC
5502 test_network_tables_LDADD += \
5503 libfirewall.la
5504 endif
5505
5506 tests += \
5507 test-network \
5508 test-network-tables
5509
5510 dist_systemunit_DATA += \
5511 units/systemd-networkd.socket
5512
5513 nodist_systemunit_DATA += \
5514 units/systemd-networkd.service \
5515 units/systemd-networkd-wait-online.service
5516
5517 dist_systemunit_DATA_busnames += \
5518 units/org.freedesktop.network1.busname
5519
5520 dist_dbussystemservice_DATA += \
5521 src/network/org.freedesktop.network1.service
5522
5523 dist_dbuspolicy_DATA += \
5524 src/network/org.freedesktop.network1.conf
5525
5526 GENERAL_ALIASES += \
5527 $(systemunitdir)/systemd-networkd.socket $(pkgsysconfdir)/system/sockets.target.wants/systemd-networkd.socket \
5528 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
5529 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
5530
5531 SYSTEM_UNIT_ALIASES += \
5532 systemd-networkd.service dbus-org.freedesktop.network1.service
5533
5534 BUSNAMES_TARGET_WANTS += \
5535 org.freedesktop.network1.busname
5536
5537 endif
5538
5539 gperf_gperf_sources += \
5540 src/network/networkd-network-gperf.gperf \
5541 src/network/networkd-netdev-gperf.gperf
5542
5543 EXTRA_DIST += \
5544 units/systemd-networkd.service.m4.in \
5545 units/systemd-networkd-wait-online.service.in \
5546 test/networkd-test.py
5547
5548 # ------------------------------------------------------------------------------
5549 if ENABLE_LOGIND
5550 systemd_logind_SOURCES = \
5551 src/login/logind.c \
5552 src/login/logind.h
5553
5554 nodist_systemd_logind_SOURCES = \
5555 src/login/logind-gperf.c
5556
5557 systemd_logind_LDADD = \
5558 liblogind-core.la
5559
5560 liblogind_core_la_SOURCES = \
5561 src/login/logind-core.c \
5562 src/login/logind-device.c \
5563 src/login/logind-device.h \
5564 src/login/logind-button.c \
5565 src/login/logind-button.h \
5566 src/login/logind-action.c \
5567 src/login/logind-action.h \
5568 src/login/logind-seat.c \
5569 src/login/logind-seat.h \
5570 src/login/logind-session.c \
5571 src/login/logind-session.h \
5572 src/login/logind-session-device.c \
5573 src/login/logind-session-device.h \
5574 src/login/logind-user.c \
5575 src/login/logind-user.h \
5576 src/login/logind-inhibit.c \
5577 src/login/logind-inhibit.h \
5578 src/login/logind-dbus.c \
5579 src/login/logind-session-dbus.c \
5580 src/login/logind-seat-dbus.c \
5581 src/login/logind-user-dbus.c \
5582 src/login/logind-utmp.c \
5583 src/login/logind-acl.h
5584
5585 liblogind_core_la_LIBADD = \
5586 libshared.la
5587
5588 if HAVE_ACL
5589 liblogind_core_la_SOURCES += \
5590 src/login/logind-acl.c
5591 endif
5592
5593 noinst_LTLIBRARIES += \
5594 liblogind-core.la
5595
5596 rootlibexec_PROGRAMS += \
5597 systemd-logind
5598
5599 loginctl_SOURCES = \
5600 src/login/loginctl.c \
5601 src/login/sysfs-show.h \
5602 src/login/sysfs-show.c
5603
5604 loginctl_LDADD = \
5605 libshared.la
5606
5607 rootbin_PROGRAMS += \
5608 loginctl
5609
5610 if ENABLE_BASH_COMPLETION
5611 dist_bashcompletion_DATA += \
5612 shell-completion/bash/loginctl
5613 endif
5614
5615 if ENABLE_ZSH_COMPLETION
5616 dist_zshcompletion_DATA += \
5617 shell-completion/zsh/_loginctl \
5618 shell-completion/zsh/_systemd-inhibit
5619 endif
5620
5621 systemd_inhibit_SOURCES = \
5622 src/login/inhibit.c
5623
5624 systemd_inhibit_LDADD = \
5625 libshared.la
5626
5627 rootbin_PROGRAMS += \
5628 systemd-inhibit
5629
5630 test_login_SOURCES = \
5631 src/libsystemd/sd-login/test-login.c
5632
5633 test_login_LDADD = \
5634 libshared.la
5635
5636 test_login_shared_SOURCES = \
5637 src/login/test-login-shared.c
5638
5639 test_login_shared_LDADD = \
5640 libshared.la
5641
5642 test_inhibit_SOURCES = \
5643 src/login/test-inhibit.c
5644
5645 test_inhibit_LDADD = \
5646 libshared.la
5647
5648 test_login_tables_SOURCES = \
5649 src/login/test-login-tables.c
5650
5651 test_login_tables_LDADD = \
5652 liblogind-core.la
5653
5654 manual_tests += \
5655 test-login \
5656 test-inhibit
5657
5658 tests += \
5659 test-login-tables \
5660 test-login-shared
5661
5662 if HAVE_PAM
5663 pam_systemd_la_SOURCES = \
5664 src/login/pam_systemd.sym \
5665 src/login/pam_systemd.c
5666
5667 pam_systemd_la_CFLAGS = \
5668 $(AM_CFLAGS) \
5669 $(PAM_CFLAGS)
5670
5671 pam_systemd_la_LDFLAGS = \
5672 $(AM_LDFLAGS) \
5673 -module \
5674 -export-dynamic \
5675 -avoid-version \
5676 -shared \
5677 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
5678
5679 pam_systemd_la_LIBADD = \
5680 libshared.la \
5681 $(PAM_LIBS)
5682
5683 pamlib_LTLIBRARIES = \
5684 pam_systemd.la
5685
5686 dist_pamconf_DATA = \
5687 src/login/systemd-user
5688
5689 EXTRA_DIST += \
5690 src/login/systemd-user.m4
5691 endif
5692
5693 nodist_systemunit_DATA += \
5694 units/systemd-logind.service
5695
5696 dist_systemunit_DATA += \
5697 units/user.slice
5698
5699 dist_systemunit_DATA_busnames += \
5700 units/org.freedesktop.login1.busname
5701
5702 dist_dbussystemservice_DATA += \
5703 src/login/org.freedesktop.login1.service
5704
5705 dist_dbuspolicy_DATA += \
5706 src/login/org.freedesktop.login1.conf
5707
5708 dist_pkgsysconf_DATA += \
5709 src/login/logind.conf
5710
5711 polkitpolicy_files += \
5712 src/login/org.freedesktop.login1.policy
5713
5714 INSTALL_DIRS += \
5715 $(systemdstatedir)
5716
5717 MULTI_USER_TARGET_WANTS += \
5718 systemd-logind.service
5719
5720 SYSTEM_UNIT_ALIASES += \
5721 systemd-logind.service dbus-org.freedesktop.login1.service
5722
5723 BUSNAMES_TARGET_WANTS += \
5724 org.freedesktop.login1.busname
5725
5726 dist_udevrules_DATA += \
5727 src/login/70-uaccess.rules \
5728 src/login/70-power-switch.rules
5729
5730 nodist_udevrules_DATA += \
5731 src/login/71-seat.rules \
5732 src/login/73-seat-late.rules
5733
5734 endif
5735
5736 polkitpolicy_in_files += \
5737 src/login/org.freedesktop.login1.policy.in
5738
5739 gperf_gperf_sources += \
5740 src/login/logind-gperf.gperf
5741
5742 EXTRA_DIST += \
5743 src/login/71-seat.rules.in \
5744 src/login/73-seat-late.rules.in \
5745 units/systemd-logind.service.in
5746
5747 # ------------------------------------------------------------------------------
5748 if HAVE_PAM
5749
5750 systemd_user_sessions_SOURCES = \
5751 src/user-sessions/user-sessions.c
5752
5753 systemd_user_sessions_LDADD = \
5754 libshared.la
5755
5756 rootlibexec_PROGRAMS += \
5757 systemd-user-sessions
5758
5759 nodist_systemunit_DATA += \
5760 units/systemd-user-sessions.service
5761
5762 MULTI_USER_TARGET_WANTS += \
5763 systemd-user-sessions.service
5764
5765 endif
5766
5767 EXTRA_DIST += \
5768 units/systemd-user-sessions.service.in
5769
5770 # ------------------------------------------------------------------------------
5771 EXTRA_DIST += \
5772 test/Makefile \
5773 test/README.testsuite \
5774 test/TEST-01-BASIC \
5775 test/TEST-01-BASIC/Makefile \
5776 test/TEST-01-BASIC/test.sh \
5777 test/TEST-02-CRYPTSETUP \
5778 test/TEST-02-CRYPTSETUP/Makefile \
5779 test/TEST-02-CRYPTSETUP/test.sh \
5780 test/TEST-03-JOBS \
5781 test/TEST-03-JOBS/Makefile \
5782 test/TEST-03-JOBS/test-jobs.sh \
5783 test/TEST-03-JOBS/test.sh \
5784 test/TEST-04-JOURNAL/Makefile \
5785 test/TEST-04-JOURNAL/test-journal.sh \
5786 test/TEST-04-JOURNAL/test.sh \
5787 test/TEST-05-RLIMITS/Makefile \
5788 test/TEST-05-RLIMITS/test-rlimits.sh \
5789 test/TEST-05-RLIMITS/test.sh \
5790 test/test-functions
5791
5792 EXTRA_DIST += \
5793 test/loopy2.service \
5794 test/loopy3.service \
5795 test/loopy4.service \
5796 test/loopy.service \
5797 test/loopy.service.d \
5798 test/loopy.service.d/compat.conf
5799
5800 # ------------------------------------------------------------------------------
5801 if ENABLE_COMPAT_LIBS
5802 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
5803 $(AM_V_at)$(MKDIR_P) $(dir $@)
5804 $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
5805
5806 BUILT_SOURCES += \
5807 libsystemd-journal.c \
5808 libsystemd-login.c \
5809 libsystemd-id128.c \
5810 libsystemd-daemon.c
5811
5812 nodist_libsystemd_journal_la_SOURCES = \
5813 libsystemd-journal.c
5814
5815 libsystemd_journal_la_SOURCES = \
5816 src/compat-libs/libsystemd-journal.sym
5817
5818 libsystemd_journal_la_CPPFLAGS = \
5819 $(AM_CPPFLAGS) \
5820 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5821
5822 libsystemd_journal_la_LDFLAGS = \
5823 $(AM_LDFLAGS) \
5824 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
5825 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
5826
5827 libsystemd_journal_la_LIBADD = \
5828 libsystemd-journal-internal.la \
5829 libsystemd-internal.la
5830
5831 nodist_libsystemd_login_la_SOURCES = \
5832 libsystemd-login.c
5833
5834 libsystemd_login_la_SOURCES = \
5835 src/compat-libs/libsystemd-login.sym
5836
5837 libsystemd_login_la_CPPFLAGS = \
5838 $(AM_CPPFLAGS) \
5839 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5840
5841 libsystemd_login_la_LDFLAGS = \
5842 $(AM_LDFLAGS) \
5843 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
5844 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym
5845
5846 libsystemd_login_la_LIBADD = \
5847 libsystemd-internal.la
5848
5849 nodist_libsystemd_id128_la_SOURCES = \
5850 libsystemd-id128.c
5851
5852 libsystemd_id128_la_SOURCES = \
5853 src/compat-libs/libsystemd-id128.sym
5854
5855 libsystemd_id128_la_CPPFLAGS = \
5856 $(AM_CPPFLAGS) \
5857 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5858
5859 libsystemd_id128_la_LDFLAGS = \
5860 $(AM_LDFLAGS) \
5861 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
5862 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym
5863
5864 libsystemd_id128_la_LIBADD = \
5865 libsystemd-internal.la
5866
5867 nodist_libsystemd_daemon_la_SOURCES = \
5868 libsystemd-daemon.c
5869
5870 libsystemd_daemon_la_SOURCES = \
5871 src/compat-libs/libsystemd-daemon.sym
5872
5873 libsystemd_daemon_la_CPPFLAGS = \
5874 $(AM_CPPFLAGS) \
5875 -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
5876
5877 libsystemd_daemon_la_LDFLAGS = \
5878 $(AM_LDFLAGS) \
5879 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
5880 -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
5881
5882 libsystemd_daemon_la_LIBADD = \
5883 libsystemd-internal.la
5884
5885 lib_LTLIBRARIES += \
5886 libsystemd-journal.la \
5887 libsystemd-login.la \
5888 libsystemd-id128.la \
5889 libsystemd-daemon.la
5890
5891 pkgconfiglib_DATA += \
5892 src/compat-libs/libsystemd-journal.pc \
5893 src/compat-libs/libsystemd-login.pc \
5894 src/compat-libs/libsystemd-id128.pc \
5895 src/compat-libs/libsystemd-daemon.pc
5896
5897 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
5898 compat-lib-install-hook:
5899 libname=libsystemd-login.so && $(move-to-rootlibdir)
5900 libname=libsystemd-journal.so && $(move-to-rootlibdir)
5901 libname=libsystemd-id128.so && $(move-to-rootlibdir)
5902 libname=libsystemd-daemon.so && $(move-to-rootlibdir)
5903
5904 compat-lib-uninstall-hook:
5905 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
5906 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
5907 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
5908 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
5909
5910 INSTALL_EXEC_HOOKS += compat-lib-install-hook
5911 UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
5912 endif
5913
5914 EXTRA_DIST += \
5915 src/compat-libs/linkwarning.h \
5916 src/compat-libs/libsystemd-journal.pc.in \
5917 src/compat-libs/libsystemd-login.pc.in \
5918 src/compat-libs/libsystemd-id128.pc.in \
5919 src/compat-libs/libsystemd-daemon.pc.in
5920
5921 # ------------------------------------------------------------------------------
5922 substitutions = \
5923 '|rootlibexecdir=$(rootlibexecdir)|' \
5924 '|rootbindir=$(rootbindir)|' \
5925 '|bindir=$(bindir)|' \
5926 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5927 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5928 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5929 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5930 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
5931 '|pkgdatadir=$(pkgdatadir)|' \
5932 '|systemunitdir=$(systemunitdir)|' \
5933 '|userunitdir=$(userunitdir)|' \
5934 '|systempresetdir=$(systempresetdir)|' \
5935 '|userpresetdir=$(userpresetdir)|' \
5936 '|udevhwdbdir=$(udevhwdbdir)|' \
5937 '|udevrulesdir=$(udevrulesdir)|' \
5938 '|catalogdir=$(catalogdir)|' \
5939 '|tmpfilesdir=$(tmpfilesdir)|' \
5940 '|sysusersdir=$(sysusersdir)|' \
5941 '|sysctldir=$(sysctldir)|' \
5942 '|systemgeneratordir=$(systemgeneratordir)|' \
5943 '|usergeneratordir=$(usergeneratordir)|' \
5944 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
5945 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
5946 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
5947 '|PACKAGE_URL=$(PACKAGE_URL)|' \
5948 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
5949 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
5950 '|prefix=$(prefix)|' \
5951 '|exec_prefix=$(exec_prefix)|' \
5952 '|libdir=$(libdir)|' \
5953 '|includedir=$(includedir)|' \
5954 '|VERSION=$(VERSION)|' \
5955 '|rootprefix=$(rootprefix)|' \
5956 '|udevlibexecdir=$(udevlibexecdir)|' \
5957 '|SUSHELL=$(SUSHELL)|' \
5958 '|SULOGIN=$(SULOGIN)|' \
5959 '|DEBUGTTY=$(DEBUGTTY)|' \
5960 '|KILL=$(KILL)|' \
5961 '|KMOD=$(KMOD)|' \
5962 '|MOUNT_PATH=$(MOUNT_PATH)|' \
5963 '|UMOUNT_PATH=$(UMOUNT_PATH)|' \
5964 '|MKDIR_P=$(MKDIR_P)|' \
5965 '|QUOTAON=$(QUOTAON)|' \
5966 '|QUOTACHECK=$(QUOTACHECK)|' \
5967 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
5968 '|VARLOGDIR=$(varlogdir)|' \
5969 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
5970 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
5971 '|PYTHON=$(PYTHON)|' \
5972 '|NTP_SERVERS=$(NTP_SERVERS)|' \
5973 '|DNS_SERVERS=$(DNS_SERVERS)|' \
5974 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
5975 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
5976 '|TTY_GID=$(TTY_GID)|' \
5977 '|systemsleepdir=$(systemsleepdir)|' \
5978 '|systemshutdowndir=$(systemshutdowndir)|' \
5979 '|binfmtdir=$(binfmtdir)|' \
5980 '|modulesloaddir=$(modulesloaddir)|'
5981
5982 SED_PROCESS = \
5983 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
5984 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
5985 < $< > $@
5986
5987 units/%: units/%.in
5988 $(SED_PROCESS)
5989
5990 man/%: man/%.in
5991 $(SED_PROCESS)
5992
5993 sysctl.d/%: sysctl.d/%.in
5994 $(SED_PROCESS)
5995
5996 %.pc: %.pc.in
5997 $(SED_PROCESS)
5998
5999 %.conf: %.conf.in
6000 $(SED_PROCESS)
6001
6002 src/core/%.systemd: src/core/%.systemd.in
6003 $(SED_PROCESS)
6004
6005 src/%.policy.in: src/%.policy.in.in
6006 $(SED_PROCESS)
6007
6008 shell-completion/%: shell-completion/%.in
6009 $(SED_PROCESS)
6010
6011 %.rules: %.rules.in
6012 $(SED_PROCESS)
6013
6014 %.conf: %.conf.in
6015 $(SED_PROCESS)
6016
6017 %.sh: %.sh.in
6018 $(SED_PROCESS)
6019 $(AM_V_GEN)chmod +x $@
6020
6021 src/%.c: src/%.gperf
6022 $(AM_V_at)$(MKDIR_P) $(dir $@)
6023 $(AM_V_GPERF)$(GPERF) < $< > $@
6024
6025 src/%: src/%.m4 $(top_builddir)/config.status
6026 $(AM_V_at)$(MKDIR_P) $(dir $@)
6027 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6028
6029 sysusers.d/%: sysusers.d/%.m4 $(top_builddir)/config.status
6030 $(AM_V_at)$(MKDIR_P) $(dir $@)
6031 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6032
6033 tmpfiles.d/%: tmpfiles.d/%.m4 $(top_builddir)/config.status
6034 $(AM_V_at)$(MKDIR_P) $(dir $@)
6035 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
6036
6037
6038 units/%: units/%.m4 $(top_builddir)/config.status
6039 $(AM_V_at)$(MKDIR_P) $(dir $@)
6040 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
6041
6042 units/user/%: units/user/%.m4 $(top_builddir)/config.status
6043 $(AM_V_at)$(MKDIR_P) $(dir $@)
6044 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
6045
6046 if ENABLE_POLKIT
6047 nodist_polkitpolicy_DATA = \
6048 $(polkitpolicy_files) \
6049 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
6050 endif
6051
6052 EXTRA_DIST += \
6053 $(polkitpolicy_in_files) \
6054 $(polkitpolicy_in_in_files)
6055
6056 # ------------------------------------------------------------------------------
6057 man/custom-entities.ent: configure.ac
6058 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
6059 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
6060 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
6061 > $@ # '
6062
6063 CLEANFILES += \
6064 man/custom-entities.ent
6065
6066 XSLTPROC_FLAGS = \
6067 --nonet \
6068 --xinclude \
6069 --stringparam man.output.quietly 1 \
6070 --stringparam funcsynopsis.style ansi \
6071 --stringparam man.authors.section.enabled 0 \
6072 --stringparam man.copyright.section.enabled 0 \
6073 --stringparam systemd.version $(VERSION) \
6074 --path '$(builddir)/man:$(srcdir)/man'
6075
6076 XSLT = $(if $(XSLTPROC), $(XSLTPROC), xsltproc)
6077 XSLTPROC_PROCESS_MAN = \
6078 $(AM_V_XSLT)$(XSLT) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
6079
6080 XSLTPROC_PROCESS_HTML = \
6081 $(AM_V_XSLT)$(XSLT) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
6082
6083 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
6084 $(XSLTPROC_PROCESS_MAN)
6085
6086 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
6087 $(XSLTPROC_PROCESS_MAN)
6088
6089 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
6090 $(XSLTPROC_PROCESS_MAN)
6091
6092 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
6093 $(XSLTPROC_PROCESS_MAN)
6094
6095 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
6096 $(XSLTPROC_PROCESS_MAN)
6097
6098 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
6099 $(XSLTPROC_PROCESS_HTML)
6100
6101 define html-alias
6102 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
6103 endef
6104
6105 EXTRA_DIST += \
6106 man/custom-html.xsl \
6107 man/custom-man.xsl
6108
6109 # ------------------------------------------------------------------------------
6110 if HAVE_SYSV_COMPAT
6111 sysvinit_DATA = \
6112 docs/sysvinit/README
6113
6114 varlog_DATA = \
6115 docs/var-log/README
6116
6117 docs/sysvinit/README: docs/sysvinit/README.in
6118 $(SED_PROCESS)
6119
6120 docs/var-log/README: docs/var-log/README.in
6121 $(SED_PROCESS)
6122
6123 CLEANFILES += \
6124 docs/sysvinit/README \
6125 docs/var-log/README
6126 endif
6127
6128 EXTRA_DIST += \
6129 docs/sysvinit/README.in \
6130 docs/var-log/README.in
6131
6132 SOCKETS_TARGET_WANTS += \
6133 systemd-initctl.socket
6134
6135 if HAVE_UTMP
6136 if HAVE_SYSV_COMPAT
6137 MULTI_USER_TARGET_WANTS += \
6138 systemd-update-utmp-runlevel.service
6139 GRAPHICAL_TARGET_WANTS += \
6140 systemd-update-utmp-runlevel.service
6141 RESCUE_TARGET_WANTS += \
6142 systemd-update-utmp-runlevel.service
6143 endif
6144
6145 SYSINIT_TARGET_WANTS += \
6146 systemd-update-utmp.service
6147 endif
6148
6149 SYSINIT_TARGET_WANTS += \
6150 systemd-update-done.service
6151
6152 LOCAL_FS_TARGET_WANTS += \
6153 systemd-remount-fs.service \
6154 tmp.mount \
6155 var-lib-machines.mount
6156
6157 MULTI_USER_TARGET_WANTS += \
6158 getty.target \
6159 systemd-ask-password-wall.path
6160
6161 SYSINIT_TARGET_WANTS += \
6162 dev-hugepages.mount \
6163 dev-mqueue.mount \
6164 sys-kernel-config.mount \
6165 sys-kernel-debug.mount \
6166 sys-fs-fuse-connections.mount \
6167 systemd-sysctl.service \
6168 systemd-ask-password-console.path
6169
6170 if HAVE_SYSV_COMPAT
6171 SYSTEM_UNIT_ALIASES += \
6172 poweroff.target runlevel0.target \
6173 rescue.target runlevel1.target \
6174 multi-user.target runlevel2.target \
6175 multi-user.target runlevel3.target \
6176 multi-user.target runlevel4.target \
6177 graphical.target runlevel5.target \
6178 reboot.target runlevel6.target
6179 endif
6180
6181 SYSTEM_UNIT_ALIASES += \
6182 graphical.target default.target \
6183 reboot.target ctrl-alt-del.target \
6184 getty@.service autovt@.service
6185
6186 USER_UNIT_ALIASES += \
6187 $(systemunitdir)/shutdown.target shutdown.target \
6188 $(systemunitdir)/sockets.target sockets.target \
6189 $(systemunitdir)/timers.target timers.target \
6190 $(systemunitdir)/paths.target paths.target \
6191 $(systemunitdir)/bluetooth.target bluetooth.target \
6192 $(systemunitdir)/printer.target printer.target \
6193 $(systemunitdir)/sound.target sound.target \
6194 $(systemunitdir)/smartcard.target smartcard.target
6195
6196 USER_UNIT_ALIASES += \
6197 $(systemunitdir)/busnames.target busnames.target
6198
6199 GENERAL_ALIASES += \
6200 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
6201 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
6202 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
6203 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
6204
6205 if HAVE_SYSV_COMPAT
6206 INSTALL_DIRS += \
6207 $(systemunitdir)/runlevel1.target.wants \
6208 $(systemunitdir)/runlevel2.target.wants \
6209 $(systemunitdir)/runlevel3.target.wants \
6210 $(systemunitdir)/runlevel4.target.wants \
6211 $(systemunitdir)/runlevel5.target.wants
6212 endif
6213
6214 INSTALL_DIRS += \
6215 $(prefix)/lib/modules-load.d \
6216 $(sysconfdir)/modules-load.d \
6217 $(prefix)/lib/systemd/network \
6218 $(sysconfdir)/systemd/network \
6219 $(prefix)/lib/sysctl.d \
6220 $(sysconfdir)/sysctl.d \
6221 $(prefix)/lib/kernel/install.d \
6222 $(sysconfdir)/kernel/install.d \
6223 $(systemshutdowndir) \
6224 $(systemsleepdir) \
6225 $(systemgeneratordir) \
6226 $(usergeneratordir) \
6227 \
6228 $(userunitdir) \
6229 $(pkgsysconfdir)/system \
6230 $(pkgsysconfdir)/system/multi-user.target.wants \
6231 $(pkgsysconfdir)/system/getty.target.wants \
6232 $(pkgsysconfdir)/user \
6233 $(dbussessionservicedir) \
6234 $(sysconfdir)/xdg/systemd
6235
6236 install-exec-hook: $(INSTALL_EXEC_HOOKS)
6237
6238 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
6239
6240 install-data-hook: $(INSTALL_DATA_HOOKS)
6241
6242 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
6243
6244 clean-local: $(CLEAN_LOCAL_HOOKS)
6245 rm -rf $(abs_srcdir)/install-tree
6246 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
6247 $(abs_srcdir)/hwdb/iab.txt
6248
6249 DISTCHECK_CONFIGURE_FLAGS = \
6250 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
6251 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6252 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
6253 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
6254 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
6255 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
6256 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
6257 --with-rootprefix=$$dc_install_base \
6258 --enable-compat-libs
6259
6260 if HAVE_SYSV_COMPAT
6261 DISTCHECK_CONFIGURE_FLAGS += \
6262 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
6263 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
6264 else
6265 DISTCHECK_CONFIGURE_FLAGS += \
6266 --with-sysvinit-path= \
6267 --with-sysvrcnd-path=
6268 endif
6269
6270 if ENABLE_SPLIT_USR
6271 DISTCHECK_CONFIGURE_FLAGS += \
6272 --enable-split-usr
6273 else
6274 DISTCHECK_CONFIGURE_FLAGS += \
6275 --disable-split-usr
6276 endif
6277
6278 .PHONY: dist-check-help
6279
6280 dist-check-help: $(rootbin_PROGRAMS) $(bin_PROGRAMS)
6281 for i in $(abspath $^); do \
6282 if $$i --help | grep -v 'default:' | grep -E -q '.{80}.' ; then \
6283 echo "$(basename $$i) --help output is too wide:"; \
6284 $$i --help | awk 'length > 80' | grep -E --color=yes '.{80}'; \
6285 exit 1; \
6286 fi; done
6287
6288 .PHONY: hwdb-update
6289 hwdb-update:
6290 ( cd $(top_srcdir)/hwdb && \
6291 wget -O usb.ids 'http://www.linux-usb.org/usb.ids' && \
6292 wget -O pci.ids 'http://pci-ids.ucw.cz/v2.2/pci.ids' && \
6293 wget -O ma-large.txt 'http://standards.ieee.org/develop/regauth/oui/oui.txt' && \
6294 wget -O ma-medium.txt 'http://standards.ieee.org/develop/regauth/oui28/mam.txt' && \
6295 wget -O ma-small.txt 'http://standards.ieee.org/develop/regauth/oui36/oui36.txt' && \
6296 ./ids-update.pl )
6297
6298 .PHONY: built-sources
6299 built-sources: $(BUILT_SOURCES)
6300
6301 .PHONY: git-tag
6302 git-tag:
6303 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6304
6305 .PHONY: git-tar
6306 git-tar:
6307 git archive --format=tar --prefix=systemd-$(VERSION)/ HEAD | gzip > systemd-$(VERSION).tar.gz
6308
6309 www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
6310
6311 .PHONY: doc-sync
6312 doc-sync: all
6313 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6314
6315 .PHONY: gardel
6316 gardel:
6317 scp man/*.html gardel:public/systemd-man/
6318
6319 .PHONY: lennart-fedora
6320 lennart-fedora:
6321 cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
6322
6323 .PHONY: install-tree
6324 install-tree: all
6325 rm -rf $(abs_srcdir)/install-tree
6326 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
6327 tree $(abs_srcdir)/install-tree
6328
6329 # Let's run all tests of the test suite, but under valgrind. Let's
6330 # exclude perl/python/shell scripts we have in there
6331 .PHONY: valgrind-tests
6332 valgrind-tests: $(TESTS)
6333 $(AM_V_GEN)for f in $(filter-out %.pl %.py, $^); do \
6334 if file $$f | grep -q shell; then \
6335 echo -e "$${x}Skipping non-binary $$f"; else \
6336 echo -e "$${x}Running $$f"; \
6337 $(LIBTOOL) --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
6338 x="\n\n"; \
6339 done
6340
6341 exported-%: %
6342 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
6343
6344 exported: $(addprefix exported-, $(lib_LTLIBRARIES))
6345 $(AM_V_GEN)sort -u $^ > $@
6346
6347 .PHONY: check-api-docs
6348 check-api-docs: exported man
6349 $(AM_V_GEN)for symbol in `cat exported` ; do \
6350 if test -f $(builddir)/man/$$symbol.html ; then \
6351 echo " Symbol $$symbol() is documented." ; \
6352 else \
6353 echo "‣ Symbol $$symbol() lacks documentation." ; \
6354 fi ; \
6355 done
6356
6357 OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6358 ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6359
6360 undefined defined: $(ALL_OBJECTS)
6361 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
6362 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
6363 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
6364
6365 CLEANFILES += \
6366 defined \
6367 undefined
6368
6369 .PHONY: check-api-unused
6370 check-api-unused: defined undefined exported
6371 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
6372
6373 .PHONY: check-includes
6374 check-includes: $(top_srcdir)/tools/check-includes.pl
6375 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6376 | xargs $(top_srcdir)/tools/check-includes.pl
6377
6378 EXTRA_DIST += \
6379 $(top_srcdir)/tools/check-includes.pl
6380
6381 # Stupid test that everything purported to be exported really is
6382 define generate-sym-test
6383 $(AM_V_at)$(MKDIR_P) $(dir $@)
6384 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6385 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6386 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6387 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6388 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6389 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6390 $(AM_V_at)printf 'return 0; }\n' >> $@
6391 endef
6392
6393 test-libsystemd-sym.c: \
6394 $(top_builddir)/src/libsystemd/libsystemd.sym \
6395 src/systemd/sd-journal.h \
6396 src/systemd/sd-daemon.h \
6397 src/systemd/sd-login.h \
6398 src/systemd/sd-bus.h \
6399 src/systemd/sd-utf8.h \
6400 src/systemd/sd-resolve.h \
6401 src/systemd/sd-path.h \
6402 src/systemd/sd-event.h
6403 $(generate-sym-test)
6404
6405 test-libudev-sym.c: \
6406 src/libudev/libudev.sym \
6407 src/udev/udev.h
6408 $(generate-sym-test)
6409
6410 nodist_test_libsystemd_sym_SOURCES = \
6411 test-libsystemd-sym.c
6412 test_libsystemd_sym_LDADD = \
6413 libsystemd.la
6414
6415 nodist_test_libudev_sym_SOURCES = \
6416 test-libudev-sym.c
6417 test_libudev_sym_CFLAGS = \
6418 $(AM_CFLAGS) \
6419 -Wno-deprecated-declarations
6420 test_libudev_sym_LDADD = \
6421 libudev.la
6422
6423 BUILT_SOURCES += \
6424 test-libsystemd-sym.c \
6425 test-libudev-sym.c
6426
6427 CLEANFILES += \
6428 test-libsystemd-sym.c \
6429 test-libudev-sym.c
6430
6431 tests += \
6432 test-libsystemd-sym \
6433 test-libudev-sym
6434
6435 .PHONY: cppcheck
6436 cppcheck:
6437 cppcheck --enable=all -q $(top_srcdir)
6438
6439 # Used to extract compile flags for YCM.
6440 print-%:
6441 @echo $($*)
6442
6443 git-contrib:
6444 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u
6445
6446 EXTRA_DIST += \
6447 tools/gdb-sd_dump_hashmaps.py
6448
6449 list-keys:
6450 gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --list-keys
6451
6452 add-key:
6453 gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --import -