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