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