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