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