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