]>
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 \ | |
cda391c3 | 2961 | src/systemd/sd-pppoe.h \ |
fe8db0c5 | 2962 | src/libsystemd-network/sd-dhcp-client.c \ |
b44cd882 | 2963 | src/libsystemd-network/sd-dhcp-server.c \ |
fe8db0c5 TG |
2964 | src/libsystemd-network/dhcp-network.c \ |
2965 | src/libsystemd-network/dhcp-option.c \ | |
2966 | src/libsystemd-network/dhcp-packet.c \ | |
2967 | src/libsystemd-network/dhcp-internal.h \ | |
b44cd882 | 2968 | src/libsystemd-network/dhcp-server-internal.h \ |
fe8db0c5 TG |
2969 | src/libsystemd-network/dhcp-protocol.h \ |
2970 | src/libsystemd-network/dhcp-lease-internal.h \ | |
5c1d3fc9 UTL |
2971 | src/libsystemd-network/sd-dhcp-lease.c \ |
2972 | src/libsystemd-network/sd-ipv4ll.c \ | |
2973 | src/libsystemd-network/ipv4ll-network.c \ | |
2974 | src/libsystemd-network/ipv4ll-packet.c \ | |
c6f7c917 | 2975 | src/libsystemd-network/ipv4ll-internal.h \ |
cda391c3 | 2976 | src/libsystemd-network/sd-pppoe.c \ |
c6f7c917 | 2977 | src/libsystemd-network/network-internal.c \ |
e3169126 | 2978 | src/libsystemd-network/network-internal.h \ |
e3169126 | 2979 | src/libsystemd-network/sd-icmp6-nd.c \ |
3fb2c570 | 2980 | src/libsystemd-network/sd-dhcp6-client.c \ |
e3169126 | 2981 | src/libsystemd-network/dhcp6-internal.h \ |
228b2a12 | 2982 | src/libsystemd-network/dhcp6-protocol.h \ |
f12ed3bf | 2983 | src/libsystemd-network/dhcp6-network.c \ |
3fb2c570 PF |
2984 | src/libsystemd-network/dhcp6-option.c \ |
2985 | src/libsystemd-network/dhcp6-lease-internal.h \ | |
2986 | src/libsystemd-network/sd-dhcp6-lease.c | |
fe8db0c5 TG |
2987 | |
2988 | libsystemd_network_la_LIBADD = \ | |
5052e399 | 2989 | libudev-internal.la \ |
4ef0809c | 2990 | libsystemd-label.la \ |
c61be55d | 2991 | libsystemd-internal.la \ |
679be2a7 CR |
2992 | libsystemd-shared.la \ |
2993 | $(KMOD_LIBS) | |
c61be55d TG |
2994 | |
2995 | test_dhcp_option_SOURCES = \ | |
fe8db0c5 TG |
2996 | src/libsystemd-network/dhcp-protocol.h \ |
2997 | src/libsystemd-network/dhcp-internal.h \ | |
2998 | src/libsystemd-network/test-dhcp-option.c | |
c61be55d TG |
2999 | |
3000 | test_dhcp_option_LDADD = \ | |
fe8db0c5 | 3001 | libsystemd-network.la \ |
c61be55d TG |
3002 | libsystemd-internal.la \ |
3003 | libsystemd-shared.la | |
3004 | ||
3005 | test_dhcp_client_SOURCES = \ | |
3006 | src/systemd/sd-dhcp-client.h \ | |
fe8db0c5 TG |
3007 | src/libsystemd-network/dhcp-protocol.h \ |
3008 | src/libsystemd-network/dhcp-internal.h \ | |
3009 | src/libsystemd-network/test-dhcp-client.c | |
c61be55d TG |
3010 | |
3011 | test_dhcp_client_LDADD = \ | |
fe8db0c5 | 3012 | libsystemd-network.la \ |
4ef0809c | 3013 | libsystemd-label.la \ |
c61be55d | 3014 | libsystemd-internal.la \ |
c61be55d TG |
3015 | libsystemd-shared.la |
3016 | ||
b44cd882 TG |
3017 | test_dhcp_server_SOURCES = \ |
3018 | src/libsystemd-network/test-dhcp-server.c | |
3019 | ||
3020 | test_dhcp_server_LDADD = \ | |
3021 | libsystemd-network.la \ | |
3022 | libsystemd-internal.la \ | |
3023 | libsystemd-shared.la | |
3024 | ||
d9bf4f8c | 3025 | test_ipv4ll_SOURCES = \ |
5590bbe5 KS |
3026 | src/systemd/sd-ipv4ll.h \ |
3027 | src/libsystemd-network/ipv4ll-internal.h \ | |
3028 | src/libsystemd-network/test-ipv4ll.c | |
d9bf4f8c UTL |
3029 | |
3030 | test_ipv4ll_LDADD = \ | |
5590bbe5 KS |
3031 | libsystemd-network.la \ |
3032 | libsystemd-label.la \ | |
3033 | libsystemd-internal.la \ | |
3034 | libsystemd-shared.la | |
d9bf4f8c | 3035 | |
cda391c3 TG |
3036 | test_pppoe_SOURCES = \ |
3037 | src/systemd/sd-pppoe.h \ | |
3038 | src/libsystemd-network/test-pppoe.c | |
3039 | ||
3040 | test_pppoe_LDADD = \ | |
3041 | libsystemd-network.la \ | |
3042 | libsystemd-shared.la | |
3043 | ||
f20a35cc PF |
3044 | test_icmp6_rs_SOURCES = \ |
3045 | src/systemd/sd-dhcp6-client.h \ | |
ab2bc6fe | 3046 | src/systemd/sd-icmp6-nd.h \ |
f20a35cc PF |
3047 | src/libsystemd-network/dhcp6-internal.h \ |
3048 | src/libsystemd-network/test-icmp6-rs.c | |
3049 | ||
3050 | test_icmp6_rs_LDADD = \ | |
3051 | libsystemd-network.la \ | |
3052 | libsystemd-internal.la \ | |
3053 | libsystemd-shared.la | |
3054 | ||
813e3a6f PF |
3055 | test_dhcp6_client_SOURCES = \ |
3056 | src/systemd/sd-dhcp6-client.h \ | |
f12ed3bf | 3057 | src/libsystemd-network/dhcp6-internal.h \ |
813e3a6f PF |
3058 | src/libsystemd-network/test-dhcp6-client.c |
3059 | ||
3060 | test_dhcp6_client_LDADD = \ | |
3061 | libsystemd-network.la \ | |
3062 | libsystemd-internal.la \ | |
3063 | libsystemd-shared.la | |
3064 | ||
c61be55d TG |
3065 | tests += \ |
3066 | test-dhcp-option \ | |
d9bf4f8c | 3067 | test-dhcp-client \ |
b44cd882 | 3068 | test-dhcp-server \ |
f20a35cc | 3069 | test-ipv4ll \ |
813e3a6f PF |
3070 | test-icmp6-rs \ |
3071 | test-dhcp6-client | |
c61be55d | 3072 | |
cda391c3 TG |
3073 | manual_tests += \ |
3074 | test-pppoe | |
3075 | ||
84da4a30 | 3076 | # ------------------------------------------------------------------------------ |
545149a2 | 3077 | if ENABLE_TERMINAL |
84da4a30 DH |
3078 | noinst_LTLIBRARIES += \ |
3079 | libsystemd-terminal.la | |
3080 | ||
10595afb | 3081 | rootlibexec_PROGRAMS += \ |
ce7b9f50 DH |
3082 | systemd-consoled |
3083 | ||
545149a2 | 3084 | noinst_PROGRAMS += \ |
8e937190 | 3085 | systemd-evcat \ |
810626a8 | 3086 | systemd-modeset \ |
545149a2 DH |
3087 | systemd-subterm |
3088 | ||
056e86ee | 3089 | dist_pkgdata_DATA += \ |
86db5dfb DH |
3090 | src/libsystemd-terminal/unifont-glyph-array.bin |
3091 | ||
2355af60 TG |
3092 | nodist_userunit_DATA += \ |
3093 | units/user/systemd-consoled.service | |
3094 | ||
3095 | USER_DEFAULT_TARGET_WANTS += \ | |
3096 | systemd-consoled.service | |
3097 | ||
3098 | EXTRA_DIST += \ | |
3099 | units/user/systemd-consoled.service.in | |
3100 | ||
545149a2 DH |
3101 | tests += \ |
3102 | test-term-page \ | |
86db5dfb DH |
3103 | test-term-parser \ |
3104 | test-unifont | |
545149a2 DH |
3105 | endif |
3106 | ||
84da4a30 | 3107 | libsystemd_terminal_la_CFLAGS = \ |
c93e5a62 DH |
3108 | $(AM_CFLAGS) \ |
3109 | $(TERMINAL_CFLAGS) | |
84da4a30 DH |
3110 | |
3111 | libsystemd_terminal_la_SOURCES = \ | |
650c5444 DH |
3112 | src/libsystemd-terminal/grdev.h \ |
3113 | src/libsystemd-terminal/grdev-internal.h \ | |
3114 | src/libsystemd-terminal/grdev.c \ | |
f22e0bce | 3115 | src/libsystemd-terminal/grdev-drm.c \ |
e202fa31 DH |
3116 | src/libsystemd-terminal/idev.h \ |
3117 | src/libsystemd-terminal/idev-internal.h \ | |
3118 | src/libsystemd-terminal/idev.c \ | |
c93e5a62 | 3119 | src/libsystemd-terminal/idev-evdev.c \ |
e06cc7b0 | 3120 | src/libsystemd-terminal/idev-keyboard.c \ |
7ed3a638 DH |
3121 | src/libsystemd-terminal/sysview.h \ |
3122 | src/libsystemd-terminal/sysview-internal.h \ | |
3123 | src/libsystemd-terminal/sysview.c \ | |
a30f1425 | 3124 | src/libsystemd-terminal/term.h \ |
84da4a30 | 3125 | src/libsystemd-terminal/term-internal.h \ |
1c9633d6 | 3126 | src/libsystemd-terminal/term-charset.c \ |
84da4a30 | 3127 | src/libsystemd-terminal/term-page.c \ |
1c9633d6 | 3128 | src/libsystemd-terminal/term-parser.c \ |
e432f9e8 | 3129 | src/libsystemd-terminal/term-screen.c \ |
86db5dfb | 3130 | src/libsystemd-terminal/term-wcwidth.c \ |
c2977e5c DH |
3131 | src/libsystemd-terminal/unifont.h \ |
3132 | src/libsystemd-terminal/unifont-def.h \ | |
86db5dfb | 3133 | src/libsystemd-terminal/unifont.c |
84da4a30 DH |
3134 | |
3135 | libsystemd_terminal_la_LIBADD = \ | |
7ed3a638 | 3136 | libudev-internal.la \ |
84da4a30 | 3137 | libsystemd-internal.la \ |
c93e5a62 DH |
3138 | libsystemd-shared.la \ |
3139 | $(TERMINAL_LIBS) | |
84da4a30 | 3140 | |
ce7b9f50 DH |
3141 | systemd_consoled_CFLAGS = \ |
3142 | $(AM_CFLAGS) \ | |
3143 | $(TERMINAL_CFLAGS) | |
3144 | ||
3145 | systemd_consoled_SOURCES = \ | |
3146 | src/console/consoled.h \ | |
3147 | src/console/consoled.c \ | |
3148 | src/console/consoled-display.c \ | |
3149 | src/console/consoled-manager.c \ | |
3150 | src/console/consoled-session.c \ | |
3151 | src/console/consoled-terminal.c \ | |
3152 | src/console/consoled-workspace.c | |
3153 | ||
3154 | systemd_consoled_LDADD = \ | |
3155 | libsystemd-terminal.la \ | |
3156 | libsystemd-internal.la \ | |
3157 | libsystemd-shared.la \ | |
3158 | $(TERMINAL_LIBS) | |
3159 | ||
8e937190 DH |
3160 | systemd_evcat_CFLAGS = \ |
3161 | $(AM_CFLAGS) \ | |
3162 | $(TERMINAL_CFLAGS) | |
3163 | ||
3164 | systemd_evcat_SOURCES = \ | |
3165 | src/libsystemd-terminal/evcat.c | |
3166 | ||
3167 | systemd_evcat_LDADD = \ | |
3168 | libsystemd-terminal.la \ | |
3169 | libsystemd-internal.la \ | |
3170 | libsystemd-shared.la \ | |
3171 | $(TERMINAL_LIBS) | |
3172 | ||
810626a8 DH |
3173 | systemd_modeset_CFLAGS = \ |
3174 | $(AM_CFLAGS) \ | |
3175 | $(TERMINAL_CFLAGS) | |
3176 | ||
3177 | systemd_modeset_SOURCES = \ | |
3178 | src/libsystemd-terminal/modeset.c | |
3179 | ||
3180 | systemd_modeset_LDADD = \ | |
3181 | libsystemd-terminal.la \ | |
3182 | libsystemd-internal.la \ | |
3183 | libsystemd-shared.la \ | |
3184 | $(TERMINAL_LIBS) | |
3185 | ||
5ab887e9 DH |
3186 | systemd_subterm_SOURCES = \ |
3187 | src/libsystemd-terminal/subterm.c | |
3188 | ||
3189 | systemd_subterm_LDADD = \ | |
3190 | libsystemd-terminal.la \ | |
3191 | libsystemd-internal.la \ | |
3192 | libsystemd-shared.la | |
3193 | ||
84da4a30 DH |
3194 | test_term_page_SOURCES = \ |
3195 | src/libsystemd-terminal/test-term-page.c | |
3196 | ||
3197 | test_term_page_LDADD = \ | |
3198 | libsystemd-terminal.la \ | |
3199 | libsystemd-internal.la \ | |
3200 | libsystemd-shared.la | |
3201 | ||
1c9633d6 DH |
3202 | test_term_parser_SOURCES = \ |
3203 | src/libsystemd-terminal/test-term-parser.c | |
3204 | ||
3205 | test_term_parser_LDADD = \ | |
3206 | libsystemd-terminal.la \ | |
3207 | libsystemd-internal.la \ | |
3208 | libsystemd-shared.la | |
3209 | ||
86db5dfb DH |
3210 | test_unifont_SOURCES = \ |
3211 | src/libsystemd-terminal/test-unifont.c | |
3212 | ||
3213 | test_unifont_LDADD = \ | |
3214 | libsystemd-terminal.la \ | |
3215 | libsystemd-internal.la \ | |
3216 | libsystemd-shared.la | |
3217 | ||
86db5dfb | 3218 | .PHONY: update-unifont |
e091457e ZJS |
3219 | update-unifont: tools/compile-unifont.py |
3220 | $(AM_V_GEN)$(PYTHON) $< \ | |
3221 | <$(top_srcdir)/src/libsystemd-terminal/unifont.hex \ | |
3222 | >$(top_srcdir)/src/libsystemd-terminal/unifont-glyph-array.bin | |
3223 | @echo "unifont-glyph-array.bin has been regenerated" | |
86db5dfb | 3224 | |
3e214785 | 3225 | # ------------------------------------------------------------------------------ |
92ec4495 | 3226 | if ENABLE_GTK_DOC |
3e214785 | 3227 | SUBDIRS += \ |
bb061708 | 3228 | docs/libudev |
87cfe600 ZJS |
3229 | |
3230 | noinst_DATA += \ | |
3231 | docs/html/libudev \ | |
3232 | docs/html/gudev | |
92ec4495 | 3233 | endif |
3e214785 KS |
3234 | |
3235 | include_HEADERS += \ | |
bb061708 | 3236 | src/libudev/libudev.h |
3e214785 KS |
3237 | |
3238 | lib_LTLIBRARIES += \ | |
3239 | libudev.la | |
3240 | ||
3e214785 | 3241 | libudev_la_SOURCES =\ |
dc579853 | 3242 | src/libudev/libudev.sym \ |
bb061708 KS |
3243 | src/libudev/libudev-private.h \ |
3244 | src/libudev/libudev.c \ | |
3245 | src/libudev/libudev-list.c \ | |
3246 | src/libudev/libudev-util.c \ | |
3247 | src/libudev/libudev-device.c \ | |
3248 | src/libudev/libudev-enumerate.c \ | |
3249 | src/libudev/libudev-monitor.c \ | |
2001208c KS |
3250 | src/libudev/libudev-queue.c \ |
3251 | src/libudev/libudev-hwdb-def.h \ | |
3252 | src/libudev/libudev-hwdb.c | |
3e214785 | 3253 | |
04a9d3a0 KS |
3254 | libudev_la_CFLAGS = \ |
3255 | $(AM_CFLAGS) \ | |
3256 | -fvisibility=hidden | |
3257 | ||
3e214785 KS |
3258 | libudev_la_LDFLAGS = \ |
3259 | $(AM_LDFLAGS) \ | |
20bbd54f KS |
3260 | -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \ |
3261 | -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym | |
3e214785 | 3262 | |
33502ffe | 3263 | libudev_la_LIBADD = \ |
0ebee881 | 3264 | libsystemd-internal.la \ |
48d7417d | 3265 | libsystemd-shared.la |
33502ffe | 3266 | |
3e214785 | 3267 | pkgconfiglib_DATA += \ |
bb061708 | 3268 | src/libudev/libudev.pc |
3e214785 KS |
3269 | |
3270 | EXTRA_DIST += \ | |
dc579853 | 3271 | src/libudev/libudev.pc.in |
3e214785 KS |
3272 | |
3273 | CLEANFILES += \ | |
87cfe600 ZJS |
3274 | src/libudev/libudev.pc \ |
3275 | docs/html/libudev \ | |
3276 | docs/html/gudev | |
3277 | ||
3278 | docs/html/libudev: | |
3279 | $(AM_V_at)$(MKDIR_P) $(dir $@) | |
3280 | $(AM_V_LN)$(LN_S) -f ../libudev/html $@ | |
3281 | ||
3282 | docs/html/gudev: | |
3283 | $(AM_V_at)$(MKDIR_P) $(dir $@) | |
3284 | $(AM_V_LN)$(LN_S) -f ../gudev/html $@ | |
3e214785 KS |
3285 | |
3286 | # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed | |
24fdc230 ZJS |
3287 | libudev-install-hook: |
3288 | libname=libudev.so && $(move-to-rootlibdir) | |
3e214785 | 3289 | |
24fdc230 | 3290 | libudev-uninstall-hook: |
3e214785 KS |
3291 | rm -f $(DESTDIR)$(rootlibdir)/libudev.so* |
3292 | ||
24fdc230 ZJS |
3293 | INSTALL_EXEC_HOOKS += libudev-install-hook |
3294 | UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook | |
3e214785 | 3295 | |
04a9d3a0 KS |
3296 | # ------------------------------------------------------------------------------ |
3297 | noinst_LTLIBRARIES += \ | |
48d7417d | 3298 | libudev-internal.la |
04a9d3a0 | 3299 | |
48d7417d | 3300 | libudev_internal_la_SOURCES =\ |
04a9d3a0 | 3301 | $(libudev_la_SOURCES) \ |
9ea28c55 | 3302 | src/libudev/libudev-device-private.c |
04a9d3a0 | 3303 | |
48d7417d | 3304 | libudev_internal_la_CFLAGS = \ |
49e942b2 | 3305 | $(AM_CFLAGS) \ |
49e942b2 | 3306 | -fvisibility=default |
04a9d3a0 | 3307 | |
3e214785 | 3308 | # ------------------------------------------------------------------------------ |
63ed840e ZJS |
3309 | INSTALL_DIRS += \ |
3310 | $(sysconfdir)/udev/rules.d \ | |
3311 | $(sysconfdir)/udev/hwdb.d | |
3e214785 | 3312 | |
9dc670ea | 3313 | dist_network_DATA = \ |
dd4d2c1c | 3314 | network/99-default.link \ |
4eaea664 LP |
3315 | network/80-container-host0.network \ |
3316 | network/80-container-ve.network | |
daeb71a3 | 3317 | |
3e214785 | 3318 | dist_udevrules_DATA += \ |
3e214785 KS |
3319 | rules/42-usb-hid-pm.rules \ |
3320 | rules/50-udev-default.rules \ | |
0a8da830 | 3321 | rules/60-drm.rules \ |
9d7d42bc | 3322 | rules/60-keyboard.rules \ |
3e214785 KS |
3323 | rules/60-persistent-storage-tape.rules \ |
3324 | rules/60-persistent-serial.rules \ | |
3325 | rules/60-persistent-input.rules \ | |
3326 | rules/60-persistent-alsa.rules \ | |
3327 | rules/60-persistent-storage.rules \ | |
0bb91b50 | 3328 | rules/64-btrfs.rules \ |
3e214785 KS |
3329 | rules/75-net-description.rules \ |
3330 | rules/75-tty-description.rules \ | |
3331 | rules/78-sound-card.rules \ | |
3e137a1b | 3332 | rules/80-net-setup-link.rules \ |
3e214785 KS |
3333 | rules/95-udev-late.rules |
3334 | ||
e2eb18d5 A |
3335 | nodist_udevrules_DATA += \ |
3336 | rules/99-systemd.rules | |
3337 | ||
796b06c2 | 3338 | dist_udevhwdb_DATA = \ |
1d09582a | 3339 | hwdb/20-pci-vendor-model.hwdb \ |
cf7ebcea | 3340 | hwdb/20-pci-classes.hwdb \ |
1d09582a | 3341 | hwdb/20-usb-vendor-model.hwdb \ |
8db6dcfd | 3342 | hwdb/20-usb-classes.hwdb \ |
d5f7759a MH |
3343 | hwdb/20-sdio-vendor-model.hwdb \ |
3344 | hwdb/20-sdio-classes.hwdb \ | |
94f5bbc6 | 3345 | hwdb/20-bluetooth-vendor-product.hwdb \ |
448004c3 | 3346 | hwdb/20-acpi-vendor.hwdb \ |
ddc77f62 | 3347 | hwdb/20-OUI.hwdb \ |
e51660ae | 3348 | hwdb/20-net-ifname.hwdb \ |
ddc77f62 | 3349 | hwdb/60-keyboard.hwdb |
796b06c2 | 3350 | |
3e214785 KS |
3351 | udevconfdir = $(sysconfdir)/udev |
3352 | dist_udevconf_DATA = \ | |
3353 | src/udev/udev.conf | |
3354 | ||
3355 | sharepkgconfigdir = $(datadir)/pkgconfig | |
3356 | sharepkgconfig_DATA = \ | |
3357 | src/udev/udev.pc | |
3358 | ||
3359 | EXTRA_DIST += \ | |
3360 | rules/99-systemd.rules.in \ | |
3361 | src/udev/udev.pc.in | |
3362 | ||
3363 | CLEANFILES += \ | |
3364 | rules/99-systemd.rules \ | |
3365 | src/udev/udev.pc | |
3366 | ||
3367 | EXTRA_DIST += \ | |
51dfddc2 | 3368 | units/systemd-udevd.service.in \ |
f13b388f | 3369 | units/systemd-udev-trigger.service.in \ |
ecde7065 LP |
3370 | units/systemd-udev-settle.service.in \ |
3371 | units/systemd-udev-hwdb-update.service.in | |
3e214785 KS |
3372 | |
3373 | CLEANFILES += \ | |
51dfddc2 | 3374 | units/systemd-udevd.service \ |
f13b388f | 3375 | units/systemd-udev-trigger.service \ |
ecde7065 LP |
3376 | units/systemd-udev-settle.service \ |
3377 | units/systemd-udev-hwdb-update.service | |
3e214785 | 3378 | |
6ff39241 ZJS |
3379 | SOCKETS_TARGET_WANTS += \ |
3380 | systemd-udevd-control.socket \ | |
3381 | systemd-udevd-kernel.socket | |
ecde7065 | 3382 | |
6ff39241 ZJS |
3383 | SYSINIT_TARGET_WANTS += \ |
3384 | systemd-udevd.service \ | |
ecde7065 LP |
3385 | systemd-udev-trigger.service \ |
3386 | systemd-udev-hwdb-update.service | |
3e214785 | 3387 | |
f432bb91 | 3388 | rootbin_PROGRAMS += \ |
3e214785 KS |
3389 | udevadm |
3390 | ||
f13b388f KS |
3391 | rootlibexec_PROGRAMS += \ |
3392 | systemd-udevd | |
3e214785 | 3393 | |
04a9d3a0 KS |
3394 | noinst_LTLIBRARIES += \ |
3395 | libudev-core.la | |
3396 | ||
dff55e5d | 3397 | src/udev/keyboard-keys.txt: |
9d7d42bc KS |
3398 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
3399 | $(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/' > $@ | |
3400 | ||
dff55e5d | 3401 | src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt |
9d7d42bc KS |
3402 | $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@ |
3403 | ||
dff55e5d | 3404 | src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf |
9d7d42bc KS |
3405 | $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@ |
3406 | ||
dff55e5d | 3407 | src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt |
9d7d42bc KS |
3408 | $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@ |
3409 | ||
04a9d3a0 | 3410 | libudev_core_la_SOURCES = \ |
3e214785 KS |
3411 | src/udev/udev.h \ |
3412 | src/udev/udev-event.c \ | |
3413 | src/udev/udev-watch.c \ | |
3414 | src/udev/udev-node.c \ | |
3415 | src/udev/udev-rules.c \ | |
3416 | src/udev/udev-ctrl.c \ | |
3417 | src/udev/udev-builtin.c \ | |
0bb91b50 | 3418 | src/udev/udev-builtin-btrfs.c \ |
3e214785 KS |
3419 | src/udev/udev-builtin-hwdb.c \ |
3420 | src/udev/udev-builtin-input_id.c \ | |
9d7d42bc | 3421 | src/udev/udev-builtin-keyboard.c \ |
a660c63c | 3422 | src/udev/udev-builtin-net_id.c \ |
0b99c9f8 | 3423 | src/udev/udev-builtin-net_setup_link.c \ |
3e214785 | 3424 | src/udev/udev-builtin-path_id.c \ |
af6f0d42 TG |
3425 | src/udev/udev-builtin-usb_id.c \ |
3426 | src/udev/net/link-config.h \ | |
a5010333 TG |
3427 | src/udev/net/link-config.c \ |
3428 | src/udev/net/ethtool-util.h \ | |
3429 | src/udev/net/ethtool-util.c | |
3e214785 | 3430 | |
9d7d42bc KS |
3431 | nodist_libudev_core_la_SOURCES = \ |
3432 | src/udev/keyboard-keys-from-name.h \ | |
af6f0d42 TG |
3433 | src/udev/keyboard-keys-to-name.h \ |
3434 | src/udev/net/link-config-gperf.c | |
9d7d42bc KS |
3435 | |
3436 | BUILT_SOURCES += \ | |
3437 | $(nodist_libudev_core_la_SOURCES) | |
3438 | ||
3439 | CLEANFILES += \ | |
3440 | src/udev/keyboard-keys-from-name.gperf \ | |
af6f0d42 TG |
3441 | src/udev/keyboard-keys.txt \ |
3442 | src/udev/net/link-config-gperf.c | |
3443 | ||
3444 | EXTRA_DIST += \ | |
3445 | src/udev/net/link-config-gperf.gperf | |
9d7d42bc | 3446 | |
04a9d3a0 | 3447 | libudev_core_la_CFLAGS = \ |
235450b0 | 3448 | $(AM_CFLAGS) \ |
3e214785 KS |
3449 | $(BLKID_CFLAGS) \ |
3450 | $(KMOD_CFLAGS) | |
3451 | ||
04a9d3a0 | 3452 | libudev_core_la_LIBADD = \ |
48d7417d | 3453 | libudev-internal.la \ |
9e13dbae | 3454 | libsystemd-label.la \ |
0b54473e | 3455 | libsystemd-internal.la \ |
c6f7c917 | 3456 | libsystemd-network.la \ |
48d7417d | 3457 | libsystemd-shared.la \ |
3e214785 KS |
3458 | $(BLKID_LIBS) \ |
3459 | $(KMOD_LIBS) | |
3460 | ||
e3043162 TG |
3461 | if HAVE_KMOD |
3462 | libudev_core_la_SOURCES += \ | |
3463 | src/udev/udev-builtin-kmod.c | |
a3bd8447 TG |
3464 | |
3465 | dist_udevrules_DATA += \ | |
3466 | rules/80-drivers.rules | |
e3043162 TG |
3467 | endif |
3468 | ||
f553b3b1 AO |
3469 | if HAVE_BLKID |
3470 | libudev_core_la_SOURCES += \ | |
3471 | src/udev/udev-builtin-blkid.c | |
3472 | endif | |
3473 | ||
83cd6b75 | 3474 | if HAVE_ACL |
04a9d3a0 | 3475 | libudev_core_la_SOURCES += \ |
83cd6b75 | 3476 | src/udev/udev-builtin-uaccess.c \ |
4193534e | 3477 | src/login/logind-acl.c \ |
58dfc42e LP |
3478 | src/libsystemd/sd-login/sd-login.c \ |
3479 | src/systemd/sd-login.h | |
83cd6b75 | 3480 | |
04a9d3a0 | 3481 | libudev_core_la_LIBADD += \ |
78b2e3a6 | 3482 | libsystemd-acl.la |
83cd6b75 KS |
3483 | endif |
3484 | ||
f13b388f | 3485 | systemd_udevd_SOURCES = \ |
83cd6b75 | 3486 | src/udev/udevd.c |
3e214785 | 3487 | |
f13b388f | 3488 | systemd_udevd_LDADD = \ |
d33e31f8 | 3489 | libudev-core.la |
3e214785 KS |
3490 | |
3491 | udevadm_SOURCES = \ | |
3e214785 KS |
3492 | src/udev/udevadm.c \ |
3493 | src/udev/udevadm-info.c \ | |
3494 | src/udev/udevadm-control.c \ | |
3495 | src/udev/udevadm-monitor.c \ | |
796b06c2 | 3496 | src/udev/udevadm-hwdb.c \ |
3e214785 KS |
3497 | src/udev/udevadm-settle.c \ |
3498 | src/udev/udevadm-trigger.c \ | |
3499 | src/udev/udevadm-test.c \ | |
3500 | src/udev/udevadm-test-builtin.c | |
3501 | ||
3e214785 | 3502 | udevadm_LDADD = \ |
48d7417d | 3503 | libudev-core.la |
3e214785 | 3504 | |
c4eb3681 KS |
3505 | # Update hwdb on installation. Do not bother if installing |
3506 | # in DESTDIR, since this is likely for packaging purposes. | |
3507 | hwdb-update-hook: | |
f432bb91 | 3508 | -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update |
c4eb3681 KS |
3509 | |
3510 | INSTALL_DATA_HOOKS += \ | |
3511 | hwdb-update-hook | |
3512 | ||
ee623f0d | 3513 | hwdb-remove-hook: |
beb23689 | 3514 | -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin |
ee623f0d | 3515 | |
3e214785 | 3516 | # ------------------------------------------------------------------------------ |
6b8b149a | 3517 | TESTS += \ |
0b87a077 KS |
3518 | test/udev-test.pl \ |
3519 | test/rules-test.sh | |
3e214785 | 3520 | |
cee22bd3 | 3521 | manual_tests += \ |
3e214785 KS |
3522 | test-libudev \ |
3523 | test-udev | |
3524 | ||
3525 | test_libudev_SOURCES = \ | |
0b87a077 | 3526 | src/test/test-libudev.c |
3e214785 KS |
3527 | |
3528 | test_libudev_LDADD = \ | |
9e13dbae | 3529 | libsystemd-label.la \ |
48d7417d KS |
3530 | libudev-internal.la \ |
3531 | libsystemd-shared.la | |
3e214785 KS |
3532 | |
3533 | test_udev_SOURCES = \ | |
4cb72937 | 3534 | src/test/test-udev.c |
3e214785 | 3535 | |
3e214785 | 3536 | test_udev_LDADD = \ |
4cb72937 | 3537 | libudev-core.la \ |
6ada823a KS |
3538 | $(BLKID_LIBS) \ |
3539 | $(KMOD_LIBS) \ | |
3540 | $(SELINUX_LIBS) | |
3541 | ||
3542 | if HAVE_ACL | |
3543 | test_udev_LDADD += \ | |
3544 | libsystemd-acl.la | |
3545 | endif | |
3e214785 | 3546 | |
9b80f05f | 3547 | check_DATA += \ |
0b87a077 | 3548 | test/sys |
3e214785 KS |
3549 | |
3550 | # packed sysfs test tree | |
0b87a077 | 3551 | test/sys: |
bd923ff2 ZJS |
3552 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
3553 | $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz | |
3e214785 KS |
3554 | |
3555 | test-sys-distclean: | |
0b87a077 | 3556 | -rm -rf test/sys |
3e214785 KS |
3557 | DISTCLEAN_LOCAL_HOOKS += test-sys-distclean |
3558 | ||
3559 | EXTRA_DIST += \ | |
0b87a077 KS |
3560 | test/sys.tar.xz \ |
3561 | test/udev-test.pl \ | |
3562 | test/rules-test.sh \ | |
3563 | test/rule-syntax-check.py | |
3e214785 KS |
3564 | |
3565 | # ------------------------------------------------------------------------------ | |
3566 | ata_id_SOURCES = \ | |
3567 | src/udev/ata_id/ata_id.c | |
3568 | ||
3569 | ata_id_LDADD = \ | |
48d7417d | 3570 | libudev-internal.la \ |
49e942b2 | 3571 | libsystemd-shared.la |
3e214785 KS |
3572 | |
3573 | udevlibexec_PROGRAMS += \ | |
3574 | ata_id | |
3575 | ||
3576 | # ------------------------------------------------------------------------------ | |
3577 | cdrom_id_SOURCES = \ | |
3578 | src/udev/cdrom_id/cdrom_id.c | |
3579 | ||
3580 | cdrom_id_LDADD = \ | |
48d7417d | 3581 | libudev-internal.la \ |
49e942b2 | 3582 | libsystemd-shared.la |
3e214785 KS |
3583 | |
3584 | udevlibexec_PROGRAMS += \ | |
3585 | cdrom_id | |
3586 | ||
3587 | dist_udevrules_DATA += \ | |
20d83f2f | 3588 | rules/60-cdrom_id.rules |
3e214785 KS |
3589 | |
3590 | # ------------------------------------------------------------------------------ | |
3591 | collect_SOURCES = \ | |
3592 | src/udev/collect/collect.c | |
3593 | ||
3594 | collect_LDADD = \ | |
48d7417d KS |
3595 | libudev-internal.la \ |
3596 | libsystemd-shared.la | |
3e214785 KS |
3597 | |
3598 | udevlibexec_PROGRAMS += \ | |
3599 | collect | |
3600 | ||
3601 | # ------------------------------------------------------------------------------ | |
3602 | scsi_id_SOURCES =\ | |
3603 | src/udev/scsi_id/scsi_id.c \ | |
3604 | src/udev/scsi_id/scsi_serial.c \ | |
3605 | src/udev/scsi_id/scsi.h \ | |
3606 | src/udev/scsi_id/scsi_id.h | |
3607 | ||
3608 | scsi_id_LDADD = \ | |
48d7417d | 3609 | libudev-internal.la \ |
49e942b2 | 3610 | libsystemd-shared.la |
3e214785 KS |
3611 | |
3612 | udevlibexec_PROGRAMS += \ | |
3613 | scsi_id | |
3614 | ||
3615 | EXTRA_DIST += \ | |
3616 | src/udev/scsi_id/README | |
3617 | ||
3618 | # ------------------------------------------------------------------------------ | |
3619 | v4l_id_SOURCES = \ | |
3620 | src/udev/v4l_id/v4l_id.c | |
3621 | ||
3622 | v4l_id_LDADD = \ | |
48d7417d | 3623 | libudev-internal.la |
3e214785 KS |
3624 | |
3625 | udevlibexec_PROGRAMS += \ | |
3626 | v4l_id | |
3627 | ||
3628 | dist_udevrules_DATA += \ | |
20d83f2f | 3629 | rules/60-persistent-v4l.rules |
3e214785 KS |
3630 | |
3631 | # ------------------------------------------------------------------------------ | |
3632 | accelerometer_SOURCES = \ | |
3633 | src/udev/accelerometer/accelerometer.c | |
3634 | ||
3635 | accelerometer_LDADD = \ | |
48d7417d | 3636 | libudev-internal.la -lm \ |
49e942b2 | 3637 | libsystemd-shared.la |
3e214785 KS |
3638 | |
3639 | udevlibexec_PROGRAMS += \ | |
3640 | accelerometer | |
3641 | ||
3642 | dist_udevrules_DATA += \ | |
20d83f2f | 3643 | rules/61-accelerometer.rules |
3e214785 KS |
3644 | |
3645 | # ------------------------------------------------------------------------------ | |
3646 | if ENABLE_GUDEV | |
92ec4495 | 3647 | if ENABLE_GTK_DOC |
3e214785 | 3648 | SUBDIRS += \ |
bb061708 | 3649 | docs/gudev |
92ec4495 | 3650 | endif |
3e214785 KS |
3651 | |
3652 | libgudev_includedir = \ | |
3653 | $(includedir)/gudev-1.0/gudev | |
3654 | ||
3655 | libgudev_include_HEADERS = \ | |
bb061708 KS |
3656 | src/gudev/gudev.h \ |
3657 | src/gudev/gudevenums.h \ | |
3658 | src/gudev/gudevenumtypes.h \ | |
3659 | src/gudev/gudevtypes.h \ | |
3660 | src/gudev/gudevclient.h \ | |
3661 | src/gudev/gudevdevice.h \ | |
3662 | src/gudev/gudevenumerator.h | |
3e214785 KS |
3663 | |
3664 | lib_LTLIBRARIES += libgudev-1.0.la | |
3665 | ||
3666 | pkgconfiglib_DATA += \ | |
bb061708 | 3667 | src/gudev/gudev-1.0.pc |
3e214785 | 3668 | |
3e214785 | 3669 | CLEANFILES += \ |
bb061708 | 3670 | src/gudev/gudev-1.0.pc |
3e214785 KS |
3671 | |
3672 | libgudev_1_0_la_SOURCES = \ | |
706b7936 | 3673 | src/gudev/libgudev-1.0.sym \ |
bb061708 KS |
3674 | src/gudev/gudevenums.h \ |
3675 | src/gudev/gudevenumtypes.h \ | |
3676 | src/gudev/gudevenumtypes.h\ | |
3677 | src/gudev/gudevtypes.h \ | |
3678 | src/gudev/gudevclient.h \ | |
3679 | src/gudev/gudevclient.c \ | |
3680 | src/gudev/gudevdevice.h \ | |
3681 | src/gudev/gudevdevice.c \ | |
3682 | src/gudev/gudevenumerator.h \ | |
3683 | src/gudev/gudevenumerator.c \ | |
3684 | src/gudev/gudevprivate.h | |
3e214785 KS |
3685 | |
3686 | nodist_libgudev_1_0_la_SOURCES = \ | |
bb061708 KS |
3687 | src/gudev/gudevmarshal.h \ |
3688 | src/gudev/gudevmarshal.c \ | |
3689 | src/gudev/gudevenumtypes.h \ | |
3690 | src/gudev/gudevenumtypes.c | |
3e214785 KS |
3691 | |
3692 | BUILT_SOURCES += \ | |
3693 | $(nodist_libgudev_1_0_la_SOURCES) | |
3694 | ||
3695 | libgudev_1_0_la_CPPFLAGS = \ | |
3696 | $(AM_CPPFLAGS) \ | |
3697 | -I$(top_builddir)/src\ | |
3698 | -I$(top_srcdir)/src\ | |
bb061708 KS |
3699 | -I$(top_builddir)/src/gudev \ |
3700 | -I$(top_srcdir)/src/gudev \ | |
3e214785 KS |
3701 | -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \ |
3702 | -D_GUDEV_COMPILATION \ | |
3703 | -DG_LOG_DOMAIN=\"GUdev\" | |
3704 | ||
3705 | libgudev_1_0_la_CFLAGS = \ | |
235450b0 | 3706 | $(AM_CFLAGS) \ |
3e214785 KS |
3707 | -fvisibility=default \ |
3708 | $(GLIB_CFLAGS) | |
3709 | ||
3710 | libgudev_1_0_la_LIBADD = \ | |
3711 | libudev.la \ | |
3712 | $(GLIB_LIBS) | |
3713 | ||
3714 | libgudev_1_0_la_LDFLAGS = \ | |
f7b6a32e | 3715 | $(AM_LDFLAGS) \ |
3e214785 | 3716 | -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \ |
706b7936 KS |
3717 | -export-dynamic \ |
3718 | -no-undefined \ | |
3719 | -Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym | |
3e214785 | 3720 | |
bb061708 | 3721 | src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list |
bd923ff2 | 3722 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
3e214785 KS |
3723 | $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@ |
3724 | ||
bb061708 | 3725 | src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list |
bd923ff2 ZJS |
3726 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
3727 | $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \ | |
3e214785 KS |
3728 | glib-genmarshal $< --prefix=g_udev_marshal --body >> $@ |
3729 | ||
bd923ff2 ZJS |
3730 | src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h |
3731 | $(AM_V_at)$(MKDIR_P) $(dir $@) | |
3732 | $(AM_V_GEN)glib-mkenums --template $^ > $@ | |
3e214785 | 3733 | |
0eaeca1f | 3734 | if HAVE_INTROSPECTION |
d5449fdc MAP |
3735 | -include $(INTROSPECTION_MAKEFILE) |
3736 | ||
bb061708 | 3737 | src/gudev/GUdev-1.0.gir: libgudev-1.0.la |
d5449fdc | 3738 | |
bb061708 | 3739 | src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0 |
d5449fdc | 3740 | |
bb061708 | 3741 | src_gudev_GUdev_1_0_gir_CFLAGS = \ |
145d2258 | 3742 | $(AM_CFLAGS) \ |
d5449fdc MAP |
3743 | $(INCLUDES) \ |
3744 | -D_GUDEV_COMPILATION \ | |
3745 | -D_GUDEV_WORK_AROUND_DEV_T_BUG \ | |
bb061708 KS |
3746 | -I$(top_srcdir)/src \ |
3747 | -I$(top_builddir)/src \ | |
145d2258 KS |
3748 | -I$(top_srcdir)/src/gudev \ |
3749 | -I$(top_builddir)/src/gudev | |
d5449fdc | 3750 | |
bb061708 | 3751 | src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la |
d5449fdc | 3752 | |
bb061708 | 3753 | src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \ |
d5449fdc MAP |
3754 | --pkg-export=gudev-1.0 \ |
3755 | --warn-all | |
3756 | ||
bb061708 | 3757 | src_gudev_GUdev_1_0_gir_FILES = \ |
cd8654b1 ZJS |
3758 | src/gudev/gudev.h \ |
3759 | src/gudev/gudevtypes.h \ | |
3760 | src/gudev/gudevenums.h \ | |
3761 | src/gudev/gudevenumtypes.h \ | |
3762 | src/gudev/gudevclient.h \ | |
3763 | src/gudev/gudevdevice.h \ | |
3764 | src/gudev/gudevenumerator.h \ | |
3765 | src/gudev/gudevclient.c \ | |
3766 | src/gudev/gudevdevice.c \ | |
3767 | src/gudev/gudevenumerator.c | |
bb061708 KS |
3768 | |
3769 | INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir | |
d5449fdc MAP |
3770 | INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h |
3771 | ||
3772 | girdir = $(datadir)/gir-1.0 | |
3e214785 | 3773 | gir_DATA = \ |
bb061708 | 3774 | src/gudev/GUdev-1.0.gir |
3e214785 | 3775 | |
d5449fdc | 3776 | typelibsdir = $(libdir)/girepository-1.0 |
3e214785 | 3777 | typelibs_DATA = \ |
bb061708 | 3778 | src/gudev/GUdev-1.0.typelib |
3e214785 KS |
3779 | |
3780 | CLEANFILES += $(gir_DATA) $(typelibs_DATA) | |
0eaeca1f | 3781 | endif # HAVE_INTROSPECTION |
3e214785 KS |
3782 | endif |
3783 | ||
299031ca BK |
3784 | EXTRA_DIST += \ |
3785 | src/gudev/gudev-1.0.pc.in \ | |
3786 | src/gudev/gudevmarshal.list \ | |
3787 | src/gudev/gudevenumtypes.h.template \ | |
3788 | src/gudev/gudevenumtypes.c.template \ | |
3789 | src/gudev/gjs-example.js \ | |
3790 | src/gudev/seed-example-enum.js \ | |
3791 | src/gudev/seed-example.js | |
3792 | ||
3e214785 KS |
3793 | # ------------------------------------------------------------------------------ |
3794 | mtd_probe_SOURCES = \ | |
3795 | src/udev/mtd_probe/mtd_probe.c \ | |
3796 | src/udev/mtd_probe/mtd_probe.h \ | |
3797 | src/udev/mtd_probe/probe_smartmedia.c | |
3798 | ||
3e214785 | 3799 | dist_udevrules_DATA += \ |
20d83f2f | 3800 | rules/75-probe_mtd.rules |
3e214785 KS |
3801 | |
3802 | udevlibexec_PROGRAMS += \ | |
3803 | mtd_probe | |
3804 | ||
48d437bb | 3805 | # ------------------------------------------------------------------------------ |
48d437bb | 3806 | test_id128_SOURCES = \ |
379079ba | 3807 | src/test/test-id128.c |
051c7d1e | 3808 | |
48d437bb | 3809 | test_id128_LDADD = \ |
be127913 | 3810 | libsystemd-internal.la \ |
48d7417d | 3811 | libsystemd-shared.la |
051c7d1e | 3812 | |
cee22bd3 | 3813 | tests += \ |
e0eaab7c KS |
3814 | test-id128 |
3815 | ||
2ca0435b ZJS |
3816 | # ------------------------------------------------------------------------------ |
3817 | ||
3818 | rootlibexec_PROGRAMS += \ | |
3819 | systemd-activate | |
3820 | ||
3821 | systemd_activate_SOURCES = \ | |
3822 | src/activate/activate.c | |
3823 | ||
3824 | systemd_activate_LDADD = \ | |
175a3d25 | 3825 | libsystemd-label.la \ |
0ebee881 | 3826 | libsystemd-internal.la \ |
48d7417d | 3827 | libsystemd-shared.la |
2ca0435b | 3828 | |
48d437bb KS |
3829 | # ------------------------------------------------------------------------------ |
3830 | systemd_journald_SOURCES = \ | |
3831 | src/journal/journald.c \ | |
d025f1e4 | 3832 | src/journal/journald-server.h |
e6960940 | 3833 | |
48d437bb | 3834 | systemd_journald_LDADD = \ |
f9a810be | 3835 | libsystemd-journal-core.la \ |
6bb648a1 | 3836 | libsystemd-internal.la \ |
f9a810be | 3837 | libsystemd-shared.la |
2a018e83 | 3838 | |
755a02c6 | 3839 | systemd_cat_SOURCES = \ |
6185ac1e | 3840 | src/journal/cat.c |
755a02c6 LP |
3841 | |
3842 | systemd_cat_LDADD = \ | |
48d7417d | 3843 | libsystemd-journal-core.la |
755a02c6 | 3844 | |
cc64d017 ZJS |
3845 | if HAVE_MICROHTTPD |
3846 | rootlibexec_PROGRAMS += \ | |
3847 | systemd-journal-remote | |
3848 | ||
fdfccdbc | 3849 | systemd_journal_remote_SOURCES = \ |
1e4e7b71 ZJS |
3850 | src/journal-remote/journal-remote-parse.h \ |
3851 | src/journal-remote/journal-remote-parse.c \ | |
3852 | src/journal-remote/journal-remote-write.h \ | |
3853 | src/journal-remote/journal-remote-write.c \ | |
9ff48d09 | 3854 | src/journal-remote/journal-remote.h \ |
1e4e7b71 | 3855 | src/journal-remote/journal-remote.c |
fdfccdbc ZJS |
3856 | |
3857 | systemd_journal_remote_LDADD = \ | |
3858 | libsystemd-internal.la \ | |
3859 | libsystemd-journal-core.la | |
3860 | ||
cc64d017 | 3861 | systemd_journal_remote_SOURCES += \ |
1e4e7b71 ZJS |
3862 | src/journal-remote/microhttpd-util.h \ |
3863 | src/journal-remote/microhttpd-util.c | |
cc64d017 ZJS |
3864 | |
3865 | systemd_journal_remote_CFLAGS = \ | |
3866 | $(AM_CFLAGS) \ | |
3867 | $(MICROHTTPD_CFLAGS) | |
3868 | ||
3869 | systemd_journal_remote_LDADD += \ | |
3870 | $(MICROHTTPD_LIBS) | |
3871 | ||
3872 | if HAVE_GNUTLS | |
3873 | systemd_journal_remote_LDADD += \ | |
3874 | $(GNUTLS_LIBS) | |
ad95fd1d ZJS |
3875 | |
3876 | # systemd-journal-remote make sense mostly with full crypto stack | |
3877 | dist_systemunit_DATA += \ | |
3878 | units/systemd-journal-remote.socket | |
3879 | ||
3880 | nodist_systemunit_DATA += \ | |
3881 | units/systemd-journal-remote.service | |
3882 | ||
3883 | EXTRA_DIST += \ | |
3884 | units/systemd-journal-remote.service.in | |
3885 | ||
3886 | journal-remote-install-hook: journal-install-hook | |
3887 | -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote | |
3888 | -chown 0:0 $(DESTDIR)/var/log/journal/remote | |
3889 | -chmod 755 $(DESTDIR)/var/log/journal/remote | |
3890 | ||
3891 | INSTALL_EXEC_HOOKS += journal-remote-install-hook | |
3892 | ||
cc64d017 | 3893 | endif |
ad95fd1d ZJS |
3894 | |
3895 | nodist_pkgsysconf_DATA += \ | |
3896 | src/journal-remote/journal-remote.conf | |
3897 | ||
3898 | EXTRA_DIST += \ | |
3899 | src/journal-remote/journal-remote.conf.in | |
3900 | ||
3901 | CLEANFILES += \ | |
3902 | src/journal-remote/journal-remote.conf | |
cc64d017 ZJS |
3903 | endif |
3904 | ||
3d090cc6 ZJS |
3905 | if HAVE_LIBCURL |
3906 | rootlibexec_PROGRAMS += \ | |
3907 | systemd-journal-upload | |
3908 | ||
3909 | systemd_journal_upload_SOURCES = \ | |
3910 | src/journal-remote/journal-upload.h \ | |
eacbb4d3 ZJS |
3911 | src/journal-remote/journal-upload.c \ |
3912 | src/journal-remote/journal-upload-journal.c | |
3d090cc6 ZJS |
3913 | |
3914 | systemd_journal_upload_CFLAGS = \ | |
3915 | $(AM_CFLAGS) \ | |
3916 | $(LIBCURL_CFLAGS) | |
3917 | ||
3918 | systemd_journal_upload_LDADD = \ | |
3919 | libsystemd-core.la \ | |
3920 | libsystemd-internal.la \ | |
eacbb4d3 ZJS |
3921 | libsystemd-journal-internal.la \ |
3922 | libsystemd-shared.la \ | |
3d090cc6 | 3923 | $(LIBCURL_LIBS) |
ad95fd1d ZJS |
3924 | |
3925 | nodist_systemunit_DATA += \ | |
3926 | units/systemd-journal-upload.service | |
3927 | ||
3928 | EXTRA_DIST += \ | |
3929 | units/systemd-journal-upload.service.in | |
29fc0ddc ZJS |
3930 | |
3931 | nodist_pkgsysconf_DATA += \ | |
3932 | src/journal-remote/journal-upload.conf | |
3933 | ||
3934 | EXTRA_DIST += \ | |
3935 | src/journal-remote/journal-upload.conf.in | |
3936 | ||
3937 | CLEANFILES += \ | |
3938 | src/journal-remote/journal-upload.conf | |
3d090cc6 ZJS |
3939 | endif |
3940 | ||
145d2258 KS |
3941 | # using _CFLAGS = in the conditional below would suppress AM_CFLAGS |
3942 | journalctl_CFLAGS = \ | |
3943 | $(AM_CFLAGS) | |
a54156a2 | 3944 | |
169c4f65 | 3945 | journalctl_SOURCES = \ |
f33d3ec1 | 3946 | src/journal/journalctl.c |
2a018e83 | 3947 | |
169c4f65 | 3948 | journalctl_LDADD = \ |
474abe33 | 3949 | libsystemd-journal-internal.la \ |
be127913 | 3950 | libsystemd-internal.la \ |
48d7417d KS |
3951 | libsystemd-logs.la \ |
3952 | libsystemd-shared.la | |
2a018e83 | 3953 | |
478c8269 ZJS |
3954 | if HAVE_ACL |
3955 | journalctl_LDADD += \ | |
3956 | libsystemd-acl.la | |
3957 | endif | |
3958 | ||
f6a971bc LP |
3959 | if HAVE_QRENCODE |
3960 | journalctl_SOURCES += \ | |
3961 | src/journal/journal-qrcode.c \ | |
3962 | src/journal/journal-qrcode.h | |
3963 | ||
a54156a2 | 3964 | journalctl_CFLAGS += \ |
f6a971bc LP |
3965 | $(QRENCODE_CFLAGS) |
3966 | ||
3967 | journalctl_LDADD += \ | |
3968 | $(QRENCODE_LIBS) | |
3969 | endif | |
3970 | ||
48d437bb | 3971 | test_journal_SOURCES = \ |
cbdca852 | 3972 | src/journal/test-journal.c |
2a018e83 | 3973 | |
48d437bb | 3974 | test_journal_LDADD = \ |
48d7417d | 3975 | libsystemd-journal-core.la |
2fb1aeda | 3976 | |
b070e7f3 LP |
3977 | test_journal_send_SOURCES = \ |
3978 | src/journal/test-journal-send.c | |
3979 | ||
3980 | test_journal_send_LDADD = \ | |
48d7417d | 3981 | libsystemd-journal-core.la |
b070e7f3 | 3982 | |
e88baee8 | 3983 | test_journal_syslog_SOURCES = \ |
d025f1e4 | 3984 | src/journal/test-journal-syslog.c |
e88baee8 ZJS |
3985 | |
3986 | test_journal_syslog_LDADD = \ | |
48d7417d | 3987 | libsystemd-journal-core.la |
e88baee8 | 3988 | |
cbdca852 LP |
3989 | test_journal_match_SOURCES = \ |
3990 | src/journal/test-journal-match.c | |
3991 | ||
3992 | test_journal_match_LDADD = \ | |
48d7417d | 3993 | libsystemd-journal-core.la |
cbdca852 | 3994 | |
a4bcff5b LP |
3995 | test_journal_enum_SOURCES = \ |
3996 | src/journal/test-journal-enum.c | |
3997 | ||
3998 | test_journal_enum_LDADD = \ | |
48d7417d | 3999 | libsystemd-journal-core.la |
a4bcff5b | 4000 | |
cbdca852 LP |
4001 | test_journal_stream_SOURCES = \ |
4002 | src/journal/test-journal-stream.c | |
4003 | ||
4004 | test_journal_stream_LDADD = \ | |
48d7417d | 4005 | libsystemd-journal-core.la |
cbdca852 | 4006 | |
d0767ffd LP |
4007 | test_journal_flush_SOURCES = \ |
4008 | src/journal/test-journal-flush.c | |
4009 | ||
4010 | test_journal_flush_LDADD = \ | |
4011 | libsystemd-journal-core.la | |
4012 | ||
3b6c7e78 ZJS |
4013 | test_journal_init_SOURCES = \ |
4014 | src/journal/test-journal-init.c | |
4015 | ||
4016 | test_journal_init_LDADD = \ | |
48d7417d | 4017 | libsystemd-journal-core.la |
3b6c7e78 | 4018 | |
beec0085 LP |
4019 | test_journal_verify_SOURCES = \ |
4020 | src/journal/test-journal-verify.c | |
4021 | ||
4022 | test_journal_verify_LDADD = \ | |
48d7417d | 4023 | libsystemd-journal-core.la |
beec0085 | 4024 | |
7a050b54 MV |
4025 | test_journal_interleaving_SOURCES = \ |
4026 | src/journal/test-journal-interleaving.c | |
4027 | ||
4028 | test_journal_interleaving_LDADD = \ | |
48d7417d | 4029 | libsystemd-journal-core.la |
7a050b54 | 4030 | |
f8019684 LP |
4031 | test_mmap_cache_SOURCES = \ |
4032 | src/journal/test-mmap-cache.c | |
4033 | ||
4034 | test_mmap_cache_LDADD = \ | |
48d7417d | 4035 | libsystemd-journal-core.la |
f8019684 | 4036 | |
d4205751 LP |
4037 | test_catalog_SOURCES = \ |
4038 | src/journal/test-catalog.c | |
4039 | ||
96115cdf TA |
4040 | test_catalog_CPPFLAGS = \ |
4041 | $(AM_CPPFLAGS) \ | |
143bfdaf HHPF |
4042 | -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\" |
4043 | ||
d4205751 | 4044 | test_catalog_LDADD = \ |
48d7417d | 4045 | libsystemd-journal-core.la |
d4205751 | 4046 | |
843fecc0 RC |
4047 | test_compress_SOURCES = \ |
4048 | src/journal/test-compress.c | |
4049 | ||
4050 | test_compress_LDADD = \ | |
4051 | libsystemd-journal-internal.la \ | |
4052 | libsystemd-shared.la | |
843fecc0 | 4053 | |
fd53fee0 ZJS |
4054 | test_compress_benchmark_SOURCES = \ |
4055 | src/journal/test-compress-benchmark.c | |
4056 | ||
4057 | test_compress_benchmark_LDADD = \ | |
4058 | libsystemd-journal-internal.la \ | |
4059 | libsystemd-shared.la | |
4060 | ||
48d7417d | 4061 | libsystemd_journal_core_la_SOURCES = \ |
d025f1e4 ZJS |
4062 | src/journal/journald-kmsg.c \ |
4063 | src/journal/journald-kmsg.h \ | |
4064 | src/journal/journald-syslog.c \ | |
4065 | src/journal/journald-syslog.h \ | |
4066 | src/journal/journald-stream.c \ | |
4067 | src/journal/journald-stream.h \ | |
4068 | src/journal/journald-server.c \ | |
4069 | src/journal/journald-server.h \ | |
4070 | src/journal/journald-console.c \ | |
4071 | src/journal/journald-console.h \ | |
40b71e89 ST |
4072 | src/journal/journald-wall.c \ |
4073 | src/journal/journald-wall.h \ | |
d025f1e4 ZJS |
4074 | src/journal/journald-native.c \ |
4075 | src/journal/journald-native.h \ | |
4076 | src/journal/journald-rate-limit.c \ | |
4077 | src/journal/journald-rate-limit.h \ | |
4078 | src/journal/journal-internal.h | |
96d1efba | 4079 | |
48d7417d KS |
4080 | nodist_libsystemd_journal_core_la_SOURCES = \ |
4081 | src/journal/journald-gperf.c | |
7560fffc | 4082 | |
48d7417d KS |
4083 | libsystemd_journal_core_la_LIBADD = \ |
4084 | libsystemd-journal-internal.la \ | |
4085 | libudev-internal.la \ | |
48d7417d KS |
4086 | libsystemd-capability.la \ |
4087 | libsystemd-label.la \ | |
be127913 | 4088 | libsystemd-internal.la \ |
48d7417d | 4089 | libsystemd-shared.la |
d025f1e4 | 4090 | |
d025f1e4 | 4091 | if HAVE_ACL |
48d7417d | 4092 | libsystemd_journal_core_la_LIBADD += \ |
d025f1e4 ZJS |
4093 | libsystemd-acl.la |
4094 | endif | |
7560fffc | 4095 | |
48d7417d KS |
4096 | noinst_LTLIBRARIES += \ |
4097 | libsystemd-journal-core.la | |
20263082 | 4098 | |
0031ccd3 KS |
4099 | journal-install-hook: |
4100 | -$(MKDIR_P) $(DESTDIR)/var/log/journal | |
4101 | -chown 0:0 $(DESTDIR)/var/log/journal | |
4102 | -chmod 755 $(DESTDIR)/var/log/journal | |
4103 | -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/ | |
4104 | -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/ | |
2ca0435b | 4105 | |
0031ccd3 | 4106 | journal-uninstall-hook: |
ad95fd1d | 4107 | -rmdir $(DESTDIR)/var/log/journal/remote |
0031ccd3 KS |
4108 | -rmdir $(DESTDIR)/var/log/journal/ |
4109 | ||
4110 | INSTALL_EXEC_HOOKS += journal-install-hook | |
4111 | UNINSTALL_EXEC_HOOKS += journal-uninstall-hook | |
4112 | ||
4113 | # ------------------------------------------------------------------------------ | |
c4eb3681 | 4114 | # Update catalog on installation. Do not bother if installing |
e2bb347f ZJS |
4115 | # in DESTDIR, since this is likely for packaging purposes. |
4116 | catalog-update-hook: | |
4ec24515 | 4117 | -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog |
e2bb347f | 4118 | |
f975e76c | 4119 | INSTALL_DATA_HOOKS += \ |
e2bb347f ZJS |
4120 | catalog-update-hook |
4121 | ||
4ec24515 ZJS |
4122 | catalog-remove-hook: |
4123 | -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database | |
4124 | ||
4125 | UNINSTALL_DATA_HOOKS += \ | |
4126 | catalog-remove-hook | |
4127 | ||
cee22bd3 | 4128 | manual_tests += \ |
844ec79b | 4129 | test-journal-enum |
2a018e83 | 4130 | |
cee22bd3 | 4131 | tests += \ |
216e2ade | 4132 | test-journal \ |
e88baee8 ZJS |
4133 | test-journal-send \ |
4134 | test-journal-syslog \ | |
95ea1b90 | 4135 | test-journal-match \ |
beec0085 | 4136 | test-journal-stream \ |
3b6c7e78 | 4137 | test-journal-init \ |
8e41de0d | 4138 | test-journal-verify \ |
7a050b54 | 4139 | test-journal-interleaving \ |
d0767ffd | 4140 | test-journal-flush \ |
844ec79b ZJS |
4141 | test-mmap-cache \ |
4142 | test-catalog | |
95ea1b90 | 4143 | |
3b1a55e1 | 4144 | if HAVE_COMPRESSION |
fd53fee0 ZJS |
4145 | tests += \ |
4146 | test-compress \ | |
4147 | test-compress-benchmark | |
3b1a55e1 | 4148 | endif |
843fecc0 | 4149 | |
48d437bb | 4150 | pkginclude_HEADERS += \ |
81527be1 | 4151 | src/systemd/sd-journal.h \ |
aacf3b48 LP |
4152 | src/systemd/sd-messages.h \ |
4153 | src/systemd/_sd-common.h | |
2a018e83 | 4154 | |
add00dfd KS |
4155 | libsystemd_journal_internal_la_SOURCES = \ |
4156 | src/journal/sd-journal.c \ | |
4157 | src/systemd/sd-journal.h \ | |
4158 | src/systemd/_sd-common.h \ | |
4159 | src/journal/journal-file.c \ | |
4160 | src/journal/journal-file.h \ | |
4161 | src/journal/journal-vacuum.c \ | |
4162 | src/journal/journal-vacuum.h \ | |
4163 | src/journal/journal-verify.c \ | |
4164 | src/journal/journal-verify.h \ | |
4165 | src/journal/lookup3.c \ | |
4166 | src/journal/lookup3.h \ | |
4167 | src/journal/journal-send.c \ | |
4168 | src/journal/journal-def.h \ | |
4169 | src/journal/compress.h \ | |
4170 | src/journal/catalog.c \ | |
4171 | src/journal/catalog.h \ | |
4172 | src/journal/mmap-cache.c \ | |
4173 | src/journal/mmap-cache.h | |
4174 | ||
4175 | # using _CFLAGS = in the conditional below would suppress AM_CFLAGS | |
fe582db9 | 4176 | libsystemd_journal_internal_la_CFLAGS = \ |
add00dfd KS |
4177 | $(AM_CFLAGS) |
4178 | ||
4179 | libsystemd_journal_internal_la_LIBADD = | |
4180 | ||
add00dfd KS |
4181 | libsystemd_journal_internal_la_SOURCES += \ |
4182 | src/journal/compress.c | |
4183 | ||
d89c8fdf | 4184 | if HAVE_XZ |
add00dfd KS |
4185 | libsystemd_journal_internal_la_CFLAGS += \ |
4186 | $(XZ_CFLAGS) | |
4187 | ||
4188 | libsystemd_journal_internal_la_LIBADD += \ | |
4189 | $(XZ_LIBS) | |
4190 | endif | |
4191 | ||
d89c8fdf ZJS |
4192 | if HAVE_LZ4 |
4193 | libsystemd_journal_internal_la_LIBADD += \ | |
4194 | -llz4 | |
4195 | endif | |
4196 | ||
add00dfd KS |
4197 | if HAVE_GCRYPT |
4198 | libsystemd_journal_internal_la_SOURCES += \ | |
4199 | src/journal/journal-authenticate.c \ | |
4200 | src/journal/journal-authenticate.h \ | |
4201 | src/journal/fsprg.c \ | |
4202 | src/journal/fsprg.h | |
4203 | ||
4204 | libsystemd_journal_internal_la_LIBADD += \ | |
4205 | $(GCRYPT_LIBS) | |
4206 | ||
4a8cf554 | 4207 | # fsprg.c is a drop-in file using void pointer arithmetic |
add00dfd KS |
4208 | libsystemd_journal_internal_la_CFLAGS += \ |
4209 | $(GCRYPT_CFLAGS) \ | |
4210 | -Wno-pointer-arith | |
4211 | endif | |
2a018e83 | 4212 | |
474abe33 LP |
4213 | noinst_LTLIBRARIES += \ |
4214 | libsystemd-journal-internal.la | |
4215 | ||
48d437bb | 4216 | rootlibexec_PROGRAMS += \ |
cc64d017 | 4217 | systemd-journald |
b1b2a107 | 4218 | |
48d437bb | 4219 | rootbin_PROGRAMS += \ |
169c4f65 | 4220 | journalctl |
b1b2a107 | 4221 | |
755a02c6 | 4222 | bin_PROGRAMS += \ |
6185ac1e | 4223 | systemd-cat |
755a02c6 | 4224 | |
48d437bb | 4225 | dist_systemunit_DATA += \ |
03ee5c38 LP |
4226 | units/systemd-journald.socket \ |
4227 | units/systemd-journald-dev-log.socket | |
b1b2a107 | 4228 | |
48d437bb | 4229 | nodist_systemunit_DATA += \ |
b8156be0 | 4230 | units/systemd-journald.service \ |
ecde7065 LP |
4231 | units/systemd-journal-flush.service \ |
4232 | units/systemd-journal-catalog-update.service | |
b2423f1f | 4233 | |
e6960940 | 4234 | dist_pkgsysconf_DATA += \ |
18b754d3 | 4235 | src/journal/journald.conf |
e6960940 | 4236 | |
d4205751 | 4237 | dist_catalog_DATA = \ |
a6e9f2b9 | 4238 | catalog/systemd.fr.catalog \ |
a6e9f2b9 | 4239 | catalog/systemd.it.catalog \ |
d6740361 PD |
4240 | catalog/systemd.pl.catalog \ |
4241 | catalog/systemd.ru.catalog \ | |
d4205751 LP |
4242 | catalog/systemd.catalog |
4243 | ||
6ff39241 | 4244 | SOCKETS_TARGET_WANTS += \ |
03ee5c38 LP |
4245 | systemd-journald.socket \ |
4246 | systemd-journald-dev-log.socket | |
4247 | ||
6ff39241 ZJS |
4248 | SYSINIT_TARGET_WANTS += \ |
4249 | systemd-journald.service \ | |
ecde7065 LP |
4250 | systemd-journal-flush.service \ |
4251 | systemd-journal-catalog-update.service | |
5008d581 | 4252 | |
48d437bb | 4253 | EXTRA_DIST += \ |
e6960940 | 4254 | units/systemd-journald.service.in \ |
b8156be0 | 4255 | units/systemd-journal-flush.service.in \ |
ecde7065 | 4256 | units/systemd-journal-catalog-update.service.in \ |
8b9b4d6c | 4257 | src/journal/journald-gperf.gperf |
e6960940 LP |
4258 | |
4259 | CLEANFILES += \ | |
8b9b4d6c | 4260 | src/journal/journald-gperf.c |
5008d581 | 4261 | |
4caf4ac1 | 4262 | # ------------------------------------------------------------------------------ |
7b17a7d7 | 4263 | if HAVE_MICROHTTPD |
7b17a7d7 LP |
4264 | gatewayddocumentrootdir=$(pkgdatadir)/gatewayd |
4265 | ||
4266 | rootlibexec_PROGRAMS += \ | |
4267 | systemd-journal-gatewayd | |
4268 | ||
4269 | systemd_journal_gatewayd_SOURCES = \ | |
1e4e7b71 ZJS |
4270 | src/journal-remote/journal-gatewayd.c \ |
4271 | src/journal-remote/microhttpd-util.h \ | |
4272 | src/journal-remote/microhttpd-util.c | |
7b17a7d7 LP |
4273 | |
4274 | systemd_journal_gatewayd_LDADD = \ | |
7b17a7d7 LP |
4275 | libsystemd-logs.la \ |
4276 | libsystemd-journal-internal.la \ | |
6bb648a1 | 4277 | libsystemd-internal.la \ |
48d7417d | 4278 | libsystemd-shared.la \ |
7b17a7d7 LP |
4279 | $(MICROHTTPD_LIBS) |
4280 | ||
cafc7f91 ZJS |
4281 | if HAVE_GNUTLS |
4282 | systemd_journal_gatewayd_LDADD += \ | |
4283 | $(GNUTLS_LIBS) | |
4284 | endif | |
4285 | ||
7b17a7d7 | 4286 | systemd_journal_gatewayd_CFLAGS = \ |
7b17a7d7 LP |
4287 | $(AM_CFLAGS) \ |
4288 | $(MICROHTTPD_CFLAGS) | |
4289 | ||
96115cdf TA |
4290 | systemd_journal_gatewayd_CPPFLAGS = \ |
4291 | $(AM_CPPFLAGS) \ | |
4292 | -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\" | |
4293 | ||
7b17a7d7 LP |
4294 | dist_systemunit_DATA += \ |
4295 | units/systemd-journal-gatewayd.socket | |
4296 | ||
4297 | nodist_systemunit_DATA += \ | |
4298 | units/systemd-journal-gatewayd.service | |
4299 | ||
4300 | dist_gatewayddocumentroot_DATA = \ | |
1e4e7b71 | 4301 | src/journal-remote/browse.html |
7b17a7d7 LP |
4302 | |
4303 | endif | |
4304 | ||
e4d1062c ZJS |
4305 | EXTRA_DIST += \ |
4306 | units/systemd-journal-gatewayd.service.in | |
4307 | ||
912b54ad DS |
4308 | # ------------------------------------------------------------------------------ |
4309 | ||
96c374d0 LP |
4310 | systemd_socket_proxyd_SOURCES = \ |
4311 | src/socket-proxy/socket-proxyd.c | |
912b54ad | 4312 | |
96c374d0 | 4313 | systemd_socket_proxyd_LDADD = \ |
912b54ad | 4314 | libsystemd-logs.la \ |
6bb648a1 | 4315 | libsystemd-internal.la \ |
912b54ad | 4316 | libsystemd-journal-internal.la \ |
fb69d709 LP |
4317 | libsystemd-shared.la \ |
4318 | libsystemd-resolve.la | |
912b54ad | 4319 | |
6185ac1e | 4320 | # ------------------------------------------------------------------------------ |
f5e04665 | 4321 | if ENABLE_COREDUMP |
f5e04665 | 4322 | systemd_coredump_SOURCES = \ |
0dc5d23c LP |
4323 | src/journal/coredump.c \ |
4324 | src/journal/coredump-vacuum.c \ | |
4325 | src/journal/coredump-vacuum.h | |
f5e04665 LP |
4326 | |
4327 | systemd_coredump_LDADD = \ | |
474abe33 | 4328 | libsystemd-journal-internal.la \ |
cc527a47 | 4329 | libsystemd-label.la \ |
2fa495c8 KS |
4330 | libsystemd-internal.la \ |
4331 | libsystemd-shared.la | |
ba1261bc | 4332 | |
8d4e028f LP |
4333 | if HAVE_ELFUTILS |
4334 | systemd_coredump_SOURCES += \ | |
4335 | src/journal/stacktrace.c \ | |
4336 | src/journal/stacktrace.h | |
4337 | ||
4338 | systemd_coredump_LDADD += \ | |
4339 | $(ELFUTILS_LIBS) | |
4340 | endif | |
4341 | ||
f5e04665 | 4342 | rootlibexec_PROGRAMS += \ |
6185ac1e | 4343 | systemd-coredump |
f5e04665 | 4344 | |
34c10968 LP |
4345 | dist_pkgsysconf_DATA += \ |
4346 | src/journal/coredump.conf | |
4347 | ||
4348 | if HAVE_ACL | |
4349 | systemd_coredump_LDADD += \ | |
4350 | libsystemd-acl.la | |
4351 | endif | |
4352 | ||
f4bab169 | 4353 | coredumpctl_SOURCES = \ |
d51167c6 MB |
4354 | src/journal/coredumpctl.c |
4355 | ||
f4bab169 | 4356 | coredumpctl_LDADD = \ |
6c17bf04 | 4357 | libsystemd-journal-internal.la \ |
be127913 | 4358 | libsystemd-internal.la \ |
48d7417d | 4359 | libsystemd-shared.la |
d51167c6 MB |
4360 | |
4361 | bin_PROGRAMS += \ | |
f4bab169 | 4362 | coredumpctl |
d51167c6 | 4363 | |
0dc5d23c LP |
4364 | manual_tests += \ |
4365 | test-coredump-vacuum | |
4366 | ||
4367 | test_coredump_vacuum_SOURCES = \ | |
4368 | src/journal/test-coredump-vacuum.c \ | |
4369 | src/journal/coredump-vacuum.c \ | |
4370 | src/journal/coredump-vacuum.h | |
4371 | ||
4372 | test_coredump_vacuum_LDADD = \ | |
4373 | libsystemd-internal.la \ | |
4374 | libsystemd-shared.la | |
4375 | ||
d51167c6 | 4376 | dist_bashcompletion_DATA += \ |
f4bab169 | 4377 | shell-completion/bash/coredumpctl |
d51167c6 | 4378 | |
70e104c4 | 4379 | dist_zshcompletion_DATA += \ |
f4bab169 | 4380 | shell-completion/zsh/_coredumpctl |
70e104c4 | 4381 | |
f5e04665 | 4382 | sysctl_DATA = \ |
94c525f0 | 4383 | sysctl.d/50-coredump.conf |
f5e04665 | 4384 | |
6185ac1e | 4385 | CLEANFILES += \ |
94c525f0 | 4386 | sysctl.d/50-coredump.conf |
f5e04665 LP |
4387 | endif |
4388 | ||
299031ca | 4389 | EXTRA_DIST += \ |
94c525f0 | 4390 | sysctl.d/50-coredump.conf.in |
299031ca | 4391 | |
48d437bb KS |
4392 | # ------------------------------------------------------------------------------ |
4393 | if ENABLE_BINFMT | |
4394 | systemd_binfmt_SOURCES = \ | |
4395 | src/binfmt/binfmt.c | |
4396 | ||
4397 | systemd_binfmt_LDADD = \ | |
49e942b2 | 4398 | libsystemd-shared.la |
3d20ed6d | 4399 | |
48d437bb KS |
4400 | rootlibexec_PROGRAMS += \ |
4401 | systemd-binfmt | |
d7ccca2e | 4402 | |
48d437bb KS |
4403 | dist_systemunit_DATA += \ |
4404 | units/proc-sys-fs-binfmt_misc.automount \ | |
4405 | units/proc-sys-fs-binfmt_misc.mount | |
d7ccca2e | 4406 | |
48d437bb KS |
4407 | nodist_systemunit_DATA += \ |
4408 | units/systemd-binfmt.service | |
d7ccca2e | 4409 | |
6ff39241 ZJS |
4410 | INSTALL_DIRS += \ |
4411 | $(prefix)/lib/binfmt.d \ | |
4412 | $(sysconfdir)/binfmt.d | |
8e1bd70d | 4413 | |
6ff39241 ZJS |
4414 | SYSINIT_TARGET_WANTS += \ |
4415 | systemd-binfmt.service \ | |
4416 | proc-sys-fs-binfmt_misc.automount | |
8e1bd70d | 4417 | |
299031ca | 4418 | endif |
8e1bd70d | 4419 | |
48d437bb KS |
4420 | EXTRA_DIST += \ |
4421 | units/systemd-binfmt.service.in | |
3d20ed6d | 4422 | |
e5e83e83 LP |
4423 | # ------------------------------------------------------------------------------ |
4424 | if ENABLE_VCONSOLE | |
4425 | systemd_vconsole_setup_SOURCES = \ | |
4426 | src/vconsole/vconsole-setup.c | |
4427 | ||
4428 | systemd_vconsole_setup_LDADD = \ | |
49e942b2 | 4429 | libsystemd-shared.la |
e5e83e83 LP |
4430 | |
4431 | rootlibexec_PROGRAMS += \ | |
4432 | systemd-vconsole-setup | |
4433 | ||
4434 | nodist_systemunit_DATA += \ | |
4435 | units/systemd-vconsole-setup.service | |
4436 | ||
6ff39241 ZJS |
4437 | SYSINIT_TARGET_WANTS += \ |
4438 | systemd-vconsole-setup.service | |
299031ca | 4439 | endif |
e5e83e83 LP |
4440 | |
4441 | EXTRA_DIST += \ | |
4442 | units/systemd-vconsole-setup.service.in | |
e5e83e83 | 4443 | |
83fdc450 AK |
4444 | # ------------------------------------------------------------------------------ |
4445 | if ENABLE_BOOTCHART | |
4446 | systemd_bootchart_SOURCES = \ | |
4447 | src/bootchart/bootchart.c \ | |
4448 | src/bootchart/bootchart.h \ | |
e75dcf57 | 4449 | src/bootchart/store.c \ |
6d031c0b | 4450 | src/bootchart/store.h \ |
4afb5c73 ZJS |
4451 | src/bootchart/svg.c \ |
4452 | src/bootchart/svg.h | |
83fdc450 | 4453 | |
e985665d | 4454 | systemd_bootchart_LDADD = \ |
48d7417d KS |
4455 | libsystemd-journal-internal.la \ |
4456 | libsystemd-shared.la | |
e985665d | 4457 | |
83fdc450 AK |
4458 | rootlibexec_PROGRAMS += \ |
4459 | systemd-bootchart | |
5088d19f UTL |
4460 | |
4461 | dist_pkgsysconf_DATA += \ | |
4462 | src/bootchart/bootchart.conf | |
83fdc450 AK |
4463 | endif |
4464 | ||
4de85612 LP |
4465 | # ------------------------------------------------------------------------------ |
4466 | if ENABLE_QUOTACHECK | |
4467 | rootlibexec_PROGRAMS += \ | |
4468 | systemd-quotacheck | |
4469 | ||
4470 | nodist_systemunit_DATA += \ | |
93a1d735 | 4471 | units/systemd-quotacheck.service |
4de85612 | 4472 | |
4de85612 | 4473 | systemd_quotacheck_SOURCES = \ |
dce818b3 | 4474 | src/quotacheck/quotacheck.c |
4de85612 LP |
4475 | |
4476 | systemd_quotacheck_LDADD = \ | |
49e942b2 | 4477 | libsystemd-shared.la |
4de85612 LP |
4478 | endif |
4479 | ||
299031ca BK |
4480 | EXTRA_DIST += \ |
4481 | units/systemd-quotacheck.service.in | |
4482 | ||
b51fc639 DR |
4483 | nodist_systemunit_DATA += \ |
4484 | units/quotaon.service | |
4485 | ||
4de85612 LP |
4486 | # ------------------------------------------------------------------------------ |
4487 | if ENABLE_RANDOMSEED | |
4488 | rootlibexec_PROGRAMS += \ | |
4489 | systemd-random-seed | |
4490 | ||
4491 | nodist_systemunit_DATA += \ | |
c35b956d | 4492 | units/systemd-random-seed.service |
4de85612 | 4493 | |
4de85612 | 4494 | systemd_random_seed_SOURCES = \ |
dce818b3 | 4495 | src/random-seed/random-seed.c |
4de85612 LP |
4496 | |
4497 | systemd_random_seed_LDADD = \ | |
cc527a47 KS |
4498 | libsystemd-label.la \ |
4499 | libsystemd-shared.la | |
4de85612 | 4500 | |
6ff39241 | 4501 | SYSINIT_TARGET_WANTS += \ |
c35b956d | 4502 | systemd-random-seed.service |
edcf89be | 4503 | |
4de85612 LP |
4504 | endif |
4505 | ||
299031ca | 4506 | EXTRA_DIST += \ |
c35b956d | 4507 | units/systemd-random-seed.service.in |
299031ca | 4508 | |
3731acf1 LP |
4509 | # ------------------------------------------------------------------------------ |
4510 | if ENABLE_BACKLIGHT | |
4511 | rootlibexec_PROGRAMS += \ | |
4512 | systemd-backlight | |
4513 | ||
4514 | nodist_systemunit_DATA += \ | |
4515 | units/systemd-backlight@.service | |
4516 | ||
4517 | systemd_backlight_SOURCES = \ | |
4518 | src/backlight/backlight.c | |
4519 | ||
4520 | systemd_backlight_LDADD = \ | |
4521 | libsystemd-label.la \ | |
48d7417d KS |
4522 | libudev-internal.la \ |
4523 | libsystemd-shared.la | |
3731acf1 LP |
4524 | endif |
4525 | ||
4526 | EXTRA_DIST += \ | |
4527 | units/systemd-backlight@.service.in | |
4528 | ||
3990f247 LP |
4529 | # ------------------------------------------------------------------------------ |
4530 | if ENABLE_RFKILL | |
4531 | rootlibexec_PROGRAMS += \ | |
4532 | systemd-rfkill | |
4533 | ||
4534 | nodist_systemunit_DATA += \ | |
4535 | units/systemd-rfkill@.service | |
4536 | ||
4537 | systemd_rfkill_SOURCES = \ | |
4538 | src/rfkill/rfkill.c | |
4539 | ||
4540 | systemd_rfkill_LDADD = \ | |
4541 | libsystemd-label.la \ | |
48d7417d KS |
4542 | libudev-internal.la \ |
4543 | libsystemd-shared.la | |
3990f247 LP |
4544 | endif |
4545 | ||
4546 | EXTRA_DIST += \ | |
4547 | units/systemd-rfkill@.service.in | |
4548 | ||
b4d0195b LP |
4549 | # ------------------------------------------------------------------------------ |
4550 | if HAVE_LIBCRYPTSETUP | |
4551 | rootlibexec_PROGRAMS += \ | |
4552 | systemd-cryptsetup | |
4553 | ||
4554 | systemgenerator_PROGRAMS += \ | |
4555 | systemd-cryptsetup-generator | |
4556 | ||
4557 | dist_systemunit_DATA += \ | |
9542239e LP |
4558 | units/cryptsetup.target \ |
4559 | units/cryptsetup-pre.target | |
b4d0195b LP |
4560 | |
4561 | systemd_cryptsetup_SOURCES = \ | |
3bdf9c1d | 4562 | src/cryptsetup/cryptsetup.c |
b4d0195b LP |
4563 | |
4564 | systemd_cryptsetup_CFLAGS = \ | |
4565 | $(AM_CFLAGS) \ | |
3e214785 | 4566 | $(LIBCRYPTSETUP_CFLAGS) |
b4d0195b LP |
4567 | |
4568 | systemd_cryptsetup_LDADD = \ | |
cc527a47 | 4569 | libsystemd-label.la \ |
48d7417d | 4570 | libudev-internal.la \ |
cc527a47 | 4571 | libsystemd-shared.la \ |
49e942b2 | 4572 | $(LIBCRYPTSETUP_LIBS) |
b4d0195b LP |
4573 | |
4574 | systemd_cryptsetup_generator_SOURCES = \ | |
f33d3ec1 | 4575 | src/cryptsetup/cryptsetup-generator.c |
b4d0195b LP |
4576 | |
4577 | systemd_cryptsetup_generator_LDADD = \ | |
cc527a47 KS |
4578 | libsystemd-label.la \ |
4579 | libsystemd-shared.la | |
b4d0195b | 4580 | |
6ff39241 ZJS |
4581 | SYSINIT_TARGET_WANTS += \ |
4582 | cryptsetup.target | |
d0d6944c | 4583 | |
b4d0195b LP |
4584 | endif |
4585 | ||
48d437bb KS |
4586 | # ------------------------------------------------------------------------------ |
4587 | if ENABLE_HOSTNAMED | |
4588 | systemd_hostnamed_SOURCES = \ | |
3bdf9c1d | 4589 | src/hostname/hostnamed.c |
48d437bb | 4590 | |
48d437bb | 4591 | systemd_hostnamed_LDADD = \ |
a5c32cff | 4592 | libsystemd-label.la \ |
6bb648a1 | 4593 | libsystemd-internal.la \ |
d9f644e2 | 4594 | libsystemd-shared.la |
3d20ed6d | 4595 | |
48d437bb KS |
4596 | rootlibexec_PROGRAMS += \ |
4597 | systemd-hostnamed | |
3d20ed6d | 4598 | |
48d437bb KS |
4599 | nodist_systemunit_DATA += \ |
4600 | units/systemd-hostnamed.service | |
e9278741 | 4601 | |
36e46fe9 | 4602 | dist_systemunit_DATA_busnames += \ |
cde360cd LP |
4603 | units/org.freedesktop.hostname1.busname |
4604 | ||
48d437bb KS |
4605 | dist_dbuspolicy_DATA += \ |
4606 | src/hostname/org.freedesktop.hostname1.conf | |
e9ddabc2 | 4607 | |
48d437bb KS |
4608 | dist_dbussystemservice_DATA += \ |
4609 | src/hostname/org.freedesktop.hostname1.service | |
e9ddabc2 | 4610 | |
299031ca BK |
4611 | polkitpolicy_files += \ |
4612 | src/hostname/org.freedesktop.hostname1.policy | |
e9ddabc2 | 4613 | |
91e8651b ZJS |
4614 | SYSTEM_UNIT_ALIASES += \ |
4615 | systemd-hostnamed.service dbus-org.freedesktop.hostname1.service | |
48d437bb | 4616 | |
cde360cd LP |
4617 | BUSNAMES_TARGET_WANTS += \ |
4618 | org.freedesktop.hostname1.busname | |
4619 | ||
dbc4fbae LP |
4620 | hostnamectl_SOURCES = \ |
4621 | src/hostname/hostnamectl.c | |
4622 | ||
dbc4fbae | 4623 | hostnamectl_LDADD = \ |
6bb648a1 | 4624 | libsystemd-internal.la \ |
d9f644e2 | 4625 | libsystemd-shared.la |
dbc4fbae LP |
4626 | |
4627 | bin_PROGRAMS += \ | |
4628 | hostnamectl | |
4629 | ||
d611dadc MB |
4630 | dist_bashcompletion_DATA += \ |
4631 | shell-completion/bash/hostnamectl | |
4632 | ||
db456cd0 WG |
4633 | dist_zshcompletion_DATA += \ |
4634 | shell-completion/zsh/_hostnamectl | |
4635 | ||
299031ca BK |
4636 | endif |
4637 | ||
cd49e2f6 LP |
4638 | polkitpolicy_in_files += \ |
4639 | src/hostname/org.freedesktop.hostname1.policy.in | |
4640 | ||
4641 | EXTRA_DIST += \ | |
4642 | units/systemd-hostnamed.service.in | |
4643 | ||
4644 | # ------------------------------------------------------------------------------ | |
36e46fe9 | 4645 | dist_systemunit_DATA_busnames += \ |
5892a914 | 4646 | units/org.freedesktop.systemd1.busname |
15e91323 LP |
4647 | |
4648 | BUSNAMES_TARGET_WANTS += \ | |
5892a914 | 4649 | org.freedesktop.systemd1.busname |
294c8660 | 4650 | |
48d437bb KS |
4651 | # ------------------------------------------------------------------------------ |
4652 | if ENABLE_LOCALED | |
4653 | systemd_localed_SOURCES = \ | |
3bdf9c1d | 4654 | src/locale/localed.c |
48d437bb | 4655 | |
48d437bb | 4656 | systemd_localed_LDADD = \ |
cc527a47 | 4657 | libsystemd-label.la \ |
6bb648a1 | 4658 | libsystemd-internal.la \ |
d9f644e2 | 4659 | libsystemd-shared.la |
07faed4f | 4660 | |
48d437bb KS |
4661 | nodist_systemunit_DATA += \ |
4662 | units/systemd-localed.service | |
07faed4f | 4663 | |
36e46fe9 | 4664 | dist_systemunit_DATA_busnames += \ |
cde360cd LP |
4665 | units/org.freedesktop.locale1.busname |
4666 | ||
48d437bb KS |
4667 | rootlibexec_PROGRAMS += \ |
4668 | systemd-localed | |
07faed4f | 4669 | |
48d437bb KS |
4670 | dist_dbuspolicy_DATA += \ |
4671 | src/locale/org.freedesktop.locale1.conf | |
e23a0ce8 | 4672 | |
48d437bb KS |
4673 | dist_dbussystemservice_DATA += \ |
4674 | src/locale/org.freedesktop.locale1.service | |
e23a0ce8 | 4675 | |
299031ca BK |
4676 | polkitpolicy_files += \ |
4677 | src/locale/org.freedesktop.locale1.policy | |
e23a0ce8 | 4678 | |
91e8651b ZJS |
4679 | SYSTEM_UNIT_ALIASES += \ |
4680 | systemd-localed.service dbus-org.freedesktop.locale1.service | |
2a796654 | 4681 | |
cde360cd LP |
4682 | BUSNAMES_TARGET_WANTS += \ |
4683 | org.freedesktop.locale1.busname | |
4684 | ||
ac7019f3 | 4685 | dist_pkgdata_DATA += \ |
776a564f LP |
4686 | src/locale/kbd-model-map |
4687 | ||
4688 | dist_noinst_SCRIPT = \ | |
4689 | src/locale/generate-kbd-model-map | |
4690 | ||
2087a7af LP |
4691 | localectl_SOURCES = \ |
4692 | src/locale/localectl.c | |
4693 | ||
2087a7af | 4694 | localectl_LDADD = \ |
6bb648a1 | 4695 | libsystemd-internal.la \ |
d9f644e2 | 4696 | libsystemd-shared.la |
2087a7af LP |
4697 | |
4698 | bin_PROGRAMS += \ | |
4699 | localectl | |
4700 | ||
d611dadc MB |
4701 | dist_bashcompletion_DATA += \ |
4702 | shell-completion/bash/localectl | |
4703 | ||
c4c12f13 WG |
4704 | dist_zshcompletion_DATA += \ |
4705 | shell-completion/zsh/_localectl | |
4706 | ||
48d437bb | 4707 | endif |
2a796654 | 4708 | |
9f700755 ZJS |
4709 | .PHONY: update-kbd-model-map |
4710 | ||
299031ca BK |
4711 | polkitpolicy_in_files += \ |
4712 | src/locale/org.freedesktop.locale1.policy.in | |
4713 | ||
4714 | EXTRA_DIST += \ | |
4715 | units/systemd-localed.service.in | |
4716 | ||
48d437bb KS |
4717 | # ------------------------------------------------------------------------------ |
4718 | if ENABLE_TIMEDATED | |
4719 | systemd_timedated_SOURCES = \ | |
3bdf9c1d | 4720 | src/timedate/timedated.c |
2a796654 | 4721 | |
48d437bb | 4722 | systemd_timedated_LDADD = \ |
687ed123 KS |
4723 | libsystemd-label.la \ |
4724 | libsystemd-internal.la \ | |
4725 | libsystemd-shared.la | |
15673083 | 4726 | |
48d437bb KS |
4727 | rootlibexec_PROGRAMS += \ |
4728 | systemd-timedated | |
15673083 | 4729 | |
48d437bb KS |
4730 | dist_dbussystemservice_DATA += \ |
4731 | src/timedate/org.freedesktop.timedate1.service | |
e9278741 | 4732 | |
48d437bb KS |
4733 | dist_dbuspolicy_DATA += \ |
4734 | src/timedate/org.freedesktop.timedate1.conf | |
e9278741 | 4735 | |
48d437bb KS |
4736 | nodist_systemunit_DATA += \ |
4737 | units/systemd-timedated.service | |
b2423f1f | 4738 | |
36e46fe9 | 4739 | dist_systemunit_DATA_busnames += \ |
cde360cd LP |
4740 | units/org.freedesktop.timedate1.busname |
4741 | ||
299031ca BK |
4742 | polkitpolicy_files += \ |
4743 | src/timedate/org.freedesktop.timedate1.policy | |
97c4a07d | 4744 | |
91e8651b ZJS |
4745 | SYSTEM_UNIT_ALIASES += \ |
4746 | systemd-timedated.service dbus-org.freedesktop.timedate1.service | |
449ddb2d | 4747 | |
cde360cd LP |
4748 | BUSNAMES_TARGET_WANTS += \ |
4749 | org.freedesktop.timedate1.busname | |
4750 | ||
6d0274f1 LP |
4751 | timedatectl_SOURCES = \ |
4752 | src/timedate/timedatectl.c | |
4753 | ||
6d0274f1 | 4754 | timedatectl_LDADD = \ |
6bb648a1 | 4755 | libsystemd-internal.la \ |
d9f644e2 | 4756 | libsystemd-shared.la |
6d0274f1 LP |
4757 | |
4758 | bin_PROGRAMS += \ | |
4759 | timedatectl | |
d611dadc MB |
4760 | |
4761 | dist_bashcompletion_DATA += \ | |
4762 | shell-completion/bash/timedatectl | |
20c8382b WG |
4763 | |
4764 | dist_zshcompletion_DATA += \ | |
4765 | shell-completion/zsh/_timedatectl | |
299031ca BK |
4766 | endif |
4767 | ||
4768 | polkitpolicy_in_files += \ | |
4769 | src/timedate/org.freedesktop.timedate1.policy.in | |
83620960 | 4770 | |
48d437bb KS |
4771 | EXTRA_DIST += \ |
4772 | units/systemd-timedated.service.in | |
449ddb2d | 4773 | |
4caf4ac1 | 4774 | # ------------------------------------------------------------------------------ |
687ed123 KS |
4775 | if ENABLE_TIMESYNCD |
4776 | systemd_timesyncd_SOURCES = \ | |
e8af6973 | 4777 | src/timesync/timesyncd.c \ |
84e51726 LP |
4778 | src/timesync/timesyncd-manager.c \ |
4779 | src/timesync/timesyncd-manager.h \ | |
4780 | src/timesync/timesyncd-conf.c \ | |
4781 | src/timesync/timesyncd-conf.h \ | |
4782 | src/timesync/timesyncd-server.c \ | |
4783 | src/timesync/timesyncd-server.h | |
e8af6973 LP |
4784 | |
4785 | nodist_systemd_timesyncd_SOURCES = \ | |
4786 | src/timesync/timesyncd-gperf.c | |
4787 | ||
4788 | EXTRA_DIST += \ | |
4789 | src/timesync/timesyncd-gperf.gperf | |
4790 | ||
4791 | CLEANFILES += \ | |
4792 | src/timesync/timesyncd-gperf.c | |
687ed123 KS |
4793 | |
4794 | systemd_timesyncd_LDADD = \ | |
856a5a7d | 4795 | libsystemd-resolve.la \ |
e0e5ce23 | 4796 | libsystemd-network.la \ |
ffcf82d2 | 4797 | libsystemd-label.la \ |
a349eb10 | 4798 | libsystemd-capability.la \ |
ffcf82d2 KS |
4799 | libsystemd-internal.la \ |
4800 | libsystemd-shared.la \ | |
687ed123 KS |
4801 | -lm |
4802 | ||
a91df40e | 4803 | rootlibexec_PROGRAMS += \ |
687ed123 | 4804 | systemd-timesyncd |
a91df40e KS |
4805 | |
4806 | nodist_systemunit_DATA += \ | |
4807 | units/systemd-timesyncd.service | |
4808 | ||
32104125 | 4809 | GENERAL_ALIASES += \ |
e9b11a84 | 4810 | $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service |
32104125 | 4811 | |
a91df40e KS |
4812 | EXTRA_DIST += \ |
4813 | units/systemd-timesyncd.service.in | |
e8af6973 LP |
4814 | |
4815 | nodist_pkgsysconf_DATA += \ | |
4816 | src/timesync/timesyncd.conf | |
4817 | ||
4818 | EXTRA_DIST += \ | |
4819 | src/timesync/timesyncd.conf.in | |
4820 | ||
4821 | CLEANFILES += \ | |
4822 | src/timesync/timesyncd.conf | |
687ed123 KS |
4823 | endif |
4824 | ||
4825 | # ------------------------------------------------------------------------------ | |
4caf4ac1 KS |
4826 | if HAVE_MYHOSTNAME |
4827 | libnss_myhostname_la_SOURCES = \ | |
947127ff | 4828 | src/nss-myhostname/nss-myhostname.sym \ |
e80af1bd | 4829 | src/nss-myhostname/nss-myhostname.c |
4caf4ac1 | 4830 | |
4caf4ac1 KS |
4831 | libnss_myhostname_la_LDFLAGS = \ |
4832 | $(AM_LDFLAGS) \ | |
4833 | -module \ | |
4834 | -export-dynamic \ | |
4835 | -avoid-version \ | |
4836 | -shared \ | |
947127ff LP |
4837 | -shrext .so.2 \ |
4838 | -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym | |
4caf4ac1 | 4839 | |
d1ca51b1 TG |
4840 | libnss_myhostname_la_LIBADD = \ |
4841 | libsystemd-shared.la \ | |
4842 | libsystemd-internal.la | |
4843 | ||
4caf4ac1 KS |
4844 | lib_LTLIBRARIES += \ |
4845 | libnss_myhostname.la | |
4caf4ac1 KS |
4846 | endif |
4847 | ||
1ee306e1 LP |
4848 | # ------------------------------------------------------------------------------ |
4849 | if ENABLE_MACHINED | |
4850 | systemd_machined_SOURCES = \ | |
4851 | src/machine/machined.c \ | |
a8b409db ZJS |
4852 | src/machine/machined.h |
4853 | ||
a8b409db | 4854 | systemd_machined_LDADD = \ |
48d7417d | 4855 | libsystemd-machine-core.la |
a8b409db ZJS |
4856 | |
4857 | rootlibexec_PROGRAMS += \ | |
4858 | systemd-machined | |
4859 | ||
4860 | libsystemd_machine_core_la_SOURCES = \ | |
1ee306e1 LP |
4861 | src/machine/machined-dbus.c \ |
4862 | src/machine/machine.c \ | |
4863 | src/machine/machine.h \ | |
4864 | src/machine/machine-dbus.c | |
4865 | ||
a8b409db | 4866 | libsystemd_machine_core_la_LIBADD = \ |
1ee306e1 | 4867 | libsystemd-label.la \ |
6bb648a1 | 4868 | libsystemd-internal.la \ |
48d7417d KS |
4869 | libudev-internal.la \ |
4870 | libsystemd-shared.la | |
1ee306e1 | 4871 | |
a8b409db ZJS |
4872 | noinst_LTLIBRARIES += \ |
4873 | libsystemd-machine-core.la | |
1ee306e1 LP |
4874 | |
4875 | machinectl_SOURCES = \ | |
4876 | src/machine/machinectl.c | |
4877 | ||
1ee306e1 | 4878 | machinectl_LDADD = \ |
6bb648a1 | 4879 | libsystemd-internal.la \ |
d9f644e2 | 4880 | libsystemd-shared.la |
1ee306e1 LP |
4881 | |
4882 | rootbin_PROGRAMS += \ | |
4883 | machinectl | |
4884 | ||
e56056e9 TA |
4885 | dist_bashcompletion_DATA += \ |
4886 | shell-completion/bash/machinectl | |
4887 | ||
a8b409db ZJS |
4888 | test_machine_tables_SOURCES = \ |
4889 | src/machine/test-machine-tables.c | |
4890 | ||
a8b409db ZJS |
4891 | test_machine_tables_LDADD = \ |
4892 | libsystemd-machine-core.la | |
4893 | ||
4894 | tests += \ | |
4895 | test-machine-tables | |
4896 | ||
1ee306e1 LP |
4897 | nodist_systemunit_DATA += \ |
4898 | units/systemd-machined.service | |
4899 | ||
4900 | dist_systemunit_DATA += \ | |
36e46fe9 MB |
4901 | units/machine.slice |
4902 | ||
4903 | dist_systemunit_DATA_busnames += \ | |
cde360cd | 4904 | units/org.freedesktop.machine1.busname |
1ee306e1 LP |
4905 | |
4906 | dist_dbussystemservice_DATA += \ | |
4907 | src/machine/org.freedesktop.machine1.service | |
4908 | ||
4909 | dist_dbuspolicy_DATA += \ | |
4910 | src/machine/org.freedesktop.machine1.conf | |
4911 | ||
439b7ce8 | 4912 | dist_zshcompletion_DATA += \ |
d895500c WH |
4913 | shell-completion/zsh/_machinectl \ |
4914 | shell-completion/zsh/_sd_machines | |
439b7ce8 | 4915 | |
1ee306e1 LP |
4916 | SYSTEM_UNIT_ALIASES += \ |
4917 | systemd-machined.service dbus-org.freedesktop.machine1.service | |
4918 | ||
cde360cd LP |
4919 | BUSNAMES_TARGET_WANTS += \ |
4920 | org.freedesktop.machine1.busname | |
4921 | ||
1ee306e1 | 4922 | EXTRA_DIST += \ |
19fbd625 | 4923 | units/systemd-machined.service.in |
1ee306e1 | 4924 | |
cabb0bc6 LP |
4925 | libnss_mymachines_la_SOURCES = \ |
4926 | src/nss-mymachines/nss-mymachines.sym \ | |
4927 | src/nss-mymachines/nss-mymachines.c | |
4928 | ||
4929 | libnss_mymachines_la_LDFLAGS = \ | |
4930 | $(AM_LDFLAGS) \ | |
4931 | -module \ | |
4932 | -export-dynamic \ | |
4933 | -avoid-version \ | |
4934 | -shared \ | |
4935 | -shrext .so.2 \ | |
4936 | -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym | |
4937 | ||
4938 | libnss_mymachines_la_LIBADD = \ | |
4939 | libsystemd-shared.la \ | |
4940 | libsystemd-internal.la | |
4941 | ||
4942 | lib_LTLIBRARIES += \ | |
4943 | libnss_mymachines.la | |
1ee306e1 LP |
4944 | endif |
4945 | ||
091a364c TG |
4946 | # ------------------------------------------------------------------------------ |
4947 | if ENABLE_RESOLVED | |
4948 | systemd_resolved_SOURCES = \ | |
091a364c | 4949 | src/resolve/resolved.c \ |
74b2466e | 4950 | src/resolve/resolved-manager.c \ |
39d8db04 | 4951 | src/resolve/resolved-manager.h \ |
4e945a6f LP |
4952 | src/resolve/resolved-conf.c \ |
4953 | src/resolve/resolved-conf.h \ | |
74b2466e | 4954 | src/resolve/resolved-bus.c \ |
39d8db04 | 4955 | src/resolve/resolved-bus.h \ |
74b2466e LP |
4956 | src/resolve/resolved-link.h \ |
4957 | src/resolve/resolved-link.c \ | |
51323288 | 4958 | src/resolve/resolved-def.h \ |
74b2466e LP |
4959 | src/resolve/resolved-dns-domain.h \ |
4960 | src/resolve/resolved-dns-domain.c \ | |
faa133f3 LP |
4961 | src/resolve/resolved-dns-rr.h \ |
4962 | src/resolve/resolved-dns-rr.c \ | |
4963 | src/resolve/resolved-dns-question.h \ | |
4964 | src/resolve/resolved-dns-question.c \ | |
4965 | src/resolve/resolved-dns-answer.h \ | |
4966 | src/resolve/resolved-dns-answer.c \ | |
74b2466e LP |
4967 | src/resolve/resolved-dns-packet.h \ |
4968 | src/resolve/resolved-dns-packet.c \ | |
4969 | src/resolve/resolved-dns-query.h \ | |
4970 | src/resolve/resolved-dns-query.c \ | |
ec2c5e43 LP |
4971 | src/resolve/resolved-dns-transaction.h \ |
4972 | src/resolve/resolved-dns-transaction.c \ | |
74b2466e LP |
4973 | src/resolve/resolved-dns-scope.h \ |
4974 | src/resolve/resolved-dns-scope.c \ | |
4975 | src/resolve/resolved-dns-server.h \ | |
4976 | src/resolve/resolved-dns-server.c \ | |
322345fd | 4977 | src/resolve/resolved-dns-cache.h \ |
623a4c97 LP |
4978 | src/resolve/resolved-dns-cache.c \ |
4979 | src/resolve/resolved-dns-zone.h \ | |
4980 | src/resolve/resolved-dns-zone.c \ | |
4981 | src/resolve/resolved-dns-stream.h \ | |
7263f724 ZJS |
4982 | src/resolve/resolved-dns-stream.c \ |
4983 | src/resolve/dns-type.c \ | |
4984 | src/resolve/dns-type.h \ | |
4985 | src/resolve/dns_type-from-name.h \ | |
4986 | src/resolve/dns_type-to-name.h | |
f884afb2 | 4987 | |
091a364c TG |
4988 | nodist_systemd_resolved_SOURCES = \ |
4989 | src/resolve/resolved-gperf.c | |
4990 | ||
4991 | EXTRA_DIST += \ | |
7263f724 ZJS |
4992 | src/resolve/resolved-gperf.gperf \ |
4993 | src/resolve/dns_type-from-name.gperf | |
091a364c TG |
4994 | |
4995 | CLEANFILES += \ | |
4996 | src/resolve/resolved-gperf.c | |
4997 | ||
4998 | systemd_resolved_LDADD = \ | |
682265d5 | 4999 | libsystemd-capability.la \ |
ffcf82d2 | 5000 | libsystemd-network.la \ |
091a364c TG |
5001 | libsystemd-label.la \ |
5002 | libsystemd-internal.la \ | |
0dae31d4 | 5003 | libsystemd-shared.la \ |
bdf10b5b LP |
5004 | -lm \ |
5005 | $(LIBIDN_LIBS) | |
091a364c TG |
5006 | |
5007 | rootlibexec_PROGRAMS += \ | |
5008 | systemd-resolved | |
5009 | ||
5010 | nodist_systemunit_DATA += \ | |
5011 | units/systemd-resolved.service | |
5012 | ||
36e46fe9 | 5013 | dist_systemunit_DATA_busnames += \ |
b7e6c03d KS |
5014 | units/org.freedesktop.resolve1.busname |
5015 | ||
18641cb1 KS |
5016 | dist_dbuspolicy_DATA += \ |
5017 | src/resolve/org.freedesktop.resolve1.conf | |
5018 | ||
5019 | dist_dbussystemservice_DATA += \ | |
5020 | src/resolve/org.freedesktop.resolve1.service | |
5021 | ||
091a364c TG |
5022 | EXTRA_DIST += \ |
5023 | units/systemd-resolved.service.in | |
5024 | ||
b7e6c03d KS |
5025 | SYSTEM_UNIT_ALIASES += \ |
5026 | systemd-resolved.service dbus-org.freedesktop.resolve1.service | |
5027 | ||
5028 | BUSNAMES_TARGET_WANTS += \ | |
5029 | org.freedesktop.resolve1.busname | |
5030 | ||
091a364c TG |
5031 | GENERAL_ALIASES += \ |
5032 | $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service | |
5033 | ||
5034 | nodist_pkgsysconf_DATA += \ | |
5035 | src/resolve/resolved.conf | |
5036 | ||
5037 | EXTRA_DIST += \ | |
5038 | src/resolve/resolved.conf.in | |
5039 | ||
5040 | CLEANFILES += \ | |
5041 | src/resolve/resolved.conf | |
5042 | ||
74b2466e LP |
5043 | tests += \ |
5044 | test-dns-domain | |
5045 | ||
5046 | test_dns_domain_SOURCES = \ | |
5047 | src/resolve/resolved-dns-domain.h \ | |
5048 | src/resolve/resolved-dns-domain.c \ | |
5049 | src/resolve/test-dns-domain.c | |
5050 | ||
5051 | test_dns_domain_LDADD = \ | |
5052 | libsystemd-capability.la \ | |
5053 | libsystemd-network.la \ | |
5054 | libsystemd-label.la \ | |
5055 | libsystemd-internal.la \ | |
bdf10b5b LP |
5056 | libsystemd-shared.la \ |
5057 | $(LIBIDN_LIBS) | |
74b2466e | 5058 | |
4d1cf1e2 LP |
5059 | libnss_resolve_la_SOURCES = \ |
5060 | src/nss-resolve/nss-resolve.sym \ | |
5061 | src/nss-resolve/nss-resolve.c | |
5062 | ||
5063 | libnss_resolve_la_LDFLAGS = \ | |
5064 | $(AM_LDFLAGS) \ | |
5065 | -module \ | |
5066 | -export-dynamic \ | |
5067 | -avoid-version \ | |
5068 | -shared \ | |
5069 | -shrext .so.2 \ | |
5070 | -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym | |
5071 | ||
5072 | libnss_resolve_la_LIBADD = \ | |
5073 | libsystemd-shared.la \ | |
5074 | libsystemd-internal.la | |
5075 | ||
5076 | lib_LTLIBRARIES += \ | |
5077 | libnss_resolve.la | |
5078 | ||
bdef7319 | 5079 | systemd_resolve_host_SOURCES = \ |
2d4c5cbc LP |
5080 | src/resolve-host/resolve-host.c \ |
5081 | src/resolve/resolved-dns-packet.c \ | |
5082 | src/resolve/resolved-dns-packet.h \ | |
5083 | src/resolve/resolved-dns-rr.c \ | |
5084 | src/resolve/resolved-dns-rr.h \ | |
5085 | src/resolve/resolved-dns-answer.c \ | |
5086 | src/resolve/resolved-dns-answer.h \ | |
5087 | src/resolve/resolved-dns-question.c \ | |
5088 | src/resolve/resolved-dns-question.h \ | |
5089 | src/resolve/resolved-dns-domain.c \ | |
7263f724 ZJS |
5090 | src/resolve/resolved-dns-domain.h \ |
5091 | src/resolve/dns-type.c \ | |
5092 | src/resolve/dns-type.h \ | |
5093 | src/resolve/dns_type-from-name.h \ | |
5094 | src/resolve/dns_type-to-name.h | |
bdef7319 ZJS |
5095 | |
5096 | systemd_resolve_host_LDADD = \ | |
5097 | libsystemd-internal.la \ | |
0dae31d4 | 5098 | libsystemd-shared.la \ |
bdf10b5b LP |
5099 | -lm \ |
5100 | $(LIBIDN_LIBS) | |
bdef7319 ZJS |
5101 | |
5102 | rootlibexec_PROGRAMS += \ | |
5103 | systemd-resolve-host | |
5104 | ||
091a364c TG |
5105 | endif |
5106 | ||
f579559b | 5107 | # ------------------------------------------------------------------------------ |
3c9317d2 | 5108 | if ENABLE_NETWORKD |
f579559b TG |
5109 | rootlibexec_PROGRAMS += \ |
5110 | systemd-networkd | |
5111 | ||
5112 | systemd_networkd_SOURCES = \ | |
911f4d4d TG |
5113 | src/network/networkd.c |
5114 | ||
5115 | systemd_networkd_LDADD = \ | |
7951dea2 | 5116 | libsystemd-networkd-core.la \ |
bddfc8af | 5117 | libsystemd-capability.la |
911f4d4d TG |
5118 | |
5119 | noinst_LTLIBRARIES += \ | |
5120 | libsystemd-networkd-core.la | |
5121 | ||
679be2a7 | 5122 | libsystemd_networkd_core_la_CFLAGS = \ |
bddfc8af | 5123 | $(AM_CFLAGS) |
679be2a7 | 5124 | |
911f4d4d | 5125 | libsystemd_networkd_core_la_SOURCES = \ |
3a67e927 | 5126 | src/libsystemd-network/network-internal.h \ |
f579559b | 5127 | src/network/networkd.h \ |
0b1831c2 | 5128 | src/network/networkd-link.h \ |
3be1d7e0 TG |
5129 | src/network/networkd-netdev.h \ |
5130 | src/network/networkd-netdev-tunnel.h \ | |
5131 | src/network/networkd-netdev-veth.h \ | |
5132 | src/network/networkd-netdev-vxlan.h \ | |
5133 | src/network/networkd-netdev-vlan.h \ | |
5134 | src/network/networkd-netdev-macvlan.h \ | |
5135 | src/network/networkd-netdev-dummy.h \ | |
5136 | src/network/networkd-netdev-tuntap.h \ | |
5137 | src/network/networkd-netdev-bond.h \ | |
5138 | src/network/networkd-netdev-bridge.h \ | |
52433f6b | 5139 | src/network/networkd-netdev.c \ |
3be1d7e0 TG |
5140 | src/network/networkd-netdev-tunnel.c \ |
5141 | src/network/networkd-netdev-veth.c \ | |
5142 | src/network/networkd-netdev-vxlan.c \ | |
5143 | src/network/networkd-netdev-vlan.c \ | |
5144 | src/network/networkd-netdev-macvlan.c \ | |
5145 | src/network/networkd-netdev-dummy.c \ | |
5146 | src/network/networkd-netdev-tuntap.c \ | |
5147 | src/network/networkd-netdev-bond.c \ | |
5148 | src/network/networkd-netdev-bridge.c \ | |
5149 | src/network/networkd-link.c \ | |
b22d8a00 | 5150 | src/network/networkd-ipv4ll.c \ |
3c9b8860 | 5151 | src/network/networkd-dhcp4.c \ |
f579559b TG |
5152 | src/network/networkd-network.c \ |
5153 | src/network/networkd-address.c \ | |
5154 | src/network/networkd-route.c \ | |
11bf3cce LP |
5155 | src/network/networkd-manager.c \ |
5156 | src/network/networkd-address-pool.c | |
f579559b | 5157 | |
911f4d4d | 5158 | nodist_libsystemd_networkd_core_la_SOURCES = \ |
c0dda186 | 5159 | src/network/networkd-network-gperf.c \ |
091a364c | 5160 | src/network/networkd-netdev-gperf.c |
f579559b | 5161 | |
911f4d4d | 5162 | libsystemd_networkd_core_la_LIBADD = \ |
f579559b | 5163 | libudev-internal.la \ |
6bb648a1 | 5164 | libsystemd-internal.la \ |
fe8db0c5 | 5165 | libsystemd-network.la \ |
3bef724f | 5166 | libsystemd-label.la \ |
f579559b TG |
5167 | libsystemd-shared.la |
5168 | ||
020d5900 TG |
5169 | rootlibexec_PROGRAMS += \ |
5170 | systemd-networkd-wait-online | |
5171 | ||
679be2a7 | 5172 | systemd_networkd_wait_online_CFLAGS = \ |
bddfc8af | 5173 | $(AM_CFLAGS) |
679be2a7 | 5174 | |
020d5900 | 5175 | systemd_networkd_wait_online_SOURCES = \ |
3a67e927 | 5176 | src/libsystemd-network/network-internal.h \ |
7de12ae7 TG |
5177 | src/network/networkd-wait-online.h \ |
5178 | src/network/networkd-wait-online-link.h \ | |
3a67e927 | 5179 | src/network/networkd-wait-online.c \ |
7de12ae7 TG |
5180 | src/network/networkd-wait-online-manager.c \ |
5181 | src/network/networkd-wait-online-link.c | |
3a67e927 | 5182 | |
020d5900 | 5183 | systemd_networkd_wait_online_LDADD = \ |
d38cbe1b KS |
5184 | libsystemd-network.la \ |
5185 | libudev-internal.la \ | |
020d5900 | 5186 | libsystemd-internal.la \ |
ffcf82d2 | 5187 | libsystemd-shared.la |
020d5900 | 5188 | |
ee8c4568 LP |
5189 | rootbin_PROGRAMS += \ |
5190 | networkctl | |
5191 | ||
5192 | networkctl_SOURCES = \ | |
5193 | src/network/networkctl.c | |
5194 | ||
5195 | networkctl_LDADD = \ | |
5196 | libsystemd-internal.la \ | |
5197 | libudev-internal.la \ | |
5198 | libsystemd-shared.la \ | |
5199 | libsystemd-network.la | |
5200 | ||
f579559b | 5201 | test_network_SOURCES = \ |
911f4d4d | 5202 | src/network/test-network.c |
f579559b | 5203 | |
f884afb2 | 5204 | test_network_CFLAGS = \ |
bddfc8af | 5205 | $(AM_CFLAGS) |
f884afb2 | 5206 | |
f579559b | 5207 | test_network_LDADD = \ |
679be2a7 | 5208 | libsystemd-networkd-core.la |
f579559b | 5209 | |
86bbe5bf ZJS |
5210 | test_network_tables_SOURCES = \ |
5211 | src/network/test-network-tables.c \ | |
5212 | src/shared/test-tables.h | |
5213 | ||
5214 | test_network_tables_LDADD = \ | |
5215 | libsystemd-networkd-core.la \ | |
5216 | libudev-core.la | |
5217 | ||
cde93897 | 5218 | tests += \ |
86bbe5bf ZJS |
5219 | test-network \ |
5220 | test-network-tables | |
f579559b | 5221 | |
2dcf7ec6 TG |
5222 | nodist_systemunit_DATA += \ |
5223 | units/systemd-networkd.service \ | |
5224 | units/systemd-networkd-wait-online.service | |
5225 | ||
5226 | GENERAL_ALIASES += \ | |
5227 | $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \ | |
bfa501e1 | 5228 | $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service |
2dcf7ec6 | 5229 | |
f579559b | 5230 | EXTRA_DIST += \ |
c0dda186 TG |
5231 | src/network/networkd-network-gperf.gperf \ |
5232 | src/network/networkd-netdev-gperf.gperf \ | |
4c06153f | 5233 | units/systemd-networkd.service.in \ |
091a364c | 5234 | units/systemd-networkd-wait-online.service.in |
f579559b TG |
5235 | |
5236 | CLEANFILES += \ | |
c0dda186 | 5237 | src/network/networkd-network-gperf.c \ |
091a364c | 5238 | src/network/networkd-netdev-gperf.c |
3c9317d2 | 5239 | endif |
f579559b | 5240 | |
48d437bb KS |
5241 | # ------------------------------------------------------------------------------ |
5242 | if ENABLE_LOGIND | |
5243 | systemd_logind_SOURCES = \ | |
5244 | src/login/logind.c \ | |
a8b409db ZJS |
5245 | src/login/logind.h |
5246 | ||
5247 | nodist_systemd_logind_SOURCES = \ | |
5248 | src/login/logind-gperf.c | |
5249 | ||
a8b409db | 5250 | systemd_logind_LDADD = \ |
48d7417d | 5251 | libsystemd-logind-core.la |
a8b409db | 5252 | |
a8b409db | 5253 | libsystemd_logind_core_la_SOURCES = \ |
2b3ab29d | 5254 | src/login/logind-core.c \ |
48d437bb | 5255 | src/login/logind-device.c \ |
69dd4165 | 5256 | src/login/logind-device.h \ |
069cfc85 LP |
5257 | src/login/logind-button.c \ |
5258 | src/login/logind-button.h \ | |
23406ce5 LP |
5259 | src/login/logind-action.c \ |
5260 | src/login/logind-action.h \ | |
48d437bb | 5261 | src/login/logind-seat.c \ |
69dd4165 | 5262 | src/login/logind-seat.h \ |
48d437bb | 5263 | src/login/logind-session.c \ |
69dd4165 | 5264 | src/login/logind-session.h \ |
118ecf32 DH |
5265 | src/login/logind-session-device.c \ |
5266 | src/login/logind-session-device.h \ | |
48d437bb | 5267 | src/login/logind-user.c \ |
69dd4165 | 5268 | src/login/logind-user.h \ |
f8e2fb7b LP |
5269 | src/login/logind-inhibit.c \ |
5270 | src/login/logind-inhibit.h \ | |
718db961 | 5271 | src/login/logind-dbus.c \ |
69dd4165 KS |
5272 | src/login/logind-session-dbus.c \ |
5273 | src/login/logind-seat-dbus.c \ | |
48d437bb | 5274 | src/login/logind-user-dbus.c \ |
58dfc42e | 5275 | src/login/logind-acl.h |
8e274523 | 5276 | |
a8b409db | 5277 | libsystemd_logind_core_la_LIBADD = \ |
cc527a47 | 5278 | libsystemd-label.la \ |
48d7417d | 5279 | libsystemd-capability.la \ |
6bb648a1 | 5280 | libsystemd-internal.la \ |
48d7417d KS |
5281 | libudev-internal.la \ |
5282 | libsystemd-shared.la | |
78b2e3a6 | 5283 | |
2b3ab29d ZJS |
5284 | if HAVE_ACL |
5285 | libsystemd_logind_core_la_SOURCES += \ | |
5286 | src/login/logind-acl.c | |
5287 | ||
5288 | libsystemd_logind_core_la_LIBADD += \ | |
5289 | libsystemd-acl.la | |
5290 | endif | |
5291 | ||
a8b409db ZJS |
5292 | noinst_LTLIBRARIES += \ |
5293 | libsystemd-logind-core.la | |
addab137 | 5294 | |
927f62bd | 5295 | systemd_user_sessions_SOURCES = \ |
77d47be6 | 5296 | src/login/user-sessions.c |
927f62bd LP |
5297 | |
5298 | systemd_user_sessions_LDADD = \ | |
cc527a47 | 5299 | libsystemd-shared.la |
927f62bd | 5300 | |
48d437bb | 5301 | rootlibexec_PROGRAMS += \ |
927f62bd LP |
5302 | systemd-logind \ |
5303 | systemd-user-sessions | |
48d437bb | 5304 | |
169c4f65 | 5305 | loginctl_SOURCES = \ |
48d437bb | 5306 | src/login/loginctl.c \ |
f33d3ec1 | 5307 | src/login/sysfs-show.c |
139be57d | 5308 | |
169c4f65 | 5309 | loginctl_LDADD = \ |
6bb648a1 | 5310 | libsystemd-internal.la \ |
48d7417d | 5311 | libudev-internal.la \ |
0ebee881 | 5312 | libsystemd-shared.la |
7e4249b9 | 5313 | |
48d437bb | 5314 | rootbin_PROGRAMS += \ |
169c4f65 LP |
5315 | loginctl |
5316 | ||
d611dadc MB |
5317 | dist_bashcompletion_DATA += \ |
5318 | shell-completion/bash/loginctl | |
5319 | ||
799d54be | 5320 | dist_zshcompletion_DATA += \ |
67e654f8 WG |
5321 | shell-completion/zsh/_loginctl \ |
5322 | shell-completion/zsh/_systemd-inhibit | |
799d54be | 5323 | |
eecd1362 LP |
5324 | systemd_inhibit_SOURCES = \ |
5325 | src/login/inhibit.c | |
5326 | ||
eecd1362 | 5327 | systemd_inhibit_LDADD = \ |
6bb648a1 | 5328 | libsystemd-internal.la \ |
d9f644e2 | 5329 | libsystemd-shared.la |
eecd1362 LP |
5330 | |
5331 | rootbin_PROGRAMS += \ | |
5332 | systemd-inhibit | |
5333 | ||
48d437bb | 5334 | test_login_SOURCES = \ |
58dfc42e | 5335 | src/libsystemd/sd-login/test-login.c |
48d437bb KS |
5336 | |
5337 | test_login_LDADD = \ | |
0bba8d6e | 5338 | libsystemd-internal.la \ |
cc527a47 | 5339 | libsystemd-shared.la |
4a2a8b5a | 5340 | |
35375afe ZJS |
5341 | test_login_shared_SOURCES = \ |
5342 | src/login/test-login-shared.c | |
5343 | ||
5344 | test_login_shared_LDADD = \ | |
0bba8d6e | 5345 | libsystemd-internal.la \ |
35375afe ZJS |
5346 | libsystemd-shared.la |
5347 | ||
f8e2fb7b LP |
5348 | test_inhibit_SOURCES = \ |
5349 | src/login/test-inhibit.c | |
5350 | ||
5351 | test_inhibit_LDADD = \ | |
6bb648a1 | 5352 | libsystemd-internal.la \ |
48d7417d | 5353 | libsystemd-shared.la |
f8e2fb7b | 5354 | |
a8b409db ZJS |
5355 | test_login_tables_SOURCES = \ |
5356 | src/login/test-login-tables.c | |
5357 | ||
a8b409db ZJS |
5358 | test_login_tables_LDADD = \ |
5359 | libsystemd-logind-core.la | |
5360 | ||
cee22bd3 | 5361 | manual_tests += \ |
f8e2fb7b LP |
5362 | test-login \ |
5363 | test-inhibit | |
490aed58 | 5364 | |
a8b409db | 5365 | tests += \ |
35375afe ZJS |
5366 | test-login-tables \ |
5367 | test-login-shared | |
a8b409db | 5368 | |
48d437bb KS |
5369 | if HAVE_PAM |
5370 | pam_systemd_la_SOURCES = \ | |
e09c69d9 | 5371 | src/login/pam_systemd.sym \ |
dfb0c6cc | 5372 | src/login/pam_systemd.c |
22be093f | 5373 | |
48d437bb KS |
5374 | pam_systemd_la_CFLAGS = \ |
5375 | $(AM_CFLAGS) \ | |
5376 | $(PAM_CFLAGS) \ | |
48d437bb | 5377 | -fvisibility=hidden |
22be093f | 5378 | |
48d437bb | 5379 | pam_systemd_la_LDFLAGS = \ |
f7b6a32e | 5380 | $(AM_LDFLAGS) \ |
48d437bb KS |
5381 | -module \ |
5382 | -export-dynamic \ | |
5383 | -avoid-version \ | |
5384 | -shared \ | |
e09c69d9 | 5385 | -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym |
48d437bb KS |
5386 | |
5387 | pam_systemd_la_LIBADD = \ | |
48d7417d | 5388 | libsystemd-capability.la \ |
6bb648a1 | 5389 | libsystemd-internal.la \ |
cc527a47 | 5390 | libsystemd-shared.la \ |
b7739c77 | 5391 | $(PAM_LIBS) |
22be093f | 5392 | |
48d437bb KS |
5393 | pamlib_LTLIBRARIES = \ |
5394 | pam_systemd.la | |
5c390a4a ZJS |
5395 | |
5396 | dist_pamconf_DATA = \ | |
5397 | src/login/systemd-user | |
48d437bb | 5398 | endif |
22be093f | 5399 | |
48d437bb | 5400 | nodist_systemunit_DATA += \ |
927f62bd LP |
5401 | units/systemd-logind.service \ |
5402 | units/systemd-user-sessions.service | |
ac34b3af ZJS |
5403 | |
5404 | dist_systemunit_DATA += \ | |
36e46fe9 MB |
5405 | units/user.slice |
5406 | ||
5407 | dist_systemunit_DATA_busnames += \ | |
cde360cd | 5408 | units/org.freedesktop.login1.busname |
88213476 | 5409 | |
48d437bb KS |
5410 | dist_dbussystemservice_DATA += \ |
5411 | src/login/org.freedesktop.login1.service | |
88213476 | 5412 | |
48d437bb KS |
5413 | dist_dbuspolicy_DATA += \ |
5414 | src/login/org.freedesktop.login1.conf | |
88213476 | 5415 | |
48d437bb | 5416 | dist_pkgsysconf_DATA += \ |
18b754d3 | 5417 | src/login/logind.conf |
a8f11321 | 5418 | |
299031ca BK |
5419 | polkitpolicy_files += \ |
5420 | src/login/org.freedesktop.login1.policy | |
10e87ee7 | 5421 | |
6ff39241 ZJS |
5422 | INSTALL_DIRS += \ |
5423 | $(systemdstatedir) | |
5424 | ||
5425 | MULTI_USER_TARGET_WANTS += \ | |
5426 | systemd-logind.service \ | |
5427 | systemd-user-sessions.service | |
5428 | ||
91e8651b ZJS |
5429 | SYSTEM_UNIT_ALIASES += \ |
5430 | systemd-logind.service dbus-org.freedesktop.login1.service | |
490aed58 | 5431 | |
cde360cd LP |
5432 | BUSNAMES_TARGET_WANTS += \ |
5433 | org.freedesktop.login1.busname | |
5434 | ||
48d437bb | 5435 | dist_udevrules_DATA += \ |
cc093337 | 5436 | src/login/70-uaccess.rules \ |
069cfc85 | 5437 | src/login/70-power-switch.rules |
131a4dcf KS |
5438 | |
5439 | nodist_udevrules_DATA += \ | |
d7e1c95e | 5440 | src/login/71-seat.rules \ |
131a4dcf | 5441 | src/login/73-seat-late.rules |
114a50f8 | 5442 | |
299031ca BK |
5443 | CLEANFILES += \ |
5444 | src/login/logind-gperf.c \ | |
5445 | src/login/71-seat.rules \ | |
5446 | src/login/73-seat-late.rules | |
5447 | endif | |
5448 | ||
5449 | polkitpolicy_in_files += \ | |
5450 | src/login/org.freedesktop.login1.policy.in | |
5451 | ||
48d437bb KS |
5452 | EXTRA_DIST += \ |
5453 | src/login/logind-gperf.gperf \ | |
d7e1c95e | 5454 | src/login/71-seat.rules.in \ |
131a4dcf KS |
5455 | src/login/73-seat-late.rules.in \ |
5456 | units/systemd-logind.service.in \ | |
5457 | units/systemd-user-sessions.service.in | |
48d437bb | 5458 | |
48d437bb | 5459 | # ------------------------------------------------------------------------------ |
8d7e170a | 5460 | if HAVE_PYTHON_DEVEL |
8d7e170a | 5461 | pkgpyexec_LTLIBRARIES = \ |
927e9632 | 5462 | _journal.la \ |
c4e9b5b5 | 5463 | id128.la \ |
b04c8c83 | 5464 | _daemon.la \ |
539e0a4d ZJS |
5465 | _reader.la \ |
5466 | login.la | |
8d7e170a LP |
5467 | |
5468 | _journal_la_SOURCES = \ | |
5469 | src/python-systemd/_journal.c | |
5470 | ||
5471 | _journal_la_CFLAGS = \ | |
5472 | $(AM_CFLAGS) \ | |
f5944e0f | 5473 | -fvisibility=default \ |
a6c0b31d | 5474 | $(PYTHON_DEVEL_CFLAGS) |
8d7e170a LP |
5475 | |
5476 | _journal_la_LDFLAGS = \ | |
5477 | $(AM_LDFLAGS) \ | |
5478 | -shared \ | |
5479 | -module \ | |
5480 | -avoid-version | |
5481 | ||
5482 | _journal_la_LIBADD = \ | |
a6c0b31d | 5483 | $(PYTHON_DEVEL_LIBS) \ |
add00dfd | 5484 | libsystemd.la |
8d7e170a | 5485 | |
927e9632 ZJS |
5486 | id128_la_SOURCES = \ |
5487 | src/python-systemd/id128.c \ | |
6a6633a1 ZJS |
5488 | src/python-systemd/pyutil.c \ |
5489 | src/python-systemd/pyutil.h | |
927e9632 | 5490 | |
49100d2a FB |
5491 | nodist_id128_la_SOURCES = \ |
5492 | src/python-systemd/id128-constants.h | |
5493 | ||
927e9632 ZJS |
5494 | id128_la_CFLAGS = \ |
5495 | $(AM_CFLAGS) \ | |
f5944e0f | 5496 | -fvisibility=default \ |
a6c0b31d | 5497 | $(PYTHON_DEVEL_CFLAGS) \ |
927e9632 ZJS |
5498 | -I$(top_builddir)/src/python-systemd |
5499 | ||
5500 | id128_la_LDFLAGS = \ | |
5501 | $(AM_LDFLAGS) \ | |
5502 | -shared \ | |
5503 | -module \ | |
5504 | -avoid-version | |
5505 | ||
5506 | id128_la_LIBADD = \ | |
a6c0b31d | 5507 | $(PYTHON_DEVEL_LIBS) \ |
f01de965 KS |
5508 | libsystemd-shared.la \ |
5509 | libsystemd.la | |
927e9632 | 5510 | |
b04c8c83 ZJS |
5511 | _daemon_la_SOURCES = \ |
5512 | src/python-systemd/_daemon.c \ | |
5513 | src/python-systemd/pyutil.c \ | |
5514 | src/python-systemd/pyutil.h | |
5515 | ||
5516 | _daemon_la_CFLAGS = \ | |
5517 | $(AM_CFLAGS) \ | |
f5944e0f | 5518 | -fvisibility=default \ |
a6c0b31d | 5519 | $(PYTHON_DEVEL_CFLAGS) \ |
b04c8c83 ZJS |
5520 | -I$(top_builddir)/src/python-systemd |
5521 | ||
5522 | _daemon_la_LDFLAGS = \ | |
5523 | $(AM_LDFLAGS) \ | |
5524 | -shared \ | |
5525 | -module \ | |
5526 | -avoid-version | |
5527 | ||
5528 | _daemon_la_LIBADD = \ | |
a6c0b31d | 5529 | $(PYTHON_DEVEL_LIBS) \ |
f01de965 KS |
5530 | libsystemd-shared.la \ |
5531 | libsystemd.la | |
b04c8c83 | 5532 | |
c4e9b5b5 | 5533 | _reader_la_SOURCES = \ |
6a6633a1 ZJS |
5534 | src/python-systemd/_reader.c \ |
5535 | src/python-systemd/pyutil.c \ | |
5536 | src/python-systemd/pyutil.h | |
c4e9b5b5 SH |
5537 | |
5538 | _reader_la_CFLAGS = \ | |
5539 | $(AM_CFLAGS) \ | |
f5944e0f | 5540 | -fvisibility=default \ |
a6c0b31d | 5541 | $(PYTHON_DEVEL_CFLAGS) |
c4e9b5b5 SH |
5542 | |
5543 | _reader_la_LDFLAGS = \ | |
5544 | $(AM_LDFLAGS) \ | |
5545 | -shared \ | |
5546 | -module \ | |
5547 | -avoid-version | |
5548 | ||
5549 | _reader_la_LIBADD = \ | |
a6c0b31d | 5550 | $(PYTHON_DEVEL_LIBS) \ |
f01de965 KS |
5551 | libsystemd-shared.la \ |
5552 | libsystemd.la | |
c4e9b5b5 | 5553 | |
539e0a4d ZJS |
5554 | login_la_SOURCES = \ |
5555 | src/python-systemd/login.c \ | |
5556 | src/python-systemd/pyutil.c \ | |
5557 | src/python-systemd/pyutil.h | |
5558 | ||
5559 | login_la_CFLAGS = \ | |
5560 | $(AM_CFLAGS) \ | |
5561 | -fvisibility=default \ | |
a6c0b31d | 5562 | $(PYTHON_DEVEL_CFLAGS) |
539e0a4d ZJS |
5563 | |
5564 | login_la_LDFLAGS = \ | |
5565 | $(AM_LDFLAGS) \ | |
5566 | -shared \ | |
5567 | -module \ | |
5568 | -avoid-version | |
5569 | ||
5570 | login_la_LIBADD = \ | |
a6c0b31d | 5571 | $(PYTHON_DEVEL_LIBS) \ |
f01de965 KS |
5572 | libsystemd-shared.la \ |
5573 | libsystemd.la | |
539e0a4d | 5574 | |
8d7e170a LP |
5575 | dist_pkgpyexec_PYTHON = \ |
5576 | src/python-systemd/journal.py \ | |
b04c8c83 | 5577 | src/python-systemd/daemon.py \ |
8d7e170a | 5578 | src/python-systemd/__init__.py |
927e9632 | 5579 | |
dff55e5d | 5580 | src/python-systemd/id128-constants.h: src/systemd/sd-messages.h |
927e9632 | 5581 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
6a6633a1 | 5582 | $(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 |
5583 | |
5584 | BUILT_SOURCES += \ | |
5585 | src/python-systemd/id128-constants.h | |
8d7e170a | 5586 | |
c8c9c69f | 5587 | SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION) |
9015fa64 | 5588 | sphinx-%: |
603c0b7b | 5589 | $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; } |
9b281072 ZJS |
5590 | $(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/ |
5591 | $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/ | |
9015fa64 | 5592 | |
a7739f8f ZJS |
5593 | python-shell: |
5594 | $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)" | |
5595 | $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON) | |
5596 | ||
d426d8c8 | 5597 | destdir-sphinx: all |
e76d2e20 | 5598 | dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \ |
d426d8c8 | 5599 | $(MAKE) DESTDIR="$$dir" install && \ |
f5944e0f | 5600 | $(MAKE) DESTDIR="$$dir" sphinx-html && \ |
d426d8c8 ZJS |
5601 | rm -rf "$$dir" |
5602 | ||
87cfe600 ZJS |
5603 | endif |
5604 | ||
9b281072 ZJS |
5605 | CLEAN_LOCAL_HOOKS += clean-sphinx |
5606 | ||
9f700755 ZJS |
5607 | .PHONY: python-shell destdir-sphinx clean-sphinx clean-python |
5608 | ||
9b281072 ZJS |
5609 | clean-sphinx: |
5610 | -rm -rf docs/html/python-systemd/ | |
5611 | ||
f5853daf ZJS |
5612 | # Remove Python stuff, e.g. to force rebuilding for a different Python version. |
5613 | clean-python: | |
5614 | -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao] | |
5615 | -rm -f _daemon.la id128.la _journal.la login.la _reader.la | |
5616 | ||
0bba8d6e | 5617 | # ------------------------------------------------------------------------------ |
53e856e1 | 5618 | if ENABLE_COMPAT_LIBS |
62ae6dd4 LP |
5619 | EXTRA_DIST += \ |
5620 | src/compat-libs/linkwarning.h | |
5621 | ||
03e37dd7 | 5622 | libsystemd-%.c: src/compat-libs/libsystemd-%.sym |
0bba8d6e | 5623 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
03e37dd7 KS |
5624 | $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@ |
5625 | ||
5626 | BUILT_SOURCES += \ | |
5627 | libsystemd-journal.c \ | |
5628 | libsystemd-login.c \ | |
5629 | libsystemd-id128.c \ | |
5630 | libsystemd-daemon.c | |
0bba8d6e | 5631 | |
add00dfd KS |
5632 | libsystemd_journal_la_SOURCES = \ |
5633 | libsystemd-journal.c \ | |
5634 | src/compat-libs/libsystemd-journal.sym | |
5635 | ||
03e37dd7 | 5636 | libsystemd_journal_la_CPPFLAGS = \ |
add00dfd | 5637 | $(AM_CFLAGS) \ |
03e37dd7 | 5638 | -imacros$(top_srcdir)/src/compat-libs/linkwarning.h |
add00dfd KS |
5639 | |
5640 | libsystemd_journal_la_LDFLAGS = \ | |
5641 | $(AM_LDFLAGS) \ | |
5642 | -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \ | |
5643 | -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym | |
5644 | ||
5645 | libsystemd_journal_la_LIBADD = \ | |
03e37dd7 KS |
5646 | libsystemd-journal-internal.la \ |
5647 | libsystemd-internal.la \ | |
5648 | libsystemd-shared.la | |
add00dfd | 5649 | |
0bba8d6e ZJS |
5650 | libsystemd_login_la_SOURCES = \ |
5651 | libsystemd-login.c \ | |
53e856e1 | 5652 | src/compat-libs/libsystemd-login.sym |
0bba8d6e | 5653 | |
03e37dd7 | 5654 | libsystemd_login_la_CPPFLAGS = \ |
0bba8d6e | 5655 | $(AM_CFLAGS) \ |
03e37dd7 | 5656 | -imacros$(top_srcdir)/src/compat-libs/linkwarning.h |
0bba8d6e ZJS |
5657 | |
5658 | libsystemd_login_la_LDFLAGS = \ | |
5659 | $(AM_LDFLAGS) \ | |
5660 | -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \ | |
53e856e1 | 5661 | -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym |
0bba8d6e ZJS |
5662 | |
5663 | libsystemd_login_la_LIBADD = \ | |
03e37dd7 KS |
5664 | libsystemd-internal.la \ |
5665 | libsystemd-shared.la | |
0bba8d6e | 5666 | |
be127913 ZJS |
5667 | libsystemd_id128_la_SOURCES = \ |
5668 | libsystemd-id128.c \ | |
5669 | src/compat-libs/libsystemd-id128.sym | |
5670 | ||
03e37dd7 KS |
5671 | libsystemd_id128_la_CPPFLAGS = \ |
5672 | $(AM_CFLAGS) \ | |
5673 | -imacros$(top_srcdir)/src/compat-libs/linkwarning.h | |
be127913 ZJS |
5674 | |
5675 | libsystemd_id128_la_LDFLAGS = \ | |
5676 | $(AM_LDFLAGS) \ | |
5677 | -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \ | |
5678 | -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym | |
5679 | ||
5680 | libsystemd_id128_la_LIBADD = \ | |
03e37dd7 KS |
5681 | libsystemd-internal.la \ |
5682 | libsystemd-shared.la | |
be127913 | 5683 | |
0ebee881 KS |
5684 | libsystemd_daemon_la_SOURCES = \ |
5685 | libsystemd-daemon.c \ | |
5686 | src/compat-libs/libsystemd-daemon.sym | |
5687 | ||
03e37dd7 KS |
5688 | libsystemd_daemon_la_CPPFLAGS = \ |
5689 | $(AM_CFLAGS) \ | |
5690 | -imacros$(top_srcdir)/src/compat-libs/linkwarning.h | |
0ebee881 KS |
5691 | |
5692 | libsystemd_daemon_la_LDFLAGS = \ | |
5693 | $(AM_LDFLAGS) \ | |
5694 | -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \ | |
5695 | -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym | |
5696 | ||
5697 | libsystemd_daemon_la_LIBADD = \ | |
03e37dd7 KS |
5698 | libsystemd-internal.la \ |
5699 | libsystemd-shared.la | |
0bba8d6e ZJS |
5700 | |
5701 | lib_LTLIBRARIES += \ | |
add00dfd | 5702 | libsystemd-journal.la \ |
be127913 | 5703 | libsystemd-login.la \ |
0ebee881 KS |
5704 | libsystemd-id128.la \ |
5705 | libsystemd-daemon.la | |
0bba8d6e ZJS |
5706 | |
5707 | pkgconfiglib_DATA += \ | |
3d3143b4 | 5708 | src/compat-libs/libsystemd-journal.pc \ |
be127913 | 5709 | src/compat-libs/libsystemd-login.pc \ |
0ebee881 KS |
5710 | src/compat-libs/libsystemd-id128.pc \ |
5711 | src/compat-libs/libsystemd-daemon.pc | |
0bba8d6e ZJS |
5712 | |
5713 | # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed | |
be127913 | 5714 | compat-lib-install-hook: |
0bba8d6e | 5715 | libname=libsystemd-login.so && $(move-to-rootlibdir) |
df40be6a | 5716 | libname=libsystemd-journal.so && $(move-to-rootlibdir) |
be127913 | 5717 | libname=libsystemd-id128.so && $(move-to-rootlibdir) |
0ebee881 | 5718 | libname=libsystemd-daemon.so && $(move-to-rootlibdir) |
0bba8d6e | 5719 | |
be127913 | 5720 | compat-lib-uninstall-hook: |
0bba8d6e | 5721 | rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so* |
df40be6a | 5722 | rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so* |
be127913 | 5723 | rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so* |
0ebee881 | 5724 | rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so* |
0bba8d6e | 5725 | |
be127913 ZJS |
5726 | INSTALL_EXEC_HOOKS += compat-lib-install-hook |
5727 | UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook | |
53e856e1 ZJS |
5728 | endif |
5729 | ||
be127913 | 5730 | EXTRA_DIST += \ |
24442f3b | 5731 | src/compat-libs/libsystemd-journal.pc.in \ |
be127913 | 5732 | src/compat-libs/libsystemd-login.pc.in \ |
0ebee881 KS |
5733 | src/compat-libs/libsystemd-id128.pc.in \ |
5734 | src/compat-libs/libsystemd-daemon.pc.in | |
be127913 | 5735 | |
8d7e170a | 5736 | # ------------------------------------------------------------------------------ |
4e7b3c20 ZJS |
5737 | substitutions = \ |
5738 | '|rootlibexecdir=$(rootlibexecdir)|' \ | |
5739 | '|rootbindir=$(rootbindir)|' \ | |
5740 | '|bindir=$(bindir)|' \ | |
5741 | '|SYSTEMCTL=$(rootbindir)/systemctl|' \ | |
5742 | '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \ | |
5743 | '|pkgsysconfdir=$(pkgsysconfdir)|' \ | |
5744 | '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \ | |
5745 | '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \ | |
5746 | '|pkgdatadir=$(pkgdatadir)|' \ | |
5747 | '|systemunitdir=$(systemunitdir)|' \ | |
5748 | '|userunitdir=$(userunitdir)|' \ | |
5749 | '|systempresetdir=$(systempresetdir)|' \ | |
5750 | '|userpresetdir=$(userpresetdir)|' \ | |
5751 | '|udevhwdbdir=$(udevhwdbdir)|' \ | |
5752 | '|udevrulesdir=$(udevrulesdir)|' \ | |
5753 | '|catalogdir=$(catalogdir)|' \ | |
5754 | '|tmpfilesdir=$(tmpfilesdir)|' \ | |
1b992147 | 5755 | '|sysusersdir=$(sysusersdir)|' \ |
4e7b3c20 | 5756 | '|sysctldir=$(sysctldir)|' \ |
d267e69d ZJS |
5757 | '|systemgeneratordir=$(systemgeneratordir)|' \ |
5758 | '|usergeneratordir=$(usergeneratordir)|' \ | |
ad95fd1d | 5759 | '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \ |
4e7b3c20 ZJS |
5760 | '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \ |
5761 | '|PACKAGE_NAME=$(PACKAGE_NAME)|' \ | |
5762 | '|PACKAGE_URL=$(PACKAGE_URL)|' \ | |
952d97ed | 5763 | '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \ |
ef5bfcf6 | 5764 | '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \ |
4e7b3c20 ZJS |
5765 | '|prefix=$(prefix)|' \ |
5766 | '|exec_prefix=$(exec_prefix)|' \ | |
5767 | '|libdir=$(libdir)|' \ | |
5768 | '|includedir=$(includedir)|' \ | |
5769 | '|VERSION=$(VERSION)|' \ | |
5770 | '|rootprefix=$(rootprefix)|' \ | |
5771 | '|udevlibexecdir=$(udevlibexecdir)|' \ | |
5772 | '|SUSHELL=$(SUSHELL)|' \ | |
5773 | '|DEBUGTTY=$(DEBUGTTY)|' \ | |
5774 | '|KILL=$(KILL)|' \ | |
edeb68c5 | 5775 | '|KMOD=$(KMOD)|' \ |
3d56f7df | 5776 | '|MKDIR_P=$(MKDIR_P)|' \ |
4e7b3c20 ZJS |
5777 | '|QUOTAON=$(QUOTAON)|' \ |
5778 | '|QUOTACHECK=$(QUOTACHECK)|' \ | |
5779 | '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \ | |
5780 | '|VARLOGDIR=$(varlogdir)|' \ | |
5781 | '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \ | |
5782 | '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \ | |
5783 | '|PYTHON=$(PYTHON)|' \ | |
e8af6973 | 5784 | '|PYTHON_BINARY=$(PYTHON_BINARY)|' \ |
2dcf7ec6 | 5785 | '|NTP_SERVERS=$(NTP_SERVERS)|' \ |
f7dc3ab9 LP |
5786 | '|DNS_SERVERS=$(DNS_SERVERS)|' \ |
5787 | '|systemuidmax=$(SYSTEM_UID_MAX)|' \ | |
f8b5d994 | 5788 | '|systemgidmax=$(SYSTEM_GID_MAX)|' \ |
d4e85aac LP |
5789 | '|TTY_GID=$(TTY_GID)|' \ |
5790 | '|systemsleepdir=$(systemsleepdir)|' \ | |
5791 | '|systemshutdowndir=$(systemshutdowndir)|' \ | |
5792 | '|binfmtdir=$(binfmtdir)|' \ | |
5793 | '|modulesloaddir=$(modulesloaddir)|' | |
4e7b3c20 | 5794 | |
5e6afdd3 | 5795 | SED_PROCESS = \ |
a00e4879 | 5796 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ |
4e7b3c20 | 5797 | $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \ |
96bd03d5 | 5798 | < $< > $@ |
70fcff31 | 5799 | |
dff55e5d | 5800 | units/%: units/%.in |
5e6afdd3 LP |
5801 | $(SED_PROCESS) |
5802 | ||
dff55e5d | 5803 | man/%: man/%.in |
5e6afdd3 | 5804 | $(SED_PROCESS) |
f5e04665 | 5805 | |
dff55e5d | 5806 | sysctl.d/%: sysctl.d/%.in |
f5e04665 | 5807 | $(SED_PROCESS) |
5e6afdd3 | 5808 | |
dff55e5d | 5809 | %.pc: %.pc.in |
8c6db833 LP |
5810 | $(SED_PROCESS) |
5811 | ||
ad95fd1d ZJS |
5812 | %.conf: %.conf.in |
5813 | $(SED_PROCESS) | |
5814 | ||
dff55e5d | 5815 | src/core/macros.%: src/core/macros.%.in |
590f18a2 LP |
5816 | $(SED_PROCESS) |
5817 | ||
dff55e5d | 5818 | src/%.policy.in: src/%.policy.in.in |
25705583 LP |
5819 | $(SED_PROCESS) |
5820 | ||
c0a67aef ZJS |
5821 | shell-completion/%: shell-completion/%.in |
5822 | $(SED_PROCESS) | |
5823 | ||
dff55e5d | 5824 | %.rules: %.rules.in |
0b191e60 LP |
5825 | $(SED_PROCESS) |
5826 | ||
e8af6973 LP |
5827 | %.conf: %.conf.in |
5828 | $(SED_PROCESS) | |
5829 | ||
dff55e5d | 5830 | %.sh: %.sh.in |
3e214785 KS |
5831 | $(SED_PROCESS) |
5832 | $(AM_V_GEN)chmod +x $@ | |
5833 | ||
f975e971 | 5834 | src/%.c: src/%.gperf |
bd923ff2 | 5835 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
c8503a3e | 5836 | $(AM_V_GPERF)$(GPERF) < $< > $@ |
f975e971 LP |
5837 | |
5838 | src/%: src/%.m4 | |
bd923ff2 | 5839 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
ebea41b8 | 5840 | $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@ |
f975e971 | 5841 | |
aeb50ff0 TG |
5842 | tmpfiles.d/%: tmpfiles.d/%.m4 |
5843 | $(AM_V_at)$(MKDIR_P) $(dir $@) | |
5844 | $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@ | |
5845 | ||
5846 | ||
dff55e5d | 5847 | units/%: units/%.m4 |
4acbce79 | 5848 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
38936e3c | 5849 | $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@ |
5e6afdd3 | 5850 | |
dff55e5d | 5851 | units/user/%: units/%.m4 |
4acbce79 | 5852 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
38936e3c | 5853 | $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@ |
a7b6f8e5 | 5854 | |
46ba8aae | 5855 | if ENABLE_POLKIT |
3ce14249 | 5856 | nodist_polkitpolicy_DATA = \ |
299031ca | 5857 | $(polkitpolicy_files) \ |
90ccc3fc | 5858 | $(polkitpolicy_in_in_files:.policy.in.in=.policy) |
46ba8aae | 5859 | endif |
90ccc3fc KS |
5860 | |
5861 | EXTRA_DIST += \ | |
5862 | $(polkitpolicy_in_files) \ | |
5863 | $(polkitpolicy_in_in_files) | |
5864 | ||
2a018e83 | 5865 | CLEANFILES += \ |
6f6083dc | 5866 | $(nodist_systemunit_DATA) \ |
af2d49f7 | 5867 | $(nodist_userunit_DATA) \ |
3eb4d9a2 | 5868 | $(pkgconfigdata_DATA) \ |
6a9bff42 | 5869 | $(pkgconfiglib_DATA) \ |
90ccc3fc | 5870 | $(nodist_polkitpolicy_DATA) |
4697132b | 5871 | |
2a4b7e7b | 5872 | # ------------------------------------------------------------------------------ |
fe1fed02 | 5873 | if ENABLE_MANPAGES |
a8787892 | 5874 | man/custom-entities.ent: configure.ac |
1a13e31d ZJS |
5875 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) |
5876 | $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \ | |
21ac6ff1 | 5877 | printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \ |
1a13e31d ZJS |
5878 | > $@ # ' |
5879 | ||
5880 | DISTCLEANFILES += \ | |
5881 | man/custom-entities.ent | |
5882 | ||
c6365917 LP |
5883 | XSLTPROC_FLAGS = \ |
5884 | --nonet \ | |
21ac6ff1 | 5885 | --xinclude \ |
7c1d34c5 | 5886 | --stringparam man.output.quietly 1 \ |
e362b372 | 5887 | --stringparam funcsynopsis.style ansi \ |
e362b372 | 5888 | --stringparam man.authors.section.enabled 0 \ |
702f64b9 | 5889 | --stringparam man.copyright.section.enabled 0 \ |
1a13e31d ZJS |
5890 | --stringparam systemd.version $(VERSION) \ |
5891 | --path '$(builddir)/man:$(srcdir)/man' | |
c6365917 | 5892 | |
9f2c5942 | 5893 | XSLTPROC_PROCESS_MAN = \ |
1a13e31d | 5894 | $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $< |
d1ab0ca0 | 5895 | |
9f2c5942 | 5896 | XSLTPROC_PROCESS_HTML = \ |
1a13e31d | 5897 | $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $< |
d1ab0ca0 | 5898 | |
1a13e31d | 5899 | man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent |
f9378423 LP |
5900 | $(XSLTPROC_PROCESS_MAN) |
5901 | ||
1a13e31d | 5902 | man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent |
359957ee LP |
5903 | $(XSLTPROC_PROCESS_MAN) |
5904 | ||
1a13e31d | 5905 | man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent |
9f2c5942 LP |
5906 | $(XSLTPROC_PROCESS_MAN) |
5907 | ||
1a13e31d | 5908 | man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent |
9f2c5942 LP |
5909 | $(XSLTPROC_PROCESS_MAN) |
5910 | ||
1a13e31d | 5911 | man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent |
f9378423 LP |
5912 | $(XSLTPROC_PROCESS_MAN) |
5913 | ||
1a13e31d | 5914 | man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent |
9f2c5942 | 5915 | $(XSLTPROC_PROCESS_HTML) |
87cfe600 ZJS |
5916 | |
5917 | define html-alias | |
78316212 | 5918 | $(AM_V_LN)$(LN_S) -f $(notdir $<) $@ |
87cfe600 ZJS |
5919 | endef |
5920 | ||
c3bd7322 | 5921 | endif |
d1ab0ca0 | 5922 | |
4afb5c73 ZJS |
5923 | EXTRA_DIST += \ |
5924 | man/custom-html.xsl \ | |
5925 | man/custom-man.xsl | |
5926 | ||
2a4b7e7b | 5927 | # ------------------------------------------------------------------------------ |
0ce8860a LP |
5928 | if HAVE_SYSV_COMPAT |
5929 | sysvinit_DATA = \ | |
5930 | docs/sysvinit/README | |
5931 | ||
5932 | varlog_DATA = \ | |
5933 | docs/var-log/README | |
5934 | ||
5935 | docs/sysvinit/README: docs/sysvinit/README.in | |
5936 | $(SED_PROCESS) | |
5937 | ||
5938 | docs/var-log/README: docs/var-log/README.in | |
5939 | $(SED_PROCESS) | |
5940 | ||
5b4882b6 KS |
5941 | CLEANFILES += \ |
5942 | docs/sysvinit/README \ | |
5943 | docs/var-log/README | |
0ce8860a LP |
5944 | endif |
5945 | ||
52edb228 ZJS |
5946 | EXTRA_DIST += \ |
5947 | docs/sysvinit/README.in \ | |
5948 | docs/var-log/README.in | |
5949 | ||
6ff39241 ZJS |
5950 | SOCKETS_TARGET_WANTS += \ |
5951 | systemd-initctl.socket \ | |
5952 | systemd-shutdownd.socket | |
5953 | ||
37161c51 | 5954 | if HAVE_UTMP |
245d345f | 5955 | if HAVE_SYSV_COMPAT |
6ff39241 ZJS |
5956 | RUNLEVEL1_TARGET_WANTS += \ |
5957 | systemd-update-utmp-runlevel.service | |
5958 | RUNLEVEL2_TARGET_WANTS += \ | |
5959 | systemd-update-utmp-runlevel.service | |
5960 | RUNLEVEL3_TARGET_WANTS += \ | |
5961 | systemd-update-utmp-runlevel.service | |
5962 | RUNLEVEL4_TARGET_WANTS += \ | |
5963 | systemd-update-utmp-runlevel.service | |
5964 | RUNLEVEL5_TARGET_WANTS += \ | |
5965 | systemd-update-utmp-runlevel.service | |
245d345f | 5966 | endif |
8ea48dfc | 5967 | |
3f92e4b4 | 5968 | SYSINIT_TARGET_WANTS += \ |
37161c51 ERB |
5969 | systemd-update-utmp.service |
5970 | endif | |
5971 | ||
5972 | SYSINIT_TARGET_WANTS += \ | |
12e34d9d | 5973 | systemd-update-done.service |
8ea48dfc | 5974 | |
6ff39241 ZJS |
5975 | LOCAL_FS_TARGET_WANTS += \ |
5976 | systemd-remount-fs.service \ | |
6ff39241 | 5977 | tmp.mount |
8ea48dfc | 5978 | |
6ff39241 ZJS |
5979 | MULTI_USER_TARGET_WANTS += \ |
5980 | getty.target \ | |
5981 | systemd-ask-password-wall.path | |
8ea48dfc | 5982 | |
6ff39241 ZJS |
5983 | SYSINIT_TARGET_WANTS += \ |
5984 | dev-hugepages.mount \ | |
5985 | dev-mqueue.mount \ | |
5986 | sys-kernel-config.mount \ | |
5987 | sys-kernel-debug.mount \ | |
5988 | sys-fs-fuse-connections.mount \ | |
6ff39241 ZJS |
5989 | systemd-sysctl.service \ |
5990 | systemd-ask-password-console.path | |
6351163b | 5991 | |
245d345f | 5992 | if HAVE_SYSV_COMPAT |
91e8651b ZJS |
5993 | SYSTEM_UNIT_ALIASES += \ |
5994 | poweroff.target runlevel0.target \ | |
5995 | rescue.target runlevel1.target \ | |
5996 | multi-user.target runlevel2.target \ | |
5997 | multi-user.target runlevel3.target \ | |
5998 | multi-user.target runlevel4.target \ | |
5999 | graphical.target runlevel5.target \ | |
245d345f ZJS |
6000 | reboot.target runlevel6.target |
6001 | endif | |
2a4b7e7b | 6002 | |
245d345f | 6003 | SYSTEM_UNIT_ALIASES += \ |
91e8651b ZJS |
6004 | graphical.target default.target \ |
6005 | reboot.target ctrl-alt-del.target \ | |
6006 | getty@.service autovt@.service | |
6007 | ||
6008 | USER_UNIT_ALIASES += \ | |
6009 | $(systemunitdir)/shutdown.target shutdown.target \ | |
6010 | $(systemunitdir)/sockets.target sockets.target \ | |
e3d84721 LP |
6011 | $(systemunitdir)/timers.target timers.target \ |
6012 | $(systemunitdir)/paths.target paths.target \ | |
91e8651b ZJS |
6013 | $(systemunitdir)/bluetooth.target bluetooth.target \ |
6014 | $(systemunitdir)/printer.target printer.target \ | |
e06e62f4 LP |
6015 | $(systemunitdir)/sound.target sound.target \ |
6016 | $(systemunitdir)/smartcard.target smartcard.target | |
91e8651b | 6017 | |
36e46fe9 MB |
6018 | if ENABLE_KDBUS |
6019 | USER_UNIT_ALIASES += \ | |
6020 | $(systemunitdir)/busnames.target busnames.target | |
6021 | endif | |
6022 | ||
91e8651b ZJS |
6023 | GENERAL_ALIASES += \ |
6024 | $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \ | |
6025 | $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \ | |
6026 | $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \ | |
e2438b7a | 6027 | $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service |
91e8651b | 6028 | |
245d345f | 6029 | if HAVE_SYSV_COMPAT |
91e8651b ZJS |
6030 | INSTALL_DIRS += \ |
6031 | $(systemunitdir)/runlevel1.target.wants \ | |
6032 | $(systemunitdir)/runlevel2.target.wants \ | |
6033 | $(systemunitdir)/runlevel3.target.wants \ | |
6034 | $(systemunitdir)/runlevel4.target.wants \ | |
245d345f ZJS |
6035 | $(systemunitdir)/runlevel5.target.wants |
6036 | endif | |
2a4b7e7b | 6037 | |
245d345f | 6038 | INSTALL_DIRS += \ |
91e8651b ZJS |
6039 | $(prefix)/lib/modules-load.d \ |
6040 | $(sysconfdir)/modules-load.d \ | |
9dc670ea TG |
6041 | $(prefix)/lib/systemd/network \ |
6042 | $(sysconfdir)/systemd/network \ | |
91e8651b ZJS |
6043 | $(prefix)/lib/sysctl.d \ |
6044 | $(sysconfdir)/sysctl.d \ | |
06f42898 KS |
6045 | $(prefix)/lib/kernel/install.d \ |
6046 | $(sysconfdir)/kernel/install.d \ | |
91e8651b ZJS |
6047 | $(systemshutdowndir) \ |
6048 | $(systemsleepdir) \ | |
6049 | $(systemgeneratordir) \ | |
6050 | $(usergeneratordir) \ | |
6051 | \ | |
6052 | $(userunitdir) \ | |
6053 | $(pkgsysconfdir)/system \ | |
6054 | $(pkgsysconfdir)/system/multi-user.target.wants \ | |
6055 | $(pkgsysconfdir)/system/getty.target.wants \ | |
6056 | $(pkgsysconfdir)/user \ | |
6057 | $(dbussessionservicedir) \ | |
6058 | $(sysconfdir)/xdg/systemd | |
cd3f8b7d | 6059 | |
48d437bb | 6060 | install-exec-hook: $(INSTALL_EXEC_HOOKS) |
2a018e83 | 6061 | |
4ec24515 | 6062 | uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS) |
ae446765 | 6063 | |
91e8651b | 6064 | install-data-hook: $(INSTALL_DATA_HOOKS) |
ae446765 | 6065 | |
3e214785 KS |
6066 | distclean-local: $(DISTCLEAN_LOCAL_HOOKS) |
6067 | ||
9b281072 | 6068 | clean-local: $(CLEAN_LOCAL_HOOKS) |
f13b388f | 6069 | rm -rf $(abs_srcdir)/install-tree |
5fe25aff | 6070 | rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \ |
f5944e0f | 6071 | $(abs_srcdir)/hwdb/iab.txt |
f13b388f | 6072 | |
d1ab0ca0 | 6073 | DISTCHECK_CONFIGURE_FLAGS = \ |
d2d12cd1 LP |
6074 | --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \ |
6075 | --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \ | |
6076 | --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \ | |
db059f1b | 6077 | --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \ |
4f87c47b | 6078 | --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \ |
8c6db833 | 6079 | --with-pamlibdir=$$dc_install_base/$(pamlibdir) \ |
5c390a4a | 6080 | --with-pamconfdir=$$dc_install_base/$(pamconfdir) \ |
3e214785 | 6081 | --with-rootprefix=$$dc_install_base \ |
cde360cd | 6082 | --disable-split-usr \ |
b20e61f4 KS |
6083 | --enable-kdbus \ |
6084 | --enable-compat-libs | |
80a5cbac | 6085 | |
1d0b59f9 TG |
6086 | if HAVE_SYSV_COMPAT |
6087 | DISTCHECK_CONFIGURE_FLAGS += \ | |
6088 | --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \ | |
dee4c244 | 6089 | --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir) |
d354315f ZJS |
6090 | else |
6091 | DISTCHECK_CONFIGURE_FLAGS += \ | |
6092 | --with-sysvinit-path= \ | |
6093 | --with-sysvrcnd-path= | |
1d0b59f9 TG |
6094 | endif |
6095 | ||
b9d5b4c3 FB |
6096 | if HAVE_PYTHON |
6097 | DISTCHECK_CONFIGURE_FLAGS += \ | |
6098 | --with-python | |
6099 | endif | |
6100 | ||
80a5cbac KS |
6101 | if ENABLE_GTK_DOC |
6102 | DISTCHECK_CONFIGURE_FLAGS += \ | |
3e214785 | 6103 | --enable-gtk-doc |
80a5cbac | 6104 | endif |
0de4f055 | 6105 | |
279419b3 FB |
6106 | # |
6107 | # Require python when making dist | |
6108 | # | |
6109 | .PHONY: dist-check-python | |
6110 | dist-check-python: | |
6111 | if !HAVE_PYTHON | |
6112 | @echo "*** python and python-lxml module must be installed and enabled in order to make dist" | |
6113 | @false | |
6114 | endif | |
6115 | ||
65adc982 FB |
6116 | dist-check-compat-libs: |
6117 | if !ENABLE_COMPAT_LIBS | |
6118 | @echo "*** compat-libs must be enabled in order to make dist" | |
6119 | @false | |
6120 | endif | |
6121 | ||
6122 | dist: dist-check-python dist-check-compat-libs | |
279419b3 | 6123 | |
5870f79a | 6124 | # check "broken" platforms limited toolchains for link breakage before we release |
bc61d6ac KS |
6125 | .PHONY: linkcheck |
6126 | linkcheck: | |
e57e4e2b | 6127 | $(MAKE) CFLAGS='-fno-lto' LDFLAGS='-Wl,-fuse-ld=gold -Wl,--as-needed -Wl,--no-gc-sections' distcheck |
5870f79a | 6128 | |
9f700755 | 6129 | .PHONY: hwdb-update |
796b06c2 | 6130 | hwdb-update: |
7f8e692b ZJS |
6131 | ( cd $(top_srcdir)/hwdb && \ |
6132 | wget -N http://www.linux-usb.org/usb.ids \ | |
5590bbe5 KS |
6133 | http://pci-ids.ucw.cz/v2.2/pci.ids \ |
6134 | http://standards.ieee.org/develop/regauth/oui/oui.txt \ | |
6135 | http://standards.ieee.org/develop/regauth/iab/iab.txt && \ | |
796b06c2 KS |
6136 | ./ids-update.pl ) |
6137 | ||
9f700755 | 6138 | .PHONY: kdbus-update |
6629161f | 6139 | kdbus-update: |
dec51b29 | 6140 | ( cd $(top_srcdir)/src/libsystemd/sd-bus/ && \ |
6629161f LP |
6141 | wget -N https://d-bus.googlecode.com/git/kdbus.h ) |
6142 | ||
381a662a KS |
6143 | .PHONY: git-tag |
6144 | git-tag: | |
6145 | git tag -s "v$(VERSION)" -m "systemd $(VERSION)" | |
6146 | ||
6147 | www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd | |
9f700755 | 6148 | .PHONY: upload |
223763f5 | 6149 | upload: all check dist |
381a662a | 6150 | scp systemd-$(VERSION).tar.xz $(www_target) |
a45f61d7 | 6151 | |
9f700755 | 6152 | .PHONY: doc-sync |
d426d8c8 | 6153 | doc-sync: all destdir-sphinx |
80037e4d | 6154 | gtkdoc-rebase --html-dir=docs/libudev/html --online |
202288be | 6155 | rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/ |
80037e4d | 6156 | gtkdoc-rebase --html-dir=docs/gudev/html --online |
202288be ZJS |
6157 | rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/ |
6158 | rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/ | |
6159 | rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/ | |
690804ca | 6160 | |
381a662a KS |
6161 | .PHONY: tango |
6162 | tango: upload | |
6163 | cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/ | |
6164 | scp man/*.html tango:public/systemd-man/ | |
f13b388f | 6165 | |
9f700755 | 6166 | .PHONY: install-tree |
f13b388f KS |
6167 | install-tree: all |
6168 | rm -rf $(abs_srcdir)/install-tree | |
d426d8c8 | 6169 | $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree |
f13b388f | 6170 | tree $(abs_srcdir)/install-tree |
cac914e6 LP |
6171 | |
6172 | # Let's run all tests of the test suite, but under valgrind. Let's | |
6173 | # exclude the one perl script we have in there | |
9f700755 | 6174 | .PHONY: valgrind-tests |
cac914e6 | 6175 | valgrind-tests: $(TESTS) |
f1e0c183 | 6176 | $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \ |
a0846368 ZJS |
6177 | if file $$f | grep -q shell; then \ |
6178 | echo -e "$${x}Skipping non-binary $$f"; else \ | |
9b55cd56 | 6179 | echo -e "$${x}Running $$f"; \ |
5590bbe5 | 6180 | libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \ |
9b55cd56 | 6181 | x="\n\n"; \ |
a27e222b LP |
6182 | done |
6183 | ||
9173a308 | 6184 | exported-%: % |
aac5ad0d | 6185 | $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@ |
9173a308 ZJS |
6186 | |
6187 | exported: $(addprefix exported-, $(lib_LTLIBRARIES)) | |
6188 | $(AM_V_GEN)cat $^ > $@ | |
d23284fa | 6189 | |
9f700755 | 6190 | .PHONY: check-api-docs |
d23284fa | 6191 | check-api-docs: exported man |
f1e0c183 | 6192 | $(AM_V_GEN)for symbol in `cat exported` ; do \ |
a27e222b LP |
6193 | if test -f $(builddir)/man/$$symbol.html ; then \ |
6194 | echo " Symbol $$symbol() is documented." ; \ | |
6195 | else \ | |
6196 | echo "‣ Symbol $$symbol() lacks documentation." ; \ | |
6197 | fi ; \ | |
f1e0c183 | 6198 | done |
9070a9c1 LP |
6199 | |
6200 | OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES)) | |
6201 | ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v))) | |
6202 | ||
39da205f | 6203 | undefined defined: $(ALL_OBJECTS) |
9070a9c1 | 6204 | $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \ |
aac5ad0d | 6205 | $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \ |
39da205f | 6206 | done | cut -c 20- | cut -d @ -f 1 | sort -u > $@ |
9070a9c1 LP |
6207 | |
6208 | CLEANFILES += \ | |
6209 | defined \ | |
6210 | undefined | |
6211 | ||
9f700755 | 6212 | .PHONY: check-api-unused |
d23284fa LP |
6213 | check-api-unused: defined undefined exported |
6214 | ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2- | |
f1e0c183 | 6215 | |
bfb35cfd KZ |
6216 | .PHONY: check-includes |
6217 | check-includes: $(top_srcdir)/tools/check-includes.pl | |
6218 | $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \ | |
6219 | | xargs $(top_srcdir)/tools/check-includes.pl | |
6220 | ||
6221 | EXTRA_DIST += \ | |
6222 | $(top_srcdir)/tools/check-includes.pl | |
6223 | ||
f1e0c183 | 6224 | # Stupid test that everything purported to be exported really is |
f1e0c183 ZJS |
6225 | define generate-sym-test |
6226 | $(AM_V_at)$(MKDIR_P) $(dir $@) | |
4e1b76c2 DR |
6227 | $(AM_V_at)printf '#include <stdio.h>\n' > $@ |
6228 | $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@ | |
6229 | $(AM_V_at)printf 'void* functions[] = {\n' >> $@ | |
6230 | $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@ | |
6231 | $(AM_V_at)printf '};\nint main(void) {\n' >> $@ | |
6232 | $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@ | |
6233 | $(AM_V_at)printf 'return 0; }\n' >> $@ | |
f1e0c183 ZJS |
6234 | endef |
6235 | ||
6bb648a1 | 6236 | test-libsystemd-sym.c: \ |
2b0a23e8 | 6237 | $(top_builddir)/src/libsystemd/libsystemd.sym \ |
add00dfd KS |
6238 | src/systemd/sd-journal.h \ |
6239 | src/systemd/sd-daemon.h \ | |
6240 | src/systemd/sd-login.h \ | |
6241 | src/systemd/sd-bus.h \ | |
93f1bcf4 | 6242 | src/systemd/sd-utf8.h \ |
2de30868 LP |
6243 | src/systemd/sd-resolve.h \ |
6244 | src/systemd/sd-path.h | |
f1e0c183 ZJS |
6245 | $(generate-sym-test) |
6246 | ||
add00dfd KS |
6247 | test-libudev-sym.c: \ |
6248 | src/libudev/libudev.sym \ | |
6249 | src/udev/udev.h | |
6250 | $(generate-sym-test) | |
6251 | ||
6252 | test_libsystemd_sym_SOURCES = \ | |
6253 | test-libsystemd-sym.c | |
6254 | test_libsystemd_sym_LDADD = \ | |
6255 | libsystemd.la | |
6256 | ||
6257 | test_libudev_sym_SOURCES = \ | |
6258 | test-libudev-sym.c | |
9ea28c55 KS |
6259 | test_libudev_sym_CFLAGS = \ |
6260 | $(AM_CFLAGS) \ | |
6261 | -Wno-deprecated-declarations | |
add00dfd KS |
6262 | test_libudev_sym_LDADD = \ |
6263 | libudev.la | |
6264 | ||
6265 | BUILT_SOURCES += \ | |
6266 | $(test_libsystemd_sym_SOURCES) \ | |
6267 | $(test_libudev_sym_SOURCES) | |
6268 | ||
6269 | tests += \ | |
6270 | test-libsystemd-sym \ | |
6271 | test-libudev-sym | |
6272 | ||
bd390ae7 | 6273 | .PHONY: cppcheck |
16f4efb4 | 6274 | cppcheck: |
43a99a7a | 6275 | cppcheck --enable=all -q $(top_srcdir) |
0d8efe35 DR |
6276 | |
6277 | # Used to extract compile flags for YCM. | |
6278 | print-%: | |
6279 | @echo $($*) | |
43c71255 LP |
6280 | |
6281 | git-contrib: | |
6282 | @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u | |
2ea8c083 MS |
6283 | |
6284 | EXTRA_DIST += \ | |
6285 | tools/gdb-sd_dump_hashmaps.py |