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