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