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