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