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