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