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