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