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