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