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