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