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