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