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