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