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