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