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