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