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