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