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