chiark / gitweb /
f9093b6d8eb68bf381182e24809bd65138ca572b
[elogind.git] / Makefile.am
1 #  This file is part of systemd.
2 #
3 #  Copyright 2010 Lennart Poettering
4 #
5 #  systemd is free software; you can redistribute it and/or modify it
6 #  under the terms of the GNU General Public License as published by
7 #  the Free Software Foundation; either version 2 of the License, or
8 #  (at your option) any later version.
9 #
10 #  systemd is distributed in the hope that it will be useful, but
11 #  WITHOUT ANY WARRANTY; without even the implied warranty of
12 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 #  General Public License for more details.
14 #
15 #  You should have received a copy of the GNU General Public License
16 #  along with systemd; If not, see <http://www.gnu.org/licenses/>.
17
18 ACLOCAL_AMFLAGS = -I m4
19
20 SUBDIRS = po
21
22 LIBSYSTEMD_LOGIN_CURRENT=0
23 LIBSYSTEMD_LOGIN_REVISION=6
24 LIBSYSTEMD_LOGIN_AGE=0
25
26 LIBSYSTEMD_DAEMON_CURRENT=0
27 LIBSYSTEMD_DAEMON_REVISION=0
28 LIBSYSTEMD_DAEMON_AGE=0
29
30 # Dirs of external packages
31 dbuspolicydir=@dbuspolicydir@
32 dbussessionservicedir=@dbussessionservicedir@
33 dbussystemservicedir=@dbussystemservicedir@
34 dbusinterfacedir=@dbusinterfacedir@
35 udevrulesdir=@udevrulesdir@
36 pamlibdir=@pamlibdir@
37 pkgconfigdatadir=$(datadir)/pkgconfig
38 pkgconfiglibdir=$(libdir)/pkgconfig
39 polkitpolicydir=$(datadir)/polkit-1/actions
40 bashcompletiondir=$(sysconfdir)/bash_completion.d
41
42 # Our own, non-special dirs
43 pkgsysconfdir=$(sysconfdir)/systemd
44 userunitdir=$(prefix)/lib/systemd/user
45 tmpfilesdir=$(prefix)/lib/tmpfiles.d
46 usergeneratordir=$(pkglibexecdir)/user-generators
47 pkgincludedir=$(includedir)/systemd
48
49 # And these are the special ones for /
50 rootdir=@rootdir@
51 rootbindir=$(rootdir)/bin
52 rootlibexecdir=$(rootdir)/lib/systemd
53 systemgeneratordir=$(rootlibexecdir)/system-generators
54 systemshutdowndir=$(rootlibexecdir)/system-shutdown
55 systemunitdir=$(rootdir)/lib/systemd/system
56
57 AM_CPPFLAGS = \
58         -include $(top_builddir)/config.h \
59         -DSYSTEM_CONFIG_FILE=\"$(pkgsysconfdir)/system.conf\" \
60         -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
61         -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
62         -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
63         -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
64         -DUSER_CONFIG_FILE=\"$(pkgsysconfdir)/user.conf\" \
65         -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
66         -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
67         -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
68         -DSYSTEMD_BINARY_PATH=\"$(rootbindir)/systemd\" \
69         -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
70         -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
71         -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
72         -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
73         -DRUNTIME_DIR=\"/run\" \
74         -DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \
75         -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
76         -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
77         -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
78         -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
79         -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
80         -I $(top_srcdir)/src
81
82 if TARGET_GENTOO
83 AM_CPPFLAGS += \
84         -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
85         -DKBD_SETFONT=\"/usr/bin/setfont\" \
86         -DDEFAULT_FONT=\"LatArCyrHeb-16\"
87 else
88 if TARGET_ARCH
89 AM_CPPFLAGS += \
90         -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
91         -DKBD_SETFONT=\"/usr/bin/setfont\" \
92         -DDEFAULT_FONT=\"LatArCyrHeb-16\"
93 else
94 if TARGET_FRUGALWARE
95 AM_CPPFLAGS += \
96         -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
97         -DKBD_SETFONT=\"/usr/bin/setfont\" \
98         -DDEFAULT_FONT=\"LatArCyrHeb-16\"
99 else
100 if TARGET_MANDRIVA
101 AM_CPPFLAGS += \
102         -DKBD_LOADKEYS=\"/bin/loadkeys\" \
103         -DKBD_SETFONT=\"/bin/setfont\" \
104         -DDEFAULT_FONT=\"LatArCyrHeb-16\"
105 else
106 if TARGET_MEEGO
107 AM_CPPFLAGS += \
108         -DKBD_LOADKEYS=\"/bin/loadkeys\" \
109         -DKBD_SETFONT=\"/bin/setfont\" \
110         -DDEFAULT_FONT=\"LatArCyrHeb-16\"
111 else
112 if TARGET_ANGSTROM
113 AM_CPPFLAGS += \
114         -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
115         -DKBD_SETFONT=\"/usr/bin/setfont\" \
116         -DDEFAULT_FONT=\"LatArCyrHeb-16\"
117 else
118 AM_CPPFLAGS += \
119         -DKBD_LOADKEYS=\"/bin/loadkeys\" \
120         -DKBD_SETFONT=\"/bin/setfont\" \
121         -DDEFAULT_FONT=\"latarcyrheb-sun16\"
122 else
123 if TARGET_MAGEIA
124 AM_CPPFLAGS += \
125         -DKBD_LOADKEYS=\"/bin/loadkeys\" \
126         -DKBD_SETFONT=\"/bin/setfont\" \
127         -DDEFAULT_FONT=\"LatArCyrHeb-16\"
128 endif
129 endif
130 endif
131 endif
132 endif
133 endif
134 endif
135
136 rootbin_PROGRAMS = \
137         systemd \
138         systemctl \
139         systemd-loginctl \
140         systemd-notify \
141         systemd-ask-password \
142         systemd-tty-ask-password-agent \
143         systemd-tmpfiles \
144         systemd-machine-id-setup \
145         systemd-journalctl
146
147 bin_PROGRAMS = \
148         systemd-cgls \
149         systemd-stdio-bridge \
150         systemd-nspawn
151
152 dist_bin_SCRIPTS = \
153         src/systemd-analyze
154
155 if HAVE_GTK
156 bin_PROGRAMS += \
157         systemadm \
158         systemd-gnome-ask-password-agent
159 endif
160
161 rootlibexec_PROGRAMS = \
162         systemd-stdout-syslog-bridge \
163         systemd-cgroups-agent \
164         systemd-initctl \
165         systemd-update-utmp \
166         systemd-random-seed \
167         systemd-shutdownd \
168         systemd-shutdown \
169         systemd-modules-load \
170         systemd-remount-api-vfs \
171         systemd-kmsg-syslogd \
172         systemd-vconsole-setup \
173         systemd-reply-password \
174         systemd-readahead-collect \
175         systemd-readahead-replay \
176         systemd-user-sessions \
177         systemd-fsck \
178         systemd-quotacheck \
179         systemd-timestamp \
180         systemd-ac-power \
181         systemd-detect-virt \
182         systemd-sysctl \
183         systemd-logind \
184         systemd-uaccess \
185         systemd-journald
186
187 if ENABLE_BINFMT
188 rootlibexec_PROGRAMS += \
189         systemd-binfmt
190 endif
191
192 if ENABLE_HOSTNAMED
193 rootlibexec_PROGRAMS += \
194         systemd-hostnamed
195 endif
196
197 if ENABLE_TIMEDATED
198 rootlibexec_PROGRAMS += \
199         systemd-timedated
200 endif
201
202 if ENABLE_LOCALED
203 rootlibexec_PROGRAMS += \
204         systemd-localed
205 endif
206
207 systemgenerator_PROGRAMS = \
208         systemd-getty-generator
209
210 if HAVE_LIBCRYPTSETUP
211 rootlibexec_PROGRAMS += \
212         systemd-cryptsetup
213
214 systemgenerator_PROGRAMS += \
215         systemd-cryptsetup-generator
216 endif
217
218 lib_LTLIBRARIES = \
219         libsystemd-daemon.la \
220         libsystemd-login.la
221
222 pkginclude_HEADERS = \
223         src/sd-daemon.h \
224         src/sd-login.h
225
226 noinst_PROGRAMS = \
227         test-engine \
228         test-job-type \
229         test-ns \
230         test-loopback \
231         test-hostname \
232         test-daemon \
233         test-cgroup \
234         test-env-replace \
235         test-strv \
236         test-login \
237         test-install \
238         test-id128 \
239         test-journal
240
241 if HAVE_PAM
242 pamlib_LTLIBRARIES = \
243         pam_systemd.la
244 endif
245
246 dist_pkgsysconf_DATA = \
247         src/system.conf \
248         src/user.conf \
249         src/systemd-logind.conf
250
251 dist_dbuspolicy_DATA = \
252         src/org.freedesktop.systemd1.conf \
253         src/org.freedesktop.login1.conf
254
255 if ENABLE_HOSTNAMED
256 dist_dbuspolicy_DATA += \
257         src/org.freedesktop.hostname1.conf
258 endif
259
260 if ENABLE_TIMEDATED
261 dist_dbuspolicy_DATA += \
262         src/org.freedesktop.timedate1.conf
263 endif
264
265 if ENABLE_LOCALED
266 dist_dbuspolicy_DATA += \
267         src/org.freedesktop.locale1.conf
268 endif
269
270 dist_dbussystemservice_DATA = \
271         src/org.freedesktop.systemd1.service \
272         src/org.freedesktop.login1.service
273
274 if ENABLE_HOSTNAMED
275 dist_dbussystemservice_DATA += \
276         src/org.freedesktop.hostname1.service
277 endif
278
279 if ENABLE_TIMEDATED
280 dist_dbussystemservice_DATA += \
281         src/org.freedesktop.timedate1.service
282 endif
283
284 if ENABLE_LOCALED
285 dist_dbussystemservice_DATA += \
286         src/org.freedesktop.locale1.service
287 endif
288
289 dist_udevrules_DATA = \
290         src/70-uaccess.rules \
291         src/71-seat.rules
292
293 nodist_udevrules_DATA = \
294         src/73-seat-late.rules \
295         src/99-systemd.rules
296
297 dbusinterface_DATA = \
298         org.freedesktop.systemd1.Manager.xml \
299         org.freedesktop.systemd1.Job.xml \
300         org.freedesktop.systemd1.Unit.xml \
301         org.freedesktop.systemd1.Service.xml \
302         org.freedesktop.systemd1.Socket.xml \
303         org.freedesktop.systemd1.Timer.xml \
304         org.freedesktop.systemd1.Target.xml \
305         org.freedesktop.systemd1.Device.xml \
306         org.freedesktop.systemd1.Mount.xml \
307         org.freedesktop.systemd1.Automount.xml \
308         org.freedesktop.systemd1.Snapshot.xml \
309         org.freedesktop.systemd1.Swap.xml \
310         org.freedesktop.systemd1.Path.xml
311
312 if ENABLE_HOSTNAMED
313 dbusinterface_DATA += \
314         org.freedesktop.hostname1.xml
315 endif
316
317 if ENABLE_TIMEDATED
318 dbusinterface_DATA += \
319         org.freedesktop.timedate1.xml
320 endif
321
322 if ENABLE_LOCALED
323 dbusinterface_DATA += \
324         org.freedesktop.locale1.xml
325 endif
326
327 dist_bashcompletion_DATA = \
328         src/systemd-bash-completion.sh
329
330 dist_tmpfiles_DATA = \
331         tmpfiles.d/systemd.conf \
332         tmpfiles.d/tmp.conf \
333         tmpfiles.d/x11.conf
334
335 if HAVE_SYSV_COMPAT
336 dist_tmpfiles_DATA += \
337         tmpfiles.d/legacy.conf
338 endif
339
340 dist_systemunit_DATA = \
341         units/graphical.target \
342         units/multi-user.target \
343         units/emergency.service \
344         units/emergency.target \
345         units/sysinit.target \
346         units/basic.target \
347         units/getty.target \
348         units/halt.target \
349         units/kexec.target \
350         units/local-fs.target \
351         units/local-fs-pre.target \
352         units/remote-fs.target \
353         units/remote-fs-pre.target \
354         units/cryptsetup.target \
355         units/network.target \
356         units/nss-lookup.target \
357         units/mail-transfer-agent.target \
358         units/http-daemon.target \
359         units/poweroff.target \
360         units/reboot.target \
361         units/rescue.target \
362         units/rpcbind.target \
363         units/time-sync.target \
364         units/shutdown.target \
365         units/final.target \
366         units/umount.target \
367         units/sigpwr.target \
368         units/sockets.target \
369         units/swap.target \
370         units/systemd-initctl.socket \
371         units/systemd-stdout-syslog-bridge.socket \
372         units/systemd-shutdownd.socket \
373         units/syslog.socket \
374         units/dev-hugepages.mount \
375         units/dev-mqueue.mount \
376         units/sys-kernel-config.mount \
377         units/sys-kernel-debug.mount \
378         units/sys-kernel-security.mount \
379         units/sys-fs-fuse-connections.mount \
380         units/var-run.mount \
381         units/media.mount \
382         units/remount-rootfs.service \
383         units/printer.target \
384         units/sound.target \
385         units/bluetooth.target \
386         units/smartcard.target \
387         units/systemd-readahead-done.timer \
388         units/systemd-tmpfiles-clean.timer \
389         units/quotaon.service \
390         units/systemd-ask-password-wall.path \
391         units/systemd-ask-password-console.path \
392         units/syslog.target
393
394 if HAVE_SYSV_COMPAT
395 dist_systemunit_DATA += \
396         units/var-lock.mount
397 endif
398
399 if ENABLE_BINFMT
400 dist_systemunit_DATA += \
401         units/proc-sys-fs-binfmt_misc.automount \
402         units/proc-sys-fs-binfmt_misc.mount
403 endif
404
405 nodist_systemunit_DATA = \
406         units/getty@.service \
407         units/serial-getty@.service \
408         units/console-shell.service \
409         units/systemd-initctl.service \
410         units/systemd-stdout-syslog-bridge.service \
411         units/systemd-shutdownd.service \
412         units/systemd-logind.service \
413         units/systemd-kmsg-syslogd.service \
414         units/systemd-modules-load.service \
415         units/systemd-vconsole-setup.service \
416         units/systemd-remount-api-vfs.service \
417         units/systemd-update-utmp-runlevel.service \
418         units/systemd-update-utmp-shutdown.service \
419         units/systemd-random-seed-save.service \
420         units/systemd-random-seed-load.service \
421         units/systemd-readahead-collect.service \
422         units/systemd-readahead-replay.service \
423         units/systemd-readahead-done.service \
424         units/systemd-tmpfiles-setup.service \
425         units/systemd-tmpfiles-clean.service \
426         units/systemd-user-sessions.service \
427         units/systemd-ask-password-wall.service \
428         units/systemd-ask-password-console.service \
429         units/systemd-sysctl.service \
430         units/halt.service \
431         units/poweroff.service \
432         units/reboot.service \
433         units/kexec.service \
434         units/fsck@.service \
435         units/fsck-root.service \
436         units/quotacheck.service \
437         units/rescue.service \
438         units/user@.service
439
440 if ENABLE_BINFMT
441 nodist_systemunit_DATA += \
442         units/systemd-binfmt.service
443 endif
444
445 if ENABLE_HOSTNAMED
446 nodist_systemunit_DATA += \
447         units/systemd-hostnamed.service
448 endif
449
450 if ENABLE_TIMEDATED
451 nodist_systemunit_DATA += \
452         units/systemd-timedated.service
453 endif
454
455 if ENABLE_LOCALED
456 nodist_systemunit_DATA += \
457         units/systemd-localed.service
458 endif
459
460 dist_userunit_DATA = \
461         units/user/default.target \
462         units/user/exit.target
463
464 nodist_userunit_DATA = \
465         units/user/exit.service
466
467 EXTRA_DIST = \
468         units/getty@.service.m4 \
469         units/serial-getty@.service.m4 \
470         units/console-shell.service.m4 \
471         units/rescue.service.m4 \
472         units/systemd-initctl.service.in \
473         units/systemd-stdout-syslog-bridge.service.in \
474         units/systemd-shutdownd.service.in \
475         units/systemd-logind.service.in \
476         units/systemd-kmsg-syslogd.service.in \
477         units/systemd-modules-load.service.in \
478         units/systemd-vconsole-setup.service.in \
479         units/systemd-remount-api-vfs.service.in \
480         units/systemd-update-utmp-runlevel.service.in \
481         units/systemd-update-utmp-shutdown.service.in \
482         units/systemd-random-seed-save.service.in \
483         units/systemd-random-seed-load.service.in \
484         units/systemd-readahead-collect.service.in \
485         units/systemd-readahead-replay.service.in \
486         units/systemd-readahead-done.service.in \
487         units/systemd-tmpfiles-setup.service.in \
488         units/systemd-tmpfiles-clean.service.in \
489         units/systemd-user-sessions.service.in \
490         units/systemd-ask-password-wall.service.in \
491         units/systemd-ask-password-console.service.in \
492         units/systemd-sysctl.service.in \
493         units/halt.service.in \
494         units/poweroff.service.in \
495         units/reboot.service.in \
496         units/kexec.service.in \
497         units/user/exit.service.in \
498         units/fsck@.service.in \
499         units/fsck-root.service.in \
500         units/quotacheck.service.in \
501         units/user@.service.in \
502         systemd.pc.in \
503         libsystemd-daemon.pc.in \
504         libsystemd-login.pc.in \
505         src/libsystemd-daemon.sym \
506         src/libsystemd-login.sym \
507         introspect.awk \
508         src/73-seat-late.rules.in \
509         src/99-systemd.rules.in \
510         man/custom-html.xsl
511
512 if ENABLE_BINFMT
513 EXTRA_DIST += \
514         units/systemd-binfmt.service.in
515 endif
516
517 if ENABLE_HOSTNAMED
518 EXTRA_DIST += \
519         units/systemd-hostnamed.service.in
520 endif
521
522 if ENABLE_TIMEDATED
523 EXTRA_DIST += \
524         units/systemd-timedated.service.in
525 endif
526
527 if ENABLE_LOCALED
528 EXTRA_DIST += \
529         units/systemd-localed.service.in
530 endif
531
532 if TARGET_FEDORA
533 dist_systemunit_DATA += \
534         units/fedora/prefdm.service \
535         units/fedora/rc-local.service \
536         units/fedora/halt-local.service
537 endif
538
539 if TARGET_MANDRIVA
540 dist_systemunit_DATA += \
541         units/mandriva/prefdm.service \
542         units/fedora/rc-local.service \
543         units/fedora/halt-local.service
544 endif
545
546 if TARGET_FRUGALWARE
547 dist_systemunit_DATA += \
548         units/frugalware/display-manager.service
549 endif
550
551 if TARGET_SUSE
552 dist_systemunit_DATA += \
553         units/suse/rc-local.service \
554         units/suse/halt-local.service
555 endif
556
557 if TARGET_MAGEIA
558 dist_systemunit_DATA += \
559         units/mageia/prefdm.service \
560         units/fedora/rc-local.service \
561         units/fedora/halt-local.service
562 endif
563
564 if HAVE_PLYMOUTH
565 dist_systemunit_DATA += \
566         units/plymouth-start.service \
567         units/plymouth-read-write.service \
568         units/plymouth-quit.service \
569         units/plymouth-quit-wait.service \
570         units/plymouth-reboot.service \
571         units/plymouth-kexec.service \
572         units/plymouth-poweroff.service \
573         units/plymouth-halt.service \
574         units/systemd-ask-password-plymouth.path
575
576 nodist_systemunit_DATA += \
577         units/systemd-ask-password-plymouth.service
578
579 EXTRA_DIST += \
580         units/systemd-ask-password-plymouth.service.in
581 endif
582
583 dist_doc_DATA = \
584         README \
585         LICENSE \
586         DISTRO_PORTING \
587         src/sd-daemon.h \
588         src/sd-daemon.c \
589         src/sd-readahead.h \
590         src/sd-readahead.c
591
592 pkgconfigdata_DATA = \
593         systemd.pc
594
595 pkgconfiglib_DATA = \
596         libsystemd-daemon.pc \
597         libsystemd-login.pc
598
599 # Passed through intltool only
600 polkitpolicy_in_files = \
601         src/org.freedesktop.login1.policy.in
602
603 if ENABLE_HOSTNAMED
604 polkitpolicy_in_files += \
605         src/org.freedesktop.hostname1.policy.in
606 endif
607
608 if ENABLE_TIMEDATED
609 polkitpolicy_in_files += \
610         src/org.freedesktop.timedate1.policy.in
611 endif
612
613 if ENABLE_LOCALED
614 polkitpolicy_in_files += \
615         src/org.freedesktop.locale1.policy.in
616 endif
617
618 # First passed through sed, followed by intltool
619 polkitpolicy_in_in_files = \
620         src/org.freedesktop.systemd1.policy.in.in
621
622 nodist_polkitpolicy_DATA = \
623         $(polkitpolicy_in_files:.policy.in=.policy) \
624         $(polkitpolicy_in_in_files:.policy.in.in=.policy)
625
626 EXTRA_DIST += \
627         $(polkitpolicy_in_files) \
628         $(polkitpolicy_in_in_files)
629
630 @INTLTOOL_POLICY_RULE@
631
632 noinst_LTLIBRARIES = \
633         libsystemd-basic.la \
634         libsystemd-core.la
635
636 libsystemd_basic_la_SOURCES = \
637         src/util.c \
638         src/virt.c \
639         src/label.c \
640         src/hashmap.c \
641         src/set.c \
642         src/strv.c \
643         src/conf-parser.c \
644         src/socket-util.c \
645         src/log.c \
646         src/ratelimit.c \
647         src/exit-status.c
648
649 libsystemd_basic_la_CFLAGS = \
650         $(AM_CFLAGS) \
651         $(SELINUX_CFLAGS)
652
653 libsystemd_basic_la_LIBADD = \
654         $(SELINUX_LIBS) \
655         $(CAP_LIBS)
656
657 libsystemd_core_la_SOURCES = \
658         src/unit.c \
659         src/job.c \
660         src/manager.c \
661         src/path-lookup.c \
662         src/load-fragment.c \
663         src/service.c \
664         src/automount.c \
665         src/mount.c \
666         src/swap.c \
667         src/device.c \
668         src/target.c \
669         src/snapshot.c \
670         src/socket.c \
671         src/timer.c \
672         src/path.c \
673         src/load-dropin.c \
674         src/execute.c \
675         src/utmp-wtmp.c \
676         src/dbus.c \
677         src/dbus-manager.c \
678         src/dbus-unit.c \
679         src/dbus-job.c \
680         src/dbus-service.c \
681         src/dbus-socket.c \
682         src/dbus-timer.c \
683         src/dbus-target.c \
684         src/dbus-mount.c \
685         src/dbus-automount.c \
686         src/dbus-swap.c \
687         src/dbus-snapshot.c \
688         src/dbus-device.c \
689         src/dbus-execute.c \
690         src/dbus-path.c \
691         src/cgroup.c \
692         src/mount-setup.c \
693         src/hostname-setup.c \
694         src/selinux-setup.c \
695         src/loopback-setup.c \
696         src/kmod-setup.c \
697         src/locale-setup.c \
698         src/machine-id-setup.c \
699         src/specifier.c \
700         src/unit-name.c \
701         src/fdset.c \
702         src/namespace.c \
703         src/tcpwrap.c \
704         src/cgroup-util.c \
705         src/condition.c \
706         src/dbus-common.c \
707         src/sd-daemon.c \
708         src/install.c \
709         src/cgroup-attr.c \
710         src/sd-id128.c
711
712 nodist_libsystemd_core_la_SOURCES = \
713         src/load-fragment-gperf.c \
714         src/load-fragment-gperf-nulstr.c
715
716 EXTRA_DIST += \
717         src/load-fragment-gperf.gperf.m4
718
719 libsystemd_core_la_CFLAGS = \
720         $(AM_CFLAGS) \
721         $(DBUS_CFLAGS) \
722         $(UDEV_CFLAGS) \
723         $(LIBWRAP_CFLAGS) \
724         $(PAM_CFLAGS) \
725         $(AUDIT_CFLAGS)
726
727 libsystemd_core_la_LIBADD = \
728         libsystemd-basic.la \
729         $(DBUS_LIBS) \
730         $(UDEV_LIBS) \
731         $(LIBWRAP_LIBS) \
732         $(PAM_LIBS) \
733         $(AUDIT_LIBS) \
734         $(CAP_LIBS)
735
736 # This is needed because automake is buggy in how it generates the
737 # rules for C programs, but not Vala programs.  We therefore can't
738 # list the .h files as dependencies if we want make dist to work.
739
740 EXTRA_DIST += \
741         ${libsystemd_basic_la_SOURCES:.c=.h} \
742         ${libsystemd_core_la_SOURCES:.c=.h} \
743         ${libsystemd_daemon_la_SOURCES:.c=.h} \
744         src/macro.h \
745         src/def.h \
746         src/ioprio.h \
747         src/missing.h \
748         src/list.h \
749         src/securebits.h \
750         src/linux/auto_dev-ioctl.h \
751         src/linux/fanotify.h \
752         src/initreq.h \
753         src/sd-readahead.h \
754         src/special.h \
755         src/dbus-common.h \
756         src/bus-errors.h \
757         src/cgroup-show.h \
758         src/build.h \
759         src/shutdownd.h \
760         src/umount.h \
761         src/readahead-common.h \
762         src/ask-password-api.h \
763         src/pager.h \
764         src/sysfs-show.h \
765         src/polkit.h \
766         src/logind.h \
767         src/logind-device.h \
768         src/logind-seat.h \
769         src/logind-session.h \
770         src/logind-user.h \
771         src/logind-acl.h \
772         src/dbus-loop.h \
773         src/spawn-agent.h
774
775 MANPAGES = \
776         man/systemd.1 \
777         man/systemctl.1 \
778         man/systemadm.1 \
779         man/systemd-cgls.1 \
780         man/systemd-nspawn.1 \
781         man/systemd-tmpfiles.8 \
782         man/systemd-notify.1 \
783         man/sd_notify.3 \
784         man/sd_readahead.3 \
785         man/sd_booted.3 \
786         man/sd_listen_fds.3 \
787         man/sd_is_fifo.3 \
788         man/systemd.unit.5 \
789         man/systemd.service.5 \
790         man/systemd.socket.5 \
791         man/systemd.mount.5 \
792         man/systemd.automount.5 \
793         man/systemd.swap.5 \
794         man/systemd.timer.5 \
795         man/systemd.path.5 \
796         man/systemd.target.5 \
797         man/systemd.device.5 \
798         man/systemd.snapshot.5 \
799         man/systemd.exec.5 \
800         man/daemon.7 \
801         man/sd-daemon.7 \
802         man/sd-readahead.7 \
803         man/sd-login.7 \
804         man/runlevel.8 \
805         man/telinit.8 \
806         man/halt.8 \
807         man/shutdown.8 \
808         man/pam_systemd.8 \
809         man/systemd.conf.5 \
810         man/systemd-logind.conf.5 \
811         man/tmpfiles.d.5 \
812         man/hostname.5 \
813         man/timezone.5 \
814         man/machine-id.5 \
815         man/vconsole.conf.5 \
816         man/locale.conf.5 \
817         man/os-release.5 \
818         man/machine-info.5 \
819         man/modules-load.d.5 \
820         man/sysctl.d.5 \
821         man/systemd-ask-password.1 \
822         man/systemd-loginctl.1 \
823         man/sd_pid_get_session.3 \
824         man/sd_uid_get_state.3 \
825         man/sd_session_is_active.3 \
826         man/sd_seat_get_active.3 \
827         man/sd_get_seats.3 \
828         man/sd_login_monitor_new.3
829
830 if ENABLE_BINFMT
831 MANPAGES += \
832         man/binfmt.d.5
833 endif
834
835 MANPAGES_ALIAS = \
836         man/reboot.8 \
837         man/poweroff.8 \
838         man/sd_is_socket.3 \
839         man/sd_is_socket_unix.3 \
840         man/sd_is_socket_inet.3 \
841         man/sd_is_mq.3 \
842         man/sd_notifyf.3 \
843         man/init.1 \
844         man/sd_session_get_uid.3 \
845         man/sd_session_get_seat.3 \
846         man/sd_pid_get_owner_uid.3 \
847         man/sd_uid_is_on_seat.3 \
848         man/sd_uid_get_sessions.3 \
849         man/sd_uid_get_seats.3 \
850         man/sd_seat_get_sessions.3 \
851         man/sd_seat_can_multi_session.3 \
852         man/sd_get_sessions.3 \
853         man/sd_get_uids.3 \
854         man/sd_login_monitor_unref.3 \
855         man/sd_login_monitor_flush.3 \
856         man/sd_login_monitor_get_fd.3
857
858 man/reboot.8: man/halt.8
859 man/poweroff.8: man/halt.8
860 man/sd_is_socket.3: man/sd_is_fifo.3
861 man/sd_is_socket_unix.3: man/sd_is_fifo.3
862 man/sd_is_socket_inet.3: man/sd_is_fifo.3
863 man/sd_is_mq.3: man/sd_is_fifo.3
864 man/sd_notifyf.3: man/sd_notify.3
865 man/init.1: man/systemd.1
866 man/sd_session_get_uid.3: man/sd_session_is_active.3
867 man/sd_session_get_seat.3: man/sd_session_is_active.3
868 man/sd_pid_get_owner_uid.3: man/sd_pid_get_session.3
869 man/sd_uid_is_on_seat.3: man/sd_uid_get_state.3
870 man/sd_uid_get_sessions.3: man/sd_uid_get_state.3
871 man/sd_uid_get_seats.3: man/sd_uid_get_state.3
872 man/sd_seat_get_sessions.3: man/sd_seat_get_active.3
873 man/sd_seat_can_multi_session.3: man/sd_seat_get_active.3
874 man/sd_get_sessions.3: man/sd_get_seats.3
875 man/sd_get_uids.3: man/sd_get_seats.3
876 man/sd_login_monitor_unref.3: man/sd_login_monitor_new.3
877 man/sd_login_monitor_flush.3: man/sd_login_monitor_new.3
878 man/sd_login_monitor_get_fd.3: man/sd_login_monitor_new.3
879
880 dist_man_MANS = \
881         $(MANPAGES) \
882         $(MANPAGES_ALIAS)
883
884 nodist_man_MANS = \
885         man/systemd.special.7
886
887 XML_FILES = \
888         ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
889
890 XML_IN_FILES = \
891         ${patsubst %.1,%.xml.in,${patsubst %.3,%.xml.in,${patsubst %.5,%.xml.in,${patsubst %.7,%.xml.in,${patsubst %.8,%.xml.in,$(nodist_man_MANS)}}}}}
892
893 dist_noinst_DATA = \
894         ${XML_FILES:.xml=.html}
895
896 nodist_noinst_DATA = \
897         ${XML_IN_FILES:.xml.in=.html}
898
899 EXTRA_DIST += \
900         $(XML_FILES) \
901         $(XML_IN_FILES) \
902         ${nodist_man_MANS:=.in} \
903         ${XML_IN_FILES:.xml.in=.html.in}
904
905 systemd_SOURCES = \
906         src/main.c
907
908 systemd_CFLAGS = \
909         $(AM_CFLAGS) \
910         $(DBUS_CFLAGS) \
911         $(UDEV_CFLAGS)
912
913 systemd_LDADD = \
914         libsystemd-core.la
915
916 test_engine_SOURCES = \
917         src/test-engine.c
918
919 test_engine_CFLAGS = $(systemd_CFLAGS)
920 test_engine_LDADD = $(systemd_LDADD)
921
922 test_job_type_SOURCES = \
923         src/test-job-type.c
924
925 test_job_type_CFLAGS = $(systemd_CFLAGS)
926 test_job_type_LDADD = $(systemd_LDADD)
927
928 test_ns_SOURCES = \
929         src/test-ns.c
930
931 test_ns_CFLAGS = $(systemd_CFLAGS)
932 test_ns_LDADD = $(systemd_LDADD)
933
934 test_loopback_SOURCES = \
935         src/test-loopback.c \
936         src/loopback-setup.c
937
938 test_loopback_LDADD = \
939         libsystemd-basic.la
940
941 test_hostname_SOURCES = \
942         src/test-hostname.c \
943         src/hostname-setup.c
944
945 test_hostname_LDADD = \
946         libsystemd-basic.la
947
948 test_daemon_SOURCES = \
949         src/test-daemon.c
950
951 test_daemon_LDADD = \
952         libsystemd-basic.la \
953         libsystemd-daemon.la
954
955 test_cgroup_SOURCES = \
956         src/test-cgroup.c \
957         src/cgroup-util.c
958
959 test_cgroup_CFLAGS = \
960         $(AM_CFLAGS)
961
962 test_cgroup_LDADD = \
963         libsystemd-basic.la
964
965 test_env_replace_SOURCES = \
966         src/test-env-replace.c
967
968 test_env_replace_CFLAGS = \
969         $(AM_CFLAGS)
970
971 test_env_replace_LDADD = \
972         libsystemd-basic.la
973
974 test_strv_SOURCES = \
975         src/test-strv.c \
976         src/specifier.c
977
978 test_strv_CFLAGS = \
979         $(AM_CFLAGS)
980
981 test_strv_LDADD = \
982         libsystemd-basic.la
983
984 test_login_SOURCES = \
985         src/test-login.c
986
987 test_login_CFLAGS = \
988         $(AM_CFLAGS)
989
990 test_login_LDADD = \
991         libsystemd-basic.la \
992         libsystemd-login.la
993
994 test_install_SOURCES = \
995         src/test-install.c \
996         src/install.c \
997         src/path-lookup.c \
998         src/unit-name.c
999
1000 test_install_CFLAGS = \
1001         $(AM_CFLAGS) \
1002         $(DBUS_CFLAGS)
1003
1004 test_install_LDADD = \
1005         libsystemd-basic.la
1006
1007 test_id128_SOURCES = \
1008         src/test-id128.c \
1009         src/sd-id128.c
1010
1011 test_id128_CFLAGS = \
1012         $(AM_CFLAGS)
1013
1014 test_id128_LDADD = \
1015         libsystemd-basic.la
1016
1017 test_journal_SOURCES = \
1018         src/journal/test-journal.c \
1019         src/journal/sd-journal.c \
1020         src/journal/journal-file.c \
1021         src/journal/lookup3.c \
1022         src/journal/journal-send.c \
1023         src/sd-id128.c
1024
1025 test_journal_CFLAGS = \
1026         $(AM_CFLAGS)
1027
1028 test_journal_LDADD = \
1029         libsystemd-basic.la
1030
1031 systemd_journald_SOURCES = \
1032         src/journal/journald.c \
1033         src/journal/sd-journal.c \
1034         src/journal/journal-file.c \
1035         src/journal/lookup3.c \
1036         src/sd-id128.c \
1037         src/acl-util.c \
1038         src/cgroup-util.c
1039
1040 systemd_journald_CFLAGS = \
1041         $(AM_CFLAGS) \
1042         $(ACL_CFLAGS)
1043
1044 systemd_journald_LDADD = \
1045         libsystemd-basic.la \
1046         libsystemd-daemon.la \
1047         $(ACL_LIBS)
1048
1049 systemd_journalctl_SOURCES = \
1050         src/journal/journalctl.c \
1051         src/journal/sd-journal.c \
1052         src/journal/journal-file.c \
1053         src/journal/lookup3.c \
1054         src/sd-id128.c
1055
1056 systemd_journalctl_CFLAGS = \
1057         $(AM_CFLAGS)
1058
1059 systemd_journalctl_LDADD = \
1060         libsystemd-basic.la
1061
1062 systemd_stdout_syslog_bridge_SOURCES = \
1063         src/stdout-syslog-bridge.c \
1064         src/tcpwrap.c
1065
1066 systemd_stdout_syslog_bridge_LDADD = \
1067         libsystemd-basic.la \
1068         libsystemd-daemon.la \
1069         $(LIBWRAP_LIBS)
1070
1071 systemd_initctl_SOURCES = \
1072         src/initctl.c \
1073         src/dbus-common.c
1074
1075 systemd_initctl_CFLAGS = \
1076         $(AM_CFLAGS) \
1077         $(DBUS_CFLAGS)
1078
1079 systemd_initctl_LDADD = \
1080         libsystemd-basic.la \
1081         libsystemd-daemon.la \
1082         $(DBUS_LIBS)
1083
1084 systemd_update_utmp_SOURCES = \
1085         src/update-utmp.c \
1086         src/dbus-common.c \
1087         src/utmp-wtmp.c
1088
1089 systemd_update_utmp_CFLAGS = \
1090         $(AM_CFLAGS) \
1091         $(DBUS_CFLAGS) \
1092         $(AUDIT_CFLAGS)
1093
1094 systemd_update_utmp_LDADD = \
1095         libsystemd-basic.la \
1096         $(DBUS_LIBS) \
1097         $(AUDIT_LIBS)
1098
1099 systemd_random_seed_SOURCES = \
1100         src/random-seed.c
1101
1102 systemd_random_seed_CFLAGS = \
1103         $(AM_CFLAGS)
1104
1105 systemd_random_seed_LDADD = \
1106         libsystemd-basic.la
1107
1108 systemd_shutdownd_SOURCES = \
1109         src/utmp-wtmp.c \
1110         src/shutdownd.c
1111
1112 systemd_shutdownd_CFLAGS = \
1113         $(AM_CFLAGS)
1114
1115 systemd_shutdownd_LDADD = \
1116         libsystemd-basic.la \
1117         libsystemd-daemon.la
1118
1119 systemd_hostnamed_SOURCES = \
1120         src/hostnamed.c \
1121         src/dbus-common.c \
1122         src/polkit.c
1123
1124 systemd_hostnamed_CFLAGS = \
1125         $(AM_CFLAGS) \
1126         $(DBUS_CFLAGS)
1127
1128 systemd_hostnamed_LDADD = \
1129         libsystemd-basic.la \
1130         libsystemd-daemon.la \
1131         $(DBUS_LIBS)
1132
1133 systemd_localed_SOURCES = \
1134         src/localed.c \
1135         src/dbus-common.c \
1136         src/polkit.c
1137
1138 systemd_localed_CFLAGS = \
1139         $(AM_CFLAGS) \
1140         $(DBUS_CFLAGS)
1141
1142 systemd_localed_LDADD = \
1143         libsystemd-basic.la \
1144         libsystemd-daemon.la \
1145         $(DBUS_LIBS)
1146
1147 dist_pkgdata_DATA = \
1148         src/kbd-model-map
1149
1150 dist_noinst_SCRIPT = \
1151         src/generate-kbd-model-map
1152
1153 systemd_timedated_SOURCES = \
1154         src/timedated.c \
1155         src/dbus-common.c \
1156         src/polkit.c
1157
1158 systemd_timedated_CFLAGS = \
1159         $(AM_CFLAGS) \
1160         $(DBUS_CFLAGS)
1161
1162 systemd_timedated_LDADD = \
1163         libsystemd-basic.la \
1164         libsystemd-daemon.la \
1165         $(DBUS_LIBS)
1166
1167 systemd_logind_SOURCES = \
1168         src/logind.c \
1169         src/logind-dbus.c \
1170         src/logind-device.c \
1171         src/logind-seat.c \
1172         src/logind-seat-dbus.c \
1173         src/logind-session.c \
1174         src/logind-session-dbus.c \
1175         src/logind-user.c \
1176         src/logind-user-dbus.c \
1177         src/dbus-common.c \
1178         src/dbus-loop.c \
1179         src/cgroup-util.c \
1180         src/polkit.c
1181
1182 nodist_systemd_logind_SOURCES = \
1183         src/logind-gperf.c
1184
1185 EXTRA_DIST += \
1186         src/logind-gperf.gperf
1187
1188 systemd_logind_CFLAGS = \
1189         $(AM_CFLAGS) \
1190         $(DBUS_CFLAGS) \
1191         $(UDEV_CFLAGS) \
1192         $(ACL_CFLAGS)
1193
1194 systemd_logind_LDADD = \
1195         libsystemd-basic.la \
1196         libsystemd-daemon.la \
1197         $(DBUS_LIBS) \
1198         $(UDEV_LIBS) \
1199         $(ACL_LIBS)
1200
1201 systemd_uaccess_SOURCES = \
1202         src/uaccess.c
1203
1204 if HAVE_ACL
1205 systemd_logind_SOURCES += \
1206         src/logind-acl.c \
1207         src/acl-util.c
1208
1209 systemd_uaccess_SOURCES += \
1210         src/logind-acl.c \
1211         src/acl-util.c
1212 endif
1213
1214 systemd_uaccess_CFLAGS = \
1215         $(AM_CFLAGS) \
1216         $(UDEV_CFLAGS) \
1217         $(ACL_CFLAGS)
1218
1219 systemd_uaccess_LDADD = \
1220         libsystemd-basic.la \
1221         libsystemd-daemon.la \
1222         libsystemd-login.la \
1223         $(UDEV_LIBS) \
1224         $(ACL_LIBS)
1225
1226 systemd_shutdown_SOURCES = \
1227         src/mount-setup.c \
1228         src/umount.c \
1229         src/shutdown.c
1230
1231 systemd_shutdown_CFLAGS = \
1232         $(AM_CFLAGS) \
1233         $(UDEV_CFLAGS)
1234
1235 systemd_shutdown_LDADD = \
1236         libsystemd-basic.la \
1237         $(UDEV_LIBS)
1238
1239 systemd_modules_load_SOURCES = \
1240         src/modules-load.c
1241
1242 systemd_modules_load_CFLAGS = \
1243         $(AM_CFLAGS)
1244
1245 systemd_modules_load_LDADD = \
1246         libsystemd-basic.la
1247
1248 systemd_tmpfiles_SOURCES = \
1249         src/tmpfiles.c
1250
1251 systemd_tmpfiles_CFLAGS = \
1252         $(AM_CFLAGS)
1253
1254 systemd_tmpfiles_LDADD = \
1255         libsystemd-basic.la
1256
1257 systemd_machine_id_setup_SOURCES = \
1258         src/machine-id-setup.c \
1259         src/machine-id-main.c \
1260         src/sd-id128.c
1261
1262 systemd_machine_id_setup_CFLAGS = \
1263         $(AM_CFLAGS)
1264
1265 systemd_machine_id_setup_LDADD = \
1266         libsystemd-basic.la
1267
1268 systemd_sysctl_SOURCES = \
1269         src/sysctl.c
1270
1271 systemd_sysctl_CFLAGS = \
1272         $(AM_CFLAGS)
1273
1274 systemd_sysctl_LDADD = \
1275         libsystemd-basic.la
1276
1277 systemd_binfmt_SOURCES = \
1278         src/binfmt.c
1279
1280 systemd_binfmt_CFLAGS = \
1281         $(AM_CFLAGS)
1282
1283 systemd_binfmt_LDADD = \
1284         libsystemd-basic.la
1285
1286 systemd_fsck_SOURCES = \
1287         src/fsck.c \
1288         src/dbus-common.c
1289
1290 systemd_fsck_CFLAGS = \
1291         $(AM_CFLAGS) \
1292         $(UDEV_CFLAGS) \
1293         $(DBUS_CFLAGS)
1294
1295 systemd_fsck_LDADD = \
1296         libsystemd-basic.la \
1297         $(UDEV_LIBS) \
1298         $(DBUS_LIBS)
1299
1300 systemd_quotacheck_SOURCES = \
1301         src/quotacheck.c
1302
1303 systemd_quotacheck_CFLAGS = \
1304         $(AM_CFLAGS)
1305
1306 systemd_quotacheck_LDADD = \
1307         libsystemd-basic.la
1308
1309 systemd_timestamp_SOURCES = \
1310         src/timestamp.c
1311
1312 systemd_timestamp_CFLAGS = \
1313         $(AM_CFLAGS)
1314
1315 systemd_timestamp_LDADD = \
1316         libsystemd-basic.la
1317
1318 systemd_ac_power_SOURCES = \
1319         src/ac-power.c
1320
1321 systemd_ac_power_CFLAGS = \
1322         $(AM_CFLAGS) \
1323         $(UDEV_CFLAGS)
1324
1325 systemd_ac_power_LDADD = \
1326         libsystemd-basic.la \
1327         $(UDEV_LIBS)
1328
1329 systemd_detect_virt_SOURCES = \
1330         src/detect-virt.c
1331
1332 systemd_detect_virt_CFLAGS = \
1333         $(AM_CFLAGS)
1334
1335 systemd_detect_virt_LDADD = \
1336         libsystemd-basic.la
1337
1338 systemd_cryptsetup_SOURCES = \
1339         src/cryptsetup.c \
1340         src/ask-password-api.c
1341
1342 systemd_cryptsetup_CFLAGS = \
1343         $(LIBCRYPTSETUP_CFLAGS) \
1344         $(UDEV_CFLAGS) \
1345         $(AM_CFLAGS)
1346
1347 systemd_cryptsetup_LDADD = \
1348         $(LIBCRYPTSETUP_LIBS) \
1349         $(UDEV_LIBS) \
1350         libsystemd-basic.la
1351
1352 systemd_cryptsetup_generator_SOURCES = \
1353         src/cryptsetup-generator.c \
1354         src/unit-name.c
1355
1356 systemd_cryptsetup_generator_CFLAGS = \
1357         $(AM_CFLAGS)
1358
1359 systemd_cryptsetup_generator_LDADD = \
1360         libsystemd-basic.la
1361
1362 systemd_getty_generator_SOURCES = \
1363         src/getty-generator.c \
1364         src/unit-name.c
1365
1366 systemd_getty_generator_CFLAGS = \
1367         $(AM_CFLAGS)
1368
1369 systemd_getty_generator_LDADD = \
1370         libsystemd-basic.la
1371
1372 systemd_user_sessions_SOURCES = \
1373         src/user-sessions.c \
1374         src/cgroup-util.c
1375
1376 systemd_user_sessions_CFLAGS = \
1377         $(AM_CFLAGS)
1378
1379 systemd_user_sessions_LDADD = \
1380         libsystemd-basic.la
1381
1382 systemd_vconsole_setup_SOURCES = \
1383         src/vconsole-setup.c
1384
1385 systemd_vconsole_setup_CFLAGS = \
1386         $(AM_CFLAGS)
1387
1388 systemd_vconsole_setup_LDADD = \
1389         libsystemd-basic.la
1390
1391 systemd_remount_api_vfs_SOURCES = \
1392         src/remount-api-vfs.c \
1393         src/mount-setup.c \
1394         src/exit-status.c
1395
1396 systemd_remount_api_vfs_CFLAGS = \
1397         $(AM_CFLAGS)
1398
1399 systemd_remount_api_vfs_LDADD = \
1400         libsystemd-basic.la
1401
1402 systemd_cgroups_agent_SOURCES = \
1403         src/cgroups-agent.c \
1404         src/dbus-common.c
1405
1406 systemd_cgroups_agent_CFLAGS = \
1407         $(AM_CFLAGS) \
1408         $(DBUS_CFLAGS)
1409
1410 systemd_cgroups_agent_LDADD = \
1411         libsystemd-basic.la \
1412         $(DBUS_LIBS)
1413
1414 systemd_kmsg_syslogd_SOURCES = \
1415         src/kmsg-syslogd.c \
1416         src/fdset.c
1417
1418 systemd_kmsg_syslogd_CFLAGS = \
1419         $(AM_CFLAGS)
1420
1421 systemd_kmsg_syslogd_LDADD = \
1422         libsystemd-basic.la \
1423         libsystemd-daemon.la
1424
1425 systemctl_SOURCES = \
1426         src/systemctl.c \
1427         src/utmp-wtmp.c \
1428         src/dbus-common.c \
1429         src/path-lookup.c \
1430         src/cgroup-show.c \
1431         src/cgroup-util.c \
1432         src/exit-status.c \
1433         src/unit-name.c \
1434         src/pager.c \
1435         src/install.c \
1436         src/spawn-agent.c
1437
1438 systemctl_CFLAGS = \
1439         $(AM_CFLAGS) \
1440         $(DBUS_CFLAGS)
1441
1442 systemctl_LDADD = \
1443         libsystemd-basic.la \
1444         libsystemd-daemon.la \
1445         $(DBUS_LIBS)
1446
1447 systemd_loginctl_SOURCES = \
1448         src/loginctl.c \
1449         src/dbus-common.c \
1450         src/cgroup-show.c \
1451         src/cgroup-util.c \
1452         src/pager.c \
1453         src/sysfs-show.c
1454
1455 systemd_loginctl_CFLAGS = \
1456         $(AM_CFLAGS) \
1457         $(DBUS_CFLAGS) \
1458         $(UDEV_CFLAGS)
1459
1460 systemd_loginctl_LDADD = \
1461         libsystemd-basic.la \
1462         $(DBUS_LIBS) \
1463         $(UDEV_LIBS)
1464
1465 systemd_notify_SOURCES = \
1466         src/notify.c \
1467         src/sd-readahead.c
1468
1469 systemd_notify_LDADD = \
1470         libsystemd-basic.la \
1471         libsystemd-daemon.la
1472
1473 systemd_ask_password_SOURCES = \
1474         src/ask-password.c \
1475         src/ask-password-api.c
1476
1477 systemd_ask_password_LDADD = \
1478         libsystemd-basic.la
1479
1480 systemd_reply_password_SOURCES = \
1481         src/reply-password.c
1482
1483 systemd_reply_password_LDADD = \
1484         libsystemd-basic.la
1485
1486 systemd_readahead_collect_SOURCES = \
1487         src/readahead-collect.c \
1488         src/readahead-common.c
1489
1490 systemd_readahead_collect_CFLAGS = \
1491         $(UDEV_CFLAGS)
1492
1493 systemd_readahead_collect_LDADD = \
1494         libsystemd-basic.la \
1495         libsystemd-daemon.la \
1496         $(UDEV_LIBS)
1497
1498 systemd_readahead_replay_SOURCES = \
1499         src/readahead-replay.c \
1500         src/readahead-common.c
1501
1502 systemd_readahead_replay_CFLAGS = \
1503         $(UDEV_CFLAGS)
1504
1505 systemd_readahead_replay_LDADD = \
1506         libsystemd-basic.la \
1507         libsystemd-daemon.la \
1508         $(UDEV_LIBS)
1509
1510 systemd_cgls_SOURCES = \
1511         src/cgls.c \
1512         src/cgroup-show.c \
1513         src/cgroup-util.c \
1514         src/pager.c
1515
1516 systemd_cgls_CFLAGS = \
1517         $(AM_CFLAGS)
1518
1519 systemd_cgls_LDADD = \
1520         libsystemd-basic.la
1521
1522 systemd_nspawn_SOURCES = \
1523         src/nspawn.c \
1524         src/cgroup-util.c \
1525         src/loopback-setup.c
1526
1527 systemd_nspawn_CFLAGS = \
1528         $(AM_CFLAGS)
1529
1530 systemd_nspawn_LDADD = \
1531         libsystemd-basic.la \
1532         libsystemd-daemon.la
1533
1534 systemd_stdio_bridge_SOURCES = \
1535         src/bridge.c
1536
1537 systemd_stdio_bridge_LDADD = \
1538         libsystemd-basic.la
1539
1540 systemadm_SOURCES = \
1541         src/systemadm.vala \
1542         src/systemd-interfaces.vala \
1543         src/wraplabel.vala
1544
1545 systemadm_CFLAGS = \
1546         $(AM_CFLAGS) \
1547         $(GTK_CFLAGS) \
1548         -Wno-unused-variable \
1549         -Wno-unused-function \
1550         -Wno-shadow \
1551         -Wno-format-nonliteral
1552
1553 systemadm_VALAFLAGS = \
1554         --pkg=posix \
1555         --pkg=gtk+-2.0 \
1556         --pkg=gee-1.0 \
1557         -g
1558
1559 systemadm_LDADD = \
1560         $(GTK_LIBS)
1561
1562 systemd_gnome_ask_password_agent_SOURCES = \
1563         src/gnome-ask-password-agent.vala
1564
1565 systemd_gnome_ask_password_agent_CFLAGS = \
1566         $(AM_CFLAGS) \
1567         $(LIBNOTIFY_CFLAGS) \
1568         $(GTK_CFLAGS) \
1569         -Wno-unused-variable \
1570         -Wno-unused-function \
1571         -Wno-shadow \
1572         -Wno-format-nonliteral
1573
1574 systemd_gnome_ask_password_agent_VALAFLAGS = \
1575         --pkg=posix \
1576         --pkg=gtk+-2.0 \
1577         --pkg=linux \
1578         --pkg=gio-unix-2.0 \
1579         --pkg=libnotify
1580 if LIBNOTIFY07
1581 systemd_gnome_ask_password_agent_VALAFLAGS += \
1582         -D LIBNOTIFY07
1583 endif
1584 systemd_gnome_ask_password_agent_VALAFLAGS += \
1585         -g
1586
1587 systemd_gnome_ask_password_agent_LDADD = \
1588         $(LIBNOTIFY_LIBS) \
1589         $(GTK_LIBS)
1590
1591 systemd_tty_ask_password_agent_SOURCES = \
1592         src/tty-ask-password-agent.c \
1593         src/ask-password-api.c \
1594         src/utmp-wtmp.c
1595
1596 systemd_tty_ask_password_agent_LDADD = \
1597         libsystemd-basic.la
1598
1599 pam_systemd_la_SOURCES = \
1600         src/pam-module.c \
1601         src/dbus-common.c
1602
1603 pam_systemd_la_CFLAGS = \
1604         $(AM_CFLAGS) \
1605         $(PAM_CFLAGS) \
1606         $(DBUS_CFLAGS) \
1607         -fvisibility=hidden
1608
1609 pam_systemd_la_LDFLAGS = \
1610         -module \
1611         -export-dynamic \
1612         -avoid-version \
1613         -shared \
1614         -export-symbols-regex '^pam_sm_.*'
1615
1616 pam_systemd_la_LIBADD = \
1617         libsystemd-basic.la \
1618         libsystemd-daemon.la \
1619         $(PAM_LIBS) \
1620         $(DBUS_LIBS)
1621
1622 libsystemd_daemon_la_SOURCES = \
1623         src/sd-daemon.c
1624
1625 libsystemd_daemon_la_CFLAGS = \
1626         $(AM_CFLAGS) \
1627         -fvisibility=hidden \
1628         -DSD_EXPORT_SYMBOLS
1629
1630 libsystemd_daemon_la_LDFLAGS = \
1631         -shared \
1632         -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
1633         -Wl,--version-script=$(top_srcdir)/src/libsystemd-daemon.sym
1634
1635 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1636 libsystemd-daemon-install-hook:
1637         if test "$(libdir)" != "$(rootlibdir)"; then \
1638                 mkdir -p $(DESTDIR)$(rootlibdir) && \
1639                 so_img_name=$$(readlink $(DESTDIR)$(libdir)/libsystemd-daemon.so) && \
1640                 so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
1641                 ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libsystemd-daemon.so && \
1642                 mv $(DESTDIR)$(libdir)/libsystemd-daemon.so.* $(DESTDIR)$(rootlibdir); \
1643         fi
1644
1645 libsystemd-daemon-uninstall-hook:
1646         rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
1647
1648 libsystemd_login_la_SOURCES = \
1649         src/sd-login.c \
1650         src/cgroup-util.c
1651
1652 libsystemd_login_la_CFLAGS = \
1653         $(AM_CFLAGS) \
1654         -fvisibility=hidden
1655
1656 libsystemd_login_la_LDFLAGS = \
1657         -shared \
1658         -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
1659         -Wl,--version-script=$(top_srcdir)/src/libsystemd-login.sym
1660
1661 libsystemd_login_la_LIBADD = \
1662         libsystemd-basic.la
1663
1664 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1665 libsystemd-login-install-hook:
1666         if test "$(libdir)" != "$(rootlibdir)"; then \
1667                 mkdir -p $(DESTDIR)$(rootlibdir) && \
1668                 so_img_name=$$(readlink $(DESTDIR)$(libdir)/libsystemd-login.so) && \
1669                 so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
1670                 ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libsystemd-login.so && \
1671                 mv $(DESTDIR)$(libdir)/libsystemd-login.so.* $(DESTDIR)$(rootlibdir); \
1672         fi
1673
1674 libsystemd-login-uninstall-hook:
1675         rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
1676
1677 SED_PROCESS = \
1678         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1679         $(SED)  -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \
1680                 -e 's,@rootbindir\@,$(rootbindir),g' \
1681                 -e 's,@bindir\@,$(bindir),g' \
1682                 -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \
1683                 -e 's,@SYSTEMD_NOTIFY\@,$(rootbindir)/systemd-notify,g' \
1684                 -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
1685                 -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
1686                 -e 's,@pkglibexecdir\@,$(pkglibexecdir),g' \
1687                 -e 's,@systemunitdir\@,$(systemunitdir),g' \
1688                 -e 's,@userunitdir\@,$(userunitdir),g' \
1689                 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
1690                 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
1691                 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \
1692                 -e 's,@prefix\@,$(prefix),g' \
1693                 -e 's,@exec_prefix\@,$(exec_prefix),g' \
1694                 -e 's,@libdir\@,$(libdir),g' \
1695                 -e 's,@includedir\@,$(includedir),g' \
1696                 < $< > $@ || rm $@
1697
1698 units/%: units/%.in Makefile
1699         $(SED_PROCESS)
1700
1701 man/%: man/%.in Makefile
1702         $(SED_PROCESS)
1703
1704 %.pc: %.pc.in Makefile
1705         $(SED_PROCESS)
1706
1707 src/%.policy.in: src/%.policy.in.in Makefile
1708         $(SED_PROCESS)
1709
1710 src/%.rules: src/%.rules.in Makefile
1711         $(SED_PROCESS)
1712
1713 src/%.c: src/%.gperf
1714         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1715         $(GPERF) < $< > $@
1716
1717 src/%: src/%.m4
1718         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1719         $(M4) -P $(M4_DEFINES) < $< > $@ || rm $@
1720
1721 src/load-fragment-gperf-nulstr.c: src/load-fragment-gperf.gperf
1722         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1723         $(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 ";" }' < $< > $@ || rm $@
1724
1725 M4_PROCESS_SYSTEM = \
1726         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1727         $(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@ || rm $@
1728
1729 M4_PROCESS_USER = \
1730         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1731         $(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@ || rm $@
1732
1733 units/%: units/%.m4 Makefile
1734         $(M4_PROCESS_SYSTEM)
1735
1736 units/user/%: units/%.m4 Makefile
1737         $(M4_PROCESS_USER)
1738
1739 CLEANFILES = \
1740         $(nodist_systemunit_DATA) \
1741         $(nodist_userunit_DATA) \
1742         $(nodist_man_MANS) \
1743         ${XML_IN_FILES:.xml.in=.html} \
1744         $(pkgconfigdata_DATA) \
1745         $(pkgconfiglib_DATA) \
1746         $(nodist_polkitpolicy_DATA) \
1747         src/73-seat-late.rules \
1748         src/99-systemd.rules \
1749         src/load-fragment-gperf.gperf \
1750         src/load-fragment-gperf.c \
1751         src/load-fragment-gperf-nulstr.c \
1752         src/logind-gperf.c
1753
1754 if HAVE_VALAC
1755 CLEANFILES += \
1756         ${systemadm_SOURCES:.vala=.c}
1757 endif
1758
1759 if HAVE_XSLTPROC
1760 XSLTPROC_FLAGS = \
1761         --nonet \
1762         --stringparam funcsynopsis.style ansi
1763
1764 XSLTPROC_PROCESS_MAN = \
1765         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1766         $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
1767
1768 XSLTPROC_PROCESS_MAN_IN = \
1769         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1770         $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< && \
1771         mv ${@:.in=} $@
1772
1773 XSLTPROC_PROCESS_HTML = \
1774         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1775         $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) man/custom-html.xsl $<
1776
1777 XSLTPROC_PROCESS_HTML_IN = \
1778         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1779         $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) man/custom-html.xsl $< && \
1780         mv ${@:.in=} $@
1781
1782 man/%.1: man/%.xml
1783         $(XSLTPROC_PROCESS_MAN)
1784
1785 man/%.1.in: man/%.xml.in
1786         $(XSLTPROC_PROCESS_MAN)
1787
1788 man/%.3: man/%.xml
1789         $(XSLTPROC_PROCESS_MAN)
1790
1791 man/%.3.in: man/%.xml.in
1792         $(XSLTPROC_PROCESS_MAN)
1793
1794 man/%.5: man/%.xml
1795         $(XSLTPROC_PROCESS_MAN)
1796
1797 man/%.5.in: man/%.xml.in
1798         $(XSLTPROC_PROCESS_MAN)
1799
1800 man/%.7: man/%.xml
1801         $(XSLTPROC_PROCESS_MAN)
1802
1803 man/%.7.in: man/%.xml.in
1804         $(XSLTPROC_PROCESS_MAN_IN)
1805
1806 man/%.8: man/%.xml
1807         $(XSLTPROC_PROCESS_MAN)
1808
1809 man/%.8.in: man/%.xml.in
1810         $(XSLTPROC_PROCESS_MAN_IN)
1811
1812 man/%.html: man/%.xml
1813         $(XSLTPROC_PROCESS_HTML)
1814
1815 man/%.html.in: man/%.xml.in
1816         $(XSLTPROC_PROCESS_HTML_IN)
1817
1818 CLEANFILES += \
1819         $(dist_man_MANS) \
1820         ${nodist_man_MANS:=.in} \
1821         ${XML_FILES:.xml=.html} \
1822         ${XML_IN_FILES:.xml.in=.html.in}
1823 endif
1824
1825 DBUS_PREPROCESS = $(CPP) -P $(DBUS_CFLAGS) -imacros dbus/dbus-protocol.h
1826
1827 org.freedesktop.systemd1.%.xml: systemd
1828         $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.$* $< $@.tmp && \
1829                 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1830                 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1831
1832 org.freedesktop.hostname1.xml: systemd-hostnamed
1833         $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.hostname1 $< $@.tmp && \
1834                 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1835                 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1836
1837 org.freedesktop.locale1.xml: systemd-localed
1838         $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.locale1 $< $@.tmp && \
1839                 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1840                 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1841
1842 org.freedesktop.timedate1.xml: systemd-timedated
1843         $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.timedate1 $< $@.tmp && \
1844                 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1845                 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1846
1847 CLEANFILES += \
1848         $(dbusinterface_DATA)
1849
1850 install-data-hook:
1851         $(MKDIR_P) -m 0755 \
1852                 $(DESTDIR)$(tmpfilesdir) \
1853                 $(DESTDIR)$(sysconfdir)/tmpfiles.d \
1854                 $(DESTDIR)$(prefix)/lib/modules-load.d \
1855                 $(DESTDIR)$(sysconfdir)/modules-load.d \
1856                 $(DESTDIR)$(prefix)/lib/sysctl.d \
1857                 $(DESTDIR)$(sysconfdir)/sysctl.d \
1858                 $(DESTDIR)$(systemshutdowndir) \
1859                 $(DESTDIR)$(systemgeneratordir) \
1860                 $(DESTDIR)$(usergeneratordir)
1861 if ENABLE_BINFMT
1862         $(MKDIR_P) -m 0755 \
1863                 $(DESTDIR)$(prefix)/lib/binfmt.d \
1864                 $(DESTDIR)$(sysconfdir)/binfmt.d
1865 endif
1866         $(MKDIR_P) -m 0755 \
1867                 $(DESTDIR)$(systemunitdir) \
1868                 $(DESTDIR)$(userunitdir) \
1869                 $(DESTDIR)$(systemunitdir)/sysinit.target.wants \
1870                 $(DESTDIR)$(systemunitdir)/sockets.target.wants \
1871                 $(DESTDIR)$(systemunitdir)/basic.target.wants \
1872                 $(DESTDIR)$(systemunitdir)/shutdown.target.wants \
1873                 $(DESTDIR)$(systemunitdir)/local-fs.target.wants \
1874                 $(DESTDIR)$(systemunitdir)/runlevel1.target.wants \
1875                 $(DESTDIR)$(systemunitdir)/runlevel2.target.wants \
1876                 $(DESTDIR)$(systemunitdir)/runlevel3.target.wants \
1877                 $(DESTDIR)$(systemunitdir)/runlevel4.target.wants \
1878                 $(DESTDIR)$(systemunitdir)/runlevel5.target.wants \
1879                 $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
1880                 $(DESTDIR)$(systemunitdir)/graphical.target.wants \
1881                 $(DESTDIR)$(pkgsysconfdir)/system \
1882                 $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants \
1883                 $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants \
1884                 $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \
1885                 $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \
1886                 $(DESTDIR)$(pkgsysconfdir)/user \
1887                 $(DESTDIR)$(dbussessionservicedir) \
1888                 $(DESTDIR)$(sysconfdir)/xdg/systemd
1889         ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
1890                 rm -f user && \
1891                 $(LN_S) $(pkgsysconfdir)/user user )
1892         ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
1893                 rm -f systemd-initctl.socket systemd-stdout-syslog-bridge.socket systemd-shutdownd.socket syslog.socket && \
1894                 $(LN_S) ../systemd-stdout-syslog-bridge.socket systemd-stdout-syslog-bridge.socket && \
1895                 $(LN_S) ../systemd-initctl.socket systemd-initctl.socket && \
1896                 $(LN_S) ../systemd-shutdownd.socket systemd-shutdownd.socket && \
1897                 $(LN_S) ../syslog.socket syslog.socket )
1898         ( cd $(DESTDIR)$(systemunitdir)/runlevel1.target.wants && \
1899                 rm -f systemd-update-utmp-runlevel.service && \
1900                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1901         ( cd $(DESTDIR)$(systemunitdir)/runlevel2.target.wants && \
1902                 rm -f systemd-update-utmp-runlevel.service && \
1903                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1904         ( cd $(DESTDIR)$(systemunitdir)/runlevel3.target.wants && \
1905                 rm -f systemd-update-utmp-runlevel.service && \
1906                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1907         ( cd $(DESTDIR)$(systemunitdir)/runlevel4.target.wants && \
1908                 rm -f systemd-update-utmp-runlevel.service && \
1909                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1910         ( cd $(DESTDIR)$(systemunitdir)/runlevel5.target.wants && \
1911                 rm -f systemd-update-utmp-runlevel.service && \
1912                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1913         ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
1914                 rm -f systemd-update-utmp-shutdown.service \
1915                         systemd-random-seed-save.service && \
1916                 $(LN_S) ../systemd-update-utmp-shutdown.service systemd-update-utmp-shutdown.service && \
1917                 $(LN_S) ../systemd-random-seed-save.service systemd-random-seed-save.service )
1918         ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
1919                 rm -f systemd-remount-api-vfs.service \
1920                         fsck-root.service \
1921                         remount-rootfs.service \
1922                         var-run.mount \
1923                         media.mount && \
1924                 $(LN_S) ../systemd-remount-api-vfs.service systemd-remount-api-vfs.service && \
1925                 $(LN_S) ../fsck-root.service fsck-root.service && \
1926                 $(LN_S) ../remount-rootfs.service remount-rootfs.service && \
1927                 $(LN_S) ../var-run.mount var-run.mount && \
1928                 $(LN_S) ../media.mount media.mount )
1929         ( cd $(DESTDIR)$(userunitdir) && \
1930                 rm -f shutdown.target sockets.target bluetooth.target printer.target sound.target && \
1931                 $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \
1932                 $(LN_S) $(systemunitdir)/sockets.target sockets.target && \
1933                 $(LN_S) $(systemunitdir)/bluetooth.target bluetooth.target && \
1934                 $(LN_S) $(systemunitdir)/printer.target printer.target && \
1935                 $(LN_S) $(systemunitdir)/sound.target sound.target )
1936         ( cd $(DESTDIR)$(systemunitdir) && \
1937                 rm -f runlevel0.target runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target runlevel6.target && \
1938                 $(LN_S) poweroff.target runlevel0.target && \
1939                 $(LN_S) rescue.target runlevel1.target && \
1940                 $(LN_S) multi-user.target runlevel2.target && \
1941                 $(LN_S) multi-user.target runlevel3.target && \
1942                 $(LN_S) multi-user.target runlevel4.target && \
1943                 $(LN_S) graphical.target runlevel5.target && \
1944                 $(LN_S) reboot.target runlevel6.target )
1945         ( cd $(DESTDIR)$(systemunitdir) && \
1946                 rm -f default.target ctrl-alt-del.target dbus-org.freedesktop.login1.service autovt@.service && \
1947                 $(LN_S) graphical.target default.target && \
1948                 $(LN_S) reboot.target ctrl-alt-del.target && \
1949                 $(LN_S) systemd-logind.service dbus-org.freedesktop.login1.service && \
1950                 $(LN_S) getty@.service autovt@.service )
1951         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1952                 rm -f getty.target systemd-user-sessions.service systemd-ask-password-wall.path systemd-logind.service && \
1953                 $(LN_S) ../getty.target getty.target && \
1954                 $(LN_S) ../systemd-user-sessions.service systemd-user-sessions.service && \
1955                 $(LN_S) ../systemd-ask-password-wall.path systemd-ask-password-wall.path && \
1956                 $(LN_S) ../systemd-logind.service systemd-logind.service )
1957         ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
1958                 rm -f getty@tty1.service && \
1959                 $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service )
1960         ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
1961                 rm -f remote-fs.target && \
1962                 $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target )
1963         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1964                 rm -f dev-hugepages.mount \
1965                         dev-mqueue.mount \
1966                         sys-kernel-config.mount \
1967                         sys-kernel-debug.mount \
1968                         sys-kernel-security.mount \
1969                         sys-fs-fuse-connections.mount \
1970                         systemd-vconsole-setup.service \
1971                         systemd-modules-load.service \
1972                         systemd-random-seed-load.service \
1973                         systemd-tmpfiles-setup.service \
1974                         systemd-sysctl.service \
1975                         systemd-ask-password-console.path \
1976                         systemd-kmsg-syslogd.service \
1977                         cryptsetup.target && \
1978                 $(LN_S) ../dev-hugepages.mount dev-hugepages.mount && \
1979                 $(LN_S) ../dev-mqueue.mount dev-mqueue.mount && \
1980                 $(LN_S) ../sys-kernel-config.mount sys-kernel-config.mount && \
1981                 $(LN_S) ../sys-kernel-debug.mount sys-kernel-debug.mount && \
1982                 $(LN_S) ../sys-kernel-security.mount sys-kernel-security.mount && \
1983                 $(LN_S) ../sys-fs-fuse-connections.mount sys-fs-fuse-connections.mount && \
1984                 $(LN_S) ../systemd-vconsole-setup.service systemd-vconsole-setup.service && \
1985                 $(LN_S) ../systemd-modules-load.service systemd-modules-load.service && \
1986                 $(LN_S) ../systemd-random-seed-load.service systemd-random-seed-load.service && \
1987                 $(LN_S) ../systemd-tmpfiles-setup.service systemd-tmpfiles-setup.service && \
1988                 $(LN_S) ../systemd-sysctl.service systemd-sysctl.service && \
1989                 $(LN_S) ../systemd-ask-password-console.path systemd-ask-password-console.path && \
1990                 $(LN_S) ../systemd-kmsg-syslogd.service && \
1991                 $(LN_S) ../cryptsetup.target cryptsetup.target )
1992 if ENABLE_BINFMT
1993         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1994                 rm -f systemd-binfmt.service \
1995                         proc-sys-fs-binfmt_misc.automount && \
1996                 $(LN_S) ../systemd-binfmt.service systemd-binfmt.service && \
1997                 $(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount )
1998 endif
1999 if ENABLE_HOSTNAMED
2000         ( cd $(DESTDIR)$(systemunitdir) && \
2001                 rm -f dbus-org.freedesktop.hostname1.service && \
2002                 $(LN_S) systemd-hostnamed.service dbus-org.freedesktop.hostname1.service )
2003 endif
2004 if ENABLE_TIMEDATED
2005         ( cd $(DESTDIR)$(systemunitdir) && \
2006                 rm -f dbus-org.freedesktop.timedate1.service  && \
2007                 $(LN_S) systemd-timedated.service dbus-org.freedesktop.timedate1.service )
2008 endif
2009 if ENABLE_LOCALED
2010         ( cd $(DESTDIR)$(systemunitdir) && \
2011                 rm -f dbus-org.freedesktop.locale1.service && \
2012                 $(LN_S) systemd-localed.service dbus-org.freedesktop.locale1.service )
2013 endif
2014         ( cd $(DESTDIR)$(systemunitdir)/basic.target.wants && \
2015                 rm -f systemd-tmpfiles-clean.timer && \
2016                 $(LN_S) ../systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.timer )
2017         ( cd $(DESTDIR)$(dbussessionservicedir) && \
2018                 rm -f org.freedesktop.systemd1.service && \
2019                 $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service )
2020 if HAVE_PLYMOUTH
2021         $(MKDIR_P) -m 0755 \
2022                 $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) \
2023                 $(DESTDIR)$(systemunitdir)/reboot.target.wants \
2024                 $(DESTDIR)$(systemunitdir)/kexec.target.wants \
2025                 $(DESTDIR)$(systemunitdir)/poweroff.target.wants \
2026                 $(DESTDIR)$(systemunitdir)/halt.target.wants
2027         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
2028                 rm -f plymouth-start.service plymouth-read-write.service && \
2029                 $(LN_S) ../plymouth-start.service plymouth-start.service && \
2030                 $(LN_S) ../plymouth-read-write.service plymouth-read-write.service )
2031         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
2032                 rm -f plymouth-quit.service plymouth-quit-wait.service && \
2033                 $(LN_S) ../plymouth-quit.service plymouth-quit.service && \
2034                 $(LN_S) ../plymouth-quit-wait.service plymouth-quit-wait.service )
2035         ( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \
2036                 rm -f plymouth-reboot.service && \
2037                 $(LN_S) ../plymouth-reboot.service plymouth-reboot.service )
2038         ( cd $(DESTDIR)$(systemunitdir)/kexec.target.wants && \
2039                 rm -f plymouth-kexec.service && \
2040                 $(LN_S) ../plymouth-kexec.service plymouth-kexec.service )
2041         ( cd $(DESTDIR)$(systemunitdir)/poweroff.target.wants && \
2042                 rm -f plymouth-poweroff.service && \
2043                 $(LN_S) ../plymouth-poweroff.service plymouth-poweroff.service )
2044         ( cd $(DESTDIR)$(systemunitdir)/halt.target.wants && \
2045                 rm -f plymouth-halt.service && \
2046                 $(LN_S) ../plymouth-halt.service plymouth-halt.service )
2047 endif
2048 if TARGET_MEEGO
2049         $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2050         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
2051                 rm -f network.target && \
2052                 $(LN_S) $(systemunitdir)/network.target network.target )
2053         ( cd $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants && \
2054                 rm -f * )
2055         ( cd $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants && \
2056                 rm -f * )
2057         ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
2058                 rm -f * )
2059         ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
2060                 rm -f * )
2061 endif
2062
2063 if TARGET_FEDORA
2064         $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2065         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
2066                 rm -f rc-local.service && \
2067                 $(LN_S) $(systemunitdir)/rc-local.service rc-local.service )
2068         ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
2069                 rm -f halt-local.service && \
2070                 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
2071         ( cd $(DESTDIR)$(systemunitdir) && \
2072                 rm -f display-manager.service single.service && \
2073                 $(LN_S) prefdm.service display-manager.service && \
2074                 $(LN_S) rescue.service single.service )
2075         ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
2076                 rm -f display-manager.service && \
2077                 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
2078 endif
2079
2080 if TARGET_MANDRIVA
2081         $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2082         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
2083                 rm -f rc-local.service && \
2084                 $(LN_S) $(systemunitdir)/rc-local.service rc-local.service )
2085         ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
2086                 rm -f halt-local.service && \
2087                 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
2088         ( cd $(DESTDIR)$(systemunitdir) && \
2089                 rm -f display-manager.service dm.service single.service && \
2090                 $(LN_S) prefdm.service display-manager.service && \
2091                 $(LN_S) prefdm.service dm.service && \
2092                 $(LN_S) rescue.service single.service )
2093         ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
2094                 rm -f display-manager.service && \
2095                 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
2096 endif
2097
2098 if TARGET_DEBIAN_OR_UBUNTU
2099         ( cd $(DESTDIR)$(systemunitdir) && \
2100                 rm -f runlevel5.target && \
2101                 $(LN_S) multi-user.target runlevel5.target )
2102 endif
2103
2104 if TARGET_SUSE
2105         $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2106         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
2107                 rm -f rc-local.service && \
2108                 $(LN_S) $(systemunitdir)/rc-local.service rc-local.service )
2109         ( cd $(DESTDIR)$(systemunitdir) && \
2110                 rm -f local.service && \
2111                 $(LN_S) rc-local.service local.service )
2112         ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
2113                 rm -f halt-local.service && \
2114                 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
2115 endif
2116
2117 if TARGET_MAGEIA
2118         $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2119         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
2120                 rm -f rc-local.service && \
2121                 $(LN_S) $(systemunitdir)/rc-local.service rc-local.service )
2122         ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
2123                 rm -f halt-local.service && \
2124                 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
2125         ( cd $(DESTDIR)$(systemunitdir) && \
2126                 rm -f display-manager.service && \
2127                 $(LN_S) prefdm.service display-manager.service && \
2128                 $(LN_S) prefdm.service dm.service )
2129         ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
2130                 rm -f display-manager.service && \
2131                 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
2132 endif
2133
2134 if HAVE_SYSV_COMPAT
2135         ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
2136                 rm -f var-lock.mount && \
2137                 $(LN_S) ../var-lock.mount var-lock.mount )
2138 endif
2139
2140 install-exec-hook: libsystemd-daemon-install-hook libsystemd-login-install-hook
2141
2142 uninstall-hook: libsystemd-daemon-uninstall-hook libsystemd-login-uninstall-hook
2143
2144 DISTCHECK_CONFIGURE_FLAGS = \
2145         --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
2146         --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
2147         --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
2148         --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
2149         --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \
2150         --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
2151         --with-rootdir=$$dc_install_base/$(rootdir)
2152
2153 upload: all distcheck
2154         cp -v systemd-$(VERSION).tar.bz2 /home/lennart/git.fedora/systemd/
2155         scp systemd-$(VERSION).tar.bz2 fdo:/srv/www.freedesktop.org/www/software/systemd/
2156         scp man/*.html tango:public/systemd-man/
2157
2158 git-tag:
2159         git tag "v$(VERSION)" -m "systemd $(VERSION)"
2160
2161 update-kbd-model-map:
2162         src/generate-kbd-model-map > src/kbd-model-map