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