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