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