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