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