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