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