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