chiark / gitweb /
b26c613d4fc8f379047bb9fbf299bace2e5d23e1
[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
988 systemd_journald_CFLAGS = \
989         $(AM_CFLAGS) \
990         $(ACL_CFLAGS)
991
992 systemd_journald_LDADD = \
993         libsystemd-basic.la \
994         libsystemd-daemon.la \
995         $(ACL_LIBS)
996
997 systemd_journalctl_SOURCES = \
998         src/journal/journalctl.c \
999         src/journal/sd-journal.c \
1000         src/journal/journal-file.c \
1001         src/journal/lookup3.c \
1002         src/sd-id128.c
1003
1004 systemd_journalctl_CFLAGS = \
1005         $(AM_CFLAGS)
1006
1007 systemd_journalctl_LDADD = \
1008         libsystemd-basic.la
1009
1010 systemd_stdout_syslog_bridge_SOURCES = \
1011         src/stdout-syslog-bridge.c \
1012         src/tcpwrap.c
1013
1014 systemd_stdout_syslog_bridge_LDADD = \
1015         libsystemd-basic.la \
1016         libsystemd-daemon.la \
1017         $(LIBWRAP_LIBS)
1018
1019 systemd_initctl_SOURCES = \
1020         src/initctl.c \
1021         src/dbus-common.c
1022
1023 systemd_initctl_CFLAGS = \
1024         $(AM_CFLAGS) \
1025         $(DBUS_CFLAGS)
1026
1027 systemd_initctl_LDADD = \
1028         libsystemd-basic.la \
1029         libsystemd-daemon.la \
1030         $(DBUS_LIBS)
1031
1032 systemd_update_utmp_SOURCES = \
1033         src/update-utmp.c \
1034         src/dbus-common.c \
1035         src/utmp-wtmp.c
1036
1037 systemd_update_utmp_CFLAGS = \
1038         $(AM_CFLAGS) \
1039         $(DBUS_CFLAGS) \
1040         $(AUDIT_CFLAGS)
1041
1042 systemd_update_utmp_LDADD = \
1043         libsystemd-basic.la \
1044         $(DBUS_LIBS) \
1045         $(AUDIT_LIBS)
1046
1047 systemd_random_seed_SOURCES = \
1048         src/random-seed.c
1049
1050 systemd_random_seed_CFLAGS = \
1051         $(AM_CFLAGS)
1052
1053 systemd_random_seed_LDADD = \
1054         libsystemd-basic.la
1055
1056 systemd_shutdownd_SOURCES = \
1057         src/utmp-wtmp.c \
1058         src/shutdownd.c
1059
1060 systemd_shutdownd_CFLAGS = \
1061         $(AM_CFLAGS)
1062
1063 systemd_shutdownd_LDADD = \
1064         libsystemd-basic.la \
1065         libsystemd-daemon.la
1066
1067 systemd_hostnamed_SOURCES = \
1068         src/hostnamed.c \
1069         src/dbus-common.c \
1070         src/polkit.c
1071
1072 systemd_hostnamed_CFLAGS = \
1073         $(AM_CFLAGS) \
1074         $(DBUS_CFLAGS)
1075
1076 systemd_hostnamed_LDADD = \
1077         libsystemd-basic.la \
1078         libsystemd-daemon.la \
1079         $(DBUS_LIBS)
1080
1081 systemd_localed_SOURCES = \
1082         src/localed.c \
1083         src/dbus-common.c \
1084         src/polkit.c
1085
1086 systemd_localed_CFLAGS = \
1087         $(AM_CFLAGS) \
1088         $(DBUS_CFLAGS)
1089
1090 systemd_localed_LDADD = \
1091         libsystemd-basic.la \
1092         libsystemd-daemon.la \
1093         $(DBUS_LIBS)
1094
1095 dist_pkgdata_DATA = \
1096         src/kbd-model-map
1097
1098 dist_noinst_SCRIPT = \
1099         src/generate-kbd-model-map
1100
1101 systemd_timedated_SOURCES = \
1102         src/timedated.c \
1103         src/dbus-common.c \
1104         src/polkit.c
1105
1106 systemd_timedated_CFLAGS = \
1107         $(AM_CFLAGS) \
1108         $(DBUS_CFLAGS)
1109
1110 systemd_timedated_LDADD = \
1111         libsystemd-basic.la \
1112         libsystemd-daemon.la \
1113         $(DBUS_LIBS)
1114
1115 systemd_logind_SOURCES = \
1116         src/logind.c \
1117         src/logind-dbus.c \
1118         src/logind-device.c \
1119         src/logind-seat.c \
1120         src/logind-seat-dbus.c \
1121         src/logind-session.c \
1122         src/logind-session-dbus.c \
1123         src/logind-user.c \
1124         src/logind-user-dbus.c \
1125         src/dbus-common.c \
1126         src/dbus-loop.c \
1127         src/cgroup-util.c \
1128         src/polkit.c
1129
1130 nodist_systemd_logind_SOURCES = \
1131         src/logind-gperf.c
1132
1133 EXTRA_DIST += \
1134         src/logind-gperf.gperf
1135
1136 systemd_logind_CFLAGS = \
1137         $(AM_CFLAGS) \
1138         $(DBUS_CFLAGS) \
1139         $(UDEV_CFLAGS) \
1140         $(ACL_CFLAGS)
1141
1142 systemd_logind_LDADD = \
1143         libsystemd-basic.la \
1144         libsystemd-daemon.la \
1145         $(DBUS_LIBS) \
1146         $(UDEV_LIBS) \
1147         $(ACL_LIBS)
1148
1149 systemd_uaccess_SOURCES = \
1150         src/uaccess.c
1151
1152 if HAVE_ACL
1153 systemd_logind_SOURCES += \
1154         src/logind-acl.c \
1155         src/acl-util.c
1156
1157 systemd_uaccess_SOURCES += \
1158         src/logind-acl.c \
1159         src/acl-util.c
1160 endif
1161
1162 systemd_uaccess_CFLAGS = \
1163         $(AM_CFLAGS) \
1164         $(UDEV_CFLAGS) \
1165         $(ACL_CFLAGS)
1166
1167 systemd_uaccess_LDADD = \
1168         libsystemd-basic.la \
1169         libsystemd-daemon.la \
1170         libsystemd-login.la \
1171         $(UDEV_LIBS) \
1172         $(ACL_LIBS)
1173
1174 systemd_shutdown_SOURCES = \
1175         src/mount-setup.c \
1176         src/umount.c \
1177         src/shutdown.c
1178
1179 systemd_shutdown_CFLAGS = \
1180         $(AM_CFLAGS) \
1181         $(UDEV_CFLAGS)
1182
1183 systemd_shutdown_LDADD = \
1184         libsystemd-basic.la \
1185         $(UDEV_LIBS)
1186
1187 systemd_modules_load_SOURCES = \
1188         src/modules-load.c
1189
1190 systemd_modules_load_CFLAGS = \
1191         $(AM_CFLAGS)
1192
1193 systemd_modules_load_LDADD = \
1194         libsystemd-basic.la
1195
1196 systemd_tmpfiles_SOURCES = \
1197         src/tmpfiles.c
1198
1199 systemd_tmpfiles_CFLAGS = \
1200         $(AM_CFLAGS)
1201
1202 systemd_tmpfiles_LDADD = \
1203         libsystemd-basic.la
1204
1205 systemd_machine_id_setup_SOURCES = \
1206         src/machine-id-setup.c \
1207         src/machine-id-main.c \
1208         src/sd-id128.c
1209
1210 systemd_machine_id_setup_CFLAGS = \
1211         $(AM_CFLAGS)
1212
1213 systemd_machine_id_setup_LDADD = \
1214         libsystemd-basic.la
1215
1216 systemd_sysctl_SOURCES = \
1217         src/sysctl.c
1218
1219 systemd_sysctl_CFLAGS = \
1220         $(AM_CFLAGS)
1221
1222 systemd_sysctl_LDADD = \
1223         libsystemd-basic.la
1224
1225 systemd_binfmt_SOURCES = \
1226         src/binfmt.c
1227
1228 systemd_binfmt_CFLAGS = \
1229         $(AM_CFLAGS)
1230
1231 systemd_binfmt_LDADD = \
1232         libsystemd-basic.la
1233
1234 systemd_fsck_SOURCES = \
1235         src/fsck.c \
1236         src/dbus-common.c
1237
1238 systemd_fsck_CFLAGS = \
1239         $(AM_CFLAGS) \
1240         $(UDEV_CFLAGS) \
1241         $(DBUS_CFLAGS)
1242
1243 systemd_fsck_LDADD = \
1244         libsystemd-basic.la \
1245         $(UDEV_LIBS) \
1246         $(DBUS_LIBS)
1247
1248 systemd_quotacheck_SOURCES = \
1249         src/quotacheck.c
1250
1251 systemd_quotacheck_CFLAGS = \
1252         $(AM_CFLAGS)
1253
1254 systemd_quotacheck_LDADD = \
1255         libsystemd-basic.la
1256
1257 systemd_timestamp_SOURCES = \
1258         src/timestamp.c
1259
1260 systemd_timestamp_CFLAGS = \
1261         $(AM_CFLAGS)
1262
1263 systemd_timestamp_LDADD = \
1264         libsystemd-basic.la
1265
1266 systemd_ac_power_SOURCES = \
1267         src/ac-power.c
1268
1269 systemd_ac_power_CFLAGS = \
1270         $(AM_CFLAGS) \
1271         $(UDEV_CFLAGS)
1272
1273 systemd_ac_power_LDADD = \
1274         libsystemd-basic.la \
1275         $(UDEV_LIBS)
1276
1277 systemd_detect_virt_SOURCES = \
1278         src/detect-virt.c
1279
1280 systemd_detect_virt_CFLAGS = \
1281         $(AM_CFLAGS)
1282
1283 systemd_detect_virt_LDADD = \
1284         libsystemd-basic.la
1285
1286 systemd_cryptsetup_SOURCES = \
1287         src/cryptsetup.c \
1288         src/ask-password-api.c
1289
1290 systemd_cryptsetup_CFLAGS = \
1291         $(LIBCRYPTSETUP_CFLAGS) \
1292         $(UDEV_CFLAGS) \
1293         $(AM_CFLAGS)
1294
1295 systemd_cryptsetup_LDADD = \
1296         $(LIBCRYPTSETUP_LIBS) \
1297         $(UDEV_LIBS) \
1298         libsystemd-basic.la
1299
1300 systemd_cryptsetup_generator_SOURCES = \
1301         src/cryptsetup-generator.c \
1302         src/unit-name.c
1303
1304 systemd_cryptsetup_generator_CFLAGS = \
1305         $(AM_CFLAGS)
1306
1307 systemd_cryptsetup_generator_LDADD = \
1308         libsystemd-basic.la
1309
1310 systemd_getty_generator_SOURCES = \
1311         src/getty-generator.c \
1312         src/unit-name.c
1313
1314 systemd_getty_generator_CFLAGS = \
1315         $(AM_CFLAGS)
1316
1317 systemd_getty_generator_LDADD = \
1318         libsystemd-basic.la
1319
1320 systemd_user_sessions_SOURCES = \
1321         src/user-sessions.c \
1322         src/cgroup-util.c
1323
1324 systemd_user_sessions_CFLAGS = \
1325         $(AM_CFLAGS)
1326
1327 systemd_user_sessions_LDADD = \
1328         libsystemd-basic.la
1329
1330 systemd_vconsole_setup_SOURCES = \
1331         src/vconsole-setup.c
1332
1333 systemd_vconsole_setup_CFLAGS = \
1334         $(AM_CFLAGS)
1335
1336 systemd_vconsole_setup_LDADD = \
1337         libsystemd-basic.la
1338
1339 systemd_remount_api_vfs_SOURCES = \
1340         src/remount-api-vfs.c \
1341         src/mount-setup.c \
1342         src/exit-status.c
1343
1344 systemd_remount_api_vfs_CFLAGS = \
1345         $(AM_CFLAGS)
1346
1347 systemd_remount_api_vfs_LDADD = \
1348         libsystemd-basic.la
1349
1350 systemd_cgroups_agent_SOURCES = \
1351         src/cgroups-agent.c \
1352         src/dbus-common.c
1353
1354 systemd_cgroups_agent_CFLAGS = \
1355         $(AM_CFLAGS) \
1356         $(DBUS_CFLAGS)
1357
1358 systemd_cgroups_agent_LDADD = \
1359         libsystemd-basic.la \
1360         $(DBUS_LIBS)
1361
1362 systemd_kmsg_syslogd_SOURCES = \
1363         src/kmsg-syslogd.c \
1364         src/fdset.c
1365
1366 systemd_kmsg_syslogd_CFLAGS = \
1367         $(AM_CFLAGS)
1368
1369 systemd_kmsg_syslogd_LDADD = \
1370         libsystemd-basic.la \
1371         libsystemd-daemon.la
1372
1373 systemctl_SOURCES = \
1374         src/systemctl.c \
1375         src/utmp-wtmp.c \
1376         src/dbus-common.c \
1377         src/path-lookup.c \
1378         src/cgroup-show.c \
1379         src/cgroup-util.c \
1380         src/exit-status.c \
1381         src/unit-name.c \
1382         src/pager.c \
1383         src/install.c \
1384         src/spawn-agent.c
1385
1386 systemctl_CFLAGS = \
1387         $(AM_CFLAGS) \
1388         $(DBUS_CFLAGS)
1389
1390 systemctl_LDADD = \
1391         libsystemd-basic.la \
1392         libsystemd-daemon.la \
1393         $(DBUS_LIBS)
1394
1395 systemd_loginctl_SOURCES = \
1396         src/loginctl.c \
1397         src/dbus-common.c \
1398         src/cgroup-show.c \
1399         src/cgroup-util.c \
1400         src/pager.c \
1401         src/sysfs-show.c
1402
1403 systemd_loginctl_CFLAGS = \
1404         $(AM_CFLAGS) \
1405         $(DBUS_CFLAGS) \
1406         $(UDEV_CFLAGS)
1407
1408 systemd_loginctl_LDADD = \
1409         libsystemd-basic.la \
1410         $(DBUS_LIBS) \
1411         $(UDEV_LIBS)
1412
1413 systemd_notify_SOURCES = \
1414         src/notify.c \
1415         src/sd-readahead.c
1416
1417 systemd_notify_LDADD = \
1418         libsystemd-basic.la \
1419         libsystemd-daemon.la
1420
1421 systemd_ask_password_SOURCES = \
1422         src/ask-password.c \
1423         src/ask-password-api.c
1424
1425 systemd_ask_password_LDADD = \
1426         libsystemd-basic.la
1427
1428 systemd_reply_password_SOURCES = \
1429         src/reply-password.c
1430
1431 systemd_reply_password_LDADD = \
1432         libsystemd-basic.la
1433
1434 systemd_readahead_collect_SOURCES = \
1435         src/readahead-collect.c \
1436         src/readahead-common.c
1437
1438 systemd_readahead_collect_CFLAGS = \
1439         $(UDEV_CFLAGS)
1440
1441 systemd_readahead_collect_LDADD = \
1442         libsystemd-basic.la \
1443         libsystemd-daemon.la \
1444         $(UDEV_LIBS)
1445
1446 systemd_readahead_replay_SOURCES = \
1447         src/readahead-replay.c \
1448         src/readahead-common.c
1449
1450 systemd_readahead_replay_CFLAGS = \
1451         $(UDEV_CFLAGS)
1452
1453 systemd_readahead_replay_LDADD = \
1454         libsystemd-basic.la \
1455         libsystemd-daemon.la \
1456         $(UDEV_LIBS)
1457
1458 systemd_cgls_SOURCES = \
1459         src/cgls.c \
1460         src/cgroup-show.c \
1461         src/cgroup-util.c \
1462         src/pager.c
1463
1464 systemd_cgls_CFLAGS = \
1465         $(AM_CFLAGS)
1466
1467 systemd_cgls_LDADD = \
1468         libsystemd-basic.la
1469
1470 systemd_nspawn_SOURCES = \
1471         src/nspawn.c \
1472         src/cgroup-util.c \
1473         src/loopback-setup.c
1474
1475 systemd_nspawn_CFLAGS = \
1476         $(AM_CFLAGS)
1477
1478 systemd_nspawn_LDADD = \
1479         libsystemd-basic.la \
1480         libsystemd-daemon.la
1481
1482 systemd_stdio_bridge_SOURCES = \
1483         src/bridge.c
1484
1485 systemd_stdio_bridge_LDADD = \
1486         libsystemd-basic.la
1487
1488 systemadm_SOURCES = \
1489         src/systemadm.vala \
1490         src/systemd-interfaces.vala
1491
1492 systemadm_CFLAGS = \
1493         $(AM_CFLAGS) \
1494         $(GTK_CFLAGS) \
1495         -Wno-unused-variable \
1496         -Wno-unused-function \
1497         -Wno-shadow \
1498         -Wno-format-nonliteral
1499
1500 systemadm_VALAFLAGS = \
1501         --pkg=posix \
1502         --pkg=gtk+-2.0 \
1503         -g
1504
1505 systemadm_LDADD = \
1506         $(GTK_LIBS)
1507
1508 systemd_gnome_ask_password_agent_SOURCES = \
1509         src/gnome-ask-password-agent.vala
1510
1511 systemd_gnome_ask_password_agent_CFLAGS = \
1512         $(AM_CFLAGS) \
1513         $(LIBNOTIFY_CFLAGS) \
1514         $(GTK_CFLAGS) \
1515         -Wno-unused-variable \
1516         -Wno-unused-function \
1517         -Wno-shadow \
1518         -Wno-format-nonliteral
1519
1520 systemd_gnome_ask_password_agent_VALAFLAGS = \
1521         --pkg=posix \
1522         --pkg=gtk+-2.0 \
1523         --pkg=linux \
1524         --pkg=gio-unix-2.0 \
1525         --pkg=libnotify
1526 if LIBNOTIFY07
1527 systemd_gnome_ask_password_agent_VALAFLAGS += \
1528         -D LIBNOTIFY07
1529 endif
1530 systemd_gnome_ask_password_agent_VALAFLAGS += \
1531         -g
1532
1533 systemd_gnome_ask_password_agent_LDADD = \
1534         $(LIBNOTIFY_LIBS) \
1535         $(GTK_LIBS)
1536
1537 systemd_tty_ask_password_agent_SOURCES = \
1538         src/tty-ask-password-agent.c \
1539         src/ask-password-api.c \
1540         src/utmp-wtmp.c
1541
1542 systemd_tty_ask_password_agent_LDADD = \
1543         libsystemd-basic.la
1544
1545 pam_systemd_la_SOURCES = \
1546         src/pam-module.c \
1547         src/dbus-common.c
1548
1549 pam_systemd_la_CFLAGS = \
1550         $(AM_CFLAGS) \
1551         $(PAM_CFLAGS) \
1552         $(DBUS_CFLAGS) \
1553         -fvisibility=hidden
1554
1555 pam_systemd_la_LDFLAGS = \
1556         -module \
1557         -export-dynamic \
1558         -avoid-version \
1559         -shared \
1560         -export-symbols-regex '^pam_sm_.*'
1561
1562 pam_systemd_la_LIBADD = \
1563         libsystemd-basic.la \
1564         libsystemd-daemon.la \
1565         $(PAM_LIBS) \
1566         $(DBUS_LIBS)
1567
1568 libsystemd_daemon_la_SOURCES = \
1569         src/sd-daemon.c
1570
1571 libsystemd_daemon_la_CFLAGS = \
1572         $(AM_CFLAGS) \
1573         -fvisibility=hidden \
1574         -DSD_EXPORT_SYMBOLS
1575
1576 libsystemd_daemon_la_LDFLAGS = \
1577         -shared \
1578         -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
1579         -Wl,--version-script=$(top_srcdir)/src/libsystemd-daemon.sym
1580
1581 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1582 libsystemd-daemon-install-hook:
1583         if test "$(libdir)" != "$(rootlibdir)"; then \
1584                 mkdir -p $(DESTDIR)$(rootlibdir) && \
1585                 so_img_name=$$(readlink $(DESTDIR)$(libdir)/libsystemd-daemon.so) && \
1586                 so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
1587                 ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libsystemd-daemon.so && \
1588                 mv $(DESTDIR)$(libdir)/libsystemd-daemon.so.* $(DESTDIR)$(rootlibdir); \
1589         fi
1590
1591 libsystemd-daemon-uninstall-hook:
1592         rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
1593
1594 libsystemd_login_la_SOURCES = \
1595         src/sd-login.c \
1596         src/cgroup-util.c
1597
1598 libsystemd_login_la_CFLAGS = \
1599         $(AM_CFLAGS) \
1600         -fvisibility=hidden
1601
1602 libsystemd_login_la_LDFLAGS = \
1603         -shared \
1604         -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
1605         -Wl,--version-script=$(top_srcdir)/src/libsystemd-login.sym
1606
1607 libsystemd_login_la_LIBADD = \
1608         libsystemd-basic.la
1609
1610 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1611 libsystemd-login-install-hook:
1612         if test "$(libdir)" != "$(rootlibdir)"; then \
1613                 mkdir -p $(DESTDIR)$(rootlibdir) && \
1614                 so_img_name=$$(readlink $(DESTDIR)$(libdir)/libsystemd-login.so) && \
1615                 so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
1616                 ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libsystemd-login.so && \
1617                 mv $(DESTDIR)$(libdir)/libsystemd-login.so.* $(DESTDIR)$(rootlibdir); \
1618         fi
1619
1620 libsystemd-login-uninstall-hook:
1621         rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
1622
1623 SED_PROCESS = \
1624         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1625         $(SED)  -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \
1626                 -e 's,@rootbindir\@,$(rootbindir),g' \
1627                 -e 's,@bindir\@,$(bindir),g' \
1628                 -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \
1629                 -e 's,@SYSTEMD_NOTIFY\@,$(rootbindir)/systemd-notify,g' \
1630                 -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
1631                 -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
1632                 -e 's,@pkglibexecdir\@,$(pkglibexecdir),g' \
1633                 -e 's,@systemunitdir\@,$(systemunitdir),g' \
1634                 -e 's,@userunitdir\@,$(userunitdir),g' \
1635                 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
1636                 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
1637                 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \
1638                 -e 's,@prefix\@,$(prefix),g' \
1639                 -e 's,@exec_prefix\@,$(exec_prefix),g' \
1640                 -e 's,@libdir\@,$(libdir),g' \
1641                 -e 's,@includedir\@,$(includedir),g' \
1642                 < $< > $@ || rm $@
1643
1644 units/%: units/%.in Makefile
1645         $(SED_PROCESS)
1646
1647 man/%: man/%.in Makefile
1648         $(SED_PROCESS)
1649
1650 %.pc: %.pc.in Makefile
1651         $(SED_PROCESS)
1652
1653 src/%.policy.in: src/%.policy.in.in Makefile
1654         $(SED_PROCESS)
1655
1656 src/%.rules: src/%.rules.in Makefile
1657         $(SED_PROCESS)
1658
1659 src/%.c: src/%.gperf
1660         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1661         $(GPERF) < $< > $@
1662
1663 src/%: src/%.m4
1664         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1665         $(M4) -P $(M4_DEFINES) < $< > $@ || rm $@
1666
1667 src/load-fragment-gperf-nulstr.c: src/load-fragment-gperf.gperf
1668         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1669         $(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 $@
1670
1671 M4_PROCESS_SYSTEM = \
1672         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1673         $(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@ || rm $@
1674
1675 M4_PROCESS_USER = \
1676         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1677         $(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@ || rm $@
1678
1679 units/%: units/%.m4 Makefile
1680         $(M4_PROCESS_SYSTEM)
1681
1682 units/user/%: units/%.m4 Makefile
1683         $(M4_PROCESS_USER)
1684
1685 CLEANFILES = \
1686         $(nodist_systemunit_DATA) \
1687         $(nodist_userunit_DATA) \
1688         $(nodist_man_MANS) \
1689         ${XML_IN_FILES:.xml.in=.html} \
1690         $(pkgconfigdata_DATA) \
1691         $(pkgconfiglib_DATA) \
1692         $(nodist_polkitpolicy_DATA) \
1693         src/73-seat-late.rules \
1694         src/99-systemd.rules \
1695         src/load-fragment-gperf.gperf \
1696         src/load-fragment-gperf.c \
1697         src/load-fragment-gperf-nulstr.c \
1698         src/logind-gperf.c
1699
1700 if HAVE_VALAC
1701 CLEANFILES += \
1702         ${systemadm_SOURCES:.vala=.c}
1703 endif
1704
1705 if HAVE_XSLTPROC
1706 XSLTPROC_FLAGS = \
1707         --nonet \
1708         --param funcsynopsis.style "'ansi'"
1709
1710 XSLTPROC_PROCESS_MAN = \
1711         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1712         $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
1713
1714 XSLTPROC_PROCESS_MAN_IN = \
1715         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1716         $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< && \
1717         mv ${@:.in=} $@
1718
1719 XSLTPROC_PROCESS_HTML = \
1720         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1721         $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $<
1722
1723 XSLTPROC_PROCESS_HTML_IN = \
1724         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1725         $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $< && \
1726         mv ${@:.in=} $@
1727
1728 man/%.1: man/%.xml
1729         $(XSLTPROC_PROCESS_MAN)
1730
1731 man/%.1.in: man/%.xml.in
1732         $(XSLTPROC_PROCESS_MAN)
1733
1734 man/%.3: man/%.xml
1735         $(XSLTPROC_PROCESS_MAN)
1736
1737 man/%.3.in: man/%.xml.in
1738         $(XSLTPROC_PROCESS_MAN)
1739
1740 man/%.5: man/%.xml
1741         $(XSLTPROC_PROCESS_MAN)
1742
1743 man/%.5.in: man/%.xml.in
1744         $(XSLTPROC_PROCESS_MAN)
1745
1746 man/%.7: man/%.xml
1747         $(XSLTPROC_PROCESS_MAN)
1748
1749 man/%.7.in: man/%.xml.in
1750         $(XSLTPROC_PROCESS_MAN_IN)
1751
1752 man/%.8: man/%.xml
1753         $(XSLTPROC_PROCESS_MAN)
1754
1755 man/%.8.in: man/%.xml.in
1756         $(XSLTPROC_PROCESS_MAN_IN)
1757
1758 man/%.html: man/%.xml
1759         $(XSLTPROC_PROCESS_HTML)
1760
1761 man/%.html.in: man/%.xml.in
1762         $(XSLTPROC_PROCESS_HTML_IN)
1763
1764 CLEANFILES += \
1765         $(dist_man_MANS) \
1766         ${nodist_man_MANS:=.in} \
1767         ${XML_FILES:.xml=.html} \
1768         ${XML_IN_FILES:.xml.in=.html.in}
1769 endif
1770
1771 DBUS_PREPROCESS = $(CPP) -P $(DBUS_CFLAGS) -imacros dbus/dbus-protocol.h
1772
1773 org.freedesktop.systemd1.%.xml: systemd
1774         $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.$* $< $@.tmp && \
1775                 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1776                 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1777
1778 org.freedesktop.hostname1.xml: systemd-hostnamed
1779         $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.hostname1 $< $@.tmp && \
1780                 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1781                 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1782
1783 org.freedesktop.locale1.xml: systemd-localed
1784         $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.locale1 $< $@.tmp && \
1785                 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1786                 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1787
1788 org.freedesktop.timedate1.xml: systemd-timedated
1789         $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.timedate1 $< $@.tmp && \
1790                 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1791                 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1792
1793 CLEANFILES += \
1794         $(dbusinterface_DATA)
1795
1796 install-data-hook:
1797         $(MKDIR_P) -m 0755 \
1798                 $(DESTDIR)$(tmpfilesdir) \
1799                 $(DESTDIR)$(sysconfdir)/tmpfiles.d \
1800                 $(DESTDIR)$(prefix)/lib/modules-load.d \
1801                 $(DESTDIR)$(sysconfdir)/modules-load.d \
1802                 $(DESTDIR)$(prefix)/lib/sysctl.d \
1803                 $(DESTDIR)$(sysconfdir)/sysctl.d \
1804                 $(DESTDIR)$(systemshutdowndir) \
1805                 $(DESTDIR)$(systemgeneratordir) \
1806                 $(DESTDIR)$(usergeneratordir)
1807 if ENABLE_BINFMT
1808         $(MKDIR_P) -m 0755 \
1809                 $(DESTDIR)$(prefix)/lib/binfmt.d \
1810                 $(DESTDIR)$(sysconfdir)/binfmt.d
1811 endif
1812         $(MKDIR_P) -m 0755 \
1813                 $(DESTDIR)$(systemunitdir) \
1814                 $(DESTDIR)$(userunitdir) \
1815                 $(DESTDIR)$(systemunitdir)/sysinit.target.wants \
1816                 $(DESTDIR)$(systemunitdir)/sockets.target.wants \
1817                 $(DESTDIR)$(systemunitdir)/basic.target.wants \
1818                 $(DESTDIR)$(systemunitdir)/shutdown.target.wants \
1819                 $(DESTDIR)$(systemunitdir)/local-fs.target.wants \
1820                 $(DESTDIR)$(systemunitdir)/runlevel1.target.wants \
1821                 $(DESTDIR)$(systemunitdir)/runlevel2.target.wants \
1822                 $(DESTDIR)$(systemunitdir)/runlevel3.target.wants \
1823                 $(DESTDIR)$(systemunitdir)/runlevel4.target.wants \
1824                 $(DESTDIR)$(systemunitdir)/runlevel5.target.wants \
1825                 $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
1826                 $(DESTDIR)$(systemunitdir)/graphical.target.wants \
1827                 $(DESTDIR)$(pkgsysconfdir)/system \
1828                 $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants \
1829                 $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants \
1830                 $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \
1831                 $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \
1832                 $(DESTDIR)$(pkgsysconfdir)/user \
1833                 $(DESTDIR)$(dbussessionservicedir) \
1834                 $(DESTDIR)$(sysconfdir)/xdg/systemd
1835         ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
1836                 rm -f user && \
1837                 $(LN_S) $(pkgsysconfdir)/user user )
1838         ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
1839                 rm -f systemd-initctl.socket systemd-stdout-syslog-bridge.socket systemd-shutdownd.socket syslog.socket && \
1840                 $(LN_S) ../systemd-stdout-syslog-bridge.socket systemd-stdout-syslog-bridge.socket && \
1841                 $(LN_S) ../systemd-initctl.socket systemd-initctl.socket && \
1842                 $(LN_S) ../systemd-shutdownd.socket systemd-shutdownd.socket && \
1843                 $(LN_S) ../syslog.socket syslog.socket )
1844         ( cd $(DESTDIR)$(systemunitdir)/runlevel1.target.wants && \
1845                 rm -f systemd-update-utmp-runlevel.service && \
1846                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1847         ( cd $(DESTDIR)$(systemunitdir)/runlevel2.target.wants && \
1848                 rm -f systemd-update-utmp-runlevel.service && \
1849                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1850         ( cd $(DESTDIR)$(systemunitdir)/runlevel3.target.wants && \
1851                 rm -f systemd-update-utmp-runlevel.service && \
1852                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1853         ( cd $(DESTDIR)$(systemunitdir)/runlevel4.target.wants && \
1854                 rm -f systemd-update-utmp-runlevel.service && \
1855                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1856         ( cd $(DESTDIR)$(systemunitdir)/runlevel5.target.wants && \
1857                 rm -f systemd-update-utmp-runlevel.service && \
1858                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1859         ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
1860                 rm -f systemd-update-utmp-shutdown.service \
1861                         systemd-random-seed-save.service && \
1862                 $(LN_S) ../systemd-update-utmp-shutdown.service systemd-update-utmp-shutdown.service && \
1863                 $(LN_S) ../systemd-random-seed-save.service systemd-random-seed-save.service )
1864         ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
1865                 rm -f systemd-remount-api-vfs.service \
1866                         fsck-root.service \
1867                         remount-rootfs.service \
1868                         var-run.mount \
1869                         media.mount && \
1870                 $(LN_S) ../systemd-remount-api-vfs.service systemd-remount-api-vfs.service && \
1871                 $(LN_S) ../fsck-root.service fsck-root.service && \
1872                 $(LN_S) ../remount-rootfs.service remount-rootfs.service && \
1873                 $(LN_S) ../var-run.mount var-run.mount && \
1874                 $(LN_S) ../media.mount media.mount )
1875         ( cd $(DESTDIR)$(userunitdir) && \
1876                 rm -f shutdown.target sockets.target bluetooth.target printer.target sound.target && \
1877                 $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \
1878                 $(LN_S) $(systemunitdir)/sockets.target sockets.target && \
1879                 $(LN_S) $(systemunitdir)/bluetooth.target bluetooth.target && \
1880                 $(LN_S) $(systemunitdir)/printer.target printer.target && \
1881                 $(LN_S) $(systemunitdir)/sound.target sound.target )
1882         ( cd $(DESTDIR)$(systemunitdir) && \
1883                 rm -f runlevel0.target runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target runlevel6.target && \
1884                 $(LN_S) poweroff.target runlevel0.target && \
1885                 $(LN_S) rescue.target runlevel1.target && \
1886                 $(LN_S) multi-user.target runlevel2.target && \
1887                 $(LN_S) multi-user.target runlevel3.target && \
1888                 $(LN_S) multi-user.target runlevel4.target && \
1889                 $(LN_S) graphical.target runlevel5.target && \
1890                 $(LN_S) reboot.target runlevel6.target )
1891         ( cd $(DESTDIR)$(systemunitdir) && \
1892                 rm -f default.target ctrl-alt-del.target dbus-org.freedesktop.login1.service autovt@.service && \
1893                 $(LN_S) graphical.target default.target && \
1894                 $(LN_S) reboot.target ctrl-alt-del.target && \
1895                 $(LN_S) systemd-logind.service dbus-org.freedesktop.login1.service && \
1896                 $(LN_S) getty@.service autovt@.service )
1897         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1898                 rm -f getty.target systemd-user-sessions.service systemd-ask-password-wall.path systemd-logind.service && \
1899                 $(LN_S) ../getty.target getty.target && \
1900                 $(LN_S) ../systemd-user-sessions.service systemd-user-sessions.service && \
1901                 $(LN_S) ../systemd-ask-password-wall.path systemd-ask-password-wall.path && \
1902                 $(LN_S) ../systemd-logind.service systemd-logind.service )
1903         ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
1904                 rm -f getty@tty1.service && \
1905                 $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service )
1906         ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
1907                 rm -f remote-fs.target && \
1908                 $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target )
1909         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1910                 rm -f dev-hugepages.mount \
1911                         dev-mqueue.mount \
1912                         sys-kernel-config.mount \
1913                         sys-kernel-debug.mount \
1914                         sys-kernel-security.mount \
1915                         sys-fs-fuse-connections.mount \
1916                         systemd-vconsole-setup.service \
1917                         systemd-modules-load.service \
1918                         systemd-random-seed-load.service \
1919                         systemd-tmpfiles-setup.service \
1920                         systemd-sysctl.service \
1921                         systemd-ask-password-console.path \
1922                         systemd-kmsg-syslogd.service \
1923                         cryptsetup.target && \
1924                 $(LN_S) ../dev-hugepages.mount dev-hugepages.mount && \
1925                 $(LN_S) ../dev-mqueue.mount dev-mqueue.mount && \
1926                 $(LN_S) ../sys-kernel-config.mount sys-kernel-config.mount && \
1927                 $(LN_S) ../sys-kernel-debug.mount sys-kernel-debug.mount && \
1928                 $(LN_S) ../sys-kernel-security.mount sys-kernel-security.mount && \
1929                 $(LN_S) ../sys-fs-fuse-connections.mount sys-fs-fuse-connections.mount && \
1930                 $(LN_S) ../systemd-vconsole-setup.service systemd-vconsole-setup.service && \
1931                 $(LN_S) ../systemd-modules-load.service systemd-modules-load.service && \
1932                 $(LN_S) ../systemd-random-seed-load.service systemd-random-seed-load.service && \
1933                 $(LN_S) ../systemd-tmpfiles-setup.service systemd-tmpfiles-setup.service && \
1934                 $(LN_S) ../systemd-sysctl.service systemd-sysctl.service && \
1935                 $(LN_S) ../systemd-ask-password-console.path systemd-ask-password-console.path && \
1936                 $(LN_S) ../systemd-kmsg-syslogd.service && \
1937                 $(LN_S) ../cryptsetup.target cryptsetup.target )
1938 if ENABLE_BINFMT
1939         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1940                 rm -f systemd-binfmt.service \
1941                         proc-sys-fs-binfmt_misc.automount && \
1942                 $(LN_S) ../systemd-binfmt.service systemd-binfmt.service && \
1943                 $(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount )
1944 endif
1945 if ENABLE_HOSTNAMED
1946         ( cd $(DESTDIR)$(systemunitdir) && \
1947                 rm -f dbus-org.freedesktop.hostname1.service && \
1948                 $(LN_S) systemd-hostnamed.service dbus-org.freedesktop.hostname1.service )
1949 endif
1950 if ENABLE_TIMEDATED
1951         ( cd $(DESTDIR)$(systemunitdir) && \
1952                 rm -f dbus-org.freedesktop.timedate1.service  && \
1953                 $(LN_S) systemd-timedated.service dbus-org.freedesktop.timedate1.service )
1954 endif
1955 if ENABLE_LOCALED
1956         ( cd $(DESTDIR)$(systemunitdir) && \
1957                 rm -f dbus-org.freedesktop.locale1.service && \
1958                 $(LN_S) systemd-localed.service dbus-org.freedesktop.locale1.service )
1959 endif
1960         ( cd $(DESTDIR)$(systemunitdir)/basic.target.wants && \
1961                 rm -f systemd-tmpfiles-clean.timer && \
1962                 $(LN_S) ../systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.timer )
1963         ( cd $(DESTDIR)$(dbussessionservicedir) && \
1964                 rm -f org.freedesktop.systemd1.service && \
1965                 $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service )
1966 if HAVE_PLYMOUTH
1967         $(MKDIR_P) -m 0755 \
1968                 $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) \
1969                 $(DESTDIR)$(systemunitdir)/reboot.target.wants \
1970                 $(DESTDIR)$(systemunitdir)/kexec.target.wants \
1971                 $(DESTDIR)$(systemunitdir)/poweroff.target.wants \
1972                 $(DESTDIR)$(systemunitdir)/halt.target.wants
1973         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1974                 rm -f plymouth-start.service plymouth-read-write.service && \
1975                 $(LN_S) ../plymouth-start.service plymouth-start.service && \
1976                 $(LN_S) ../plymouth-read-write.service plymouth-read-write.service )
1977         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1978                 rm -f plymouth-quit.service plymouth-quit-wait.service && \
1979                 $(LN_S) ../plymouth-quit.service plymouth-quit.service && \
1980                 $(LN_S) ../plymouth-quit-wait.service plymouth-quit-wait.service )
1981         ( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \
1982                 rm -f plymouth-reboot.service && \
1983                 $(LN_S) ../plymouth-reboot.service plymouth-reboot.service )
1984         ( cd $(DESTDIR)$(systemunitdir)/kexec.target.wants && \
1985                 rm -f plymouth-kexec.service && \
1986                 $(LN_S) ../plymouth-kexec.service plymouth-kexec.service )
1987         ( cd $(DESTDIR)$(systemunitdir)/poweroff.target.wants && \
1988                 rm -f plymouth-poweroff.service && \
1989                 $(LN_S) ../plymouth-poweroff.service plymouth-poweroff.service )
1990         ( cd $(DESTDIR)$(systemunitdir)/halt.target.wants && \
1991                 rm -f plymouth-halt.service && \
1992                 $(LN_S) ../plymouth-halt.service plymouth-halt.service )
1993 endif
1994 if TARGET_MEEGO
1995         $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
1996         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1997                 rm -f network.target && \
1998                 $(LN_S) $(systemunitdir)/network.target network.target )
1999         ( cd $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants && \
2000                 rm -f * )
2001         ( cd $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants && \
2002                 rm -f * )
2003         ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
2004                 rm -f * )
2005         ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
2006                 rm -f * )
2007 endif
2008
2009 if TARGET_FEDORA
2010         $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2011         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
2012                 rm -f rc-local.service && \
2013                 $(LN_S) $(systemunitdir)/rc-local.service rc-local.service )
2014         ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
2015                 rm -f halt-local.service && \
2016                 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
2017         ( cd $(DESTDIR)$(systemunitdir) && \
2018                 rm -f display-manager.service single.service && \
2019                 $(LN_S) prefdm.service display-manager.service && \
2020                 $(LN_S) rescue.service single.service )
2021         ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
2022                 rm -f display-manager.service && \
2023                 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
2024 endif
2025
2026 if TARGET_MANDRIVA
2027         $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2028         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
2029                 rm -f rc-local.service && \
2030                 $(LN_S) $(systemunitdir)/rc-local.service rc-local.service )
2031         ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
2032                 rm -f halt-local.service && \
2033                 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
2034         ( cd $(DESTDIR)$(systemunitdir) && \
2035                 rm -f display-manager.service dm.service single.service && \
2036                 $(LN_S) prefdm.service display-manager.service && \
2037                 $(LN_S) prefdm.service dm.service && \
2038                 $(LN_S) rescue.service single.service )
2039         ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
2040                 rm -f display-manager.service && \
2041                 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
2042 endif
2043
2044 if TARGET_DEBIAN_OR_UBUNTU
2045         ( cd $(DESTDIR)$(systemunitdir) && \
2046                 rm -f runlevel5.target && \
2047                 $(LN_S) multi-user.target runlevel5.target )
2048 endif
2049
2050 if TARGET_SUSE
2051         $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2052         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
2053                 rm -f rc-local.service && \
2054                 $(LN_S) $(systemunitdir)/rc-local.service rc-local.service )
2055         ( cd $(DESTDIR)$(systemunitdir) && \
2056                 rm -f local.service && \
2057                 $(LN_S) rc-local.service local.service )
2058         ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
2059                 rm -f halt-local.service && \
2060                 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
2061 endif
2062
2063 if HAVE_SYSV_COMPAT
2064         ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
2065                 rm -f var-lock.mount && \
2066                 $(LN_S) ../var-lock.mount var-lock.mount )
2067 endif
2068
2069 install-exec-hook: libsystemd-daemon-install-hook libsystemd-login-install-hook
2070
2071 uninstall-hook: libsystemd-daemon-uninstall-hook libsystemd-login-uninstall-hook
2072
2073 DISTCHECK_CONFIGURE_FLAGS = \
2074         --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
2075         --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
2076         --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
2077         --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
2078         --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \
2079         --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
2080         --with-rootdir=$$dc_install_base/$(rootdir)
2081
2082 upload: all distcheck
2083         cp -v systemd-$(VERSION).tar.bz2 /home/lennart/git.fedora/systemd/
2084         scp systemd-$(VERSION).tar.bz2 fdo:/srv/www.freedesktop.org/www/software/systemd/
2085         scp man/*.html tango:public/systemd-man/
2086
2087 git-tag:
2088         git tag "v$(VERSION)" -m "systemd $(VERSION)"
2089
2090 update-kbd-model-map:
2091         src/generate-kbd-model-map > src/kbd-model-map