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