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