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