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