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