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