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