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