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