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