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