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