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