]>
Commit | Line | Data |
---|---|---|
6ee667ae | 1 | # -*- Mode: makefile; indent-tabs-mode: t -*- |
643a14a5 | 2 | # |
47be870b LP |
3 | # This file is part of systemd. |
4 | # | |
3e214785 KS |
5 | # Copyright 2010-2012 Lennart Poettering |
6 | # Copyright 2010-2012 Kay Sievers | |
91e8651b | 7 | # Copyright 2013 Zbigniew Jędrzejewski-Szmek |
912b54ad | 8 | # Copyright 2013 David Strauss |
47be870b LP |
9 | # |
10 | # systemd is free software; you can redistribute it and/or modify it | |
5430f7f2 LP |
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 | |
47be870b LP |
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 | |
5430f7f2 | 18 | # Lesser General Public License for more details. |
47be870b | 19 | # |
5430f7f2 | 20 | # You should have received a copy of the GNU Lesser General Public License |
47be870b LP |
21 | # along with systemd; If not, see <http://www.gnu.org/licenses/>. |
22 | ||
3e214785 KS |
23 | ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} |
24 | AM_MAKEFLAGS = --no-print-directory | |
b5a223bf | 25 | AUTOMAKE_OPTIONS = color-tests parallel-tests |
47be870b | 26 | |
f44541bc MS |
27 | GCC_COLORS ?= 'ooh, shiny!' |
28 | export GCC_COLORS | |
29 | ||
3e214785 KS |
30 | SUBDIRS = . po |
31 | ||
96bd03d5 ZJS |
32 | # remove targets if the command fails |
33 | .DELETE_ON_ERROR: | |
34 | ||
652e7375 ZJS |
35 | # keep intermediate files |
36 | .SECONDARY: | |
37 | ||
c2654883 | 38 | # Keep the test-suite.log |
e7c431d3 | 39 | .PRECIOUS: $(TEST_SUITE_LOG) Makefile |
c2654883 | 40 | |
d5a169aa | 41 | LIBUDEV_CURRENT=7 |
4f9bca63 | 42 | LIBUDEV_REVISION=3 |
d5a169aa | 43 | LIBUDEV_AGE=6 |
3e214785 | 44 | |
62ca29b8 LP |
45 | LIBGUDEV_CURRENT=2 |
46 | LIBGUDEV_REVISION=0 | |
47 | LIBGUDEV_AGE=2 | |
1c7dde3e | 48 | |
4f9bca63 | 49 | LIBSYSTEMD_CURRENT=7 |
f9d4ea9e | 50 | LIBSYSTEMD_REVISION=0 |
4f9bca63 | 51 | LIBSYSTEMD_AGE=7 |
42a04ee6 LP |
52 | |
53 | # The following four libraries only exist for compatibility reasons, | |
54 | # their version info should not be bumped anymore | |
4f0be680 | 55 | LIBSYSTEMD_LOGIN_CURRENT=9 |
62ca29b8 | 56 | LIBSYSTEMD_LOGIN_REVISION=3 |
4f0be680 | 57 | LIBSYSTEMD_LOGIN_AGE=9 |
74b91131 | 58 | |
114a50f8 | 59 | LIBSYSTEMD_DAEMON_CURRENT=0 |
62ca29b8 | 60 | LIBSYSTEMD_DAEMON_REVISION=12 |
114a50f8 LP |
61 | LIBSYSTEMD_DAEMON_AGE=0 |
62 | ||
4b2d99d9 | 63 | LIBSYSTEMD_ID128_CURRENT=0 |
62ca29b8 | 64 | LIBSYSTEMD_ID128_REVISION=28 |
4b2d99d9 LP |
65 | LIBSYSTEMD_ID128_AGE=0 |
66 | ||
c0199563 | 67 | LIBSYSTEMD_JOURNAL_CURRENT=11 |
62ca29b8 | 68 | LIBSYSTEMD_JOURNAL_REVISION=5 |
c0199563 | 69 | LIBSYSTEMD_JOURNAL_AGE=11 |
4b2d99d9 | 70 | |
8c4a3079 | 71 | # Dirs of external packages |
d122948d LP |
72 | dbuspolicydir=@dbuspolicydir@ |
73 | dbussessionservicedir=@dbussessionservicedir@ | |
74 | dbussystemservicedir=@dbussystemservicedir@ | |
8c6db833 | 75 | pamlibdir=@pamlibdir@ |
5c390a4a | 76 | pamconfdir=@pamconfdir@ |
3bd31503 | 77 | pkgconfigdatadir=$(datadir)/pkgconfig |
02f130cb | 78 | pkgconfiglibdir=$(libdir)/pkgconfig |
490aed58 | 79 | polkitpolicydir=$(datadir)/polkit-1/actions |
db059f1b | 80 | bashcompletiondir=@bashcompletiondir@ |
4f87c47b | 81 | zshcompletiondir=@zshcompletiondir@ |
460c589a | 82 | rpmmacrosdir=$(prefix)/lib/rpm/macros.d |
0ce8860a | 83 | sysvinitdir=$(SYSTEM_SYSVINIT_PATH) |
dee4c244 | 84 | sysvrcnddir=$(SYSTEM_SYSVRCND_PATH) |
0ce8860a | 85 | varlogdir=$(localstatedir)/log |
4ec24515 ZJS |
86 | systemdstatedir=$(localstatedir)/lib/systemd |
87 | catalogstatedir=$(systemdstatedir)/catalog | |
1401ec2d | 88 | xinitrcdir=$(sysconfdir)/X11/xinit/xinitrc.d |
036643a2 | 89 | |
8c4a3079 | 90 | # Our own, non-special dirs |
d1ab0ca0 | 91 | pkgsysconfdir=$(sysconfdir)/systemd |
32d0463d | 92 | userunitdir=$(prefix)/lib/systemd/user |
a1d41e17 | 93 | userpresetdir=$(prefix)/lib/systemd/user-preset |
772f8371 | 94 | tmpfilesdir=$(prefix)/lib/tmpfiles.d |
1b992147 | 95 | sysusersdir=$(prefix)/lib/sysusers.d |
f5e04665 | 96 | sysctldir=$(prefix)/lib/sysctl.d |
d4e85aac LP |
97 | binfmtdir=$(prefix)/lib/binfmt.d |
98 | modulesloaddir=$(prefix)/lib/modules-load.d | |
74fae424 | 99 | networkdir=$(rootprefix)/lib/systemd/network |
74b91131 | 100 | pkgincludedir=$(includedir)/systemd |
8ece4cab | 101 | systemgeneratordir=$(rootlibexecdir)/system-generators |
d267e69d | 102 | usergeneratordir=$(prefix)/lib/systemd/user-generators |
8ece4cab | 103 | systemshutdowndir=$(rootlibexecdir)/system-shutdown |
6edd7d0a | 104 | systemsleepdir=$(rootlibexecdir)/system-sleep |
8ece4cab | 105 | systemunitdir=$(rootprefix)/lib/systemd/system |
a1d41e17 | 106 | systempresetdir=$(rootprefix)/lib/systemd/system-preset |
3e214785 | 107 | udevlibexecdir=$(rootprefix)/lib/udev |
d4205751 LP |
108 | udevhomedir=$(udevlibexecdir) |
109 | udevrulesdir=$(udevlibexecdir)/rules.d | |
110 | udevhwdbdir=$(udevlibexecdir)/hwdb.d | |
111 | catalogdir=$(prefix)/lib/systemd/catalog | |
8f51399e | 112 | kernelinstalldir = $(prefix)/lib/kernel/install.d |
0a5d1ed9 MAP |
113 | factory_etcdir = $(datadir)/factory/etc |
114 | factory_pamdir = $(datadir)/factory/etc/pam.d | |
e7dd673d | 115 | bootlibdir = $(prefix)/lib/systemd/boot/efi |
8c4a3079 LP |
116 | |
117 | # And these are the special ones for / | |
b8079ae1 KS |
118 | rootprefix=@rootprefix@ |
119 | rootbindir=$(rootprefix)/bin | |
120 | rootlibexecdir=$(rootprefix)/lib/systemd | |
70fcff31 | 121 | |
2a018e83 | 122 | EXTRA_DIST = |
3e214785 | 123 | BUILT_SOURCES = |
2a018e83 KS |
124 | INSTALL_EXEC_HOOKS = |
125 | UNINSTALL_EXEC_HOOKS = | |
126 | INSTALL_DATA_HOOKS = | |
4ec24515 | 127 | UNINSTALL_DATA_HOOKS = |
3e214785 | 128 | DISTCLEAN_LOCAL_HOOKS = |
9b281072 | 129 | CLEAN_LOCAL_HOOKS = |
48d437bb | 130 | pkginclude_HEADERS = |
04a9d3a0 | 131 | noinst_LTLIBRARIES = |
0237edf7 | 132 | lib_LTLIBRARIES = |
3e214785 | 133 | include_HEADERS = |
87cfe600 | 134 | noinst_DATA = |
3bd31503 | 135 | pkgconfigdata_DATA = |
0237edf7 | 136 | pkgconfiglib_DATA = |
46ba8aae | 137 | polkitpolicy_in_in_files = |
2a018e83 | 138 | polkitpolicy_in_files = |
299031ca | 139 | polkitpolicy_files = |
131a4dcf | 140 | dist_udevrules_DATA = |
3e214785 | 141 | nodist_udevrules_DATA = |
90ccc3fc | 142 | dist_pkgsysconf_DATA = |
ad95fd1d | 143 | nodist_pkgsysconf_DATA = |
ac7019f3 | 144 | dist_pkgdata_DATA = |
90ccc3fc | 145 | dist_dbuspolicy_DATA = |
90ccc3fc | 146 | dist_dbussystemservice_DATA = |
36e46fe9 | 147 | dist_systemunit_DATA_busnames = |
ae5b2a86 | 148 | dist_sysusers_DATA = |
6cbf079f | 149 | check_PROGRAMS = |
9b80f05f | 150 | check_DATA = |
cee22bd3 HGB |
151 | tests= |
152 | manual_tests = | |
72521ab9 MP |
153 | TEST_EXTENSIONS = .py |
154 | PY_LOG_COMPILER = $(PYTHON) | |
cee22bd3 HGB |
155 | if ENABLE_TESTS |
156 | noinst_PROGRAMS = $(manual_tests) $(tests) | |
157 | TESTS = $(tests) | |
158 | else | |
159 | noinst_PROGRAMS = | |
160 | TESTS = | |
161 | endif | |
f13b388f | 162 | udevlibexec_PROGRAMS = |
2a018e83 | 163 | |
9e4ded30 ZJS |
164 | in_files = $(filter %.in,$(EXTRA_DIST)) |
165 | in_in_files = $(filter %.in.in, $(in_files)) | |
166 | m4_files = $(filter %.m4,$(EXTRA_DIST) $(in_files:.m4.in=.m4)) | |
167 | ||
168 | CLEANFILES = $(BUILT_SOURCES) \ | |
3bd31503 | 169 | $(pkgconfigdata_DATA) \ |
9e4ded30 ZJS |
170 | $(pkgconfiglib_DATA) \ |
171 | $(in_files:.in=) $(in_in_files:.in.in=) \ | |
172 | $(m4_files:.m4=) | |
173 | ||
9f700755 ZJS |
174 | .PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \ |
175 | $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \ | |
176 | $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS) | |
177 | ||
47be870b | 178 | AM_CPPFLAGS = \ |
d3f09cf3 | 179 | -include $(top_builddir)/config.h \ |
19adb8a3 | 180 | -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \ |
036643a2 | 181 | -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \ |
70fcff31 | 182 | -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \ |
0571e011 | 183 | -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \ |
061978fa | 184 | -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \ |
af2d49f7 LP |
185 | -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \ |
186 | -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \ | |
ad95fd1d | 187 | -DCERTIFICATE_ROOT=\"$(CERTIFICATEROOT)\" \ |
844ec79b | 188 | -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \ |
91901329 | 189 | -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \ |
05d02d8d | 190 | -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \ |
77eb82f9 | 191 | -DSYSTEMD_FSCK_PATH=\"$(rootlibexecdir)/systemd-fsck\" \ |
b1b2a107 | 192 | -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \ |
6edd7d0a | 193 | -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \ |
2cb1a60d | 194 | -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \ |
501fc174 | 195 | -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \ |
5b754353 | 196 | -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \ |
b8079ae1 | 197 | -DROOTPREFIX=\"$(rootprefix)\" \ |
952d97ed | 198 | -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \ |
ef5bfcf6 | 199 | -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \ |
e23a0ce8 | 200 | -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \ |
5a1e9937 | 201 | -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \ |
af2d49f7 | 202 | -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \ |
83cc030f | 203 | -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \ |
ddcbc873 | 204 | -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \ |
baa5ad26 | 205 | -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \ |
4e829d21 | 206 | -DSYSTEMD_LANGUAGE_FALLBACK_MAP=\"$(pkgdatadir)/language-fallback-map\" \ |
8e8eb8fb | 207 | -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \ |
f33d3ec1 | 208 | -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \ |
83374163 | 209 | -DQUOTACHECK=\"$(QUOTACHECK)\" \ |
78013564 | 210 | -DKEXEC=\"$(KEXEC)\" \ |
f00929ad DJL |
211 | -DMOUNT_PATH=\"$(MOUNT_PATH)\" \ |
212 | -DUMOUNT_PATH=\"$(UMOUNT_PATH)\" \ | |
9a00f57a LP |
213 | -DLIBDIR=\"$(libdir)\" \ |
214 | -DROOTLIBDIR=\"$(rootlibdir)\" \ | |
a804d849 | 215 | -DROOTLIBEXECDIR=\"$(rootlibexecdir)\" \ |
0d8c31ff | 216 | -DTEST_DIR=\"$(abs_top_srcdir)/test\" \ |
e5e83e83 | 217 | -I $(top_srcdir)/src \ |
780896a4 | 218 | -I $(top_builddir)/src/shared \ |
d7832d2c | 219 | -I $(top_srcdir)/src/shared \ |
f579559b | 220 | -I $(top_srcdir)/src/network \ |
86aa7ba4 | 221 | -I $(top_srcdir)/src/login \ |
3bdf9c1d | 222 | -I $(top_srcdir)/src/journal \ |
4733607e | 223 | -I $(top_builddir)/src/journal \ |
bcdbbd7e | 224 | -I $(top_srcdir)/src/timedate \ |
687ed123 | 225 | -I $(top_srcdir)/src/timesync \ |
ffcf82d2 | 226 | -I $(top_srcdir)/src/resolve \ |
7263f724 | 227 | -I $(top_builddir)/src/resolve \ |
3e214785 | 228 | -I $(top_srcdir)/src/systemd \ |
95769b32 | 229 | -I $(top_builddir)/src/core \ |
b30e2f4c | 230 | -I $(top_srcdir)/src/core \ |
0b87a077 | 231 | -I $(top_srcdir)/src/libudev \ |
5a45a936 | 232 | -I $(top_srcdir)/src/udev \ |
af6f0d42 | 233 | -I $(top_srcdir)/src/udev/net \ |
9d7d42bc | 234 | -I $(top_builddir)/src/udev \ |
607553f9 TG |
235 | -I $(top_srcdir)/src/libsystemd/sd-bus \ |
236 | -I $(top_srcdir)/src/libsystemd/sd-event \ | |
237 | -I $(top_srcdir)/src/libsystemd/sd-rtnl \ | |
91d3efed | 238 | -I $(top_srcdir)/src/libsystemd/sd-network \ |
23fbe14f | 239 | -I $(top_srcdir)/src/libsystemd/sd-hwdb \ |
57fa1d09 | 240 | -I $(top_srcdir)/src/libsystemd/sd-device \ |
fe8db0c5 | 241 | -I $(top_srcdir)/src/libsystemd-network \ |
84da4a30 | 242 | -I $(top_srcdir)/src/libsystemd-terminal \ |
5a45a936 | 243 | $(OUR_CPPFLAGS) |
47be870b | 244 | |
3984d657 | 245 | AM_CFLAGS = $(OUR_CFLAGS) |
5a45a936 | 246 | AM_LDFLAGS = $(OUR_LDFLAGS) |
eb2e280f | 247 | |
24fdc230 | 248 | # ------------------------------------------------------------------------------ |
d7ae18ee | 249 | define move-to-rootlibdir |
24fdc230 ZJS |
250 | if test "$(libdir)" != "$(rootlibdir)"; then \ |
251 | $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \ | |
252 | so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \ | |
5e11d962 | 253 | rm -f $(DESTDIR)$(libdir)/$$libname && \ |
0ce91e4e | 254 | $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \ |
24fdc230 ZJS |
255 | mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \ |
256 | fi | |
257 | endef | |
258 | ||
6ff39241 ZJS |
259 | INSTALL_DIRS = |
260 | ||
6ff39241 ZJS |
261 | SHUTDOWN_TARGET_WANTS = |
262 | LOCAL_FS_TARGET_WANTS = | |
263 | MULTI_USER_TARGET_WANTS = | |
d5d8429a LP |
264 | GRAPHICAL_TARGET_WANTS = |
265 | RESCUE_TARGET_WANTS = | |
6ff39241 | 266 | SYSINIT_TARGET_WANTS = |
6ff39241 | 267 | SOCKETS_TARGET_WANTS = |
cde360cd | 268 | BUSNAMES_TARGET_WANTS = |
e3d84721 | 269 | TIMERS_TARGET_WANTS = |
54142c6a | 270 | USER_SOCKETS_TARGET_WANTS = |
2355af60 | 271 | USER_DEFAULT_TARGET_WANTS = |
54142c6a | 272 | USER_BUSNAMES_TARGET_WANTS = |
6ff39241 | 273 | |
91e8651b ZJS |
274 | SYSTEM_UNIT_ALIASES = |
275 | USER_UNIT_ALIASES = | |
91e8651b ZJS |
276 | GENERAL_ALIASES = |
277 | ||
6ff39241 | 278 | install-target-wants-hook: |
54142c6a KS |
279 | what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants) |
280 | what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants) | |
281 | what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants) | |
d5d8429a LP |
282 | what="$(GRAPHICAL_TARGET_WANTS)" && wants=graphical.target && dir=$(systemunitdir) && $(add-wants) |
283 | what="$(RESCUE_TARGET_WANTS)" && wants=rescue.target && dir=$(systemunitdir) && $(add-wants) | |
54142c6a KS |
284 | what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants) |
285 | what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants) | |
54142c6a KS |
286 | what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants) |
287 | what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants) | |
288 | what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants) | |
2355af60 | 289 | what="$(USER_DEFAULT_TARGET_WANTS)" && wants=default.target && dir=$(userunitdir) && $(add-wants) |
36e46fe9 MB |
290 | |
291 | install-busnames-target-wants-hook: | |
292 | what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants) | |
54142c6a | 293 | what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants) |
6ff39241 ZJS |
294 | |
295 | define add-wants | |
245d345f | 296 | [ -z "$$what" ] || ( \ |
54142c6a | 297 | dir=$(DESTDIR)$$dir/$$wants.wants && \ |
245d345f ZJS |
298 | $(MKDIR_P) -m 0755 $$dir && \ |
299 | cd $$dir && \ | |
6ff39241 | 300 | rm -f $$what && \ |
ac2b34e1 | 301 | for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done ) |
6ff39241 ZJS |
302 | endef |
303 | ||
304 | install-directories-hook: | |
305 | $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS)) | |
306 | ||
91e8651b ZJS |
307 | install-aliases-hook: |
308 | set -- $(SYSTEM_UNIT_ALIASES) && \ | |
309 | dir=$(systemunitdir) && $(install-aliases) | |
310 | set -- $(USER_UNIT_ALIASES) && \ | |
e2438b7a | 311 | dir=$(userunitdir) && $(install-relative-aliases) |
91e8651b | 312 | set -- $(GENERAL_ALIASES) && \ |
e2438b7a | 313 | dir= && $(install-relative-aliases) |
91e8651b ZJS |
314 | |
315 | define install-aliases | |
91e8651b | 316 | while [ -n "$$1" ]; do \ |
0b95a21b | 317 | $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \ |
91e8651b | 318 | rm -f $(DESTDIR)$$dir/$$2 && \ |
ac2b34e1 | 319 | $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \ |
91e8651b ZJS |
320 | shift 2 || exit $$?; \ |
321 | done | |
322 | endef | |
323 | ||
e2438b7a LP |
324 | define install-relative-aliases |
325 | while [ -n "$$1" ]; do \ | |
326 | $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \ | |
327 | rm -f $(DESTDIR)$$dir/$$2 && \ | |
328 | $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \ | |
329 | shift 2 || exit $$?; \ | |
330 | done | |
331 | endef | |
332 | ||
a1259e0a LP |
333 | install-touch-usr-hook: |
334 | touch -c $(DESTDIR)/$(prefix) | |
335 | ||
6ff39241 ZJS |
336 | INSTALL_EXEC_HOOKS += \ |
337 | install-target-wants-hook \ | |
91e8651b | 338 | install-directories-hook \ |
a1259e0a LP |
339 | install-aliases-hook \ |
340 | install-touch-usr-hook | |
6ff39241 | 341 | |
36e46fe9 MB |
342 | if ENABLE_KDBUS |
343 | INSTALL_EXEC_HOOKS += \ | |
344 | install-busnames-target-wants-hook | |
345 | endif | |
346 | ||
ebea41b8 | 347 | # ------------------------------------------------------------------------------ |
ebea41b8 ZJS |
348 | AM_V_M4 = $(AM_V_M4_$(V)) |
349 | AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY)) | |
350 | AM_V_M4_0 = @echo " M4 " $@; | |
351 | ||
5b40782c ZJS |
352 | AM_V_XSLT = $(AM_V_XSLT_$(V)) |
353 | AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY)) | |
354 | AM_V_XSLT_0 = @echo " XSLT " $@; | |
355 | ||
c8503a3e ZJS |
356 | AM_V_GPERF = $(AM_V_GPERF_$(V)) |
357 | AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY)) | |
358 | AM_V_GPERF_0 = @echo " GPERF " $@; | |
359 | ||
87cfe600 ZJS |
360 | AM_V_LN = $(AM_V_LN_$(V)) |
361 | AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY)) | |
362 | AM_V_LN_0 = @echo " LN " $@; | |
363 | ||
5e11d962 LP |
364 | AM_V_RM = $(AM_V_RM_$(V)) |
365 | AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY)) | |
366 | AM_V_RM_0 = @echo " RM " $@; | |
367 | ||
d7832d2c | 368 | # ------------------------------------------------------------------------------ |
8c4a3079 | 369 | rootbin_PROGRAMS = \ |
4a2a8b5a | 370 | systemctl \ |
490aed58 | 371 | systemd-notify \ |
ec863ba6 | 372 | systemd-ask-password \ |
74ce487d | 373 | systemd-tty-ask-password-agent \ |
2945a452 MB |
374 | systemd-machine-id-setup \ |
375 | systemd-escape | |
a9b5b032 | 376 | |
8c4a3079 | 377 | bin_PROGRAMS = \ |
a8f11321 | 378 | systemd-cgls \ |
8f2d43a0 | 379 | systemd-cgtop \ |
2c4ff634 | 380 | systemd-nspawn \ |
27b5482c | 381 | systemd-detect-virt \ |
f948423b | 382 | systemd-delta \ |
c2756a68 | 383 | systemd-analyze \ |
9a00f57a | 384 | systemd-run \ |
b58d8571 | 385 | systemd-stdio-bridge \ |
1d3bc017 | 386 | systemd-path |
88213476 | 387 | |
8f51399e | 388 | dist_bin_SCRIPTS = \ |
81516adc HH |
389 | src/kernel-install/kernel-install |
390 | ||
8f51399e HH |
391 | dist_kernelinstall_SCRIPTS = \ |
392 | src/kernel-install/50-depmod.install \ | |
393 | src/kernel-install/90-loaderentry.install | |
fcc43d01 | 394 | |
8c4a3079 | 395 | rootlibexec_PROGRAMS = \ |
e0d25329 | 396 | systemd \ |
0b7964b8 | 397 | systemd-cgroups-agent \ |
4927fcae | 398 | systemd-initctl \ |
b1b2a107 | 399 | systemd-shutdown \ |
2b93b027 | 400 | systemd-remount-fs \ |
22be093f | 401 | systemd-reply-password \ |
3d20ed6d | 402 | systemd-fsck \ |
3fb39436 | 403 | systemd-machine-id-commit \ |
8e1bd70d | 404 | systemd-ac-power \ |
6edd7d0a | 405 | systemd-sysctl \ |
96c374d0 | 406 | systemd-sleep \ |
440c61c5 | 407 | systemd-bus-proxyd \ |
8ea48dfc | 408 | systemd-socket-proxyd \ |
83e7d885 | 409 | systemd-update-done |
47be870b | 410 | |
37161c51 ERB |
411 | if HAVE_UTMP |
412 | rootlibexec_PROGRAMS += \ | |
413 | systemd-update-utmp | |
414 | endif | |
415 | ||
2a796654 | 416 | systemgenerator_PROGRAMS = \ |
6b1dc2bd | 417 | systemd-getty-generator \ |
d360705f | 418 | systemd-fstab-generator \ |
326bb68c | 419 | systemd-system-update-generator \ |
4df5c00b | 420 | systemd-debug-generator |
2a796654 | 421 | |
42bb3074 | 422 | dist_bashcompletion_DATA = \ |
51f6888b | 423 | shell-completion/bash/busctl \ |
d611dadc | 424 | shell-completion/bash/journalctl \ |
83cb95b5 | 425 | shell-completion/bash/systemd-analyze \ |
20701701 | 426 | shell-completion/bash/systemd-cat \ |
abdab4f6 | 427 | shell-completion/bash/systemd-cgls \ |
d9256bac | 428 | shell-completion/bash/systemd-cgtop \ |
0bc8e31b | 429 | shell-completion/bash/systemd-delta \ |
3bfe58cb | 430 | shell-completion/bash/systemd-detect-virt \ |
0d6883b6 | 431 | shell-completion/bash/systemd-nspawn \ |
64eed40c | 432 | shell-completion/bash/systemd-run \ |
819da595 KS |
433 | shell-completion/bash/udevadm \ |
434 | shell-completion/bash/kernel-install | |
42bb3074 | 435 | |
c0a67aef ZJS |
436 | nodist_bashcompletion_DATA = \ |
437 | shell-completion/bash/systemctl | |
438 | ||
4f87c47b | 439 | dist_zshcompletion_DATA = \ |
7e83c0e0 | 440 | shell-completion/zsh/_journalctl \ |
a06225fc | 441 | shell-completion/zsh/_udevadm \ |
7eb942c4 | 442 | shell-completion/zsh/_kernel-install \ |
30fd4d1e | 443 | shell-completion/zsh/_systemd-nspawn \ |
7abfbe79 | 444 | shell-completion/zsh/_systemd-analyze \ |
d74ab852 | 445 | shell-completion/zsh/_systemd-run \ |
3e7f60ab | 446 | shell-completion/zsh/_sd_hosts_or_user_at_host \ |
2c12a402 ZJS |
447 | shell-completion/zsh/_sd_outputmodes \ |
448 | shell-completion/zsh/_sd_unit_files \ | |
298b9e23 | 449 | shell-completion/zsh/_systemd-delta \ |
4f87c47b WG |
450 | shell-completion/zsh/_systemd |
451 | ||
c0a67aef ZJS |
452 | nodist_zshcompletion_DATA = \ |
453 | shell-completion/zsh/_systemctl | |
454 | ||
455 | EXTRA_DIST += \ | |
456 | shell-completion/bash/systemctl.in \ | |
457 | shell-completion/zsh/_systemctl.in | |
458 | ||
459 | CLEANFILES += \ | |
460 | $(nodist_bashcompletion_DATA) \ | |
461 | $(nodist_zshcompletion_DATA) | |
462 | ||
6351163b UTL |
463 | dist_sysctl_DATA = \ |
464 | sysctl.d/50-default.conf | |
cca4aeee | 465 | |
d1ab0ca0 | 466 | dist_systemunit_DATA = \ |
db25d1d7 LP |
467 | units/graphical.target \ |
468 | units/multi-user.target \ | |
f057408c | 469 | units/emergency.target \ |
de47ca9b | 470 | units/sysinit.target \ |
f92a18f5 | 471 | units/basic.target \ |
5e6afdd3 LP |
472 | units/getty.target \ |
473 | units/halt.target \ | |
85ed27f6 | 474 | units/kexec.target \ |
70449379 | 475 | units/local-fs.target \ |
baa5ad26 | 476 | units/local-fs-pre.target \ |
9e5f0f92 | 477 | units/initrd.target \ |
700e07ff | 478 | units/initrd-fs.target \ |
9e5f0f92 | 479 | units/initrd-root-fs.target \ |
5552b1c1 | 480 | units/remote-fs.target \ |
baa5ad26 | 481 | units/remote-fs-pre.target \ |
70449379 | 482 | units/network.target \ |
a4a878d0 | 483 | units/network-pre.target \ |
0c17fbce | 484 | units/network-online.target \ |
70449379 | 485 | units/nss-lookup.target \ |
082694b7 | 486 | units/nss-user-lookup.target \ |
5e6afdd3 LP |
487 | units/poweroff.target \ |
488 | units/reboot.target \ | |
5e6afdd3 | 489 | units/rescue.target \ |
f0b02ca2 | 490 | units/rpcbind.target \ |
4466194c | 491 | units/time-sync.target \ |
70449379 | 492 | units/shutdown.target \ |
9aac953a | 493 | units/final.target \ |
4e67ddd6 | 494 | units/umount.target \ |
70449379 | 495 | units/sigpwr.target \ |
6edd7d0a | 496 | units/sleep.target \ |
70449379 | 497 | units/sockets.target \ |
e3d84721 LP |
498 | units/timers.target \ |
499 | units/paths.target \ | |
6edd7d0a | 500 | units/suspend.target \ |
70449379 | 501 | units/swap.target \ |
f2561e85 LP |
502 | units/slices.target \ |
503 | units/system.slice \ | |
a0f9c810 | 504 | units/x-.slice \ |
70fcff31 | 505 | units/systemd-initctl.socket \ |
52f319b2 | 506 | units/syslog.socket \ |
670802d4 | 507 | units/dev-hugepages.mount \ |
670802d4 | 508 | units/dev-mqueue.mount \ |
d6bca18e | 509 | units/sys-kernel-config.mount \ |
670802d4 | 510 | units/sys-kernel-debug.mount \ |
7ef5875d | 511 | units/sys-fs-fuse-connections.mount \ |
623ac9d2 | 512 | units/tmp.mount \ |
113b3fc1 | 513 | units/var-lib-machines.mount \ |
da78e1b4 | 514 | units/printer.target \ |
88dfa293 | 515 | units/sound.target \ |
ceda54d9 | 516 | units/bluetooth.target \ |
b15124f1 | 517 | units/smartcard.target \ |
e0e1580a | 518 | units/systemd-ask-password-wall.path \ |
6699c857 | 519 | units/systemd-ask-password-console.path \ |
51dfddc2 CG |
520 | units/systemd-udevd-control.socket \ |
521 | units/systemd-udevd-kernel.socket \ | |
cf843477 | 522 | units/system-update.target \ |
699b7227 PDS |
523 | units/initrd-switch-root.target \ |
524 | units/machines.target | |
70fcff31 | 525 | |
36e46fe9 MB |
526 | if ENABLE_KDBUS |
527 | dist_systemunit_DATA += \ | |
528 | $(dist_systemunit_DATA_busnames) | |
529 | endif | |
530 | ||
531 | dist_systemunit_DATA_busnames += \ | |
532 | units/busnames.target | |
533 | ||
6f6083dc | 534 | nodist_systemunit_DATA = \ |
5e6afdd3 | 535 | units/getty@.service \ |
93a45c56 | 536 | units/serial-getty@.service \ |
5b754353 | 537 | units/console-shell.service \ |
337eebb9 | 538 | units/console-getty.service \ |
04d39279 | 539 | units/container-getty@.service \ |
dfac97b2 | 540 | units/systemd-initctl.service \ |
2b93b027 | 541 | units/systemd-remount-fs.service \ |
306a7fd8 | 542 | units/systemd-ask-password-wall.service \ |
8cf3a8a9 | 543 | units/systemd-ask-password-console.service \ |
8e1bd70d | 544 | units/systemd-sysctl.service \ |
9cf25786 | 545 | units/emergency.service \ |
d42d27ea | 546 | units/rescue.service \ |
3e214785 | 547 | units/user@.service \ |
0e0320e0 LP |
548 | units/systemd-suspend.service \ |
549 | units/systemd-halt.service \ | |
550 | units/systemd-poweroff.service \ | |
551 | units/systemd-reboot.service \ | |
552 | units/systemd-kexec.service \ | |
553 | units/systemd-fsck@.service \ | |
554 | units/systemd-fsck-root.service \ | |
a1405db6 | 555 | units/systemd-machine-id-commit.service \ |
51dfddc2 | 556 | units/systemd-udevd.service \ |
f13b388f | 557 | units/systemd-udev-trigger.service \ |
ed061a8d | 558 | units/systemd-udev-settle.service \ |
65eb4378 | 559 | units/systemd-hwdb-update.service \ |
7b40ce55 MB |
560 | units/debug-shell.service \ |
561 | units/initrd-parse-etc.service \ | |
562 | units/initrd-cleanup.service \ | |
563 | units/initrd-udevadm-cleanup-db.service \ | |
05947bef | 564 | units/initrd-switch-root.service \ |
8ea48dfc | 565 | units/systemd-nspawn@.service \ |
83e7d885 | 566 | units/systemd-update-done.service |
d1ab0ca0 | 567 | |
37161c51 ERB |
568 | if HAVE_UTMP |
569 | nodist_systemunit_DATA += \ | |
570 | units/systemd-update-utmp.service \ | |
571 | units/systemd-update-utmp-runlevel.service | |
572 | endif | |
573 | ||
af2d49f7 | 574 | dist_userunit_DATA = \ |
fccd44ec | 575 | units/user/basic.target \ |
af2d49f7 LP |
576 | units/user/default.target \ |
577 | units/user/exit.target | |
0d26c910 | 578 | |
af2d49f7 | 579 | nodist_userunit_DATA = \ |
0e0320e0 | 580 | units/user/systemd-exit.service |
fb1bd35a | 581 | |
1713703c LP |
582 | dist_systempreset_DATA = \ |
583 | system-preset/90-systemd.preset | |
584 | ||
2a018e83 | 585 | EXTRA_DIST += \ |
5e6afdd3 | 586 | units/getty@.service.m4 \ |
93a45c56 | 587 | units/serial-getty@.service.m4 \ |
9cf25786 | 588 | units/console-shell.service.m4.in \ |
337eebb9 | 589 | units/console-getty.service.m4.in \ |
04d39279 | 590 | units/container-getty@.service.m4.in \ |
9c080427 | 591 | units/rescue.service.in \ |
70fcff31 | 592 | units/systemd-initctl.service.in \ |
2b93b027 | 593 | units/systemd-remount-fs.service.in \ |
3f92e4b4 | 594 | units/systemd-update-utmp.service.in \ |
cd6d0a45 | 595 | units/systemd-update-utmp-runlevel.service.in \ |
306a7fd8 | 596 | units/systemd-ask-password-wall.service.in \ |
8cf3a8a9 | 597 | units/systemd-ask-password-console.service.in \ |
8e1bd70d | 598 | units/systemd-sysctl.service.in \ |
9cf25786 | 599 | units/emergency.service.in \ |
0e0320e0 LP |
600 | units/systemd-halt.service.in \ |
601 | units/systemd-poweroff.service.in \ | |
602 | units/systemd-reboot.service.in \ | |
603 | units/systemd-kexec.service.in \ | |
604 | units/user/systemd-exit.service.in \ | |
93a1d735 LP |
605 | units/systemd-fsck@.service.in \ |
606 | units/systemd-fsck-root.service.in \ | |
a1405db6 | 607 | units/systemd-machine-id-commit.service.in \ |
dd5ae4c3 | 608 | units/user@.service.m4.in \ |
d1f9edaf | 609 | units/debug-shell.service.in \ |
0e0320e0 | 610 | units/systemd-suspend.service.in \ |
b51fc639 | 611 | units/quotaon.service.in \ |
7b40ce55 MB |
612 | units/initrd-parse-etc.service.in \ |
613 | units/initrd-cleanup.service.in \ | |
614 | units/initrd-udevadm-cleanup-db.service.in \ | |
615 | units/initrd-switch-root.service.in \ | |
8ea48dfc | 616 | units/systemd-nspawn@.service.in \ |
83e7d885 | 617 | units/systemd-update-done.service.in |
e24067c3 | 618 | |
b1c4ca25 LP |
619 | if HAVE_SYSV_COMPAT |
620 | nodist_systemunit_DATA += \ | |
621 | units/rc-local.service \ | |
622 | units/halt-local.service | |
1de4d79b | 623 | |
15673083 | 624 | systemgenerator_PROGRAMS += \ |
95ed3294 | 625 | systemd-sysv-generator \ |
15673083 | 626 | systemd-rc-local-generator |
6fdae8a6 DM |
627 | endif |
628 | ||
52edb228 ZJS |
629 | EXTRA_DIST += \ |
630 | units/rc-local.service.in \ | |
631 | units/halt-local.service.in | |
632 | ||
a0f9c810 KS |
633 | # automake is broken and can't handle files with a dash in front |
634 | # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8 | |
635 | units-install-hook: | |
636 | mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice | |
637 | ||
638 | units-uninstall-hook: | |
639 | rm -f $(DESTDIR)/$(systemunitdir)/-.slice | |
640 | ||
641 | INSTALL_DATA_HOOKS += units-install-hook | |
642 | UNINSTALL_DATA_HOOKS += units-uninstall-hook | |
643 | ||
240a3a85 LP |
644 | dist_doc_DATA = \ |
645 | README \ | |
3e214785 | 646 | NEWS \ |
5430f7f2 | 647 | LICENSE.LGPL2.1 \ |
f33d3ec1 | 648 | LICENSE.GPL2 \ |
88ce2902 ZJS |
649 | DISTRO_PORTING \ |
650 | src/libsystemd/sd-bus/PORTING-DBUS1 \ | |
651 | src/libsystemd/sd-bus/DIFFERENCES \ | |
652 | src/libsystemd/sd-bus/GVARIANT-SERIALIZATION | |
240a3a85 | 653 | |
1c7dde3e | 654 | @INTLTOOL_POLICY_RULE@ |
7640a5de | 655 | |
235450b0 | 656 | # ------------------------------------------------------------------------------ |
823eb4e6 ZJS |
657 | |
658 | MANPAGES = | |
659 | MANPAGES_ALIAS = | |
660 | ||
661 | include Makefile-man.am | |
235450b0 | 662 | |
9f700755 | 663 | .PHONY: man update-man-list |
330fe879 ZJS |
664 | man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS) |
665 | ||
235450b0 KS |
666 | XML_FILES = \ |
667 | ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}} | |
86b45477 ZJS |
668 | HTML_FILES = \ |
669 | ${XML_FILES:.xml=.html} | |
87cfe600 ZJS |
670 | HTML_ALIAS = \ |
671 | ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}} | |
235450b0 KS |
672 | |
673 | if ENABLE_MANPAGES | |
674 | man_MANS = \ | |
675 | $(MANPAGES) \ | |
676 | $(MANPAGES_ALIAS) | |
677 | ||
87cfe600 ZJS |
678 | noinst_DATA += \ |
679 | $(HTML_FILES) \ | |
680 | $(HTML_ALIAS) | |
24fb2ddc LP |
681 | |
682 | CLEANFILES += \ | |
86b45477 | 683 | $(man_MANS) \ |
87cfe600 ZJS |
684 | $(HTML_FILES) \ |
685 | $(HTML_ALIAS) | |
686 | ||
687 | docs/html/man: | |
688 | $(AM_V_at)$(MKDIR_P) $(dir $@) | |
689 | $(AM_V_LN)$(LN_S) -f ../../man $@ | |
9c4fa6ed | 690 | |
9b281072 | 691 | noinst_DATA += \ |
9b281072 ZJS |
692 | docs/html/man |
693 | ||
87cfe600 ZJS |
694 | CLEANFILES += \ |
695 | docs/html/man | |
9b281072 | 696 | |
9c4fa6ed | 697 | if HAVE_PYTHON |
87cfe600 ZJS |
698 | man/index.html: man/systemd.index.html |
699 | $(AM_V_LN)$(LN_S) -f systemd.index.html $@ | |
700 | ||
42007a09 ZJS |
701 | noinst_DATA += \ |
702 | man/index.html | |
703 | ||
704 | CLEANFILES += \ | |
9b281072 | 705 | man/index.html |
42007a09 | 706 | |
a1c65062 | 707 | XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml) |
ccc9a4f9 | 708 | NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES)) |
1a13e31d | 709 | SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES)) |
56ba3c78 | 710 | |
3c3e5f42 | 711 | update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB) |
56ba3c78 ZJS |
712 | $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp |
713 | $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am | |
714 | @echo "Makefile-man.am has been regenerated" | |
715 | ||
3c3e5f42 | 716 | man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES) |
f6b6728d | 717 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
1a13e31d | 718 | $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^) |
f6b6728d | 719 | |
3c3e5f42 | 720 | man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py $(SOURCE_XML_FILES) |
d9cfd694 | 721 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
1a13e31d | 722 | $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^) |
d9cfd694 ZJS |
723 | |
724 | EXTRA_DIST += \ | |
f6b6728d | 725 | man/systemd.index.xml \ |
42007a09 | 726 | man/index.html \ |
f45d3287 ZJS |
727 | man/systemd.directives.xml \ |
728 | man/glib-event-glue.c | |
d9cfd694 | 729 | |
86b45477 ZJS |
730 | CLEANFILES += \ |
731 | man/systemd.index.xml \ | |
732 | man/systemd.directives.xml | |
733 | ||
9c4fa6ed LP |
734 | endif |
735 | ||
235450b0 KS |
736 | endif |
737 | ||
738 | EXTRA_DIST += \ | |
739 | $(XML_FILES) \ | |
86b45477 | 740 | $(HTML_FILES) \ |
87cfe600 | 741 | $(HTML_ALIAS) \ |
b31c6d8d | 742 | $(man_MANS) \ |
3c3e5f42 KZ |
743 | tools/make-man-index.py \ |
744 | tools/make-directive-index.py \ | |
7c071fda | 745 | tools/xml_helper.py |
235450b0 KS |
746 | |
747 | # ------------------------------------------------------------------------------ | |
04a9d3a0 | 748 | noinst_LTLIBRARIES += \ |
49e942b2 | 749 | libsystemd-shared.la |
139be57d | 750 | |
49e942b2 | 751 | libsystemd_shared_la_SOURCES = \ |
0b906b8d KS |
752 | src/shared/capability.c \ |
753 | src/shared/capability.h \ | |
c0a0872d | 754 | src/shared/linux/auto_dev-ioctl.h \ |
718db961 | 755 | src/shared/ioprio.h \ |
c0a0872d | 756 | src/shared/missing.h \ |
baabc577 LP |
757 | src/shared/initreq.h \ |
758 | src/shared/securebits.h \ | |
759 | src/shared/special.h \ | |
3bdf9c1d | 760 | src/shared/list.h \ |
f089257d | 761 | src/shared/unaligned.h \ |
3bdf9c1d KS |
762 | src/shared/macro.h \ |
763 | src/shared/def.h \ | |
718db961 LP |
764 | src/shared/sparse-endian.h \ |
765 | src/shared/refcnt.h \ | |
766 | src/shared/udev-util.h \ | |
8f6ce71f DR |
767 | src/shared/device-nodes.c \ |
768 | src/shared/device-nodes.h \ | |
d7832d2c KS |
769 | src/shared/util.c \ |
770 | src/shared/util.h \ | |
771 | src/shared/virt.c \ | |
772 | src/shared/virt.h \ | |
099524d7 LP |
773 | src/shared/architecture.c \ |
774 | src/shared/architecture.h \ | |
2e3d0692 LP |
775 | src/shared/efivars.c \ |
776 | src/shared/efivars.h \ | |
73e21667 | 777 | src/shared/formats-util.h \ |
d15d0333 ZJS |
778 | src/shared/fstab-util.c \ |
779 | src/shared/fstab-util.h \ | |
cd2eb9e9 CW |
780 | src/shared/lockfile-util.c \ |
781 | src/shared/lockfile-util.h \ | |
9eb977db KS |
782 | src/shared/path-util.c \ |
783 | src/shared/path-util.h \ | |
9a98c7a1 LP |
784 | src/shared/time-util.c \ |
785 | src/shared/time-util.h \ | |
75683450 LP |
786 | src/shared/locale-util.c \ |
787 | src/shared/locale-util.h \ | |
b3dcf58e MS |
788 | src/shared/mempool.c \ |
789 | src/shared/mempool.h \ | |
d7832d2c KS |
790 | src/shared/hashmap.c \ |
791 | src/shared/hashmap.h \ | |
9bf3b535 LP |
792 | src/shared/siphash24.c \ |
793 | src/shared/siphash24.h \ | |
d7832d2c | 794 | src/shared/set.h \ |
4a280a7e | 795 | src/shared/ordered-set.h \ |
f934051c LP |
796 | src/shared/fdset.c \ |
797 | src/shared/fdset.h \ | |
30bdd695 LP |
798 | src/shared/prioq.c \ |
799 | src/shared/prioq.h \ | |
19adb8a3 ZJS |
800 | src/shared/sleep-config.c \ |
801 | src/shared/sleep-config.h \ | |
d7832d2c KS |
802 | src/shared/strv.c \ |
803 | src/shared/strv.h \ | |
4d1a6904 LP |
804 | src/shared/env-util.c \ |
805 | src/shared/env-util.h \ | |
955bd501 KS |
806 | src/shared/strbuf.c \ |
807 | src/shared/strbuf.h \ | |
d5a89d7d KS |
808 | src/shared/strxcpyx.c \ |
809 | src/shared/strxcpyx.h \ | |
d7832d2c KS |
810 | src/shared/conf-parser.c \ |
811 | src/shared/conf-parser.h \ | |
d7832d2c KS |
812 | src/shared/log.c \ |
813 | src/shared/log.h \ | |
814 | src/shared/ratelimit.h \ | |
815 | src/shared/ratelimit.c \ | |
816 | src/shared/exit-status.c \ | |
817 | src/shared/exit-status.h \ | |
818 | src/shared/utf8.c \ | |
77d47be6 | 819 | src/shared/utf8.h \ |
f405e86d SL |
820 | src/shared/gunicode.c \ |
821 | src/shared/gunicode.h \ | |
9f36aa68 | 822 | src/shared/pager.c \ |
771f19c0 | 823 | src/shared/pager.h \ |
cc527a47 KS |
824 | src/shared/socket-util.c \ |
825 | src/shared/socket-util.h \ | |
3b653205 LP |
826 | src/shared/in-addr-util.c \ |
827 | src/shared/in-addr-util.h \ | |
d8500c53 | 828 | src/shared/ether-addr-util.h \ |
2c21044f KS |
829 | src/shared/conf-files.c \ |
830 | src/shared/conf-files.h \ | |
cc527a47 KS |
831 | src/shared/cgroup-util.c \ |
832 | src/shared/cgroup-util.h \ | |
f33d3ec1 KS |
833 | src/shared/cgroup-show.c \ |
834 | src/shared/cgroup-show.h \ | |
835 | src/shared/unit-name.c \ | |
836 | src/shared/unit-name.h \ | |
f33d3ec1 KS |
837 | src/shared/utmp-wtmp.h \ |
838 | src/shared/watchdog.c \ | |
839 | src/shared/watchdog.h \ | |
f33d3ec1 KS |
840 | src/shared/spawn-ask-password-agent.c \ |
841 | src/shared/spawn-ask-password-agent.h \ | |
6e6fb527 LP |
842 | src/shared/replace-var.c \ |
843 | src/shared/replace-var.h \ | |
f33d3ec1 | 844 | src/shared/spawn-polkit-agent.c \ |
bbc98d32 | 845 | src/shared/spawn-polkit-agent.h \ |
24efb112 KS |
846 | src/shared/clock-util.c \ |
847 | src/shared/clock-util.h \ | |
36697dc0 | 848 | src/shared/calendarspec.c \ |
9bdbc2e2 | 849 | src/shared/calendarspec.h \ |
a5c32cff HH |
850 | src/shared/fileio.c \ |
851 | src/shared/fileio.h \ | |
a56f19c4 | 852 | src/shared/output-mode.h \ |
57d0e6b2 KS |
853 | src/shared/MurmurHash2.c \ |
854 | src/shared/MurmurHash2.h \ | |
c51d84dc KS |
855 | src/shared/acpi-fpdt.h \ |
856 | src/shared/acpi-fpdt.c \ | |
857 | src/shared/boot-timestamps.h \ | |
858 | src/shared/boot-timestamps.c \ | |
fbd8ebdd | 859 | src/shared/mkdir.c \ |
8552b176 AK |
860 | src/shared/mkdir.h \ |
861 | src/shared/smack-util.c \ | |
d682b3a7 LP |
862 | src/shared/smack-util.h \ |
863 | src/shared/apparmor-util.c \ | |
864 | src/shared/apparmor-util.h \ | |
865 | src/shared/ima-util.c \ | |
4ba93280 LP |
866 | src/shared/ima-util.h \ |
867 | src/shared/ptyfwd.c \ | |
be32eb9b | 868 | src/shared/ptyfwd.h \ |
780896a4 | 869 | src/shared/errno-list.c \ |
baabc577 | 870 | src/shared/errno-list.h \ |
4298d0b5 LP |
871 | src/shared/af-list.c \ |
872 | src/shared/af-list.h \ | |
ee8c4568 LP |
873 | src/shared/arphrd-list.c \ |
874 | src/shared/arphrd-list.h \ | |
2822da4f LP |
875 | src/shared/cap-list.c \ |
876 | src/shared/cap-list.h \ | |
5b12334d | 877 | src/shared/audit.c \ |
08bcebf3 LP |
878 | src/shared/audit.h \ |
879 | src/shared/xml.c \ | |
b77c08e0 | 880 | src/shared/xml.h \ |
e7eebcfc LP |
881 | src/shared/json.c \ |
882 | src/shared/json.h \ | |
f01de965 | 883 | src/shared/bus-label.c \ |
e48fdd84 LP |
884 | src/shared/bus-label.h \ |
885 | src/shared/gpt.h \ | |
66cdd0f2 | 886 | src/shared/clean-ipc.h \ |
58dfc42e LP |
887 | src/shared/clean-ipc.c \ |
888 | src/shared/login-shared.c \ | |
76cf10da | 889 | src/shared/login-shared.h \ |
e0dd9272 DH |
890 | src/shared/ring.c \ |
891 | src/shared/ring.h \ | |
279da1e3 DH |
892 | src/shared/barrier.c \ |
893 | src/shared/barrier.h \ | |
a47d1dfd DH |
894 | src/shared/pty.c \ |
895 | src/shared/pty.h \ | |
76cf10da | 896 | src/shared/async.c \ |
e866af3a | 897 | src/shared/async.h \ |
3577de7a | 898 | src/shared/base-filesystem.c \ |
c9fdc26e | 899 | src/shared/base-filesystem.h \ |
a09abc4a LP |
900 | src/shared/memfd-util.c \ |
901 | src/shared/memfd-util.h \ | |
0b452006 RC |
902 | src/shared/process-util.c \ |
903 | src/shared/process-util.h \ | |
3df3e884 RC |
904 | src/shared/random-util.c \ |
905 | src/shared/random-util.h \ | |
288a74cc RC |
906 | src/shared/terminal-util.c \ |
907 | src/shared/terminal-util.h \ | |
8530dc44 LP |
908 | src/shared/uid-range.c \ |
909 | src/shared/uid-range.h \ | |
d7c7c334 | 910 | src/shared/nss-util.h \ |
dca59f62 | 911 | src/shared/verbs.c \ |
8b169c0f | 912 | src/shared/verbs.h \ |
fa6ac760 LP |
913 | src/shared/sigbus.c \ |
914 | src/shared/sigbus.h \ | |
3d7415f4 LP |
915 | src/shared/build.h \ |
916 | src/shared/import-util.c \ | |
88a60da0 KS |
917 | src/shared/import-util.h \ |
918 | src/shared/sysctl-util.c \ | |
958b66ea LP |
919 | src/shared/sysctl-util.h \ |
920 | src/shared/hostname-util.h \ | |
921 | src/shared/hostname-util.c | |
780896a4 | 922 | |
37161c51 ERB |
923 | if HAVE_UTMP |
924 | libsystemd_shared_la_SOURCES += \ | |
925 | src/shared/utmp-wtmp.c | |
926 | endif | |
927 | ||
780896a4 LP |
928 | nodist_libsystemd_shared_la_SOURCES = \ |
929 | src/shared/errno-from-name.h \ | |
4298d0b5 LP |
930 | src/shared/errno-to-name.h \ |
931 | src/shared/af-from-name.h \ | |
ee8c4568 LP |
932 | src/shared/af-to-name.h \ |
933 | src/shared/arphrd-from-name.h \ | |
2822da4f LP |
934 | src/shared/arphrd-to-name.h \ |
935 | src/shared/cap-from-name.h \ | |
936 | src/shared/cap-to-name.h | |
bd5b0d57 | 937 | |
41fd4c4c KS |
938 | libsystemd_shared_la_CFLAGS = \ |
939 | $(AM_CFLAGS) \ | |
7680857a | 940 | $(CAP_CFLAGS) \ |
8e75477a RC |
941 | $(SECCOMP_CFLAGS) \ |
942 | -pthread | |
41fd4c4c | 943 | |
7680857a | 944 | libsystemd_shared_la_LIBADD = \ |
1325ec42 KS |
945 | $(CAP_LIBS) \ |
946 | -lm | |
7680857a | 947 | |
49e942b2 KS |
948 | # ------------------------------------------------------------------------------ |
949 | noinst_LTLIBRARIES += \ | |
477572f5 | 950 | libsystemd-units.la |
49e942b2 | 951 | |
477572f5 | 952 | libsystemd_units_la_SOURCES = \ |
f33d3ec1 KS |
953 | src/shared/install.c \ |
954 | src/shared/install.h \ | |
7584d236 ZJS |
955 | src/shared/install-printf.c \ |
956 | src/shared/install-printf.h \ | |
f33d3ec1 | 957 | src/shared/path-lookup.c \ |
ee465038 ZJS |
958 | src/shared/path-lookup.h \ |
959 | src/shared/specifier.c \ | |
960 | src/shared/specifier.h | |
477572f5 | 961 | |
477572f5 KS |
962 | # ------------------------------------------------------------------------------ |
963 | noinst_LTLIBRARIES += \ | |
964 | libsystemd-label.la | |
965 | ||
966 | libsystemd_label_la_SOURCES = \ | |
cc527a47 | 967 | src/shared/socket-label.c \ |
49e942b2 KS |
968 | src/shared/label.c \ |
969 | src/shared/label.h \ | |
cad45ba1 LP |
970 | src/shared/selinux-util.c \ |
971 | src/shared/selinux-util.h \ | |
39bdfa31 | 972 | src/shared/mkdir-label.c \ |
3bdf9c1d | 973 | src/shared/ask-password-api.c \ |
88f642c0 | 974 | src/shared/ask-password-api.h \ |
941a6435 KS |
975 | src/shared/switch-root.h \ |
976 | src/shared/switch-root.c \ | |
a5c32cff HH |
977 | src/shared/fileio-label.c \ |
978 | src/shared/fileio-label.h \ | |
88f642c0 | 979 | src/shared/dev-setup.c \ |
29686440 ZJS |
980 | src/shared/dev-setup.h \ |
981 | src/shared/dropin.c \ | |
982 | src/shared/dropin.h \ | |
657bf5a1 KS |
983 | src/shared/condition.c \ |
984 | src/shared/condition.h \ | |
29686440 | 985 | src/shared/generator.h \ |
1325ec42 KS |
986 | src/shared/generator.c \ |
987 | src/shared/btrfs-util.c \ | |
988 | src/shared/btrfs-util.h \ | |
989 | src/shared/btrfs-ctree.h \ | |
d9e2daaf LP |
990 | src/shared/rm-rf.c \ |
991 | src/shared/rm-rf.h \ | |
1325ec42 KS |
992 | src/shared/machine-image.c \ |
993 | src/shared/machine-image.h \ | |
432cea00 LP |
994 | src/shared/machine-pool.c \ |
995 | src/shared/machine-pool.h \ | |
1325ec42 KS |
996 | src/shared/copy.c \ |
997 | src/shared/copy.h | |
49e942b2 | 998 | |
cc527a47 | 999 | libsystemd_label_la_CFLAGS = \ |
4927fcae LP |
1000 | $(AM_CFLAGS) \ |
1001 | $(SELINUX_CFLAGS) | |
1002 | ||
cc527a47 | 1003 | libsystemd_label_la_LIBADD = \ |
d7832d2c KS |
1004 | $(SELINUX_LIBS) |
1005 | ||
12e34d9d UTL |
1006 | # ----------------------------------------------------------------------------- |
1007 | ||
76917807 LP |
1008 | if HAVE_LIBIPTC |
1009 | noinst_LTLIBRARIES += \ | |
1010 | libsystemd-fw.la | |
1011 | ||
1012 | libsystemd_fw_la_SOURCES = \ | |
1013 | src/shared/fw-util.h \ | |
1014 | src/shared/fw-util.c | |
1015 | ||
1016 | libsystemd_fw_la_CFLAGS = \ | |
1017 | $(AM_CFLAGS) \ | |
1018 | $(LIBIPTC_CFLAGS) | |
1019 | ||
1020 | libsystemd_fw_la_LIBADD = \ | |
1021 | $(LIBIPTC_LIBS) | |
1022 | endif | |
1023 | ||
1024 | # ----------------------------------------------------------------------------- | |
1025 | ||
12e34d9d UTL |
1026 | if ENABLE_LDCONFIG |
1027 | dist_systemunit_DATA += \ | |
1028 | units/ldconfig.service | |
1029 | ||
1030 | SYSINIT_TARGET_WANTS += \ | |
1031 | ldconfig.service | |
1032 | endif | |
1033 | ||
e9642be2 LP |
1034 | # ------------------------------------------------------------------------------ |
1035 | ||
1036 | if HAVE_SECCOMP | |
e9642be2 LP |
1037 | noinst_LTLIBRARIES += \ |
1038 | libsystemd-seccomp.la | |
1039 | ||
1040 | libsystemd_seccomp_la_SOURCES = \ | |
1041 | src/shared/seccomp-util.h \ | |
1042 | src/shared/seccomp-util.c | |
1043 | ||
1044 | libsystemd_seccomp_la_CFLAGS = \ | |
1045 | $(AM_CFLAGS) \ | |
1046 | $(SECCOMP_CFLAGS) | |
1047 | ||
1048 | libsystemd_seccomp_la_LIBADD = \ | |
1049 | $(SECCOMP_LIBS) | |
e9642be2 LP |
1050 | endif |
1051 | ||
41e51714 LP |
1052 | # ------------------------------------------------------------------------------ |
1053 | noinst_LTLIBRARIES += \ | |
1054 | libsystemd-logs.la | |
1055 | ||
1056 | libsystemd_logs_la_SOURCES = \ | |
1057 | src/shared/logs-show.c \ | |
1058 | src/shared/logs-show.h | |
1059 | ||
78b2e3a6 | 1060 | # ------------------------------------------------------------------------------ |
79c07722 | 1061 | if HAVE_ACL |
04a9d3a0 KS |
1062 | noinst_LTLIBRARIES += \ |
1063 | libsystemd-acl.la | |
1064 | ||
78b2e3a6 | 1065 | libsystemd_acl_la_SOURCES = \ |
79c07722 KS |
1066 | src/shared/acl-util.c \ |
1067 | src/shared/acl-util.h | |
78b2e3a6 KS |
1068 | |
1069 | libsystemd_acl_la_CFLAGS = \ | |
1070 | $(AM_CFLAGS) \ | |
1071 | $(ACL_CFLAGS) | |
1072 | ||
1073 | libsystemd_acl_la_LIBADD = \ | |
48d7417d | 1074 | $(ACL_LIBS) |
79c07722 | 1075 | endif |
78b2e3a6 | 1076 | |
d7832d2c | 1077 | # ------------------------------------------------------------------------------ |
04a9d3a0 KS |
1078 | noinst_LTLIBRARIES += \ |
1079 | libsystemd-core.la | |
1080 | ||
139be57d | 1081 | libsystemd_core_la_SOURCES = \ |
b30e2f4c KS |
1082 | src/core/unit.c \ |
1083 | src/core/unit.h \ | |
41f9172f LP |
1084 | src/core/unit-printf.c \ |
1085 | src/core/unit-printf.h \ | |
b30e2f4c KS |
1086 | src/core/job.c \ |
1087 | src/core/job.h \ | |
1088 | src/core/manager.c \ | |
1089 | src/core/manager.h \ | |
75778e21 MS |
1090 | src/core/transaction.c \ |
1091 | src/core/transaction.h \ | |
b30e2f4c KS |
1092 | src/core/load-fragment.c \ |
1093 | src/core/load-fragment.h \ | |
1094 | src/core/service.c \ | |
1095 | src/core/service.h \ | |
e821075a LP |
1096 | src/core/socket.c \ |
1097 | src/core/socket.h \ | |
1098 | src/core/busname.c \ | |
1099 | src/core/busname.h \ | |
bb7dd0b0 DM |
1100 | src/core/bus-endpoint.c \ |
1101 | src/core/bus-endpoint.h \ | |
3c70e3bb LP |
1102 | src/core/bus-policy.c \ |
1103 | src/core/bus-policy.h \ | |
b30e2f4c KS |
1104 | src/core/target.c \ |
1105 | src/core/target.h \ | |
1106 | src/core/snapshot.c \ | |
1107 | src/core/snapshot.h \ | |
e821075a LP |
1108 | src/core/device.c \ |
1109 | src/core/device.h \ | |
1110 | src/core/mount.c \ | |
1111 | src/core/mount.h \ | |
1112 | src/core/automount.c \ | |
1113 | src/core/automount.h \ | |
1114 | src/core/swap.c \ | |
1115 | src/core/swap.h \ | |
b30e2f4c KS |
1116 | src/core/timer.c \ |
1117 | src/core/timer.h \ | |
1118 | src/core/path.c \ | |
1119 | src/core/path.h \ | |
a016b922 LP |
1120 | src/core/slice.c \ |
1121 | src/core/slice.h \ | |
6c12b52e LP |
1122 | src/core/scope.c \ |
1123 | src/core/scope.h \ | |
b30e2f4c KS |
1124 | src/core/load-dropin.c \ |
1125 | src/core/load-dropin.h \ | |
1126 | src/core/execute.c \ | |
1127 | src/core/execute.h \ | |
4819ff03 LP |
1128 | src/core/kill.c \ |
1129 | src/core/kill.h \ | |
b30e2f4c KS |
1130 | src/core/dbus.c \ |
1131 | src/core/dbus.h \ | |
1132 | src/core/dbus-manager.c \ | |
1133 | src/core/dbus-manager.h \ | |
1134 | src/core/dbus-unit.c \ | |
1135 | src/core/dbus-unit.h \ | |
1136 | src/core/dbus-job.c \ | |
1137 | src/core/dbus-job.h \ | |
1138 | src/core/dbus-service.c \ | |
1139 | src/core/dbus-service.h \ | |
1140 | src/core/dbus-socket.c \ | |
1141 | src/core/dbus-socket.h \ | |
e821075a LP |
1142 | src/core/dbus-busname.c \ |
1143 | src/core/dbus-busname.h \ | |
b30e2f4c KS |
1144 | src/core/dbus-target.c \ |
1145 | src/core/dbus-target.h \ | |
e821075a LP |
1146 | src/core/dbus-snapshot.c \ |
1147 | src/core/dbus-snapshot.h \ | |
1148 | src/core/dbus-device.c \ | |
1149 | src/core/dbus-device.h \ | |
b30e2f4c KS |
1150 | src/core/dbus-mount.c \ |
1151 | src/core/dbus-mount.h \ | |
1152 | src/core/dbus-automount.c \ | |
1153 | src/core/dbus-automount.h \ | |
1154 | src/core/dbus-swap.c \ | |
1155 | src/core/dbus-swap.h \ | |
e821075a LP |
1156 | src/core/dbus-timer.c \ |
1157 | src/core/dbus-timer.h \ | |
b30e2f4c KS |
1158 | src/core/dbus-path.c \ |
1159 | src/core/dbus-path.h \ | |
a016b922 LP |
1160 | src/core/dbus-slice.c \ |
1161 | src/core/dbus-slice.h \ | |
6c12b52e LP |
1162 | src/core/dbus-scope.c \ |
1163 | src/core/dbus-scope.h \ | |
4ad49000 LP |
1164 | src/core/dbus-execute.c \ |
1165 | src/core/dbus-execute.h \ | |
1166 | src/core/dbus-kill.c \ | |
1167 | src/core/dbus-kill.h \ | |
1168 | src/core/dbus-cgroup.c \ | |
1169 | src/core/dbus-cgroup.h \ | |
b30e2f4c KS |
1170 | src/core/cgroup.c \ |
1171 | src/core/cgroup.h \ | |
e2417e41 DW |
1172 | src/core/selinux-access.c \ |
1173 | src/core/selinux-access.h \ | |
b30e2f4c KS |
1174 | src/core/selinux-setup.c \ |
1175 | src/core/selinux-setup.h \ | |
ffbd2c4d NC |
1176 | src/core/smack-setup.c \ |
1177 | src/core/smack-setup.h \ | |
b30e2f4c KS |
1178 | src/core/ima-setup.c \ |
1179 | src/core/ima-setup.h \ | |
b30e2f4c KS |
1180 | src/core/locale-setup.h \ |
1181 | src/core/locale-setup.c \ | |
4d896139 LP |
1182 | src/core/hostname-setup.c \ |
1183 | src/core/hostname-setup.h \ | |
08e1fb68 LP |
1184 | src/core/machine-id-setup.c \ |
1185 | src/core/machine-id-setup.h \ | |
1186 | src/core/mount-setup.c \ | |
1187 | src/core/mount-setup.h \ | |
f84f9974 LP |
1188 | src/core/kmod-setup.c \ |
1189 | src/core/kmod-setup.h \ | |
08e1fb68 LP |
1190 | src/core/loopback-setup.h \ |
1191 | src/core/loopback-setup.c \ | |
b30e2f4c KS |
1192 | src/core/namespace.c \ |
1193 | src/core/namespace.h \ | |
bd3fa1d2 | 1194 | src/core/killall.h \ |
8351ceae | 1195 | src/core/killall.c \ |
c1165f82 | 1196 | src/core/audit-fd.c \ |
c65eb836 | 1197 | src/core/audit-fd.h \ |
4d7213b2 | 1198 | src/core/show-status.c \ |
2928b0a8 LP |
1199 | src/core/show-status.h \ |
1200 | src/core/failure-action.c \ | |
1201 | src/core/failure-action.h | |
47be870b | 1202 | |
f975e971 | 1203 | nodist_libsystemd_core_la_SOURCES = \ |
90ccc3fc | 1204 | src/core/load-fragment-gperf.c \ |
baabc577 | 1205 | src/core/load-fragment-gperf-nulstr.c |
6e5c0444 | 1206 | |
139be57d LP |
1207 | libsystemd_core_la_CFLAGS = \ |
1208 | $(AM_CFLAGS) \ | |
4927fcae | 1209 | $(PAM_CFLAGS) \ |
4536f716 | 1210 | $(AUDIT_CFLAGS) \ |
c65eb836 | 1211 | $(KMOD_CFLAGS) \ |
eef65bf3 | 1212 | $(APPARMOR_CFLAGS) \ |
c0467cf3 | 1213 | $(SECCOMP_CFLAGS) \ |
8d3ae2bd | 1214 | $(MOUNT_CFLAGS) \ |
c65eb836 | 1215 | -pthread |
139be57d LP |
1216 | |
1217 | libsystemd_core_la_LIBADD = \ | |
477572f5 | 1218 | libsystemd-units.la \ |
cc527a47 | 1219 | libsystemd-label.la \ |
48d7417d KS |
1220 | libudev-internal.la \ |
1221 | libsystemd-shared.la \ | |
6bb648a1 | 1222 | libsystemd-internal.la \ |
7a58bfa4 | 1223 | $(PAM_LIBS) \ |
85f19d82 | 1224 | $(AUDIT_LIBS) \ |
e9642be2 | 1225 | $(KMOD_LIBS) \ |
eef65bf3 | 1226 | $(APPARMOR_LIBS) \ |
8d3ae2bd CL |
1227 | $(SECCOMP_LIBS) \ |
1228 | $(MOUNT_LIBS) | |
e9642be2 LP |
1229 | |
1230 | if HAVE_SECCOMP | |
1231 | libsystemd_core_la_LIBADD += \ | |
1232 | libsystemd-seccomp.la | |
1233 | endif | |
139be57d | 1234 | |
90ccc3fc | 1235 | src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf |
bd923ff2 ZJS |
1236 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
1237 | $(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 ";" }' < $< > $@ | |
90ccc3fc | 1238 | |
9e4ded30 | 1239 | gperf_gperf_m4_sources = \ |
90ccc3fc KS |
1240 | src/core/load-fragment-gperf.gperf.m4 |
1241 | ||
9e4ded30 | 1242 | gperf_txt_sources = \ |
780896a4 | 1243 | src/shared/errno-list.txt \ |
4298d0b5 | 1244 | src/shared/af-list.txt \ |
ee8c4568 | 1245 | src/shared/arphrd-list.txt \ |
9e4ded30 | 1246 | src/shared/cap-list.txt |
8351ceae | 1247 | |
cc9f61b8 | 1248 | BUILT_SOURCES += \ |
9e4ded30 ZJS |
1249 | $(gperf_gperf_m4_sources:-gperf.gperf.m4=-gperf.c) \ |
1250 | $(gperf_gperf_m4_sources:-gperf.gperf.m4=-gperf-nulstr.c) \ | |
1251 | $(gperf_gperf_sources:-gperf.gperf=-gperf.c) \ | |
1252 | $(gperf_txt_sources:-list.txt=-from-name.h) \ | |
1253 | $(gperf_txt_sources:-list.txt=-to-name.h) | |
1254 | ||
1255 | CLEANFILES += \ | |
1256 | $(gperf_txt_sources:-list.txt=-from-name.gperf) | |
1257 | DISTCLEANFILES = \ | |
1258 | $(gperf_txt_sources) | |
1259 | ||
1260 | EXTRA_DIST += \ | |
1261 | $(gperf_gperf_m4_sources) \ | |
1262 | $(gperf_gperf_sources) \ | |
1263 | $(gperf_txt_sources:-list.txt=-from-name.gperf) | |
1264 | ||
1265 | CLEANFILES += \ | |
1266 | $(gperf_txt_sources) | |
cc9f61b8 | 1267 | |
7263f724 | 1268 | %-from-name.gperf: %-list.txt |
26511062 | 1269 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
7263f724 | 1270 | $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@ |
780896a4 | 1271 | |
7263f724 | 1272 | %-from-name.h: %-from-name.gperf |
26511062 | 1273 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
7263f724 | 1274 | $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@ |
780896a4 | 1275 | |
780896a4 | 1276 | |
fd00a088 | 1277 | src/shared/errno-list.txt: |
780896a4 | 1278 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
ee8c4568 | 1279 | $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@ |
90ccc3fc | 1280 | |
fd00a088 | 1281 | src/shared/errno-to-name.h: src/shared/errno-list.txt |
26511062 | 1282 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
fd00a088 | 1283 | $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@ |
4298d0b5 | 1284 | |
4298d0b5 | 1285 | |
fd00a088 | 1286 | src/shared/af-list.txt: |
4298d0b5 | 1287 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
ee8c4568 | 1288 | $(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; }' >$@ |
4298d0b5 LP |
1289 | |
1290 | src/shared/af-to-name.h: src/shared/af-list.txt | |
26511062 | 1291 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
fd00a088 | 1292 | $(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 "};"}' <$< >$@ |
4298d0b5 | 1293 | |
2822da4f | 1294 | |
ee8c4568 LP |
1295 | src/shared/arphrd-list.txt: |
1296 | $(AM_V_at)$(MKDIR_P) $(dir $@) | |
1297 | $(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_//' >$@ | |
1298 | ||
1299 | src/shared/arphrd-to-name.h: src/shared/arphrd-list.txt | |
26511062 | 1300 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
ee8c4568 LP |
1301 | $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@ |
1302 | ||
1303 | src/shared/arphrd-from-name.gperf: src/shared/arphrd-list.txt | |
26511062 | 1304 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
ee8c4568 LP |
1305 | $(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 }' <$< >$@ |
1306 | ||
7263f724 | 1307 | |
2822da4f LP |
1308 | src/shared/cap-list.txt: |
1309 | $(AM_V_at)$(MKDIR_P) $(dir $@) | |
1310 | $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include linux/capability.h -include missing.h - </dev/null | $(AWK) '/^#define[ \t]+CAP_[A-Z_]+[ \t]+/ { print $$2; }' | grep -v CAP_LAST_CAP >$@ | |
1311 | ||
1312 | src/shared/cap-to-name.h: src/shared/cap-list.txt | |
26511062 | 1313 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
34a3e4ec | 1314 | $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const capability_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, tolower($$1) } END{print "};"}' <$< >$@ |
2822da4f LP |
1315 | |
1316 | src/shared/cap-from-name.gperf: src/shared/cap-list.txt | |
26511062 | 1317 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
2822da4f LP |
1318 | $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct capability_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@ |
1319 | ||
1320 | src/shared/cap-from-name.h: src/shared/cap-from-name.gperf | |
26511062 | 1321 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
2822da4f LP |
1322 | $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_capability -H hash_capability_name -p -C <$< >$@ |
1323 | ||
4733607e ZJS |
1324 | audit_list_includes = -include linux/audit.h missing.h |
1325 | if HAVE_AUDIT | |
1326 | audit_list_includes += -include libaudit.h | |
1327 | endif | |
1328 | ||
1329 | src/journal/audit_type-list.txt: | |
1330 | $(AM_V_at)$(MKDIR_P) $(dir $@) | |
1331 | $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include linux/audit.h -include missing.h - </dev/null | grep -vE 'AUDIT_.*(FIRST|LAST)_' | $(SED) -r -n 's/^#define\s+AUDIT_(\w+)\s+([0-9]{4})\s*$$/\1\t\2/p' | sort -k2 >$@ | |
1332 | ||
1333 | src/journal/audit_type-to-name.h: src/journal/audit_type-list.txt | |
26511062 | 1334 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
4733607e ZJS |
1335 | $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char *audit_type_to_string(int type) {\n\tswitch(type) {" } {printf " case AUDIT_%s: return \"%s\";\n", $$1, $$1 } END{ print " default: return NULL;\n\t}\n}\n" }' <$< >$@ |
1336 | ||
2822da4f | 1337 | |
7263f724 ZJS |
1338 | src/resolve/dns_type-list.txt: src/resolve/dns-type.h |
1339 | $(AM_V_at)$(MKDIR_P) $(dir $@) | |
1340 | $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@ | |
1341 | ||
1342 | src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt | |
26511062 | 1343 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
4733607e | 1344 | $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char *dns_type_to_string(int type) {\n\tswitch(type) {" } {printf " case DNS_TYPE_%s: return ", $$1; sub(/_/, "-"); printf "\"%s\";\n", $$1 } END{ print " default: return NULL;\n\t}\n}\n" }' <$< >$@ |
7263f724 ZJS |
1345 | |
1346 | src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt | |
26511062 | 1347 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
7263f724 ZJS |
1348 | $(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 }' <$< >$@ |
1349 | ||
d7832d2c | 1350 | # ------------------------------------------------------------------------------ |
47be870b | 1351 | systemd_SOURCES = \ |
78a825f2 | 1352 | src/core/main.c |
47be870b | 1353 | |
41fd4c4c KS |
1354 | systemd_CFLAGS = \ |
1355 | $(AM_CFLAGS) \ | |
1356 | $(SECCOMP_CFLAGS) | |
1357 | ||
47be870b | 1358 | systemd_LDADD = \ |
0d0a5ab4 | 1359 | libsystemd-core.la \ |
48d7417d | 1360 | $(RT_LIBS) |
47be870b | 1361 | |
90ccc3fc KS |
1362 | dist_pkgsysconf_DATA += \ |
1363 | src/core/system.conf \ | |
1364 | src/core/user.conf | |
1365 | ||
1366 | dist_dbuspolicy_DATA += \ | |
1367 | src/core/org.freedesktop.systemd1.conf | |
1368 | ||
1369 | dist_dbussystemservice_DATA += \ | |
1370 | src/core/org.freedesktop.systemd1.service | |
1371 | ||
46ba8aae | 1372 | polkitpolicy_in_in_files += \ |
90ccc3fc KS |
1373 | src/core/org.freedesktop.systemd1.policy.in.in |
1374 | ||
3bd31503 | 1375 | pkgconfigdata_DATA += \ |
90ccc3fc KS |
1376 | src/core/systemd.pc |
1377 | ||
590f18a2 LP |
1378 | nodist_rpmmacros_DATA = \ |
1379 | src/core/macros.systemd | |
1380 | ||
90ccc3fc | 1381 | EXTRA_DIST += \ |
590f18a2 LP |
1382 | src/core/systemd.pc.in \ |
1383 | src/core/macros.systemd.in | |
90ccc3fc | 1384 | |
d7832d2c | 1385 | # ------------------------------------------------------------------------------ |
8b835fcc | 1386 | |
cee22bd3 | 1387 | manual_tests += \ |
6cbf079f KS |
1388 | test-ns \ |
1389 | test-loopback \ | |
1390 | test-hostname \ | |
1391 | test-daemon \ | |
1392 | test-cgroup \ | |
6cbf079f | 1393 | test-install \ |
b0193f1c | 1394 | test-watchdog \ |
66cdd0f2 | 1395 | test-log \ |
d7c7c334 | 1396 | test-ipcrm \ |
8d09b6de KS |
1397 | test-btrfs |
1398 | ||
1399 | if HAVE_LIBIPTC | |
1400 | manual_tests += \ | |
76917807 | 1401 | test-fw-util |
8d09b6de | 1402 | endif |
1dd5aa56 ZJS |
1403 | |
1404 | if HAVE_KMOD | |
1405 | manual_tests += \ | |
9a6704a8 | 1406 | test-rtnl-manual |
1dd5aa56 | 1407 | endif |
6cbf079f | 1408 | |
cee22bd3 | 1409 | tests += \ |
0d8c31ff | 1410 | test-engine \ |
8328d8c6 | 1411 | test-cgroup-mask \ |
e0eaab7c KS |
1412 | test-job-type \ |
1413 | test-env-replace \ | |
97b5f608 | 1414 | test-strbuf \ |
95ea1b90 | 1415 | test-strv \ |
bc999297 | 1416 | test-path \ |
76877b46 | 1417 | test-path-util \ |
c62c294f | 1418 | test-strxcpyx \ |
b5b46d59 | 1419 | test-unit-name \ |
cfbc22ab | 1420 | test-unit-file \ |
02a36bc9 | 1421 | test-utf8 \ |
35d811f5 | 1422 | test-ellipsize \ |
539ad707 | 1423 | test-util \ |
0b452006 | 1424 | test-process-util \ |
288a74cc | 1425 | test-terminal-util \ |
4f1a33dd | 1426 | test-path-lookup \ |
e0dd9272 | 1427 | test-ring \ |
279da1e3 | 1428 | test-barrier \ |
a47d1dfd | 1429 | test-pty \ |
65b3903f | 1430 | test-tmpfiles \ |
d8c9d3a4 | 1431 | test-namespace \ |
6524990f | 1432 | test-date \ |
6e6fb527 | 1433 | test-sleep \ |
bb112710 | 1434 | test-replace-var \ |
36697dc0 | 1435 | test-sched-prio \ |
e8bc0ea2 | 1436 | test-calendarspec \ |
96cde13a | 1437 | test-strip-tab-ansi \ |
30bdd695 | 1438 | test-cgroup-util \ |
d15d0333 | 1439 | test-fstab-util \ |
f73141d7 | 1440 | test-prioq \ |
cb0dac05 | 1441 | test-fileio \ |
9341a4a1 | 1442 | test-time \ |
3b18ae68 | 1443 | test-hashmap \ |
647f6824 | 1444 | test-set \ |
a8b409db | 1445 | test-list \ |
f089257d | 1446 | test-unaligned \ |
8f6ce71f | 1447 | test-tables \ |
08bcebf3 | 1448 | test-device-nodes \ |
099524d7 | 1449 | test-xml \ |
e7eebcfc | 1450 | test-json \ |
c182135d | 1451 | test-architecture \ |
106ecd76 | 1452 | test-socket-util \ |
09e00c52 | 1453 | test-fdset \ |
6160e473 | 1454 | test-conf-files \ |
e6b5c5d0 | 1455 | test-capability \ |
e80cde5e | 1456 | test-async \ |
b08f2be6 | 1457 | test-ratelimit \ |
134e56dc | 1458 | test-condition \ |
20725d92 | 1459 | test-uid-range \ |
2b89a960 | 1460 | test-bus-policy \ |
641d1f99 | 1461 | test-locale-util \ |
281e05b6 | 1462 | test-execute \ |
2822da4f | 1463 | test-copy \ |
fa6ac760 | 1464 | test-cap-list \ |
d2f0e78f DR |
1465 | test-sigbus \ |
1466 | test-verbs | |
bb112710 HHPF |
1467 | |
1468 | EXTRA_DIST += \ | |
f22bbd11 KS |
1469 | test/a.service \ |
1470 | test/basic.target \ | |
1471 | test/b.service \ | |
1472 | test/c.service \ | |
1473 | test/daughter.service \ | |
1474 | test/d.service \ | |
53d90f95 | 1475 | test/end.service.in \ |
f22bbd11 KS |
1476 | test/e.service \ |
1477 | test/f.service \ | |
1478 | test/grandchild.service \ | |
1479 | test/g.service \ | |
1480 | test/hello-after-sleep.target \ | |
1481 | test/hello.service \ | |
1482 | test/h.service \ | |
1483 | test/parent-deep.slice \ | |
1484 | test/parent.slice \ | |
1485 | test/paths.target \ | |
bb112710 HHPF |
1486 | test/sched_idle_bad.service \ |
1487 | test/sched_idle_ok.service \ | |
1488 | test/sched_rr_bad.service \ | |
21acf11d | 1489 | test/sched_rr_change.service \ |
f22bbd11 KS |
1490 | test/sched_rr_ok.service \ |
1491 | test/shutdown.target \ | |
1492 | test/sleep.service \ | |
1493 | test/sockets.target \ | |
21acf11d | 1494 | test/son.service \ |
f22bbd11 KS |
1495 | test/sysinit.target \ |
1496 | test/testsuite.target \ | |
1497 | test/timers.target \ | |
20725d92 | 1498 | test/unstoppable.service \ |
34029ff1 RC |
1499 | test/path-changed.service \ |
1500 | test/path-directorynotempty.service \ | |
1501 | test/path-existsglob.service \ | |
1502 | test/path-exists.service \ | |
1503 | test/path-makedirectory.service \ | |
1504 | test/path-modified.service \ | |
1505 | test/path-mycustomunit.service \ | |
1506 | test/path-service.service \ | |
1507 | test/path-changed.path \ | |
1508 | test/path-directorynotempty.path \ | |
1509 | test/path-existsglob.path \ | |
1510 | test/path-exists.path \ | |
1511 | test/path-makedirectory.path \ | |
1512 | test/path-modified.path \ | |
1513 | test/path-unit.path \ | |
1514 | test/exec-environment-empty.service \ | |
1515 | test/exec-environment-multiple.service \ | |
1516 | test/exec-environment.service \ | |
1517 | test/exec-group.service \ | |
1518 | test/exec-ignoresigpipe-no.service \ | |
1519 | test/exec-ignoresigpipe-yes.service \ | |
1520 | test/exec-personality-x86-64.service \ | |
1521 | test/exec-personality-x86.service \ | |
1522 | test/exec-privatedevices-no.service \ | |
1523 | test/exec-privatedevices-yes.service \ | |
1524 | test/exec-privatetmp-no.service \ | |
1525 | test/exec-privatetmp-yes.service \ | |
1526 | test/exec-systemcallerrornumber.service \ | |
1527 | test/exec-systemcallfilter-failing2.service \ | |
1528 | test/exec-systemcallfilter-failing.service \ | |
1529 | test/exec-systemcallfilter-not-failing2.service \ | |
1530 | test/exec-systemcallfilter-not-failing.service \ | |
1531 | test/exec-user.service \ | |
1532 | test/exec-workingdirectory.service \ | |
27c5347c RC |
1533 | test/exec-umask-0177.service \ |
1534 | test/exec-umask-default.service \ | |
20725d92 DM |
1535 | test/bus-policy/hello.conf \ |
1536 | test/bus-policy/methods.conf \ | |
1537 | test/bus-policy/ownerships.conf \ | |
3a9cca11 | 1538 | test/bus-policy/signals.conf \ |
55e18900 LP |
1539 | test/bus-policy/check-own-rules.conf \ |
1540 | test/bus-policy/many-rules.conf \ | |
1541 | test/bus-policy/test.conf | |
20725d92 | 1542 | |
e0eaab7c | 1543 | |
143bfdaf HHPF |
1544 | EXTRA_DIST += \ |
1545 | src/test/test-helper.h | |
1546 | ||
8f6ce71f DR |
1547 | test_device_nodes_SOURCES = \ |
1548 | src/test/test-device-nodes.c | |
1549 | ||
8f6ce71f DR |
1550 | test_device_nodes_LDADD = \ |
1551 | libsystemd-shared.la | |
1552 | ||
47be870b | 1553 | test_engine_SOURCES = \ |
379079ba | 1554 | src/test/test-engine.c |
47be870b | 1555 | |
41fd4c4c KS |
1556 | test_engine_CFLAGS = \ |
1557 | $(AM_CFLAGS) \ | |
1558 | $(SECCOMP_CFLAGS) | |
1559 | ||
235450b0 | 1560 | test_engine_LDADD = \ |
b6358b8d | 1561 | libsystemd-core.la \ |
48d7417d | 1562 | $(RT_LIBS) |
47be870b LP |
1563 | |
1564 | test_job_type_SOURCES = \ | |
379079ba | 1565 | src/test/test-job-type.c |
47be870b | 1566 | |
41fd4c4c KS |
1567 | test_job_type_CFLAGS = \ |
1568 | $(AM_CFLAGS) \ | |
1569 | $(SECCOMP_CFLAGS) | |
1570 | ||
235450b0 | 1571 | test_job_type_LDADD = \ |
e0209d83 | 1572 | libsystemd-core.la \ |
48d7417d | 1573 | $(RT_LIBS) |
47be870b | 1574 | |
15ae422b | 1575 | test_ns_SOURCES = \ |
379079ba | 1576 | src/test/test-ns.c |
15ae422b | 1577 | |
41fd4c4c KS |
1578 | test_ns_CFLAGS = \ |
1579 | $(AM_CFLAGS) \ | |
1580 | $(SECCOMP_CFLAGS) | |
1581 | ||
235450b0 KS |
1582 | test_ns_LDADD = \ |
1583 | libsystemd-core.la | |
15ae422b | 1584 | |
af5bc85d | 1585 | test_loopback_SOURCES = \ |
379079ba | 1586 | src/test/test-loopback.c |
af5bc85d | 1587 | |
139be57d | 1588 | test_loopback_LDADD = \ |
08e1fb68 | 1589 | libsystemd-core.la |
139be57d | 1590 | |
e5907703 | 1591 | test_hostname_SOURCES = \ |
379079ba | 1592 | src/test/test-hostname.c |
e5907703 LP |
1593 | |
1594 | test_hostname_LDADD = \ | |
4d896139 | 1595 | libsystemd-core.la |
e5907703 | 1596 | |
b872e9a0 | 1597 | if ENABLE_EFI |
cee22bd3 | 1598 | manual_tests += \ |
c51d84dc | 1599 | test-boot-timestamp |
b872e9a0 | 1600 | |
c51d84dc KS |
1601 | test_boot_timestamp_SOURCES = \ |
1602 | src/test/test-boot-timestamps.c | |
2e3d0692 | 1603 | |
c51d84dc | 1604 | test_boot_timestamp_LDADD = \ |
2e3d0692 | 1605 | libsystemd-shared.la |
b872e9a0 | 1606 | endif |
2e3d0692 | 1607 | |
b0193f1c LP |
1608 | test_unit_name_SOURCES = \ |
1609 | src/test/test-unit-name.c | |
1610 | ||
41fd4c4c KS |
1611 | test_unit_name_CFLAGS = \ |
1612 | $(AM_CFLAGS) \ | |
1613 | $(SECCOMP_CFLAGS) | |
1614 | ||
b0193f1c | 1615 | test_unit_name_LDADD = \ |
48d7417d KS |
1616 | libsystemd-core.la \ |
1617 | $(RT_LIBS) | |
b0193f1c | 1618 | |
b5b46d59 LP |
1619 | test_unit_file_SOURCES = \ |
1620 | src/test/test-unit-file.c | |
1621 | ||
41fd4c4c KS |
1622 | test_unit_file_CFLAGS = \ |
1623 | $(AM_CFLAGS) \ | |
1624 | $(SECCOMP_CFLAGS) | |
1625 | ||
b5b46d59 | 1626 | test_unit_file_LDADD = \ |
48d7417d KS |
1627 | libsystemd-core.la \ |
1628 | $(RT_LIBS) | |
b5b46d59 | 1629 | |
02a36bc9 DR |
1630 | test_utf8_SOURCES = \ |
1631 | src/test/test-utf8.c | |
1632 | ||
02a36bc9 DR |
1633 | test_utf8_LDADD = \ |
1634 | libsystemd-shared.la | |
1635 | ||
6160e473 RC |
1636 | test_capability_SOURCES = \ |
1637 | src/test/test-capability.c | |
1638 | ||
1639 | test_capability_LDADD = \ | |
0b906b8d | 1640 | libsystemd-shared.la |
6160e473 | 1641 | |
e6b5c5d0 RC |
1642 | test_async_SOURCES = \ |
1643 | src/test/test-async.c | |
1644 | ||
1645 | test_async_LDADD = \ | |
1646 | libsystemd-shared.la | |
1647 | ||
2b89a960 RC |
1648 | test_locale_util_SOURCES = \ |
1649 | src/test/test-locale-util.c | |
1650 | ||
1651 | test_locale_util_LDADD = \ | |
1652 | libsystemd-shared.la | |
1653 | ||
641d1f99 RC |
1654 | test_copy_SOURCES = \ |
1655 | src/test/test-copy.c | |
1656 | ||
1657 | test_copy_LDADD = \ | |
1325ec42 | 1658 | libsystemd-label.la \ |
641d1f99 RC |
1659 | libsystemd-shared.la |
1660 | ||
fa6ac760 LP |
1661 | test_sigbus_SOURCES = \ |
1662 | src/test/test-sigbus.c | |
1663 | ||
1664 | test_sigbus_LDADD = \ | |
1665 | libsystemd-shared.la | |
1666 | ||
134e56dc LP |
1667 | test_condition_SOURCES = \ |
1668 | src/test/test-condition.c | |
b08f2be6 | 1669 | |
134e56dc | 1670 | test_condition_LDADD = \ |
657bf5a1 | 1671 | libsystemd-label.la \ |
657bf5a1 KS |
1672 | libsystemd-internal.la \ |
1673 | libsystemd-shared.la | |
b08f2be6 | 1674 | |
106ecd76 RC |
1675 | test_fdset_SOURCES = \ |
1676 | src/test/test-fdset.c | |
1677 | ||
1678 | test_fdset_LDADD = \ | |
87cfe63d KS |
1679 | libsystemd-shared.la \ |
1680 | libsystemd-internal.la | |
106ecd76 | 1681 | |
d15d0333 ZJS |
1682 | test_fstab_util_SOURCES = \ |
1683 | src/test/test-fstab-util.c | |
1684 | ||
1685 | test_fstab_util_LDADD = \ | |
1686 | libsystemd-shared.la | |
1687 | ||
e80cde5e RC |
1688 | test_ratelimit_SOURCES = \ |
1689 | src/test/test-ratelimit.c | |
1690 | ||
1691 | test_ratelimit_LDADD = \ | |
1692 | libsystemd-shared.la | |
1693 | ||
539ad707 TA |
1694 | test_util_SOURCES = \ |
1695 | src/test/test-util.c | |
1696 | ||
539ad707 | 1697 | test_util_LDADD = \ |
d9e2daaf | 1698 | libsystemd-label.la \ |
ad02805f | 1699 | libsystemd-shared.la |
539ad707 | 1700 | |
0b452006 RC |
1701 | test_process_util_SOURCES = \ |
1702 | src/test/test-process-util.c | |
1703 | ||
1704 | test_process_util_LDADD = \ | |
1705 | libsystemd-shared.la | |
1706 | ||
288a74cc RC |
1707 | test_terminal_util_SOURCES = \ |
1708 | src/test/test-terminal-util.c | |
1709 | ||
1710 | test_terminal_util_LDADD = \ | |
1711 | libsystemd-shared.la | |
1712 | ||
4f1a33dd ZJS |
1713 | test_path_lookup_SOURCES = \ |
1714 | src/test/test-path-lookup.c | |
1715 | ||
1716 | test_path_lookup_LDADD = \ | |
1717 | -lm \ | |
1718 | libsystemd-units.la \ | |
d9e2daaf | 1719 | libsystemd-label.la \ |
4f1a33dd ZJS |
1720 | libsystemd-shared.la |
1721 | ||
8530dc44 LP |
1722 | test_uid_range_SOURCES = \ |
1723 | src/test/test-uid-range.c | |
1724 | ||
1725 | test_uid_range_LDADD = \ | |
ad02805f | 1726 | libsystemd-shared.la |
8530dc44 | 1727 | |
2822da4f LP |
1728 | test_cap_list_SOURCES = \ |
1729 | src/test/test-cap-list.c | |
1730 | ||
1731 | test_cap_list_LDADD = \ | |
1732 | libsystemd-shared.la | |
1733 | ||
c182135d RC |
1734 | test_socket_util_SOURCES = \ |
1735 | src/test/test-socket-util.c | |
1736 | ||
1737 | test_socket_util_LDADD = \ | |
ad02805f | 1738 | libsystemd-shared.la |
c182135d | 1739 | |
e0dd9272 DH |
1740 | test_ring_SOURCES = \ |
1741 | src/test/test-ring.c | |
1742 | ||
1743 | test_ring_LDADD = \ | |
ad02805f | 1744 | libsystemd-shared.la |
e0dd9272 | 1745 | |
279da1e3 DH |
1746 | test_barrier_SOURCES = \ |
1747 | src/test/test-barrier.c | |
1748 | ||
1749 | test_barrier_LDADD = \ | |
ad02805f | 1750 | libsystemd-shared.la |
279da1e3 | 1751 | |
a47d1dfd DH |
1752 | test_pty_SOURCES = \ |
1753 | src/test/test-pty.c | |
1754 | ||
1755 | test_pty_LDADD = \ | |
1756 | libsystemd-core.la | |
1757 | ||
65b3903f ZJS |
1758 | test_tmpfiles_SOURCES = \ |
1759 | src/test/test-tmpfiles.c | |
1760 | ||
1761 | test_tmpfiles_LDADD = \ | |
1762 | libsystemd-shared.la | |
1763 | ||
d8c9d3a4 ZJS |
1764 | test_namespace_SOURCES = \ |
1765 | src/test/test-namespace.c | |
1766 | ||
d2f0e78f DR |
1767 | test_verbs_SOURCES = \ |
1768 | src/test/test-verbs.c | |
1769 | ||
1770 | test_verbs_LDADD = \ | |
1771 | libsystemd-shared.la | |
1772 | ||
d8c9d3a4 ZJS |
1773 | test_namespace_LDADD = \ |
1774 | libsystemd-core.la | |
1775 | ||
32a4456c MS |
1776 | BUILT_SOURCES += \ |
1777 | src/test/test-hashmap-ordered.c | |
1778 | ||
1779 | src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c | |
1780 | $(AM_V_at)$(MKDIR_P) $(dir $@) | |
1781 | $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \ | |
1782 | { if (!match($$0, "^#include")) \ | |
1783 | gsub(/hashmap/, "ordered_hashmap"); \ | |
1784 | gsub(/HASHMAP/, "ORDERED_HASHMAP"); \ | |
1785 | gsub(/Hashmap/, "OrderedHashmap"); \ | |
1786 | print }' <$< >$@ | |
1787 | ||
1788 | nodist_test_hashmap_SOURCES = \ | |
1789 | src/test/test-hashmap-ordered.c | |
1790 | ||
9341a4a1 | 1791 | test_hashmap_SOURCES = \ |
32a4456c MS |
1792 | src/test/test-hashmap.c \ |
1793 | src/test/test-hashmap-plain.c | |
9341a4a1 | 1794 | |
9341a4a1 | 1795 | test_hashmap_LDADD = \ |
ad02805f | 1796 | libsystemd-shared.la |
9341a4a1 | 1797 | |
647f6824 ZJS |
1798 | test_set_SOURCES = \ |
1799 | src/test/test-set.c | |
1800 | ||
1801 | test_set_LDADD = \ | |
ad02805f | 1802 | libsystemd-shared.la |
647f6824 | 1803 | |
08bcebf3 LP |
1804 | test_xml_SOURCES = \ |
1805 | src/test/test-xml.c | |
1806 | ||
1807 | test_xml_LDADD = \ | |
1808 | libsystemd-shared.la | |
1809 | ||
e7eebcfc LP |
1810 | test_json_SOURCES = \ |
1811 | src/test/test-json.c | |
1812 | ||
1813 | test_json_LDADD = \ | |
1325ec42 | 1814 | libsystemd-shared.la |
e7eebcfc | 1815 | |
3b18ae68 JJ |
1816 | test_list_SOURCES = \ |
1817 | src/test/test-list.c | |
1818 | ||
ad02805f RC |
1819 | test_list_LDADD = \ |
1820 | libsystemd-shared.la | |
1821 | ||
f089257d | 1822 | test_unaligned_LDADD = \ |
ad02805f | 1823 | libsystemd-shared.la |
f089257d TG |
1824 | |
1825 | test_unaligned_SOURCES = \ | |
1826 | src/test/test-unaligned.c | |
1827 | ||
a8b409db ZJS |
1828 | test_tables_SOURCES = \ |
1829 | src/test/test-tables.c \ | |
86bbe5bf | 1830 | src/shared/test-tables.h \ |
3c70e3bb LP |
1831 | src/bus-proxyd/bus-xml-policy.c \ |
1832 | src/bus-proxyd/bus-xml-policy.h \ | |
86bbe5bf ZJS |
1833 | src/journal/journald-server.c \ |
1834 | src/journal/journald-server.h | |
a8b409db | 1835 | |
02041526 TA |
1836 | test_tables_CPPFLAGS = \ |
1837 | $(AM_CPPFLAGS) \ | |
1838 | -I$(top_srcdir)/src/bus-proxyd | |
1839 | ||
41fd4c4c KS |
1840 | test_tables_CFLAGS = \ |
1841 | $(AM_CFLAGS) \ | |
02041526 | 1842 | $(SECCOMP_CFLAGS) |
41fd4c4c | 1843 | |
a8b409db | 1844 | test_tables_LDADD = \ |
48d7417d KS |
1845 | libsystemd-logs.la \ |
1846 | libsystemd-journal-internal.la \ | |
ab6efe71 | 1847 | libsystemd-journal-core.la \ |
a8b409db | 1848 | libsystemd-core.la \ |
86bbe5bf | 1849 | libudev-core.la \ |
48d7417d | 1850 | $(RT_LIBS) |
a8b409db | 1851 | |
30bdd695 LP |
1852 | test_prioq_SOURCES = \ |
1853 | src/test/test-prioq.c | |
1854 | ||
30bdd695 | 1855 | test_prioq_LDADD = \ |
ad02805f | 1856 | libsystemd-shared.la |
30bdd695 | 1857 | |
f73141d7 LP |
1858 | test_fileio_SOURCES = \ |
1859 | src/test/test-fileio.c | |
1860 | ||
f73141d7 | 1861 | test_fileio_LDADD = \ |
ad02805f | 1862 | libsystemd-shared.la |
f73141d7 | 1863 | |
cb0dac05 LP |
1864 | test_time_SOURCES = \ |
1865 | src/test/test-time.c | |
1866 | ||
cb0dac05 | 1867 | test_time_LDADD = \ |
ad02805f | 1868 | libsystemd-shared.la |
cb0dac05 | 1869 | |
099524d7 LP |
1870 | test_architecture_SOURCES = \ |
1871 | src/test/test-architecture.c | |
1872 | ||
1873 | test_architecture_LDADD = \ | |
1874 | libsystemd-shared.la | |
1875 | ||
877d54e9 LP |
1876 | test_log_SOURCES = \ |
1877 | src/test/test-log.c | |
1878 | ||
1879 | test_log_LDADD = \ | |
ad02805f | 1880 | libsystemd-shared.la |
877d54e9 | 1881 | |
66cdd0f2 LP |
1882 | test_ipcrm_SOURCES = \ |
1883 | src/test/test-ipcrm.c | |
1884 | ||
1885 | test_ipcrm_LDADD = \ | |
1886 | libsystemd-shared.la \ | |
1887 | -lrt | |
1888 | ||
d7c7c334 LP |
1889 | test_btrfs_SOURCES = \ |
1890 | src/test/test-btrfs.c | |
1891 | ||
1892 | test_btrfs_LDADD = \ | |
1325ec42 | 1893 | libsystemd-label.la \ |
d7c7c334 LP |
1894 | libsystemd-shared.la |
1895 | ||
8d09b6de | 1896 | if HAVE_LIBIPTC |
76917807 LP |
1897 | test_fw_util_SOURCES = \ |
1898 | src/test/test-fw-util.c | |
1899 | ||
1900 | test_fw_util_CFLAGS = \ | |
1901 | $(AM_CFLAGS) \ | |
1902 | $(LIBIPTC_CFLAGS) | |
1903 | ||
1904 | test_fw_util_LDADD = \ | |
1905 | libsystemd-fw.la \ | |
1906 | libsystemd-shared.la \ | |
1907 | $(LIBIPTC_LIBS) | |
8d09b6de | 1908 | endif |
76917807 | 1909 | |
9a6704a8 SS |
1910 | test_rtnl_manual_SOURCES = \ |
1911 | src/test/test-rtnl-manual.c | |
1912 | ||
7c4e5e4d ŁS |
1913 | test_rtnl_manual_CFLAGS = \ |
1914 | $(AM_CFLAGS) \ | |
1915 | $(KMOD_CFLAGS) | |
1916 | ||
9a6704a8 SS |
1917 | test_rtnl_manual_LDADD = \ |
1918 | libsystemd-internal.la \ | |
1919 | libsystemd-shared.la \ | |
7c4e5e4d | 1920 | $(KMOD_LIBS) |
9a6704a8 | 1921 | |
35d811f5 SL |
1922 | test_ellipsize_SOURCES = \ |
1923 | src/test/test-ellipsize.c | |
1924 | ||
1925 | test_ellipsize_LDADD = \ | |
ad02805f | 1926 | libsystemd-shared.la |
35d811f5 | 1927 | |
cfbc22ab LP |
1928 | test_date_SOURCES = \ |
1929 | src/test/test-date.c | |
1930 | ||
1931 | test_date_LDADD = \ | |
ad02805f | 1932 | libsystemd-shared.la |
cfbc22ab | 1933 | |
6524990f LP |
1934 | test_sleep_SOURCES = \ |
1935 | src/test/test-sleep.c | |
1936 | ||
1937 | test_sleep_LDADD = \ | |
1938 | libsystemd-core.la | |
1939 | ||
6e6fb527 LP |
1940 | test_replace_var_SOURCES = \ |
1941 | src/test/test-replace-var.c | |
1942 | ||
1943 | test_replace_var_LDADD = \ | |
1944 | libsystemd-shared.la | |
1945 | ||
36697dc0 LP |
1946 | test_calendarspec_SOURCES = \ |
1947 | src/test/test-calendarspec.c | |
1948 | ||
1949 | test_calendarspec_LDADD = \ | |
1950 | libsystemd-shared.la | |
1951 | ||
e8bc0ea2 LP |
1952 | test_strip_tab_ansi_SOURCES = \ |
1953 | src/test/test-strip-tab-ansi.c | |
1954 | ||
1955 | test_strip_tab_ansi_LDADD = \ | |
1956 | libsystemd-shared.la | |
1957 | ||
8c47c732 | 1958 | test_daemon_SOURCES = \ |
379079ba | 1959 | src/test/test-daemon.c |
af5bc85d | 1960 | |
139be57d | 1961 | test_daemon_LDADD = \ |
0ebee881 | 1962 | libsystemd-internal.la \ |
48d7417d | 1963 | libsystemd-shared.la |
139be57d | 1964 | |
8c6db833 | 1965 | test_cgroup_SOURCES = \ |
379079ba | 1966 | src/test/test-cgroup.c |
8c6db833 | 1967 | |
8c6db833 | 1968 | test_cgroup_LDADD = \ |
cc527a47 | 1969 | libsystemd-label.la \ |
f01de965 KS |
1970 | libsystemd-shared.la \ |
1971 | libsystemd-internal.la | |
8c6db833 | 1972 | |
6414b7c9 DS |
1973 | test_cgroup_mask_SOURCES = \ |
1974 | src/test/test-cgroup-mask.c | |
1975 | ||
96115cdf | 1976 | test_cgroup_mask_CPPFLAGS = \ |
b36bf0f3 | 1977 | $(AM_CPPFLAGS) |
6414b7c9 | 1978 | |
41fd4c4c KS |
1979 | test_cgroup_mask_CFLAGS = \ |
1980 | $(AM_CFLAGS) \ | |
1981 | $(SECCOMP_CFLAGS) | |
1982 | ||
6414b7c9 DS |
1983 | test_cgroup_mask_LDADD = \ |
1984 | libsystemd-core.la \ | |
1985 | $(RT_LIBS) | |
1986 | ||
96cde13a ZJS |
1987 | test_cgroup_util_SOURCES = \ |
1988 | src/test/test-cgroup-util.c | |
1989 | ||
1990 | test_cgroup_util_LDADD = \ | |
1991 | libsystemd-label.la \ | |
0ebee881 | 1992 | libsystemd-internal.la \ |
48d7417d | 1993 | libsystemd-shared.la |
96cde13a | 1994 | |
c24eb49e | 1995 | test_env_replace_SOURCES = \ |
379079ba | 1996 | src/test/test-env-replace.c |
c24eb49e | 1997 | |
c24eb49e | 1998 | test_env_replace_LDADD = \ |
49e942b2 | 1999 | libsystemd-shared.la |
c24eb49e | 2000 | |
97b5f608 TA |
2001 | test_strbuf_SOURCES = \ |
2002 | src/test/test-strbuf.c | |
2003 | ||
2004 | test_strbuf_LDADD = \ | |
2005 | libsystemd-shared.la | |
2006 | ||
f90cf44c | 2007 | test_strv_SOURCES = \ |
379079ba | 2008 | src/test/test-strv.c |
f90cf44c | 2009 | |
f90cf44c | 2010 | test_strv_LDADD = \ |
ee465038 | 2011 | libsystemd-units.la \ |
be127913 | 2012 | libsystemd-internal.la \ |
48d7417d | 2013 | libsystemd-shared.la |
f90cf44c | 2014 | |
76877b46 ZJS |
2015 | test_path_util_SOURCES = \ |
2016 | src/test/test-path-util.c | |
2017 | ||
2018 | test_path_util_LDADD = \ | |
d9e2daaf | 2019 | libsystemd-label.la \ |
76877b46 ZJS |
2020 | libsystemd-shared.la |
2021 | ||
bc999297 RC |
2022 | test_path_SOURCES = \ |
2023 | src/test/test-path.c | |
2024 | ||
2025 | test_path_CFLAGS = \ | |
2026 | $(AM_CFLAGS) | |
2027 | ||
2028 | test_path_LDADD = \ | |
2029 | libsystemd-core.la | |
2030 | ||
281e05b6 RC |
2031 | test_execute_SOURCES = \ |
2032 | src/test/test-execute.c | |
2033 | ||
2034 | test_execute_CFLAGS = \ | |
2035 | $(AM_CFLAGS) | |
2036 | ||
2037 | test_execute_LDADD = \ | |
2038 | libsystemd-core.la | |
2039 | ||
c62c294f TA |
2040 | test_strxcpyx_SOURCES = \ |
2041 | src/test/test-strxcpyx.c | |
2042 | ||
2043 | test_strxcpyx_LDADD = \ | |
2044 | libsystemd-shared.la | |
2045 | ||
83096483 | 2046 | test_install_SOURCES = \ |
379079ba | 2047 | src/test/test-install.c |
83096483 | 2048 | |
83096483 | 2049 | test_install_LDADD = \ |
477572f5 | 2050 | libsystemd-units.la \ |
cc527a47 | 2051 | libsystemd-label.la \ |
f01de965 KS |
2052 | libsystemd-shared.la \ |
2053 | libsystemd-internal.la | |
83096483 | 2054 | |
e96d6be7 | 2055 | test_watchdog_SOURCES = \ |
379079ba | 2056 | src/test/test-watchdog.c |
e96d6be7 LP |
2057 | |
2058 | test_watchdog_LDADD = \ | |
49e942b2 | 2059 | libsystemd-shared.la |
e96d6be7 | 2060 | |
bb112710 HHPF |
2061 | test_sched_prio_SOURCES = \ |
2062 | src/test/test-sched-prio.c | |
2063 | ||
96115cdf | 2064 | test_sched_prio_CPPFLAGS = \ |
b36bf0f3 | 2065 | $(AM_CPPFLAGS) |
bb112710 | 2066 | |
41fd4c4c KS |
2067 | test_sched_prio_CFLAGS = \ |
2068 | $(AM_CFLAGS) \ | |
2069 | $(SECCOMP_CFLAGS) | |
2070 | ||
bb112710 HHPF |
2071 | test_sched_prio_LDADD = \ |
2072 | libsystemd-core.la \ | |
48d7417d | 2073 | $(RT_LIBS) |
bb112710 | 2074 | |
09e00c52 MM |
2075 | test_conf_files_SOURCES = \ |
2076 | src/test/test-conf-files.c | |
2077 | ||
2078 | test_conf_files_LDADD = \ | |
d9e2daaf | 2079 | libsystemd-label.la \ |
09e00c52 MM |
2080 | libsystemd-shared.la |
2081 | ||
20725d92 | 2082 | test_bus_policy_SOURCES = \ |
f299e3e4 | 2083 | src/bus-proxyd/test-bus-xml-policy.c |
20725d92 DM |
2084 | |
2085 | test_bus_policy_LDADD = \ | |
f299e3e4 | 2086 | libsystemd-proxy.la \ |
20725d92 DM |
2087 | libsystemd-internal.la \ |
2088 | libsystemd-shared.la | |
2089 | ||
d7832d2c | 2090 | # ------------------------------------------------------------------------------ |
6aea6d10 | 2091 | ## .PHONY so it always rebuilds it |
9f700755 | 2092 | .PHONY: coverage lcov-run lcov-report coverage-sync |
6aea6d10 TA |
2093 | |
2094 | # run lcov from scratch, always | |
5549f483 | 2095 | coverage: all |
6aea6d10 TA |
2096 | $(MAKE) lcov-run |
2097 | $(MAKE) lcov-report | |
2098 | ||
2099 | coverage_dir = coverage | |
2100 | coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))' | |
2101 | ||
2102 | if ENABLE_COVERAGE | |
2103 | # reset run coverage tests | |
2104 | lcov-run: | |
2105 | @rm -rf $(coverage_dir) | |
2106 | lcov $(coverage_opts) --zerocounters | |
2107 | -$(MAKE) check | |
2108 | ||
2109 | # generate report based on current coverage data | |
2110 | lcov-report: | |
2111 | $(MKDIR_P) $(coverage_dir) | |
2112 | lcov $(coverage_opts) --compat-libtool --capture --no-external \ | |
2113 | | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info | |
5445c7a0 RC |
2114 | lcov --remove $(coverage_dir)/.lcov.info --output-file $(coverage_dir)/.lcov-clean.info 'test-*' |
2115 | genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov-clean.info | |
6aea6d10 TA |
2116 | @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html" |
2117 | ||
2118 | # lcov doesn't work properly with vpath builds, make sure that bad | |
2119 | # output is not uploaded by mistake. | |
2120 | coverage-sync: coverage | |
2121 | test "$(builddir)" = "$(srcdir)" | |
2122 | rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage | |
2123 | ||
2124 | else | |
2125 | lcov-run lcov-report: | |
2126 | echo "Need to reconfigure with --enable-coverage" | |
2127 | endif | |
2128 | ||
2129 | # ------------------------------------------------------------------------------ | |
b0770377 | 2130 | systemd_analyze_SOURCES = \ |
1d3bc017 ZJS |
2131 | src/analyze/analyze.c \ |
2132 | src/analyze/analyze-verify.c \ | |
2133 | src/analyze/analyze-verify.h | |
2134 | ||
2135 | systemd_verify_CFLAGS = \ | |
2136 | $(AM_CFLAGS) \ | |
2137 | $(SECCOMP_CFLAGS) | |
b0770377 | 2138 | |
b0770377 | 2139 | systemd_analyze_LDADD = \ |
1d3bc017 | 2140 | libsystemd-core.la \ |
6bb648a1 | 2141 | libsystemd-internal.la \ |
1d3bc017 ZJS |
2142 | libsystemd-shared.la \ |
2143 | $(RT_LIBS) | |
b0770377 KS |
2144 | |
2145 | # ------------------------------------------------------------------------------ | |
7e8f489a | 2146 | systemd_initctl_SOURCES = \ |
dce818b3 | 2147 | src/initctl/initctl.c |
7e8f489a | 2148 | |
7e8f489a | 2149 | systemd_initctl_LDADD = \ |
6bb648a1 | 2150 | libsystemd-internal.la \ |
d9f644e2 | 2151 | libsystemd-shared.la |
7e8f489a | 2152 | |
d7832d2c | 2153 | # ------------------------------------------------------------------------------ |
7e8f489a | 2154 | systemd_update_utmp_SOURCES = \ |
dce818b3 | 2155 | src/update-utmp/update-utmp.c |
7e8f489a KS |
2156 | |
2157 | systemd_update_utmp_CFLAGS = \ | |
2158 | $(AM_CFLAGS) \ | |
7e8f489a KS |
2159 | $(AUDIT_CFLAGS) |
2160 | ||
2161 | systemd_update_utmp_LDADD = \ | |
6bb648a1 | 2162 | libsystemd-internal.la \ |
49e942b2 | 2163 | libsystemd-shared.la \ |
7e8f489a KS |
2164 | $(AUDIT_LIBS) |
2165 | ||
8ea48dfc LP |
2166 | # ------------------------------------------------------------------------------ |
2167 | systemd_update_done_SOURCES = \ | |
2168 | src/update-done/update-done.c | |
2169 | ||
2170 | systemd_update_done_LDADD = \ | |
2171 | libsystemd-internal.la \ | |
7dbb1d08 | 2172 | libsystemd-label.la \ |
8ea48dfc LP |
2173 | libsystemd-shared.la |
2174 | ||
04ebb595 | 2175 | # ------------------------------------------------------------------------------ |
48d437bb | 2176 | systemd_shutdown_SOURCES = \ |
146de817 LP |
2177 | src/core/umount.c \ |
2178 | src/core/umount.h \ | |
08e1fb68 LP |
2179 | src/core/shutdown.c \ |
2180 | src/core/mount-setup.c \ | |
bd3fa1d2 LP |
2181 | src/core/mount-setup.h \ |
2182 | src/core/killall.h \ | |
2183 | src/core/killall.c | |
d4a66a7f | 2184 | |
48d437bb | 2185 | systemd_shutdown_LDADD = \ |
cc527a47 | 2186 | libsystemd-label.la \ |
48d7417d | 2187 | libudev-internal.la \ |
f4ac4d1a | 2188 | libsystemd-internal.la \ |
48d7417d | 2189 | libsystemd-shared.la |
d4a66a7f | 2190 | |
d7832d2c | 2191 | # ------------------------------------------------------------------------------ |
aa590241 | 2192 | if HAVE_KMOD |
48d437bb | 2193 | systemd_modules_load_SOURCES = \ |
dce818b3 | 2194 | src/modules-load/modules-load.c |
d4a66a7f | 2195 | |
83684a35 | 2196 | systemd_modules_load_CFLAGS = \ |
235450b0 | 2197 | $(AM_CFLAGS) \ |
83684a35 TG |
2198 | $(KMOD_CFLAGS) |
2199 | ||
48d437bb | 2200 | systemd_modules_load_LDADD = \ |
49e942b2 | 2201 | libsystemd-shared.la \ |
83684a35 | 2202 | $(KMOD_LIBS) |
aa590241 KS |
2203 | |
2204 | rootlibexec_PROGRAMS += \ | |
2205 | systemd-modules-load | |
2206 | ||
2207 | nodist_systemunit_DATA += \ | |
2208 | units/systemd-modules-load.service | |
a3bd8447 | 2209 | |
aa590241 KS |
2210 | SYSINIT_TARGET_WANTS += \ |
2211 | systemd-modules-load.service | |
2212 | ||
edeb68c5 TG |
2213 | if ENABLE_TMPFILES |
2214 | nodist_systemunit_DATA += \ | |
2215 | units/kmod-static-nodes.service | |
2216 | ||
2217 | SYSINIT_TARGET_WANTS += \ | |
2218 | kmod-static-nodes.service | |
2219 | endif | |
e3043162 | 2220 | endif |
d4a66a7f | 2221 | |
aa590241 | 2222 | EXTRA_DIST += \ |
5590bbe5 KS |
2223 | units/systemd-modules-load.service.in \ |
2224 | units/kmod-static-nodes.service.in | |
aa590241 | 2225 | |
d7832d2c | 2226 | # ------------------------------------------------------------------------------ |
6351163b | 2227 | if ENABLE_TMPFILES |
48d437bb | 2228 | systemd_tmpfiles_SOURCES = \ |
189b2384 | 2229 | src/tmpfiles/tmpfiles.c |
d4a66a7f | 2230 | |
48d437bb | 2231 | systemd_tmpfiles_LDADD = \ |
189b2384 | 2232 | libsystemd-units.la \ |
cc527a47 | 2233 | libsystemd-label.la \ |
be127913 | 2234 | libsystemd-internal.la \ |
48d7417d | 2235 | libsystemd-shared.la |
5b46fc6c | 2236 | |
f8eeeaf9 ZJS |
2237 | if HAVE_ACL |
2238 | systemd_tmpfiles_LDADD += \ | |
2239 | libsystemd-acl.la | |
2240 | endif | |
2241 | ||
5b46fc6c TG |
2242 | rootbin_PROGRAMS += \ |
2243 | systemd-tmpfiles | |
2244 | ||
2245 | dist_systemunit_DATA += \ | |
2246 | units/systemd-tmpfiles-clean.timer | |
2247 | ||
2248 | nodist_systemunit_DATA += \ | |
2249 | units/systemd-tmpfiles-setup-dev.service \ | |
2250 | units/systemd-tmpfiles-setup.service \ | |
2251 | units/systemd-tmpfiles-clean.service | |
2252 | ||
aeb50ff0 | 2253 | nodist_tmpfiles_DATA = \ |
ae5b2a86 | 2254 | tmpfiles.d/systemd.conf \ |
aeb50ff0 TG |
2255 | tmpfiles.d/etc.conf |
2256 | ||
5b46fc6c | 2257 | dist_tmpfiles_DATA = \ |
c4708f13 | 2258 | tmpfiles.d/systemd-nologin.conf \ |
5b46fc6c | 2259 | tmpfiles.d/tmp.conf \ |
9339db71 | 2260 | tmpfiles.d/x11.conf \ |
fed2b07e LP |
2261 | tmpfiles.d/var.conf \ |
2262 | tmpfiles.d/home.conf | |
5b46fc6c TG |
2263 | |
2264 | if HAVE_SYSV_COMPAT | |
2265 | dist_tmpfiles_DATA += \ | |
2266 | tmpfiles.d/legacy.conf | |
6351163b | 2267 | endif |
d4a66a7f | 2268 | |
5b46fc6c TG |
2269 | SYSINIT_TARGET_WANTS += \ |
2270 | systemd-tmpfiles-setup-dev.service \ | |
2271 | systemd-tmpfiles-setup.service | |
2272 | ||
1272ff85 WG |
2273 | dist_zshcompletion_DATA += \ |
2274 | shell-completion/zsh/_systemd-tmpfiles | |
2275 | ||
5b46fc6c TG |
2276 | TIMERS_TARGET_WANTS += \ |
2277 | systemd-tmpfiles-clean.timer | |
2278 | ||
2279 | INSTALL_DIRS += \ | |
2280 | $(tmpfilesdir) \ | |
2281 | $(sysconfdir)/tmpfiles.d | |
2282 | endif | |
2283 | ||
2284 | EXTRA_DIST += \ | |
ae5b2a86 | 2285 | tmpfiles.d/systemd.conf.m4 \ |
aeb50ff0 | 2286 | tmpfiles.d/etc.conf.m4 \ |
5b46fc6c TG |
2287 | units/systemd-tmpfiles-setup-dev.service.in \ |
2288 | units/systemd-tmpfiles-setup.service.in \ | |
2289 | units/systemd-tmpfiles-clean.service.in | |
2290 | ||
1b992147 LP |
2291 | # ------------------------------------------------------------------------------ |
2292 | if ENABLE_SYSUSERS | |
2293 | systemd_sysusers_SOURCES = \ | |
2294 | src/sysusers/sysusers.c | |
2295 | ||
2296 | systemd_sysusers_LDADD = \ | |
2297 | libsystemd-units.la \ | |
2298 | libsystemd-label.la \ | |
1b992147 LP |
2299 | libsystemd-internal.la \ |
2300 | libsystemd-shared.la | |
2301 | ||
b532bdea | 2302 | rootbin_PROGRAMS += \ |
1b992147 LP |
2303 | systemd-sysusers |
2304 | ||
ecde7065 LP |
2305 | nodist_systemunit_DATA += \ |
2306 | units/systemd-sysusers.service | |
2307 | ||
2308 | SYSINIT_TARGET_WANTS += \ | |
2309 | systemd-sysusers.service | |
2310 | ||
94655a16 | 2311 | nodist_sysusers_DATA = \ |
ae5b2a86 | 2312 | sysusers.d/systemd.conf \ |
94655a16 LP |
2313 | sysusers.d/basic.conf |
2314 | ||
f8b5d994 | 2315 | EXTRA_DIST += \ |
ecde7065 | 2316 | units/systemd-sysusers.service.in \ |
ae5b2a86 | 2317 | sysusers.d/systemd.conf.m4 \ |
94655a16 | 2318 | sysusers.d/basic.conf.in |
f8b5d994 | 2319 | |
1b992147 LP |
2320 | INSTALL_DIRS += \ |
2321 | $(sysusersdir) | |
2322 | endif | |
2323 | ||
94a15ffa KS |
2324 | # ------------------------------------------------------------------------------ |
2325 | dist_factory_etc_DATA = \ | |
2326 | factory/etc/nsswitch.conf | |
2327 | ||
2f88c858 | 2328 | if HAVE_PAM |
94a15ffa KS |
2329 | dist_factory_pam_DATA = \ |
2330 | factory/etc/pam.d/system-auth \ | |
2331 | factory/etc/pam.d/other | |
2f88c858 | 2332 | endif |
94a15ffa | 2333 | |
418b9be5 LP |
2334 | # ------------------------------------------------------------------------------ |
2335 | if ENABLE_FIRSTBOOT | |
2336 | systemd_firstboot_SOURCES = \ | |
2337 | src/firstboot/firstboot.c | |
2338 | ||
2339 | systemd_firstboot_LDADD = \ | |
2340 | libsystemd-units.la \ | |
2341 | libsystemd-label.la \ | |
418b9be5 LP |
2342 | libsystemd-internal.la \ |
2343 | libsystemd-shared.la \ | |
2344 | -lcrypt | |
2345 | ||
2346 | rootbin_PROGRAMS += \ | |
2347 | systemd-firstboot | |
2348 | ||
2349 | nodist_systemunit_DATA += \ | |
2350 | units/systemd-firstboot.service | |
2351 | ||
2352 | EXTRA_DIST += \ | |
2353 | units/systemd-firstboot.service.in | |
2354 | ||
e2680723 LP |
2355 | SYSINIT_TARGET_WANTS += \ |
2356 | systemd-firstboot.service | |
418b9be5 LP |
2357 | endif |
2358 | ||
d7832d2c | 2359 | # ------------------------------------------------------------------------------ |
48d437bb | 2360 | systemd_machine_id_setup_SOURCES = \ |
4fc55688 | 2361 | src/machine-id-setup/machine-id-setup-main.c \ |
08e1fb68 LP |
2362 | src/core/machine-id-setup.c \ |
2363 | src/core/machine-id-setup.h | |
d4a66a7f | 2364 | |
48d437bb | 2365 | systemd_machine_id_setup_LDADD = \ |
cc527a47 | 2366 | libsystemd-label.la \ |
be127913 | 2367 | libsystemd-internal.la \ |
48d7417d | 2368 | libsystemd-shared.la |
d4a66a7f | 2369 | |
d7832d2c | 2370 | # ------------------------------------------------------------------------------ |
48d437bb | 2371 | systemd_sysctl_SOURCES = \ |
dce818b3 | 2372 | src/sysctl/sysctl.c |
d4a66a7f | 2373 | |
48d437bb | 2374 | systemd_sysctl_LDADD = \ |
49e942b2 | 2375 | libsystemd-shared.la |
d4a66a7f | 2376 | |
6edd7d0a LP |
2377 | # ------------------------------------------------------------------------------ |
2378 | systemd_sleep_SOURCES = \ | |
2379 | src/sleep/sleep.c | |
2380 | ||
2381 | systemd_sleep_LDADD = \ | |
2382 | libsystemd-shared.la | |
2383 | ||
d7832d2c | 2384 | # ------------------------------------------------------------------------------ |
48d437bb | 2385 | systemd_fsck_SOURCES = \ |
dce818b3 | 2386 | src/fsck/fsck.c |
87d2c1ff | 2387 | |
48d437bb | 2388 | systemd_fsck_LDADD = \ |
6bb648a1 | 2389 | libsystemd-internal.la \ |
48d7417d | 2390 | libudev-internal.la \ |
f4ac4d1a | 2391 | libsystemd-internal.la \ |
48d7417d | 2392 | libsystemd-shared.la |
807e17f0 | 2393 | |
3fb39436 DR |
2394 | # ------------------------------------------------------------------------------ |
2395 | systemd_machine_id_commit_SOURCES = \ | |
2396 | src/machine-id-commit/machine-id-commit.c \ | |
2397 | src/core/machine-id-setup.c \ | |
2398 | src/core/machine-id-setup.h | |
2399 | ||
2400 | systemd_machine_id_commit_LDADD = \ | |
2401 | libsystemd-label.la \ | |
2402 | libsystemd-internal.la \ | |
2403 | libsystemd-shared.la | |
2404 | ||
a1405db6 DR |
2405 | SYSINIT_TARGET_WANTS += \ |
2406 | systemd-machine-id-commit.service | |
2407 | ||
d7832d2c | 2408 | # ------------------------------------------------------------------------------ |
48d437bb | 2409 | systemd_ac_power_SOURCES = \ |
dce818b3 | 2410 | src/ac-power/ac-power.c |
0b7964b8 | 2411 | |
48d437bb | 2412 | systemd_ac_power_LDADD = \ |
48d7417d | 2413 | libudev-internal.la \ |
f4ac4d1a | 2414 | libsystemd-internal.la \ |
48d7417d | 2415 | libsystemd-shared.la |
0b7964b8 | 2416 | |
d7832d2c | 2417 | # ------------------------------------------------------------------------------ |
48d437bb | 2418 | systemd_detect_virt_SOURCES = \ |
dce818b3 | 2419 | src/detect-virt/detect-virt.c |
4927fcae | 2420 | |
48d437bb | 2421 | systemd_detect_virt_LDADD = \ |
49e942b2 | 2422 | libsystemd-shared.la |
7e8f489a | 2423 | |
96ede260 LP |
2424 | INSTALL_EXEC_HOOKS += \ |
2425 | systemd-detect-virt-install-hook | |
2426 | ||
27b5482c LP |
2427 | # ------------------------------------------------------------------------------ |
2428 | systemd_delta_SOURCES = \ | |
2429 | src/delta/delta.c | |
2430 | ||
2431 | systemd_delta_LDADD = \ | |
2432 | libsystemd-shared.la | |
2433 | ||
d7832d2c | 2434 | # ------------------------------------------------------------------------------ |
48d437bb | 2435 | systemd_getty_generator_SOURCES = \ |
dce818b3 | 2436 | src/getty-generator/getty-generator.c |
f6144808 | 2437 | |
48d437bb | 2438 | systemd_getty_generator_LDADD = \ |
cc527a47 KS |
2439 | libsystemd-label.la \ |
2440 | libsystemd-shared.la | |
7e8f489a | 2441 | |
326bb68c LP |
2442 | # ------------------------------------------------------------------------------ |
2443 | systemd_debug_generator_SOURCES = \ | |
2444 | src/debug-generator/debug-generator.c | |
2445 | ||
2446 | systemd_debug_generator_LDADD = \ | |
2447 | libsystemd-label.la \ | |
2448 | libsystemd-shared.la | |
2449 | ||
6b1dc2bd LP |
2450 | # ------------------------------------------------------------------------------ |
2451 | systemd_fstab_generator_SOURCES = \ | |
2452 | src/fstab-generator/fstab-generator.c \ | |
2453 | src/core/mount-setup.c | |
2454 | ||
2455 | systemd_fstab_generator_LDADD = \ | |
2456 | libsystemd-label.la \ | |
2457 | libsystemd-shared.la | |
2458 | ||
d360705f LP |
2459 | # ------------------------------------------------------------------------------ |
2460 | systemd_system_update_generator_SOURCES = \ | |
2461 | src/system-update-generator/system-update-generator.c | |
2462 | ||
2463 | systemd_system_update_generator_LDADD = \ | |
2464 | libsystemd-label.la \ | |
2465 | libsystemd-shared.la | |
2466 | ||
d2c68822 | 2467 | # ------------------------------------------------------------------------------ |
4df5c00b UTL |
2468 | if ENABLE_HIBERNATE |
2469 | systemgenerator_PROGRAMS += \ | |
72ba9f04 | 2470 | systemd-hibernate-resume-generator |
4df5c00b UTL |
2471 | |
2472 | rootlibexec_PROGRAMS += \ | |
72ba9f04 | 2473 | systemd-hibernate-resume |
4df5c00b UTL |
2474 | |
2475 | systemd_hibernate_resume_SOURCES = \ | |
72ba9f04 | 2476 | src/hibernate-resume/hibernate-resume.c |
4df5c00b UTL |
2477 | |
2478 | systemd_hibernate_resume_LDADD = \ | |
72ba9f04 IS |
2479 | libsystemd-internal.la \ |
2480 | libsystemd-shared.la | |
4df5c00b | 2481 | |
d2c68822 | 2482 | systemd_hibernate_resume_generator_SOURCES = \ |
782c2652 | 2483 | src/hibernate-resume/hibernate-resume-generator.c |
d2c68822 IS |
2484 | |
2485 | systemd_hibernate_resume_generator_LDADD = \ | |
2486 | libsystemd-label.la \ | |
2487 | libsystemd-shared.la | |
2488 | ||
4df5c00b | 2489 | EXTRA_DIST += \ |
72ba9f04 IS |
2490 | units/systemd-hibernate.service.in \ |
2491 | units/systemd-hibernate-resume@.service.in \ | |
2492 | units/systemd-hybrid-sleep.service.in | |
4df5c00b UTL |
2493 | |
2494 | dist_systemunit_DATA += \ | |
72ba9f04 IS |
2495 | units/hibernate.target \ |
2496 | units/hybrid-sleep.target | |
4df5c00b UTL |
2497 | |
2498 | nodist_systemunit_DATA += \ | |
72ba9f04 IS |
2499 | units/systemd-hibernate.service \ |
2500 | units/systemd-hibernate-resume@.service \ | |
2501 | units/systemd-hybrid-sleep.service | |
4df5c00b UTL |
2502 | endif |
2503 | ||
5b46fc6c | 2504 | # ------------------------------------------------------------------------------ |
4df5c00b | 2505 | if ENABLE_EFI |
b872e9a0 LP |
2506 | systemgenerator_PROGRAMS += \ |
2507 | systemd-efi-boot-generator | |
2508 | ||
f4ce2b3e LP |
2509 | systemd_efi_boot_generator_SOURCES = \ |
2510 | src/efi-boot-generator/efi-boot-generator.c | |
2511 | ||
2512 | systemd_efi_boot_generator_LDADD = \ | |
2513 | libsystemd-label.la \ | |
2514 | libsystemd-shared.la | |
5b46fc6c TG |
2515 | |
2516 | # ------------------------------------------------------------------------------ | |
563217eb | 2517 | if HAVE_BLKID |
5b46fc6c | 2518 | bootctl_SOURCES = \ |
0974a682 KS |
2519 | src/boot/bootctl.c |
2520 | ||
2521 | bootctl_CPPFLAGS = \ | |
2522 | $(AM_CPPFLAGS) \ | |
2523 | -DEFI_MACHINE_TYPE_NAME=\"$(EFI_MACHINE_TYPE_NAME)\" \ | |
e7dd673d | 2524 | -DBOOTLIBDIR=\"$(bootlibdir)\" |
0974a682 KS |
2525 | |
2526 | bootctl_CFLAGS = \ | |
2527 | $(AM_CFLAGS) \ | |
2528 | $(BLKID_CFLAGS) | |
5b46fc6c TG |
2529 | |
2530 | bootctl_LDADD = \ | |
d9e2daaf | 2531 | libsystemd-label.la \ |
5b46fc6c | 2532 | libsystemd-shared.la \ |
0974a682 KS |
2533 | libsystemd-internal.la \ |
2534 | $(BLKID_LIBS) | |
5b46fc6c TG |
2535 | |
2536 | bin_PROGRAMS += \ | |
2537 | bootctl | |
51d0f1c9 | 2538 | |
95fe27d9 TA |
2539 | dist_bashcompletion_DATA += \ |
2540 | shell-completion/bash/bootctl | |
2541 | ||
51d0f1c9 MM |
2542 | dist_zshcompletion_DATA += \ |
2543 | shell-completion/zsh/_bootctl | |
563217eb | 2544 | endif |
51d0f1c9 | 2545 | |
0fa2cac4 | 2546 | # ------------------------------------------------------------------------------ |
484122c3 | 2547 | if HAVE_GNUEFI |
0fa2cac4 KS |
2548 | efi_cppflags = \ |
2549 | $(EFI_CPPFLAGS) \ | |
2550 | -I$(top_builddir) -include config.h \ | |
2551 | -I$(EFI_INC_DIR)/efi \ | |
2552 | -I$(EFI_INC_DIR)/efi/$(EFI_ARCH) \ | |
2553 | -DEFI_MACHINE_TYPE_NAME=\"$(EFI_MACHINE_TYPE_NAME)\" | |
2554 | ||
2555 | efi_cflags = \ | |
2556 | $(EFI_CFLAGS) \ | |
2557 | -Wall \ | |
2558 | -Wextra \ | |
33d25be0 | 2559 | -std=gnu90 \ |
0fa2cac4 KS |
2560 | -nostdinc \ |
2561 | -ggdb -O0 \ | |
2562 | -fpic \ | |
2563 | -fshort-wchar \ | |
2564 | -nostdinc \ | |
2565 | -ffreestanding \ | |
2566 | -fno-strict-aliasing \ | |
2567 | -fno-stack-protector \ | |
2568 | -Wsign-compare \ | |
32ef61b8 | 2569 | -Wno-missing-field-initializers |
0fa2cac4 KS |
2570 | |
2571 | if ARCH_X86_64 | |
2572 | efi_cflags += \ | |
2573 | -mno-red-zone \ | |
32ef61b8 KK |
2574 | -mno-sse \ |
2575 | -mno-mmx \ | |
0fa2cac4 | 2576 | -DEFI_FUNCTION_WRAPPER \ |
33d25be0 | 2577 | -DGNU_EFI_USE_MS_ABI |
0fa2cac4 KS |
2578 | endif |
2579 | ||
32ef61b8 KK |
2580 | if ARCH_IA32 |
2581 | efi_cflags += \ | |
2582 | -mno-sse \ | |
2583 | -mno-mmx | |
2584 | endif | |
2585 | ||
0fa2cac4 KS |
2586 | efi_ldflags = \ |
2587 | $(EFI_LDFLAGS) \ | |
2588 | -T $(EFI_LDS_DIR)/elf_$(EFI_ARCH)_efi.lds \ | |
2589 | -shared \ | |
2590 | -Bsymbolic \ | |
2591 | -nostdlib \ | |
2592 | -znocombreloc \ | |
2593 | -L $(EFI_LIB_DIR) \ | |
2594 | $(EFI_LDS_DIR)/crt0-efi-$(EFI_ARCH).o | |
2595 | ||
684edf2e KK |
2596 | # Aarch64 and ARM32 don't have an EFI capable objcopy. Use 'binary' instead, |
2597 | # and add required symbols manually. | |
2598 | if ARCH_AARCH64 | |
2599 | efi_ldflags += --defsym=EFI_SUBSYSTEM=0xa | |
2600 | EFI_FORMAT = -O binary | |
2601 | else | |
2602 | EFI_FORMAT = --target=efi-app-$(EFI_ARCH) | |
2603 | endif | |
2604 | ||
0fa2cac4 | 2605 | # ------------------------------------------------------------------------------ |
e7dd673d TG |
2606 | systemd_boot_headers = \ |
2607 | src/boot/efi/util.h \ | |
2608 | src/boot/efi/console.h \ | |
2609 | src/boot/efi/graphics.h \ | |
2610 | src/boot/efi/pefile.h | |
2611 | ||
2612 | systemd_boot_sources = \ | |
2613 | src/boot/efi/util.c \ | |
2614 | src/boot/efi/console.c \ | |
2615 | src/boot/efi/graphics.c \ | |
2616 | src/boot/efi/pefile.c \ | |
2617 | src/boot/efi/boot.c | |
2618 | ||
2619 | systemd_boot_objects = $(addprefix $(top_builddir)/,$(systemd_boot_sources:.c=.o)) | |
2620 | systemd_boot_solib = $(top_builddir)/src/boot/efi/systemd_boot.so | |
2621 | systemd_boot = systemd-boot$(EFI_MACHINE_TYPE_NAME).efi | |
2622 | ||
2623 | bootlib_DATA = $(systemd_boot) | |
2624 | CLEANFILES += $(systemd_boot_objects) $(systemd_boot_solib) $(systemd_boot) | |
2625 | EXTRA_DIST += $(systemd_boot_sources) $(systemd_boot_headers) | |
2626 | ||
2627 | $(top_builddir)/src/boot/efi/%.o: $(top_srcdir)/src/boot/efi/%.c $(addprefix $(top_srcdir)/,$(systemd_boot_headers)) | |
2628 | @$(MKDIR_P) $(top_builddir)/src/boot/efi/ | |
0fa2cac4 KS |
2629 | $(AM_V_CC)$(EFI_CC) $(efi_cppflags) $(efi_cflags) -c $< -o $@ |
2630 | ||
e7dd673d TG |
2631 | $(systemd_boot_solib): $(systemd_boot_objects) |
2632 | $(AM_V_CCLD)$(LD) $(efi_ldflags) $(systemd_boot_objects) \ | |
0fa2cac4 KS |
2633 | -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name); \ |
2634 | nm -D -u $@ | grep ' U ' && exit 1 || : | |
2635 | ||
e7dd673d | 2636 | $(systemd_boot): $(systemd_boot_solib) |
c4a77bcb | 2637 | $(AM_V_GEN)$(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic \ |
684edf2e | 2638 | -j .dynsym -j .rel -j .rela -j .reloc $(EFI_FORMAT) $< $@ |
0fa2cac4 KS |
2639 | |
2640 | # ------------------------------------------------------------------------------ | |
2641 | stub_headers = \ | |
e7dd673d TG |
2642 | src/boot/efi/util.h \ |
2643 | src/boot/efi/pefile.h \ | |
37fa3690 | 2644 | src/boot/efi/graphics.h \ |
2f8d3364 | 2645 | src/boot/efi/splash.h \ |
e7dd673d | 2646 | src/boot/efi/linux.h |
0fa2cac4 KS |
2647 | |
2648 | stub_sources = \ | |
e7dd673d TG |
2649 | src/boot/efi/util.c \ |
2650 | src/boot/efi/pefile.c \ | |
37fa3690 | 2651 | src/boot/efi/graphics.c \ |
2f8d3364 | 2652 | src/boot/efi/splash.c \ |
e7dd673d TG |
2653 | src/boot/efi/linux.c \ |
2654 | src/boot/efi/stub.c | |
0fa2cac4 KS |
2655 | |
2656 | stub_objects = $(addprefix $(top_builddir)/,$(stub_sources:.c=.o)) | |
e7dd673d | 2657 | stub_solib = $(top_builddir)/src/boot/efi/stub.so |
0fa2cac4 KS |
2658 | stub = linux$(EFI_MACHINE_TYPE_NAME).efi.stub |
2659 | ||
e7dd673d | 2660 | bootlib_DATA += $(stub) |
0fa2cac4 KS |
2661 | CLEANFILES += $(stub_objects) $(stub_solib) $(stub) |
2662 | EXTRA_DIST += $(stub_sources) $(stub_headers) | |
2663 | ||
e7dd673d TG |
2664 | $(top_builddir)/src/boot/efi/%.o: $(top_srcdir)/src/boot/efi/%.c $(addprefix $(top_srcdir)/,$(stub_headers)) |
2665 | @$(MKDIR_P) $(top_builddir)/src/boot/efi/ | |
0fa2cac4 KS |
2666 | $(AM_V_CC)$(EFI_CC) $(efi_cppflags) $(efi_cflags) -c $< -o $@ |
2667 | ||
2668 | $(stub_solib): $(stub_objects) | |
2669 | $(AM_V_CCLD)$(LD) $(efi_ldflags) $(stub_objects) \ | |
2670 | -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name); \ | |
2671 | nm -D -u $@ | grep ' U ' && exit 1 || : | |
2672 | ||
2673 | $(stub): $(stub_solib) | |
c4a77bcb | 2674 | $(AM_V_GEN)$(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic \ |
684edf2e | 2675 | -j .dynsym -j .rel -j .rela -j .reloc $(EFI_FORMAT) $< $@ |
0fa2cac4 KS |
2676 | |
2677 | # ------------------------------------------------------------------------------ | |
2678 | CLEANFILES += test-efi-disk.img | |
2679 | EXTRA_DIST += test/test-efi-create-disk.sh | |
2680 | ||
e7dd673d | 2681 | test-efi-disk.img: $(systemd_boot) $(stub) test/test-efi-create-disk.sh |
0fa2cac4 KS |
2682 | $(AM_V_GEN)test/test-efi-create-disk.sh |
2683 | ||
2684 | test-efi: test-efi-disk.img | |
2685 | $(QEMU) -machine accel=kvm -m 1024 -bios $(QEMU_BIOS) -snapshot test-efi-disk.img | |
b872e9a0 | 2686 | endif |
484122c3 | 2687 | endif |
f4ce2b3e | 2688 | |
1a14a53c | 2689 | # ------------------------------------------------------------------------------ |
046d2bd4 | 2690 | if HAVE_BLKID |
1a14a53c LP |
2691 | systemgenerator_PROGRAMS += \ |
2692 | systemd-gpt-auto-generator | |
2693 | ||
2694 | systemd_gpt_auto_generator_SOURCES = \ | |
1b9e5b12 LP |
2695 | src/gpt-auto-generator/gpt-auto-generator.c \ |
2696 | src/shared/blkid-util.h | |
1a14a53c LP |
2697 | |
2698 | systemd_gpt_auto_generator_LDADD = \ | |
2699 | libsystemd-label.la \ | |
48d7417d | 2700 | libudev-internal.la \ |
f4ac4d1a | 2701 | libsystemd-internal.la \ |
48d7417d | 2702 | libsystemd-shared.la \ |
1a14a53c LP |
2703 | $(BLKID_LIBS) |
2704 | ||
2705 | systemd_gpt_auto_generator_CFLAGS = \ | |
2706 | $(AM_CFLAGS) \ | |
2707 | $(BLKID_CFLAGS) | |
046d2bd4 | 2708 | endif |
1a14a53c | 2709 | |
674eb685 | 2710 | # ------------------------------------------------------------------------------ |
fece63b8 | 2711 | if ENABLE_KDBUS |
674eb685 LP |
2712 | systemgenerator_PROGRAMS += \ |
2713 | systemd-dbus1-generator | |
2714 | ||
2715 | systemd_dbus1_generator_SOURCES = \ | |
2716 | src/dbus1-generator/dbus1-generator.c | |
2717 | ||
2718 | systemd_dbus1_generator_LDADD = \ | |
2719 | libsystemd-label.la \ | |
b9f08b1f KS |
2720 | libsystemd-internal.la \ |
2721 | libsystemd-shared.la | |
674eb685 | 2722 | |
2b197ae2 | 2723 | dbus1-generator-install-hook: |
9f137db0 | 2724 | $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir) |
5e11d962 | 2725 | $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator |
e2438b7a | 2726 | $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator |
2b197ae2 KS |
2727 | |
2728 | dbus1-generator-uninstall-hook: | |
2729 | rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator | |
2730 | ||
1401ec2d KS |
2731 | dist_xinitrc_SCRIPTS = \ |
2732 | xorg/50-systemd-user.sh | |
2733 | ||
2b197ae2 KS |
2734 | INSTALL_EXEC_HOOKS += dbus1-generator-install-hook |
2735 | UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook | |
fece63b8 | 2736 | endif |
2b197ae2 | 2737 | |
95ed3294 TA |
2738 | # ------------------------------------------------------------------------------ |
2739 | systemd_sysv_generator_SOURCES = \ | |
2740 | src/sysv-generator/sysv-generator.c | |
2741 | ||
2742 | systemd_sysv_generator_LDADD = \ | |
2743 | libsystemd-core.la \ | |
2744 | libsystemd-label.la \ | |
2745 | libsystemd-shared.la | |
2746 | ||
d7832d2c | 2747 | # ------------------------------------------------------------------------------ |
48d437bb | 2748 | systemd_rc_local_generator_SOURCES = \ |
dce818b3 | 2749 | src/rc-local-generator/rc-local-generator.c |
7e8f489a | 2750 | |
48d437bb | 2751 | systemd_rc_local_generator_LDADD = \ |
cc527a47 KS |
2752 | libsystemd-label.la \ |
2753 | libsystemd-shared.la | |
7e8f489a | 2754 | |
d7832d2c | 2755 | # ------------------------------------------------------------------------------ |
2b93b027 LP |
2756 | systemd_remount_fs_SOURCES = \ |
2757 | src/remount-fs/remount-fs.c \ | |
08e1fb68 LP |
2758 | src/core/mount-setup.c \ |
2759 | src/core/mount-setup.h | |
609518c1 | 2760 | |
2b93b027 | 2761 | systemd_remount_fs_LDADD = \ |
81311bbd | 2762 | libsystemd-label.la \ |
49e942b2 | 2763 | libsystemd-shared.la |
609518c1 | 2764 | |
d7832d2c | 2765 | # ------------------------------------------------------------------------------ |
48d437bb | 2766 | systemd_cgroups_agent_SOURCES = \ |
dce818b3 | 2767 | src/cgroups-agent/cgroups-agent.c |
7640a5de | 2768 | |
48d437bb | 2769 | systemd_cgroups_agent_LDADD = \ |
6bb648a1 | 2770 | libsystemd-internal.la \ |
d9f644e2 | 2771 | libsystemd-shared.la |
7640a5de | 2772 | |
d7832d2c | 2773 | # ------------------------------------------------------------------------------ |
b1a5a998 MB |
2774 | systemd_escape_SOURCES = \ |
2775 | src/escape/escape.c | |
2776 | ||
2777 | systemd_escape_LDADD = \ | |
2778 | libsystemd-shared.la | |
2779 | ||
2780 | # ----------------------------------------------------------------------------- | |
48d437bb | 2781 | systemctl_SOURCES = \ |
dce818b3 | 2782 | src/systemctl/systemctl.c |
f401e48c | 2783 | |
48d437bb | 2784 | systemctl_LDADD = \ |
477572f5 | 2785 | libsystemd-units.la \ |
cc527a47 | 2786 | libsystemd-label.la \ |
6bb648a1 | 2787 | libsystemd-internal.la \ |
0bba8d6e | 2788 | libsystemd-logs.la \ |
48d7417d | 2789 | libsystemd-journal-internal.la \ |
48d7417d | 2790 | libsystemd-shared.la |
f401e48c | 2791 | |
d7832d2c | 2792 | # ------------------------------------------------------------------------------ |
48d437bb | 2793 | systemd_notify_SOURCES = \ |
d6bc8348 | 2794 | src/notify/notify.c |
1822350d | 2795 | |
48d437bb | 2796 | systemd_notify_LDADD = \ |
0ebee881 | 2797 | libsystemd-internal.la \ |
48d7417d | 2798 | libsystemd-shared.la |
681cfc6c | 2799 | |
9a00f57a LP |
2800 | # ------------------------------------------------------------------------------ |
2801 | systemd_path_SOURCES = \ | |
2802 | src/path/path.c | |
2803 | ||
2804 | systemd_path_LDADD = \ | |
2805 | libsystemd-internal.la \ | |
2806 | libsystemd-shared.la | |
2807 | ||
d7832d2c | 2808 | # ------------------------------------------------------------------------------ |
48d437bb | 2809 | systemd_ask_password_SOURCES = \ |
dce818b3 | 2810 | src/ask-password/ask-password.c |
681cfc6c | 2811 | |
48d437bb | 2812 | systemd_ask_password_LDADD = \ |
cc527a47 KS |
2813 | libsystemd-label.la \ |
2814 | libsystemd-shared.la | |
681cfc6c | 2815 | |
d7832d2c | 2816 | # ------------------------------------------------------------------------------ |
48d437bb | 2817 | systemd_reply_password_SOURCES = \ |
dce818b3 | 2818 | src/reply-password/reply-password.c |
681cfc6c | 2819 | |
48d437bb | 2820 | systemd_reply_password_LDADD = \ |
49e942b2 | 2821 | libsystemd-shared.la |
1822350d | 2822 | |
d7832d2c | 2823 | # ------------------------------------------------------------------------------ |
48d437bb | 2824 | systemd_cgls_SOURCES = \ |
dce818b3 | 2825 | src/cgls/cgls.c |
4668191d | 2826 | |
48d437bb | 2827 | systemd_cgls_LDADD = \ |
13be4979 | 2828 | libsystemd-internal.la \ |
cc527a47 | 2829 | libsystemd-shared.la |
4668191d | 2830 | |
d7832d2c | 2831 | # ------------------------------------------------------------------------------ |
8f2d43a0 | 2832 | systemd_cgtop_SOURCES = \ |
dce818b3 | 2833 | src/cgtop/cgtop.c |
8f2d43a0 LP |
2834 | |
2835 | systemd_cgtop_LDADD = \ | |
cc527a47 | 2836 | libsystemd-shared.la |
8f2d43a0 | 2837 | |
d7832d2c | 2838 | # ------------------------------------------------------------------------------ |
48d437bb | 2839 | systemd_nspawn_SOURCES = \ |
08e1fb68 LP |
2840 | src/nspawn/nspawn.c \ |
2841 | src/core/mount-setup.c \ | |
2842 | src/core/mount-setup.h \ | |
2843 | src/core/loopback-setup.c \ | |
f934051c | 2844 | src/core/loopback-setup.h |
4668191d | 2845 | |
e9642be2 LP |
2846 | systemd_nspawn_CFLAGS = \ |
2847 | $(AM_CFLAGS) \ | |
1b9e5b12 LP |
2848 | $(SECCOMP_CFLAGS) \ |
2849 | $(BLKID_CFLAGS) | |
e9642be2 | 2850 | |
48d437bb | 2851 | systemd_nspawn_LDADD = \ |
cc527a47 | 2852 | libsystemd-label.la \ |
7e227024 | 2853 | libudev-internal.la \ |
f4ac4d1a | 2854 | libsystemd-internal.la \ |
1b9e5b12 LP |
2855 | libsystemd-shared.la \ |
2856 | $(BLKID_LIBS) | |
8eea53dd MS |
2857 | |
2858 | if HAVE_SECCOMP | |
2859 | systemd_nspawn_LDADD += \ | |
e9642be2 | 2860 | libsystemd-seccomp.la \ |
24fb1112 | 2861 | $(SECCOMP_LIBS) |
8eea53dd | 2862 | endif |
4668191d | 2863 | |
6d0b55c2 LP |
2864 | if HAVE_LIBIPTC |
2865 | systemd_nspawn_LDADD += \ | |
2866 | libsystemd-fw.la | |
2867 | endif | |
2868 | ||
c2756a68 LP |
2869 | # ------------------------------------------------------------------------------ |
2870 | systemd_run_SOURCES = \ | |
2871 | src/run/run.c | |
2872 | ||
2873 | systemd_run_LDADD = \ | |
2874 | libsystemd-label.la \ | |
6bb648a1 | 2875 | libsystemd-internal.la \ |
48d7417d | 2876 | libsystemd-shared.la |
c2756a68 | 2877 | |
d7832d2c | 2878 | # ------------------------------------------------------------------------------ |
f299e3e4 DH |
2879 | noinst_LTLIBRARIES += \ |
2880 | libsystemd-proxy.la | |
2881 | ||
2882 | libsystemd_proxy_la_SOURCES = \ | |
3c70e3bb | 2883 | src/bus-proxyd/bus-xml-policy.c \ |
f3c47246 DM |
2884 | src/bus-proxyd/bus-xml-policy.h \ |
2885 | src/bus-proxyd/driver.c \ | |
2886 | src/bus-proxyd/driver.h \ | |
c0395aeb DH |
2887 | src/bus-proxyd/proxy.c \ |
2888 | src/bus-proxyd/proxy.h \ | |
f3c47246 DM |
2889 | src/bus-proxyd/synthesize.c \ |
2890 | src/bus-proxyd/synthesize.h | |
4668191d | 2891 | |
c4bc1a84 DH |
2892 | libsystemd_proxy_la_CFLAGS = \ |
2893 | $(AM_CFLAGS) \ | |
2894 | -pthread | |
2895 | ||
f299e3e4 | 2896 | libsystemd_proxy_la_LIBADD = \ |
6bb648a1 | 2897 | libsystemd-internal.la \ |
48d7417d | 2898 | libsystemd-shared.la |
4668191d | 2899 | |
f299e3e4 DH |
2900 | systemd_bus_proxyd_SOURCES = \ |
2901 | src/bus-proxyd/bus-proxyd.c | |
2902 | ||
a8a1a43f DH |
2903 | systemd_bus_proxyd_CFLAGS = \ |
2904 | $(AM_CFLAGS) \ | |
2905 | -pthread | |
2906 | ||
f299e3e4 DH |
2907 | systemd_bus_proxyd_LDADD = \ |
2908 | libsystemd-proxy.la \ | |
2909 | libsystemd-internal.la \ | |
2910 | libsystemd-shared.la | |
f252ff17 | 2911 | |
f299e3e4 DH |
2912 | systemd_stdio_bridge_SOURCES = \ |
2913 | src/bus-proxyd/stdio-bridge.c | |
f252ff17 | 2914 | |
f299e3e4 DH |
2915 | systemd_stdio_bridge_LDADD = \ |
2916 | libsystemd-proxy.la \ | |
2917 | libsystemd-internal.la \ | |
2918 | libsystemd-shared.la | |
7c9a6f90 | 2919 | |
440c61c5 | 2920 | if ENABLE_KDBUS |
7c9a6f90 | 2921 | nodist_systemunit_DATA += \ |
a8a1a43f | 2922 | units/systemd-bus-proxyd.service |
7c9a6f90 LP |
2923 | |
2924 | dist_systemunit_DATA += \ | |
2925 | units/systemd-bus-proxyd.socket | |
2926 | ||
c7120222 | 2927 | nodist_userunit_DATA += \ |
a8a1a43f | 2928 | units/user/systemd-bus-proxyd.service |
c7120222 TG |
2929 | |
2930 | dist_userunit_DATA += \ | |
2931 | units/user/systemd-bus-proxyd.socket | |
cd49e2f6 | 2932 | endif |
7c9a6f90 LP |
2933 | |
2934 | EXTRA_DIST += \ | |
a8a1a43f DH |
2935 | units/systemd-bus-proxyd.service.m4.in \ |
2936 | units/user/systemd-bus-proxyd.service.in | |
7c9a6f90 | 2937 | |
dd5ae4c3 PK |
2938 | if HAVE_SMACK |
2939 | bus-proxyd-set-cap-hook: | |
e7b04a81 | 2940 | -$(SETCAP) cap_mac_admin+ei $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd |
dd5ae4c3 PK |
2941 | |
2942 | INSTALL_EXEC_HOOKS += bus-proxyd-set-cap-hook | |
2943 | endif | |
2944 | ||
d7832d2c | 2945 | # ------------------------------------------------------------------------------ |
48d437bb | 2946 | systemd_tty_ask_password_agent_SOURCES = \ |
dce818b3 | 2947 | src/tty-ask-password-agent/tty-ask-password-agent.c |
2a018e83 | 2948 | |
48d437bb | 2949 | systemd_tty_ask_password_agent_LDADD = \ |
cc527a47 KS |
2950 | libsystemd-label.la \ |
2951 | libsystemd-shared.la | |
48d437bb | 2952 | |
de1c301e | 2953 | # ------------------------------------------------------------------------------ |
add00dfd | 2954 | libsystemd_internal_la_SOURCES = \ |
a7edaadd LP |
2955 | src/systemd/sd-bus.h \ |
2956 | src/systemd/sd-bus-protocol.h \ | |
87b20a81 | 2957 | src/systemd/sd-bus-vtable.h \ |
faaa5728 | 2958 | src/systemd/sd-utf8.h \ |
c8a8806e | 2959 | src/systemd/sd-event.h \ |
0b54473e | 2960 | src/systemd/sd-rtnl.h \ |
3bedba4a | 2961 | src/systemd/sd-resolve.h \ |
0bba8d6e | 2962 | src/systemd/sd-login.h \ |
be127913 | 2963 | src/systemd/sd-id128.h \ |
0ebee881 | 2964 | src/systemd/sd-daemon.h \ |
9a00f57a | 2965 | src/systemd/sd-path.h \ |
a903fd34 | 2966 | src/systemd/sd-network.h \ |
23fbe14f | 2967 | src/systemd/sd-hwdb.h \ |
57fa1d09 | 2968 | src/systemd/sd-device.h \ |
607553f9 TG |
2969 | src/libsystemd/sd-bus/sd-bus.c \ |
2970 | src/libsystemd/sd-bus/bus-control.c \ | |
2971 | src/libsystemd/sd-bus/bus-control.h \ | |
2972 | src/libsystemd/sd-bus/bus-error.c \ | |
2973 | src/libsystemd/sd-bus/bus-error.h \ | |
96aad8d1 LP |
2974 | src/libsystemd/sd-bus/bus-common-errors.h \ |
2975 | src/libsystemd/sd-bus/bus-common-errors.c \ | |
607553f9 TG |
2976 | src/libsystemd/sd-bus/bus-internal.c \ |
2977 | src/libsystemd/sd-bus/bus-internal.h \ | |
2978 | src/libsystemd/sd-bus/bus-socket.c \ | |
2979 | src/libsystemd/sd-bus/bus-socket.h \ | |
2980 | src/libsystemd/sd-bus/bus-kernel.c \ | |
2981 | src/libsystemd/sd-bus/bus-kernel.h \ | |
2982 | src/libsystemd/sd-bus/bus-container.c \ | |
2983 | src/libsystemd/sd-bus/bus-container.h \ | |
2984 | src/libsystemd/sd-bus/bus-message.c \ | |
2985 | src/libsystemd/sd-bus/bus-message.h \ | |
2986 | src/libsystemd/sd-bus/bus-creds.c \ | |
2987 | src/libsystemd/sd-bus/bus-creds.h \ | |
2988 | src/libsystemd/sd-bus/bus-signature.c \ | |
2989 | src/libsystemd/sd-bus/bus-signature.h \ | |
2990 | src/libsystemd/sd-bus/bus-type.c \ | |
2991 | src/libsystemd/sd-bus/bus-type.h \ | |
2992 | src/libsystemd/sd-bus/bus-match.c \ | |
2993 | src/libsystemd/sd-bus/bus-match.h \ | |
2994 | src/libsystemd/sd-bus/bus-bloom.c \ | |
2995 | src/libsystemd/sd-bus/bus-bloom.h \ | |
2996 | src/libsystemd/sd-bus/bus-introspect.c \ | |
2997 | src/libsystemd/sd-bus/bus-introspect.h \ | |
2998 | src/libsystemd/sd-bus/bus-objects.c \ | |
2999 | src/libsystemd/sd-bus/bus-objects.h \ | |
3000 | src/libsystemd/sd-bus/bus-gvariant.c \ | |
3001 | src/libsystemd/sd-bus/bus-gvariant.h \ | |
3002 | src/libsystemd/sd-bus/bus-convenience.c \ | |
8f8f05a9 LP |
3003 | src/libsystemd/sd-bus/bus-track.c \ |
3004 | src/libsystemd/sd-bus/bus-track.h \ | |
607553f9 TG |
3005 | src/libsystemd/sd-bus/bus-util.c \ |
3006 | src/libsystemd/sd-bus/bus-util.h \ | |
19befb2d LP |
3007 | src/libsystemd/sd-bus/bus-slot.c \ |
3008 | src/libsystemd/sd-bus/bus-slot.h \ | |
607553f9 TG |
3009 | src/libsystemd/sd-bus/bus-protocol.h \ |
3010 | src/libsystemd/sd-bus/kdbus.h \ | |
607553f9 TG |
3011 | src/libsystemd/sd-utf8/sd-utf8.c \ |
3012 | src/libsystemd/sd-event/sd-event.c \ | |
3013 | src/libsystemd/sd-event/event-util.h \ | |
3014 | src/libsystemd/sd-rtnl/sd-rtnl.c \ | |
3015 | src/libsystemd/sd-rtnl/rtnl-internal.h \ | |
3016 | src/libsystemd/sd-rtnl/rtnl-message.c \ | |
d8e538ec TG |
3017 | src/libsystemd/sd-rtnl/rtnl-types.h \ |
3018 | src/libsystemd/sd-rtnl/rtnl-types.c \ | |
607553f9 TG |
3019 | src/libsystemd/sd-rtnl/rtnl-util.h \ |
3020 | src/libsystemd/sd-rtnl/rtnl-util.c \ | |
e80af1bd LP |
3021 | src/libsystemd/sd-rtnl/local-addresses.h \ |
3022 | src/libsystemd/sd-rtnl/local-addresses.c \ | |
be127913 | 3023 | src/libsystemd/sd-id128/sd-id128.c \ |
0ebee881 | 3024 | src/libsystemd/sd-daemon/sd-daemon.c \ |
9a00f57a | 3025 | src/libsystemd/sd-login/sd-login.c \ |
a903fd34 LP |
3026 | src/libsystemd/sd-path/sd-path.c \ |
3027 | src/libsystemd/sd-network/sd-network.c \ | |
84e51726 | 3028 | src/libsystemd/sd-network/network-util.h \ |
23fbe14f TG |
3029 | src/libsystemd/sd-network/network-util.c \ |
3030 | src/libsystemd/sd-hwdb/sd-hwdb.c \ | |
3031 | src/libsystemd/sd-hwdb/hwdb-util.h \ | |
84d32580 | 3032 | src/libsystemd/sd-hwdb/hwdb-internal.h \ |
57fa1d09 TG |
3033 | src/libsystemd/sd-device/device-internal.h \ |
3034 | src/libsystemd/sd-device/device-util.h \ | |
96df036f TG |
3035 | src/libsystemd/sd-device/device-enumerator.c \ |
3036 | src/libsystemd/sd-device/device-enumerator-private.h \ | |
57fa1d09 TG |
3037 | src/libsystemd/sd-device/sd-device.c \ |
3038 | src/libsystemd/sd-device/device-private.c \ | |
3039 | src/libsystemd/sd-device/device-private.h | |
6bb648a1 | 3040 | |
add00dfd | 3041 | nodist_libsystemd_internal_la_SOURCES = \ |
4a0a7417 | 3042 | src/libsystemd/libsystemd.sym |
6bb648a1 | 3043 | |
add00dfd | 3044 | libsystemd_internal_la_CFLAGS = \ |
45fbe937 | 3045 | $(AM_CFLAGS) \ |
e59749b1 | 3046 | -pthread |
45fbe937 | 3047 | |
f0329635 TA |
3048 | libsystemd_internal_la_LIBADD = \ |
3049 | $(RT_LIBS) | |
3050 | ||
307e6d83 KS |
3051 | libsystemd_resolve_la_SOURCES = \ |
3052 | src/libsystemd/sd-resolve/sd-resolve.c \ | |
3053 | src/libsystemd/sd-resolve/resolve-util.h | |
3054 | ||
3055 | libsystemd_resolve_la_CFLAGS = \ | |
3056 | $(AM_CFLAGS) \ | |
3057 | -pthread | |
3058 | ||
93f1bcf4 LP |
3059 | libsystemd_resolve_la_LIBADD = \ |
3060 | -lresolv | |
3061 | ||
add00dfd | 3062 | noinst_LTLIBRARIES += \ |
307e6d83 KS |
3063 | libsystemd-internal.la \ |
3064 | libsystemd-resolve.la | |
add00dfd KS |
3065 | |
3066 | libsystemd_dump_la_SOURCES = \ | |
3067 | src/libsystemd/sd-bus/bus-dump.c \ | |
3068 | src/libsystemd/sd-bus/bus-dump.h | |
3069 | ||
add00dfd KS |
3070 | noinst_LTLIBRARIES += \ |
3071 | libsystemd-dump.la | |
3072 | ||
3073 | EXTRA_DIST += \ | |
2b0a23e8 KS |
3074 | src/libsystemd/libsystemd.sym.m4 \ |
3075 | src/libsystemd/libsystemd.pc.in \ | |
add00dfd | 3076 | src/libsystemd/sd-bus/DIFFERENCES \ |
2b0a23e8 | 3077 | src/libsystemd/sd-bus/GVARIANT-SERIALIZATION |
add00dfd | 3078 | |
2b0a23e8 KS |
3079 | BUILT_SOURCES += \ |
3080 | src/libsystemd/libsystemd.sym | |
3081 | ||
add00dfd KS |
3082 | libsystemd_la_SOURCES = \ |
3083 | $(libsystemd_internal_la_SOURCES) \ | |
307e6d83 | 3084 | $(libsystemd_resolve_la_SOURCES) \ |
add00dfd KS |
3085 | $(libsystemd_journal_internal_la_SOURCES) |
3086 | ||
3087 | nodist_libsystemd_la_SOURCES = \ | |
3088 | $(nodist_libsystemd_internal_la_SOURCES) | |
3089 | ||
3090 | libsystemd_la_CFLAGS = \ | |
4a8cf554 | 3091 | $(libsystemd_internal_la_CFLAGS) \ |
93f1bcf4 | 3092 | $(libsystemd_resolve_la_CFLAGS) \ |
4a8cf554 | 3093 | $(libsystemd_journal_internal_la_CFLAGS) |
add00dfd | 3094 | |
6bb648a1 | 3095 | libsystemd_la_LDFLAGS = \ |
d9f644e2 | 3096 | $(AM_LDFLAGS) \ |
b4b5212d | 3097 | -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \ |
2b0a23e8 | 3098 | -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym |
d9f644e2 | 3099 | |
add00dfd KS |
3100 | libsystemd_la_LIBADD = \ |
3101 | libsystemd-shared.la \ | |
93f1bcf4 | 3102 | $(libsystemd_internal_la_LIBADD) \ |
add00dfd | 3103 | $(libsystemd_journal_internal_la_LIBADD) \ |
93f1bcf4 | 3104 | $(libsystemd_resolve_la_LIBADD) |
add00dfd | 3105 | |
e288d6a8 DR |
3106 | libsystemd-install-hook: |
3107 | libname=libsystemd.so && $(move-to-rootlibdir) | |
e288d6a8 DR |
3108 | |
3109 | libsystemd-uninstall-hook: | |
3110 | rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so* | |
3111 | ||
3112 | INSTALL_EXEC_HOOKS += libsystemd-install-hook | |
3113 | UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook | |
3114 | ||
c3b8df24 | 3115 | pkgconfiglib_DATA += \ |
6bb648a1 | 3116 | src/libsystemd/libsystemd.pc |
c3b8df24 | 3117 | |
be127913 | 3118 | pkginclude_HEADERS += \ |
882897af LP |
3119 | src/systemd/sd-bus.h \ |
3120 | src/systemd/sd-bus-protocol.h \ | |
3121 | src/systemd/sd-bus-vtable.h \ | |
3122 | src/systemd/sd-event.h | |
be127913 | 3123 | src/systemd/sd-login.h \ |
be4b47cb KS |
3124 | src/systemd/sd-id128.h \ |
3125 | src/systemd/sd-daemon.h | |
3126 | ||
3127 | if ENABLE_KDBUS | |
3128 | pkginclude_HEADERS += \ | |
be4b47cb | 3129 | src/systemd/sd-utf8.h \ |
be4b47cb | 3130 | src/systemd/sd-rtnl.h \ |
9a00f57a LP |
3131 | src/systemd/sd-resolve.h \ |
3132 | src/systemd/sd-path.h | |
be4b47cb | 3133 | endif |
be127913 | 3134 | |
d9f644e2 | 3135 | lib_LTLIBRARIES += \ |
6bb648a1 | 3136 | libsystemd.la |
de1c301e | 3137 | |
cee22bd3 | 3138 | tests += \ |
de1c301e | 3139 | test-bus-marshal \ |
89ffcd2a | 3140 | test-bus-signature \ |
a9beb123 | 3141 | test-bus-benchmark \ |
2181a7f5 | 3142 | test-bus-chat \ |
b7fc42e0 | 3143 | test-bus-cleanup \ |
392d5b37 | 3144 | test-bus-server \ |
dd418b9a | 3145 | test-bus-match \ |
ddeb4241 | 3146 | test-bus-kernel \ |
86312ab8 | 3147 | test-bus-kernel-bloom \ |
29ddb38f LP |
3148 | test-bus-zero-copy \ |
3149 | test-bus-introspect \ | |
fd38203a | 3150 | test-bus-objects \ |
780896a4 | 3151 | test-bus-error \ |
5b12334d | 3152 | test-bus-creds \ |
c1b9d935 | 3153 | test-bus-gvariant \ |
c813ca40 | 3154 | test-event \ |
5681d7fb | 3155 | test-rtnl \ |
e9140aff | 3156 | test-local-addresses \ |
3bedba4a | 3157 | test-resolve |
89ffcd2a | 3158 | |
862e8bf8 | 3159 | bin_PROGRAMS += \ |
89ffcd2a | 3160 | busctl |
de1c301e LP |
3161 | |
3162 | test_bus_marshal_SOURCES = \ | |
607553f9 | 3163 | src/libsystemd/sd-bus/test-bus-marshal.c |
de1c301e LP |
3164 | |
3165 | test_bus_marshal_LDADD = \ | |
0b906b8d | 3166 | libsystemd-dump.la \ |
6bb648a1 | 3167 | libsystemd-internal.la \ |
de1c301e | 3168 | libsystemd-shared.la \ |
de1c301e | 3169 | $(GLIB_LIBS) \ |
0b906b8d | 3170 | $(DBUS_LIBS) |
de1c301e LP |
3171 | |
3172 | test_bus_marshal_CFLAGS = \ | |
3173 | $(AM_CFLAGS) \ | |
3174 | $(GLIB_CFLAGS) \ | |
0b906b8d | 3175 | $(DBUS_CFLAGS) |
de1c301e LP |
3176 | |
3177 | test_bus_signature_SOURCES = \ | |
607553f9 | 3178 | src/libsystemd/sd-bus/test-bus-signature.c |
de1c301e LP |
3179 | |
3180 | test_bus_signature_LDADD = \ | |
b9f08b1f KS |
3181 | libsystemd-internal.la \ |
3182 | libsystemd-shared.la | |
de1c301e | 3183 | |
89ffcd2a | 3184 | test_bus_chat_SOURCES = \ |
607553f9 | 3185 | src/libsystemd/sd-bus/test-bus-chat.c |
89ffcd2a LP |
3186 | |
3187 | test_bus_chat_CFLAGS = \ | |
3188 | $(AM_CFLAGS) \ | |
3189 | -pthread | |
3190 | ||
3191 | test_bus_chat_LDADD = \ | |
6bb648a1 | 3192 | libsystemd-internal.la \ |
d9f644e2 | 3193 | libsystemd-shared.la |
89ffcd2a | 3194 | |
b7fc42e0 | 3195 | test_bus_cleanup_SOURCES = \ |
607553f9 | 3196 | src/libsystemd/sd-bus/test-bus-cleanup.c |
b7fc42e0 | 3197 | |
41fd4c4c KS |
3198 | test_bus_cleanup_CFLAGS = \ |
3199 | $(AM_CFLAGS) \ | |
3200 | $(SECCOMP_CFLAGS) | |
3201 | ||
b7fc42e0 ZJS |
3202 | test_bus_cleanup_LDADD = \ |
3203 | libsystemd-internal.la \ | |
b7fc42e0 ZJS |
3204 | libsystemd-shared.la |
3205 | ||
2181a7f5 | 3206 | test_bus_server_SOURCES = \ |
607553f9 | 3207 | src/libsystemd/sd-bus/test-bus-server.c |
2181a7f5 LP |
3208 | |
3209 | test_bus_server_CFLAGS = \ | |
3210 | $(AM_CFLAGS) \ | |
3211 | -pthread | |
3212 | ||
3213 | test_bus_server_LDADD = \ | |
6bb648a1 | 3214 | libsystemd-internal.la \ |
d9f644e2 | 3215 | libsystemd-shared.la |
2181a7f5 | 3216 | |
29ddb38f | 3217 | test_bus_objects_SOURCES = \ |
607553f9 | 3218 | src/libsystemd/sd-bus/test-bus-objects.c |
29ddb38f LP |
3219 | |
3220 | test_bus_objects_CFLAGS = \ | |
3221 | $(AM_CFLAGS) \ | |
3222 | -pthread | |
3223 | ||
3224 | test_bus_objects_LDADD = \ | |
6bb648a1 | 3225 | libsystemd-dump.la \ |
0b906b8d KS |
3226 | libsystemd-internal.la \ |
3227 | libsystemd-shared.la | |
29ddb38f | 3228 | |
780896a4 | 3229 | test_bus_error_SOURCES = \ |
607553f9 | 3230 | src/libsystemd/sd-bus/test-bus-error.c |
780896a4 LP |
3231 | |
3232 | test_bus_error_LDADD = \ | |
6bb648a1 | 3233 | libsystemd-internal.la \ |
780896a4 LP |
3234 | libsystemd-shared.la |
3235 | ||
c1b9d935 | 3236 | test_bus_gvariant_SOURCES = \ |
607553f9 | 3237 | src/libsystemd/sd-bus/test-bus-gvariant.c |
c1b9d935 LP |
3238 | |
3239 | test_bus_gvariant_LDADD = \ | |
0b906b8d | 3240 | libsystemd-dump.la \ |
6bb648a1 | 3241 | libsystemd-internal.la \ |
c1b9d935 | 3242 | libsystemd-shared.la \ |
0b906b8d | 3243 | $(GLIB_LIBS) |
c1b9d935 LP |
3244 | |
3245 | test_bus_gvariant_CFLAGS = \ | |
3246 | $(AM_CFLAGS) \ | |
3247 | $(GLIB_CFLAGS) | |
3248 | ||
5b12334d | 3249 | test_bus_creds_SOURCES = \ |
607553f9 | 3250 | src/libsystemd/sd-bus/test-bus-creds.c |
5b12334d LP |
3251 | |
3252 | test_bus_creds_LDADD = \ | |
6bb648a1 | 3253 | libsystemd-dump.la \ |
0b906b8d KS |
3254 | libsystemd-internal.la \ |
3255 | libsystemd-shared.la | |
5b12334d | 3256 | |
392d5b37 | 3257 | test_bus_match_SOURCES = \ |
607553f9 | 3258 | src/libsystemd/sd-bus/test-bus-match.c |
392d5b37 | 3259 | |
392d5b37 | 3260 | test_bus_match_LDADD = \ |
6bb648a1 | 3261 | libsystemd-internal.la \ |
d9f644e2 | 3262 | libsystemd-shared.la |
dd418b9a LP |
3263 | |
3264 | test_bus_kernel_SOURCES = \ | |
607553f9 | 3265 | src/libsystemd/sd-bus/test-bus-kernel.c |
dd418b9a | 3266 | |
dd418b9a | 3267 | test_bus_kernel_LDADD = \ |
6bb648a1 | 3268 | libsystemd-dump.la \ |
0b906b8d KS |
3269 | libsystemd-internal.la \ |
3270 | libsystemd-shared.la | |
392d5b37 | 3271 | |
86312ab8 | 3272 | test_bus_kernel_bloom_SOURCES = \ |
607553f9 | 3273 | src/libsystemd/sd-bus/test-bus-kernel-bloom.c |
86312ab8 | 3274 | |
86312ab8 | 3275 | test_bus_kernel_bloom_LDADD = \ |
6bb648a1 | 3276 | libsystemd-internal.la \ |
d9f644e2 | 3277 | libsystemd-shared.la |
86312ab8 | 3278 | |
a9beb123 TG |
3279 | test_bus_benchmark_SOURCES = \ |
3280 | src/libsystemd/sd-bus/test-bus-benchmark.c | |
8f155917 | 3281 | |
a9beb123 | 3282 | test_bus_benchmark_LDADD = \ |
6bb648a1 | 3283 | libsystemd-internal.la \ |
d9f644e2 | 3284 | libsystemd-shared.la |
8f155917 | 3285 | |
453a0c29 | 3286 | test_bus_zero_copy_SOURCES = \ |
607553f9 | 3287 | src/libsystemd/sd-bus/test-bus-zero-copy.c |
453a0c29 | 3288 | |
453a0c29 | 3289 | test_bus_zero_copy_LDADD = \ |
6bb648a1 | 3290 | libsystemd-dump.la \ |
0b906b8d KS |
3291 | libsystemd-internal.la \ |
3292 | libsystemd-shared.la | |
453a0c29 | 3293 | |
29ddb38f | 3294 | test_bus_introspect_SOURCES = \ |
607553f9 | 3295 | src/libsystemd/sd-bus/test-bus-introspect.c |
29ddb38f | 3296 | |
29ddb38f | 3297 | test_bus_introspect_LDADD = \ |
f01de965 KS |
3298 | libsystemd-internal.la \ |
3299 | libsystemd-shared.la | |
29ddb38f | 3300 | |
fd38203a | 3301 | test_event_SOURCES = \ |
607553f9 | 3302 | src/libsystemd/sd-event/test-event.c |
fd38203a LP |
3303 | |
3304 | test_event_LDADD = \ | |
6bb648a1 | 3305 | libsystemd-internal.la \ |
d9f644e2 | 3306 | libsystemd-shared.la |
fd38203a | 3307 | |
0b54473e | 3308 | test_rtnl_SOURCES = \ |
607553f9 | 3309 | src/libsystemd/sd-rtnl/test-rtnl.c |
0b54473e TG |
3310 | |
3311 | test_rtnl_LDADD = \ | |
3312 | libsystemd-internal.la \ | |
0b54473e TG |
3313 | libsystemd-shared.la |
3314 | ||
e9140aff LP |
3315 | test_local_addresses_SOURCES = \ |
3316 | src/libsystemd/sd-rtnl/test-local-addresses.c | |
3317 | ||
3318 | test_local_addresses_LDADD = \ | |
3319 | libsystemd-internal.la \ | |
3320 | libsystemd-shared.la | |
3321 | ||
3bedba4a | 3322 | test_resolve_SOURCES = \ |
607553f9 | 3323 | src/libsystemd/sd-resolve/test-resolve.c |
5681d7fb | 3324 | |
3bedba4a | 3325 | test_resolve_LDADD = \ |
307e6d83 | 3326 | libsystemd-resolve.la \ |
93f1bcf4 LP |
3327 | libsystemd-internal.la \ |
3328 | libsystemd-shared.la | |
5681d7fb | 3329 | |
3bedba4a | 3330 | test_resolve_CFLAGS = \ |
5681d7fb TG |
3331 | $(AM_CFLAGS) \ |
3332 | -pthread | |
3333 | ||
89ffcd2a | 3334 | busctl_SOURCES = \ |
a1ad3767 LP |
3335 | src/libsystemd/sd-bus/busctl.c \ |
3336 | src/libsystemd/sd-bus/busctl-introspect.c \ | |
3337 | src/libsystemd/sd-bus/busctl-introspect.h | |
89ffcd2a LP |
3338 | |
3339 | busctl_LDADD = \ | |
6bb648a1 | 3340 | libsystemd-dump.la \ |
0b906b8d KS |
3341 | libsystemd-internal.la \ |
3342 | libsystemd-shared.la | |
89ffcd2a | 3343 | |
c61be55d TG |
3344 | # ------------------------------------------------------------------------------ |
3345 | noinst_LTLIBRARIES += \ | |
fe8db0c5 | 3346 | libsystemd-network.la |
c61be55d | 3347 | |
679be2a7 CR |
3348 | libsystemd_network_la_CFLAGS = \ |
3349 | $(AM_CFLAGS) \ | |
3350 | $(KMOD_CFLAGS) | |
3351 | ||
fe8db0c5 | 3352 | libsystemd_network_la_SOURCES = \ |
c61be55d | 3353 | src/systemd/sd-dhcp-client.h \ |
b44cd882 | 3354 | src/systemd/sd-dhcp-server.h \ |
fe8db0c5 | 3355 | src/systemd/sd-dhcp-lease.h \ |
5c1d3fc9 | 3356 | src/systemd/sd-ipv4ll.h \ |
a903fd34 LP |
3357 | src/systemd/sd-icmp6-nd.h \ |
3358 | src/systemd/sd-dhcp6-client.h \ | |
3359 | src/systemd/sd-dhcp6-lease.h \ | |
cda391c3 | 3360 | src/systemd/sd-pppoe.h \ |
e7aa89f9 | 3361 | src/systemd/sd-lldp.h \ |
fe8db0c5 | 3362 | src/libsystemd-network/sd-dhcp-client.c \ |
b44cd882 | 3363 | src/libsystemd-network/sd-dhcp-server.c \ |
fe8db0c5 TG |
3364 | src/libsystemd-network/dhcp-network.c \ |
3365 | src/libsystemd-network/dhcp-option.c \ | |
3366 | src/libsystemd-network/dhcp-packet.c \ | |
3367 | src/libsystemd-network/dhcp-internal.h \ | |
b44cd882 | 3368 | src/libsystemd-network/dhcp-server-internal.h \ |
fe8db0c5 TG |
3369 | src/libsystemd-network/dhcp-protocol.h \ |
3370 | src/libsystemd-network/dhcp-lease-internal.h \ | |
5c1d3fc9 UTL |
3371 | src/libsystemd-network/sd-dhcp-lease.c \ |
3372 | src/libsystemd-network/sd-ipv4ll.c \ | |
3373 | src/libsystemd-network/ipv4ll-network.c \ | |
3374 | src/libsystemd-network/ipv4ll-packet.c \ | |
c6f7c917 | 3375 | src/libsystemd-network/ipv4ll-internal.h \ |
cda391c3 | 3376 | src/libsystemd-network/sd-pppoe.c \ |
c6f7c917 | 3377 | src/libsystemd-network/network-internal.c \ |
e3169126 | 3378 | src/libsystemd-network/network-internal.h \ |
e3169126 | 3379 | src/libsystemd-network/sd-icmp6-nd.c \ |
3fb2c570 | 3380 | src/libsystemd-network/sd-dhcp6-client.c \ |
e3169126 | 3381 | src/libsystemd-network/dhcp6-internal.h \ |
228b2a12 | 3382 | src/libsystemd-network/dhcp6-protocol.h \ |
f12ed3bf | 3383 | src/libsystemd-network/dhcp6-network.c \ |
3fb2c570 PF |
3384 | src/libsystemd-network/dhcp6-option.c \ |
3385 | src/libsystemd-network/dhcp6-lease-internal.h \ | |
ad1ad5c8 | 3386 | src/libsystemd-network/sd-dhcp6-lease.c \ |
cfb5b380 TG |
3387 | src/libsystemd-network/dhcp-identifier.h \ |
3388 | src/libsystemd-network/dhcp-identifier.c \ | |
ad1ad5c8 SS |
3389 | src/libsystemd-network/lldp.h \ |
3390 | src/libsystemd-network/lldp-tlv.h \ | |
3391 | src/libsystemd-network/lldp-tlv.c \ | |
3392 | src/libsystemd-network/lldp-network.h \ | |
3393 | src/libsystemd-network/lldp-network.c \ | |
3394 | src/libsystemd-network/lldp-port.h \ | |
3395 | src/libsystemd-network/lldp-port.c \ | |
3396 | src/libsystemd-network/lldp-internal.h \ | |
3397 | src/libsystemd-network/lldp-internal.c \ | |
7a6f1457 | 3398 | src/libsystemd-network/lldp-util.h \ |
ad1ad5c8 | 3399 | src/libsystemd-network/sd-lldp.c |
fe8db0c5 TG |
3400 | |
3401 | libsystemd_network_la_LIBADD = \ | |
5052e399 | 3402 | libudev-internal.la \ |
4ef0809c | 3403 | libsystemd-label.la \ |
c61be55d | 3404 | libsystemd-internal.la \ |
679be2a7 CR |
3405 | libsystemd-shared.la \ |
3406 | $(KMOD_LIBS) | |
c61be55d TG |
3407 | |
3408 | test_dhcp_option_SOURCES = \ | |
fe8db0c5 TG |
3409 | src/libsystemd-network/dhcp-protocol.h \ |
3410 | src/libsystemd-network/dhcp-internal.h \ | |
3411 | src/libsystemd-network/test-dhcp-option.c | |
c61be55d TG |
3412 | |
3413 | test_dhcp_option_LDADD = \ | |
fe8db0c5 | 3414 | libsystemd-network.la \ |
c61be55d TG |
3415 | libsystemd-internal.la \ |
3416 | libsystemd-shared.la | |
3417 | ||
3418 | test_dhcp_client_SOURCES = \ | |
3419 | src/systemd/sd-dhcp-client.h \ | |
fe8db0c5 TG |
3420 | src/libsystemd-network/dhcp-protocol.h \ |
3421 | src/libsystemd-network/dhcp-internal.h \ | |
3422 | src/libsystemd-network/test-dhcp-client.c | |
c61be55d TG |
3423 | |
3424 | test_dhcp_client_LDADD = \ | |
fe8db0c5 | 3425 | libsystemd-network.la \ |
4ef0809c | 3426 | libsystemd-label.la \ |
c61be55d | 3427 | libsystemd-internal.la \ |
c61be55d TG |
3428 | libsystemd-shared.la |
3429 | ||
b44cd882 TG |
3430 | test_dhcp_server_SOURCES = \ |
3431 | src/libsystemd-network/test-dhcp-server.c | |
3432 | ||
3433 | test_dhcp_server_LDADD = \ | |
3434 | libsystemd-network.la \ | |
3435 | libsystemd-internal.la \ | |
3436 | libsystemd-shared.la | |
3437 | ||
d9bf4f8c | 3438 | test_ipv4ll_SOURCES = \ |
5590bbe5 KS |
3439 | src/systemd/sd-ipv4ll.h \ |
3440 | src/libsystemd-network/ipv4ll-internal.h \ | |
3441 | src/libsystemd-network/test-ipv4ll.c | |
d9bf4f8c UTL |
3442 | |
3443 | test_ipv4ll_LDADD = \ | |
5590bbe5 KS |
3444 | libsystemd-network.la \ |
3445 | libsystemd-label.la \ | |
3446 | libsystemd-internal.la \ | |
3447 | libsystemd-shared.la | |
d9bf4f8c | 3448 | |
cda391c3 TG |
3449 | test_pppoe_SOURCES = \ |
3450 | src/systemd/sd-pppoe.h \ | |
3451 | src/libsystemd-network/test-pppoe.c | |
3452 | ||
3453 | test_pppoe_LDADD = \ | |
3454 | libsystemd-network.la \ | |
3455 | libsystemd-shared.la | |
3456 | ||
f20a35cc PF |
3457 | test_icmp6_rs_SOURCES = \ |
3458 | src/systemd/sd-dhcp6-client.h \ | |
ab2bc6fe | 3459 | src/systemd/sd-icmp6-nd.h \ |
f20a35cc | 3460 | src/libsystemd-network/dhcp6-internal.h \ |
cfb5b380 TG |
3461 | src/libsystemd-network/test-icmp6-rs.c \ |
3462 | src/libsystemd-network/dhcp-identifier.h \ | |
3463 | src/libsystemd-network/dhcp-identifier.c | |
f20a35cc PF |
3464 | |
3465 | test_icmp6_rs_LDADD = \ | |
3466 | libsystemd-network.la \ | |
3467 | libsystemd-internal.la \ | |
3468 | libsystemd-shared.la | |
3469 | ||
813e3a6f PF |
3470 | test_dhcp6_client_SOURCES = \ |
3471 | src/systemd/sd-dhcp6-client.h \ | |
f12ed3bf | 3472 | src/libsystemd-network/dhcp6-internal.h \ |
cfb5b380 TG |
3473 | src/libsystemd-network/test-dhcp6-client.c \ |
3474 | src/libsystemd-network/dhcp-identifier.h \ | |
3475 | src/libsystemd-network/dhcp-identifier.c | |
813e3a6f PF |
3476 | |
3477 | test_dhcp6_client_LDADD = \ | |
3478 | libsystemd-network.la \ | |
3479 | libsystemd-internal.la \ | |
3480 | libsystemd-shared.la | |
3481 | ||
ad1ad5c8 SS |
3482 | test_lldp_SOURCES = \ |
3483 | src/libsystemd-network/lldp.h \ | |
3484 | src/libsystemd-network/lldp-tlv.h \ | |
3485 | src/libsystemd-network/lldp-tlv.c \ | |
3486 | src/libsystemd-network/test-lldp.c | |
3487 | ||
3488 | test_lldp_LDADD = \ | |
3489 | libsystemd-network.la \ | |
3490 | libsystemd-internal.la \ | |
3491 | libsystemd-shared.la | |
3492 | ||
c61be55d TG |
3493 | tests += \ |
3494 | test-dhcp-option \ | |
d9bf4f8c | 3495 | test-dhcp-client \ |
b44cd882 | 3496 | test-dhcp-server \ |
f20a35cc | 3497 | test-ipv4ll \ |
813e3a6f | 3498 | test-icmp6-rs \ |
ad1ad5c8 SS |
3499 | test-dhcp6-client \ |
3500 | test-lldp | |
c61be55d | 3501 | |
cda391c3 TG |
3502 | manual_tests += \ |
3503 | test-pppoe | |
3504 | ||
84da4a30 | 3505 | # ------------------------------------------------------------------------------ |
545149a2 | 3506 | if ENABLE_TERMINAL |
84da4a30 DH |
3507 | noinst_LTLIBRARIES += \ |
3508 | libsystemd-terminal.la | |
3509 | ||
10595afb | 3510 | rootlibexec_PROGRAMS += \ |
ce7b9f50 DH |
3511 | systemd-consoled |
3512 | ||
545149a2 | 3513 | noinst_PROGRAMS += \ |
8e937190 | 3514 | systemd-evcat \ |
810626a8 | 3515 | systemd-modeset \ |
545149a2 DH |
3516 | systemd-subterm |
3517 | ||
056e86ee | 3518 | dist_pkgdata_DATA += \ |
10bc4cd4 | 3519 | src/libsystemd-terminal/unifont-glyph-array.bin |
86db5dfb | 3520 | |
2355af60 TG |
3521 | nodist_userunit_DATA += \ |
3522 | units/user/systemd-consoled.service | |
3523 | ||
3524 | USER_DEFAULT_TARGET_WANTS += \ | |
3525 | systemd-consoled.service | |
3526 | ||
545149a2 DH |
3527 | tests += \ |
3528 | test-term-page \ | |
86db5dfb DH |
3529 | test-term-parser \ |
3530 | test-unifont | |
545149a2 DH |
3531 | endif |
3532 | ||
7cd3aba6 DR |
3533 | EXTRA_DIST += \ |
3534 | units/user/systemd-consoled.service.in | |
3535 | ||
84da4a30 | 3536 | libsystemd_terminal_la_CFLAGS = \ |
c93e5a62 DH |
3537 | $(AM_CFLAGS) \ |
3538 | $(TERMINAL_CFLAGS) | |
84da4a30 DH |
3539 | |
3540 | libsystemd_terminal_la_SOURCES = \ | |
650c5444 DH |
3541 | src/libsystemd-terminal/grdev.h \ |
3542 | src/libsystemd-terminal/grdev-internal.h \ | |
3543 | src/libsystemd-terminal/grdev.c \ | |
f22e0bce | 3544 | src/libsystemd-terminal/grdev-drm.c \ |
e202fa31 DH |
3545 | src/libsystemd-terminal/idev.h \ |
3546 | src/libsystemd-terminal/idev-internal.h \ | |
3547 | src/libsystemd-terminal/idev.c \ | |
c93e5a62 | 3548 | src/libsystemd-terminal/idev-evdev.c \ |
e06cc7b0 | 3549 | src/libsystemd-terminal/idev-keyboard.c \ |
7ed3a638 DH |
3550 | src/libsystemd-terminal/sysview.h \ |
3551 | src/libsystemd-terminal/sysview-internal.h \ | |
3552 | src/libsystemd-terminal/sysview.c \ | |
a30f1425 | 3553 | src/libsystemd-terminal/term.h \ |
84da4a30 | 3554 | src/libsystemd-terminal/term-internal.h \ |
1c9633d6 | 3555 | src/libsystemd-terminal/term-charset.c \ |
84da4a30 | 3556 | src/libsystemd-terminal/term-page.c \ |
1c9633d6 | 3557 | src/libsystemd-terminal/term-parser.c \ |
e432f9e8 | 3558 | src/libsystemd-terminal/term-screen.c \ |
86db5dfb | 3559 | src/libsystemd-terminal/term-wcwidth.c \ |
c2977e5c DH |
3560 | src/libsystemd-terminal/unifont.h \ |
3561 | src/libsystemd-terminal/unifont-def.h \ | |
86db5dfb | 3562 | src/libsystemd-terminal/unifont.c |
84da4a30 DH |
3563 | |
3564 | libsystemd_terminal_la_LIBADD = \ | |
7ed3a638 | 3565 | libudev-internal.la \ |
84da4a30 | 3566 | libsystemd-internal.la \ |
c93e5a62 DH |
3567 | libsystemd-shared.la \ |
3568 | $(TERMINAL_LIBS) | |
84da4a30 | 3569 | |
ce7b9f50 DH |
3570 | systemd_consoled_CFLAGS = \ |
3571 | $(AM_CFLAGS) \ | |
3572 | $(TERMINAL_CFLAGS) | |
3573 | ||
3574 | systemd_consoled_SOURCES = \ | |
3575 | src/console/consoled.h \ | |
3576 | src/console/consoled.c \ | |
3577 | src/console/consoled-display.c \ | |
3578 | src/console/consoled-manager.c \ | |
3579 | src/console/consoled-session.c \ | |
3580 | src/console/consoled-terminal.c \ | |
3581 | src/console/consoled-workspace.c | |
3582 | ||
3583 | systemd_consoled_LDADD = \ | |
3584 | libsystemd-terminal.la \ | |
3585 | libsystemd-internal.la \ | |
3586 | libsystemd-shared.la \ | |
3587 | $(TERMINAL_LIBS) | |
3588 | ||
8e937190 DH |
3589 | systemd_evcat_CFLAGS = \ |
3590 | $(AM_CFLAGS) \ | |
3591 | $(TERMINAL_CFLAGS) | |
3592 | ||
3593 | systemd_evcat_SOURCES = \ | |
3594 | src/libsystemd-terminal/evcat.c | |
3595 | ||
3596 | systemd_evcat_LDADD = \ | |
3597 | libsystemd-terminal.la \ | |
3598 | libsystemd-internal.la \ | |
3599 | libsystemd-shared.la \ | |
3600 | $(TERMINAL_LIBS) | |
3601 | ||
810626a8 DH |
3602 | systemd_modeset_CFLAGS = \ |
3603 | $(AM_CFLAGS) \ | |
3604 | $(TERMINAL_CFLAGS) | |
3605 | ||
3606 | systemd_modeset_SOURCES = \ | |
3607 | src/libsystemd-terminal/modeset.c | |
3608 | ||
3609 | systemd_modeset_LDADD = \ | |
3610 | libsystemd-terminal.la \ | |
3611 | libsystemd-internal.la \ | |
3612 | libsystemd-shared.la \ | |
3613 | $(TERMINAL_LIBS) | |
3614 | ||
5ab887e9 DH |
3615 | systemd_subterm_SOURCES = \ |
3616 | src/libsystemd-terminal/subterm.c | |
3617 | ||
3618 | systemd_subterm_LDADD = \ | |
3619 | libsystemd-terminal.la \ | |
3620 | libsystemd-internal.la \ | |
3621 | libsystemd-shared.la | |
3622 | ||
84da4a30 DH |
3623 | test_term_page_SOURCES = \ |
3624 | src/libsystemd-terminal/test-term-page.c | |
3625 | ||
3626 | test_term_page_LDADD = \ | |
3627 | libsystemd-terminal.la \ | |
3628 | libsystemd-internal.la \ | |
3629 | libsystemd-shared.la | |
3630 | ||
1c9633d6 DH |
3631 | test_term_parser_SOURCES = \ |
3632 | src/libsystemd-terminal/test-term-parser.c | |
3633 | ||
3634 | test_term_parser_LDADD = \ | |
3635 | libsystemd-terminal.la \ | |
3636 | libsystemd-internal.la \ | |
3637 | libsystemd-shared.la | |
3638 | ||
86db5dfb DH |
3639 | test_unifont_SOURCES = \ |
3640 | src/libsystemd-terminal/test-unifont.c | |
3641 | ||
3642 | test_unifont_LDADD = \ | |
3643 | libsystemd-terminal.la \ | |
3644 | libsystemd-internal.la \ | |
3645 | libsystemd-shared.la | |
3646 | ||
10bc4cd4 ZJS |
3647 | src/libsystemd-terminal/unifont-glyph-array.bin: tools/compile-unifont.py $(UNIFONT) |
3648 | $(AM_V_GEN)$(PYTHON) $< <$(UNIFONT) >$@ | |
86db5dfb | 3649 | |
3e214785 | 3650 | # ------------------------------------------------------------------------------ |
92ec4495 | 3651 | if ENABLE_GTK_DOC |
3e214785 | 3652 | SUBDIRS += \ |
bb061708 | 3653 | docs/libudev |
87cfe600 ZJS |
3654 | |
3655 | noinst_DATA += \ | |
3656 | docs/html/libudev \ | |
3657 | docs/html/gudev | |
92ec4495 | 3658 | endif |
3e214785 KS |
3659 | |
3660 | include_HEADERS += \ | |
bb061708 | 3661 | src/libudev/libudev.h |
3e214785 KS |
3662 | |
3663 | lib_LTLIBRARIES += \ | |
3664 | libudev.la | |
3665 | ||
3e214785 | 3666 | libudev_la_SOURCES =\ |
dc579853 | 3667 | src/libudev/libudev.sym \ |
bb061708 | 3668 | src/libudev/libudev-private.h \ |
f4ac4d1a | 3669 | src/libudev/libudev-device-internal.h \ |
bb061708 KS |
3670 | src/libudev/libudev.c \ |
3671 | src/libudev/libudev-list.c \ | |
3672 | src/libudev/libudev-util.c \ | |
3673 | src/libudev/libudev-device.c \ | |
f4ac4d1a | 3674 | src/libudev/libudev-device-private.c \ |
bb061708 KS |
3675 | src/libudev/libudev-enumerate.c \ |
3676 | src/libudev/libudev-monitor.c \ | |
2001208c | 3677 | src/libudev/libudev-queue.c \ |
2001208c | 3678 | src/libudev/libudev-hwdb.c |
3e214785 | 3679 | |
04a9d3a0 KS |
3680 | libudev_la_CFLAGS = \ |
3681 | $(AM_CFLAGS) \ | |
3682 | -fvisibility=hidden | |
3683 | ||
3e214785 KS |
3684 | libudev_la_LDFLAGS = \ |
3685 | $(AM_LDFLAGS) \ | |
20bbd54f KS |
3686 | -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \ |
3687 | -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym | |
3e214785 | 3688 | |
33502ffe | 3689 | libudev_la_LIBADD = \ |
0ebee881 | 3690 | libsystemd-internal.la \ |
48d7417d | 3691 | libsystemd-shared.la |
33502ffe | 3692 | |
3e214785 | 3693 | pkgconfiglib_DATA += \ |
bb061708 | 3694 | src/libudev/libudev.pc |
3e214785 KS |
3695 | |
3696 | EXTRA_DIST += \ | |
dc579853 | 3697 | src/libudev/libudev.pc.in |
3e214785 KS |
3698 | |
3699 | CLEANFILES += \ | |
87cfe600 ZJS |
3700 | docs/html/libudev \ |
3701 | docs/html/gudev | |
3702 | ||
3703 | docs/html/libudev: | |
3704 | $(AM_V_at)$(MKDIR_P) $(dir $@) | |
3705 | $(AM_V_LN)$(LN_S) -f ../libudev/html $@ | |
3706 | ||
3707 | docs/html/gudev: | |
3708 | $(AM_V_at)$(MKDIR_P) $(dir $@) | |
3709 | $(AM_V_LN)$(LN_S) -f ../gudev/html $@ | |
3e214785 KS |
3710 | |
3711 | # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed | |
24fdc230 ZJS |
3712 | libudev-install-hook: |
3713 | libname=libudev.so && $(move-to-rootlibdir) | |
3e214785 | 3714 | |
24fdc230 | 3715 | libudev-uninstall-hook: |
3e214785 KS |
3716 | rm -f $(DESTDIR)$(rootlibdir)/libudev.so* |
3717 | ||
24fdc230 ZJS |
3718 | INSTALL_EXEC_HOOKS += libudev-install-hook |
3719 | UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook | |
3e214785 | 3720 | |
04a9d3a0 KS |
3721 | # ------------------------------------------------------------------------------ |
3722 | noinst_LTLIBRARIES += \ | |
48d7417d | 3723 | libudev-internal.la |
04a9d3a0 | 3724 | |
48d7417d | 3725 | libudev_internal_la_SOURCES =\ |
f4ac4d1a | 3726 | $(libudev_la_SOURCES) |
04a9d3a0 | 3727 | |
48d7417d | 3728 | libudev_internal_la_CFLAGS = \ |
49e942b2 | 3729 | $(AM_CFLAGS) \ |
49e942b2 | 3730 | -fvisibility=default |
04a9d3a0 | 3731 | |
3e214785 | 3732 | # ------------------------------------------------------------------------------ |
63ed840e | 3733 | INSTALL_DIRS += \ |
65eb4378 | 3734 | $(sysconfdir)/udev/rules.d |
3e214785 | 3735 | |
9dc670ea | 3736 | dist_network_DATA = \ |
dd4d2c1c | 3737 | network/99-default.link \ |
4eaea664 LP |
3738 | network/80-container-host0.network \ |
3739 | network/80-container-ve.network | |
daeb71a3 | 3740 | |
3e214785 | 3741 | dist_udevrules_DATA += \ |
3e214785 KS |
3742 | rules/42-usb-hid-pm.rules \ |
3743 | rules/50-udev-default.rules \ | |
52346b5f | 3744 | rules/60-block.rules \ |
0a8da830 | 3745 | rules/60-drm.rules \ |
51c0c286 | 3746 | rules/60-evdev.rules \ |
3e214785 | 3747 | rules/60-persistent-storage-tape.rules \ |
3e214785 KS |
3748 | rules/60-persistent-input.rules \ |
3749 | rules/60-persistent-alsa.rules \ | |
3750 | rules/60-persistent-storage.rules \ | |
a31a0c92 | 3751 | rules/60-serial.rules \ |
0bb91b50 | 3752 | rules/64-btrfs.rules \ |
ebb90c83 | 3753 | rules/70-mouse.rules \ |
001a2473 | 3754 | rules/70-touchpad.rules \ |
3e214785 | 3755 | rules/75-net-description.rules \ |
3e214785 | 3756 | rules/78-sound-card.rules \ |
654b036b | 3757 | rules/80-net-setup-link.rules |
3e214785 | 3758 | |
e2eb18d5 A |
3759 | nodist_udevrules_DATA += \ |
3760 | rules/99-systemd.rules | |
3761 | ||
3e214785 KS |
3762 | udevconfdir = $(sysconfdir)/udev |
3763 | dist_udevconf_DATA = \ | |
3764 | src/udev/udev.conf | |
3765 | ||
2f4d3bb9 | 3766 | pkgconfigdata_DATA += \ |
3e214785 KS |
3767 | src/udev/udev.pc |
3768 | ||
3769 | EXTRA_DIST += \ | |
3770 | rules/99-systemd.rules.in \ | |
3771 | src/udev/udev.pc.in | |
3772 | ||
3e214785 | 3773 | EXTRA_DIST += \ |
51dfddc2 | 3774 | units/systemd-udevd.service.in \ |
f13b388f | 3775 | units/systemd-udev-trigger.service.in \ |
65eb4378 | 3776 | units/systemd-udev-settle.service.in |
3e214785 | 3777 | |
6ff39241 ZJS |
3778 | SOCKETS_TARGET_WANTS += \ |
3779 | systemd-udevd-control.socket \ | |
3780 | systemd-udevd-kernel.socket | |
ecde7065 | 3781 | |
6ff39241 ZJS |
3782 | SYSINIT_TARGET_WANTS += \ |
3783 | systemd-udevd.service \ | |
65eb4378 | 3784 | systemd-udev-trigger.service |
3e214785 | 3785 | |
f432bb91 | 3786 | rootbin_PROGRAMS += \ |
3e214785 KS |
3787 | udevadm |
3788 | ||
f13b388f KS |
3789 | rootlibexec_PROGRAMS += \ |
3790 | systemd-udevd | |
3e214785 | 3791 | |
04a9d3a0 KS |
3792 | noinst_LTLIBRARIES += \ |
3793 | libudev-core.la | |
3794 | ||
9e4ded30 | 3795 | src/udev/keyboard-keys-list.txt: |
9d7d42bc KS |
3796 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
3797 | $(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/' > $@ | |
3798 | ||
9e4ded30 | 3799 | src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys-list.txt |
9d7d42bc KS |
3800 | $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@ |
3801 | ||
dff55e5d | 3802 | src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf |
9d7d42bc KS |
3803 | $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@ |
3804 | ||
9e4ded30 | 3805 | src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys-list.txt |
9d7d42bc KS |
3806 | $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@ |
3807 | ||
9e4ded30 ZJS |
3808 | gperf_txt_sources += \ |
3809 | src/udev/keyboard-keys-list.txt | |
3810 | ||
04a9d3a0 | 3811 | libudev_core_la_SOURCES = \ |
3e214785 KS |
3812 | src/udev/udev.h \ |
3813 | src/udev/udev-event.c \ | |
3814 | src/udev/udev-watch.c \ | |
3815 | src/udev/udev-node.c \ | |
3816 | src/udev/udev-rules.c \ | |
3817 | src/udev/udev-ctrl.c \ | |
3818 | src/udev/udev-builtin.c \ | |
0bb91b50 | 3819 | src/udev/udev-builtin-btrfs.c \ |
3e214785 KS |
3820 | src/udev/udev-builtin-hwdb.c \ |
3821 | src/udev/udev-builtin-input_id.c \ | |
9d7d42bc | 3822 | src/udev/udev-builtin-keyboard.c \ |
a660c63c | 3823 | src/udev/udev-builtin-net_id.c \ |
0b99c9f8 | 3824 | src/udev/udev-builtin-net_setup_link.c \ |
3e214785 | 3825 | src/udev/udev-builtin-path_id.c \ |
af6f0d42 TG |
3826 | src/udev/udev-builtin-usb_id.c \ |
3827 | src/udev/net/link-config.h \ | |
a5010333 TG |
3828 | src/udev/net/link-config.c \ |
3829 | src/udev/net/ethtool-util.h \ | |
3830 | src/udev/net/ethtool-util.c | |
3e214785 | 3831 | |
9d7d42bc KS |
3832 | nodist_libudev_core_la_SOURCES = \ |
3833 | src/udev/keyboard-keys-from-name.h \ | |
af6f0d42 TG |
3834 | src/udev/keyboard-keys-to-name.h \ |
3835 | src/udev/net/link-config-gperf.c | |
9d7d42bc | 3836 | |
9e4ded30 | 3837 | gperf_gperf_sources = \ |
af6f0d42 | 3838 | src/udev/net/link-config-gperf.gperf |
9d7d42bc | 3839 | |
04a9d3a0 | 3840 | libudev_core_la_CFLAGS = \ |
235450b0 | 3841 | $(AM_CFLAGS) \ |
3e214785 KS |
3842 | $(BLKID_CFLAGS) \ |
3843 | $(KMOD_CFLAGS) | |
3844 | ||
04a9d3a0 | 3845 | libudev_core_la_LIBADD = \ |
48d7417d | 3846 | libudev-internal.la \ |
9e13dbae | 3847 | libsystemd-label.la \ |
0b54473e | 3848 | libsystemd-internal.la \ |
c6f7c917 | 3849 | libsystemd-network.la \ |
48d7417d | 3850 | libsystemd-shared.la \ |
3e214785 KS |
3851 | $(BLKID_LIBS) \ |
3852 | $(KMOD_LIBS) | |
3853 | ||
e3043162 TG |
3854 | if HAVE_KMOD |
3855 | libudev_core_la_SOURCES += \ | |
3856 | src/udev/udev-builtin-kmod.c | |
a3bd8447 TG |
3857 | |
3858 | dist_udevrules_DATA += \ | |
3859 | rules/80-drivers.rules | |
e3043162 TG |
3860 | endif |
3861 | ||
f553b3b1 AO |
3862 | if HAVE_BLKID |
3863 | libudev_core_la_SOURCES += \ | |
3864 | src/udev/udev-builtin-blkid.c | |
3865 | endif | |
3866 | ||
83cd6b75 | 3867 | if HAVE_ACL |
04a9d3a0 | 3868 | libudev_core_la_SOURCES += \ |
83cd6b75 | 3869 | src/udev/udev-builtin-uaccess.c \ |
4193534e | 3870 | src/login/logind-acl.c \ |
58dfc42e LP |
3871 | src/libsystemd/sd-login/sd-login.c \ |
3872 | src/systemd/sd-login.h | |
83cd6b75 | 3873 | |
04a9d3a0 | 3874 | libudev_core_la_LIBADD += \ |
78b2e3a6 | 3875 | libsystemd-acl.la |
83cd6b75 KS |
3876 | endif |
3877 | ||
f13b388f | 3878 | systemd_udevd_SOURCES = \ |
83cd6b75 | 3879 | src/udev/udevd.c |
3e214785 | 3880 | |
f13b388f | 3881 | systemd_udevd_LDADD = \ |
0b906b8d | 3882 | libudev-core.la |
3e214785 KS |
3883 | |
3884 | udevadm_SOURCES = \ | |
3e214785 KS |
3885 | src/udev/udevadm.c \ |
3886 | src/udev/udevadm-info.c \ | |
3887 | src/udev/udevadm-control.c \ | |
3888 | src/udev/udevadm-monitor.c \ | |
796b06c2 | 3889 | src/udev/udevadm-hwdb.c \ |
3e214785 KS |
3890 | src/udev/udevadm-settle.c \ |
3891 | src/udev/udevadm-trigger.c \ | |
3892 | src/udev/udevadm-test.c \ | |
d6170d27 ZJS |
3893 | src/udev/udevadm-test-builtin.c \ |
3894 | src/udev/udevadm-util.c \ | |
3895 | src/udev/udevadm-util.h | |
3e214785 | 3896 | |
3e214785 | 3897 | udevadm_LDADD = \ |
0b906b8d | 3898 | libudev-core.la |
3e214785 | 3899 | |
65eb4378 | 3900 | # ------------------------------------------------------------------------------ |
fe659612 | 3901 | if ENABLE_HWDB |
65eb4378 TG |
3902 | INSTALL_DIRS += \ |
3903 | $(sysconfdir)/udev/hwdb.d | |
3904 | ||
3905 | systemd_hwdb_SOURCES = \ | |
3906 | src/libsystemd/sd-hwdb/hwdb-internal.h \ | |
3907 | src/hwdb/hwdb.c | |
3908 | ||
3909 | systemd_hwdb_LDADD = \ | |
f4ac4d1a | 3910 | libudev-internal.la \ |
65eb4378 | 3911 | libsystemd-shared.la \ |
f4ac4d1a | 3912 | libsystemd-internal.la |
65eb4378 TG |
3913 | |
3914 | rootbin_PROGRAMS += \ | |
3915 | systemd-hwdb | |
3916 | ||
3917 | dist_udevhwdb_DATA = \ | |
3918 | hwdb/20-pci-vendor-model.hwdb \ | |
3919 | hwdb/20-pci-classes.hwdb \ | |
3920 | hwdb/20-usb-vendor-model.hwdb \ | |
3921 | hwdb/20-usb-classes.hwdb \ | |
3922 | hwdb/20-sdio-vendor-model.hwdb \ | |
3923 | hwdb/20-sdio-classes.hwdb \ | |
3924 | hwdb/20-bluetooth-vendor-product.hwdb \ | |
3925 | hwdb/20-acpi-vendor.hwdb \ | |
3926 | hwdb/20-OUI.hwdb \ | |
3927 | hwdb/20-net-ifname.hwdb \ | |
51c0c286 | 3928 | hwdb/60-evdev.hwdb \ |
65eb4378 | 3929 | hwdb/60-keyboard.hwdb \ |
001a2473 | 3930 | hwdb/70-mouse.hwdb \ |
06ee4910 | 3931 | hwdb/70-pointingstick.hwdb \ |
001a2473 | 3932 | hwdb/70-touchpad.hwdb |
65eb4378 TG |
3933 | |
3934 | EXTRA_DIST += \ | |
79365fda DJL |
3935 | units/systemd-hwdb-update.service.in \ |
3936 | hwdb/ids-update.pl \ | |
3937 | hwdb/sdio.ids | |
65eb4378 | 3938 | |
65eb4378 TG |
3939 | SYSINIT_TARGET_WANTS += \ |
3940 | systemd-hwdb-update.service | |
3941 | ||
c4eb3681 KS |
3942 | # Update hwdb on installation. Do not bother if installing |
3943 | # in DESTDIR, since this is likely for packaging purposes. | |
3944 | hwdb-update-hook: | |
65eb4378 | 3945 | -test -n "$(DESTDIR)" || $(rootbindir)/systemd-hwdb update |
c4eb3681 KS |
3946 | |
3947 | INSTALL_DATA_HOOKS += \ | |
3948 | hwdb-update-hook | |
3949 | ||
ee623f0d | 3950 | hwdb-remove-hook: |
beb23689 | 3951 | -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin |
fe659612 | 3952 | endif |
ee623f0d | 3953 | |
3e214785 | 3954 | # ------------------------------------------------------------------------------ |
6b8b149a | 3955 | TESTS += \ |
0b87a077 | 3956 | test/udev-test.pl \ |
72521ab9 MP |
3957 | $(NULL) |
3958 | ||
3959 | if HAVE_PYTHON | |
3960 | TESTS += \ | |
3961 | test/rule-syntax-check.py \ | |
dcf13690 ZJS |
3962 | $(NULL) |
3963 | ||
3964 | if HAVE_SYSV_COMPAT | |
3965 | TESTS += \ | |
e28aa588 | 3966 | test/sysv-generator-test.py \ |
72521ab9 MP |
3967 | $(NULL) |
3968 | endif | |
dcf13690 | 3969 | endif |
3e214785 | 3970 | |
cee22bd3 | 3971 | manual_tests += \ |
3e214785 KS |
3972 | test-libudev \ |
3973 | test-udev | |
3974 | ||
3975 | test_libudev_SOURCES = \ | |
0b87a077 | 3976 | src/test/test-libudev.c |
3e214785 KS |
3977 | |
3978 | test_libudev_LDADD = \ | |
9e13dbae | 3979 | libsystemd-label.la \ |
48d7417d | 3980 | libudev-internal.la \ |
c32eb440 TG |
3981 | libsystemd-internal.la \ |
3982 | libsystemd-shared.la | |
3e214785 KS |
3983 | |
3984 | test_udev_SOURCES = \ | |
4cb72937 | 3985 | src/test/test-udev.c |
3e214785 | 3986 | |
3e214785 | 3987 | test_udev_LDADD = \ |
a4705396 | 3988 | libudev-core.la \ |
6ada823a KS |
3989 | $(BLKID_LIBS) \ |
3990 | $(KMOD_LIBS) \ | |
3991 | $(SELINUX_LIBS) | |
3992 | ||
3993 | if HAVE_ACL | |
3994 | test_udev_LDADD += \ | |
3995 | libsystemd-acl.la | |
3996 | endif | |
3e214785 | 3997 | |
9b80f05f | 3998 | check_DATA += \ |
0b87a077 | 3999 | test/sys |
3e214785 KS |
4000 | |
4001 | # packed sysfs test tree | |
0b87a077 | 4002 | test/sys: |
bd923ff2 ZJS |
4003 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
4004 | $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz | |
3e214785 KS |
4005 | |
4006 | test-sys-distclean: | |
0b87a077 | 4007 | -rm -rf test/sys |
3e214785 KS |
4008 | DISTCLEAN_LOCAL_HOOKS += test-sys-distclean |
4009 | ||
4010 | EXTRA_DIST += \ | |
0b87a077 KS |
4011 | test/sys.tar.xz \ |
4012 | test/udev-test.pl \ | |
e28aa588 MP |
4013 | test/rule-syntax-check.py \ |
4014 | test/sysv-generator-test.py \ | |
4015 | $(NULL) | |
4016 | ||
3e214785 KS |
4017 | |
4018 | # ------------------------------------------------------------------------------ | |
4019 | ata_id_SOURCES = \ | |
4020 | src/udev/ata_id/ata_id.c | |
4021 | ||
4022 | ata_id_LDADD = \ | |
48d7417d | 4023 | libudev-internal.la \ |
f4ac4d1a | 4024 | libsystemd-internal.la \ |
49e942b2 | 4025 | libsystemd-shared.la |
3e214785 KS |
4026 | |
4027 | udevlibexec_PROGRAMS += \ | |
4028 | ata_id | |
4029 | ||
4030 | # ------------------------------------------------------------------------------ | |
4031 | cdrom_id_SOURCES = \ | |
4032 | src/udev/cdrom_id/cdrom_id.c | |
4033 | ||
4034 | cdrom_id_LDADD = \ | |
48d7417d | 4035 | libudev-internal.la \ |
f4ac4d1a | 4036 | libsystemd-internal.la \ |
49e942b2 | 4037 | libsystemd-shared.la |
3e214785 KS |
4038 | |
4039 | udevlibexec_PROGRAMS += \ | |
4040 | cdrom_id | |
4041 | ||
4042 | dist_udevrules_DATA += \ | |
20d83f2f | 4043 | rules/60-cdrom_id.rules |
3e214785 KS |
4044 | |
4045 | # ------------------------------------------------------------------------------ | |
4046 | collect_SOURCES = \ | |
4047 | src/udev/collect/collect.c | |
4048 | ||
4049 | collect_LDADD = \ | |
48d7417d | 4050 | libudev-internal.la \ |
f4ac4d1a | 4051 | libsystemd-internal.la \ |
48d7417d | 4052 | libsystemd-shared.la |
3e214785 KS |
4053 | |
4054 | udevlibexec_PROGRAMS += \ | |
4055 | collect | |
4056 | ||
4057 | # ------------------------------------------------------------------------------ | |
4058 | scsi_id_SOURCES =\ | |
4059 | src/udev/scsi_id/scsi_id.c \ | |
4060 | src/udev/scsi_id/scsi_serial.c \ | |
4061 | src/udev/scsi_id/scsi.h \ | |
4062 | src/udev/scsi_id/scsi_id.h | |
4063 | ||
4064 | scsi_id_LDADD = \ | |
48d7417d | 4065 | libudev-internal.la \ |
f4ac4d1a | 4066 | libsystemd-internal.la \ |
49e942b2 | 4067 | libsystemd-shared.la |
3e214785 KS |
4068 | |
4069 | udevlibexec_PROGRAMS += \ | |
4070 | scsi_id | |
4071 | ||
4072 | EXTRA_DIST += \ | |
4073 | src/udev/scsi_id/README | |
4074 | ||
4075 | # ------------------------------------------------------------------------------ | |
4076 | v4l_id_SOURCES = \ | |
4077 | src/udev/v4l_id/v4l_id.c | |
4078 | ||
4079 | v4l_id_LDADD = \ | |
5ac0162c | 4080 | libudev-internal.la \ |
f4ac4d1a | 4081 | libsystemd-internal.la \ |
5ac0162c | 4082 | libsystemd-shared.la |
3e214785 KS |
4083 | |
4084 | udevlibexec_PROGRAMS += \ | |
4085 | v4l_id | |
4086 | ||
4087 | dist_udevrules_DATA += \ | |
20d83f2f | 4088 | rules/60-persistent-v4l.rules |
3e214785 KS |
4089 | |
4090 | # ------------------------------------------------------------------------------ | |
4091 | accelerometer_SOURCES = \ | |
4092 | src/udev/accelerometer/accelerometer.c | |
4093 | ||
4094 | accelerometer_LDADD = \ | |
1325ec42 | 4095 | libudev-internal.la \ |
f4ac4d1a | 4096 | libsystemd-internal.la \ |
49e942b2 | 4097 | libsystemd-shared.la |
3e214785 KS |
4098 | |
4099 | udevlibexec_PROGRAMS += \ | |
4100 | accelerometer | |
4101 | ||
4102 | dist_udevrules_DATA += \ | |
20d83f2f | 4103 | rules/61-accelerometer.rules |
3e214785 KS |
4104 | |
4105 | # ------------------------------------------------------------------------------ | |
4106 | if ENABLE_GUDEV | |
92ec4495 | 4107 | if ENABLE_GTK_DOC |
3e214785 | 4108 | SUBDIRS += \ |
bb061708 | 4109 | docs/gudev |
92ec4495 | 4110 | endif |
3e214785 KS |
4111 | |
4112 | libgudev_includedir = \ | |
4113 | $(includedir)/gudev-1.0/gudev | |
4114 | ||
4115 | libgudev_include_HEADERS = \ | |
bb061708 KS |
4116 | src/gudev/gudev.h \ |
4117 | src/gudev/gudevenums.h \ | |
4118 | src/gudev/gudevenumtypes.h \ | |
4119 | src/gudev/gudevtypes.h \ | |
4120 | src/gudev/gudevclient.h \ | |
4121 | src/gudev/gudevdevice.h \ | |
4122 | src/gudev/gudevenumerator.h | |
3e214785 KS |
4123 | |
4124 | lib_LTLIBRARIES += libgudev-1.0.la | |
4125 | ||
4126 | pkgconfiglib_DATA += \ | |
bb061708 | 4127 | src/gudev/gudev-1.0.pc |
3e214785 | 4128 | |
3e214785 | 4129 | libgudev_1_0_la_SOURCES = \ |
706b7936 | 4130 | src/gudev/libgudev-1.0.sym \ |
bb061708 KS |
4131 | src/gudev/gudevenums.h \ |
4132 | src/gudev/gudevenumtypes.h \ | |
4133 | src/gudev/gudevenumtypes.h\ | |
4134 | src/gudev/gudevtypes.h \ | |
4135 | src/gudev/gudevclient.h \ | |
4136 | src/gudev/gudevclient.c \ | |
4137 | src/gudev/gudevdevice.h \ | |
4138 | src/gudev/gudevdevice.c \ | |
4139 | src/gudev/gudevenumerator.h \ | |
4140 | src/gudev/gudevenumerator.c \ | |
4141 | src/gudev/gudevprivate.h | |
3e214785 KS |
4142 | |
4143 | nodist_libgudev_1_0_la_SOURCES = \ | |
bb061708 KS |
4144 | src/gudev/gudevmarshal.h \ |
4145 | src/gudev/gudevmarshal.c \ | |
4146 | src/gudev/gudevenumtypes.h \ | |
4147 | src/gudev/gudevenumtypes.c | |
3e214785 KS |
4148 | |
4149 | BUILT_SOURCES += \ | |
4150 | $(nodist_libgudev_1_0_la_SOURCES) | |
4151 | ||
4152 | libgudev_1_0_la_CPPFLAGS = \ | |
4153 | $(AM_CPPFLAGS) \ | |
4154 | -I$(top_builddir)/src\ | |
4155 | -I$(top_srcdir)/src\ | |
bb061708 KS |
4156 | -I$(top_builddir)/src/gudev \ |
4157 | -I$(top_srcdir)/src/gudev \ | |
3e214785 KS |
4158 | -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \ |
4159 | -D_GUDEV_COMPILATION \ | |
4160 | -DG_LOG_DOMAIN=\"GUdev\" | |
4161 | ||
4162 | libgudev_1_0_la_CFLAGS = \ | |
235450b0 | 4163 | $(AM_CFLAGS) \ |
3e214785 KS |
4164 | -fvisibility=default \ |
4165 | $(GLIB_CFLAGS) | |
4166 | ||
4167 | libgudev_1_0_la_LIBADD = \ | |
4168 | libudev.la \ | |
4169 | $(GLIB_LIBS) | |
4170 | ||
4171 | libgudev_1_0_la_LDFLAGS = \ | |
f7b6a32e | 4172 | $(AM_LDFLAGS) \ |
3e214785 | 4173 | -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \ |
706b7936 KS |
4174 | -export-dynamic \ |
4175 | -no-undefined \ | |
4176 | -Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym | |
3e214785 | 4177 | |
bb061708 | 4178 | src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list |
bd923ff2 | 4179 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
3e214785 KS |
4180 | $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@ |
4181 | ||
bb061708 | 4182 | src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list |
bd923ff2 ZJS |
4183 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
4184 | $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \ | |
3e214785 KS |
4185 | glib-genmarshal $< --prefix=g_udev_marshal --body >> $@ |
4186 | ||
bd923ff2 ZJS |
4187 | src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h |
4188 | $(AM_V_at)$(MKDIR_P) $(dir $@) | |
4189 | $(AM_V_GEN)glib-mkenums --template $^ > $@ | |
3e214785 | 4190 | |
0eaeca1f | 4191 | if HAVE_INTROSPECTION |
d5449fdc MAP |
4192 | -include $(INTROSPECTION_MAKEFILE) |
4193 | ||
bb061708 | 4194 | src/gudev/GUdev-1.0.gir: libgudev-1.0.la |
d5449fdc | 4195 | |
bb061708 | 4196 | src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0 |
d5449fdc | 4197 | |
bb061708 | 4198 | src_gudev_GUdev_1_0_gir_CFLAGS = \ |
145d2258 | 4199 | $(AM_CFLAGS) \ |
d5449fdc MAP |
4200 | $(INCLUDES) \ |
4201 | -D_GUDEV_COMPILATION \ | |
4202 | -D_GUDEV_WORK_AROUND_DEV_T_BUG \ | |
bb061708 KS |
4203 | -I$(top_srcdir)/src \ |
4204 | -I$(top_builddir)/src \ | |
145d2258 KS |
4205 | -I$(top_srcdir)/src/gudev \ |
4206 | -I$(top_builddir)/src/gudev | |
d5449fdc | 4207 | |
bb061708 | 4208 | src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la |
d5449fdc | 4209 | |
bb061708 | 4210 | src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \ |
d5449fdc MAP |
4211 | --pkg-export=gudev-1.0 \ |
4212 | --warn-all | |
4213 | ||
bb061708 | 4214 | src_gudev_GUdev_1_0_gir_FILES = \ |
cd8654b1 ZJS |
4215 | src/gudev/gudev.h \ |
4216 | src/gudev/gudevtypes.h \ | |
4217 | src/gudev/gudevenums.h \ | |
4218 | src/gudev/gudevenumtypes.h \ | |
4219 | src/gudev/gudevclient.h \ | |
4220 | src/gudev/gudevdevice.h \ | |
4221 | src/gudev/gudevenumerator.h \ | |
4222 | src/gudev/gudevclient.c \ | |
4223 | src/gudev/gudevdevice.c \ | |
4224 | src/gudev/gudevenumerator.c | |
bb061708 KS |
4225 | |
4226 | INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir | |
d5449fdc MAP |
4227 | INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h |
4228 | ||
4229 | girdir = $(datadir)/gir-1.0 | |
3e214785 | 4230 | gir_DATA = \ |
bb061708 | 4231 | src/gudev/GUdev-1.0.gir |
3e214785 | 4232 | |
d5449fdc | 4233 | typelibsdir = $(libdir)/girepository-1.0 |
3e214785 | 4234 | typelibs_DATA = \ |
bb061708 | 4235 | src/gudev/GUdev-1.0.typelib |
3e214785 KS |
4236 | |
4237 | CLEANFILES += $(gir_DATA) $(typelibs_DATA) | |
0eaeca1f | 4238 | endif # HAVE_INTROSPECTION |
3e214785 KS |
4239 | endif |
4240 | ||
299031ca BK |
4241 | EXTRA_DIST += \ |
4242 | src/gudev/gudev-1.0.pc.in \ | |
4243 | src/gudev/gudevmarshal.list \ | |
4244 | src/gudev/gudevenumtypes.h.template \ | |
4245 | src/gudev/gudevenumtypes.c.template \ | |
4246 | src/gudev/gjs-example.js \ | |
4247 | src/gudev/seed-example-enum.js \ | |
4248 | src/gudev/seed-example.js | |
4249 | ||
3e214785 KS |
4250 | # ------------------------------------------------------------------------------ |
4251 | mtd_probe_SOURCES = \ | |
4252 | src/udev/mtd_probe/mtd_probe.c \ | |
4253 | src/udev/mtd_probe/mtd_probe.h \ | |
4254 | src/udev/mtd_probe/probe_smartmedia.c | |
4255 | ||
3e214785 | 4256 | dist_udevrules_DATA += \ |
20d83f2f | 4257 | rules/75-probe_mtd.rules |
3e214785 KS |
4258 | |
4259 | udevlibexec_PROGRAMS += \ | |
4260 | mtd_probe | |
4261 | ||
48d437bb | 4262 | # ------------------------------------------------------------------------------ |
48d437bb | 4263 | test_id128_SOURCES = \ |
379079ba | 4264 | src/test/test-id128.c |
051c7d1e | 4265 | |
48d437bb | 4266 | test_id128_LDADD = \ |
be127913 | 4267 | libsystemd-internal.la \ |
48d7417d | 4268 | libsystemd-shared.la |
051c7d1e | 4269 | |
cee22bd3 | 4270 | tests += \ |
e0eaab7c KS |
4271 | test-id128 |
4272 | ||
2ca0435b ZJS |
4273 | # ------------------------------------------------------------------------------ |
4274 | ||
4275 | rootlibexec_PROGRAMS += \ | |
4276 | systemd-activate | |
4277 | ||
4278 | systemd_activate_SOURCES = \ | |
4279 | src/activate/activate.c | |
4280 | ||
4281 | systemd_activate_LDADD = \ | |
175a3d25 | 4282 | libsystemd-label.la \ |
0ebee881 | 4283 | libsystemd-internal.la \ |
48d7417d | 4284 | libsystemd-shared.la |
2ca0435b | 4285 | |
48d437bb KS |
4286 | # ------------------------------------------------------------------------------ |
4287 | systemd_journald_SOURCES = \ | |
4288 | src/journal/journald.c \ | |
d025f1e4 | 4289 | src/journal/journald-server.h |
e6960940 | 4290 | |
48d437bb | 4291 | systemd_journald_LDADD = \ |
f9a810be | 4292 | libsystemd-journal-core.la \ |
6bb648a1 | 4293 | libsystemd-internal.la \ |
f9a810be | 4294 | libsystemd-shared.la |
2a018e83 | 4295 | |
755a02c6 | 4296 | systemd_cat_SOURCES = \ |
6185ac1e | 4297 | src/journal/cat.c |
755a02c6 LP |
4298 | |
4299 | systemd_cat_LDADD = \ | |
48d7417d | 4300 | libsystemd-journal-core.la |
755a02c6 | 4301 | |
cc64d017 ZJS |
4302 | if HAVE_MICROHTTPD |
4303 | rootlibexec_PROGRAMS += \ | |
4304 | systemd-journal-remote | |
4305 | ||
fdfccdbc | 4306 | systemd_journal_remote_SOURCES = \ |
1e4e7b71 ZJS |
4307 | src/journal-remote/journal-remote-parse.h \ |
4308 | src/journal-remote/journal-remote-parse.c \ | |
4309 | src/journal-remote/journal-remote-write.h \ | |
4310 | src/journal-remote/journal-remote-write.c \ | |
9ff48d09 | 4311 | src/journal-remote/journal-remote.h \ |
1e4e7b71 | 4312 | src/journal-remote/journal-remote.c |
fdfccdbc ZJS |
4313 | |
4314 | systemd_journal_remote_LDADD = \ | |
4315 | libsystemd-internal.la \ | |
4316 | libsystemd-journal-core.la | |
4317 | ||
cc64d017 | 4318 | systemd_journal_remote_SOURCES += \ |
1e4e7b71 ZJS |
4319 | src/journal-remote/microhttpd-util.h \ |
4320 | src/journal-remote/microhttpd-util.c | |
cc64d017 ZJS |
4321 | |
4322 | systemd_journal_remote_CFLAGS = \ | |
4323 | $(AM_CFLAGS) \ | |
4324 | $(MICROHTTPD_CFLAGS) | |
4325 | ||
4326 | systemd_journal_remote_LDADD += \ | |
4327 | $(MICROHTTPD_LIBS) | |
4328 | ||
bedd083a ŁS |
4329 | if ENABLE_SYSUSERS |
4330 | dist_sysusers_DATA += \ | |
4331 | sysusers.d/systemd-remote.conf | |
4332 | endif | |
4333 | ||
4334 | if ENABLE_TMPFILES | |
4335 | dist_tmpfiles_DATA += \ | |
4336 | tmpfiles.d/systemd-remote.conf | |
4337 | endif | |
4338 | ||
cc64d017 ZJS |
4339 | if HAVE_GNUTLS |
4340 | systemd_journal_remote_LDADD += \ | |
4341 | $(GNUTLS_LIBS) | |
ad95fd1d ZJS |
4342 | |
4343 | # systemd-journal-remote make sense mostly with full crypto stack | |
4344 | dist_systemunit_DATA += \ | |
4345 | units/systemd-journal-remote.socket | |
4346 | ||
4347 | nodist_systemunit_DATA += \ | |
4348 | units/systemd-journal-remote.service | |
4349 | ||
4350 | EXTRA_DIST += \ | |
4351 | units/systemd-journal-remote.service.in | |
4352 | ||
4353 | journal-remote-install-hook: journal-install-hook | |
4354 | -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote | |
4355 | -chown 0:0 $(DESTDIR)/var/log/journal/remote | |
4356 | -chmod 755 $(DESTDIR)/var/log/journal/remote | |
4357 | ||
4358 | INSTALL_EXEC_HOOKS += journal-remote-install-hook | |
4359 | ||
cc64d017 | 4360 | endif |
ad95fd1d ZJS |
4361 | |
4362 | nodist_pkgsysconf_DATA += \ | |
4363 | src/journal-remote/journal-remote.conf | |
4364 | ||
4365 | EXTRA_DIST += \ | |
4366 | src/journal-remote/journal-remote.conf.in | |
4367 | ||
cc64d017 ZJS |
4368 | endif |
4369 | ||
3d090cc6 ZJS |
4370 | if HAVE_LIBCURL |
4371 | rootlibexec_PROGRAMS += \ | |
4372 | systemd-journal-upload | |
4373 | ||
4374 | systemd_journal_upload_SOURCES = \ | |
4375 | src/journal-remote/journal-upload.h \ | |
eacbb4d3 ZJS |
4376 | src/journal-remote/journal-upload.c \ |
4377 | src/journal-remote/journal-upload-journal.c | |
3d090cc6 ZJS |
4378 | |
4379 | systemd_journal_upload_CFLAGS = \ | |
4380 | $(AM_CFLAGS) \ | |
4381 | $(LIBCURL_CFLAGS) | |
4382 | ||
4383 | systemd_journal_upload_LDADD = \ | |
3d090cc6 | 4384 | libsystemd-internal.la \ |
eacbb4d3 ZJS |
4385 | libsystemd-journal-internal.la \ |
4386 | libsystemd-shared.la \ | |
3d090cc6 | 4387 | $(LIBCURL_LIBS) |
ad95fd1d ZJS |
4388 | |
4389 | nodist_systemunit_DATA += \ | |
4390 | units/systemd-journal-upload.service | |
4391 | ||
4392 | EXTRA_DIST += \ | |
4393 | units/systemd-journal-upload.service.in | |
29fc0ddc ZJS |
4394 | |
4395 | nodist_pkgsysconf_DATA += \ | |
4396 | src/journal-remote/journal-upload.conf | |
4397 | ||
4398 | EXTRA_DIST += \ | |
4399 | src/journal-remote/journal-upload.conf.in | |
3d090cc6 ZJS |
4400 | endif |
4401 | ||
145d2258 KS |
4402 | # using _CFLAGS = in the conditional below would suppress AM_CFLAGS |
4403 | journalctl_CFLAGS = \ | |
4404 | $(AM_CFLAGS) | |
a54156a2 | 4405 | |
169c4f65 | 4406 | journalctl_SOURCES = \ |
f33d3ec1 | 4407 | src/journal/journalctl.c |
2a018e83 | 4408 | |
169c4f65 | 4409 | journalctl_LDADD = \ |
474abe33 | 4410 | libsystemd-journal-internal.la \ |
be127913 | 4411 | libsystemd-internal.la \ |
48d7417d KS |
4412 | libsystemd-logs.la \ |
4413 | libsystemd-shared.la | |
2a018e83 | 4414 | |
478c8269 ZJS |
4415 | if HAVE_ACL |
4416 | journalctl_LDADD += \ | |
4417 | libsystemd-acl.la | |
4418 | endif | |
4419 | ||
f6a971bc LP |
4420 | if HAVE_QRENCODE |
4421 | journalctl_SOURCES += \ | |
4422 | src/journal/journal-qrcode.c \ | |
4423 | src/journal/journal-qrcode.h | |
4424 | ||
a54156a2 | 4425 | journalctl_CFLAGS += \ |
f6a971bc LP |
4426 | $(QRENCODE_CFLAGS) |
4427 | ||
4428 | journalctl_LDADD += \ | |
4429 | $(QRENCODE_LIBS) | |
4430 | endif | |
4431 | ||
48d437bb | 4432 | test_journal_SOURCES = \ |
cbdca852 | 4433 | src/journal/test-journal.c |
2a018e83 | 4434 | |
48d437bb | 4435 | test_journal_LDADD = \ |
48d7417d | 4436 | libsystemd-journal-core.la |
2fb1aeda | 4437 | |
b070e7f3 LP |
4438 | test_journal_send_SOURCES = \ |
4439 | src/journal/test-journal-send.c | |
4440 | ||
4441 | test_journal_send_LDADD = \ | |
48d7417d | 4442 | libsystemd-journal-core.la |
b070e7f3 | 4443 | |
e88baee8 | 4444 | test_journal_syslog_SOURCES = \ |
d025f1e4 | 4445 | src/journal/test-journal-syslog.c |
e88baee8 ZJS |
4446 | |
4447 | test_journal_syslog_LDADD = \ | |
48d7417d | 4448 | libsystemd-journal-core.la |
e88baee8 | 4449 | |
cbdca852 LP |
4450 | test_journal_match_SOURCES = \ |
4451 | src/journal/test-journal-match.c | |
4452 | ||
4453 | test_journal_match_LDADD = \ | |
48d7417d | 4454 | libsystemd-journal-core.la |
cbdca852 | 4455 | |
a4bcff5b LP |
4456 | test_journal_enum_SOURCES = \ |
4457 | src/journal/test-journal-enum.c | |
4458 | ||
4459 | test_journal_enum_LDADD = \ | |
48d7417d | 4460 | libsystemd-journal-core.la |
a4bcff5b | 4461 | |
cbdca852 LP |
4462 | test_journal_stream_SOURCES = \ |
4463 | src/journal/test-journal-stream.c | |
4464 | ||
4465 | test_journal_stream_LDADD = \ | |
48d7417d | 4466 | libsystemd-journal-core.la |
cbdca852 | 4467 | |
d0767ffd LP |
4468 | test_journal_flush_SOURCES = \ |
4469 | src/journal/test-journal-flush.c | |
4470 | ||
4471 | test_journal_flush_LDADD = \ | |
4472 | libsystemd-journal-core.la | |
4473 | ||
3b6c7e78 ZJS |
4474 | test_journal_init_SOURCES = \ |
4475 | src/journal/test-journal-init.c | |
4476 | ||
4477 | test_journal_init_LDADD = \ | |
48d7417d | 4478 | libsystemd-journal-core.la |
3b6c7e78 | 4479 | |
beec0085 LP |
4480 | test_journal_verify_SOURCES = \ |
4481 | src/journal/test-journal-verify.c | |
4482 | ||
4483 | test_journal_verify_LDADD = \ | |
48d7417d | 4484 | libsystemd-journal-core.la |
beec0085 | 4485 | |
7a050b54 MV |
4486 | test_journal_interleaving_SOURCES = \ |
4487 | src/journal/test-journal-interleaving.c | |
4488 | ||
4489 | test_journal_interleaving_LDADD = \ | |
48d7417d | 4490 | libsystemd-journal-core.la |
7a050b54 | 4491 | |
f8019684 LP |
4492 | test_mmap_cache_SOURCES = \ |
4493 | src/journal/test-mmap-cache.c | |
4494 | ||
4495 | test_mmap_cache_LDADD = \ | |
48d7417d | 4496 | libsystemd-journal-core.la |
f8019684 | 4497 | |
d4205751 LP |
4498 | test_catalog_SOURCES = \ |
4499 | src/journal/test-catalog.c | |
4500 | ||
96115cdf TA |
4501 | test_catalog_CPPFLAGS = \ |
4502 | $(AM_CPPFLAGS) \ | |
143bfdaf HHPF |
4503 | -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\" |
4504 | ||
d4205751 | 4505 | test_catalog_LDADD = \ |
48d7417d | 4506 | libsystemd-journal-core.la |
d4205751 | 4507 | |
843fecc0 RC |
4508 | test_compress_SOURCES = \ |
4509 | src/journal/test-compress.c | |
4510 | ||
4511 | test_compress_LDADD = \ | |
4512 | libsystemd-journal-internal.la \ | |
4513 | libsystemd-shared.la | |
843fecc0 | 4514 | |
fd53fee0 ZJS |
4515 | test_compress_benchmark_SOURCES = \ |
4516 | src/journal/test-compress-benchmark.c | |
4517 | ||
4518 | test_compress_benchmark_LDADD = \ | |
4519 | libsystemd-journal-internal.la \ | |
4520 | libsystemd-shared.la | |
4521 | ||
8bb3626d ZJS |
4522 | test_audit_type_SOURCES = \ |
4523 | src/journal/test-audit-type.c | |
4524 | ||
4525 | test_audit_type_LDADD = \ | |
4526 | libsystemd-journal-core.la | |
4527 | ||
48d7417d | 4528 | libsystemd_journal_core_la_SOURCES = \ |
d025f1e4 ZJS |
4529 | src/journal/journald-kmsg.c \ |
4530 | src/journal/journald-kmsg.h \ | |
4531 | src/journal/journald-syslog.c \ | |
4532 | src/journal/journald-syslog.h \ | |
4533 | src/journal/journald-stream.c \ | |
4534 | src/journal/journald-stream.h \ | |
4535 | src/journal/journald-server.c \ | |
4536 | src/journal/journald-server.h \ | |
4537 | src/journal/journald-console.c \ | |
4538 | src/journal/journald-console.h \ | |
40b71e89 ST |
4539 | src/journal/journald-wall.c \ |
4540 | src/journal/journald-wall.h \ | |
d025f1e4 ZJS |
4541 | src/journal/journald-native.c \ |
4542 | src/journal/journald-native.h \ | |
875c2e22 LP |
4543 | src/journal/journald-audit.c \ |
4544 | src/journal/journald-audit.h \ | |
d025f1e4 ZJS |
4545 | src/journal/journald-rate-limit.c \ |
4546 | src/journal/journald-rate-limit.h \ | |
4547 | src/journal/journal-internal.h | |
96d1efba | 4548 | |
48d7417d KS |
4549 | nodist_libsystemd_journal_core_la_SOURCES = \ |
4550 | src/journal/journald-gperf.c | |
7560fffc | 4551 | |
48d7417d KS |
4552 | libsystemd_journal_core_la_LIBADD = \ |
4553 | libsystemd-journal-internal.la \ | |
4554 | libudev-internal.la \ | |
48d7417d | 4555 | libsystemd-label.la \ |
be127913 | 4556 | libsystemd-internal.la \ |
48d7417d | 4557 | libsystemd-shared.la |
d025f1e4 | 4558 | |
d025f1e4 | 4559 | if HAVE_ACL |
48d7417d | 4560 | libsystemd_journal_core_la_LIBADD += \ |
d025f1e4 ZJS |
4561 | libsystemd-acl.la |
4562 | endif | |
7560fffc | 4563 | |
48d7417d KS |
4564 | noinst_LTLIBRARIES += \ |
4565 | libsystemd-journal-core.la | |
20263082 | 4566 | |
0031ccd3 KS |
4567 | journal-install-hook: |
4568 | -$(MKDIR_P) $(DESTDIR)/var/log/journal | |
4569 | -chown 0:0 $(DESTDIR)/var/log/journal | |
4570 | -chmod 755 $(DESTDIR)/var/log/journal | |
4571 | -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/ | |
4572 | -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/ | |
2ca0435b | 4573 | |
0031ccd3 | 4574 | journal-uninstall-hook: |
ad95fd1d | 4575 | -rmdir $(DESTDIR)/var/log/journal/remote |
0031ccd3 KS |
4576 | -rmdir $(DESTDIR)/var/log/journal/ |
4577 | ||
4578 | INSTALL_EXEC_HOOKS += journal-install-hook | |
4579 | UNINSTALL_EXEC_HOOKS += journal-uninstall-hook | |
4580 | ||
4581 | # ------------------------------------------------------------------------------ | |
c4eb3681 | 4582 | # Update catalog on installation. Do not bother if installing |
e2bb347f ZJS |
4583 | # in DESTDIR, since this is likely for packaging purposes. |
4584 | catalog-update-hook: | |
4ec24515 | 4585 | -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog |
e2bb347f | 4586 | |
f975e76c | 4587 | INSTALL_DATA_HOOKS += \ |
e2bb347f ZJS |
4588 | catalog-update-hook |
4589 | ||
4ec24515 ZJS |
4590 | catalog-remove-hook: |
4591 | -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database | |
4592 | ||
4593 | UNINSTALL_DATA_HOOKS += \ | |
4594 | catalog-remove-hook | |
4595 | ||
cee22bd3 | 4596 | manual_tests += \ |
844ec79b | 4597 | test-journal-enum |
2a018e83 | 4598 | |
cee22bd3 | 4599 | tests += \ |
216e2ade | 4600 | test-journal \ |
e88baee8 ZJS |
4601 | test-journal-send \ |
4602 | test-journal-syslog \ | |
95ea1b90 | 4603 | test-journal-match \ |
beec0085 | 4604 | test-journal-stream \ |
3b6c7e78 | 4605 | test-journal-init \ |
8e41de0d | 4606 | test-journal-verify \ |
7a050b54 | 4607 | test-journal-interleaving \ |
d0767ffd | 4608 | test-journal-flush \ |
844ec79b | 4609 | test-mmap-cache \ |
8bb3626d ZJS |
4610 | test-catalog \ |
4611 | test-audit-type | |
95ea1b90 | 4612 | |
3b1a55e1 | 4613 | if HAVE_COMPRESSION |
fd53fee0 ZJS |
4614 | tests += \ |
4615 | test-compress \ | |
4616 | test-compress-benchmark | |
3b1a55e1 | 4617 | endif |
843fecc0 | 4618 | |
48d437bb | 4619 | pkginclude_HEADERS += \ |
81527be1 | 4620 | src/systemd/sd-journal.h \ |
aacf3b48 LP |
4621 | src/systemd/sd-messages.h \ |
4622 | src/systemd/_sd-common.h | |
2a018e83 | 4623 | |
add00dfd KS |
4624 | libsystemd_journal_internal_la_SOURCES = \ |
4625 | src/journal/sd-journal.c \ | |
4626 | src/systemd/sd-journal.h \ | |
4627 | src/systemd/_sd-common.h \ | |
4628 | src/journal/journal-file.c \ | |
4629 | src/journal/journal-file.h \ | |
4630 | src/journal/journal-vacuum.c \ | |
4631 | src/journal/journal-vacuum.h \ | |
4632 | src/journal/journal-verify.c \ | |
4633 | src/journal/journal-verify.h \ | |
4634 | src/journal/lookup3.c \ | |
4635 | src/journal/lookup3.h \ | |
4636 | src/journal/journal-send.c \ | |
4637 | src/journal/journal-def.h \ | |
4638 | src/journal/compress.h \ | |
4639 | src/journal/catalog.c \ | |
4640 | src/journal/catalog.h \ | |
4641 | src/journal/mmap-cache.c \ | |
1325ec42 | 4642 | src/journal/mmap-cache.h \ |
4733607e ZJS |
4643 | src/journal/compress.c \ |
4644 | src/journal/audit-type.h \ | |
4645 | src/journal/audit-type.c \ | |
4646 | src/journal/audit_type-to-name.h | |
4647 | ||
4648 | gperf_txt_sources += \ | |
4649 | src/journal/audit_type-list.txt | |
add00dfd KS |
4650 | |
4651 | # using _CFLAGS = in the conditional below would suppress AM_CFLAGS | |
fe582db9 | 4652 | libsystemd_journal_internal_la_CFLAGS = \ |
add00dfd KS |
4653 | $(AM_CFLAGS) |
4654 | ||
1325ec42 KS |
4655 | libsystemd_journal_internal_la_LIBADD = \ |
4656 | libsystemd-label.la | |
add00dfd | 4657 | |
d89c8fdf | 4658 | if HAVE_XZ |
add00dfd KS |
4659 | libsystemd_journal_internal_la_CFLAGS += \ |
4660 | $(XZ_CFLAGS) | |
4661 | ||
4662 | libsystemd_journal_internal_la_LIBADD += \ | |
4663 | $(XZ_LIBS) | |
4664 | endif | |
4665 | ||
d89c8fdf ZJS |
4666 | if HAVE_LZ4 |
4667 | libsystemd_journal_internal_la_LIBADD += \ | |
4668 | -llz4 | |
4669 | endif | |
4670 | ||
add00dfd KS |
4671 | if HAVE_GCRYPT |
4672 | libsystemd_journal_internal_la_SOURCES += \ | |
4673 | src/journal/journal-authenticate.c \ | |
4674 | src/journal/journal-authenticate.h \ | |
4675 | src/journal/fsprg.c \ | |
4676 | src/journal/fsprg.h | |
4677 | ||
4678 | libsystemd_journal_internal_la_LIBADD += \ | |
4679 | $(GCRYPT_LIBS) | |
4680 | ||
4a8cf554 | 4681 | # fsprg.c is a drop-in file using void pointer arithmetic |
add00dfd KS |
4682 | libsystemd_journal_internal_la_CFLAGS += \ |
4683 | $(GCRYPT_CFLAGS) \ | |
4684 | -Wno-pointer-arith | |
4685 | endif | |
2a018e83 | 4686 | |
474abe33 LP |
4687 | noinst_LTLIBRARIES += \ |
4688 | libsystemd-journal-internal.la | |
4689 | ||
48d437bb | 4690 | rootlibexec_PROGRAMS += \ |
cc64d017 | 4691 | systemd-journald |
b1b2a107 | 4692 | |
48d437bb | 4693 | rootbin_PROGRAMS += \ |
169c4f65 | 4694 | journalctl |
b1b2a107 | 4695 | |
755a02c6 | 4696 | bin_PROGRAMS += \ |
6185ac1e | 4697 | systemd-cat |
755a02c6 | 4698 | |
48d437bb | 4699 | dist_systemunit_DATA += \ |
03ee5c38 | 4700 | units/systemd-journald.socket \ |
875c2e22 LP |
4701 | units/systemd-journald-dev-log.socket \ |
4702 | units/systemd-journald-audit.socket | |
b1b2a107 | 4703 | |
48d437bb | 4704 | nodist_systemunit_DATA += \ |
b8156be0 | 4705 | units/systemd-journald.service \ |
ecde7065 LP |
4706 | units/systemd-journal-flush.service \ |
4707 | units/systemd-journal-catalog-update.service | |
b2423f1f | 4708 | |
e6960940 | 4709 | dist_pkgsysconf_DATA += \ |
18b754d3 | 4710 | src/journal/journald.conf |
e6960940 | 4711 | |
d4205751 | 4712 | dist_catalog_DATA = \ |
a6e9f2b9 | 4713 | catalog/systemd.fr.catalog \ |
a6e9f2b9 | 4714 | catalog/systemd.it.catalog \ |
d6740361 | 4715 | catalog/systemd.pl.catalog \ |
b3e486b8 | 4716 | catalog/systemd.pt_BR.catalog \ |
d6740361 | 4717 | catalog/systemd.ru.catalog \ |
d4205751 LP |
4718 | catalog/systemd.catalog |
4719 | ||
6ff39241 | 4720 | SOCKETS_TARGET_WANTS += \ |
03ee5c38 | 4721 | systemd-journald.socket \ |
875c2e22 LP |
4722 | systemd-journald-dev-log.socket \ |
4723 | systemd-journald-audit.socket | |
03ee5c38 | 4724 | |
6ff39241 ZJS |
4725 | SYSINIT_TARGET_WANTS += \ |
4726 | systemd-journald.service \ | |
ecde7065 LP |
4727 | systemd-journal-flush.service \ |
4728 | systemd-journal-catalog-update.service | |
5008d581 | 4729 | |
48d437bb | 4730 | EXTRA_DIST += \ |
e6960940 | 4731 | units/systemd-journald.service.in \ |
b8156be0 | 4732 | units/systemd-journal-flush.service.in \ |
9e4ded30 | 4733 | units/systemd-journal-catalog-update.service.in |
e6960940 | 4734 | |
9e4ded30 ZJS |
4735 | gperf_gperf_sources += \ |
4736 | src/journal/journald-gperf.gperf | |
5008d581 | 4737 | |
4caf4ac1 | 4738 | # ------------------------------------------------------------------------------ |
7b17a7d7 | 4739 | if HAVE_MICROHTTPD |
7b17a7d7 LP |
4740 | gatewayddocumentrootdir=$(pkgdatadir)/gatewayd |
4741 | ||
4742 | rootlibexec_PROGRAMS += \ | |
4743 | systemd-journal-gatewayd | |
4744 | ||
4745 | systemd_journal_gatewayd_SOURCES = \ | |
1e4e7b71 ZJS |
4746 | src/journal-remote/journal-gatewayd.c \ |
4747 | src/journal-remote/microhttpd-util.h \ | |
4748 | src/journal-remote/microhttpd-util.c | |
7b17a7d7 LP |
4749 | |
4750 | systemd_journal_gatewayd_LDADD = \ | |
7b17a7d7 LP |
4751 | libsystemd-logs.la \ |
4752 | libsystemd-journal-internal.la \ | |
6bb648a1 | 4753 | libsystemd-internal.la \ |
48d7417d | 4754 | libsystemd-shared.la \ |
7b17a7d7 LP |
4755 | $(MICROHTTPD_LIBS) |
4756 | ||
cafc7f91 ZJS |
4757 | if HAVE_GNUTLS |
4758 | systemd_journal_gatewayd_LDADD += \ | |
4759 | $(GNUTLS_LIBS) | |
4760 | endif | |
4761 | ||
7b17a7d7 | 4762 | systemd_journal_gatewayd_CFLAGS = \ |
7b17a7d7 LP |
4763 | $(AM_CFLAGS) \ |
4764 | $(MICROHTTPD_CFLAGS) | |
4765 | ||
96115cdf TA |
4766 | systemd_journal_gatewayd_CPPFLAGS = \ |
4767 | $(AM_CPPFLAGS) \ | |
4768 | -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\" | |
4769 | ||
7b17a7d7 LP |
4770 | dist_systemunit_DATA += \ |
4771 | units/systemd-journal-gatewayd.socket | |
4772 | ||
4773 | nodist_systemunit_DATA += \ | |
4774 | units/systemd-journal-gatewayd.service | |
4775 | ||
4776 | dist_gatewayddocumentroot_DATA = \ | |
1e4e7b71 | 4777 | src/journal-remote/browse.html |
7b17a7d7 LP |
4778 | |
4779 | endif | |
4780 | ||
e4d1062c ZJS |
4781 | EXTRA_DIST += \ |
4782 | units/systemd-journal-gatewayd.service.in | |
4783 | ||
912b54ad DS |
4784 | # ------------------------------------------------------------------------------ |
4785 | ||
96c374d0 LP |
4786 | systemd_socket_proxyd_SOURCES = \ |
4787 | src/socket-proxy/socket-proxyd.c | |
912b54ad | 4788 | |
96c374d0 | 4789 | systemd_socket_proxyd_LDADD = \ |
912b54ad | 4790 | libsystemd-logs.la \ |
6bb648a1 | 4791 | libsystemd-internal.la \ |
912b54ad | 4792 | libsystemd-journal-internal.la \ |
fb69d709 LP |
4793 | libsystemd-shared.la \ |
4794 | libsystemd-resolve.la | |
912b54ad | 4795 | |
6185ac1e | 4796 | # ------------------------------------------------------------------------------ |
f5e04665 | 4797 | if ENABLE_COREDUMP |
f5e04665 | 4798 | systemd_coredump_SOURCES = \ |
0dc5d23c LP |
4799 | src/journal/coredump.c \ |
4800 | src/journal/coredump-vacuum.c \ | |
4801 | src/journal/coredump-vacuum.h | |
f5e04665 LP |
4802 | |
4803 | systemd_coredump_LDADD = \ | |
474abe33 | 4804 | libsystemd-journal-internal.la \ |
cc527a47 | 4805 | libsystemd-label.la \ |
2fa495c8 KS |
4806 | libsystemd-internal.la \ |
4807 | libsystemd-shared.la | |
ba1261bc | 4808 | |
8d4e028f LP |
4809 | if HAVE_ELFUTILS |
4810 | systemd_coredump_SOURCES += \ | |
4811 | src/journal/stacktrace.c \ | |
4812 | src/journal/stacktrace.h | |
4813 | ||
4814 | systemd_coredump_LDADD += \ | |
4815 | $(ELFUTILS_LIBS) | |
4816 | endif | |
4817 | ||
f5e04665 | 4818 | rootlibexec_PROGRAMS += \ |
6185ac1e | 4819 | systemd-coredump |
f5e04665 | 4820 | |
34c10968 LP |
4821 | dist_pkgsysconf_DATA += \ |
4822 | src/journal/coredump.conf | |
4823 | ||
4824 | if HAVE_ACL | |
4825 | systemd_coredump_LDADD += \ | |
4826 | libsystemd-acl.la | |
4827 | endif | |
4828 | ||
f4bab169 | 4829 | coredumpctl_SOURCES = \ |
d51167c6 MB |
4830 | src/journal/coredumpctl.c |
4831 | ||
f4bab169 | 4832 | coredumpctl_LDADD = \ |
6c17bf04 | 4833 | libsystemd-journal-internal.la \ |
be127913 | 4834 | libsystemd-internal.la \ |
48d7417d | 4835 | libsystemd-shared.la |
d51167c6 MB |
4836 | |
4837 | bin_PROGRAMS += \ | |
f4bab169 | 4838 | coredumpctl |
d51167c6 | 4839 | |
0dc5d23c LP |
4840 | manual_tests += \ |
4841 | test-coredump-vacuum | |
4842 | ||
4843 | test_coredump_vacuum_SOURCES = \ | |
4844 | src/journal/test-coredump-vacuum.c \ | |
4845 | src/journal/coredump-vacuum.c \ | |
4846 | src/journal/coredump-vacuum.h | |
4847 | ||
4848 | test_coredump_vacuum_LDADD = \ | |
4849 | libsystemd-internal.la \ | |
4850 | libsystemd-shared.la | |
4851 | ||
d51167c6 | 4852 | dist_bashcompletion_DATA += \ |
f4bab169 | 4853 | shell-completion/bash/coredumpctl |
d51167c6 | 4854 | |
70e104c4 | 4855 | dist_zshcompletion_DATA += \ |
f4bab169 | 4856 | shell-completion/zsh/_coredumpctl |
70e104c4 | 4857 | |
ae5b2a86 | 4858 | nodist_sysctl_DATA = \ |
94c525f0 | 4859 | sysctl.d/50-coredump.conf |
f5e04665 | 4860 | |
6185ac1e | 4861 | CLEANFILES += \ |
94c525f0 | 4862 | sysctl.d/50-coredump.conf |
f5e04665 LP |
4863 | endif |
4864 | ||
299031ca | 4865 | EXTRA_DIST += \ |
94c525f0 | 4866 | sysctl.d/50-coredump.conf.in |
299031ca | 4867 | |
48d437bb KS |
4868 | # ------------------------------------------------------------------------------ |
4869 | if ENABLE_BINFMT | |
4870 | systemd_binfmt_SOURCES = \ | |
4871 | src/binfmt/binfmt.c | |
4872 | ||
4873 | systemd_binfmt_LDADD = \ | |
49e942b2 | 4874 | libsystemd-shared.la |
3d20ed6d | 4875 | |
48d437bb KS |
4876 | rootlibexec_PROGRAMS += \ |
4877 | systemd-binfmt | |
d7ccca2e | 4878 | |
48d437bb KS |
4879 | dist_systemunit_DATA += \ |
4880 | units/proc-sys-fs-binfmt_misc.automount \ | |
4881 | units/proc-sys-fs-binfmt_misc.mount | |
d7ccca2e | 4882 | |
48d437bb KS |
4883 | nodist_systemunit_DATA += \ |
4884 | units/systemd-binfmt.service | |
d7ccca2e | 4885 | |
6ff39241 ZJS |
4886 | INSTALL_DIRS += \ |
4887 | $(prefix)/lib/binfmt.d \ | |
4888 | $(sysconfdir)/binfmt.d | |
8e1bd70d | 4889 | |
6ff39241 ZJS |
4890 | SYSINIT_TARGET_WANTS += \ |
4891 | systemd-binfmt.service \ | |
4892 | proc-sys-fs-binfmt_misc.automount | |
8e1bd70d | 4893 | |
299031ca | 4894 | endif |
8e1bd70d | 4895 | |
48d437bb KS |
4896 | EXTRA_DIST += \ |
4897 | units/systemd-binfmt.service.in | |
3d20ed6d | 4898 | |
e5e83e83 LP |
4899 | # ------------------------------------------------------------------------------ |
4900 | if ENABLE_VCONSOLE | |
4901 | systemd_vconsole_setup_SOURCES = \ | |
4902 | src/vconsole/vconsole-setup.c | |
4903 | ||
4904 | systemd_vconsole_setup_LDADD = \ | |
49e942b2 | 4905 | libsystemd-shared.la |
e5e83e83 LP |
4906 | |
4907 | rootlibexec_PROGRAMS += \ | |
4908 | systemd-vconsole-setup | |
4909 | ||
3b0ed75c | 4910 | nodist_udevrules_DATA += \ |
f6ba8671 RS |
4911 | src/vconsole/90-vconsole.rules |
4912 | ||
9e4ded30 ZJS |
4913 | nodist_systemunit_DATA += \ |
4914 | units/systemd-vconsole-setup.service | |
4915 | ||
6ff39241 ZJS |
4916 | SYSINIT_TARGET_WANTS += \ |
4917 | systemd-vconsole-setup.service | |
299031ca | 4918 | endif |
e5e83e83 LP |
4919 | |
4920 | EXTRA_DIST += \ | |
3b0ed75c | 4921 | src/vconsole/90-vconsole.rules.in \ |
e5e83e83 | 4922 | units/systemd-vconsole-setup.service.in |
e5e83e83 | 4923 | |
83fdc450 AK |
4924 | # ------------------------------------------------------------------------------ |
4925 | if ENABLE_BOOTCHART | |
4926 | systemd_bootchart_SOURCES = \ | |
4927 | src/bootchart/bootchart.c \ | |
4928 | src/bootchart/bootchart.h \ | |
e75dcf57 | 4929 | src/bootchart/store.c \ |
6d031c0b | 4930 | src/bootchart/store.h \ |
4afb5c73 ZJS |
4931 | src/bootchart/svg.c \ |
4932 | src/bootchart/svg.h | |
83fdc450 | 4933 | |
e985665d | 4934 | systemd_bootchart_LDADD = \ |
48d7417d KS |
4935 | libsystemd-journal-internal.la \ |
4936 | libsystemd-shared.la | |
e985665d | 4937 | |
83fdc450 AK |
4938 | rootlibexec_PROGRAMS += \ |
4939 | systemd-bootchart | |
5088d19f UTL |
4940 | |
4941 | dist_pkgsysconf_DATA += \ | |
4942 | src/bootchart/bootchart.conf | |
da64a1fc WC |
4943 | |
4944 | nodist_systemunit_DATA += \ | |
4945 | units/systemd-bootchart.service | |
4946 | ||
4947 | EXTRA_DIST += \ | |
4948 | units/systemd-bootchart.service.in | |
83fdc450 AK |
4949 | endif |
4950 | ||
4de85612 LP |
4951 | # ------------------------------------------------------------------------------ |
4952 | if ENABLE_QUOTACHECK | |
4953 | rootlibexec_PROGRAMS += \ | |
4954 | systemd-quotacheck | |
4955 | ||
4956 | nodist_systemunit_DATA += \ | |
93a1d735 | 4957 | units/systemd-quotacheck.service |
4de85612 | 4958 | |
4de85612 | 4959 | systemd_quotacheck_SOURCES = \ |
dce818b3 | 4960 | src/quotacheck/quotacheck.c |
4de85612 LP |
4961 | |
4962 | systemd_quotacheck_LDADD = \ | |
49e942b2 | 4963 | libsystemd-shared.la |
4de85612 LP |
4964 | endif |
4965 | ||
299031ca BK |
4966 | EXTRA_DIST += \ |
4967 | units/systemd-quotacheck.service.in | |
4968 | ||
b51fc639 DR |
4969 | nodist_systemunit_DATA += \ |
4970 | units/quotaon.service | |
4971 | ||
4de85612 LP |
4972 | # ------------------------------------------------------------------------------ |
4973 | if ENABLE_RANDOMSEED | |
4974 | rootlibexec_PROGRAMS += \ | |
4975 | systemd-random-seed | |
4976 | ||
4977 | nodist_systemunit_DATA += \ | |
c35b956d | 4978 | units/systemd-random-seed.service |
4de85612 | 4979 | |
4de85612 | 4980 | systemd_random_seed_SOURCES = \ |
dce818b3 | 4981 | src/random-seed/random-seed.c |
4de85612 LP |
4982 | |
4983 | systemd_random_seed_LDADD = \ | |
cc527a47 KS |
4984 | libsystemd-label.la \ |
4985 | libsystemd-shared.la | |
4de85612 | 4986 | |
6ff39241 | 4987 | SYSINIT_TARGET_WANTS += \ |
c35b956d | 4988 | systemd-random-seed.service |
edcf89be | 4989 | |
4de85612 LP |
4990 | endif |
4991 | ||
299031ca | 4992 | EXTRA_DIST += \ |
c35b956d | 4993 | units/systemd-random-seed.service.in |
299031ca | 4994 | |
3731acf1 LP |
4995 | # ------------------------------------------------------------------------------ |
4996 | if ENABLE_BACKLIGHT | |
4997 | rootlibexec_PROGRAMS += \ | |
4998 | systemd-backlight | |
4999 | ||
5000 | nodist_systemunit_DATA += \ | |
5001 | units/systemd-backlight@.service | |
5002 | ||
5003 | systemd_backlight_SOURCES = \ | |
5004 | src/backlight/backlight.c | |
5005 | ||
5006 | systemd_backlight_LDADD = \ | |
5007 | libsystemd-label.la \ | |
48d7417d | 5008 | libudev-internal.la \ |
f4ac4d1a | 5009 | libsystemd-internal.la \ |
48d7417d | 5010 | libsystemd-shared.la |
3731acf1 LP |
5011 | endif |
5012 | ||
5013 | EXTRA_DIST += \ | |
5014 | units/systemd-backlight@.service.in | |
5015 | ||
3990f247 LP |
5016 | # ------------------------------------------------------------------------------ |
5017 | if ENABLE_RFKILL | |
5018 | rootlibexec_PROGRAMS += \ | |
5019 | systemd-rfkill | |
5020 | ||
5021 | nodist_systemunit_DATA += \ | |
5022 | units/systemd-rfkill@.service | |
5023 | ||
5024 | systemd_rfkill_SOURCES = \ | |
5025 | src/rfkill/rfkill.c | |
5026 | ||
5027 | systemd_rfkill_LDADD = \ | |
5028 | libsystemd-label.la \ | |
48d7417d | 5029 | libudev-internal.la \ |
f4ac4d1a | 5030 | libsystemd-internal.la \ |
48d7417d | 5031 | libsystemd-shared.la |
3990f247 LP |
5032 | endif |
5033 | ||
5034 | EXTRA_DIST += \ | |
5035 | units/systemd-rfkill@.service.in | |
5036 | ||
b4d0195b LP |
5037 | # ------------------------------------------------------------------------------ |
5038 | if HAVE_LIBCRYPTSETUP | |
5039 | rootlibexec_PROGRAMS += \ | |
5040 | systemd-cryptsetup | |
5041 | ||
5042 | systemgenerator_PROGRAMS += \ | |
5043 | systemd-cryptsetup-generator | |
5044 | ||
5045 | dist_systemunit_DATA += \ | |
9542239e LP |
5046 | units/cryptsetup.target \ |
5047 | units/cryptsetup-pre.target | |
b4d0195b LP |
5048 | |
5049 | systemd_cryptsetup_SOURCES = \ | |
3bdf9c1d | 5050 | src/cryptsetup/cryptsetup.c |
b4d0195b LP |
5051 | |
5052 | systemd_cryptsetup_CFLAGS = \ | |
5053 | $(AM_CFLAGS) \ | |
3e214785 | 5054 | $(LIBCRYPTSETUP_CFLAGS) |
b4d0195b LP |
5055 | |
5056 | systemd_cryptsetup_LDADD = \ | |
cc527a47 | 5057 | libsystemd-label.la \ |
48d7417d | 5058 | libudev-internal.la \ |
f4ac4d1a | 5059 | libsystemd-internal.la \ |
cc527a47 | 5060 | libsystemd-shared.la \ |
49e942b2 | 5061 | $(LIBCRYPTSETUP_LIBS) |
b4d0195b LP |
5062 | |
5063 | systemd_cryptsetup_generator_SOURCES = \ | |
f33d3ec1 | 5064 | src/cryptsetup/cryptsetup-generator.c |
b4d0195b LP |
5065 | |
5066 | systemd_cryptsetup_generator_LDADD = \ | |
cc527a47 KS |
5067 | libsystemd-label.la \ |
5068 | libsystemd-shared.la | |
b4d0195b | 5069 | |
6ff39241 ZJS |
5070 | SYSINIT_TARGET_WANTS += \ |
5071 | cryptsetup.target | |
d0d6944c | 5072 | |
b4d0195b LP |
5073 | endif |
5074 | ||
48d437bb KS |
5075 | # ------------------------------------------------------------------------------ |
5076 | if ENABLE_HOSTNAMED | |
5077 | systemd_hostnamed_SOURCES = \ | |
3bdf9c1d | 5078 | src/hostname/hostnamed.c |
48d437bb | 5079 | |
48d437bb | 5080 | systemd_hostnamed_LDADD = \ |
a5c32cff | 5081 | libsystemd-label.la \ |
6bb648a1 | 5082 | libsystemd-internal.la \ |
d9f644e2 | 5083 | libsystemd-shared.la |
3d20ed6d | 5084 | |
48d437bb KS |
5085 | rootlibexec_PROGRAMS += \ |
5086 | systemd-hostnamed | |
3d20ed6d | 5087 | |
48d437bb KS |
5088 | nodist_systemunit_DATA += \ |
5089 | units/systemd-hostnamed.service | |
e9278741 | 5090 | |
36e46fe9 | 5091 | dist_systemunit_DATA_busnames += \ |
cde360cd LP |
5092 | units/org.freedesktop.hostname1.busname |
5093 | ||
48d437bb KS |
5094 | dist_dbuspolicy_DATA += \ |
5095 | src/hostname/org.freedesktop.hostname1.conf | |
e9ddabc2 | 5096 | |
48d437bb KS |
5097 | dist_dbussystemservice_DATA += \ |
5098 | src/hostname/org.freedesktop.hostname1.service | |
e9ddabc2 | 5099 | |
299031ca BK |
5100 | polkitpolicy_files += \ |
5101 | src/hostname/org.freedesktop.hostname1.policy | |
e9ddabc2 | 5102 | |
91e8651b ZJS |
5103 | SYSTEM_UNIT_ALIASES += \ |
5104 | systemd-hostnamed.service dbus-org.freedesktop.hostname1.service | |
48d437bb | 5105 | |
cde360cd LP |
5106 | BUSNAMES_TARGET_WANTS += \ |
5107 | org.freedesktop.hostname1.busname | |
5108 | ||
dbc4fbae LP |
5109 | hostnamectl_SOURCES = \ |
5110 | src/hostname/hostnamectl.c | |
5111 | ||
dbc4fbae | 5112 | hostnamectl_LDADD = \ |
6bb648a1 | 5113 | libsystemd-internal.la \ |
d9f644e2 | 5114 | libsystemd-shared.la |
dbc4fbae LP |
5115 | |
5116 | bin_PROGRAMS += \ | |
5117 | hostnamectl | |
5118 | ||
d611dadc MB |
5119 | dist_bashcompletion_DATA += \ |
5120 | shell-completion/bash/hostnamectl | |
5121 | ||
db456cd0 WG |
5122 | dist_zshcompletion_DATA += \ |
5123 | shell-completion/zsh/_hostnamectl | |
5124 | ||
299031ca BK |
5125 | endif |
5126 | ||
cd49e2f6 LP |
5127 | polkitpolicy_in_files += \ |
5128 | src/hostname/org.freedesktop.hostname1.policy.in | |
5129 | ||
5130 | EXTRA_DIST += \ | |
5131 | units/systemd-hostnamed.service.in | |
5132 | ||
5133 | # ------------------------------------------------------------------------------ | |
36e46fe9 | 5134 | dist_systemunit_DATA_busnames += \ |
5892a914 | 5135 | units/org.freedesktop.systemd1.busname |
15e91323 LP |
5136 | |
5137 | BUSNAMES_TARGET_WANTS += \ | |
5892a914 | 5138 | org.freedesktop.systemd1.busname |
294c8660 | 5139 | |
48d437bb KS |
5140 | # ------------------------------------------------------------------------------ |
5141 | if ENABLE_LOCALED | |
5142 | systemd_localed_SOURCES = \ | |
3bdf9c1d | 5143 | src/locale/localed.c |
48d437bb | 5144 | |
48d437bb | 5145 | systemd_localed_LDADD = \ |
cc527a47 | 5146 | libsystemd-label.la \ |
6bb648a1 | 5147 | libsystemd-internal.la \ |
d4f5a1f4 DH |
5148 | libsystemd-shared.la \ |
5149 | $(XKBCOMMON_LIBS) | |
5150 | ||
5151 | systemd_localed_CFLAGS = \ | |
5152 | $(AM_CFLAGS) \ | |
5153 | $(XKBCOMMON_CFLAGS) | |
07faed4f | 5154 | |
48d437bb KS |
5155 | nodist_systemunit_DATA += \ |
5156 | units/systemd-localed.service | |
07faed4f | 5157 | |
36e46fe9 | 5158 | dist_systemunit_DATA_busnames += \ |
cde360cd LP |
5159 | units/org.freedesktop.locale1.busname |
5160 | ||
48d437bb KS |
5161 | rootlibexec_PROGRAMS += \ |
5162 | systemd-localed | |
07faed4f | 5163 | |
48d437bb KS |
5164 | dist_dbuspolicy_DATA += \ |
5165 | src/locale/org.freedesktop.locale1.conf | |
e23a0ce8 | 5166 | |
48d437bb KS |
5167 | dist_dbussystemservice_DATA += \ |
5168 | src/locale/org.freedesktop.locale1.service | |
e23a0ce8 | 5169 | |
299031ca BK |
5170 | polkitpolicy_files += \ |
5171 | src/locale/org.freedesktop.locale1.policy | |
e23a0ce8 | 5172 | |
91e8651b ZJS |
5173 | SYSTEM_UNIT_ALIASES += \ |
5174 | systemd-localed.service dbus-org.freedesktop.locale1.service | |
2a796654 | 5175 | |
cde360cd LP |
5176 | BUSNAMES_TARGET_WANTS += \ |
5177 | org.freedesktop.locale1.busname | |
5178 | ||
ac7019f3 | 5179 | dist_pkgdata_DATA += \ |
4e829d21 ZJS |
5180 | src/locale/kbd-model-map \ |
5181 | src/locale/language-fallback-map | |
776a564f | 5182 | |
2087a7af LP |
5183 | localectl_SOURCES = \ |
5184 | src/locale/localectl.c | |
5185 | ||
2087a7af | 5186 | localectl_LDADD = \ |
6bb648a1 | 5187 | libsystemd-internal.la \ |
d9f644e2 | 5188 | libsystemd-shared.la |
2087a7af LP |
5189 | |
5190 | bin_PROGRAMS += \ | |
5191 | localectl | |
5192 | ||
d611dadc MB |
5193 | dist_bashcompletion_DATA += \ |
5194 | shell-completion/bash/localectl | |
5195 | ||
c4c12f13 WG |
5196 | dist_zshcompletion_DATA += \ |
5197 | shell-completion/zsh/_localectl | |
5198 | ||
48d437bb | 5199 | endif |
2a796654 | 5200 | |
9f700755 ZJS |
5201 | .PHONY: update-kbd-model-map |
5202 | ||
299031ca BK |
5203 | polkitpolicy_in_files += \ |
5204 | src/locale/org.freedesktop.locale1.policy.in | |
5205 | ||
5206 | EXTRA_DIST += \ | |
5207 | units/systemd-localed.service.in | |
5208 | ||
48d437bb KS |
5209 | # ------------------------------------------------------------------------------ |
5210 | if ENABLE_TIMEDATED | |
5211 | systemd_timedated_SOURCES = \ | |
3bdf9c1d | 5212 | src/timedate/timedated.c |
2a796654 | 5213 | |
48d437bb | 5214 | systemd_timedated_LDADD = \ |
687ed123 KS |
5215 | libsystemd-label.la \ |
5216 | libsystemd-internal.la \ | |
5217 | libsystemd-shared.la | |
15673083 | 5218 | |
48d437bb KS |
5219 | rootlibexec_PROGRAMS += \ |
5220 | systemd-timedated | |
15673083 | 5221 | |
48d437bb KS |
5222 | dist_dbussystemservice_DATA += \ |
5223 | src/timedate/org.freedesktop.timedate1.service | |
e9278741 | 5224 | |
48d437bb KS |
5225 | dist_dbuspolicy_DATA += \ |
5226 | src/timedate/org.freedesktop.timedate1.conf | |
e9278741 | 5227 | |
48d437bb KS |
5228 | nodist_systemunit_DATA += \ |
5229 | units/systemd-timedated.service | |
b2423f1f | 5230 | |
36e46fe9 | 5231 | dist_systemunit_DATA_busnames += \ |
cde360cd LP |
5232 | units/org.freedesktop.timedate1.busname |
5233 | ||
299031ca BK |
5234 | polkitpolicy_files += \ |
5235 | src/timedate/org.freedesktop.timedate1.policy | |
97c4a07d | 5236 | |
91e8651b ZJS |
5237 | SYSTEM_UNIT_ALIASES += \ |
5238 | systemd-timedated.service dbus-org.freedesktop.timedate1.service | |
449ddb2d | 5239 | |
cde360cd LP |
5240 | BUSNAMES_TARGET_WANTS += \ |
5241 | org.freedesktop.timedate1.busname | |
5242 | ||
6d0274f1 LP |
5243 | timedatectl_SOURCES = \ |
5244 | src/timedate/timedatectl.c | |
5245 | ||
6d0274f1 | 5246 | timedatectl_LDADD = \ |
6bb648a1 | 5247 | libsystemd-internal.la \ |
d9f644e2 | 5248 | libsystemd-shared.la |
6d0274f1 LP |
5249 | |
5250 | bin_PROGRAMS += \ | |
5251 | timedatectl | |
d611dadc MB |
5252 | |
5253 | dist_bashcompletion_DATA += \ | |
5254 | shell-completion/bash/timedatectl | |
20c8382b WG |
5255 | |
5256 | dist_zshcompletion_DATA += \ | |
5257 | shell-completion/zsh/_timedatectl | |
299031ca BK |
5258 | endif |
5259 | ||
5260 | polkitpolicy_in_files += \ | |
5261 | src/timedate/org.freedesktop.timedate1.policy.in | |
83620960 | 5262 | |
48d437bb KS |
5263 | EXTRA_DIST += \ |
5264 | units/systemd-timedated.service.in | |
449ddb2d | 5265 | |
4caf4ac1 | 5266 | # ------------------------------------------------------------------------------ |
687ed123 KS |
5267 | if ENABLE_TIMESYNCD |
5268 | systemd_timesyncd_SOURCES = \ | |
e8af6973 | 5269 | src/timesync/timesyncd.c \ |
84e51726 LP |
5270 | src/timesync/timesyncd-manager.c \ |
5271 | src/timesync/timesyncd-manager.h \ | |
5272 | src/timesync/timesyncd-conf.c \ | |
5273 | src/timesync/timesyncd-conf.h \ | |
5274 | src/timesync/timesyncd-server.c \ | |
5275 | src/timesync/timesyncd-server.h | |
e8af6973 LP |
5276 | |
5277 | nodist_systemd_timesyncd_SOURCES = \ | |
5278 | src/timesync/timesyncd-gperf.c | |
5279 | ||
9e4ded30 | 5280 | gperf_gperf_sources += \ |
e8af6973 LP |
5281 | src/timesync/timesyncd-gperf.gperf |
5282 | ||
687ed123 | 5283 | systemd_timesyncd_LDADD = \ |
856a5a7d | 5284 | libsystemd-resolve.la \ |
e0e5ce23 | 5285 | libsystemd-network.la \ |
ffcf82d2 | 5286 | libsystemd-label.la \ |
ffcf82d2 | 5287 | libsystemd-internal.la \ |
1325ec42 | 5288 | libsystemd-shared.la |
687ed123 | 5289 | |
a91df40e | 5290 | rootlibexec_PROGRAMS += \ |
687ed123 | 5291 | systemd-timesyncd |
a91df40e KS |
5292 | |
5293 | nodist_systemunit_DATA += \ | |
5294 | units/systemd-timesyncd.service | |
5295 | ||
32104125 | 5296 | GENERAL_ALIASES += \ |
e9b11a84 | 5297 | $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service |
32104125 | 5298 | |
a91df40e KS |
5299 | EXTRA_DIST += \ |
5300 | units/systemd-timesyncd.service.in | |
e8af6973 LP |
5301 | |
5302 | nodist_pkgsysconf_DATA += \ | |
5303 | src/timesync/timesyncd.conf | |
5304 | ||
5305 | EXTRA_DIST += \ | |
5306 | src/timesync/timesyncd.conf.in | |
687ed123 KS |
5307 | endif |
5308 | ||
5309 | # ------------------------------------------------------------------------------ | |
4caf4ac1 KS |
5310 | if HAVE_MYHOSTNAME |
5311 | libnss_myhostname_la_SOURCES = \ | |
947127ff | 5312 | src/nss-myhostname/nss-myhostname.sym \ |
e80af1bd | 5313 | src/nss-myhostname/nss-myhostname.c |
4caf4ac1 | 5314 | |
4caf4ac1 KS |
5315 | libnss_myhostname_la_LDFLAGS = \ |
5316 | $(AM_LDFLAGS) \ | |
5317 | -module \ | |
5318 | -export-dynamic \ | |
5319 | -avoid-version \ | |
5320 | -shared \ | |
947127ff LP |
5321 | -shrext .so.2 \ |
5322 | -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym | |
4caf4ac1 | 5323 | |
d1ca51b1 TG |
5324 | libnss_myhostname_la_LIBADD = \ |
5325 | libsystemd-shared.la \ | |
5326 | libsystemd-internal.la | |
5327 | ||
4caf4ac1 KS |
5328 | lib_LTLIBRARIES += \ |
5329 | libnss_myhostname.la | |
4caf4ac1 KS |
5330 | endif |
5331 | ||
1ee306e1 LP |
5332 | # ------------------------------------------------------------------------------ |
5333 | if ENABLE_MACHINED | |
5334 | systemd_machined_SOURCES = \ | |
5335 | src/machine/machined.c \ | |
a8b409db ZJS |
5336 | src/machine/machined.h |
5337 | ||
a8b409db | 5338 | systemd_machined_LDADD = \ |
48d7417d | 5339 | libsystemd-machine-core.la |
a8b409db ZJS |
5340 | |
5341 | rootlibexec_PROGRAMS += \ | |
5342 | systemd-machined | |
5343 | ||
5344 | libsystemd_machine_core_la_SOURCES = \ | |
1ee306e1 LP |
5345 | src/machine/machine.c \ |
5346 | src/machine/machine.h \ | |
cd61c3bf | 5347 | src/machine/machined-dbus.c \ |
ebeccf9e | 5348 | src/machine/machine-dbus.c \ |
69c4e277 | 5349 | src/machine/machine-dbus.h \ |
003dffde LP |
5350 | src/machine/image-dbus.c \ |
5351 | src/machine/image-dbus.h | |
1ee306e1 | 5352 | |
a8b409db | 5353 | libsystemd_machine_core_la_LIBADD = \ |
1ee306e1 | 5354 | libsystemd-label.la \ |
48d7417d | 5355 | libudev-internal.la \ |
f4ac4d1a | 5356 | libsystemd-internal.la \ |
48d7417d | 5357 | libsystemd-shared.la |
1ee306e1 | 5358 | |
a8b409db ZJS |
5359 | noinst_LTLIBRARIES += \ |
5360 | libsystemd-machine-core.la | |
1ee306e1 LP |
5361 | |
5362 | machinectl_SOURCES = \ | |
5363 | src/machine/machinectl.c | |
5364 | ||
1ee306e1 | 5365 | machinectl_LDADD = \ |
6bb648a1 | 5366 | libsystemd-internal.la \ |
8b0cc9a3 LP |
5367 | libsystemd-logs.la \ |
5368 | libsystemd-journal-internal.la \ | |
57ab2eab | 5369 | libsystemd-units.la \ |
d9f644e2 | 5370 | libsystemd-shared.la |
1ee306e1 LP |
5371 | |
5372 | rootbin_PROGRAMS += \ | |
5373 | machinectl | |
5374 | ||
e56056e9 TA |
5375 | dist_bashcompletion_DATA += \ |
5376 | shell-completion/bash/machinectl | |
5377 | ||
a8b409db ZJS |
5378 | test_machine_tables_SOURCES = \ |
5379 | src/machine/test-machine-tables.c | |
5380 | ||
a8b409db ZJS |
5381 | test_machine_tables_LDADD = \ |
5382 | libsystemd-machine-core.la | |
5383 | ||
5384 | tests += \ | |
5385 | test-machine-tables | |
5386 | ||
1ee306e1 LP |
5387 | nodist_systemunit_DATA += \ |
5388 | units/systemd-machined.service | |
5389 | ||
5390 | dist_systemunit_DATA += \ | |
36e46fe9 MB |
5391 | units/machine.slice |
5392 | ||
5393 | dist_systemunit_DATA_busnames += \ | |
cde360cd | 5394 | units/org.freedesktop.machine1.busname |
1ee306e1 LP |
5395 | |
5396 | dist_dbussystemservice_DATA += \ | |
5397 | src/machine/org.freedesktop.machine1.service | |
5398 | ||
5399 | dist_dbuspolicy_DATA += \ | |
5400 | src/machine/org.freedesktop.machine1.conf | |
5401 | ||
d04c1fb8 LP |
5402 | polkitpolicy_files += \ |
5403 | src/machine/org.freedesktop.machine1.policy | |
5404 | ||
5405 | polkitpolicy_in_files += \ | |
5406 | src/machine/org.freedesktop.machine1.policy.in | |
5407 | ||
439b7ce8 | 5408 | dist_zshcompletion_DATA += \ |
d895500c WH |
5409 | shell-completion/zsh/_machinectl \ |
5410 | shell-completion/zsh/_sd_machines | |
439b7ce8 | 5411 | |
1ee306e1 LP |
5412 | SYSTEM_UNIT_ALIASES += \ |
5413 | systemd-machined.service dbus-org.freedesktop.machine1.service | |
5414 | ||
cde360cd LP |
5415 | BUSNAMES_TARGET_WANTS += \ |
5416 | org.freedesktop.machine1.busname | |
5417 | ||
1ee306e1 | 5418 | EXTRA_DIST += \ |
19fbd625 | 5419 | units/systemd-machined.service.in |
1ee306e1 | 5420 | |
cabb0bc6 LP |
5421 | libnss_mymachines_la_SOURCES = \ |
5422 | src/nss-mymachines/nss-mymachines.sym \ | |
5423 | src/nss-mymachines/nss-mymachines.c | |
5424 | ||
5425 | libnss_mymachines_la_LDFLAGS = \ | |
5426 | $(AM_LDFLAGS) \ | |
5427 | -module \ | |
5428 | -export-dynamic \ | |
5429 | -avoid-version \ | |
5430 | -shared \ | |
5431 | -shrext .so.2 \ | |
5432 | -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym | |
5433 | ||
5434 | libnss_mymachines_la_LIBADD = \ | |
5435 | libsystemd-shared.la \ | |
5436 | libsystemd-internal.la | |
5437 | ||
5438 | lib_LTLIBRARIES += \ | |
5439 | libnss_mymachines.la | |
72648326 | 5440 | |
3d7415f4 LP |
5441 | endif |
5442 | ||
5443 | # ------------------------------------------------------------------------------ | |
5444 | if ENABLE_IMPORTD | |
5445 | ||
72648326 | 5446 | if HAVE_LIBCURL |
85dbc41d LP |
5447 | if HAVE_XZ |
5448 | if HAVE_ZLIB | |
8af3cf74 | 5449 | if HAVE_BZIP2 |
85dbc41d | 5450 | if HAVE_GCRYPT |
72648326 | 5451 | |
3d7415f4 LP |
5452 | rootlibexec_PROGRAMS += \ |
5453 | systemd-importd \ | |
b6e676ce | 5454 | systemd-pull \ |
587fec42 LP |
5455 | systemd-import \ |
5456 | systemd-export | |
72648326 | 5457 | |
3d7415f4 | 5458 | systemd_importd_SOURCES = \ |
ff828763 | 5459 | src/import/importd.c |
3d7415f4 LP |
5460 | |
5461 | systemd_importd_CFLAGS = \ | |
5462 | $(AM_CFLAGS) \ | |
b6e676ce | 5463 | -D SYSTEMD_PULL_PATH=\"$(rootlibexecdir)/systemd-pull\" \ |
587fec42 LP |
5464 | -D SYSTEMD_IMPORT_PATH=\"$(rootlibexecdir)/systemd-import\" \ |
5465 | -D SYSTEMD_EXPORT_PATH=\"$(rootlibexecdir)/systemd-export\" | |
3d7415f4 LP |
5466 | |
5467 | systemd_importd_LDADD = \ | |
5468 | libsystemd-internal.la \ | |
7079cfef | 5469 | libsystemd-label.la \ |
3d7415f4 LP |
5470 | libsystemd-shared.la |
5471 | ||
ff828763 LP |
5472 | systemd_pull_SOURCES = \ |
5473 | src/import/pull.c \ | |
dc2c282b LP |
5474 | src/import/pull-raw.c \ |
5475 | src/import/pull-raw.h \ | |
5476 | src/import/pull-tar.c \ | |
5477 | src/import/pull-tar.h \ | |
5478 | src/import/pull-dkr.c \ | |
5479 | src/import/pull-dkr.h \ | |
5480 | src/import/pull-job.c \ | |
5481 | src/import/pull-job.h \ | |
5482 | src/import/pull-common.c \ | |
5483 | src/import/pull-common.h \ | |
b6e676ce LP |
5484 | src/import/import-common.c \ |
5485 | src/import/import-common.h \ | |
3e2cda69 LP |
5486 | src/import/import-compress.c \ |
5487 | src/import/import-compress.h \ | |
72648326 LP |
5488 | src/import/curl-util.c \ |
5489 | src/import/curl-util.h \ | |
5490 | src/import/aufs-util.c \ | |
edce2aed LP |
5491 | src/import/aufs-util.h \ |
5492 | src/import/qcow2-util.c \ | |
5493 | src/import/qcow2-util.h | |
72648326 | 5494 | |
ff828763 | 5495 | systemd_pull_CFLAGS = \ |
72648326 | 5496 | $(AM_CFLAGS) \ |
49bb233b | 5497 | $(LIBCURL_CFLAGS) \ |
edce2aed | 5498 | $(XZ_CFLAGS) \ |
85dbc41d | 5499 | $(ZLIB_CFLAGS) \ |
3576d631 LP |
5500 | $(GCRYPT_CFLAGS) \ |
5501 | -D VENDOR_KEYRING_PATH=\"$(rootlibexecdir)/import-pubring.gpg\" \ | |
5502 | -D USER_KEYRING_PATH=\"$(pkgsysconfdir)/import-pubring.gpg\" | |
72648326 | 5503 | |
ff828763 | 5504 | systemd_pull_LDADD = \ |
1325ec42 | 5505 | libsystemd-label.la \ |
58a26e12 | 5506 | libsystemd-internal.la \ |
72648326 | 5507 | libsystemd-shared.la \ |
49bb233b | 5508 | $(LIBCURL_LIBS) \ |
edce2aed | 5509 | $(XZ_LIBS) \ |
85dbc41d | 5510 | $(ZLIB_LIBS) \ |
8af3cf74 | 5511 | -lbz2 \ |
85dbc41d | 5512 | $(GCRYPT_LIBS) |
edce2aed | 5513 | |
b6e676ce LP |
5514 | systemd_import_SOURCES = \ |
5515 | src/import/import.c \ | |
5516 | src/import/import-raw.c \ | |
5517 | src/import/import-raw.h \ | |
5518 | src/import/import-tar.c \ | |
5519 | src/import/import-tar.h \ | |
5520 | src/import/import-common.c \ | |
5521 | src/import/import-common.h \ | |
5522 | src/import/import-compress.c \ | |
5523 | src/import/import-compress.h \ | |
5524 | src/import/qcow2-util.c \ | |
5525 | src/import/qcow2-util.h | |
5526 | ||
5527 | systemd_import_CFLAGS = \ | |
5528 | $(AM_CFLAGS) \ | |
5529 | $(XZ_CFLAGS) \ | |
5530 | $(ZLIB_CFLAGS) | |
5531 | ||
5532 | systemd_import_LDADD = \ | |
b6e676ce | 5533 | libsystemd-label.la \ |
58a26e12 | 5534 | libsystemd-internal.la \ |
b6e676ce LP |
5535 | libsystemd-shared.la \ |
5536 | $(XZ_LIBS) \ | |
5537 | $(ZLIB_LIBS) \ | |
5538 | -lbz2 | |
5539 | ||
587fec42 LP |
5540 | systemd_export_SOURCES = \ |
5541 | src/import/export.c \ | |
5542 | src/import/export-tar.c \ | |
5543 | src/import/export-tar.h \ | |
5544 | src/import/export-raw.c \ | |
5545 | src/import/export-raw.h \ | |
5546 | src/import/import-common.c \ | |
5547 | src/import/import-common.h \ | |
5548 | src/import/import-compress.c \ | |
5549 | src/import/import-compress.h | |
5550 | ||
5551 | systemd_export_CFLAGS = \ | |
5552 | $(AM_CFLAGS) \ | |
5553 | $(XZ_CFLAGS) \ | |
5554 | $(ZLIB_CFLAGS) | |
5555 | ||
5556 | systemd_export_LDADD = \ | |
587fec42 | 5557 | libsystemd-label.la \ |
58a26e12 | 5558 | libsystemd-internal.la \ |
587fec42 LP |
5559 | libsystemd-shared.la \ |
5560 | $(XZ_LIBS) \ | |
5561 | $(ZLIB_LIBS) \ | |
5562 | -lbz2 | |
5563 | ||
3d7415f4 LP |
5564 | dist_rootlibexec_DATA = \ |
5565 | src/import/import-pubring.gpg | |
5566 | ||
5567 | nodist_systemunit_DATA += \ | |
5568 | units/systemd-importd.service | |
5569 | ||
5570 | EXTRA_DIST += \ | |
5571 | units/systemd-importd.service.in | |
5572 | ||
5573 | dist_systemunit_DATA_busnames += \ | |
5574 | units/org.freedesktop.import1.busname | |
5575 | ||
5576 | BUSNAMES_TARGET_WANTS += \ | |
5577 | org.freedesktop.import1.busname | |
5578 | ||
5579 | SYSTEM_UNIT_ALIASES += \ | |
5580 | systemd-importd.service dbus-org.freedesktop.import1.service | |
5581 | ||
5582 | dist_dbussystemservice_DATA += \ | |
5583 | src/import/org.freedesktop.import1.service | |
5584 | ||
5585 | dist_dbuspolicy_DATA += \ | |
5586 | src/import/org.freedesktop.import1.conf | |
5587 | ||
5588 | polkitpolicy_files += \ | |
5589 | src/import/org.freedesktop.import1.policy | |
5590 | ||
5591 | polkitpolicy_in_files += \ | |
5592 | src/import/org.freedesktop.import1.policy.in | |
5593 | ||
edce2aed LP |
5594 | manual_tests += \ |
5595 | test-qcow2 | |
5596 | ||
5597 | test_qcow2_SOURCES = \ | |
5598 | src/import/test-qcow2.c \ | |
5599 | src/import/qcow2-util.c \ | |
5600 | src/import/qcow2-util.h | |
5601 | ||
5602 | test_qcow2_CFLAGS = \ | |
5603 | $(AM_CFLAGS) \ | |
5604 | $(ZLIB_CFLAGS) | |
5605 | ||
5606 | test_qcow2_LDADD = \ | |
5607 | libsystemd-internal.la \ | |
1c7dd825 | 5608 | libsystemd-label.la \ |
edce2aed LP |
5609 | libsystemd-shared.la \ |
5610 | $(ZLIB_LIBS) | |
3576d631 | 5611 | |
72648326 | 5612 | endif |
85dbc41d LP |
5613 | endif |
5614 | endif | |
5615 | endif | |
8af3cf74 | 5616 | endif |
72648326 | 5617 | |
1ee306e1 LP |
5618 | endif |
5619 | ||
091a364c TG |
5620 | # ------------------------------------------------------------------------------ |
5621 | if ENABLE_RESOLVED | |
5622 | systemd_resolved_SOURCES = \ | |
091a364c | 5623 | src/resolve/resolved.c \ |
74b2466e | 5624 | src/resolve/resolved-manager.c \ |
39d8db04 | 5625 | src/resolve/resolved-manager.h \ |
4e945a6f LP |
5626 | src/resolve/resolved-conf.c \ |
5627 | src/resolve/resolved-conf.h \ | |
74b2466e | 5628 | src/resolve/resolved-bus.c \ |
39d8db04 | 5629 | src/resolve/resolved-bus.h \ |
74b2466e LP |
5630 | src/resolve/resolved-link.h \ |
5631 | src/resolve/resolved-link.c \ | |
51323288 | 5632 | src/resolve/resolved-def.h \ |
74b2466e LP |
5633 | src/resolve/resolved-dns-domain.h \ |
5634 | src/resolve/resolved-dns-domain.c \ | |
faa133f3 LP |
5635 | src/resolve/resolved-dns-rr.h \ |
5636 | src/resolve/resolved-dns-rr.c \ | |
5637 | src/resolve/resolved-dns-question.h \ | |
5638 | src/resolve/resolved-dns-question.c \ | |
5639 | src/resolve/resolved-dns-answer.h \ | |
5640 | src/resolve/resolved-dns-answer.c \ | |
74b2466e LP |
5641 | src/resolve/resolved-dns-packet.h \ |
5642 | src/resolve/resolved-dns-packet.c \ | |
5643 | src/resolve/resolved-dns-query.h \ | |
5644 | src/resolve/resolved-dns-query.c \ | |
ec2c5e43 LP |
5645 | src/resolve/resolved-dns-transaction.h \ |
5646 | src/resolve/resolved-dns-transaction.c \ | |
74b2466e LP |
5647 | src/resolve/resolved-dns-scope.h \ |
5648 | src/resolve/resolved-dns-scope.c \ | |
5649 | src/resolve/resolved-dns-server.h \ | |
5650 | src/resolve/resolved-dns-server.c \ | |
322345fd | 5651 | src/resolve/resolved-dns-cache.h \ |
623a4c97 LP |
5652 | src/resolve/resolved-dns-cache.c \ |
5653 | src/resolve/resolved-dns-zone.h \ | |
5654 | src/resolve/resolved-dns-zone.c \ | |
5655 | src/resolve/resolved-dns-stream.h \ | |
7263f724 ZJS |
5656 | src/resolve/resolved-dns-stream.c \ |
5657 | src/resolve/dns-type.c \ | |
5658 | src/resolve/dns-type.h \ | |
5659 | src/resolve/dns_type-from-name.h \ | |
5660 | src/resolve/dns_type-to-name.h | |
f884afb2 | 5661 | |
091a364c TG |
5662 | nodist_systemd_resolved_SOURCES = \ |
5663 | src/resolve/resolved-gperf.c | |
5664 | ||
9e4ded30 ZJS |
5665 | gperf_gperf_sources += \ |
5666 | src/resolve/resolved-gperf.gperf | |
091a364c | 5667 | |
9e4ded30 ZJS |
5668 | gperf_txt_sources += \ |
5669 | src/resolve/dns_type-list.txt | |
091a364c TG |
5670 | |
5671 | systemd_resolved_LDADD = \ | |
ffcf82d2 | 5672 | libsystemd-network.la \ |
091a364c TG |
5673 | libsystemd-label.la \ |
5674 | libsystemd-internal.la \ | |
0dae31d4 | 5675 | libsystemd-shared.la \ |
bdf10b5b | 5676 | $(LIBIDN_LIBS) |
091a364c TG |
5677 | |
5678 | rootlibexec_PROGRAMS += \ | |
5679 | systemd-resolved | |
5680 | ||
5681 | nodist_systemunit_DATA += \ | |
5682 | units/systemd-resolved.service | |
5683 | ||
36e46fe9 | 5684 | dist_systemunit_DATA_busnames += \ |
b7e6c03d KS |
5685 | units/org.freedesktop.resolve1.busname |
5686 | ||
18641cb1 KS |
5687 | dist_dbuspolicy_DATA += \ |
5688 | src/resolve/org.freedesktop.resolve1.conf | |
5689 | ||
5690 | dist_dbussystemservice_DATA += \ | |
5691 | src/resolve/org.freedesktop.resolve1.service | |
5692 | ||
091a364c | 5693 | EXTRA_DIST += \ |
defa8e67 | 5694 | units/systemd-resolved.service.m4.in |
091a364c | 5695 | |
b7e6c03d KS |
5696 | SYSTEM_UNIT_ALIASES += \ |
5697 | systemd-resolved.service dbus-org.freedesktop.resolve1.service | |
5698 | ||
5699 | BUSNAMES_TARGET_WANTS += \ | |
5700 | org.freedesktop.resolve1.busname | |
5701 | ||
091a364c TG |
5702 | GENERAL_ALIASES += \ |
5703 | $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service | |
5704 | ||
5705 | nodist_pkgsysconf_DATA += \ | |
5706 | src/resolve/resolved.conf | |
5707 | ||
5708 | EXTRA_DIST += \ | |
5709 | src/resolve/resolved.conf.in | |
5710 | ||
74b2466e LP |
5711 | tests += \ |
5712 | test-dns-domain | |
5713 | ||
5714 | test_dns_domain_SOURCES = \ | |
5715 | src/resolve/resolved-dns-domain.h \ | |
5716 | src/resolve/resolved-dns-domain.c \ | |
5717 | src/resolve/test-dns-domain.c | |
5718 | ||
5719 | test_dns_domain_LDADD = \ | |
74b2466e LP |
5720 | libsystemd-network.la \ |
5721 | libsystemd-label.la \ | |
5722 | libsystemd-internal.la \ | |
bdf10b5b LP |
5723 | libsystemd-shared.la \ |
5724 | $(LIBIDN_LIBS) | |
74b2466e | 5725 | |
4d1cf1e2 LP |
5726 | libnss_resolve_la_SOURCES = \ |
5727 | src/nss-resolve/nss-resolve.sym \ | |
5728 | src/nss-resolve/nss-resolve.c | |
5729 | ||
5730 | libnss_resolve_la_LDFLAGS = \ | |
5731 | $(AM_LDFLAGS) \ | |
5732 | -module \ | |
5733 | -export-dynamic \ | |
5734 | -avoid-version \ | |
5735 | -shared \ | |
5736 | -shrext .so.2 \ | |
5737 | -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym | |
5738 | ||
5739 | libnss_resolve_la_LIBADD = \ | |
1325ec42 KS |
5740 | libsystemd-internal.la \ |
5741 | libsystemd-shared.la | |
4d1cf1e2 LP |
5742 | |
5743 | lib_LTLIBRARIES += \ | |
5744 | libnss_resolve.la | |
5745 | ||
bdef7319 | 5746 | systemd_resolve_host_SOURCES = \ |
2d4c5cbc LP |
5747 | src/resolve-host/resolve-host.c \ |
5748 | src/resolve/resolved-dns-packet.c \ | |
5749 | src/resolve/resolved-dns-packet.h \ | |
5750 | src/resolve/resolved-dns-rr.c \ | |
5751 | src/resolve/resolved-dns-rr.h \ | |
5752 | src/resolve/resolved-dns-answer.c \ | |
5753 | src/resolve/resolved-dns-answer.h \ | |
5754 | src/resolve/resolved-dns-question.c \ | |
5755 | src/resolve/resolved-dns-question.h \ | |
5756 | src/resolve/resolved-dns-domain.c \ | |
7263f724 ZJS |
5757 | src/resolve/resolved-dns-domain.h \ |
5758 | src/resolve/dns-type.c \ | |
5759 | src/resolve/dns-type.h \ | |
5760 | src/resolve/dns_type-from-name.h \ | |
5761 | src/resolve/dns_type-to-name.h | |
bdef7319 ZJS |
5762 | |
5763 | systemd_resolve_host_LDADD = \ | |
5764 | libsystemd-internal.la \ | |
0dae31d4 | 5765 | libsystemd-shared.la \ |
bdf10b5b | 5766 | $(LIBIDN_LIBS) |
bdef7319 ZJS |
5767 | |
5768 | rootlibexec_PROGRAMS += \ | |
5769 | systemd-resolve-host | |
5770 | ||
091a364c TG |
5771 | endif |
5772 | ||
f579559b | 5773 | # ------------------------------------------------------------------------------ |
3c9317d2 | 5774 | if ENABLE_NETWORKD |
f579559b TG |
5775 | rootlibexec_PROGRAMS += \ |
5776 | systemd-networkd | |
5777 | ||
5778 | systemd_networkd_SOURCES = \ | |
911f4d4d TG |
5779 | src/network/networkd.c |
5780 | ||
5781 | systemd_networkd_LDADD = \ | |
0b906b8d | 5782 | libsystemd-networkd-core.la |
911f4d4d | 5783 | |
5a8bcb67 LP |
5784 | if HAVE_LIBIPTC |
5785 | systemd_networkd_LDADD += \ | |
5786 | libsystemd-fw.la | |
5787 | endif | |
5788 | ||
911f4d4d TG |
5789 | noinst_LTLIBRARIES += \ |
5790 | libsystemd-networkd-core.la | |
5791 | ||
679be2a7 | 5792 | libsystemd_networkd_core_la_CFLAGS = \ |
bddfc8af | 5793 | $(AM_CFLAGS) |
679be2a7 | 5794 | |
911f4d4d | 5795 | libsystemd_networkd_core_la_SOURCES = \ |
3a67e927 | 5796 | src/libsystemd-network/network-internal.h \ |
f579559b | 5797 | src/network/networkd.h \ |
0b1831c2 | 5798 | src/network/networkd-link.h \ |
3be1d7e0 TG |
5799 | src/network/networkd-netdev.h \ |
5800 | src/network/networkd-netdev-tunnel.h \ | |
5801 | src/network/networkd-netdev-veth.h \ | |
5802 | src/network/networkd-netdev-vxlan.h \ | |
5803 | src/network/networkd-netdev-vlan.h \ | |
5804 | src/network/networkd-netdev-macvlan.h \ | |
c4a5ddc9 | 5805 | src/network/networkd-netdev-ipvlan.h \ |
3be1d7e0 TG |
5806 | src/network/networkd-netdev-dummy.h \ |
5807 | src/network/networkd-netdev-tuntap.h \ | |
5808 | src/network/networkd-netdev-bond.h \ | |
5809 | src/network/networkd-netdev-bridge.h \ | |
52433f6b | 5810 | src/network/networkd-netdev.c \ |
3be1d7e0 TG |
5811 | src/network/networkd-netdev-tunnel.c \ |
5812 | src/network/networkd-netdev-veth.c \ | |
5813 | src/network/networkd-netdev-vxlan.c \ | |
5814 | src/network/networkd-netdev-vlan.c \ | |
5815 | src/network/networkd-netdev-macvlan.c \ | |
c4a5ddc9 | 5816 | src/network/networkd-netdev-ipvlan.c \ |
3be1d7e0 TG |
5817 | src/network/networkd-netdev-dummy.c \ |
5818 | src/network/networkd-netdev-tuntap.c \ | |
5819 | src/network/networkd-netdev-bond.c \ | |
5820 | src/network/networkd-netdev-bridge.c \ | |
5821 | src/network/networkd-link.c \ | |
e331e246 | 5822 | src/network/networkd-link-bus.c \ |
b22d8a00 | 5823 | src/network/networkd-ipv4ll.c \ |
3c9b8860 | 5824 | src/network/networkd-dhcp4.c \ |
5c79bd79 | 5825 | src/network/networkd-dhcp6.c \ |
f579559b | 5826 | src/network/networkd-network.c \ |
3175fcde | 5827 | src/network/networkd-network-bus.c \ |
f579559b TG |
5828 | src/network/networkd-address.c \ |
5829 | src/network/networkd-route.c \ | |
11bf3cce | 5830 | src/network/networkd-manager.c \ |
e331e246 | 5831 | src/network/networkd-manager-bus.c \ |
b98b483b | 5832 | src/network/networkd-fdb.c \ |
11bf3cce | 5833 | src/network/networkd-address-pool.c |
f579559b | 5834 | |
911f4d4d | 5835 | nodist_libsystemd_networkd_core_la_SOURCES = \ |
c0dda186 | 5836 | src/network/networkd-network-gperf.c \ |
091a364c | 5837 | src/network/networkd-netdev-gperf.c |
f579559b | 5838 | |
911f4d4d | 5839 | libsystemd_networkd_core_la_LIBADD = \ |
f579559b | 5840 | libudev-internal.la \ |
6bb648a1 | 5841 | libsystemd-internal.la \ |
fe8db0c5 | 5842 | libsystemd-network.la \ |
3bef724f | 5843 | libsystemd-label.la \ |
f579559b TG |
5844 | libsystemd-shared.la |
5845 | ||
020d5900 TG |
5846 | rootlibexec_PROGRAMS += \ |
5847 | systemd-networkd-wait-online | |
5848 | ||
679be2a7 | 5849 | systemd_networkd_wait_online_CFLAGS = \ |
bddfc8af | 5850 | $(AM_CFLAGS) |
679be2a7 | 5851 | |
020d5900 | 5852 | systemd_networkd_wait_online_SOURCES = \ |
3a67e927 | 5853 | src/libsystemd-network/network-internal.h \ |
7de12ae7 TG |
5854 | src/network/networkd-wait-online.h \ |
5855 | src/network/networkd-wait-online-link.h \ | |
3a67e927 | 5856 | src/network/networkd-wait-online.c \ |
7de12ae7 TG |
5857 | src/network/networkd-wait-online-manager.c \ |
5858 | src/network/networkd-wait-online-link.c | |
3a67e927 | 5859 | |
020d5900 | 5860 | systemd_networkd_wait_online_LDADD = \ |
d38cbe1b KS |
5861 | libsystemd-network.la \ |
5862 | libudev-internal.la \ | |
020d5900 | 5863 | libsystemd-internal.la \ |
ffcf82d2 | 5864 | libsystemd-shared.la |
020d5900 | 5865 | |
ee8c4568 LP |
5866 | rootbin_PROGRAMS += \ |
5867 | networkctl | |
5868 | ||
5869 | networkctl_SOURCES = \ | |
5870 | src/network/networkctl.c | |
5871 | ||
5872 | networkctl_LDADD = \ | |
ee8c4568 | 5873 | libudev-internal.la \ |
f4ac4d1a | 5874 | libsystemd-internal.la \ |
ee8c4568 LP |
5875 | libsystemd-shared.la \ |
5876 | libsystemd-network.la | |
5877 | ||
f579559b | 5878 | test_network_SOURCES = \ |
911f4d4d | 5879 | src/network/test-network.c |
f579559b TG |
5880 | |
5881 | test_network_LDADD = \ | |
0b906b8d | 5882 | libsystemd-networkd-core.la |
f579559b | 5883 | |
5a8bcb67 LP |
5884 | if HAVE_LIBIPTC |
5885 | test_network_LDADD += \ | |
5886 | libsystemd-fw.la | |
5887 | endif | |
5888 | ||
86bbe5bf ZJS |
5889 | test_network_tables_SOURCES = \ |
5890 | src/network/test-network-tables.c \ | |
5891 | src/shared/test-tables.h | |
5892 | ||
5893 | test_network_tables_LDADD = \ | |
5894 | libsystemd-networkd-core.la \ | |
5895 | libudev-core.la | |
5896 | ||
6ca5708a KS |
5897 | if HAVE_LIBIPTC |
5898 | test_network_tables_LDADD += \ | |
5899 | libsystemd-fw.la | |
5900 | endif | |
5901 | ||
cde93897 | 5902 | tests += \ |
86bbe5bf ZJS |
5903 | test-network \ |
5904 | test-network-tables | |
f579559b | 5905 | |
36c95795 ZJS |
5906 | dist_systemunit_DATA += \ |
5907 | units/systemd-networkd.socket | |
5908 | ||
2dcf7ec6 TG |
5909 | nodist_systemunit_DATA += \ |
5910 | units/systemd-networkd.service \ | |
5911 | units/systemd-networkd-wait-online.service | |
5912 | ||
e331e246 TG |
5913 | dist_systemunit_DATA_busnames += \ |
5914 | units/org.freedesktop.network1.busname | |
5915 | ||
5916 | dist_dbussystemservice_DATA += \ | |
5917 | src/network/org.freedesktop.network1.service | |
5918 | ||
5919 | dist_dbuspolicy_DATA += \ | |
5920 | src/network/org.freedesktop.network1.conf | |
5921 | ||
2dcf7ec6 | 5922 | GENERAL_ALIASES += \ |
5544ee85 | 5923 | $(systemunitdir)/systemd-networkd.socket $(pkgsysconfdir)/system/sockets.target.wants/systemd-networkd.socket \ |
2dcf7ec6 | 5924 | $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \ |
bfa501e1 | 5925 | $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service |
2dcf7ec6 | 5926 | |
23cb977a TG |
5927 | SYSTEM_UNIT_ALIASES += \ |
5928 | systemd-networkd.service dbus-org.freedesktop.network1.service | |
5929 | ||
5930 | BUSNAMES_TARGET_WANTS += \ | |
5931 | org.freedesktop.network1.busname | |
5932 | ||
9e4ded30 | 5933 | gperf_gperf_sources += \ |
c0dda186 | 5934 | src/network/networkd-network-gperf.gperf \ |
9e4ded30 ZJS |
5935 | src/network/networkd-netdev-gperf.gperf |
5936 | ||
5937 | EXTRA_DIST += \ | |
b5acb956 | 5938 | units/systemd-networkd.service.m4.in \ |
091a364c | 5939 | units/systemd-networkd-wait-online.service.in |
f579559b | 5940 | |
3c9317d2 | 5941 | endif |
f579559b | 5942 | |
48d437bb KS |
5943 | # ------------------------------------------------------------------------------ |
5944 | if ENABLE_LOGIND | |
5945 | systemd_logind_SOURCES = \ | |
5946 | src/login/logind.c \ | |
a8b409db ZJS |
5947 | src/login/logind.h |
5948 | ||
5949 | nodist_systemd_logind_SOURCES = \ | |
5950 | src/login/logind-gperf.c | |
5951 | ||
a8b409db | 5952 | systemd_logind_LDADD = \ |
48d7417d | 5953 | libsystemd-logind-core.la |
a8b409db | 5954 | |
a8b409db | 5955 | libsystemd_logind_core_la_SOURCES = \ |
2b3ab29d | 5956 | src/login/logind-core.c \ |
48d437bb | 5957 | src/login/logind-device.c \ |
69dd4165 | 5958 | src/login/logind-device.h \ |
069cfc85 LP |
5959 | src/login/logind-button.c \ |
5960 | src/login/logind-button.h \ | |
23406ce5 LP |
5961 | src/login/logind-action.c \ |
5962 | src/login/logind-action.h \ | |
48d437bb | 5963 | src/login/logind-seat.c \ |
69dd4165 | 5964 | src/login/logind-seat.h \ |
48d437bb | 5965 | src/login/logind-session.c \ |
69dd4165 | 5966 | src/login/logind-session.h \ |
118ecf32 DH |
5967 | src/login/logind-session-device.c \ |
5968 | src/login/logind-session-device.h \ | |
48d437bb | 5969 | src/login/logind-user.c \ |
69dd4165 | 5970 | src/login/logind-user.h \ |
f8e2fb7b LP |
5971 | src/login/logind-inhibit.c \ |
5972 | src/login/logind-inhibit.h \ | |
718db961 | 5973 | src/login/logind-dbus.c \ |
69dd4165 KS |
5974 | src/login/logind-session-dbus.c \ |
5975 | src/login/logind-seat-dbus.c \ | |
48d437bb | 5976 | src/login/logind-user-dbus.c \ |
e2fa5721 | 5977 | src/login/logind-utmp.c \ |
58dfc42e | 5978 | src/login/logind-acl.h |
8e274523 | 5979 | |
a8b409db | 5980 | libsystemd_logind_core_la_LIBADD = \ |
cc527a47 | 5981 | libsystemd-label.la \ |
48d7417d | 5982 | libudev-internal.la \ |
f4ac4d1a | 5983 | libsystemd-internal.la \ |
48d7417d | 5984 | libsystemd-shared.la |
78b2e3a6 | 5985 | |
2b3ab29d ZJS |
5986 | if HAVE_ACL |
5987 | libsystemd_logind_core_la_SOURCES += \ | |
5988 | src/login/logind-acl.c | |
5989 | ||
5990 | libsystemd_logind_core_la_LIBADD += \ | |
5991 | libsystemd-acl.la | |
5992 | endif | |
5993 | ||
a8b409db ZJS |
5994 | noinst_LTLIBRARIES += \ |
5995 | libsystemd-logind-core.la | |
addab137 | 5996 | |
48d437bb | 5997 | rootlibexec_PROGRAMS += \ |
ea24d8d1 | 5998 | systemd-logind |
48d437bb | 5999 | |
169c4f65 | 6000 | loginctl_SOURCES = \ |
48d437bb | 6001 | src/login/loginctl.c \ |
8b169c0f | 6002 | src/login/sysfs-show.h \ |
f33d3ec1 | 6003 | src/login/sysfs-show.c |
139be57d | 6004 | |
169c4f65 | 6005 | loginctl_LDADD = \ |
f4ac4d1a | 6006 | libudev-internal.la \ |
6bb648a1 | 6007 | libsystemd-internal.la \ |
3c756001 LP |
6008 | libsystemd-logs.la \ |
6009 | libsystemd-journal-internal.la \ | |
0ebee881 | 6010 | libsystemd-shared.la |
7e4249b9 | 6011 | |
48d437bb | 6012 | rootbin_PROGRAMS += \ |
169c4f65 LP |
6013 | loginctl |
6014 | ||
d611dadc MB |
6015 | dist_bashcompletion_DATA += \ |
6016 | shell-completion/bash/loginctl | |
6017 | ||
799d54be | 6018 | dist_zshcompletion_DATA += \ |
67e654f8 WG |
6019 | shell-completion/zsh/_loginctl \ |
6020 | shell-completion/zsh/_systemd-inhibit | |
799d54be | 6021 | |
eecd1362 LP |
6022 | systemd_inhibit_SOURCES = \ |
6023 | src/login/inhibit.c | |
6024 | ||
eecd1362 | 6025 | systemd_inhibit_LDADD = \ |
6bb648a1 | 6026 | libsystemd-internal.la \ |
d9f644e2 | 6027 | libsystemd-shared.la |
eecd1362 LP |
6028 | |
6029 | rootbin_PROGRAMS += \ | |
6030 | systemd-inhibit | |
6031 | ||
48d437bb | 6032 | test_login_SOURCES = \ |
58dfc42e | 6033 | src/libsystemd/sd-login/test-login.c |
48d437bb KS |
6034 | |
6035 | test_login_LDADD = \ | |
0bba8d6e | 6036 | libsystemd-internal.la \ |
cc527a47 | 6037 | libsystemd-shared.la |
4a2a8b5a | 6038 | |
35375afe ZJS |
6039 | test_login_shared_SOURCES = \ |
6040 | src/login/test-login-shared.c | |
6041 | ||
6042 | test_login_shared_LDADD = \ | |
0bba8d6e | 6043 | libsystemd-internal.la \ |
35375afe ZJS |
6044 | libsystemd-shared.la |
6045 | ||
f8e2fb7b LP |
6046 | test_inhibit_SOURCES = \ |
6047 | src/login/test-inhibit.c | |
6048 | ||
6049 | test_inhibit_LDADD = \ | |
6bb648a1 | 6050 | libsystemd-internal.la \ |
48d7417d | 6051 | libsystemd-shared.la |
f8e2fb7b | 6052 | |
a8b409db ZJS |
6053 | test_login_tables_SOURCES = \ |
6054 | src/login/test-login-tables.c | |
6055 | ||
a8b409db ZJS |
6056 | test_login_tables_LDADD = \ |
6057 | libsystemd-logind-core.la | |
6058 | ||
cee22bd3 | 6059 | manual_tests += \ |
f8e2fb7b LP |
6060 | test-login \ |
6061 | test-inhibit | |
490aed58 | 6062 | |
a8b409db | 6063 | tests += \ |
35375afe ZJS |
6064 | test-login-tables \ |
6065 | test-login-shared | |
a8b409db | 6066 | |
48d437bb KS |
6067 | if HAVE_PAM |
6068 | pam_systemd_la_SOURCES = \ | |
e09c69d9 | 6069 | src/login/pam_systemd.sym \ |
dfb0c6cc | 6070 | src/login/pam_systemd.c |
22be093f | 6071 | |
48d437bb KS |
6072 | pam_systemd_la_CFLAGS = \ |
6073 | $(AM_CFLAGS) \ | |
6074 | $(PAM_CFLAGS) \ | |
48d437bb | 6075 | -fvisibility=hidden |
22be093f | 6076 | |
48d437bb | 6077 | pam_systemd_la_LDFLAGS = \ |
f7b6a32e | 6078 | $(AM_LDFLAGS) \ |
48d437bb KS |
6079 | -module \ |
6080 | -export-dynamic \ | |
6081 | -avoid-version \ | |
6082 | -shared \ | |
e09c69d9 | 6083 | -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym |
48d437bb KS |
6084 | |
6085 | pam_systemd_la_LIBADD = \ | |
6bb648a1 | 6086 | libsystemd-internal.la \ |
cc527a47 | 6087 | libsystemd-shared.la \ |
b7739c77 | 6088 | $(PAM_LIBS) |
22be093f | 6089 | |
48d437bb KS |
6090 | pamlib_LTLIBRARIES = \ |
6091 | pam_systemd.la | |
5c390a4a ZJS |
6092 | |
6093 | dist_pamconf_DATA = \ | |
6094 | src/login/systemd-user | |
83e7d885 | 6095 | |
48d437bb | 6096 | endif |
22be093f | 6097 | |
48d437bb | 6098 | nodist_systemunit_DATA += \ |
ea24d8d1 | 6099 | units/systemd-logind.service |
ac34b3af ZJS |
6100 | |
6101 | dist_systemunit_DATA += \ | |
36e46fe9 MB |
6102 | units/user.slice |
6103 | ||
6104 | dist_systemunit_DATA_busnames += \ | |
cde360cd | 6105 | units/org.freedesktop.login1.busname |
88213476 | 6106 | |
48d437bb KS |
6107 | dist_dbussystemservice_DATA += \ |
6108 | src/login/org.freedesktop.login1.service | |
88213476 | 6109 | |
48d437bb KS |
6110 | dist_dbuspolicy_DATA += \ |
6111 | src/login/org.freedesktop.login1.conf | |
88213476 | 6112 | |
48d437bb | 6113 | dist_pkgsysconf_DATA += \ |
18b754d3 | 6114 | src/login/logind.conf |
a8f11321 | 6115 | |
299031ca BK |
6116 | polkitpolicy_files += \ |
6117 | src/login/org.freedesktop.login1.policy | |
10e87ee7 | 6118 | |
6ff39241 ZJS |
6119 | INSTALL_DIRS += \ |
6120 | $(systemdstatedir) | |
6121 | ||
6122 | MULTI_USER_TARGET_WANTS += \ | |
ea24d8d1 | 6123 | systemd-logind.service |
6ff39241 | 6124 | |
91e8651b ZJS |
6125 | SYSTEM_UNIT_ALIASES += \ |
6126 | systemd-logind.service dbus-org.freedesktop.login1.service | |
490aed58 | 6127 | |
cde360cd LP |
6128 | BUSNAMES_TARGET_WANTS += \ |
6129 | org.freedesktop.login1.busname | |
6130 | ||
48d437bb | 6131 | dist_udevrules_DATA += \ |
cc093337 | 6132 | src/login/70-uaccess.rules \ |
069cfc85 | 6133 | src/login/70-power-switch.rules |
131a4dcf KS |
6134 | |
6135 | nodist_udevrules_DATA += \ | |
d7e1c95e | 6136 | src/login/71-seat.rules \ |
131a4dcf | 6137 | src/login/73-seat-late.rules |
114a50f8 | 6138 | |
299031ca BK |
6139 | endif |
6140 | ||
6141 | polkitpolicy_in_files += \ | |
6142 | src/login/org.freedesktop.login1.policy.in | |
6143 | ||
9e4ded30 ZJS |
6144 | gperf_gperf_sources += \ |
6145 | src/login/logind-gperf.gperf | |
6146 | ||
48d437bb | 6147 | EXTRA_DIST += \ |
d7e1c95e | 6148 | src/login/71-seat.rules.in \ |
131a4dcf | 6149 | src/login/73-seat-late.rules.in \ |
ea24d8d1 | 6150 | units/systemd-logind.service.in |
48d437bb | 6151 | |
48d437bb | 6152 | # ------------------------------------------------------------------------------ |
83e7d885 ZJS |
6153 | if HAVE_PAM |
6154 | ||
6155 | systemd_user_sessions_SOURCES = \ | |
6156 | src/user-sessions/user-sessions.c | |
6157 | ||
6158 | systemd_user_sessions_LDADD = \ | |
6159 | libsystemd-shared.la | |
6160 | ||
6161 | rootlibexec_PROGRAMS += \ | |
6162 | systemd-user-sessions | |
6163 | ||
6164 | nodist_systemunit_DATA += \ | |
6165 | units/systemd-user-sessions.service | |
6166 | ||
6167 | EXTRA_DIST += \ | |
6168 | units/systemd-user-sessions.service.in | |
6169 | ||
6170 | MULTI_USER_TARGET_WANTS += \ | |
6171 | systemd-user-sessions.service | |
6172 | ||
6173 | endif | |
6174 | ||
6175 | # ------------------------------------------------------------------------------ | |
6176 | ||
8d7e170a | 6177 | if HAVE_PYTHON_DEVEL |
8d7e170a | 6178 | pkgpyexec_LTLIBRARIES = \ |
927e9632 | 6179 | _journal.la \ |
c4e9b5b5 | 6180 | id128.la \ |
b04c8c83 | 6181 | _daemon.la \ |
539e0a4d ZJS |
6182 | _reader.la \ |
6183 | login.la | |
8d7e170a LP |
6184 | |
6185 | _journal_la_SOURCES = \ | |
6186 | src/python-systemd/_journal.c | |
6187 | ||
6188 | _journal_la_CFLAGS = \ | |
6189 | $(AM_CFLAGS) \ | |
f5944e0f | 6190 | -fvisibility=default \ |
a6c0b31d | 6191 | $(PYTHON_DEVEL_CFLAGS) |
8d7e170a LP |
6192 | |
6193 | _journal_la_LDFLAGS = \ | |
6194 | $(AM_LDFLAGS) \ | |
6195 | -shared \ | |
6196 | -module \ | |
6197 | -avoid-version | |
6198 | ||
6199 | _journal_la_LIBADD = \ | |
a6c0b31d | 6200 | $(PYTHON_DEVEL_LIBS) \ |
add00dfd | 6201 | libsystemd.la |
8d7e170a | 6202 | |
927e9632 ZJS |
6203 | id128_la_SOURCES = \ |
6204 | src/python-systemd/id128.c \ | |
6a6633a1 ZJS |
6205 | src/python-systemd/pyutil.c \ |
6206 | src/python-systemd/pyutil.h | |
927e9632 | 6207 | |
49100d2a FB |
6208 | nodist_id128_la_SOURCES = \ |
6209 | src/python-systemd/id128-constants.h | |
6210 | ||
927e9632 ZJS |
6211 | id128_la_CFLAGS = \ |
6212 | $(AM_CFLAGS) \ | |
f5944e0f | 6213 | -fvisibility=default \ |
a6c0b31d | 6214 | $(PYTHON_DEVEL_CFLAGS) \ |
927e9632 ZJS |
6215 | -I$(top_builddir)/src/python-systemd |
6216 | ||
6217 | id128_la_LDFLAGS = \ | |
6218 | $(AM_LDFLAGS) \ | |
6219 | -shared \ | |
6220 | -module \ | |
6221 | -avoid-version | |
6222 | ||
6223 | id128_la_LIBADD = \ | |
a6c0b31d | 6224 | $(PYTHON_DEVEL_LIBS) \ |
f01de965 KS |
6225 | libsystemd-shared.la \ |
6226 | libsystemd.la | |
927e9632 | 6227 | |
b04c8c83 ZJS |
6228 | _daemon_la_SOURCES = \ |
6229 | src/python-systemd/_daemon.c \ | |
6230 | src/python-systemd/pyutil.c \ | |
6231 | src/python-systemd/pyutil.h | |
6232 | ||
6233 | _daemon_la_CFLAGS = \ | |
6234 | $(AM_CFLAGS) \ | |
f5944e0f | 6235 | -fvisibility=default \ |
a6c0b31d | 6236 | $(PYTHON_DEVEL_CFLAGS) \ |
b04c8c83 ZJS |
6237 | -I$(top_builddir)/src/python-systemd |
6238 | ||
6239 | _daemon_la_LDFLAGS = \ | |
6240 | $(AM_LDFLAGS) \ | |
6241 | -shared \ | |
6242 | -module \ | |
6243 | -avoid-version | |
6244 | ||
6245 | _daemon_la_LIBADD = \ | |
a6c0b31d | 6246 | $(PYTHON_DEVEL_LIBS) \ |
f01de965 KS |
6247 | libsystemd-shared.la \ |
6248 | libsystemd.la | |
b04c8c83 | 6249 | |
c4e9b5b5 | 6250 | _reader_la_SOURCES = \ |
6a6633a1 ZJS |
6251 | src/python-systemd/_reader.c \ |
6252 | src/python-systemd/pyutil.c \ | |
6253 | src/python-systemd/pyutil.h | |
c4e9b5b5 SH |
6254 | |
6255 | _reader_la_CFLAGS = \ | |
6256 | $(AM_CFLAGS) \ | |
f5944e0f | 6257 | -fvisibility=default \ |
a6c0b31d | 6258 | $(PYTHON_DEVEL_CFLAGS) |
c4e9b5b5 SH |
6259 | |
6260 | _reader_la_LDFLAGS = \ | |
6261 | $(AM_LDFLAGS) \ | |
6262 | -shared \ | |
6263 | -module \ | |
6264 | -avoid-version | |
6265 | ||
6266 | _reader_la_LIBADD = \ | |
a6c0b31d | 6267 | $(PYTHON_DEVEL_LIBS) \ |
f01de965 KS |
6268 | libsystemd-shared.la \ |
6269 | libsystemd.la | |
c4e9b5b5 | 6270 | |
539e0a4d ZJS |
6271 | login_la_SOURCES = \ |
6272 | src/python-systemd/login.c \ | |
6273 | src/python-systemd/pyutil.c \ | |
6274 | src/python-systemd/pyutil.h | |
6275 | ||
6276 | login_la_CFLAGS = \ | |
6277 | $(AM_CFLAGS) \ | |
6278 | -fvisibility=default \ | |
a6c0b31d | 6279 | $(PYTHON_DEVEL_CFLAGS) |
539e0a4d ZJS |
6280 | |
6281 | login_la_LDFLAGS = \ | |
6282 | $(AM_LDFLAGS) \ | |
6283 | -shared \ | |
6284 | -module \ | |
6285 | -avoid-version | |
6286 | ||
6287 | login_la_LIBADD = \ | |
a6c0b31d | 6288 | $(PYTHON_DEVEL_LIBS) \ |
f01de965 KS |
6289 | libsystemd-shared.la \ |
6290 | libsystemd.la | |
539e0a4d | 6291 | |
8d7e170a LP |
6292 | dist_pkgpyexec_PYTHON = \ |
6293 | src/python-systemd/journal.py \ | |
b04c8c83 | 6294 | src/python-systemd/daemon.py \ |
8d7e170a | 6295 | src/python-systemd/__init__.py |
927e9632 | 6296 | |
dff55e5d | 6297 | src/python-systemd/id128-constants.h: src/systemd/sd-messages.h |
927e9632 | 6298 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
6a6633a1 | 6299 | $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@ |
927e9632 ZJS |
6300 | |
6301 | BUILT_SOURCES += \ | |
9e4ded30 | 6302 | $(nodist_id128_la_SOURCES) |
8d7e170a | 6303 | |
c8c9c69f | 6304 | SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION) |
9015fa64 | 6305 | sphinx-%: |
603c0b7b | 6306 | $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; } |
9b281072 ZJS |
6307 | $(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/ |
6308 | $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/ | |
9015fa64 | 6309 | |
a7739f8f ZJS |
6310 | python-shell: |
6311 | $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)" | |
6312 | $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON) | |
6313 | ||
d426d8c8 | 6314 | destdir-sphinx: all |
e76d2e20 | 6315 | dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \ |
d426d8c8 | 6316 | $(MAKE) DESTDIR="$$dir" install && \ |
f5944e0f | 6317 | $(MAKE) DESTDIR="$$dir" sphinx-html && \ |
d426d8c8 ZJS |
6318 | rm -rf "$$dir" |
6319 | ||
87cfe600 ZJS |
6320 | endif |
6321 | ||
9b281072 ZJS |
6322 | CLEAN_LOCAL_HOOKS += clean-sphinx |
6323 | ||
9f700755 ZJS |
6324 | .PHONY: python-shell destdir-sphinx clean-sphinx clean-python |
6325 | ||
9b281072 ZJS |
6326 | clean-sphinx: |
6327 | -rm -rf docs/html/python-systemd/ | |
6328 | ||
f5853daf ZJS |
6329 | # Remove Python stuff, e.g. to force rebuilding for a different Python version. |
6330 | clean-python: | |
6331 | -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao] | |
6332 | -rm -f _daemon.la id128.la _journal.la login.la _reader.la | |
6333 | ||
0bba8d6e | 6334 | # ------------------------------------------------------------------------------ |
53e856e1 | 6335 | if ENABLE_COMPAT_LIBS |
62ae6dd4 LP |
6336 | EXTRA_DIST += \ |
6337 | src/compat-libs/linkwarning.h | |
6338 | ||
03e37dd7 | 6339 | libsystemd-%.c: src/compat-libs/libsystemd-%.sym |
0bba8d6e | 6340 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
03e37dd7 KS |
6341 | $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@ |
6342 | ||
6343 | BUILT_SOURCES += \ | |
6344 | libsystemd-journal.c \ | |
6345 | libsystemd-login.c \ | |
6346 | libsystemd-id128.c \ | |
6347 | libsystemd-daemon.c | |
0bba8d6e | 6348 | |
add00dfd KS |
6349 | libsystemd_journal_la_SOURCES = \ |
6350 | libsystemd-journal.c \ | |
6351 | src/compat-libs/libsystemd-journal.sym | |
6352 | ||
03e37dd7 | 6353 | libsystemd_journal_la_CPPFLAGS = \ |
7e273016 | 6354 | $(AM_CPPFLAGS) \ |
03e37dd7 | 6355 | -imacros$(top_srcdir)/src/compat-libs/linkwarning.h |
add00dfd KS |
6356 | |
6357 | libsystemd_journal_la_LDFLAGS = \ | |
6358 | $(AM_LDFLAGS) \ | |
6359 | -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \ | |
6360 | -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym | |
6361 | ||
6362 | libsystemd_journal_la_LIBADD = \ | |
03e37dd7 KS |
6363 | libsystemd-journal-internal.la \ |
6364 | libsystemd-internal.la \ | |
6365 | libsystemd-shared.la | |
add00dfd | 6366 | |
0bba8d6e ZJS |
6367 | libsystemd_login_la_SOURCES = \ |
6368 | libsystemd-login.c \ | |
53e856e1 | 6369 | src/compat-libs/libsystemd-login.sym |
0bba8d6e | 6370 | |
03e37dd7 | 6371 | libsystemd_login_la_CPPFLAGS = \ |
7e273016 | 6372 | $(AM_CPPFLAGS) \ |
03e37dd7 | 6373 | -imacros$(top_srcdir)/src/compat-libs/linkwarning.h |
0bba8d6e ZJS |
6374 | |
6375 | libsystemd_login_la_LDFLAGS = \ | |
6376 | $(AM_LDFLAGS) \ | |
6377 | -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \ | |
53e856e1 | 6378 | -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym |
0bba8d6e ZJS |
6379 | |
6380 | libsystemd_login_la_LIBADD = \ | |
03e37dd7 KS |
6381 | libsystemd-internal.la \ |
6382 | libsystemd-shared.la | |
0bba8d6e | 6383 | |
be127913 ZJS |
6384 | libsystemd_id128_la_SOURCES = \ |
6385 | libsystemd-id128.c \ | |
6386 | src/compat-libs/libsystemd-id128.sym | |
6387 | ||
03e37dd7 | 6388 | libsystemd_id128_la_CPPFLAGS = \ |
7e273016 | 6389 | $(AM_CPPFLAGS) \ |
03e37dd7 | 6390 | -imacros$(top_srcdir)/src/compat-libs/linkwarning.h |
be127913 ZJS |
6391 | |
6392 | libsystemd_id128_la_LDFLAGS = \ | |
6393 | $(AM_LDFLAGS) \ | |
6394 | -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \ | |
6395 | -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym | |
6396 | ||
6397 | libsystemd_id128_la_LIBADD = \ | |
03e37dd7 KS |
6398 | libsystemd-internal.la \ |
6399 | libsystemd-shared.la | |
be127913 | 6400 | |
0ebee881 KS |
6401 | libsystemd_daemon_la_SOURCES = \ |
6402 | libsystemd-daemon.c \ | |
6403 | src/compat-libs/libsystemd-daemon.sym | |
6404 | ||
03e37dd7 | 6405 | libsystemd_daemon_la_CPPFLAGS = \ |
7e273016 | 6406 | $(AM_CPPFLAGS) \ |
03e37dd7 | 6407 | -imacros$(top_srcdir)/src/compat-libs/linkwarning.h |
0ebee881 KS |
6408 | |
6409 | libsystemd_daemon_la_LDFLAGS = \ | |
6410 | $(AM_LDFLAGS) \ | |
6411 | -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \ | |
6412 | -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym | |
6413 | ||
6414 | libsystemd_daemon_la_LIBADD = \ | |
03e37dd7 KS |
6415 | libsystemd-internal.la \ |
6416 | libsystemd-shared.la | |
0bba8d6e ZJS |
6417 | |
6418 | lib_LTLIBRARIES += \ | |
add00dfd | 6419 | libsystemd-journal.la \ |
be127913 | 6420 | libsystemd-login.la \ |
0ebee881 KS |
6421 | libsystemd-id128.la \ |
6422 | libsystemd-daemon.la | |
0bba8d6e ZJS |
6423 | |
6424 | pkgconfiglib_DATA += \ | |
3d3143b4 | 6425 | src/compat-libs/libsystemd-journal.pc \ |
be127913 | 6426 | src/compat-libs/libsystemd-login.pc \ |
0ebee881 KS |
6427 | src/compat-libs/libsystemd-id128.pc \ |
6428 | src/compat-libs/libsystemd-daemon.pc | |
0bba8d6e ZJS |
6429 | |
6430 | # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed | |
be127913 | 6431 | compat-lib-install-hook: |
0bba8d6e | 6432 | libname=libsystemd-login.so && $(move-to-rootlibdir) |
df40be6a | 6433 | libname=libsystemd-journal.so && $(move-to-rootlibdir) |
be127913 | 6434 | libname=libsystemd-id128.so && $(move-to-rootlibdir) |
0ebee881 | 6435 | libname=libsystemd-daemon.so && $(move-to-rootlibdir) |
0bba8d6e | 6436 | |
be127913 | 6437 | compat-lib-uninstall-hook: |
0bba8d6e | 6438 | rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so* |
df40be6a | 6439 | rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so* |
be127913 | 6440 | rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so* |
0ebee881 | 6441 | rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so* |
0bba8d6e | 6442 | |
be127913 ZJS |
6443 | INSTALL_EXEC_HOOKS += compat-lib-install-hook |
6444 | UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook | |
53e856e1 ZJS |
6445 | endif |
6446 | ||
be127913 | 6447 | EXTRA_DIST += \ |
24442f3b | 6448 | src/compat-libs/libsystemd-journal.pc.in \ |
be127913 | 6449 | src/compat-libs/libsystemd-login.pc.in \ |
0ebee881 KS |
6450 | src/compat-libs/libsystemd-id128.pc.in \ |
6451 | src/compat-libs/libsystemd-daemon.pc.in | |
be127913 | 6452 | |
8d7e170a | 6453 | # ------------------------------------------------------------------------------ |
4e7b3c20 ZJS |
6454 | substitutions = \ |
6455 | '|rootlibexecdir=$(rootlibexecdir)|' \ | |
6456 | '|rootbindir=$(rootbindir)|' \ | |
6457 | '|bindir=$(bindir)|' \ | |
6458 | '|SYSTEMCTL=$(rootbindir)/systemctl|' \ | |
6459 | '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \ | |
6460 | '|pkgsysconfdir=$(pkgsysconfdir)|' \ | |
6461 | '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \ | |
6462 | '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \ | |
6463 | '|pkgdatadir=$(pkgdatadir)|' \ | |
6464 | '|systemunitdir=$(systemunitdir)|' \ | |
6465 | '|userunitdir=$(userunitdir)|' \ | |
6466 | '|systempresetdir=$(systempresetdir)|' \ | |
6467 | '|userpresetdir=$(userpresetdir)|' \ | |
6468 | '|udevhwdbdir=$(udevhwdbdir)|' \ | |
6469 | '|udevrulesdir=$(udevrulesdir)|' \ | |
6470 | '|catalogdir=$(catalogdir)|' \ | |
6471 | '|tmpfilesdir=$(tmpfilesdir)|' \ | |
1b992147 | 6472 | '|sysusersdir=$(sysusersdir)|' \ |
4e7b3c20 | 6473 | '|sysctldir=$(sysctldir)|' \ |
d267e69d ZJS |
6474 | '|systemgeneratordir=$(systemgeneratordir)|' \ |
6475 | '|usergeneratordir=$(usergeneratordir)|' \ | |
ad95fd1d | 6476 | '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \ |
4e7b3c20 ZJS |
6477 | '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \ |
6478 | '|PACKAGE_NAME=$(PACKAGE_NAME)|' \ | |
6479 | '|PACKAGE_URL=$(PACKAGE_URL)|' \ | |
952d97ed | 6480 | '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \ |
ef5bfcf6 | 6481 | '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \ |
4e7b3c20 ZJS |
6482 | '|prefix=$(prefix)|' \ |
6483 | '|exec_prefix=$(exec_prefix)|' \ | |
6484 | '|libdir=$(libdir)|' \ | |
6485 | '|includedir=$(includedir)|' \ | |
6486 | '|VERSION=$(VERSION)|' \ | |
6487 | '|rootprefix=$(rootprefix)|' \ | |
6488 | '|udevlibexecdir=$(udevlibexecdir)|' \ | |
6489 | '|SUSHELL=$(SUSHELL)|' \ | |
66b0e0e0 | 6490 | '|SULOGIN=$(SULOGIN)|' \ |
4e7b3c20 ZJS |
6491 | '|DEBUGTTY=$(DEBUGTTY)|' \ |
6492 | '|KILL=$(KILL)|' \ | |
edeb68c5 | 6493 | '|KMOD=$(KMOD)|' \ |
3d56f7df | 6494 | '|MKDIR_P=$(MKDIR_P)|' \ |
4e7b3c20 ZJS |
6495 | '|QUOTAON=$(QUOTAON)|' \ |
6496 | '|QUOTACHECK=$(QUOTACHECK)|' \ | |
6497 | '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \ | |
6498 | '|VARLOGDIR=$(varlogdir)|' \ | |
6499 | '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \ | |
6500 | '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \ | |
6501 | '|PYTHON=$(PYTHON)|' \ | |
e8af6973 | 6502 | '|PYTHON_BINARY=$(PYTHON_BINARY)|' \ |
2dcf7ec6 | 6503 | '|NTP_SERVERS=$(NTP_SERVERS)|' \ |
f7dc3ab9 LP |
6504 | '|DNS_SERVERS=$(DNS_SERVERS)|' \ |
6505 | '|systemuidmax=$(SYSTEM_UID_MAX)|' \ | |
f8b5d994 | 6506 | '|systemgidmax=$(SYSTEM_GID_MAX)|' \ |
d4e85aac LP |
6507 | '|TTY_GID=$(TTY_GID)|' \ |
6508 | '|systemsleepdir=$(systemsleepdir)|' \ | |
d4e85aac LP |
6509 | '|binfmtdir=$(binfmtdir)|' \ |
6510 | '|modulesloaddir=$(modulesloaddir)|' | |
4e7b3c20 | 6511 | |
5e6afdd3 | 6512 | SED_PROCESS = \ |
a00e4879 | 6513 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ |
4e7b3c20 | 6514 | $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \ |
96bd03d5 | 6515 | < $< > $@ |
70fcff31 | 6516 | |
dff55e5d | 6517 | units/%: units/%.in |
5e6afdd3 LP |
6518 | $(SED_PROCESS) |
6519 | ||
dff55e5d | 6520 | man/%: man/%.in |
5e6afdd3 | 6521 | $(SED_PROCESS) |
f5e04665 | 6522 | |
dff55e5d | 6523 | sysctl.d/%: sysctl.d/%.in |
f5e04665 | 6524 | $(SED_PROCESS) |
5e6afdd3 | 6525 | |
dff55e5d | 6526 | %.pc: %.pc.in |
8c6db833 LP |
6527 | $(SED_PROCESS) |
6528 | ||
ad95fd1d ZJS |
6529 | %.conf: %.conf.in |
6530 | $(SED_PROCESS) | |
6531 | ||
dff55e5d | 6532 | src/core/macros.%: src/core/macros.%.in |
590f18a2 LP |
6533 | $(SED_PROCESS) |
6534 | ||
dff55e5d | 6535 | src/%.policy.in: src/%.policy.in.in |
25705583 LP |
6536 | $(SED_PROCESS) |
6537 | ||
c0a67aef ZJS |
6538 | shell-completion/%: shell-completion/%.in |
6539 | $(SED_PROCESS) | |
6540 | ||
dff55e5d | 6541 | %.rules: %.rules.in |
0b191e60 LP |
6542 | $(SED_PROCESS) |
6543 | ||
e8af6973 LP |
6544 | %.conf: %.conf.in |
6545 | $(SED_PROCESS) | |
6546 | ||
dff55e5d | 6547 | %.sh: %.sh.in |
3e214785 KS |
6548 | $(SED_PROCESS) |
6549 | $(AM_V_GEN)chmod +x $@ | |
6550 | ||
f975e971 | 6551 | src/%.c: src/%.gperf |
bd923ff2 | 6552 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
c8503a3e | 6553 | $(AM_V_GPERF)$(GPERF) < $< > $@ |
f975e971 LP |
6554 | |
6555 | src/%: src/%.m4 | |
bd923ff2 | 6556 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
ebea41b8 | 6557 | $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@ |
f975e971 | 6558 | |
5a16bc26 ŁS |
6559 | sysusers.d/%: sysusers.d/%.m4 |
6560 | $(AM_V_at)$(MKDIR_P) $(dir $@) | |
6561 | $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@ | |
6562 | ||
aeb50ff0 TG |
6563 | tmpfiles.d/%: tmpfiles.d/%.m4 |
6564 | $(AM_V_at)$(MKDIR_P) $(dir $@) | |
6565 | $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@ | |
6566 | ||
6567 | ||
dff55e5d | 6568 | units/%: units/%.m4 |
4acbce79 | 6569 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
38936e3c | 6570 | $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@ |
5e6afdd3 | 6571 | |
1ed09c44 | 6572 | units/user/%: units/user/%.m4 |
4acbce79 | 6573 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
38936e3c | 6574 | $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@ |
a7b6f8e5 | 6575 | |
46ba8aae | 6576 | if ENABLE_POLKIT |
3ce14249 | 6577 | nodist_polkitpolicy_DATA = \ |
299031ca | 6578 | $(polkitpolicy_files) \ |
90ccc3fc | 6579 | $(polkitpolicy_in_in_files:.policy.in.in=.policy) |
46ba8aae | 6580 | endif |
90ccc3fc KS |
6581 | |
6582 | EXTRA_DIST += \ | |
6583 | $(polkitpolicy_in_files) \ | |
6584 | $(polkitpolicy_in_in_files) | |
6585 | ||
2a4b7e7b | 6586 | # ------------------------------------------------------------------------------ |
fe1fed02 | 6587 | if ENABLE_MANPAGES |
a8787892 | 6588 | man/custom-entities.ent: configure.ac |
1a13e31d ZJS |
6589 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) |
6590 | $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \ | |
21ac6ff1 | 6591 | printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \ |
1a13e31d ZJS |
6592 | > $@ # ' |
6593 | ||
6594 | DISTCLEANFILES += \ | |
6595 | man/custom-entities.ent | |
6596 | ||
c6365917 LP |
6597 | XSLTPROC_FLAGS = \ |
6598 | --nonet \ | |
21ac6ff1 | 6599 | --xinclude \ |
7c1d34c5 | 6600 | --stringparam man.output.quietly 1 \ |
e362b372 | 6601 | --stringparam funcsynopsis.style ansi \ |
e362b372 | 6602 | --stringparam man.authors.section.enabled 0 \ |
702f64b9 | 6603 | --stringparam man.copyright.section.enabled 0 \ |
1a13e31d ZJS |
6604 | --stringparam systemd.version $(VERSION) \ |
6605 | --path '$(builddir)/man:$(srcdir)/man' | |
c6365917 | 6606 | |
9f2c5942 | 6607 | XSLTPROC_PROCESS_MAN = \ |
1a13e31d | 6608 | $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $< |
d1ab0ca0 | 6609 | |
9f2c5942 | 6610 | XSLTPROC_PROCESS_HTML = \ |
1a13e31d | 6611 | $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $< |
d1ab0ca0 | 6612 | |
1a13e31d | 6613 | man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent |
f9378423 LP |
6614 | $(XSLTPROC_PROCESS_MAN) |
6615 | ||
1a13e31d | 6616 | man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent |
359957ee LP |
6617 | $(XSLTPROC_PROCESS_MAN) |
6618 | ||
1a13e31d | 6619 | man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent |
9f2c5942 LP |
6620 | $(XSLTPROC_PROCESS_MAN) |
6621 | ||
1a13e31d | 6622 | man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent |
9f2c5942 LP |
6623 | $(XSLTPROC_PROCESS_MAN) |
6624 | ||
1a13e31d | 6625 | man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent |
f9378423 LP |
6626 | $(XSLTPROC_PROCESS_MAN) |
6627 | ||
1a13e31d | 6628 | man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent |
9f2c5942 | 6629 | $(XSLTPROC_PROCESS_HTML) |
87cfe600 ZJS |
6630 | |
6631 | define html-alias | |
78316212 | 6632 | $(AM_V_LN)$(LN_S) -f $(notdir $<) $@ |
87cfe600 ZJS |
6633 | endef |
6634 | ||
c3bd7322 | 6635 | endif |
d1ab0ca0 | 6636 | |
4afb5c73 ZJS |
6637 | EXTRA_DIST += \ |
6638 | man/custom-html.xsl \ | |
6639 | man/custom-man.xsl | |
6640 | ||
2a4b7e7b | 6641 | # ------------------------------------------------------------------------------ |
0ce8860a LP |
6642 | if HAVE_SYSV_COMPAT |
6643 | sysvinit_DATA = \ | |
6644 | docs/sysvinit/README | |
6645 | ||
6646 | varlog_DATA = \ | |
6647 | docs/var-log/README | |
6648 | ||
6649 | docs/sysvinit/README: docs/sysvinit/README.in | |
6650 | $(SED_PROCESS) | |
6651 | ||
6652 | docs/var-log/README: docs/var-log/README.in | |
6653 | $(SED_PROCESS) | |
6654 | ||
5b4882b6 KS |
6655 | CLEANFILES += \ |
6656 | docs/sysvinit/README \ | |
6657 | docs/var-log/README | |
0ce8860a LP |
6658 | endif |
6659 | ||
52edb228 ZJS |
6660 | EXTRA_DIST += \ |
6661 | docs/sysvinit/README.in \ | |
6662 | docs/var-log/README.in | |
6663 | ||
6ff39241 | 6664 | SOCKETS_TARGET_WANTS += \ |
d6b07ef7 | 6665 | systemd-initctl.socket |
6ff39241 | 6666 | |
37161c51 | 6667 | if HAVE_UTMP |
245d345f | 6668 | if HAVE_SYSV_COMPAT |
d5d8429a | 6669 | MULTI_USER_TARGET_WANTS += \ |
6ff39241 | 6670 | systemd-update-utmp-runlevel.service |
d5d8429a | 6671 | GRAPHICAL_TARGET_WANTS += \ |
6ff39241 | 6672 | systemd-update-utmp-runlevel.service |
d5d8429a | 6673 | RESCUE_TARGET_WANTS += \ |
6ff39241 | 6674 | systemd-update-utmp-runlevel.service |
245d345f | 6675 | endif |
8ea48dfc | 6676 | |
3f92e4b4 | 6677 | SYSINIT_TARGET_WANTS += \ |
37161c51 ERB |
6678 | systemd-update-utmp.service |
6679 | endif | |
6680 | ||
6681 | SYSINIT_TARGET_WANTS += \ | |
12e34d9d | 6682 | systemd-update-done.service |
8ea48dfc | 6683 | |
6ff39241 ZJS |
6684 | LOCAL_FS_TARGET_WANTS += \ |
6685 | systemd-remount-fs.service \ | |
113b3fc1 LP |
6686 | tmp.mount \ |
6687 | var-lib-machines.mount | |
8ea48dfc | 6688 | |
6ff39241 ZJS |
6689 | MULTI_USER_TARGET_WANTS += \ |
6690 | getty.target \ | |
83e7d885 | 6691 | systemd-ask-password-wall.path |
8ea48dfc | 6692 | |
6ff39241 ZJS |
6693 | SYSINIT_TARGET_WANTS += \ |
6694 | dev-hugepages.mount \ | |
6695 | dev-mqueue.mount \ | |
6696 | sys-kernel-config.mount \ | |
6697 | sys-kernel-debug.mount \ | |
6698 | sys-fs-fuse-connections.mount \ | |
6ff39241 ZJS |
6699 | systemd-sysctl.service \ |
6700 | systemd-ask-password-console.path | |
6351163b | 6701 | |
245d345f | 6702 | if HAVE_SYSV_COMPAT |
91e8651b ZJS |
6703 | SYSTEM_UNIT_ALIASES += \ |
6704 | poweroff.target runlevel0.target \ | |
6705 | rescue.target runlevel1.target \ | |
6706 | multi-user.target runlevel2.target \ | |
6707 | multi-user.target runlevel3.target \ | |
6708 | multi-user.target runlevel4.target \ | |
6709 | graphical.target runlevel5.target \ | |
245d345f ZJS |
6710 | reboot.target runlevel6.target |
6711 | endif | |
2a4b7e7b | 6712 | |
245d345f | 6713 | SYSTEM_UNIT_ALIASES += \ |
91e8651b ZJS |
6714 | graphical.target default.target \ |
6715 | reboot.target ctrl-alt-del.target \ | |
6716 | getty@.service autovt@.service | |
6717 | ||
6718 | USER_UNIT_ALIASES += \ | |
6719 | $(systemunitdir)/shutdown.target shutdown.target \ | |
6720 | $(systemunitdir)/sockets.target sockets.target \ | |
e3d84721 LP |
6721 | $(systemunitdir)/timers.target timers.target \ |
6722 | $(systemunitdir)/paths.target paths.target \ | |
91e8651b ZJS |
6723 | $(systemunitdir)/bluetooth.target bluetooth.target \ |
6724 | $(systemunitdir)/printer.target printer.target \ | |
e06e62f4 LP |
6725 | $(systemunitdir)/sound.target sound.target \ |
6726 | $(systemunitdir)/smartcard.target smartcard.target | |
91e8651b | 6727 | |
36e46fe9 MB |
6728 | if ENABLE_KDBUS |
6729 | USER_UNIT_ALIASES += \ | |
6730 | $(systemunitdir)/busnames.target busnames.target | |
6731 | endif | |
6732 | ||
91e8651b ZJS |
6733 | GENERAL_ALIASES += \ |
6734 | $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \ | |
6735 | $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \ | |
6736 | $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \ | |
e2438b7a | 6737 | $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service |
91e8651b | 6738 | |
245d345f | 6739 | if HAVE_SYSV_COMPAT |
91e8651b ZJS |
6740 | INSTALL_DIRS += \ |
6741 | $(systemunitdir)/runlevel1.target.wants \ | |
6742 | $(systemunitdir)/runlevel2.target.wants \ | |
6743 | $(systemunitdir)/runlevel3.target.wants \ | |
6744 | $(systemunitdir)/runlevel4.target.wants \ | |
245d345f ZJS |
6745 | $(systemunitdir)/runlevel5.target.wants |
6746 | endif | |
2a4b7e7b | 6747 | |
245d345f | 6748 | INSTALL_DIRS += \ |
91e8651b ZJS |
6749 | $(prefix)/lib/modules-load.d \ |
6750 | $(sysconfdir)/modules-load.d \ | |
9dc670ea TG |
6751 | $(prefix)/lib/systemd/network \ |
6752 | $(sysconfdir)/systemd/network \ | |
91e8651b ZJS |
6753 | $(prefix)/lib/sysctl.d \ |
6754 | $(sysconfdir)/sysctl.d \ | |
06f42898 KS |
6755 | $(prefix)/lib/kernel/install.d \ |
6756 | $(sysconfdir)/kernel/install.d \ | |
91e8651b ZJS |
6757 | $(systemshutdowndir) \ |
6758 | $(systemsleepdir) \ | |
6759 | $(systemgeneratordir) \ | |
6760 | $(usergeneratordir) \ | |
6761 | \ | |
6762 | $(userunitdir) \ | |
6763 | $(pkgsysconfdir)/system \ | |
6764 | $(pkgsysconfdir)/system/multi-user.target.wants \ | |
6765 | $(pkgsysconfdir)/system/getty.target.wants \ | |
6766 | $(pkgsysconfdir)/user \ | |
6767 | $(dbussessionservicedir) \ | |
6768 | $(sysconfdir)/xdg/systemd | |
cd3f8b7d | 6769 | |
48d437bb | 6770 | install-exec-hook: $(INSTALL_EXEC_HOOKS) |
2a018e83 | 6771 | |
4ec24515 | 6772 | uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS) |
ae446765 | 6773 | |
91e8651b | 6774 | install-data-hook: $(INSTALL_DATA_HOOKS) |
ae446765 | 6775 | |
3e214785 KS |
6776 | distclean-local: $(DISTCLEAN_LOCAL_HOOKS) |
6777 | ||
9b281072 | 6778 | clean-local: $(CLEAN_LOCAL_HOOKS) |
f13b388f | 6779 | rm -rf $(abs_srcdir)/install-tree |
5fe25aff | 6780 | rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \ |
f5944e0f | 6781 | $(abs_srcdir)/hwdb/iab.txt |
f13b388f | 6782 | |
d1ab0ca0 | 6783 | DISTCHECK_CONFIGURE_FLAGS = \ |
d2d12cd1 LP |
6784 | --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \ |
6785 | --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \ | |
6786 | --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \ | |
db059f1b | 6787 | --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \ |
4f87c47b | 6788 | --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \ |
8c6db833 | 6789 | --with-pamlibdir=$$dc_install_base/$(pamlibdir) \ |
5c390a4a | 6790 | --with-pamconfdir=$$dc_install_base/$(pamconfdir) \ |
3e214785 | 6791 | --with-rootprefix=$$dc_install_base \ |
cde360cd | 6792 | --disable-split-usr \ |
b20e61f4 KS |
6793 | --enable-kdbus \ |
6794 | --enable-compat-libs | |
80a5cbac | 6795 | |
1d0b59f9 TG |
6796 | if HAVE_SYSV_COMPAT |
6797 | DISTCHECK_CONFIGURE_FLAGS += \ | |
6798 | --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \ | |
dee4c244 | 6799 | --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir) |
d354315f ZJS |
6800 | else |
6801 | DISTCHECK_CONFIGURE_FLAGS += \ | |
6802 | --with-sysvinit-path= \ | |
6803 | --with-sysvrcnd-path= | |
1d0b59f9 TG |
6804 | endif |
6805 | ||
b9d5b4c3 FB |
6806 | if HAVE_PYTHON |
6807 | DISTCHECK_CONFIGURE_FLAGS += \ | |
6808 | --with-python | |
6809 | endif | |
6810 | ||
80a5cbac KS |
6811 | if ENABLE_GTK_DOC |
6812 | DISTCHECK_CONFIGURE_FLAGS += \ | |
3e214785 | 6813 | --enable-gtk-doc |
80a5cbac | 6814 | endif |
0de4f055 | 6815 | |
279419b3 FB |
6816 | # |
6817 | # Require python when making dist | |
6818 | # | |
78eb158a | 6819 | .PHONY: dist-check-python dist-check-compat-libs dist-check-help |
279419b3 FB |
6820 | dist-check-python: |
6821 | if !HAVE_PYTHON | |
6822 | @echo "*** python and python-lxml module must be installed and enabled in order to make dist" | |
6823 | @false | |
6824 | endif | |
6825 | ||
65adc982 FB |
6826 | dist-check-compat-libs: |
6827 | if !ENABLE_COMPAT_LIBS | |
6828 | @echo "*** compat-libs must be enabled in order to make dist" | |
6829 | @false | |
6830 | endif | |
6831 | ||
78eb158a ZJS |
6832 | dist-check-help: $(rootbin_PROGRAMS) $(bin_PROGRAMS) |
6833 | for i in $(abspath $^); do \ | |
6834 | if $$i --help | grep -v 'default:' | grep -E -q '.{80}.' ; then \ | |
6835 | echo "$(basename $$i) --help output is too wide:"; \ | |
6836 | $$i --help | awk 'length > 80' | grep -E --color=yes '.{80}'; \ | |
6837 | exit 1; \ | |
6838 | fi; done | |
6839 | ||
65adc982 | 6840 | dist: dist-check-python dist-check-compat-libs |
279419b3 | 6841 | |
5870f79a | 6842 | # check "broken" platforms limited toolchains for link breakage before we release |
bc61d6ac KS |
6843 | .PHONY: linkcheck |
6844 | linkcheck: | |
e57e4e2b | 6845 | $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck |
5870f79a | 6846 | |
9f700755 | 6847 | .PHONY: hwdb-update |
796b06c2 | 6848 | hwdb-update: |
7f8e692b ZJS |
6849 | ( cd $(top_srcdir)/hwdb && \ |
6850 | wget -N http://www.linux-usb.org/usb.ids \ | |
5590bbe5 KS |
6851 | http://pci-ids.ucw.cz/v2.2/pci.ids \ |
6852 | http://standards.ieee.org/develop/regauth/oui/oui.txt \ | |
6853 | http://standards.ieee.org/develop/regauth/iab/iab.txt && \ | |
796b06c2 KS |
6854 | ./ids-update.pl ) |
6855 | ||
9f700755 | 6856 | .PHONY: kdbus-update |
6629161f | 6857 | kdbus-update: |
dec51b29 | 6858 | ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \ |
6629161f LP |
6859 | wget -N https://d-bus.googlecode.com/git/kdbus.h ) |
6860 | ||
381a662a KS |
6861 | .PHONY: git-tag |
6862 | git-tag: | |
6863 | git tag -s "v$(VERSION)" -m "systemd $(VERSION)" | |
6864 | ||
6865 | www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd | |
9f700755 | 6866 | .PHONY: upload |
223763f5 | 6867 | upload: all check dist |
381a662a | 6868 | scp systemd-$(VERSION).tar.xz $(www_target) |
a45f61d7 | 6869 | |
9f700755 | 6870 | .PHONY: doc-sync |
d426d8c8 | 6871 | doc-sync: all destdir-sphinx |
80037e4d | 6872 | gtkdoc-rebase --html-dir=docs/libudev/html --online |
202288be | 6873 | rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/ |
80037e4d | 6874 | gtkdoc-rebase --html-dir=docs/gudev/html --online |
202288be ZJS |
6875 | rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/ |
6876 | rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/ | |
6877 | rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/ | |
690804ca | 6878 | |
de24871e LP |
6879 | .PHONY: gardel |
6880 | gardel: upload | |
6881 | scp man/*.html gardel:public/systemd-man/ | |
6882 | ||
6883 | .PHONY: lennart-fedora | |
6884 | lennart-fedora: | |
381a662a | 6885 | cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/ |
f13b388f | 6886 | |
9f700755 | 6887 | .PHONY: install-tree |
f13b388f KS |
6888 | install-tree: all |
6889 | rm -rf $(abs_srcdir)/install-tree | |
d426d8c8 | 6890 | $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree |
f13b388f | 6891 | tree $(abs_srcdir)/install-tree |
cac914e6 LP |
6892 | |
6893 | # Let's run all tests of the test suite, but under valgrind. Let's | |
6894 | # exclude the one perl script we have in there | |
9f700755 | 6895 | .PHONY: valgrind-tests |
cac914e6 | 6896 | valgrind-tests: $(TESTS) |
f1e0c183 | 6897 | $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \ |
a0846368 ZJS |
6898 | if file $$f | grep -q shell; then \ |
6899 | echo -e "$${x}Skipping non-binary $$f"; else \ | |
9b55cd56 | 6900 | echo -e "$${x}Running $$f"; \ |
5590bbe5 | 6901 | libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \ |
9b55cd56 | 6902 | x="\n\n"; \ |
a27e222b LP |
6903 | done |
6904 | ||
9173a308 | 6905 | exported-%: % |
aac5ad0d | 6906 | $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@ |
9173a308 ZJS |
6907 | |
6908 | exported: $(addprefix exported-, $(lib_LTLIBRARIES)) | |
6909 | $(AM_V_GEN)cat $^ > $@ | |
d23284fa | 6910 | |
9f700755 | 6911 | .PHONY: check-api-docs |
d23284fa | 6912 | check-api-docs: exported man |
f1e0c183 | 6913 | $(AM_V_GEN)for symbol in `cat exported` ; do \ |
a27e222b LP |
6914 | if test -f $(builddir)/man/$$symbol.html ; then \ |
6915 | echo " Symbol $$symbol() is documented." ; \ | |
6916 | else \ | |
6917 | echo "‣ Symbol $$symbol() lacks documentation." ; \ | |
6918 | fi ; \ | |
f1e0c183 | 6919 | done |
9070a9c1 LP |
6920 | |
6921 | OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES)) | |
6922 | ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v))) | |
6923 | ||
39da205f | 6924 | undefined defined: $(ALL_OBJECTS) |
9070a9c1 | 6925 | $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \ |
aac5ad0d | 6926 | $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \ |
39da205f | 6927 | done | cut -c 20- | cut -d @ -f 1 | sort -u > $@ |
9070a9c1 LP |
6928 | |
6929 | CLEANFILES += \ | |
6930 | defined \ | |
6931 | undefined | |
6932 | ||
9f700755 | 6933 | .PHONY: check-api-unused |
d23284fa LP |
6934 | check-api-unused: defined undefined exported |
6935 | ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2- | |
f1e0c183 | 6936 | |
bfb35cfd KZ |
6937 | .PHONY: check-includes |
6938 | check-includes: $(top_srcdir)/tools/check-includes.pl | |
6939 | $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \ | |
6940 | | xargs $(top_srcdir)/tools/check-includes.pl | |
6941 | ||
6942 | EXTRA_DIST += \ | |
6943 | $(top_srcdir)/tools/check-includes.pl | |
6944 | ||
f1e0c183 | 6945 | # Stupid test that everything purported to be exported really is |
f1e0c183 ZJS |
6946 | define generate-sym-test |
6947 | $(AM_V_at)$(MKDIR_P) $(dir $@) | |
4e1b76c2 DR |
6948 | $(AM_V_at)printf '#include <stdio.h>\n' > $@ |
6949 | $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@ | |
6950 | $(AM_V_at)printf 'void* functions[] = {\n' >> $@ | |
6951 | $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@ | |
6952 | $(AM_V_at)printf '};\nint main(void) {\n' >> $@ | |
6953 | $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@ | |
6954 | $(AM_V_at)printf 'return 0; }\n' >> $@ | |
f1e0c183 ZJS |
6955 | endef |
6956 | ||
6bb648a1 | 6957 | test-libsystemd-sym.c: \ |
2b0a23e8 | 6958 | $(top_builddir)/src/libsystemd/libsystemd.sym \ |
add00dfd KS |
6959 | src/systemd/sd-journal.h \ |
6960 | src/systemd/sd-daemon.h \ | |
6961 | src/systemd/sd-login.h \ | |
6962 | src/systemd/sd-bus.h \ | |
93f1bcf4 | 6963 | src/systemd/sd-utf8.h \ |
2de30868 | 6964 | src/systemd/sd-resolve.h \ |
882897af LP |
6965 | src/systemd/sd-path.h \ |
6966 | src/systemd/sd-event.h | |
f1e0c183 ZJS |
6967 | $(generate-sym-test) |
6968 | ||
add00dfd KS |
6969 | test-libudev-sym.c: \ |
6970 | src/libudev/libudev.sym \ | |
6971 | src/udev/udev.h | |
6972 | $(generate-sym-test) | |
6973 | ||
6974 | test_libsystemd_sym_SOURCES = \ | |
6975 | test-libsystemd-sym.c | |
6976 | test_libsystemd_sym_LDADD = \ | |
6977 | libsystemd.la | |
6978 | ||
6979 | test_libudev_sym_SOURCES = \ | |
6980 | test-libudev-sym.c | |
9ea28c55 KS |
6981 | test_libudev_sym_CFLAGS = \ |
6982 | $(AM_CFLAGS) \ | |
6983 | -Wno-deprecated-declarations | |
add00dfd KS |
6984 | test_libudev_sym_LDADD = \ |
6985 | libudev.la | |
6986 | ||
6987 | BUILT_SOURCES += \ | |
6988 | $(test_libsystemd_sym_SOURCES) \ | |
6989 | $(test_libudev_sym_SOURCES) | |
6990 | ||
6991 | tests += \ | |
6992 | test-libsystemd-sym \ | |
6993 | test-libudev-sym | |
6994 | ||
bd390ae7 | 6995 | .PHONY: cppcheck |
16f4efb4 | 6996 | cppcheck: |
43a99a7a | 6997 | cppcheck --enable=all -q $(top_srcdir) |
0d8efe35 DR |
6998 | |
6999 | # Used to extract compile flags for YCM. | |
7000 | print-%: | |
7001 | @echo $($*) | |
43c71255 LP |
7002 | |
7003 | git-contrib: | |
7004 | @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u | |
2ea8c083 MS |
7005 | |
7006 | EXTRA_DIST += \ | |
7007 | tools/gdb-sd_dump_hashmaps.py | |
3576d631 LP |
7008 | |
7009 | list-keys: | |
7010 | gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --list-keys | |
7011 | ||
7012 | add-key: | |
7013 | gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --import - |