]>
Commit | Line | Data |
---|---|---|
47be870b LP |
1 | # This file is part of systemd. |
2 | # | |
3e214785 KS |
3 | # Copyright 2010-2012 Lennart Poettering |
4 | # Copyright 2010-2012 Kay Sievers | |
47be870b LP |
5 | # |
6 | # systemd is free software; you can redistribute it and/or modify it | |
7 | # under the terms of the GNU General Public License as published by | |
8 | # the Free Software Foundation; either version 2 of the License, or | |
9 | # (at your option) any later version. | |
10 | # | |
11 | # systemd is distributed in the hope that it will be useful, but | |
12 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
14 | # General Public License for more details. | |
15 | # | |
16 | # You should have received a copy of the GNU General Public License | |
17 | # along with systemd; If not, see <http://www.gnu.org/licenses/>. | |
18 | ||
3e214785 KS |
19 | ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} |
20 | AM_MAKEFLAGS = --no-print-directory | |
47be870b | 21 | |
3e214785 KS |
22 | SUBDIRS = . po |
23 | ||
24 | LIBUDEV_CURRENT=13 | |
25 | LIBUDEV_REVISION=2 | |
26 | LIBUDEV_AGE=13 | |
27 | ||
28 | LIBGUDEV_CURRENT=1 | |
29 | LIBGUDEV_REVISION=1 | |
30 | LIBGUDEV_AGE=1 | |
1c7dde3e | 31 | |
437b7dee | 32 | LIBSYSTEMD_LOGIN_CURRENT=2 |
16f1239e | 33 | LIBSYSTEMD_LOGIN_REVISION=1 |
437b7dee | 34 | LIBSYSTEMD_LOGIN_AGE=2 |
74b91131 | 35 | |
114a50f8 | 36 | LIBSYSTEMD_DAEMON_CURRENT=0 |
45a7b8bd | 37 | LIBSYSTEMD_DAEMON_REVISION=1 |
114a50f8 LP |
38 | LIBSYSTEMD_DAEMON_AGE=0 |
39 | ||
4b2d99d9 | 40 | LIBSYSTEMD_ID128_CURRENT=0 |
16f1239e | 41 | LIBSYSTEMD_ID128_REVISION=3 |
4b2d99d9 LP |
42 | LIBSYSTEMD_ID128_AGE=0 |
43 | ||
44 | LIBSYSTEMD_JOURNAL_CURRENT=0 | |
16f1239e | 45 | LIBSYSTEMD_JOURNAL_REVISION=3 |
4b2d99d9 LP |
46 | LIBSYSTEMD_JOURNAL_AGE=0 |
47 | ||
8c4a3079 | 48 | # Dirs of external packages |
d122948d LP |
49 | dbuspolicydir=@dbuspolicydir@ |
50 | dbussessionservicedir=@dbussessionservicedir@ | |
51 | dbussystemservicedir=@dbussystemservicedir@ | |
52 | dbusinterfacedir=@dbusinterfacedir@ | |
8c6db833 LP |
53 | pamlibdir=@pamlibdir@ |
54 | pkgconfigdatadir=$(datadir)/pkgconfig | |
02f130cb | 55 | pkgconfiglibdir=$(libdir)/pkgconfig |
490aed58 | 56 | polkitpolicydir=$(datadir)/polkit-1/actions |
5a1e9937 | 57 | bashcompletiondir=$(sysconfdir)/bash_completion.d |
036643a2 | 58 | |
8c4a3079 | 59 | # Our own, non-special dirs |
d1ab0ca0 | 60 | pkgsysconfdir=$(sysconfdir)/systemd |
32d0463d | 61 | userunitdir=$(prefix)/lib/systemd/user |
772f8371 | 62 | tmpfilesdir=$(prefix)/lib/tmpfiles.d |
f5e04665 | 63 | sysctldir=$(prefix)/lib/sysctl.d |
af2d49f7 | 64 | usergeneratordir=$(pkglibexecdir)/user-generators |
74b91131 | 65 | pkgincludedir=$(includedir)/systemd |
8ece4cab KS |
66 | systemgeneratordir=$(rootlibexecdir)/system-generators |
67 | systemshutdowndir=$(rootlibexecdir)/system-shutdown | |
68 | systemunitdir=$(rootprefix)/lib/systemd/system | |
3e214785 | 69 | udevlibexecdir=$(rootprefix)/lib/udev |
8ece4cab KS |
70 | udevhomedir = $(libexecdir)/udev |
71 | udevrulesdir = $(libexecdir)/udev/rules.d | |
8c4a3079 LP |
72 | |
73 | # And these are the special ones for / | |
b8079ae1 KS |
74 | rootprefix=@rootprefix@ |
75 | rootbindir=$(rootprefix)/bin | |
76 | rootlibexecdir=$(rootprefix)/lib/systemd | |
70fcff31 | 77 | |
2a018e83 KS |
78 | CLEANFILES = |
79 | EXTRA_DIST = | |
3e214785 | 80 | BUILT_SOURCES = |
2a018e83 KS |
81 | INSTALL_EXEC_HOOKS = |
82 | UNINSTALL_EXEC_HOOKS = | |
83 | INSTALL_DATA_HOOKS = | |
3e214785 KS |
84 | DISTCHECK_HOOKS = |
85 | DISTCLEAN_LOCAL_HOOKS = | |
48d437bb | 86 | pkginclude_HEADERS = |
0237edf7 | 87 | lib_LTLIBRARIES = |
3e214785 | 88 | include_HEADERS = |
0237edf7 | 89 | pkgconfiglib_DATA = |
2a018e83 | 90 | polkitpolicy_in_files = |
131a4dcf | 91 | dist_udevrules_DATA = |
3e214785 | 92 | nodist_udevrules_DATA = |
3e214785 | 93 | dist_man_MANS = |
2a018e83 | 94 | |
47be870b | 95 | AM_CPPFLAGS = \ |
d3f09cf3 | 96 | -include $(top_builddir)/config.h \ |
3e214785 | 97 | -DSYSCONFDIR=\""$(sysconfdir)"\" \ |
487393e9 | 98 | -DSYSTEM_CONFIG_FILE=\"$(pkgsysconfdir)/system.conf\" \ |
036643a2 | 99 | -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \ |
70fcff31 | 100 | -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \ |
0571e011 | 101 | -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \ |
061978fa | 102 | -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \ |
af2d49f7 LP |
103 | -DUSER_CONFIG_FILE=\"$(pkgsysconfdir)/user.conf\" \ |
104 | -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \ | |
105 | -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \ | |
91901329 | 106 | -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \ |
05d02d8d | 107 | -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \ |
b1b2a107 | 108 | -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \ |
2cb1a60d | 109 | -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \ |
501fc174 | 110 | -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \ |
5b754353 | 111 | -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \ |
b8079ae1 | 112 | -DROOTPREFIX=\"$(rootprefix)\" \ |
bb29785e | 113 | -DRUNTIME_DIR=\"/run\" \ |
ca2cab5d | 114 | -DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \ |
e23a0ce8 | 115 | -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \ |
5a1e9937 | 116 | -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \ |
af2d49f7 | 117 | -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \ |
83cc030f | 118 | -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \ |
baa5ad26 | 119 | -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \ |
3e214785 KS |
120 | -DX_SERVER=\"$(bindir)/X\" \ |
121 | -DUDEVLIBEXECDIR=\""$(libexecdir)/udev"\" \ | |
e5e83e83 LP |
122 | -I $(top_srcdir)/src \ |
123 | -I $(top_srcdir)/src/readahead \ | |
86aa7ba4 | 124 | -I $(top_srcdir)/src/login \ |
81527be1 | 125 | -I $(top_srcdir)/src/journal \ |
3e214785 KS |
126 | -I $(top_srcdir)/src/systemd \ |
127 | -I $(top_srcdir)/src/udev | |
47be870b | 128 | |
eb2e280f | 129 | AM_CFLAGS = $(WARNINGFLAGS) |
9e7adc3a | 130 | AM_LDFLAGS = $(GCLDFLAGS) |
eb2e280f | 131 | |
9841e8e3 GSB |
132 | if TARGET_GENTOO |
133 | AM_CPPFLAGS += \ | |
134 | -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \ | |
135 | -DKBD_SETFONT=\"/usr/bin/setfont\" \ | |
136 | -DDEFAULT_FONT=\"LatArCyrHeb-16\" | |
137 | else | |
c226fa41 LDM |
138 | if TARGET_ARCH |
139 | AM_CPPFLAGS += \ | |
140 | -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \ | |
141 | -DKBD_SETFONT=\"/usr/bin/setfont\" \ | |
142 | -DDEFAULT_FONT=\"LatArCyrHeb-16\" | |
143 | else | |
f5c88ec1 MV |
144 | if TARGET_FRUGALWARE |
145 | AM_CPPFLAGS += \ | |
146 | -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \ | |
147 | -DKBD_SETFONT=\"/usr/bin/setfont\" \ | |
148 | -DDEFAULT_FONT=\"LatArCyrHeb-16\" | |
149 | else | |
1de4d79b AB |
150 | if TARGET_MANDRIVA |
151 | AM_CPPFLAGS += \ | |
152 | -DKBD_LOADKEYS=\"/bin/loadkeys\" \ | |
153 | -DKBD_SETFONT=\"/bin/setfont\" \ | |
154 | -DDEFAULT_FONT=\"LatArCyrHeb-16\" | |
155 | else | |
54e4fdef CF |
156 | if TARGET_MEEGO |
157 | AM_CPPFLAGS += \ | |
158 | -DKBD_LOADKEYS=\"/bin/loadkeys\" \ | |
159 | -DKBD_SETFONT=\"/bin/setfont\" \ | |
160 | -DDEFAULT_FONT=\"LatArCyrHeb-16\" | |
161 | else | |
1bd8b818 KK |
162 | if TARGET_ANGSTROM |
163 | AM_CPPFLAGS += \ | |
164 | -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \ | |
165 | -DKBD_SETFONT=\"/usr/bin/setfont\" \ | |
166 | -DDEFAULT_FONT=\"LatArCyrHeb-16\" | |
167 | else | |
c47ac999 | 168 | if TARGET_MAGEIA |
9841e8e3 GSB |
169 | AM_CPPFLAGS += \ |
170 | -DKBD_LOADKEYS=\"/bin/loadkeys\" \ | |
171 | -DKBD_SETFONT=\"/bin/setfont\" \ | |
c47ac999 | 172 | -DDEFAULT_FONT=\"LatArCyrHeb-16\" |
6fdae8a6 | 173 | else |
6fdae8a6 DM |
174 | AM_CPPFLAGS += \ |
175 | -DKBD_LOADKEYS=\"/bin/loadkeys\" \ | |
176 | -DKBD_SETFONT=\"/bin/setfont\" \ | |
c47ac999 | 177 | -DDEFAULT_FONT=\"latarcyrheb-sun16\" |
6fdae8a6 | 178 | endif |
9841e8e3 | 179 | endif |
c226fa41 | 180 | endif |
f5c88ec1 | 181 | endif |
1de4d79b | 182 | endif |
54e4fdef | 183 | endif |
1bd8b818 | 184 | endif |
9841e8e3 | 185 | |
8c4a3079 | 186 | rootbin_PROGRAMS = \ |
4a2a8b5a | 187 | systemctl \ |
490aed58 | 188 | systemd-notify \ |
ec863ba6 | 189 | systemd-ask-password \ |
74ce487d | 190 | systemd-tty-ask-password-agent \ |
a5f9be45 | 191 | systemd-tmpfiles \ |
7e8f489a | 192 | systemd-machine-id-setup |
a9b5b032 | 193 | |
8c4a3079 | 194 | bin_PROGRAMS = \ |
a8f11321 | 195 | systemd-cgls \ |
8f2d43a0 | 196 | systemd-cgtop \ |
a5f9be45 | 197 | systemd-stdio-bridge \ |
5b754353 | 198 | systemd-nspawn |
88213476 | 199 | |
f695b3b0 | 200 | dist_bin_SCRIPTS = \ |
5b754353 | 201 | src/systemd-analyze |
f695b3b0 | 202 | |
8c4a3079 | 203 | rootlibexec_PROGRAMS = \ |
e0d25329 | 204 | systemd \ |
0b7964b8 | 205 | systemd-cgroups-agent \ |
4927fcae | 206 | systemd-initctl \ |
ca2cab5d | 207 | systemd-update-utmp \ |
5192bd19 | 208 | systemd-shutdownd \ |
b1b2a107 | 209 | systemd-shutdown \ |
449ddb2d | 210 | systemd-modules-load \ |
addab137 | 211 | systemd-remount-api-vfs \ |
22be093f | 212 | systemd-reply-password \ |
3d20ed6d | 213 | systemd-fsck \ |
06cdd248 | 214 | systemd-timestamp \ |
8e1bd70d | 215 | systemd-ac-power \ |
07faed4f | 216 | systemd-detect-virt \ |
7e8f489a | 217 | systemd-sysctl |
47be870b | 218 | |
2a796654 | 219 | systemgenerator_PROGRAMS = \ |
5b754353 | 220 | systemd-getty-generator |
2a796654 | 221 | |
47be870b LP |
222 | noinst_PROGRAMS = \ |
223 | test-engine \ | |
15ae422b | 224 | test-job-type \ |
af5bc85d | 225 | test-ns \ |
8c47c732 | 226 | test-loopback \ |
e5907703 | 227 | test-hostname \ |
8c6db833 | 228 | test-daemon \ |
c24eb49e | 229 | test-cgroup \ |
f90cf44c | 230 | test-env-replace \ |
74b91131 | 231 | test-strv \ |
e96d6be7 LP |
232 | test-install \ |
233 | test-watchdog | |
8c6db833 | 234 | |
487393e9 | 235 | dist_pkgsysconf_DATA = \ |
193197e8 | 236 | src/system.conf \ |
2a018e83 | 237 | src/user.conf |
487393e9 | 238 | |
d1ab0ca0 | 239 | dist_dbuspolicy_DATA = \ |
2a018e83 | 240 | src/org.freedesktop.systemd1.conf |
e24067c3 | 241 | |
d122948d | 242 | dist_dbussystemservice_DATA = \ |
2a018e83 | 243 | src/org.freedesktop.systemd1.service |
d122948d | 244 | |
d122948d | 245 | dbusinterface_DATA = \ |
4288f619 LP |
246 | org.freedesktop.systemd1.Manager.xml \ |
247 | org.freedesktop.systemd1.Job.xml \ | |
248 | org.freedesktop.systemd1.Unit.xml \ | |
249 | org.freedesktop.systemd1.Service.xml \ | |
250 | org.freedesktop.systemd1.Socket.xml \ | |
871d7de4 | 251 | org.freedesktop.systemd1.Timer.xml \ |
4288f619 LP |
252 | org.freedesktop.systemd1.Target.xml \ |
253 | org.freedesktop.systemd1.Device.xml \ | |
254 | org.freedesktop.systemd1.Mount.xml \ | |
255 | org.freedesktop.systemd1.Automount.xml \ | |
256 | org.freedesktop.systemd1.Snapshot.xml \ | |
01f78473 | 257 | org.freedesktop.systemd1.Swap.xml \ |
4cd1eaa5 | 258 | org.freedesktop.systemd1.Path.xml |
4288f619 | 259 | |
42bb3074 | 260 | dist_bashcompletion_DATA = \ |
f5a613c0 | 261 | src/systemd-bash-completion.sh |
42bb3074 | 262 | |
34c8deaa LP |
263 | dist_tmpfiles_DATA = \ |
264 | tmpfiles.d/systemd.conf \ | |
f08fce88 | 265 | tmpfiles.d/tmp.conf \ |
34c8deaa LP |
266 | tmpfiles.d/x11.conf |
267 | ||
cca4aeee LP |
268 | if HAVE_SYSV_COMPAT |
269 | dist_tmpfiles_DATA += \ | |
5b754353 | 270 | tmpfiles.d/legacy.conf |
cca4aeee LP |
271 | endif |
272 | ||
d1ab0ca0 | 273 | dist_systemunit_DATA = \ |
db25d1d7 LP |
274 | units/graphical.target \ |
275 | units/multi-user.target \ | |
70fcff31 | 276 | units/emergency.service \ |
f057408c | 277 | units/emergency.target \ |
de47ca9b | 278 | units/sysinit.target \ |
f92a18f5 | 279 | units/basic.target \ |
5e6afdd3 LP |
280 | units/getty.target \ |
281 | units/halt.target \ | |
85ed27f6 | 282 | units/kexec.target \ |
70449379 | 283 | units/local-fs.target \ |
baa5ad26 | 284 | units/local-fs-pre.target \ |
5552b1c1 | 285 | units/remote-fs.target \ |
baa5ad26 | 286 | units/remote-fs-pre.target \ |
70449379 LP |
287 | units/network.target \ |
288 | units/nss-lookup.target \ | |
683f468c | 289 | units/mail-transfer-agent.target \ |
a2ff477f | 290 | units/http-daemon.target \ |
5e6afdd3 LP |
291 | units/poweroff.target \ |
292 | units/reboot.target \ | |
5e6afdd3 | 293 | units/rescue.target \ |
f0b02ca2 | 294 | units/rpcbind.target \ |
4466194c | 295 | units/time-sync.target \ |
70449379 | 296 | units/shutdown.target \ |
9aac953a | 297 | units/final.target \ |
4e67ddd6 | 298 | units/umount.target \ |
70449379 LP |
299 | units/sigpwr.target \ |
300 | units/sockets.target \ | |
301 | units/swap.target \ | |
70fcff31 | 302 | units/systemd-initctl.socket \ |
f6144808 | 303 | units/systemd-shutdownd.socket \ |
52f319b2 | 304 | units/syslog.socket \ |
670802d4 | 305 | units/dev-hugepages.mount \ |
670802d4 | 306 | units/dev-mqueue.mount \ |
d6bca18e | 307 | units/sys-kernel-config.mount \ |
670802d4 | 308 | units/sys-kernel-debug.mount \ |
7ef5875d | 309 | units/sys-fs-fuse-connections.mount \ |
623ac9d2 | 310 | units/tmp.mount \ |
90685f7d | 311 | units/remount-rootfs.service \ |
da78e1b4 | 312 | units/printer.target \ |
88dfa293 | 313 | units/sound.target \ |
ceda54d9 | 314 | units/bluetooth.target \ |
b15124f1 | 315 | units/smartcard.target \ |
a9e1f5ec | 316 | units/systemd-tmpfiles-clean.timer \ |
306a7fd8 | 317 | units/quotaon.service \ |
e0e1580a | 318 | units/systemd-ask-password-wall.path \ |
6699c857 | 319 | units/systemd-ask-password-console.path \ |
3e214785 KS |
320 | units/syslog.target \ |
321 | units/udev-control.socket \ | |
322 | units/udev-kernel.socket | |
70fcff31 | 323 | |
6f6083dc | 324 | nodist_systemunit_DATA = \ |
5e6afdd3 | 325 | units/getty@.service \ |
93a45c56 | 326 | units/serial-getty@.service \ |
5b754353 | 327 | units/console-shell.service \ |
dfac97b2 | 328 | units/systemd-initctl.service \ |
f6144808 | 329 | units/systemd-shutdownd.service \ |
b2423f1f | 330 | units/systemd-modules-load.service \ |
449ddb2d | 331 | units/systemd-remount-api-vfs.service \ |
cd6d0a45 LP |
332 | units/systemd-update-utmp-runlevel.service \ |
333 | units/systemd-update-utmp-shutdown.service \ | |
3b63d2d3 LP |
334 | units/systemd-tmpfiles-setup.service \ |
335 | units/systemd-tmpfiles-clean.service \ | |
306a7fd8 | 336 | units/systemd-ask-password-wall.service \ |
8cf3a8a9 | 337 | units/systemd-ask-password-console.service \ |
8e1bd70d | 338 | units/systemd-sysctl.service \ |
46574a5b | 339 | units/halt.service \ |
9cf25786 | 340 | units/emergency.service \ |
46574a5b LP |
341 | units/poweroff.service \ |
342 | units/reboot.service \ | |
a9e1f5ec LP |
343 | units/kexec.service \ |
344 | units/fsck@.service \ | |
335aa753 | 345 | units/fsck-root.service \ |
d42d27ea | 346 | units/rescue.service \ |
3e214785 KS |
347 | units/user@.service \ |
348 | units/udev.service \ | |
349 | units/udev-trigger.service \ | |
350 | units/udev-settle.service | |
d1ab0ca0 | 351 | |
af2d49f7 LP |
352 | dist_userunit_DATA = \ |
353 | units/user/default.target \ | |
354 | units/user/exit.target | |
0d26c910 | 355 | |
af2d49f7 | 356 | nodist_userunit_DATA = \ |
af2d49f7 | 357 | units/user/exit.service |
fb1bd35a | 358 | |
2a018e83 | 359 | EXTRA_DIST += \ |
5e6afdd3 | 360 | units/getty@.service.m4 \ |
93a45c56 | 361 | units/serial-getty@.service.m4 \ |
9cf25786 DR |
362 | units/console-shell.service.m4.in \ |
363 | units/rescue.service.m4.in \ | |
70fcff31 | 364 | units/systemd-initctl.service.in \ |
f6144808 | 365 | units/systemd-shutdownd.service.in \ |
b2423f1f | 366 | units/systemd-modules-load.service.in \ |
449ddb2d | 367 | units/systemd-remount-api-vfs.service.in \ |
cd6d0a45 LP |
368 | units/systemd-update-utmp-runlevel.service.in \ |
369 | units/systemd-update-utmp-shutdown.service.in \ | |
3b63d2d3 LP |
370 | units/systemd-tmpfiles-setup.service.in \ |
371 | units/systemd-tmpfiles-clean.service.in \ | |
306a7fd8 | 372 | units/systemd-ask-password-wall.service.in \ |
8cf3a8a9 | 373 | units/systemd-ask-password-console.service.in \ |
8e1bd70d | 374 | units/systemd-sysctl.service.in \ |
9cf25786 | 375 | units/emergency.service.in \ |
46574a5b LP |
376 | units/halt.service.in \ |
377 | units/poweroff.service.in \ | |
378 | units/reboot.service.in \ | |
85ed27f6 | 379 | units/kexec.service.in \ |
af2d49f7 | 380 | units/user/exit.service.in \ |
a9e1f5ec LP |
381 | units/fsck@.service.in \ |
382 | units/fsck-root.service.in \ | |
35bf8dfb | 383 | units/user@.service.in \ |
3e214785 KS |
384 | units/udev.service \ |
385 | units/udev-trigger.service \ | |
386 | units/udev-settle.service \ | |
dd338f01 | 387 | src/systemd.pc.in \ |
25705583 | 388 | introspect.awk \ |
baa5ad26 | 389 | man/custom-html.xsl |
e24067c3 | 390 | |
5e6afdd3 LP |
391 | if TARGET_FEDORA |
392 | dist_systemunit_DATA += \ | |
5e6afdd3 LP |
393 | units/fedora/prefdm.service \ |
394 | units/fedora/rc-local.service \ | |
cd3f8b7d | 395 | units/fedora/halt-local.service |
15673083 MS |
396 | systemgenerator_PROGRAMS += \ |
397 | systemd-rc-local-generator | |
cd3f8b7d JM |
398 | endif |
399 | ||
1de4d79b AB |
400 | if TARGET_MANDRIVA |
401 | dist_systemunit_DATA += \ | |
402 | units/mandriva/prefdm.service \ | |
403 | units/fedora/rc-local.service \ | |
404 | units/fedora/halt-local.service | |
15673083 MS |
405 | systemgenerator_PROGRAMS += \ |
406 | systemd-rc-local-generator | |
1de4d79b AB |
407 | endif |
408 | ||
196e3fa7 MV |
409 | if TARGET_FRUGALWARE |
410 | dist_systemunit_DATA += \ | |
411 | units/frugalware/display-manager.service | |
412 | endif | |
413 | ||
a268a6a3 FC |
414 | if TARGET_SUSE |
415 | dist_systemunit_DATA += \ | |
416 | units/suse/rc-local.service \ | |
417 | units/suse/halt-local.service | |
15673083 MS |
418 | systemgenerator_PROGRAMS += \ |
419 | systemd-rc-local-generator | |
a268a6a3 FC |
420 | endif |
421 | ||
6fdae8a6 DM |
422 | if TARGET_MAGEIA |
423 | dist_systemunit_DATA += \ | |
424 | units/mageia/prefdm.service \ | |
425 | units/fedora/rc-local.service \ | |
426 | units/fedora/halt-local.service | |
15673083 MS |
427 | systemgenerator_PROGRAMS += \ |
428 | systemd-rc-local-generator | |
6fdae8a6 DM |
429 | endif |
430 | ||
cd3f8b7d JM |
431 | if HAVE_PLYMOUTH |
432 | dist_systemunit_DATA += \ | |
433 | units/plymouth-start.service \ | |
434 | units/plymouth-read-write.service \ | |
435 | units/plymouth-quit.service \ | |
aa2e2115 | 436 | units/plymouth-quit-wait.service \ |
cd3f8b7d JM |
437 | units/plymouth-reboot.service \ |
438 | units/plymouth-kexec.service \ | |
439 | units/plymouth-poweroff.service \ | |
aa2e2115 LP |
440 | units/plymouth-halt.service \ |
441 | units/systemd-ask-password-plymouth.path | |
442 | ||
443 | nodist_systemunit_DATA += \ | |
444 | units/systemd-ask-password-plymouth.service | |
445 | ||
446 | EXTRA_DIST += \ | |
447 | units/systemd-ask-password-plymouth.service.in | |
5e6afdd3 LP |
448 | endif |
449 | ||
240a3a85 LP |
450 | dist_doc_DATA = \ |
451 | README \ | |
3e214785 | 452 | NEWS \ |
795750ca | 453 | LICENSE \ |
9ace5d02 | 454 | DISTRO_PORTING |
240a3a85 | 455 | |
8c6db833 | 456 | pkgconfigdata_DATA = \ |
dd338f01 | 457 | src/systemd.pc |
02f130cb | 458 | |
9356a6c6 LP |
459 | # First passed through sed, followed by intltool |
460 | polkitpolicy_in_in_files = \ | |
461 | src/org.freedesktop.systemd1.policy.in.in | |
462 | ||
463 | nodist_polkitpolicy_DATA = \ | |
baa5ad26 KS |
464 | $(polkitpolicy_in_files:.policy.in=.policy) \ |
465 | $(polkitpolicy_in_in_files:.policy.in.in=.policy) | |
9356a6c6 LP |
466 | |
467 | EXTRA_DIST += \ | |
baa5ad26 KS |
468 | $(polkitpolicy_in_files) \ |
469 | $(polkitpolicy_in_in_files) | |
9356a6c6 | 470 | |
1c7dde3e | 471 | @INTLTOOL_POLICY_RULE@ |
7640a5de | 472 | |
139be57d LP |
473 | noinst_LTLIBRARIES = \ |
474 | libsystemd-basic.la \ | |
114a50f8 | 475 | libsystemd-core.la |
139be57d | 476 | |
139be57d | 477 | libsystemd_basic_la_SOURCES = \ |
d3f09cf3 | 478 | src/util.c \ |
8ece4cab | 479 | src/util.h \ |
baa5ad26 | 480 | src/virt.c \ |
8ece4cab | 481 | src/virt.h \ |
e51bc1a2 | 482 | src/label.c \ |
8ece4cab | 483 | src/label.h \ |
d3f09cf3 | 484 | src/hashmap.c \ |
8ece4cab | 485 | src/hashmap.h \ |
d3f09cf3 | 486 | src/set.c \ |
8ece4cab | 487 | src/set.h \ |
d3f09cf3 | 488 | src/strv.c \ |
8ece4cab | 489 | src/strv.h \ |
d3f09cf3 | 490 | src/conf-parser.c \ |
8ece4cab | 491 | src/conf-parser.h \ |
d3f09cf3 | 492 | src/socket-util.c \ |
8ece4cab | 493 | src/socket-util.h \ |
d3f09cf3 | 494 | src/log.c \ |
8ece4cab KS |
495 | src/log.h \ |
496 | src/ratelimit.h \ | |
83cc030f | 497 | src/ratelimit.c \ |
7f110ff9 | 498 | src/exit-status.c \ |
8ece4cab KS |
499 | src/exit-status.h \ |
500 | src/utf8.c \ | |
501 | src/utf8.h | |
47be870b | 502 | |
4927fcae LP |
503 | libsystemd_basic_la_CFLAGS = \ |
504 | $(AM_CFLAGS) \ | |
505 | $(SELINUX_CFLAGS) | |
506 | ||
507 | libsystemd_basic_la_LIBADD = \ | |
85f19d82 MB |
508 | $(SELINUX_LIBS) \ |
509 | $(CAP_LIBS) | |
4927fcae | 510 | |
139be57d | 511 | libsystemd_core_la_SOURCES = \ |
e99e38bb | 512 | src/unit.c \ |
8ece4cab | 513 | src/unit.h \ |
d3f09cf3 | 514 | src/job.c \ |
8ece4cab | 515 | src/job.h \ |
d3f09cf3 | 516 | src/manager.c \ |
8ece4cab | 517 | src/manager.h \ |
84e3543e | 518 | src/path-lookup.c \ |
8ece4cab | 519 | src/path-lookup.h \ |
d3f09cf3 | 520 | src/load-fragment.c \ |
8ece4cab | 521 | src/load-fragment.h \ |
d3f09cf3 | 522 | src/service.c \ |
8ece4cab | 523 | src/service.h \ |
d3f09cf3 | 524 | src/automount.c \ |
8ece4cab | 525 | src/automount.h \ |
d3f09cf3 | 526 | src/mount.c \ |
8ece4cab | 527 | src/mount.h \ |
d3f09cf3 | 528 | src/swap.c \ |
8ece4cab | 529 | src/swap.h \ |
d3f09cf3 | 530 | src/device.c \ |
8ece4cab | 531 | src/device.h \ |
d3f09cf3 | 532 | src/target.c \ |
8ece4cab | 533 | src/target.h \ |
d3f09cf3 | 534 | src/snapshot.c \ |
8ece4cab | 535 | src/snapshot.h \ |
d3f09cf3 | 536 | src/socket.c \ |
8ece4cab | 537 | src/socket.h \ |
d3f09cf3 | 538 | src/timer.c \ |
8ece4cab | 539 | src/timer.h \ |
01f78473 | 540 | src/path.c \ |
8ece4cab | 541 | src/path.h \ |
d3f09cf3 | 542 | src/load-dropin.c \ |
8ece4cab | 543 | src/load-dropin.h \ |
d3f09cf3 | 544 | src/execute.c \ |
8ece4cab | 545 | src/execute.h \ |
169c1bda | 546 | src/utmp-wtmp.c \ |
8ece4cab | 547 | src/utmp-wtmp.h \ |
d3f09cf3 | 548 | src/dbus.c \ |
8ece4cab | 549 | src/dbus.h \ |
d3f09cf3 | 550 | src/dbus-manager.c \ |
8ece4cab | 551 | src/dbus-manager.h \ |
d3f09cf3 | 552 | src/dbus-unit.c \ |
8ece4cab | 553 | src/dbus-unit.h \ |
d3f09cf3 | 554 | src/dbus-job.c \ |
8ece4cab | 555 | src/dbus-job.h \ |
e99e38bb | 556 | src/dbus-service.c \ |
8ece4cab | 557 | src/dbus-service.h \ |
e99e38bb | 558 | src/dbus-socket.c \ |
8ece4cab | 559 | src/dbus-socket.h \ |
871d7de4 | 560 | src/dbus-timer.c \ |
8ece4cab | 561 | src/dbus-timer.h \ |
e99e38bb | 562 | src/dbus-target.c \ |
8ece4cab | 563 | src/dbus-target.h \ |
e99e38bb | 564 | src/dbus-mount.c \ |
8ece4cab | 565 | src/dbus-mount.h \ |
e99e38bb | 566 | src/dbus-automount.c \ |
8ece4cab | 567 | src/dbus-automount.h \ |
e99e38bb | 568 | src/dbus-swap.c \ |
8ece4cab | 569 | src/dbus-swap.h \ |
e99e38bb | 570 | src/dbus-snapshot.c \ |
8ece4cab | 571 | src/dbus-snapshot.h \ |
e99e38bb | 572 | src/dbus-device.c \ |
8ece4cab | 573 | src/dbus-device.h \ |
e99e38bb | 574 | src/dbus-execute.c \ |
8ece4cab | 575 | src/dbus-execute.h \ |
01f78473 | 576 | src/dbus-path.c \ |
8ece4cab | 577 | src/dbus-path.h \ |
e99e38bb | 578 | src/cgroup.c \ |
8ece4cab | 579 | src/cgroup.h \ |
e99e38bb | 580 | src/mount-setup.c \ |
8ece4cab | 581 | src/mount-setup.h \ |
e99e38bb | 582 | src/hostname-setup.c \ |
8ece4cab | 583 | src/hostname-setup.h \ |
c4dcdb9f | 584 | src/selinux-setup.c \ |
8ece4cab | 585 | src/selinux-setup.h \ |
81611586 | 586 | src/ima-setup.c \ |
8ece4cab KS |
587 | src/ima-setup.h \ |
588 | src/loopback-setup.h \ | |
e99e38bb | 589 | src/loopback-setup.c \ |
11c3a4ee | 590 | src/kmod-setup.c \ |
8ece4cab KS |
591 | src/kmod-setup.h \ |
592 | src/locale-setup.h \ | |
72bca11b | 593 | src/locale-setup.c \ |
d7ccca2e | 594 | src/machine-id-setup.c \ |
8ece4cab | 595 | src/machine-id-setup.h \ |
e99e38bb | 596 | src/fdset.c \ |
8ece4cab | 597 | src/fdset.h \ |
52661efd | 598 | src/cgroup-util.c \ |
8ece4cab | 599 | src/cgroup-util.h \ |
bfebab7f | 600 | src/condition.c \ |
8ece4cab | 601 | src/condition.h \ |
baa5ad26 | 602 | src/dbus-common.c \ |
8ece4cab | 603 | src/dbus-common.h \ |
baa5ad26 | 604 | src/install.c \ |
8ece4cab KS |
605 | src/install.h \ |
606 | src/specifier.c \ | |
8d62c69d | 607 | src/specifier.h \ |
8ece4cab | 608 | src/namespace.c \ |
8d62c69d | 609 | src/namespace.h \ |
8ece4cab | 610 | src/unit-name.c \ |
8d62c69d | 611 | src/unit-name.h \ |
8ece4cab | 612 | src/tcpwrap.c \ |
8d62c69d | 613 | src/tcpwrap.h \ |
baa5ad26 | 614 | src/cgroup-attr.c \ |
8ece4cab | 615 | src/cgroup-attr.h \ |
e96d6be7 LP |
616 | src/watchdog.c \ |
617 | src/watchdog.h \ | |
8d62c69d KS |
618 | src/sd-daemon.c \ |
619 | src/sd-id128.c \ | |
8ece4cab KS |
620 | src/macro.h \ |
621 | src/def.h \ | |
622 | src/ioprio.h \ | |
623 | src/missing.h \ | |
624 | src/list.h \ | |
625 | src/securebits.h \ | |
626 | src/linux/auto_dev-ioctl.h \ | |
627 | src/linux/fanotify.h \ | |
628 | src/initreq.h \ | |
629 | src/special.h \ | |
630 | src/dbus-common.h \ | |
631 | src/bus-errors.h \ | |
632 | src/cgroup-show.h \ | |
633 | src/build.h \ | |
634 | src/shutdownd.h \ | |
635 | src/umount.h \ | |
636 | src/ask-password-api.h \ | |
637 | src/pager.h \ | |
638 | src/sysfs-show.h \ | |
639 | src/polkit.h \ | |
640 | src/dbus-loop.h \ | |
641 | src/spawn-agent.h \ | |
642 | src/acl-util.h \ | |
643 | src/logs-show.h | |
47be870b | 644 | |
f975e971 | 645 | nodist_libsystemd_core_la_SOURCES = \ |
baa5ad26 KS |
646 | src/load-fragment-gperf.c \ |
647 | src/load-fragment-gperf-nulstr.c | |
f975e971 | 648 | |
6e5c0444 | 649 | EXTRA_DIST += \ |
baa5ad26 | 650 | src/load-fragment-gperf.gperf.m4 |
6e5c0444 | 651 | |
139be57d LP |
652 | libsystemd_core_la_CFLAGS = \ |
653 | $(AM_CFLAGS) \ | |
654 | $(DBUS_CFLAGS) \ | |
4927fcae LP |
655 | $(LIBWRAP_CFLAGS) \ |
656 | $(PAM_CFLAGS) \ | |
4536f716 FC |
657 | $(AUDIT_CFLAGS) \ |
658 | $(KMOD_CFLAGS) | |
139be57d LP |
659 | |
660 | libsystemd_core_la_LIBADD = \ | |
661 | libsystemd-basic.la \ | |
3e214785 | 662 | libudev.la \ |
139be57d | 663 | $(DBUS_LIBS) \ |
139be57d | 664 | $(LIBWRAP_LIBS) \ |
7a58bfa4 | 665 | $(PAM_LIBS) \ |
85f19d82 | 666 | $(AUDIT_LIBS) \ |
4536f716 FC |
667 | $(CAP_LIBS) \ |
668 | $(KMOD_LIBS) | |
139be57d | 669 | |
6f6083dc | 670 | MANPAGES = \ |
160cd5c9 | 671 | man/systemd.1 \ |
6f6083dc | 672 | man/systemctl.1 \ |
fa776d8e | 673 | man/systemd-cgls.1 \ |
caa94887 | 674 | man/systemd-cgtop.1 \ |
8f7a3c14 | 675 | man/systemd-nspawn.1 \ |
522d4a49 | 676 | man/systemd-tmpfiles.8 \ |
c5abba08 | 677 | man/systemd-notify.1 \ |
6f6083dc LP |
678 | man/systemd.unit.5 \ |
679 | man/systemd.service.5 \ | |
1f812fea | 680 | man/systemd.socket.5 \ |
cdb788e4 | 681 | man/systemd.mount.5 \ |
65232ea7 | 682 | man/systemd.automount.5 \ |
e0cabd4b | 683 | man/systemd.swap.5 \ |
11fcc3ab | 684 | man/systemd.timer.5 \ |
b36b082c | 685 | man/systemd.path.5 \ |
da49e9ab | 686 | man/systemd.target.5 \ |
eec575d8 | 687 | man/systemd.device.5 \ |
b2c20dd9 | 688 | man/systemd.snapshot.5 \ |
dd1eb43b | 689 | man/systemd.exec.5 \ |
79d4c0a2 | 690 | man/systemd.special.7 \ |
ffa16db0 | 691 | man/systemd.journal-fields.7 \ |
6f6083dc | 692 | man/daemon.7 \ |
359957ee | 693 | man/runlevel.8 \ |
160cd5c9 LP |
694 | man/telinit.8 \ |
695 | man/halt.8 \ | |
696 | man/shutdown.8 \ | |
f3e219a2 | 697 | man/pam_systemd.8 \ |
4149f86d | 698 | man/systemd.conf.5 \ |
6a7e63ef | 699 | man/tmpfiles.d.5 \ |
eeca220b | 700 | man/hostname.5 \ |
baa5ad26 | 701 | man/timezone.5 \ |
d7ccca2e | 702 | man/machine-id.5 \ |
e17fb729 | 703 | man/locale.conf.5 \ |
a7c64469 | 704 | man/os-release.5 \ |
baa5ad26 | 705 | man/machine-info.5 \ |
151b190e | 706 | man/modules-load.d.5 \ |
f3bc7fdc | 707 | man/sysctl.d.5 \ |
9aac0b2c | 708 | man/systemd-ask-password.1 \ |
44f44a29 | 709 | man/systemd-cat.1 \ |
18b754d3 KS |
710 | man/systemd-machine-id-setup.1 \ |
711 | man/journald.conf.5 \ | |
3e214785 KS |
712 | man/journalctl.1 \ |
713 | man/udev.7 \ | |
714 | man/udevadm.8 \ | |
715 | man/udevd.8 | |
6f6083dc LP |
716 | |
717 | MANPAGES_ALIAS = \ | |
718 | man/reboot.8 \ | |
719 | man/poweroff.8 \ | |
18b754d3 | 720 | man/init.1 |
6f6083dc LP |
721 | |
722 | man/reboot.8: man/halt.8 | |
723 | man/poweroff.8: man/halt.8 | |
6f6083dc LP |
724 | man/init.1: man/systemd.1 |
725 | ||
38cacf5a LP |
726 | XML_FILES = \ |
727 | ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}} | |
728 | ||
f9941a4b | 729 | if ENABLE_MANPAGES |
38cacf5a | 730 | man_MANS = \ |
6f6083dc LP |
731 | $(MANPAGES) \ |
732 | $(MANPAGES_ALIAS) | |
9f2c5942 | 733 | |
38cacf5a | 734 | noinst_DATA = \ |
6f6083dc | 735 | ${XML_FILES:.xml=.html} |
38cacf5a | 736 | endif |
d1ab0ca0 | 737 | |
d1ab0ca0 | 738 | EXTRA_DIST += \ |
38cacf5a LP |
739 | $(XML_FILES) \ |
740 | ${XML_FILES:.xml=.html} \ | |
741 | $(MANPAGES) \ | |
742 | $(MANPAGES_ALIAS) | |
75db9a77 | 743 | |
47be870b | 744 | systemd_SOURCES = \ |
e99e38bb | 745 | src/main.c |
47be870b | 746 | |
10e87ee7 LP |
747 | systemd_CFLAGS = \ |
748 | $(AM_CFLAGS) \ | |
3e214785 | 749 | $(DBUS_CFLAGS) |
47be870b LP |
750 | |
751 | systemd_LDADD = \ | |
4536f716 | 752 | libsystemd-core.la |
47be870b LP |
753 | |
754 | test_engine_SOURCES = \ | |
e99e38bb | 755 | src/test-engine.c |
47be870b | 756 | |
10e87ee7 | 757 | test_engine_CFLAGS = $(systemd_CFLAGS) |
47be870b LP |
758 | test_engine_LDADD = $(systemd_LDADD) |
759 | ||
760 | test_job_type_SOURCES = \ | |
e1d680ad | 761 | src/test-job-type.c |
47be870b | 762 | |
10e87ee7 | 763 | test_job_type_CFLAGS = $(systemd_CFLAGS) |
47be870b LP |
764 | test_job_type_LDADD = $(systemd_LDADD) |
765 | ||
15ae422b | 766 | test_ns_SOURCES = \ |
139be57d | 767 | src/test-ns.c |
15ae422b | 768 | |
10e87ee7 | 769 | test_ns_CFLAGS = $(systemd_CFLAGS) |
15ae422b LP |
770 | test_ns_LDADD = $(systemd_LDADD) |
771 | ||
af5bc85d | 772 | test_loopback_SOURCES = \ |
e99e38bb LP |
773 | src/test-loopback.c \ |
774 | src/loopback-setup.c | |
af5bc85d | 775 | |
139be57d LP |
776 | test_loopback_LDADD = \ |
777 | libsystemd-basic.la | |
778 | ||
e5907703 LP |
779 | test_hostname_SOURCES = \ |
780 | src/test-hostname.c \ | |
781 | src/hostname-setup.c | |
782 | ||
783 | test_hostname_LDADD = \ | |
784 | libsystemd-basic.la | |
785 | ||
8c47c732 | 786 | test_daemon_SOURCES = \ |
2f6a1ab1 | 787 | src/test-daemon.c |
af5bc85d | 788 | |
139be57d | 789 | test_daemon_LDADD = \ |
2f6a1ab1 MB |
790 | libsystemd-basic.la \ |
791 | libsystemd-daemon.la | |
139be57d | 792 | |
8c6db833 LP |
793 | test_cgroup_SOURCES = \ |
794 | src/test-cgroup.c \ | |
795 | src/cgroup-util.c | |
796 | ||
8c6db833 | 797 | test_cgroup_LDADD = \ |
35d2e7ec | 798 | libsystemd-basic.la |
8c6db833 | 799 | |
c24eb49e LP |
800 | test_env_replace_SOURCES = \ |
801 | src/test-env-replace.c | |
802 | ||
c24eb49e LP |
803 | test_env_replace_LDADD = \ |
804 | libsystemd-basic.la | |
805 | ||
f90cf44c | 806 | test_strv_SOURCES = \ |
2c4b304e | 807 | src/test-strv.c \ |
c292c495 | 808 | src/specifier.c |
f90cf44c | 809 | |
f90cf44c LP |
810 | test_strv_LDADD = \ |
811 | libsystemd-basic.la | |
812 | ||
83096483 LP |
813 | test_install_SOURCES = \ |
814 | src/test-install.c \ | |
baa5ad26 KS |
815 | src/install.c \ |
816 | src/path-lookup.c \ | |
817 | src/unit-name.c | |
83096483 LP |
818 | |
819 | test_install_CFLAGS = \ | |
820 | $(AM_CFLAGS) \ | |
baa5ad26 | 821 | $(DBUS_CFLAGS) |
83096483 LP |
822 | |
823 | test_install_LDADD = \ | |
824 | libsystemd-basic.la | |
825 | ||
e96d6be7 LP |
826 | test_watchdog_SOURCES = \ |
827 | src/test-watchdog.c \ | |
828 | src/watchdog.c \ | |
829 | src/watchdog.h | |
830 | ||
831 | test_watchdog_LDADD = \ | |
832 | libsystemd-basic.la | |
833 | ||
7e8f489a KS |
834 | systemd_initctl_SOURCES = \ |
835 | src/initctl.c \ | |
836 | src/dbus-common.c | |
837 | ||
838 | systemd_initctl_CFLAGS = \ | |
839 | $(AM_CFLAGS) \ | |
840 | $(DBUS_CFLAGS) | |
841 | ||
842 | systemd_initctl_LDADD = \ | |
843 | libsystemd-basic.la \ | |
844 | libsystemd-daemon.la \ | |
845 | $(DBUS_LIBS) | |
846 | ||
847 | systemd_update_utmp_SOURCES = \ | |
848 | src/update-utmp.c \ | |
849 | src/dbus-common.c \ | |
850 | src/utmp-wtmp.c | |
851 | ||
852 | systemd_update_utmp_CFLAGS = \ | |
853 | $(AM_CFLAGS) \ | |
854 | $(DBUS_CFLAGS) \ | |
855 | $(AUDIT_CFLAGS) | |
856 | ||
857 | systemd_update_utmp_LDADD = \ | |
858 | libsystemd-basic.la \ | |
859 | $(DBUS_LIBS) \ | |
860 | $(AUDIT_LIBS) | |
861 | ||
7e8f489a KS |
862 | systemd_shutdownd_SOURCES = \ |
863 | src/utmp-wtmp.c \ | |
864 | src/shutdownd.c | |
807e17f0 | 865 | |
7e8f489a KS |
866 | systemd_shutdownd_CFLAGS = \ |
867 | $(AM_CFLAGS) | |
868 | ||
869 | systemd_shutdownd_LDADD = \ | |
870 | libsystemd-basic.la \ | |
871 | libsystemd-daemon.la | |
872 | ||
48d437bb KS |
873 | systemd_shutdown_SOURCES = \ |
874 | src/mount-setup.c \ | |
875 | src/umount.c \ | |
e96d6be7 LP |
876 | src/shutdown.c \ |
877 | src/watchdog.c \ | |
878 | src/watchdog.h | |
d4a66a7f | 879 | |
48d437bb KS |
880 | systemd_shutdown_LDADD = \ |
881 | libsystemd-basic.la \ | |
3e214785 | 882 | libudev.la |
d4a66a7f | 883 | |
48d437bb KS |
884 | systemd_modules_load_SOURCES = \ |
885 | src/modules-load.c | |
d4a66a7f | 886 | |
83684a35 TG |
887 | systemd_modules_load_CFLAGS = \ |
888 | $(KMOD_CFLAGS) | |
889 | ||
48d437bb | 890 | systemd_modules_load_LDADD = \ |
83684a35 TG |
891 | libsystemd-basic.la \ |
892 | $(KMOD_LIBS) | |
d4a66a7f | 893 | |
48d437bb KS |
894 | systemd_tmpfiles_SOURCES = \ |
895 | src/tmpfiles.c | |
d4a66a7f | 896 | |
48d437bb KS |
897 | systemd_tmpfiles_LDADD = \ |
898 | libsystemd-basic.la | |
d4a66a7f | 899 | |
48d437bb KS |
900 | systemd_machine_id_setup_SOURCES = \ |
901 | src/machine-id-setup.c \ | |
902 | src/machine-id-main.c \ | |
903 | src/sd-id128.c | |
d4a66a7f | 904 | |
48d437bb KS |
905 | systemd_machine_id_setup_LDADD = \ |
906 | libsystemd-basic.la | |
d4a66a7f | 907 | |
48d437bb KS |
908 | systemd_sysctl_SOURCES = \ |
909 | src/sysctl.c | |
d4a66a7f | 910 | |
48d437bb KS |
911 | systemd_sysctl_LDADD = \ |
912 | libsystemd-basic.la | |
d4a66a7f | 913 | |
48d437bb KS |
914 | systemd_fsck_SOURCES = \ |
915 | src/fsck.c \ | |
916 | src/dbus-common.c | |
87d2c1ff | 917 | |
48d437bb | 918 | systemd_fsck_CFLAGS = \ |
f4b47811 | 919 | $(AM_CFLAGS) \ |
48d437bb | 920 | $(DBUS_CFLAGS) |
87d2c1ff | 921 | |
48d437bb | 922 | systemd_fsck_LDADD = \ |
87d2c1ff | 923 | libsystemd-basic.la \ |
3e214785 | 924 | libudev.la \ |
48d437bb | 925 | $(DBUS_LIBS) |
807e17f0 | 926 | |
48d437bb KS |
927 | systemd_timestamp_SOURCES = \ |
928 | src/timestamp.c | |
807e17f0 | 929 | |
48d437bb | 930 | systemd_timestamp_LDADD = \ |
7e8f489a | 931 | libsystemd-basic.la |
47be870b | 932 | |
48d437bb KS |
933 | systemd_ac_power_SOURCES = \ |
934 | src/ac-power.c | |
0b7964b8 | 935 | |
48d437bb KS |
936 | systemd_ac_power_LDADD = \ |
937 | libsystemd-basic.la \ | |
3e214785 | 938 | libudev.la |
0b7964b8 | 939 | |
48d437bb KS |
940 | systemd_detect_virt_SOURCES = \ |
941 | src/detect-virt.c | |
4927fcae | 942 | |
48d437bb KS |
943 | systemd_detect_virt_LDADD = \ |
944 | libsystemd-basic.la | |
7e8f489a | 945 | |
48d437bb KS |
946 | systemd_getty_generator_SOURCES = \ |
947 | src/getty-generator.c \ | |
948 | src/unit-name.c | |
f6144808 | 949 | |
48d437bb KS |
950 | systemd_getty_generator_LDADD = \ |
951 | libsystemd-basic.la | |
7e8f489a | 952 | |
48d437bb KS |
953 | systemd_rc_local_generator_SOURCES = \ |
954 | src/rc-local-generator.c | |
7e8f489a | 955 | |
48d437bb KS |
956 | systemd_rc_local_generator_LDADD = \ |
957 | libsystemd-basic.la | |
7e8f489a | 958 | |
48d437bb KS |
959 | systemd_remount_api_vfs_SOURCES = \ |
960 | src/remount-api-vfs.c \ | |
961 | src/mount-setup.c \ | |
962 | src/exit-status.c | |
609518c1 | 963 | |
48d437bb KS |
964 | systemd_remount_api_vfs_LDADD = \ |
965 | libsystemd-basic.la | |
609518c1 | 966 | |
48d437bb KS |
967 | systemd_cgroups_agent_SOURCES = \ |
968 | src/cgroups-agent.c \ | |
969 | src/dbus-common.c | |
7640a5de | 970 | |
48d437bb | 971 | systemd_cgroups_agent_CFLAGS = \ |
7640a5de LP |
972 | $(AM_CFLAGS) \ |
973 | $(DBUS_CFLAGS) | |
974 | ||
48d437bb | 975 | systemd_cgroups_agent_LDADD = \ |
7640a5de | 976 | libsystemd-basic.la \ |
7640a5de LP |
977 | $(DBUS_LIBS) |
978 | ||
48d437bb KS |
979 | systemctl_SOURCES = \ |
980 | src/systemctl.c \ | |
981 | src/utmp-wtmp.c \ | |
baa5ad26 | 982 | src/dbus-common.c \ |
48d437bb KS |
983 | src/path-lookup.c \ |
984 | src/cgroup-show.c \ | |
985 | src/cgroup-util.c \ | |
986 | src/exit-status.c \ | |
987 | src/unit-name.c \ | |
988 | src/pager.c \ | |
989 | src/install.c \ | |
86aa7ba4 | 990 | src/spawn-agent.c \ |
8b9b4d6c | 991 | src/logs-show.c |
f401e48c | 992 | |
48d437bb | 993 | systemctl_CFLAGS = \ |
f401e48c LP |
994 | $(AM_CFLAGS) \ |
995 | $(DBUS_CFLAGS) | |
996 | ||
48d437bb | 997 | systemctl_LDADD = \ |
f401e48c LP |
998 | libsystemd-basic.la \ |
999 | libsystemd-daemon.la \ | |
86aa7ba4 | 1000 | libsystemd-journal.la \ |
118ca596 | 1001 | libsystemd-id128.la \ |
f401e48c LP |
1002 | $(DBUS_LIBS) |
1003 | ||
48d437bb KS |
1004 | systemd_notify_SOURCES = \ |
1005 | src/notify.c \ | |
e5e83e83 | 1006 | src/readahead/sd-readahead.c |
1822350d | 1007 | |
48d437bb KS |
1008 | systemd_notify_LDADD = \ |
1009 | libsystemd-basic.la \ | |
1010 | libsystemd-daemon.la | |
681cfc6c | 1011 | |
48d437bb KS |
1012 | systemd_ask_password_SOURCES = \ |
1013 | src/ask-password.c \ | |
1014 | src/ask-password-api.c | |
681cfc6c | 1015 | |
48d437bb KS |
1016 | systemd_ask_password_LDADD = \ |
1017 | libsystemd-basic.la | |
681cfc6c | 1018 | |
48d437bb KS |
1019 | systemd_reply_password_SOURCES = \ |
1020 | src/reply-password.c | |
681cfc6c | 1021 | |
48d437bb KS |
1022 | systemd_reply_password_LDADD = \ |
1023 | libsystemd-basic.la | |
1822350d | 1024 | |
48d437bb KS |
1025 | systemd_cgls_SOURCES = \ |
1026 | src/cgls.c \ | |
1027 | src/cgroup-show.c \ | |
1028 | src/cgroup-util.c \ | |
1029 | src/pager.c | |
4668191d | 1030 | |
48d437bb KS |
1031 | systemd_cgls_LDADD = \ |
1032 | libsystemd-basic.la | |
4668191d | 1033 | |
8f2d43a0 LP |
1034 | systemd_cgtop_SOURCES = \ |
1035 | src/cgtop.c \ | |
1036 | src/cgroup-util.c | |
1037 | ||
1038 | systemd_cgtop_LDADD = \ | |
1039 | libsystemd-basic.la | |
1040 | ||
48d437bb KS |
1041 | systemd_nspawn_SOURCES = \ |
1042 | src/nspawn.c \ | |
1043 | src/cgroup-util.c \ | |
1044 | src/loopback-setup.c | |
4668191d | 1045 | |
48d437bb KS |
1046 | systemd_nspawn_LDADD = \ |
1047 | libsystemd-basic.la \ | |
1048 | libsystemd-daemon.la | |
4668191d | 1049 | |
48d437bb KS |
1050 | systemd_stdio_bridge_SOURCES = \ |
1051 | src/bridge.c | |
4668191d | 1052 | |
48d437bb KS |
1053 | systemd_stdio_bridge_LDADD = \ |
1054 | libsystemd-basic.la | |
4668191d | 1055 | |
48d437bb KS |
1056 | systemd_tty_ask_password_agent_SOURCES = \ |
1057 | src/tty-ask-password-agent.c \ | |
1058 | src/ask-password-api.c \ | |
1059 | src/utmp-wtmp.c | |
2a018e83 | 1060 | |
48d437bb KS |
1061 | systemd_tty_ask_password_agent_LDADD = \ |
1062 | libsystemd-basic.la | |
1063 | ||
1064 | # ------------------------------------------------------------------------------ | |
1065 | libsystemd_daemon_la_SOURCES = \ | |
1066 | src/sd-daemon.c | |
1067 | ||
1068 | libsystemd_daemon_la_CFLAGS = \ | |
2a018e83 | 1069 | $(AM_CFLAGS) \ |
48d437bb KS |
1070 | -fvisibility=hidden \ |
1071 | -DSD_EXPORT_SYMBOLS | |
2a018e83 | 1072 | |
48d437bb KS |
1073 | libsystemd_daemon_la_LDFLAGS = \ |
1074 | -shared \ | |
1075 | -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \ | |
1076 | -Wl,--version-script=$(top_srcdir)/src/libsystemd-daemon.sym | |
2a018e83 | 1077 | |
48d437bb | 1078 | pkginclude_HEADERS += \ |
81527be1 | 1079 | src/systemd/sd-daemon.h |
2a018e83 | 1080 | |
48d437bb KS |
1081 | # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed |
1082 | libsystemd-daemon-install-hook: | |
1083 | if test "$(libdir)" != "$(rootlibdir)"; then \ | |
1084 | mkdir -p $(DESTDIR)$(rootlibdir) && \ | |
1085 | so_img_name=$$(readlink $(DESTDIR)$(libdir)/libsystemd-daemon.so) && \ | |
1086 | so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \ | |
1087 | ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libsystemd-daemon.so && \ | |
1088 | mv $(DESTDIR)$(libdir)/libsystemd-daemon.so.* $(DESTDIR)$(rootlibdir); \ | |
1089 | fi | |
2a018e83 | 1090 | |
48d437bb KS |
1091 | INSTALL_EXEC_HOOKS += \ |
1092 | libsystemd-daemon-install-hook | |
2a018e83 | 1093 | |
48d437bb KS |
1094 | libsystemd-daemon-uninstall-hook: |
1095 | rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so* | |
2a018e83 | 1096 | |
48d437bb KS |
1097 | UNINSTALL_EXEC_HOOKS += \ |
1098 | libsystemd-daemon-uninstall-hook | |
2a018e83 | 1099 | |
0237edf7 KS |
1100 | lib_LTLIBRARIES += \ |
1101 | libsystemd-daemon.la | |
1102 | ||
1103 | pkgconfiglib_DATA += \ | |
6185ac1e | 1104 | src/libsystemd-daemon.pc |
0237edf7 | 1105 | |
9ace5d02 KS |
1106 | MANPAGES += \ |
1107 | man/sd-daemon.7 \ | |
1108 | man/sd_notify.3 \ | |
1109 | man/sd_listen_fds.3 \ | |
1110 | man/sd_is_fifo.3 \ | |
1111 | man/sd_booted.3 | |
1112 | ||
1113 | MANPAGES_ALIAS += \ | |
1114 | man/sd_is_socket.3 \ | |
1115 | man/sd_is_socket_unix.3 \ | |
1116 | man/sd_is_socket_inet.3 \ | |
1117 | man/sd_is_mq.3 \ | |
1118 | man/sd_notifyf.3 | |
1119 | ||
1120 | man/sd_is_socket.3: man/sd_is_fifo.3 | |
1121 | man/sd_is_socket_unix.3: man/sd_is_fifo.3 | |
1122 | man/sd_is_socket_inet.3: man/sd_is_fifo.3 | |
1123 | man/sd_is_mq.3: man/sd_is_fifo.3 | |
1124 | man/sd_notifyf.3: man/sd_notify.3 | |
1125 | ||
48d437bb | 1126 | EXTRA_DIST += \ |
dd338f01 | 1127 | src/libsystemd-daemon.pc.in \ |
0237edf7 | 1128 | src/libsystemd-daemon.sym |
48d437bb | 1129 | |
3e214785 KS |
1130 | # ------------------------------------------------------------------------------ |
1131 | SUBDIRS += \ | |
1132 | src/udev/docs | |
1133 | ||
1134 | include_HEADERS += \ | |
1135 | src/udev/libudev.h | |
1136 | ||
1137 | lib_LTLIBRARIES += \ | |
1138 | libudev.la | |
1139 | ||
1140 | noinst_LTLIBRARIES += \ | |
1141 | libudev-private.la | |
1142 | ||
1143 | libudev_la_SOURCES =\ | |
1144 | src/udev/libudev-private.h \ | |
1145 | src/udev/libudev.c \ | |
1146 | src/udev/libudev-list.c \ | |
1147 | src/udev/libudev-util.c \ | |
1148 | src/udev/libudev-device.c \ | |
1149 | src/udev/libudev-enumerate.c \ | |
1150 | src/udev/libudev-monitor.c \ | |
1151 | src/udev/libudev-queue.c | |
1152 | ||
1153 | libudev_la_LDFLAGS = \ | |
1154 | $(AM_LDFLAGS) \ | |
1155 | -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) | |
1156 | ||
1157 | libudev_private_la_SOURCES =\ | |
1158 | $(libudev_la_SOURCES) \ | |
1159 | src/udev/libudev-util-private.c \ | |
1160 | src/udev/libudev-device-private.c \ | |
9b1a953e DR |
1161 | src/udev/libudev-queue-private.c |
1162 | ||
1163 | if HAVE_SELINUX | |
1164 | libudev_private_la_SOURCES +=\ | |
3e214785 | 1165 | src/udev/libudev-selinux-private.c |
9b1a953e | 1166 | endif |
3e214785 KS |
1167 | |
1168 | libudev_private_la_LIBADD = \ | |
1169 | $(SELINUX_LIBS) | |
1170 | ||
1171 | pkgconfiglib_DATA += \ | |
1172 | src/udev/libudev.pc | |
1173 | ||
1174 | EXTRA_DIST += \ | |
1175 | src/udev/libudev.pc.in | |
1176 | ||
1177 | CLEANFILES += \ | |
1178 | src/udev/libudev.pc | |
1179 | ||
1180 | # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed | |
1181 | libudev-install-move-hook: | |
1182 | if test "$(libdir)" != "$(rootlibdir)"; then \ | |
1183 | mkdir -p $(DESTDIR)$(rootlibdir) && \ | |
1184 | so_img_name=$$(readlink $(DESTDIR)$(libdir)/libudev.so) && \ | |
1185 | so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \ | |
1186 | ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libudev.so && \ | |
1187 | mv $(DESTDIR)$(libdir)/libudev.so.* $(DESTDIR)$(rootlibdir); \ | |
1188 | fi | |
1189 | ||
1190 | libudev-uninstall-move-hook: | |
1191 | rm -f $(DESTDIR)$(rootlibdir)/libudev.so* | |
1192 | ||
1193 | INSTALL_EXEC_HOOKS += libudev-install-move-hook | |
1194 | UNINSTALL_EXEC_HOOKS += libudev-uninstall-move-hook | |
1195 | ||
1196 | # ------------------------------------------------------------------------------ | |
1197 | udev-confdirs: | |
1198 | -mkdir -p $(DESTDIR)$(sysconfdir)/udev/rules.d | |
1199 | -mkdir -p $(DESTDIR)$(libexecdir)/udev/devices | |
1200 | ||
1201 | INSTALL_DATA_HOOKS += udev-confdirs | |
1202 | ||
3e214785 KS |
1203 | dist_udevrules_DATA += \ |
1204 | rules/99-systemd.rules \ | |
1205 | rules/42-usb-hid-pm.rules \ | |
1206 | rules/50-udev-default.rules \ | |
1207 | rules/60-persistent-storage-tape.rules \ | |
1208 | rules/60-persistent-serial.rules \ | |
1209 | rules/60-persistent-input.rules \ | |
1210 | rules/60-persistent-alsa.rules \ | |
1211 | rules/60-persistent-storage.rules \ | |
1212 | rules/75-net-description.rules \ | |
1213 | rules/75-tty-description.rules \ | |
1214 | rules/78-sound-card.rules \ | |
1215 | rules/80-drivers.rules \ | |
1216 | rules/95-udev-late.rules | |
1217 | ||
1218 | udevconfdir = $(sysconfdir)/udev | |
1219 | dist_udevconf_DATA = \ | |
1220 | src/udev/udev.conf | |
1221 | ||
1222 | sharepkgconfigdir = $(datadir)/pkgconfig | |
1223 | sharepkgconfig_DATA = \ | |
1224 | src/udev/udev.pc | |
1225 | ||
1226 | EXTRA_DIST += \ | |
1227 | rules/99-systemd.rules.in \ | |
1228 | src/udev/udev.pc.in | |
1229 | ||
1230 | CLEANFILES += \ | |
1231 | rules/99-systemd.rules \ | |
1232 | src/udev/udev.pc | |
1233 | ||
1234 | EXTRA_DIST += \ | |
1235 | units/udev.service.in \ | |
1236 | units/udev-trigger.service.in \ | |
1237 | units/udev-settle.service.in | |
1238 | ||
1239 | CLEANFILES += \ | |
1240 | units/udev.service \ | |
1241 | units/udev-trigger.service \ | |
1242 | units/udev-settle.service | |
1243 | ||
1244 | systemd-install-hook: | |
1245 | mkdir -p $(DESTDIR)$(systemunitdir)/sockets.target.wants | |
1246 | ln -sf ../udev-control.socket $(DESTDIR)$(systemunitdir)/sockets.target.wants/udev-control.socket | |
1247 | ln -sf ../udev-kernel.socket $(DESTDIR)$(systemunitdir)/sockets.target.wants/udev-kernel.socket | |
1248 | mkdir -p $(DESTDIR)$(systemunitdir)/basic.target.wants | |
1249 | ln -sf ../udev.service $(DESTDIR)$(systemunitdir)/basic.target.wants/udev.service | |
1250 | ln -sf ../udev-trigger.service $(DESTDIR)$(systemunitdir)/basic.target.wants/udev-trigger.service | |
1251 | ||
1252 | INSTALL_DATA_HOOKS += systemd-install-hook | |
1253 | ||
1254 | bin_PROGRAMS += \ | |
1255 | udevadm | |
1256 | ||
1257 | udevlibexec_PROGRAMS = \ | |
1258 | udevd | |
1259 | ||
1260 | udev_common_sources = \ | |
1261 | src/udev/udev.h \ | |
1262 | src/udev/udev-event.c \ | |
1263 | src/udev/udev-watch.c \ | |
1264 | src/udev/udev-node.c \ | |
1265 | src/udev/udev-rules.c \ | |
1266 | src/udev/udev-ctrl.c \ | |
1267 | src/udev/udev-builtin.c \ | |
1268 | src/udev/udev-builtin-blkid.c \ | |
1269 | src/udev/udev-builtin-firmware.c \ | |
1270 | src/udev/udev-builtin-hwdb.c \ | |
1271 | src/udev/udev-builtin-input_id.c \ | |
1272 | src/udev/udev-builtin-kmod.c \ | |
1273 | src/udev/udev-builtin-path_id.c \ | |
1274 | src/udev/udev-builtin-usb_id.c | |
1275 | ||
1276 | udev_common_CFLAGS = \ | |
1277 | $(BLKID_CFLAGS) \ | |
1278 | $(KMOD_CFLAGS) | |
1279 | ||
1280 | udev_common_LDADD = \ | |
1281 | libudev-private.la \ | |
1282 | $(BLKID_LIBS) \ | |
1283 | $(KMOD_LIBS) | |
1284 | ||
1285 | udev_common_CPPFLAGS = \ | |
1286 | $(AM_CPPFLAGS) \ | |
1287 | -DFIRMWARE_PATH="$(FIRMWARE_PATH)" \ | |
1288 | -DUSB_DATABASE=\"$(USB_DATABASE)\" -DPCI_DATABASE=\"$(PCI_DATABASE)\" | |
1289 | ||
1290 | udevd_SOURCES = \ | |
1291 | $(udev_common_sources) \ | |
1292 | src/udev/udevd.c \ | |
1293 | src/systemd/sd-daemon.h \ | |
1294 | src/sd-daemon.c | |
1295 | ||
1296 | udevd_CFLAGS = \ | |
1297 | $(udev_common_CFLAGS) | |
1298 | ||
1299 | udevd_LDADD = \ | |
1300 | $(udev_common_LDADD) | |
1301 | ||
1302 | udevd_CPPFLAGS = \ | |
1303 | $(udev_common_CPPFLAGS) | |
1304 | ||
1305 | udevadm_SOURCES = \ | |
1306 | $(udev_common_sources) \ | |
1307 | src/udev/udevadm.c \ | |
1308 | src/udev/udevadm-info.c \ | |
1309 | src/udev/udevadm-control.c \ | |
1310 | src/udev/udevadm-monitor.c \ | |
1311 | src/udev/udevadm-settle.c \ | |
1312 | src/udev/udevadm-trigger.c \ | |
1313 | src/udev/udevadm-test.c \ | |
1314 | src/udev/udevadm-test-builtin.c | |
1315 | ||
1316 | udevadm_CFLAGS = \ | |
1317 | $(udev_common_CFLAGS) | |
1318 | ||
1319 | udevadm_LDADD = \ | |
1320 | $(udev_common_LDADD) | |
1321 | ||
1322 | udevadm_CPPFLAGS = \ | |
1323 | $(udev_common_CPPFLAGS) | |
1324 | ||
1325 | # ------------------------------------------------------------------------------ | |
1326 | TESTS = \ | |
1327 | src/udev/test/udev-test.pl \ | |
1328 | src/udev/test/rules-test.sh | |
1329 | ||
1330 | check_PROGRAMS = \ | |
1331 | test-libudev \ | |
1332 | test-udev | |
1333 | ||
1334 | test_libudev_SOURCES = \ | |
1335 | src/udev/test-libudev.c | |
1336 | ||
1337 | test_libudev_LDADD = \ | |
1338 | libudev.la | |
1339 | ||
1340 | test_udev_SOURCES = \ | |
1341 | $(udev_common_sources) \ | |
1342 | src/udev/test-udev.c | |
1343 | ||
1344 | test_udev_CFLAGS = \ | |
1345 | $(udev_common_CFLAGS) | |
1346 | ||
1347 | test_udev_LDADD = \ | |
1348 | $(udev_common_LDADD) | |
1349 | ||
1350 | test_udev_CPPFLAGS = \ | |
1351 | $(udev_common_CPPFLAGS) | |
1352 | ||
1353 | test_udev_DEPENDENCIES = \ | |
1354 | src/udev/test/sys | |
1355 | ||
1356 | # packed sysfs test tree | |
1357 | src/udev/test/sys: | |
1358 | $(AM_V_GEN)mkdir -p src/udev/test && tar -C src/udev/test/ -xJf $(top_srcdir)/src/udev/test/sys.tar.xz | |
1359 | ||
1360 | test-sys-distclean: | |
1361 | -rm -rf src/udev/test/sys | |
1362 | DISTCLEAN_LOCAL_HOOKS += test-sys-distclean | |
1363 | ||
1364 | EXTRA_DIST += \ | |
1365 | src/udev/test/sys.tar.xz \ | |
1366 | $(TESTS) \ | |
1367 | src/udev/test/rule-syntax-check.py | |
1368 | ||
1369 | # ------------------------------------------------------------------------------ | |
1370 | ata_id_SOURCES = \ | |
1371 | src/udev/ata_id/ata_id.c | |
1372 | ||
1373 | ata_id_LDADD = \ | |
1374 | libudev-private.la | |
1375 | ||
1376 | udevlibexec_PROGRAMS += \ | |
1377 | ata_id | |
1378 | ||
1379 | # ------------------------------------------------------------------------------ | |
1380 | cdrom_id_SOURCES = \ | |
1381 | src/udev/cdrom_id/cdrom_id.c | |
1382 | ||
1383 | cdrom_id_LDADD = \ | |
1384 | libudev-private.la | |
1385 | ||
1386 | udevlibexec_PROGRAMS += \ | |
1387 | cdrom_id | |
1388 | ||
1389 | dist_udevrules_DATA += \ | |
1390 | src/udev/cdrom_id/60-cdrom_id.rules | |
1391 | ||
1392 | # ------------------------------------------------------------------------------ | |
1393 | collect_SOURCES = \ | |
1394 | src/udev/collect/collect.c | |
1395 | ||
1396 | collect_LDADD = \ | |
1397 | libudev-private.la | |
1398 | ||
1399 | udevlibexec_PROGRAMS += \ | |
1400 | collect | |
1401 | ||
1402 | # ------------------------------------------------------------------------------ | |
1403 | scsi_id_SOURCES =\ | |
1404 | src/udev/scsi_id/scsi_id.c \ | |
1405 | src/udev/scsi_id/scsi_serial.c \ | |
1406 | src/udev/scsi_id/scsi.h \ | |
1407 | src/udev/scsi_id/scsi_id.h | |
1408 | ||
1409 | scsi_id_LDADD = \ | |
1410 | libudev-private.la | |
1411 | ||
1412 | udevlibexec_PROGRAMS += \ | |
1413 | scsi_id | |
1414 | ||
1415 | EXTRA_DIST += \ | |
1416 | src/udev/scsi_id/README | |
1417 | ||
1418 | # ------------------------------------------------------------------------------ | |
1419 | v4l_id_SOURCES = \ | |
1420 | src/udev/v4l_id/v4l_id.c | |
1421 | ||
1422 | v4l_id_LDADD = \ | |
1423 | libudev-private.la | |
1424 | ||
1425 | udevlibexec_PROGRAMS += \ | |
1426 | v4l_id | |
1427 | ||
1428 | dist_udevrules_DATA += \ | |
1429 | src/udev/v4l_id/60-persistent-v4l.rules | |
1430 | ||
1431 | # ------------------------------------------------------------------------------ | |
1432 | accelerometer_SOURCES = \ | |
1433 | src/udev/accelerometer/accelerometer.c | |
1434 | ||
1435 | accelerometer_LDADD = \ | |
1436 | libudev-private.la -lm | |
1437 | ||
1438 | udevlibexec_PROGRAMS += \ | |
1439 | accelerometer | |
1440 | ||
1441 | dist_udevrules_DATA += \ | |
1442 | src/udev/accelerometer/61-accelerometer.rules | |
1443 | ||
1444 | # ------------------------------------------------------------------------------ | |
1445 | if ENABLE_GUDEV | |
1446 | SUBDIRS += \ | |
1447 | src/udev/gudev/docs | |
1448 | ||
1449 | libgudev_includedir = \ | |
1450 | $(includedir)/gudev-1.0/gudev | |
1451 | ||
1452 | libgudev_include_HEADERS = \ | |
1453 | src/udev/gudev/gudev.h \ | |
1454 | src/udev/gudev/gudevenums.h \ | |
1455 | src/udev/gudev/gudevenumtypes.h \ | |
1456 | src/udev/gudev/gudevtypes.h \ | |
1457 | src/udev/gudev/gudevclient.h \ | |
1458 | src/udev/gudev/gudevdevice.h \ | |
1459 | src/udev/gudev/gudevenumerator.h | |
1460 | ||
1461 | lib_LTLIBRARIES += libgudev-1.0.la | |
1462 | ||
1463 | pkgconfiglib_DATA += \ | |
1464 | src/udev/gudev/gudev-1.0.pc | |
1465 | ||
1466 | EXTRA_DIST += \ | |
1467 | src/udev/gudev/gudev-1.0.pc.in | |
1468 | ||
1469 | CLEANFILES += \ | |
1470 | src/udev/gudev/gudev-1.0.pc | |
1471 | ||
1472 | libgudev_1_0_la_SOURCES = \ | |
1473 | src/udev/gudev/gudevenums.h \ | |
1474 | src/udev/gudev/gudevenumtypes.h \ | |
1475 | src/udev/gudev/gudevenumtypes.h\ | |
1476 | src/udev/gudev/gudevtypes.h \ | |
1477 | src/udev/gudev/gudevclient.h \ | |
1478 | src/udev/gudev/gudevclient.c \ | |
1479 | src/udev/gudev/gudevdevice.h \ | |
1480 | src/udev/gudev/gudevdevice.c \ | |
1481 | src/udev/gudev/gudevenumerator.h \ | |
1482 | src/udev/gudev/gudevenumerator.c \ | |
1483 | src/udev/gudev/gudevprivate.h | |
1484 | ||
1485 | nodist_libgudev_1_0_la_SOURCES = \ | |
1486 | src/udev/gudev/gudevmarshal.h \ | |
1487 | src/udev/gudev/gudevmarshal.c \ | |
1488 | src/udev/gudev/gudevenumtypes.h \ | |
1489 | src/udev/gudev/gudevenumtypes.c | |
1490 | ||
1491 | BUILT_SOURCES += \ | |
1492 | $(nodist_libgudev_1_0_la_SOURCES) | |
1493 | ||
1494 | libgudev_1_0_la_CPPFLAGS = \ | |
1495 | $(AM_CPPFLAGS) \ | |
1496 | -I$(top_builddir)/src\ | |
1497 | -I$(top_srcdir)/src\ | |
1498 | -I$(top_builddir)/src/udev/gudev \ | |
1499 | -I$(top_srcdir)/src/udev/gudev \ | |
1500 | -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \ | |
1501 | -D_GUDEV_COMPILATION \ | |
1502 | -DG_LOG_DOMAIN=\"GUdev\" | |
1503 | ||
1504 | libgudev_1_0_la_CFLAGS = \ | |
1505 | -fvisibility=default \ | |
1506 | $(GLIB_CFLAGS) | |
1507 | ||
1508 | libgudev_1_0_la_LIBADD = \ | |
1509 | libudev.la \ | |
1510 | $(GLIB_LIBS) | |
1511 | ||
1512 | libgudev_1_0_la_LDFLAGS = \ | |
1513 | -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \ | |
1514 | -export-dynamic -no-undefined \ | |
1515 | -export-symbols-regex '^g_udev_.*' | |
1516 | ||
1517 | EXTRA_DIST += \ | |
1518 | src/udev/gudev/gudevmarshal.list \ | |
1519 | src/udev/gudev/gudevenumtypes.h.template \ | |
1520 | src/udev/gudev/gudevenumtypes.c.template \ | |
1521 | src/udev/gudev/gjs-example.js \ | |
1522 | src/udev/gudev/seed-example-enum.js \ | |
1523 | src/udev/gudev/seed-example.js | |
1524 | ||
1525 | CLEANFILES += \ | |
1526 | $(nodist_libgudev_1_0_la_SOURCES) | |
1527 | ||
1528 | src/udev/gudev/gudevmarshal.h: src/udev/gudev/gudevmarshal.list | |
1529 | $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@ | |
1530 | ||
1531 | src/udev/gudev/gudevmarshal.c: src/udev/gudev/gudevmarshal.list | |
1532 | $(AM_V_GEN)echo "#include \"gudevmarshal.h\"" > $@ && \ | |
1533 | glib-genmarshal $< --prefix=g_udev_marshal --body >> $@ | |
1534 | ||
1535 | src/udev/gudev/gudevenumtypes.h: src/udev/gudev/gudevenumtypes.h.template src/udev/gudev/gudevenums.h | |
1536 | $(AM_V_GEN)glib-mkenums --template $^ > \ | |
1537 | $@.tmp && mv $@.tmp $@ | |
1538 | ||
1539 | src/udev/gudev/gudevenumtypes.c: src/udev/gudev/gudevenumtypes.c.template src/udev/gudev/gudevenums.h | |
1540 | $(AM_V_GEN)glib-mkenums --template $^ > \ | |
1541 | $@.tmp && mv $@.tmp $@ | |
1542 | ||
1543 | if ENABLE_INTROSPECTION | |
1544 | src/udev/gudev/GUdev-1.0.gir: libgudev-1.0.la $(G_IR_SCANNER) | |
1545 | $(AM_V_GEN)$(G_IR_SCANNER) -v \ | |
1546 | --warn-all \ | |
1547 | --namespace GUdev \ | |
1548 | --nsversion=1.0 \ | |
1549 | --include=GObject-2.0 \ | |
1550 | --library=gudev-1.0 \ | |
1551 | --library-path=$(top_builddir)/src/udev \ | |
1552 | --library-path=$(top_builddir)/src/udev/gudev \ | |
1553 | --output $@ \ | |
1554 | --pkg=glib-2.0 \ | |
1555 | --pkg=gobject-2.0 \ | |
1556 | --pkg-export=gudev-1.0 \ | |
1557 | --c-include=gudev/gudev.h \ | |
1558 | -I$(top_srcdir)/src/udev \ | |
1559 | -I$(top_builddir)/src/udev \ | |
1560 | -D_GUDEV_COMPILATION \ | |
1561 | -D_GUDEV_WORK_AROUND_DEV_T_BUG \ | |
1562 | $(top_srcdir)/src/udev/gudev/gudev.h \ | |
1563 | $(top_srcdir)/src/udev/gudev/gudevtypes.h \ | |
1564 | $(top_srcdir)/src/udev/gudev/gudevenums.h \ | |
1565 | $(or $(wildcard $(top_builddir)/src/udev/gudev/gudevenumtypes.h),$(top_srcdir)/src/udev/gudev/gudevenumtypes.h) \ | |
1566 | $(top_srcdir)/src/udev/gudev/gudevclient.h \ | |
1567 | $(top_srcdir)/src/udev/gudev/gudevdevice.h \ | |
1568 | $(top_srcdir)/src/udev/gudev/gudevenumerator.h \ | |
1569 | $(top_srcdir)/src/udev/gudev/gudevclient.c \ | |
1570 | $(top_srcdir)/src/udev/gudev/gudevdevice.c \ | |
1571 | $(top_srcdir)/src/udev/gudev/gudevenumerator.c | |
1572 | ||
1573 | src/udev/gudev/GUdev-1.0.typelib: src/udev/gudev/GUdev-1.0.gir $(G_IR_COMPILER) | |
1574 | $(AM_V_GEN)g-ir-compiler $< -o $@ | |
1575 | ||
1576 | girdir = $(GIRDIR) | |
1577 | gir_DATA = \ | |
1578 | src/udev/gudev/GUdev-1.0.gir | |
1579 | ||
1580 | typelibsdir = $(GIRTYPELIBDIR) | |
1581 | typelibs_DATA = \ | |
1582 | src/udev/gudev/GUdev-1.0.typelib | |
1583 | ||
1584 | CLEANFILES += $(gir_DATA) $(typelibs_DATA) | |
1585 | endif # ENABLE_INTROSPECTION | |
1586 | ||
1587 | # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed | |
1588 | libgudev-install-move-hook: | |
1589 | if test "$(libdir)" != "$(rootlibdir)"; then \ | |
1590 | mkdir -p $(DESTDIR)$(rootlibdir) && \ | |
1591 | so_img_name=$$(readlink $(DESTDIR)$(libdir)/libgudev-1.0.so) && \ | |
1592 | so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \ | |
1593 | ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libgudev-1.0.so && \ | |
1594 | mv $(DESTDIR)$(libdir)/libgudev-1.0.so.* $(DESTDIR)$(rootlibdir); \ | |
1595 | fi | |
1596 | ||
1597 | libgudev-uninstall-move-hook: | |
1598 | rm -f $(DESTDIR)$(rootlibdir)/libgudev-1.0.so* | |
1599 | ||
1600 | INSTALL_EXEC_HOOKS += libgudev-install-move-hook | |
1601 | UNINSTALL_EXEC_HOOKS += libgudev-uninstall-move-hook | |
1602 | endif | |
1603 | ||
1604 | # ------------------------------------------------------------------------------ | |
1605 | if ENABLE_KEYMAP | |
1606 | keymap_SOURCES = \ | |
1607 | src/udev/keymap/keymap.c | |
1608 | ||
1609 | keymap_CPPFLAGS = \ | |
1610 | $(AM_CPPFLAGS) -I src/udev/keymap | |
1611 | ||
1612 | nodist_keymap_SOURCES = \ | |
1613 | src/udev/keymap/keys-from-name.h \ | |
1614 | src/udev/keymap/keys-to-name.h | |
1615 | ||
1616 | BUILT_SOURCES += \ | |
1617 | $(nodist_keymap_SOURCES) | |
1618 | ||
1619 | udevlibexec_PROGRAMS += \ | |
1620 | keymap | |
1621 | ||
1622 | dist_doc_DATA += \ | |
1623 | src/udev/keymap/README.keymap.txt | |
1624 | ||
1625 | dist_udevrules_DATA += \ | |
1626 | src/udev/keymap/95-keymap.rules \ | |
1627 | src/udev/keymap/95-keyboard-force-release.rules | |
1628 | ||
8ece4cab | 1629 | dist_udevhome_SCRIPTS = \ |
3e214785 KS |
1630 | src/udev/keymap/findkeyboards |
1631 | ||
8ece4cab | 1632 | udevhome_SCRIPTS = \ |
3e214785 KS |
1633 | src/udev/keymap/keyboard-force-release.sh |
1634 | ||
1635 | EXTRA_DIST += \ | |
1636 | src/udev/keymap/check-keymaps.sh \ | |
1637 | src/udev/keymap/keyboard-force-release.sh.in | |
1638 | ||
1639 | CLEANFILES += \ | |
1640 | $(nodist_keymap_SOURCES) \ | |
1641 | src/udev/keymap/keys.txt \ | |
1642 | src/udev/keymap/keys-from-name.gperf \ | |
1643 | src/udev/keymap/keyboard-force-release.sh | |
1644 | ||
1645 | udevkeymapdir = $(libexecdir)/udev/keymaps | |
1646 | dist_udevkeymap_DATA = \ | |
1647 | src/udev/keymap/keymaps/acer \ | |
1648 | src/udev/keymap/keymaps/acer-aspire_5720 \ | |
1649 | src/udev/keymap/keymaps/acer-aspire_8930 \ | |
1650 | src/udev/keymap/keymaps/acer-aspire_5920g \ | |
1651 | src/udev/keymap/keymaps/acer-aspire_6920 \ | |
1652 | src/udev/keymap/keymaps/acer-travelmate_c300 \ | |
1653 | src/udev/keymap/keymaps/asus \ | |
1654 | src/udev/keymap/keymaps/compaq-e_evo \ | |
1655 | src/udev/keymap/keymaps/dell \ | |
1656 | src/udev/keymap/keymaps/dell-latitude-xt2 \ | |
1657 | src/udev/keymap/keymaps/everex-xt5000 \ | |
1658 | src/udev/keymap/keymaps/fujitsu-amilo_li_2732 \ | |
1659 | src/udev/keymap/keymaps/fujitsu-amilo_pa_2548 \ | |
1660 | src/udev/keymap/keymaps/fujitsu-amilo_pro_edition_v3505 \ | |
1661 | src/udev/keymap/keymaps/fujitsu-amilo_pro_v3205 \ | |
1662 | src/udev/keymap/keymaps/fujitsu-amilo_si_1520 \ | |
1663 | src/udev/keymap/keymaps/fujitsu-esprimo_mobile_v5 \ | |
1664 | src/udev/keymap/keymaps/fujitsu-esprimo_mobile_v6 \ | |
1665 | src/udev/keymap/keymaps/genius-slimstar-320 \ | |
1666 | src/udev/keymap/keymaps/hewlett-packard \ | |
1667 | src/udev/keymap/keymaps/hewlett-packard-2510p_2530p \ | |
1668 | src/udev/keymap/keymaps/hewlett-packard-compaq_elitebook \ | |
1669 | src/udev/keymap/keymaps/hewlett-packard-pavilion \ | |
1670 | src/udev/keymap/keymaps/hewlett-packard-presario-2100 \ | |
1671 | src/udev/keymap/keymaps/hewlett-packard-tablet \ | |
1672 | src/udev/keymap/keymaps/hewlett-packard-tx2 \ | |
1673 | src/udev/keymap/keymaps/ibm-thinkpad-usb-keyboard-trackpoint \ | |
1674 | src/udev/keymap/keymaps/inventec-symphony_6.0_7.0 \ | |
1675 | src/udev/keymap/keymaps/lenovo-3000 \ | |
1676 | src/udev/keymap/keymaps/lenovo-ideapad \ | |
1677 | src/udev/keymap/keymaps/lenovo-thinkpad-usb-keyboard-trackpoint \ | |
1678 | src/udev/keymap/keymaps/lenovo-thinkpad_x6_tablet \ | |
1679 | src/udev/keymap/keymaps/lenovo-thinkpad_x200_tablet \ | |
1680 | src/udev/keymap/keymaps/lg-x110 \ | |
1681 | src/udev/keymap/keymaps/logitech-wave \ | |
1682 | src/udev/keymap/keymaps/logitech-wave-cordless \ | |
1683 | src/udev/keymap/keymaps/logitech-wave-pro-cordless \ | |
1684 | src/udev/keymap/keymaps/maxdata-pro_7000 \ | |
1685 | src/udev/keymap/keymaps/medion-fid2060 \ | |
1686 | src/udev/keymap/keymaps/medionnb-a555 \ | |
1687 | src/udev/keymap/keymaps/micro-star \ | |
1688 | src/udev/keymap/keymaps/module-asus-w3j \ | |
1689 | src/udev/keymap/keymaps/module-ibm \ | |
1690 | src/udev/keymap/keymaps/module-lenovo \ | |
1691 | src/udev/keymap/keymaps/module-sony \ | |
1692 | src/udev/keymap/keymaps/module-sony-old \ | |
1693 | src/udev/keymap/keymaps/module-sony-vgn \ | |
1694 | src/udev/keymap/keymaps/olpc-xo \ | |
1695 | src/udev/keymap/keymaps/onkyo \ | |
1696 | src/udev/keymap/keymaps/oqo-model2 \ | |
1697 | src/udev/keymap/keymaps/samsung-other \ | |
1698 | src/udev/keymap/keymaps/samsung-90x3a \ | |
1699 | src/udev/keymap/keymaps/samsung-sq1us \ | |
1700 | src/udev/keymap/keymaps/samsung-sx20s \ | |
1701 | src/udev/keymap/keymaps/toshiba-satellite_a100 \ | |
1702 | src/udev/keymap/keymaps/toshiba-satellite_a110 \ | |
1703 | src/udev/keymap/keymaps/toshiba-satellite_m30x \ | |
1704 | src/udev/keymap/keymaps/zepto-znote | |
1705 | ||
1706 | udevkeymapforcereldir = $(libexecdir)/udev/keymaps/force-release | |
1707 | dist_udevkeymapforcerel_DATA = \ | |
1708 | src/udev/keymap/force-release-maps/dell-touchpad \ | |
1709 | src/udev/keymap/force-release-maps/hp-other \ | |
1710 | src/udev/keymap/force-release-maps/samsung-other \ | |
1711 | src/udev/keymap/force-release-maps/samsung-90x3a \ | |
1712 | src/udev/keymap/force-release-maps/common-volume-keys | |
1713 | ||
1714 | src/udev/keymap/keys.txt: $(INCLUDE_PREFIX)/linux/input.h | |
1715 | $(AM_V_at)mkdir -p src/keymap | |
1716 | $(AM_V_GEN)$(AWK) '/^#define.*KEY_[^ ]+[ \t]+[0-9]/ { if ($$2 != "KEY_MAX") { print $$2 } }' < $< | sed 's/^KEY_COFFEE$$/KEY_SCREENLOCK/' > $@ | |
1717 | ||
1718 | src/udev/keymap/keys-from-name.gperf: src/udev/keymap/keys.txt | |
1719 | $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print $$1 ", " $$1 }' < $< > $@ | |
1720 | ||
1721 | src/udev/keymap/keys-from-name.h: src/udev/keymap/keys-from-name.gperf Makefile | |
1722 | $(AM_V_GEN)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_key -H hash_key_name -p -C < $< > $@ | |
1723 | ||
1724 | src/udev/keymap/keys-to-name.h: src/udev/keymap/keys.txt Makefile | |
1725 | $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@ | |
1726 | ||
1727 | keymaps-distcheck-hook: src/udev/keymap/keys.txt | |
1728 | $(top_srcdir)/src/udev/keymap/check-keymaps.sh $(top_srcdir) $^ | |
1729 | DISTCHECK_HOOKS += keymaps-distcheck-hook | |
1730 | endif | |
1731 | ||
1732 | # ------------------------------------------------------------------------------ | |
1733 | mtd_probe_SOURCES = \ | |
1734 | src/udev/mtd_probe/mtd_probe.c \ | |
1735 | src/udev/mtd_probe/mtd_probe.h \ | |
1736 | src/udev/mtd_probe/probe_smartmedia.c | |
1737 | ||
1738 | mtd_probe_CPPFLAGS = \ | |
1739 | $(AM_CPPFLAGS) | |
1740 | ||
1741 | dist_udevrules_DATA += \ | |
1742 | src/udev/mtd_probe/75-probe_mtd.rules | |
1743 | ||
1744 | udevlibexec_PROGRAMS += \ | |
1745 | mtd_probe | |
1746 | ||
48d437bb KS |
1747 | # ------------------------------------------------------------------------------ |
1748 | libsystemd_id128_la_SOURCES = \ | |
1749 | src/sd-id128.c | |
1750 | ||
1751 | libsystemd_id128_la_CFLAGS = \ | |
2a018e83 KS |
1752 | $(AM_CFLAGS) \ |
1753 | -fvisibility=hidden | |
1754 | ||
48d437bb | 1755 | libsystemd_id128_la_LDFLAGS = \ |
2a018e83 | 1756 | -shared \ |
48d437bb KS |
1757 | -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \ |
1758 | -Wl,--version-script=$(top_srcdir)/src/libsystemd-id128.sym | |
2a018e83 | 1759 | |
48d437bb | 1760 | libsystemd_id128_la_LIBADD = \ |
2a018e83 KS |
1761 | libsystemd-basic.la |
1762 | ||
48d437bb KS |
1763 | test_id128_SOURCES = \ |
1764 | src/test-id128.c \ | |
1765 | src/sd-id128.c | |
051c7d1e | 1766 | |
48d437bb KS |
1767 | test_id128_LDADD = \ |
1768 | libsystemd-basic.la | |
051c7d1e | 1769 | |
48d437bb KS |
1770 | noinst_PROGRAMS += \ |
1771 | test-id128 | |
051c7d1e | 1772 | |
48d437bb | 1773 | pkginclude_HEADERS += \ |
81527be1 | 1774 | src/systemd/sd-id128.h |
48d437bb KS |
1775 | |
1776 | lib_LTLIBRARIES += \ | |
1777 | libsystemd-id128.la | |
1778 | ||
1779 | pkgconfiglib_DATA += \ | |
dd338f01 | 1780 | src/libsystemd-id128.pc |
051c7d1e | 1781 | |
2a018e83 | 1782 | # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed |
48d437bb | 1783 | libsystemd-id128-install-hook: |
2a018e83 KS |
1784 | if test "$(libdir)" != "$(rootlibdir)"; then \ |
1785 | mkdir -p $(DESTDIR)$(rootlibdir) && \ | |
48d437bb | 1786 | so_img_name=$$(readlink $(DESTDIR)$(libdir)/libsystemd-id128.so) && \ |
2a018e83 | 1787 | so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \ |
48d437bb KS |
1788 | ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libsystemd-id128.so && \ |
1789 | mv $(DESTDIR)$(libdir)/libsystemd-id128.so.* $(DESTDIR)$(rootlibdir); \ | |
2a018e83 KS |
1790 | fi |
1791 | ||
1792 | INSTALL_EXEC_HOOKS += \ | |
48d437bb | 1793 | libsystemd-id128-install-hook |
2a018e83 | 1794 | |
48d437bb KS |
1795 | libsystemd-id128-uninstall-hook: |
1796 | rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so* | |
2a018e83 KS |
1797 | |
1798 | UNINSTALL_EXEC_HOOKS += \ | |
48d437bb | 1799 | libsystemd-id128-uninstall-hook |
2a018e83 | 1800 | |
48d437bb | 1801 | EXTRA_DIST += \ |
dd338f01 | 1802 | src/libsystemd-id128.pc.in \ |
48d437bb | 1803 | src/libsystemd-id128.sym |
2a018e83 | 1804 | |
48d437bb KS |
1805 | # ------------------------------------------------------------------------------ |
1806 | systemd_journald_SOURCES = \ | |
1807 | src/journal/journald.c \ | |
1808 | src/journal/sd-journal.c \ | |
1809 | src/journal/journal-file.c \ | |
1810 | src/journal/lookup3.c \ | |
1811 | src/journal/journal-rate-limit.c \ | |
8ece4cab | 1812 | src/journal/sparse-endian.h \ |
48d437bb | 1813 | src/sd-id128.c \ |
48d437bb | 1814 | src/cgroup-util.c |
2a018e83 | 1815 | |
e6520a0f LP |
1816 | if HAVE_ACL |
1817 | systemd_journald_SOURCES += \ | |
1818 | src/acl-util.c | |
1819 | endif | |
1820 | ||
e6960940 | 1821 | nodist_systemd_journald_SOURCES = \ |
8b9b4d6c | 1822 | src/journal/journald-gperf.c |
e6960940 | 1823 | |
48d437bb KS |
1824 | systemd_journald_CFLAGS = \ |
1825 | $(AM_CFLAGS) \ | |
1826 | $(ACL_CFLAGS) | |
2a018e83 | 1827 | |
48d437bb KS |
1828 | systemd_journald_LDADD = \ |
1829 | libsystemd-basic.la \ | |
1830 | libsystemd-daemon.la \ | |
52f4f45b | 1831 | libsystemd-login.la \ |
48d437bb | 1832 | $(ACL_LIBS) |
2a018e83 | 1833 | |
48d437bb KS |
1834 | if HAVE_XZ |
1835 | systemd_journald_SOURCES += \ | |
1836 | src/journal/compress.c | |
1837 | systemd_journald_CFLAGS += \ | |
1838 | $(XZ_CFLAGS) | |
1839 | systemd_journald_LDADD += \ | |
1840 | $(XZ_LIBS) | |
1841 | endif | |
2a018e83 | 1842 | |
755a02c6 | 1843 | systemd_cat_SOURCES = \ |
6185ac1e | 1844 | src/journal/cat.c |
755a02c6 LP |
1845 | |
1846 | systemd_cat_LDADD = \ | |
1847 | libsystemd-basic.la \ | |
1848 | libsystemd-journal.la | |
1849 | ||
169c4f65 | 1850 | journalctl_SOURCES = \ |
48d437bb | 1851 | src/journal/journalctl.c \ |
86aa7ba4 | 1852 | src/pager.c \ |
8b9b4d6c | 1853 | src/logs-show.c |
2a018e83 | 1854 | |
169c4f65 | 1855 | journalctl_LDADD = \ |
86aa7ba4 | 1856 | libsystemd-basic.la \ |
118ca596 MB |
1857 | libsystemd-journal.la \ |
1858 | libsystemd-id128.la | |
2a018e83 | 1859 | |
48d437bb | 1860 | if HAVE_XZ |
169c4f65 | 1861 | journalctl_SOURCES += \ |
48d437bb | 1862 | src/journal/compress.c |
169c4f65 | 1863 | journalctl_CFLAGS = \ |
8b9b4d6c | 1864 | $(AM_CFLAGS) \ |
48d437bb | 1865 | $(XZ_CFLAGS) |
169c4f65 | 1866 | journalctl_LDADD += \ |
48d437bb KS |
1867 | $(XZ_LIBS) |
1868 | endif | |
2a018e83 | 1869 | |
48d437bb KS |
1870 | test_journal_SOURCES = \ |
1871 | src/journal/test-journal.c \ | |
1872 | src/journal/sd-journal.c \ | |
1873 | src/journal/journal-file.c \ | |
1874 | src/journal/lookup3.c \ | |
1875 | src/journal/journal-send.c \ | |
1876 | src/sd-id128.c | |
2a018e83 | 1877 | |
48d437bb KS |
1878 | test_journal_LDADD = \ |
1879 | libsystemd-basic.la | |
2fb1aeda | 1880 | |
48d437bb KS |
1881 | if HAVE_XZ |
1882 | test_journal_SOURCES += \ | |
1883 | src/journal/compress.c | |
1884 | ||
1885 | test_journal_CFLAGS = \ | |
8b9b4d6c | 1886 | $(AM_CFLAGS) \ |
48d437bb KS |
1887 | $(XZ_CFLAGS) |
1888 | ||
1889 | test_journal_LDADD += \ | |
1890 | $(XZ_LIBS) | |
2fb1aeda | 1891 | endif |
5eda94dd | 1892 | |
b070e7f3 LP |
1893 | test_journal_send_SOURCES = \ |
1894 | src/journal/test-journal-send.c | |
1895 | ||
1896 | test_journal_send_LDADD = \ | |
1897 | libsystemd-basic.la \ | |
1898 | libsystemd-journal.la | |
1899 | ||
48d437bb KS |
1900 | libsystemd_journal_la_SOURCES = \ |
1901 | src/journal/sd-journal.c \ | |
1902 | src/journal/journal-file.c \ | |
48d437bb KS |
1903 | src/journal/lookup3.c \ |
1904 | src/journal/journal-send.c | |
1905 | ||
1906 | libsystemd_journal_la_CFLAGS = \ | |
5eda94dd | 1907 | $(AM_CFLAGS) \ |
48d437bb | 1908 | -fvisibility=hidden |
5eda94dd | 1909 | |
48d437bb KS |
1910 | libsystemd_journal_la_LDFLAGS = \ |
1911 | -shared \ | |
1912 | -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \ | |
1913 | -Wl,--version-script=$(top_srcdir)/src/journal/libsystemd-journal.sym | |
1914 | ||
1915 | libsystemd_journal_la_LIBADD = \ | |
5eda94dd | 1916 | libsystemd-basic.la \ |
96d1efba LP |
1917 | libsystemd-id128.la |
1918 | ||
1919 | if HAVE_XZ | |
1920 | libsystemd_journal_la_SOURCES += \ | |
1921 | src/journal/compress.c | |
1922 | ||
1923 | libsystemd_journal_la_CFLAGS += \ | |
1924 | $(XZ_CFLAGS) | |
1925 | ||
1926 | libsystemd_journal_la_LIBADD += \ | |
48d437bb | 1927 | $(XZ_LIBS) |
96d1efba | 1928 | endif |
20263082 | 1929 | |
48d437bb KS |
1930 | # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed |
1931 | libsystemd-journal-install-hook: | |
1932 | if test "$(libdir)" != "$(rootlibdir)"; then \ | |
1933 | mkdir -p $(DESTDIR)$(rootlibdir) && \ | |
1934 | so_img_name=$$(readlink $(DESTDIR)$(libdir)/libsystemd-journal.so) && \ | |
1935 | so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \ | |
1936 | ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libsystemd-journal.so && \ | |
1937 | mv $(DESTDIR)$(libdir)/libsystemd-journal.so.* $(DESTDIR)$(rootlibdir); \ | |
1938 | fi | |
2a018e83 | 1939 | |
48d437bb KS |
1940 | INSTALL_EXEC_HOOKS += \ |
1941 | libsystemd-journal-install-hook | |
2a018e83 | 1942 | |
48d437bb KS |
1943 | libsystemd-journal-uninstall-hook: |
1944 | rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so* | |
2a018e83 | 1945 | |
48d437bb KS |
1946 | UNINSTALL_EXEC_HOOKS += \ |
1947 | libsystemd-journal-uninstall-hook | |
2a018e83 | 1948 | |
48d437bb | 1949 | noinst_PROGRAMS += \ |
b070e7f3 LP |
1950 | test-journal \ |
1951 | test-journal-send | |
2a018e83 | 1952 | |
48d437bb | 1953 | pkginclude_HEADERS += \ |
81527be1 | 1954 | src/systemd/sd-journal.h \ |
6185ac1e | 1955 | src/systemd/sd-messages.h |
2a018e83 | 1956 | |
48d437bb KS |
1957 | lib_LTLIBRARIES += \ |
1958 | libsystemd-journal.la | |
2a018e83 | 1959 | |
48d437bb KS |
1960 | rootlibexec_PROGRAMS += \ |
1961 | systemd-journald | |
b1b2a107 | 1962 | |
48d437bb | 1963 | rootbin_PROGRAMS += \ |
169c4f65 | 1964 | journalctl |
b1b2a107 | 1965 | |
755a02c6 | 1966 | bin_PROGRAMS += \ |
6185ac1e | 1967 | systemd-cat |
755a02c6 | 1968 | |
48d437bb KS |
1969 | dist_systemunit_DATA += \ |
1970 | units/systemd-journald.socket | |
b1b2a107 | 1971 | |
48d437bb KS |
1972 | nodist_systemunit_DATA += \ |
1973 | units/systemd-journald.service | |
b2423f1f | 1974 | |
e6960940 | 1975 | dist_pkgsysconf_DATA += \ |
18b754d3 | 1976 | src/journal/journald.conf |
e6960940 | 1977 | |
48d437bb KS |
1978 | pkgconfiglib_DATA += \ |
1979 | src/journal/libsystemd-journal.pc | |
b2423f1f | 1980 | |
48d437bb | 1981 | journal-install-data-hook: |
3606df64 | 1982 | $(MKDIR_P) -m 0755 \ |
a6723bc9 LP |
1983 | $(DESTDIR)$(systemunitdir)/sockets.target.wants \ |
1984 | $(DESTDIR)$(systemunitdir)/sysinit.target.wants | |
48d437bb KS |
1985 | ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \ |
1986 | rm -f systemd-journald.socket && \ | |
1987 | $(LN_S) ../systemd-journald.socket ) | |
a6723bc9 LP |
1988 | ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \ |
1989 | rm -f systemd-journald.service && \ | |
1990 | $(LN_S) ../systemd-journald.service ) | |
5008d581 | 1991 | |
48d437bb KS |
1992 | INSTALL_DATA_HOOKS += \ |
1993 | journal-install-data-hook | |
5008d581 | 1994 | |
48d437bb | 1995 | EXTRA_DIST += \ |
8b9b4d6c | 1996 | src/journal/journald.h \ |
48d437bb KS |
1997 | src/journal/journal-def.h \ |
1998 | src/journal/journal-internal.h \ | |
1999 | src/journal/journal-file.h \ | |
2000 | src/journal/lookup3.h \ | |
2001 | src/journal/compress.h \ | |
2002 | src/journal/journal-rate-limit.h \ | |
2003 | src/journal/libsystemd-journal.pc.in \ | |
2004 | src/journal/libsystemd-journal.sym \ | |
e6960940 | 2005 | units/systemd-journald.service.in \ |
8b9b4d6c | 2006 | src/journal/journald-gperf.gperf |
e6960940 LP |
2007 | |
2008 | CLEANFILES += \ | |
8b9b4d6c | 2009 | src/journal/journald-gperf.c |
5008d581 | 2010 | |
6185ac1e | 2011 | # ------------------------------------------------------------------------------ |
f5e04665 | 2012 | if ENABLE_COREDUMP |
f5e04665 | 2013 | systemd_coredump_SOURCES = \ |
6185ac1e | 2014 | src/journal/coredump.c |
f5e04665 LP |
2015 | |
2016 | systemd_coredump_LDADD = \ | |
2017 | libsystemd-basic.la \ | |
2018 | libsystemd-journal.la \ | |
2019 | libsystemd-login.la | |
2020 | ||
2021 | rootlibexec_PROGRAMS += \ | |
6185ac1e | 2022 | systemd-coredump |
f5e04665 LP |
2023 | |
2024 | sysctl_DATA = \ | |
6185ac1e | 2025 | sysctl.d/coredump.conf |
f5e04665 LP |
2026 | |
2027 | EXTRA_DIST += \ | |
6185ac1e | 2028 | sysctl.d/coredump.conf.in |
f5e04665 | 2029 | |
6185ac1e KS |
2030 | CLEANFILES += \ |
2031 | sysctl.d/coredump.conf | |
f5e04665 LP |
2032 | endif |
2033 | ||
48d437bb KS |
2034 | # ------------------------------------------------------------------------------ |
2035 | if ENABLE_BINFMT | |
2036 | systemd_binfmt_SOURCES = \ | |
2037 | src/binfmt/binfmt.c | |
2038 | ||
2039 | systemd_binfmt_LDADD = \ | |
3d20ed6d LP |
2040 | libsystemd-basic.la |
2041 | ||
48d437bb KS |
2042 | rootlibexec_PROGRAMS += \ |
2043 | systemd-binfmt | |
d7ccca2e | 2044 | |
48d437bb KS |
2045 | dist_systemunit_DATA += \ |
2046 | units/proc-sys-fs-binfmt_misc.automount \ | |
2047 | units/proc-sys-fs-binfmt_misc.mount | |
d7ccca2e | 2048 | |
48d437bb KS |
2049 | nodist_systemunit_DATA += \ |
2050 | units/systemd-binfmt.service | |
d7ccca2e | 2051 | |
48d437bb KS |
2052 | binfmt-install-data-hook: |
2053 | $(MKDIR_P) -m 0755 \ | |
2054 | $(DESTDIR)$(prefix)/lib/binfmt.d \ | |
3606df64 MG |
2055 | $(DESTDIR)$(sysconfdir)/binfmt.d \ |
2056 | $(DESTDIR)$(systemunitdir)/sysinit.target.wants | |
48d437bb KS |
2057 | ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \ |
2058 | rm -f systemd-binfmt.service \ | |
2059 | proc-sys-fs-binfmt_misc.automount && \ | |
2060 | $(LN_S) ../systemd-binfmt.service systemd-binfmt.service && \ | |
2061 | $(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount ) | |
8e1bd70d | 2062 | |
48d437bb KS |
2063 | INSTALL_DATA_HOOKS += \ |
2064 | binfmt-install-data-hook | |
8e1bd70d | 2065 | |
48d437bb KS |
2066 | MANPAGES += \ |
2067 | man/binfmt.d.5 | |
8e1bd70d | 2068 | |
48d437bb KS |
2069 | EXTRA_DIST += \ |
2070 | units/systemd-binfmt.service.in | |
2071 | endif | |
3d20ed6d | 2072 | |
e5e83e83 LP |
2073 | # ------------------------------------------------------------------------------ |
2074 | if ENABLE_VCONSOLE | |
2075 | systemd_vconsole_setup_SOURCES = \ | |
2076 | src/vconsole/vconsole-setup.c | |
2077 | ||
2078 | systemd_vconsole_setup_LDADD = \ | |
2079 | libsystemd-basic.la | |
2080 | ||
2081 | rootlibexec_PROGRAMS += \ | |
2082 | systemd-vconsole-setup | |
2083 | ||
2084 | nodist_systemunit_DATA += \ | |
2085 | units/systemd-vconsole-setup.service | |
2086 | ||
2087 | vconsole-install-data-hook: | |
3606df64 MG |
2088 | $(MKDIR_P) -m 0755 \ |
2089 | $(DESTDIR)$(systemunitdir)/sysinit.target.wants | |
e5e83e83 LP |
2090 | ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \ |
2091 | rm -f systemd-vconsole-setup.service && \ | |
2092 | $(LN_S) ../systemd-vconsole-setup.service systemd-vconsole-setup.service ) | |
2093 | ||
2094 | INSTALL_DATA_HOOKS += \ | |
2095 | vconsole-install-data-hook | |
2096 | ||
2097 | MANPAGES += \ | |
2098 | man/vconsole.conf.5 | |
2099 | ||
2100 | EXTRA_DIST += \ | |
2101 | units/systemd-vconsole-setup.service.in | |
2102 | endif | |
2103 | ||
2104 | # ------------------------------------------------------------------------------ | |
2105 | if ENABLE_READAHEAD | |
2106 | systemd_readahead_collect_SOURCES = \ | |
2107 | src/readahead/readahead-collect.c \ | |
2108 | src/readahead/readahead-common.c | |
2109 | ||
2110 | systemd_readahead_collect_LDADD = \ | |
2111 | libsystemd-basic.la \ | |
2112 | libsystemd-daemon.la \ | |
3e214785 | 2113 | libudev.la |
e5e83e83 LP |
2114 | |
2115 | systemd_readahead_replay_SOURCES = \ | |
2116 | src/readahead/readahead-replay.c \ | |
2117 | src/readahead/readahead-common.c | |
2118 | ||
e5e83e83 LP |
2119 | systemd_readahead_replay_LDADD = \ |
2120 | libsystemd-basic.la \ | |
2121 | libsystemd-daemon.la \ | |
3e214785 | 2122 | libudev.la |
e5e83e83 LP |
2123 | |
2124 | rootlibexec_PROGRAMS += \ | |
2125 | systemd-readahead-collect \ | |
2126 | systemd-readahead-replay | |
2127 | ||
2128 | dist_systemunit_DATA += \ | |
2129 | units/systemd-readahead-done.timer | |
2130 | ||
2131 | nodist_systemunit_DATA += \ | |
2132 | units/systemd-readahead-collect.service \ | |
2133 | units/systemd-readahead-replay.service \ | |
2134 | units/systemd-readahead-done.service | |
2135 | ||
2136 | EXTRA_DIST += \ | |
81527be1 | 2137 | src/systemd/sd-readahead.h \ |
e5e83e83 LP |
2138 | src/readahead/readahead-common.h \ |
2139 | units/systemd-readahead-collect.service.in \ | |
2140 | units/systemd-readahead-replay.service.in \ | |
2141 | units/systemd-readahead-done.service.in | |
2142 | ||
e5e83e83 LP |
2143 | MANPAGES += \ |
2144 | man/sd_readahead.3 \ | |
2145 | man/sd-readahead.7 | |
2146 | endif | |
2147 | ||
4de85612 LP |
2148 | # ------------------------------------------------------------------------------ |
2149 | if ENABLE_QUOTACHECK | |
2150 | rootlibexec_PROGRAMS += \ | |
2151 | systemd-quotacheck | |
2152 | ||
2153 | nodist_systemunit_DATA += \ | |
2154 | units/quotacheck.service | |
2155 | ||
2156 | EXTRA_DIST += \ | |
2157 | units/quotacheck.service.in | |
2158 | ||
2159 | systemd_quotacheck_SOURCES = \ | |
2160 | src/quotacheck.c | |
2161 | ||
2162 | systemd_quotacheck_LDADD = \ | |
2163 | libsystemd-basic.la | |
2164 | endif | |
2165 | ||
2166 | # ------------------------------------------------------------------------------ | |
2167 | if ENABLE_RANDOMSEED | |
2168 | rootlibexec_PROGRAMS += \ | |
2169 | systemd-random-seed | |
2170 | ||
2171 | nodist_systemunit_DATA += \ | |
2172 | units/systemd-random-seed-save.service \ | |
2173 | units/systemd-random-seed-load.service | |
2174 | ||
2175 | EXTRA_DIST += \ | |
2176 | units/systemd-random-seed-save.service.in \ | |
2177 | units/systemd-random-seed-load.service.in | |
2178 | ||
2179 | systemd_random_seed_SOURCES = \ | |
2180 | src/random-seed.c | |
2181 | ||
2182 | systemd_random_seed_LDADD = \ | |
2183 | libsystemd-basic.la | |
2184 | ||
2185 | randomseed-install-data-hook: | |
3606df64 MG |
2186 | $(MKDIR_P) -m 0755 \ |
2187 | $(DESTDIR)$(systemunitdir)/shutdown.target.wants \ | |
2188 | $(DESTDIR)$(systemunitdir)/sysinit.target.wants | |
4de85612 LP |
2189 | ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \ |
2190 | rm -f systemd-random-seed-save.service && \ | |
2191 | $(LN_S) ../systemd-random-seed-save.service systemd-random-seed-save.service ) | |
2192 | ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \ | |
2193 | rm -f systemd-random-seed-load.service && \ | |
2194 | $(LN_S) ../systemd-random-seed-load.service systemd-random-seed-load.service ) | |
2195 | ||
2196 | INSTALL_DATA_HOOKS += \ | |
2197 | randomseed-install-data-hook | |
2198 | endif | |
2199 | ||
b4d0195b LP |
2200 | # ------------------------------------------------------------------------------ |
2201 | if HAVE_LIBCRYPTSETUP | |
2202 | rootlibexec_PROGRAMS += \ | |
2203 | systemd-cryptsetup | |
2204 | ||
2205 | systemgenerator_PROGRAMS += \ | |
2206 | systemd-cryptsetup-generator | |
2207 | ||
2208 | dist_systemunit_DATA += \ | |
2209 | units/cryptsetup.target | |
2210 | ||
2211 | systemd_cryptsetup_SOURCES = \ | |
2212 | src/cryptsetup/cryptsetup.c \ | |
2213 | src/ask-password-api.c | |
2214 | ||
2215 | systemd_cryptsetup_CFLAGS = \ | |
2216 | $(AM_CFLAGS) \ | |
3e214785 | 2217 | $(LIBCRYPTSETUP_CFLAGS) |
b4d0195b LP |
2218 | |
2219 | systemd_cryptsetup_LDADD = \ | |
2220 | $(LIBCRYPTSETUP_LIBS) \ | |
3e214785 | 2221 | libudev.la \ |
b4d0195b LP |
2222 | libsystemd-basic.la |
2223 | ||
2224 | systemd_cryptsetup_generator_SOURCES = \ | |
2225 | src/cryptsetup/cryptsetup-generator.c \ | |
2226 | src/unit-name.c | |
2227 | ||
2228 | systemd_cryptsetup_generator_LDADD = \ | |
2229 | libsystemd-basic.la | |
2230 | ||
2231 | cryptsetup-install-data-hook: | |
3606df64 MG |
2232 | $(MKDIR_P) -m 0755 \ |
2233 | $(DESTDIR)$(systemunitdir)/sysinit.target.wants | |
b4d0195b LP |
2234 | ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \ |
2235 | rm -f cryptsetup.target && \ | |
2236 | $(LN_S) ../cryptsetup.target cryptsetup.target ) | |
2237 | ||
2238 | INSTALL_DATA_HOOKS += \ | |
2239 | cryptsetup-install-data-hook | |
2240 | endif | |
2241 | ||
48d437bb KS |
2242 | # ------------------------------------------------------------------------------ |
2243 | if ENABLE_HOSTNAMED | |
2244 | systemd_hostnamed_SOURCES = \ | |
2245 | src/hostname/hostnamed.c \ | |
2246 | src/dbus-common.c \ | |
2247 | src/polkit.c | |
2248 | ||
2249 | systemd_hostnamed_CFLAGS = \ | |
3d20ed6d | 2250 | $(AM_CFLAGS) \ |
3d20ed6d LP |
2251 | $(DBUS_CFLAGS) |
2252 | ||
48d437bb | 2253 | systemd_hostnamed_LDADD = \ |
3d20ed6d | 2254 | libsystemd-basic.la \ |
48d437bb | 2255 | libsystemd-daemon.la \ |
3d20ed6d LP |
2256 | $(DBUS_LIBS) |
2257 | ||
48d437bb KS |
2258 | rootlibexec_PROGRAMS += \ |
2259 | systemd-hostnamed | |
3d20ed6d | 2260 | |
48d437bb KS |
2261 | nodist_systemunit_DATA += \ |
2262 | units/systemd-hostnamed.service | |
e9278741 | 2263 | |
48d437bb KS |
2264 | dist_dbuspolicy_DATA += \ |
2265 | src/hostname/org.freedesktop.hostname1.conf | |
e9ddabc2 | 2266 | |
48d437bb KS |
2267 | dist_dbussystemservice_DATA += \ |
2268 | src/hostname/org.freedesktop.hostname1.service | |
e9ddabc2 | 2269 | |
48d437bb KS |
2270 | polkitpolicy_in_files += \ |
2271 | src/hostname/org.freedesktop.hostname1.policy.in | |
e9ddabc2 | 2272 | |
48d437bb KS |
2273 | dbusinterface_DATA += \ |
2274 | org.freedesktop.hostname1.xml | |
06cdd248 | 2275 | |
48d437bb KS |
2276 | org.freedesktop.hostname1.xml: systemd-hostnamed |
2277 | $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.hostname1 $< $@.tmp && \ | |
2278 | $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \ | |
2279 | $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp | |
2280 | ||
2281 | hostnamed-install-data-hook: | |
2282 | ( cd $(DESTDIR)$(systemunitdir) && \ | |
2283 | rm -f dbus-org.freedesktop.hostname1.service && \ | |
2284 | $(LN_S) systemd-hostnamed.service dbus-org.freedesktop.hostname1.service ) | |
2285 | ||
2286 | INSTALL_DATA_HOOKS += \ | |
2287 | hostnamed-install-data-hook | |
2288 | ||
2289 | EXTRA_DIST += \ | |
2290 | units/systemd-hostnamed.service.in | |
2291 | endif | |
2292 | ||
2293 | # ------------------------------------------------------------------------------ | |
2294 | if ENABLE_LOCALED | |
2295 | systemd_localed_SOURCES = \ | |
2296 | src/locale/localed.c \ | |
2297 | src/dbus-common.c \ | |
2298 | src/polkit.c | |
2299 | ||
2300 | systemd_localed_CFLAGS = \ | |
06cdd248 | 2301 | $(AM_CFLAGS) \ |
48d437bb | 2302 | $(DBUS_CFLAGS) |
06cdd248 | 2303 | |
48d437bb | 2304 | systemd_localed_LDADD = \ |
06cdd248 | 2305 | libsystemd-basic.la \ |
48d437bb KS |
2306 | libsystemd-daemon.la \ |
2307 | $(DBUS_LIBS) | |
07faed4f | 2308 | |
48d437bb KS |
2309 | nodist_systemunit_DATA += \ |
2310 | units/systemd-localed.service | |
07faed4f | 2311 | |
48d437bb KS |
2312 | rootlibexec_PROGRAMS += \ |
2313 | systemd-localed | |
07faed4f | 2314 | |
48d437bb KS |
2315 | dist_dbuspolicy_DATA += \ |
2316 | src/locale/org.freedesktop.locale1.conf | |
e23a0ce8 | 2317 | |
48d437bb KS |
2318 | dist_dbussystemservice_DATA += \ |
2319 | src/locale/org.freedesktop.locale1.service | |
e23a0ce8 | 2320 | |
48d437bb KS |
2321 | polkitpolicy_in_files += \ |
2322 | src/locale/org.freedesktop.locale1.policy.in | |
e23a0ce8 | 2323 | |
48d437bb KS |
2324 | dbusinterface_DATA += \ |
2325 | org.freedesktop.locale1.xml | |
e23a0ce8 | 2326 | |
48d437bb KS |
2327 | org.freedesktop.locale1.xml: systemd-localed |
2328 | $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.locale1 $< $@.tmp && \ | |
2329 | $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \ | |
2330 | $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp | |
e23a0ce8 | 2331 | |
48d437bb KS |
2332 | localed-install-data-hook: |
2333 | ( cd $(DESTDIR)$(systemunitdir) && \ | |
2334 | rm -f dbus-org.freedesktop.locale1.service && \ | |
2335 | $(LN_S) systemd-localed.service dbus-org.freedesktop.locale1.service ) | |
e23a0ce8 | 2336 | |
48d437bb KS |
2337 | INSTALL_DATA_HOOKS += \ |
2338 | localed-install-data-hook | |
2a796654 | 2339 | |
48d437bb KS |
2340 | EXTRA_DIST += \ |
2341 | units/systemd-localed.service.in | |
776a564f LP |
2342 | |
2343 | dist_pkgdata_DATA = \ | |
2344 | src/locale/kbd-model-map | |
2345 | ||
2346 | dist_noinst_SCRIPT = \ | |
2347 | src/locale/generate-kbd-model-map | |
2348 | ||
2349 | update-kbd-model-map: | |
2350 | src/locale/generate-kbd-model-map > src/locale/kbd-model-map | |
2351 | ||
48d437bb | 2352 | endif |
2a796654 | 2353 | |
48d437bb KS |
2354 | # ------------------------------------------------------------------------------ |
2355 | if ENABLE_TIMEDATED | |
2356 | systemd_timedated_SOURCES = \ | |
2357 | src/timedate/timedated.c \ | |
2358 | src/dbus-common.c \ | |
2359 | src/polkit.c | |
2a796654 | 2360 | |
48d437bb KS |
2361 | systemd_timedated_CFLAGS = \ |
2362 | $(AM_CFLAGS) \ | |
2363 | $(DBUS_CFLAGS) | |
15673083 | 2364 | |
48d437bb KS |
2365 | systemd_timedated_LDADD = \ |
2366 | libsystemd-basic.la \ | |
2367 | libsystemd-daemon.la \ | |
2368 | $(DBUS_LIBS) | |
15673083 | 2369 | |
48d437bb KS |
2370 | rootlibexec_PROGRAMS += \ |
2371 | systemd-timedated | |
15673083 | 2372 | |
48d437bb KS |
2373 | dist_dbussystemservice_DATA += \ |
2374 | src/timedate/org.freedesktop.timedate1.service | |
e9278741 | 2375 | |
48d437bb KS |
2376 | dist_dbuspolicy_DATA += \ |
2377 | src/timedate/org.freedesktop.timedate1.conf | |
e9278741 | 2378 | |
48d437bb KS |
2379 | nodist_systemunit_DATA += \ |
2380 | units/systemd-timedated.service | |
b2423f1f | 2381 | |
48d437bb KS |
2382 | polkitpolicy_in_files += \ |
2383 | src/timedate/org.freedesktop.timedate1.policy.in | |
97c4a07d | 2384 | |
48d437bb KS |
2385 | org.freedesktop.timedate1.xml: systemd-timedated |
2386 | $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.timedate1 $< $@.tmp && \ | |
2387 | $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \ | |
2388 | $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp | |
97c4a07d | 2389 | |
48d437bb KS |
2390 | dbusinterface_DATA += \ |
2391 | org.freedesktop.timedate1.xml | |
97c4a07d | 2392 | |
48d437bb KS |
2393 | timedated-install-data-hook: |
2394 | ( cd $(DESTDIR)$(systemunitdir) && \ | |
2395 | rm -f dbus-org.freedesktop.timedate1.service && \ | |
2396 | $(LN_S) systemd-timedated.service dbus-org.freedesktop.timedate1.service ) | |
449ddb2d | 2397 | |
48d437bb KS |
2398 | INSTALL_DATA_HOOKS += \ |
2399 | timedated-install-data-hook | |
449ddb2d | 2400 | |
48d437bb KS |
2401 | EXTRA_DIST += \ |
2402 | units/systemd-timedated.service.in | |
2403 | endif | |
449ddb2d | 2404 | |
48d437bb KS |
2405 | # ------------------------------------------------------------------------------ |
2406 | if ENABLE_LOGIND | |
2407 | systemd_logind_SOURCES = \ | |
2408 | src/login/logind.c \ | |
2409 | src/login/logind-dbus.c \ | |
2410 | src/login/logind-device.c \ | |
2411 | src/login/logind-seat.c \ | |
2412 | src/login/logind-seat-dbus.c \ | |
2413 | src/login/logind-session.c \ | |
2414 | src/login/logind-session-dbus.c \ | |
2415 | src/login/logind-user.c \ | |
2416 | src/login/logind-user-dbus.c \ | |
2417 | src/dbus-common.c \ | |
2418 | src/dbus-loop.c \ | |
2419 | src/cgroup-util.c \ | |
2420 | src/polkit.c | |
8e274523 | 2421 | |
48d437bb KS |
2422 | nodist_systemd_logind_SOURCES = \ |
2423 | src/login/logind-gperf.c | |
8e274523 | 2424 | |
48d437bb KS |
2425 | if HAVE_ACL |
2426 | systemd_logind_SOURCES += \ | |
2427 | src/login/logind-acl.c \ | |
2428 | src/acl-util.c | |
2429 | endif | |
8e274523 | 2430 | |
48d437bb KS |
2431 | systemd_logind_CFLAGS = \ |
2432 | $(AM_CFLAGS) \ | |
2433 | $(DBUS_CFLAGS) \ | |
48d437bb | 2434 | $(ACL_CFLAGS) |
addab137 | 2435 | |
48d437bb | 2436 | systemd_logind_LDADD = \ |
2f6a1ab1 | 2437 | libsystemd-basic.la \ |
48d437bb | 2438 | libsystemd-daemon.la \ |
3e214785 | 2439 | libudev.la \ |
48d437bb | 2440 | $(DBUS_LIBS) \ |
48d437bb | 2441 | $(ACL_LIBS) |
addab137 | 2442 | |
927f62bd LP |
2443 | systemd_user_sessions_SOURCES = \ |
2444 | src/login/user-sessions.c \ | |
2445 | src/cgroup-util.c | |
2446 | ||
2447 | systemd_user_sessions_LDADD = \ | |
2448 | libsystemd-basic.la | |
2449 | ||
48d437bb | 2450 | rootlibexec_PROGRAMS += \ |
927f62bd LP |
2451 | systemd-logind \ |
2452 | systemd-user-sessions | |
48d437bb | 2453 | |
169c4f65 | 2454 | loginctl_SOURCES = \ |
48d437bb | 2455 | src/login/loginctl.c \ |
131a4dcf | 2456 | src/login/sysfs-show.c \ |
ab35fb1b | 2457 | src/dbus-common.c \ |
c6c18be3 | 2458 | src/cgroup-show.c \ |
d06dacd0 | 2459 | src/cgroup-util.c \ |
131a4dcf | 2460 | src/pager.c |
139be57d | 2461 | |
169c4f65 | 2462 | loginctl_CFLAGS = \ |
139be57d | 2463 | $(AM_CFLAGS) \ |
3e214785 | 2464 | $(DBUS_CFLAGS) |
7e4249b9 | 2465 | |
169c4f65 | 2466 | loginctl_LDADD = \ |
139be57d | 2467 | libsystemd-basic.la \ |
3e214785 KS |
2468 | libudev.la \ |
2469 | $(DBUS_LIBS) | |
7e4249b9 | 2470 | |
48d437bb | 2471 | rootbin_PROGRAMS += \ |
169c4f65 LP |
2472 | loginctl |
2473 | ||
48d437bb KS |
2474 | test_login_SOURCES = \ |
2475 | src/login/test-login.c | |
2476 | ||
2477 | test_login_LDADD = \ | |
2f6a1ab1 | 2478 | libsystemd-basic.la \ |
48d437bb | 2479 | libsystemd-login.la |
4a2a8b5a | 2480 | |
48d437bb KS |
2481 | noinst_PROGRAMS += \ |
2482 | test-login | |
490aed58 | 2483 | |
48d437bb KS |
2484 | libsystemd_login_la_SOURCES = \ |
2485 | src/login/sd-login.c \ | |
2486 | src/cgroup-util.c | |
490aed58 | 2487 | |
48d437bb KS |
2488 | libsystemd_login_la_CFLAGS = \ |
2489 | $(AM_CFLAGS) \ | |
2490 | -fvisibility=hidden | |
490aed58 | 2491 | |
48d437bb KS |
2492 | libsystemd_login_la_LDFLAGS = \ |
2493 | -shared \ | |
2494 | -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \ | |
2495 | -Wl,--version-script=$(top_srcdir)/src/login/libsystemd-login.sym | |
2496 | ||
2497 | libsystemd_login_la_LIBADD = \ | |
490aed58 LP |
2498 | libsystemd-basic.la |
2499 | ||
48d437bb KS |
2500 | if HAVE_PAM |
2501 | pam_systemd_la_SOURCES = \ | |
be5f4385 | 2502 | src/login/pam-module.c \ |
48d437bb | 2503 | src/dbus-common.c |
22be093f | 2504 | |
48d437bb KS |
2505 | pam_systemd_la_CFLAGS = \ |
2506 | $(AM_CFLAGS) \ | |
2507 | $(PAM_CFLAGS) \ | |
2508 | $(DBUS_CFLAGS) \ | |
2509 | -fvisibility=hidden | |
22be093f | 2510 | |
48d437bb KS |
2511 | pam_systemd_la_LDFLAGS = \ |
2512 | -module \ | |
2513 | -export-dynamic \ | |
2514 | -avoid-version \ | |
2515 | -shared \ | |
2516 | -export-symbols-regex '^pam_sm_.*' | |
2517 | ||
2518 | pam_systemd_la_LIBADD = \ | |
22be093f | 2519 | libsystemd-basic.la \ |
2f6a1ab1 | 2520 | libsystemd-daemon.la \ |
48d437bb KS |
2521 | $(PAM_LIBS) \ |
2522 | $(DBUS_LIBS) | |
22be093f | 2523 | |
48d437bb KS |
2524 | pamlib_LTLIBRARIES = \ |
2525 | pam_systemd.la | |
2526 | endif | |
22be093f | 2527 | |
48d437bb KS |
2528 | # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed |
2529 | libsystemd-login-install-hook: | |
2530 | if test "$(libdir)" != "$(rootlibdir)"; then \ | |
2531 | mkdir -p $(DESTDIR)$(rootlibdir) && \ | |
2532 | so_img_name=$$(readlink $(DESTDIR)$(libdir)/libsystemd-login.so) && \ | |
2533 | so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \ | |
2534 | ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libsystemd-login.so && \ | |
2535 | mv $(DESTDIR)$(libdir)/libsystemd-login.so.* $(DESTDIR)$(rootlibdir); \ | |
2536 | fi | |
22be093f | 2537 | |
48d437bb KS |
2538 | INSTALL_EXEC_HOOKS += \ |
2539 | libsystemd-login-install-hook | |
fa776d8e | 2540 | |
48d437bb KS |
2541 | libsystemd-login-uninstall-hook: |
2542 | rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so* | |
c6c18be3 | 2543 | |
48d437bb KS |
2544 | UNINSTALL_EXEC_HOOKS += \ |
2545 | libsystemd-login-uninstall-hook | |
fa776d8e | 2546 | |
48d437bb | 2547 | nodist_systemunit_DATA += \ |
927f62bd LP |
2548 | units/systemd-logind.service \ |
2549 | units/systemd-user-sessions.service | |
88213476 | 2550 | |
48d437bb KS |
2551 | dist_dbussystemservice_DATA += \ |
2552 | src/login/org.freedesktop.login1.service | |
88213476 | 2553 | |
48d437bb KS |
2554 | dist_dbuspolicy_DATA += \ |
2555 | src/login/org.freedesktop.login1.conf | |
88213476 | 2556 | |
48d437bb | 2557 | dist_pkgsysconf_DATA += \ |
18b754d3 | 2558 | src/login/logind.conf |
a8f11321 | 2559 | |
48d437bb | 2560 | pkginclude_HEADERS += \ |
81527be1 | 2561 | src/systemd/sd-login.h |
a8f11321 | 2562 | |
48d437bb KS |
2563 | lib_LTLIBRARIES += \ |
2564 | libsystemd-login.la | |
47be870b | 2565 | |
48d437bb | 2566 | pkgconfiglib_DATA += \ |
9c5b60ca | 2567 | src/login/libsystemd-login.pc |
10e87ee7 | 2568 | |
48d437bb KS |
2569 | polkitpolicy_in_files += \ |
2570 | src/login/org.freedesktop.login1.policy.in | |
10e87ee7 | 2571 | |
48d437bb | 2572 | logind-install-data-hook: |
3606df64 | 2573 | $(MKDIR_P) -m 0755 \ |
d8c9d1f9 MK |
2574 | $(DESTDIR)$(systemunitdir)/multi-user.target.wants \ |
2575 | $(DESTDIR)$(localstatedir)/lib/systemd | |
48d437bb KS |
2576 | ( cd $(DESTDIR)$(systemunitdir) && \ |
2577 | rm -f dbus-org.freedesktop.login1.service && \ | |
2578 | $(LN_S) systemd-logind.service dbus-org.freedesktop.login1.service) | |
2579 | ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \ | |
927f62bd LP |
2580 | rm -f systemd-logind.service systemd-user-sessions.service && \ |
2581 | $(LN_S) ../systemd-logind.service systemd-logind.service && \ | |
2582 | $(LN_S) ../systemd-user-sessions.service systemd-user-sessions.service ) | |
c1e1601e | 2583 | |
48d437bb KS |
2584 | INSTALL_DATA_HOOKS += \ |
2585 | logind-install-data-hook | |
490aed58 | 2586 | |
36db9a8d LP |
2587 | systemd_multi_seat_x_SOURCES = \ |
2588 | src/login/multi-seat-x.c | |
2589 | ||
36db9a8d LP |
2590 | systemd_multi_seat_x_LDADD = \ |
2591 | libsystemd-basic.la \ | |
3e214785 | 2592 | libudev.la |
36db9a8d LP |
2593 | |
2594 | rootlibexec_PROGRAMS += \ | |
2595 | systemd-multi-seat-x | |
2596 | ||
48d437bb KS |
2597 | systemd_uaccess_SOURCES = \ |
2598 | src/login/uaccess.c | |
490aed58 | 2599 | |
48d437bb KS |
2600 | if HAVE_ACL |
2601 | systemd_uaccess_SOURCES += \ | |
2602 | src/login/logind-acl.c \ | |
2603 | src/acl-util.c | |
d0ef2204 | 2604 | endif |
490aed58 | 2605 | |
48d437bb KS |
2606 | systemd_uaccess_CFLAGS = \ |
2607 | $(AM_CFLAGS) \ | |
48d437bb | 2608 | $(ACL_CFLAGS) |
490aed58 | 2609 | |
48d437bb KS |
2610 | systemd_uaccess_LDADD = \ |
2611 | libsystemd-basic.la \ | |
2612 | libsystemd-daemon.la \ | |
2613 | libsystemd-login.la \ | |
3e214785 | 2614 | libudev.la \ |
48d437bb | 2615 | $(ACL_LIBS) |
ec863ba6 | 2616 | |
48d437bb KS |
2617 | rootlibexec_PROGRAMS += \ |
2618 | systemd-uaccess | |
ec863ba6 | 2619 | |
48d437bb | 2620 | dist_udevrules_DATA += \ |
131a4dcf KS |
2621 | src/login/70-uaccess.rules |
2622 | ||
2623 | dist_udevrules_DATA += \ | |
2624 | src/login/71-seat.rules | |
2625 | ||
2626 | nodist_udevrules_DATA += \ | |
2627 | src/login/73-seat-late.rules | |
114a50f8 | 2628 | |
48d437bb | 2629 | MANPAGES += \ |
18b754d3 | 2630 | man/logind.conf.5 \ |
48d437bb | 2631 | man/sd-login.7 \ |
169c4f65 | 2632 | man/loginctl.1 \ |
9ace5d02 KS |
2633 | man/sd_login_monitor_new.3 \ |
2634 | man/sd_pid_get_session.3 \ | |
2635 | man/sd_uid_get_state.3 \ | |
2636 | man/sd_session_is_active.3 \ | |
2637 | man/sd_seat_get_active.3 \ | |
2638 | man/sd_get_seats.3 | |
74b91131 | 2639 | |
48d437bb KS |
2640 | MANPAGES_ALIAS += \ |
2641 | man/sd_login_monitor_unref.3 \ | |
2642 | man/sd_login_monitor_flush.3 \ | |
9ace5d02 KS |
2643 | man/sd_login_monitor_get_fd.3 \ |
2644 | man/sd_session_get_uid.3 \ | |
2645 | man/sd_session_get_seat.3 \ | |
81e0d956 LP |
2646 | man/sd_session_get_service.3 \ |
2647 | man/sd_session_get_type.3 \ | |
2648 | man/sd_session_get_class.3 \ | |
2649 | man/sd_session_get_display.3 \ | |
9ace5d02 | 2650 | man/sd_pid_get_owner_uid.3 \ |
94fb446e | 2651 | man/sd_pid_get_unit.3 \ |
9ace5d02 KS |
2652 | man/sd_uid_is_on_seat.3 \ |
2653 | man/sd_uid_get_sessions.3 \ | |
2654 | man/sd_uid_get_seats.3 \ | |
2655 | man/sd_seat_get_sessions.3 \ | |
2656 | man/sd_seat_can_multi_session.3 \ | |
2657 | man/sd_get_sessions.3 \ | |
2658 | man/sd_get_uids.3 | |
74b91131 | 2659 | |
48d437bb KS |
2660 | man/sd_login_monitor_unref.3: man/sd_login_monitor_new.3 |
2661 | man/sd_login_monitor_flush.3: man/sd_login_monitor_new.3 | |
2662 | man/sd_login_monitor_get_fd.3: man/sd_login_monitor_new.3 | |
9ace5d02 KS |
2663 | man/sd_session_get_uid.3: man/sd_session_is_active.3 |
2664 | man/sd_session_get_seat.3: man/sd_session_is_active.3 | |
81e0d956 LP |
2665 | man/sd_session_get_service.3: man/sd_session_is_active.3 |
2666 | man/sd_session_get_type.3: man/sd_session_is_active.3 | |
2667 | man/sd_session_get_class.3: man/sd_session_is_active.3 | |
2668 | man/sd_session_get_display.3: man/sd_session_is_active.3 | |
9ace5d02 | 2669 | man/sd_pid_get_owner_uid.3: man/sd_pid_get_session.3 |
94fb446e | 2670 | man/sd_pid_get_unit.3: man/sd_pid_get_session.3 |
9ace5d02 KS |
2671 | man/sd_uid_is_on_seat.3: man/sd_uid_get_state.3 |
2672 | man/sd_uid_get_sessions.3: man/sd_uid_get_state.3 | |
2673 | man/sd_uid_get_seats.3: man/sd_uid_get_state.3 | |
2674 | man/sd_seat_get_sessions.3: man/sd_seat_get_active.3 | |
2675 | man/sd_seat_can_multi_session.3: man/sd_seat_get_active.3 | |
2676 | man/sd_get_sessions.3: man/sd_get_seats.3 | |
2677 | man/sd_get_uids.3: man/sd_get_seats.3 | |
ae446765 | 2678 | |
48d437bb KS |
2679 | EXTRA_DIST += \ |
2680 | src/login/logind-gperf.gperf \ | |
3bb8894f | 2681 | src/login/libsystemd-login.pc.in \ |
48d437bb KS |
2682 | src/login/libsystemd-login.sym \ |
2683 | src/login/logind.h \ | |
2684 | src/login/logind-device.h \ | |
2685 | src/login/logind-seat.h \ | |
2686 | src/login/logind-session.h \ | |
2687 | src/login/logind-user.h \ | |
131a4dcf KS |
2688 | src/login/logind-acl.h \ |
2689 | src/login/73-seat-late.rules.in \ | |
2690 | units/systemd-logind.service.in \ | |
2691 | units/systemd-user-sessions.service.in | |
48d437bb KS |
2692 | |
2693 | CLEANFILES += \ | |
131a4dcf KS |
2694 | src/login/logind-gperf.c \ |
2695 | src/login/73-seat-late.rules | |
48d437bb KS |
2696 | endif |
2697 | # ------------------------------------------------------------------------------ | |
ae446765 | 2698 | |
5e6afdd3 | 2699 | SED_PROCESS = \ |
a00e4879 | 2700 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ |
b4d0195b | 2701 | $(SED) -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \ |
5b754353 KS |
2702 | -e 's,@rootbindir\@,$(rootbindir),g' \ |
2703 | -e 's,@bindir\@,$(bindir),g' \ | |
1136a371 | 2704 | -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \ |
c7b50859 | 2705 | -e 's,@SYSTEMD_NOTIFY\@,$(rootbindir)/systemd-notify,g' \ |
8c6db833 LP |
2706 | -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \ |
2707 | -e 's,@pkgdatadir\@,$(pkgdatadir),g' \ | |
61fbbab8 | 2708 | -e 's,@pkglibexecdir\@,$(pkglibexecdir),g' \ |
8c6db833 | 2709 | -e 's,@systemunitdir\@,$(systemunitdir),g' \ |
d19c883d | 2710 | -e 's,@userunitdir\@,$(userunitdir),g' \ |
8c6db833 LP |
2711 | -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \ |
2712 | -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \ | |
2713 | -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \ | |
2714 | -e 's,@prefix\@,$(prefix),g' \ | |
74b91131 LP |
2715 | -e 's,@exec_prefix\@,$(exec_prefix),g' \ |
2716 | -e 's,@libdir\@,$(libdir),g' \ | |
2717 | -e 's,@includedir\@,$(includedir),g' \ | |
3e214785 KS |
2718 | -e 's,@VERSION\@,$(VERSION),g' \ |
2719 | -e 's,@rootprefix\@,$(rootprefix),g' \ | |
2720 | -e 's,@udevlibexecdir\@,$(libexecdir)/udev,g' \ | |
de47ca9b | 2721 | < $< > $@ || rm $@ |
70fcff31 | 2722 | |
9f2c5942 | 2723 | units/%: units/%.in Makefile |
5e6afdd3 LP |
2724 | $(SED_PROCESS) |
2725 | ||
2a3d6294 | 2726 | man/%: man/%.in Makefile |
5e6afdd3 | 2727 | $(SED_PROCESS) |
f5e04665 LP |
2728 | |
2729 | sysctl.d/%: sysctl.d/%.in Makefile | |
2730 | $(SED_PROCESS) | |
5e6afdd3 | 2731 | |
8c6db833 LP |
2732 | %.pc: %.pc.in Makefile |
2733 | $(SED_PROCESS) | |
2734 | ||
9356a6c6 | 2735 | src/%.policy.in: src/%.policy.in.in Makefile |
25705583 LP |
2736 | $(SED_PROCESS) |
2737 | ||
3e214785 | 2738 | %.rules: %.rules.in Makefile |
0b191e60 LP |
2739 | $(SED_PROCESS) |
2740 | ||
3e214785 KS |
2741 | %.sh: %.sh.in Makefile |
2742 | $(SED_PROCESS) | |
2743 | $(AM_V_GEN)chmod +x $@ | |
2744 | ||
f975e971 LP |
2745 | src/%.c: src/%.gperf |
2746 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ | |
2747 | $(GPERF) < $< > $@ | |
2748 | ||
2749 | src/%: src/%.m4 | |
2750 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ | |
2751 | $(M4) -P $(M4_DEFINES) < $< > $@ || rm $@ | |
2752 | ||
2753 | src/load-fragment-gperf-nulstr.c: src/load-fragment-gperf.gperf | |
2754 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ | |
baa5ad26 | 2755 | $(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 ";" }' < $< > $@ || rm $@ |
f975e971 | 2756 | |
fb1bd35a | 2757 | M4_PROCESS_SYSTEM = \ |
a00e4879 | 2758 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ |
f975e971 | 2759 | $(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@ || rm $@ |
fb1bd35a | 2760 | |
af2d49f7 | 2761 | M4_PROCESS_USER = \ |
a00e4879 | 2762 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ |
f975e971 | 2763 | $(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@ || rm $@ |
5e6afdd3 | 2764 | |
9f2c5942 | 2765 | units/%: units/%.m4 Makefile |
fb1bd35a | 2766 | $(M4_PROCESS_SYSTEM) |
5e6afdd3 | 2767 | |
af2d49f7 LP |
2768 | units/user/%: units/%.m4 Makefile |
2769 | $(M4_PROCESS_USER) | |
a7b6f8e5 | 2770 | |
2a018e83 | 2771 | CLEANFILES += \ |
6f6083dc | 2772 | $(nodist_systemunit_DATA) \ |
af2d49f7 | 2773 | $(nodist_userunit_DATA) \ |
6f6083dc | 2774 | $(nodist_man_MANS) \ |
3eb4d9a2 | 2775 | $(pkgconfigdata_DATA) \ |
6a9bff42 | 2776 | $(pkgconfiglib_DATA) \ |
9356a6c6 | 2777 | $(nodist_polkitpolicy_DATA) \ |
baa5ad26 KS |
2778 | src/load-fragment-gperf.gperf \ |
2779 | src/load-fragment-gperf.c \ | |
3e214785 | 2780 | src/load-fragment-gperf-nulstr.c |
4697132b | 2781 | |
c3bd7322 | 2782 | if HAVE_XSLTPROC |
c6365917 LP |
2783 | XSLTPROC_FLAGS = \ |
2784 | --nonet \ | |
76318284 | 2785 | --stringparam funcsynopsis.style ansi |
c6365917 | 2786 | |
9f2c5942 | 2787 | XSLTPROC_PROCESS_MAN = \ |
a00e4879 | 2788 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ |
c6365917 | 2789 | $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< |
d1ab0ca0 | 2790 | |
9f2c5942 | 2791 | XSLTPROC_PROCESS_HTML = \ |
a00e4879 | 2792 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ |
8df5c320 | 2793 | $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $< |
d1ab0ca0 | 2794 | |
6f6083dc | 2795 | man/%.1: man/%.xml |
f9378423 LP |
2796 | $(XSLTPROC_PROCESS_MAN) |
2797 | ||
6f6083dc | 2798 | man/%.3: man/%.xml |
359957ee LP |
2799 | $(XSLTPROC_PROCESS_MAN) |
2800 | ||
9f2c5942 LP |
2801 | man/%.5: man/%.xml |
2802 | $(XSLTPROC_PROCESS_MAN) | |
2803 | ||
9f2c5942 LP |
2804 | man/%.7: man/%.xml |
2805 | $(XSLTPROC_PROCESS_MAN) | |
2806 | ||
f9378423 LP |
2807 | man/%.8: man/%.xml |
2808 | $(XSLTPROC_PROCESS_MAN) | |
2809 | ||
9f2c5942 LP |
2810 | man/%.html: man/%.xml |
2811 | $(XSLTPROC_PROCESS_HTML) | |
2812 | ||
d1ab0ca0 LP |
2813 | CLEANFILES += \ |
2814 | $(dist_man_MANS) \ | |
96b0cb11 | 2815 | ${XML_FILES:.xml=.html} |
c3bd7322 | 2816 | endif |
d1ab0ca0 | 2817 | |
9a60da28 TR |
2818 | DBUS_PREPROCESS = $(CPP) -P $(DBUS_CFLAGS) -imacros dbus/dbus-protocol.h |
2819 | ||
4288f619 | 2820 | org.freedesktop.systemd1.%.xml: systemd |
114a50f8 | 2821 | $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.$* $< $@.tmp && \ |
382a0310 | 2822 | $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \ |
9a60da28 | 2823 | $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp |
4288f619 | 2824 | |
6f6083dc LP |
2825 | CLEANFILES += \ |
2826 | $(dbusinterface_DATA) | |
4288f619 | 2827 | |
2a018e83 | 2828 | systemd-install-data-hook: |
7ebdfc93 | 2829 | $(MKDIR_P) -m 0755 \ |
5b754353 | 2830 | $(DESTDIR)$(tmpfilesdir) \ |
772f8371 | 2831 | $(DESTDIR)$(sysconfdir)/tmpfiles.d \ |
db1413d7 | 2832 | $(DESTDIR)$(prefix)/lib/modules-load.d \ |
772f8371 | 2833 | $(DESTDIR)$(sysconfdir)/modules-load.d \ |
db1413d7 | 2834 | $(DESTDIR)$(prefix)/lib/sysctl.d \ |
772f8371 | 2835 | $(DESTDIR)$(sysconfdir)/sysctl.d \ |
5b754353 KS |
2836 | $(DESTDIR)$(systemshutdowndir) \ |
2837 | $(DESTDIR)$(systemgeneratordir) \ | |
2838 | $(DESTDIR)$(usergeneratordir) | |
64c1b5bf | 2839 | $(MKDIR_P) -m 0755 \ |
43aa226d | 2840 | $(DESTDIR)$(systemunitdir) \ |
af2d49f7 | 2841 | $(DESTDIR)$(userunitdir) \ |
42eacdad | 2842 | $(DESTDIR)$(systemunitdir)/sysinit.target.wants \ |
5e6afdd3 | 2843 | $(DESTDIR)$(systemunitdir)/sockets.target.wants \ |
c0a1b6e9 | 2844 | $(DESTDIR)$(systemunitdir)/basic.target.wants \ |
cd6d0a45 | 2845 | $(DESTDIR)$(systemunitdir)/shutdown.target.wants \ |
65ae3821 | 2846 | $(DESTDIR)$(systemunitdir)/local-fs.target.wants \ |
cd6d0a45 LP |
2847 | $(DESTDIR)$(systemunitdir)/runlevel1.target.wants \ |
2848 | $(DESTDIR)$(systemunitdir)/runlevel2.target.wants \ | |
2849 | $(DESTDIR)$(systemunitdir)/runlevel3.target.wants \ | |
2850 | $(DESTDIR)$(systemunitdir)/runlevel4.target.wants \ | |
2851 | $(DESTDIR)$(systemunitdir)/runlevel5.target.wants \ | |
45cf9716 | 2852 | $(DESTDIR)$(systemunitdir)/multi-user.target.wants \ |
c980a279 | 2853 | $(DESTDIR)$(systemunitdir)/graphical.target.wants \ |
64c1b5bf | 2854 | $(DESTDIR)$(pkgsysconfdir)/system \ |
42eacdad | 2855 | $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants \ |
980d8750 | 2856 | $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants \ |
5e6afdd3 | 2857 | $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \ |
980d8750 | 2858 | $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \ |
af2d49f7 | 2859 | $(DESTDIR)$(pkgsysconfdir)/user \ |
e4c1d706 | 2860 | $(DESTDIR)$(dbussessionservicedir) \ |
e82e442b | 2861 | $(DESTDIR)$(sysconfdir)/xdg/systemd |
e9da3678 | 2862 | ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \ |
af2d49f7 LP |
2863 | rm -f user && \ |
2864 | $(LN_S) $(pkgsysconfdir)/user user ) | |
5e6afdd3 | 2865 | ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \ |
4c0bebc3 | 2866 | rm -f systemd-initctl.socket systemd-shutdownd.socket && \ |
a145090c | 2867 | $(LN_S) ../systemd-initctl.socket systemd-initctl.socket && \ |
4c0bebc3 | 2868 | $(LN_S) ../systemd-shutdownd.socket systemd-shutdownd.socket ) |
cd6d0a45 LP |
2869 | ( cd $(DESTDIR)$(systemunitdir)/runlevel1.target.wants && \ |
2870 | rm -f systemd-update-utmp-runlevel.service && \ | |
45cf9716 | 2871 | $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service ) |
cd6d0a45 LP |
2872 | ( cd $(DESTDIR)$(systemunitdir)/runlevel2.target.wants && \ |
2873 | rm -f systemd-update-utmp-runlevel.service && \ | |
45cf9716 | 2874 | $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service ) |
cd6d0a45 LP |
2875 | ( cd $(DESTDIR)$(systemunitdir)/runlevel3.target.wants && \ |
2876 | rm -f systemd-update-utmp-runlevel.service && \ | |
45cf9716 | 2877 | $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service ) |
cd6d0a45 LP |
2878 | ( cd $(DESTDIR)$(systemunitdir)/runlevel4.target.wants && \ |
2879 | rm -f systemd-update-utmp-runlevel.service && \ | |
45cf9716 | 2880 | $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service ) |
cd6d0a45 LP |
2881 | ( cd $(DESTDIR)$(systemunitdir)/runlevel5.target.wants && \ |
2882 | rm -f systemd-update-utmp-runlevel.service && \ | |
45cf9716 | 2883 | $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service ) |
cd6d0a45 | 2884 | ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \ |
4de85612 LP |
2885 | rm -f systemd-update-utmp-shutdown.service && \ |
2886 | $(LN_S) ../systemd-update-utmp-shutdown.service systemd-update-utmp-shutdown.service ) | |
65ae3821 | 2887 | ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \ |
c0a1b6e9 | 2888 | rm -f systemd-remount-api-vfs.service \ |
980d8750 | 2889 | fsck-root.service \ |
623ac9d2 KS |
2890 | remount-rootfs.service \ |
2891 | tmp.mount && \ | |
c0a1b6e9 | 2892 | $(LN_S) ../systemd-remount-api-vfs.service systemd-remount-api-vfs.service && \ |
980d8750 | 2893 | $(LN_S) ../fsck-root.service fsck-root.service && \ |
623ac9d2 KS |
2894 | $(LN_S) ../remount-rootfs.service remount-rootfs.service && \ |
2895 | $(LN_S) ../tmp.mount tmp.mount ) | |
af2d49f7 | 2896 | ( cd $(DESTDIR)$(userunitdir) && \ |
835c60f5 | 2897 | rm -f shutdown.target sockets.target bluetooth.target printer.target sound.target && \ |
8c4a3079 LP |
2898 | $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \ |
2899 | $(LN_S) $(systemunitdir)/sockets.target sockets.target && \ | |
da78e1b4 | 2900 | $(LN_S) $(systemunitdir)/bluetooth.target bluetooth.target && \ |
88dfa293 LP |
2901 | $(LN_S) $(systemunitdir)/printer.target printer.target && \ |
2902 | $(LN_S) $(systemunitdir)/sound.target sound.target ) | |
5e6afdd3 | 2903 | ( cd $(DESTDIR)$(systemunitdir) && \ |
c88f64bd | 2904 | rm -f runlevel0.target runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target runlevel6.target && \ |
5e6afdd3 LP |
2905 | $(LN_S) poweroff.target runlevel0.target && \ |
2906 | $(LN_S) rescue.target runlevel1.target && \ | |
c88f64bd LP |
2907 | $(LN_S) multi-user.target runlevel2.target && \ |
2908 | $(LN_S) multi-user.target runlevel3.target && \ | |
2909 | $(LN_S) multi-user.target runlevel4.target && \ | |
2910 | $(LN_S) graphical.target runlevel5.target && \ | |
5e6afdd3 | 2911 | $(LN_S) reboot.target runlevel6.target ) |
45cf9716 | 2912 | ( cd $(DESTDIR)$(systemunitdir) && \ |
2a018e83 | 2913 | rm -f default.target ctrl-alt-del.target autovt@.service && \ |
45cf9716 | 2914 | $(LN_S) graphical.target default.target && \ |
7640a5de | 2915 | $(LN_S) reboot.target ctrl-alt-del.target && \ |
baa5ad26 | 2916 | $(LN_S) getty@.service autovt@.service ) |
3e24da51 | 2917 | ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \ |
927f62bd | 2918 | rm -f getty.target systemd-ask-password-wall.path && \ |
447be155 | 2919 | $(LN_S) ../getty.target getty.target && \ |
2a018e83 | 2920 | $(LN_S) ../systemd-ask-password-wall.path systemd-ask-password-wall.path) |
5e6afdd3 | 2921 | ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \ |
d0a522eb LP |
2922 | rm -f getty@tty1.service && \ |
2923 | $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service ) | |
5e6afdd3 | 2924 | ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \ |
3e24da51 | 2925 | rm -f remote-fs.target && \ |
f92a18f5 | 2926 | $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target ) |
42eacdad | 2927 | ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \ |
ac0a983a | 2928 | rm -f dev-hugepages.mount \ |
1f2c94a4 | 2929 | dev-mqueue.mount \ |
baa5ad26 | 2930 | sys-kernel-config.mount \ |
e124e7a4 | 2931 | sys-kernel-debug.mount \ |
7ef5875d | 2932 | sys-fs-fuse-connections.mount \ |
d3f09cf3 | 2933 | systemd-modules-load.service \ |
3b63d2d3 | 2934 | systemd-tmpfiles-setup.service \ |
8e1bd70d | 2935 | systemd-sysctl.service \ |
4c0bebc3 | 2936 | systemd-ask-password-console.path && \ |
ac0a983a | 2937 | $(LN_S) ../dev-hugepages.mount dev-hugepages.mount && \ |
1f2c94a4 | 2938 | $(LN_S) ../dev-mqueue.mount dev-mqueue.mount && \ |
baa5ad26 | 2939 | $(LN_S) ../sys-kernel-config.mount sys-kernel-config.mount && \ |
e124e7a4 | 2940 | $(LN_S) ../sys-kernel-debug.mount sys-kernel-debug.mount && \ |
7ef5875d | 2941 | $(LN_S) ../sys-fs-fuse-connections.mount sys-fs-fuse-connections.mount && \ |
45cf9716 | 2942 | $(LN_S) ../systemd-modules-load.service systemd-modules-load.service && \ |
3b63d2d3 | 2943 | $(LN_S) ../systemd-tmpfiles-setup.service systemd-tmpfiles-setup.service && \ |
8e1bd70d | 2944 | $(LN_S) ../systemd-sysctl.service systemd-sysctl.service && \ |
4c0bebc3 | 2945 | $(LN_S) ../systemd-ask-password-console.path systemd-ask-password-console.path ) |
42eacdad LP |
2946 | ( cd $(DESTDIR)$(systemunitdir)/basic.target.wants && \ |
2947 | rm -f systemd-tmpfiles-clean.timer && \ | |
3b63d2d3 | 2948 | $(LN_S) ../systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.timer ) |
d122948d LP |
2949 | ( cd $(DESTDIR)$(dbussessionservicedir) && \ |
2950 | rm -f org.freedesktop.systemd1.service && \ | |
2951 | $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service ) | |
cd3f8b7d | 2952 | if HAVE_PLYMOUTH |
a3723b97 | 2953 | $(MKDIR_P) -m 0755 \ |
f057408c | 2954 | $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) \ |
3cc144eb | 2955 | $(DESTDIR)$(systemunitdir)/reboot.target.wants \ |
42eacdad | 2956 | $(DESTDIR)$(systemunitdir)/kexec.target.wants \ |
3cc144eb | 2957 | $(DESTDIR)$(systemunitdir)/poweroff.target.wants \ |
cd3f8b7d | 2958 | $(DESTDIR)$(systemunitdir)/halt.target.wants |
42eacdad | 2959 | ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \ |
8cf3a8a9 | 2960 | rm -f plymouth-start.service plymouth-read-write.service && \ |
42eacdad | 2961 | $(LN_S) ../plymouth-start.service plymouth-start.service && \ |
8cf3a8a9 | 2962 | $(LN_S) ../plymouth-read-write.service plymouth-read-write.service ) |
198b625b | 2963 | ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \ |
aa2e2115 LP |
2964 | rm -f plymouth-quit.service plymouth-quit-wait.service && \ |
2965 | $(LN_S) ../plymouth-quit.service plymouth-quit.service && \ | |
2966 | $(LN_S) ../plymouth-quit-wait.service plymouth-quit-wait.service ) | |
3cc144eb | 2967 | ( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \ |
0278dfeb | 2968 | rm -f plymouth-reboot.service && \ |
3cc144eb | 2969 | $(LN_S) ../plymouth-reboot.service plymouth-reboot.service ) |
42eacdad LP |
2970 | ( cd $(DESTDIR)$(systemunitdir)/kexec.target.wants && \ |
2971 | rm -f plymouth-kexec.service && \ | |
2972 | $(LN_S) ../plymouth-kexec.service plymouth-kexec.service ) | |
3cc144eb | 2973 | ( cd $(DESTDIR)$(systemunitdir)/poweroff.target.wants && \ |
0278dfeb | 2974 | rm -f plymouth-poweroff.service && \ |
3cc144eb LP |
2975 | $(LN_S) ../plymouth-poweroff.service plymouth-poweroff.service ) |
2976 | ( cd $(DESTDIR)$(systemunitdir)/halt.target.wants && \ | |
0278dfeb | 2977 | rm -f plymouth-halt.service && \ |
3cc144eb | 2978 | $(LN_S) ../plymouth-halt.service plymouth-halt.service ) |
cd3f8b7d | 2979 | endif |
54e4fdef CF |
2980 | if TARGET_MEEGO |
2981 | $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants | |
2982 | ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \ | |
2983 | rm -f network.target && \ | |
2984 | $(LN_S) $(systemunitdir)/network.target network.target ) | |
2985 | ( cd $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants && \ | |
2986 | rm -f * ) | |
2987 | ( cd $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants && \ | |
2988 | rm -f * ) | |
2989 | ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \ | |
2990 | rm -f * ) | |
2991 | ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \ | |
2992 | rm -f * ) | |
2993 | endif | |
cd3f8b7d JM |
2994 | |
2995 | if TARGET_FEDORA | |
2996 | $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants | |
cd3f8b7d JM |
2997 | ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \ |
2998 | rm -f halt-local.service && \ | |
2999 | $(LN_S) $(systemunitdir)/halt-local.service halt-local.service ) | |
5e6afdd3 | 3000 | ( cd $(DESTDIR)$(systemunitdir) && \ |
b1c66c44 LP |
3001 | rm -f display-manager.service single.service && \ |
3002 | $(LN_S) prefdm.service display-manager.service && \ | |
5b754353 | 3003 | $(LN_S) rescue.service single.service ) |
6b2a56f0 | 3004 | ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \ |
42eacdad LP |
3005 | rm -f display-manager.service && \ |
3006 | $(LN_S) $(systemunitdir)/display-manager.service display-manager.service ) | |
f306f4c4 | 3007 | endif |
1de4d79b AB |
3008 | |
3009 | if TARGET_MANDRIVA | |
3010 | $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants | |
1de4d79b AB |
3011 | ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \ |
3012 | rm -f halt-local.service && \ | |
3013 | $(LN_S) $(systemunitdir)/halt-local.service halt-local.service ) | |
3014 | ( cd $(DESTDIR)$(systemunitdir) && \ | |
8c944383 | 3015 | rm -f display-manager.service dm.service single.service && \ |
b1c66c44 | 3016 | $(LN_S) prefdm.service display-manager.service && \ |
8c944383 | 3017 | $(LN_S) prefdm.service dm.service && \ |
5b754353 | 3018 | $(LN_S) rescue.service single.service ) |
1de4d79b AB |
3019 | ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \ |
3020 | rm -f display-manager.service && \ | |
3021 | $(LN_S) $(systemunitdir)/display-manager.service display-manager.service ) | |
3022 | endif | |
3023 | ||
858dae18 | 3024 | if TARGET_DEBIAN_OR_UBUNTU |
e082d6c8 MB |
3025 | ( cd $(DESTDIR)$(systemunitdir) && \ |
3026 | rm -f runlevel5.target && \ | |
3027 | $(LN_S) multi-user.target runlevel5.target ) | |
a5dc0a45 | 3028 | endif |
5e6afdd3 | 3029 | |
a268a6a3 FC |
3030 | if TARGET_SUSE |
3031 | $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants | |
a268a6a3 FC |
3032 | ( cd $(DESTDIR)$(systemunitdir) && \ |
3033 | rm -f local.service && \ | |
3034 | $(LN_S) rc-local.service local.service ) | |
3035 | ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \ | |
3036 | rm -f halt-local.service && \ | |
3037 | $(LN_S) $(systemunitdir)/halt-local.service halt-local.service ) | |
3038 | endif | |
3039 | ||
6fdae8a6 DM |
3040 | if TARGET_MAGEIA |
3041 | $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants | |
6fdae8a6 DM |
3042 | ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \ |
3043 | rm -f halt-local.service && \ | |
3044 | $(LN_S) $(systemunitdir)/halt-local.service halt-local.service ) | |
3045 | ( cd $(DESTDIR)$(systemunitdir) && \ | |
3046 | rm -f display-manager.service && \ | |
3047 | $(LN_S) prefdm.service display-manager.service && \ | |
3048 | $(LN_S) prefdm.service dm.service ) | |
3049 | ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \ | |
3050 | rm -f display-manager.service && \ | |
3051 | $(LN_S) $(systemunitdir)/display-manager.service display-manager.service ) | |
3052 | endif | |
3053 | ||
48d437bb | 3054 | install-exec-hook: $(INSTALL_EXEC_HOOKS) |
2a018e83 | 3055 | |
48d437bb | 3056 | uninstall-hook: $(UNINSTALL_EXEC_HOOKS) |
ae446765 | 3057 | |
2a018e83 | 3058 | install-data-hook: systemd-install-data-hook $(INSTALL_DATA_HOOKS) |
ae446765 | 3059 | |
3e214785 KS |
3060 | distcheck-hook: $(DISTCHECK_HOOKS) |
3061 | ||
3062 | distclean-local: $(DISTCLEAN_LOCAL_HOOKS) | |
3063 | ||
d1ab0ca0 | 3064 | DISTCHECK_CONFIGURE_FLAGS = \ |
d2d12cd1 LP |
3065 | --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \ |
3066 | --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \ | |
3067 | --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \ | |
3068 | --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \ | |
8c6db833 | 3069 | --with-pamlibdir=$$dc_install_base/$(pamlibdir) \ |
3e214785 KS |
3070 | --with-rootprefix=$$dc_install_base \ |
3071 | --disable-split-usr \ | |
3072 | --enable-gtk-doc | |
0de4f055 | 3073 | |
a45f61d7 | 3074 | upload: all distcheck |
dcbd5d16 LP |
3075 | cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/ |
3076 | scp systemd-$(VERSION).tar.xz fdo:/srv/www.freedesktop.org/www/software/systemd/ | |
70432354 | 3077 | scp man/*.html fdo:/srv/www.freedesktop.org/www/software/systemd/man/ |
a45f61d7 LP |
3078 | scp man/*.html tango:public/systemd-man/ |
3079 | ||
3080 | git-tag: | |
3081 | git tag "v$(VERSION)" -m "systemd $(VERSION)" |