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