1 # This file is part of systemd.
3 # Copyright 2011 Lennart Poettering
4 # Copyright 2011 Kay Sievers
6 # systemd is free software; you can redistribute it and/or modify it
7 # under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
11 # systemd is distributed in the hope that it will be useful, but
12 # WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with systemd; If not, see <http://www.gnu.org/licenses/>.
19 ACLOCAL_AMFLAGS = -I m4
23 LIBSYSTEMD_LOGIN_CURRENT=0
24 LIBSYSTEMD_LOGIN_REVISION=6
25 LIBSYSTEMD_LOGIN_AGE=0
27 LIBSYSTEMD_DAEMON_CURRENT=0
28 LIBSYSTEMD_DAEMON_REVISION=0
29 LIBSYSTEMD_DAEMON_AGE=0
31 LIBSYSTEMD_ID128_CURRENT=0
32 LIBSYSTEMD_ID128_REVISION=0
33 LIBSYSTEMD_ID128_AGE=0
35 LIBSYSTEMD_JOURNAL_CURRENT=0
36 LIBSYSTEMD_JOURNAL_REVISION=0
37 LIBSYSTEMD_JOURNAL_AGE=0
39 # Dirs of external packages
40 dbuspolicydir=@dbuspolicydir@
41 dbussessionservicedir=@dbussessionservicedir@
42 dbussystemservicedir=@dbussystemservicedir@
43 dbusinterfacedir=@dbusinterfacedir@
44 udevrulesdir=@udevrulesdir@
46 pkgconfigdatadir=$(datadir)/pkgconfig
47 pkgconfiglibdir=$(libdir)/pkgconfig
48 polkitpolicydir=$(datadir)/polkit-1/actions
49 bashcompletiondir=$(sysconfdir)/bash_completion.d
51 # Our own, non-special dirs
52 pkgsysconfdir=$(sysconfdir)/systemd
53 userunitdir=$(prefix)/lib/systemd/user
54 tmpfilesdir=$(prefix)/lib/tmpfiles.d
55 usergeneratordir=$(pkglibexecdir)/user-generators
56 pkgincludedir=$(includedir)/systemd
58 # And these are the special ones for /
60 rootbindir=$(rootdir)/bin
61 rootlibexecdir=$(rootdir)/lib/systemd
62 systemgeneratordir=$(rootlibexecdir)/system-generators
63 systemshutdowndir=$(rootlibexecdir)/system-shutdown
64 systemunitdir=$(rootdir)/lib/systemd/system
69 UNINSTALL_EXEC_HOOKS =
71 polkitpolicy_in_files =
74 -include $(top_builddir)/config.h \
75 -DSYSTEM_CONFIG_FILE=\"$(pkgsysconfdir)/system.conf\" \
76 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
77 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
78 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
79 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
80 -DUSER_CONFIG_FILE=\"$(pkgsysconfdir)/user.conf\" \
81 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
82 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
83 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
84 -DSYSTEMD_BINARY_PATH=\"$(rootbindir)/systemd\" \
85 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
86 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
87 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
88 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
89 -DRUNTIME_DIR=\"/run\" \
90 -DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \
91 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
92 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
93 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
94 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
95 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
100 -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
101 -DKBD_SETFONT=\"/usr/bin/setfont\" \
102 -DDEFAULT_FONT=\"LatArCyrHeb-16\"
106 -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
107 -DKBD_SETFONT=\"/usr/bin/setfont\" \
108 -DDEFAULT_FONT=\"LatArCyrHeb-16\"
112 -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
113 -DKBD_SETFONT=\"/usr/bin/setfont\" \
114 -DDEFAULT_FONT=\"LatArCyrHeb-16\"
118 -DKBD_LOADKEYS=\"/bin/loadkeys\" \
119 -DKBD_SETFONT=\"/bin/setfont\" \
120 -DDEFAULT_FONT=\"LatArCyrHeb-16\"
124 -DKBD_LOADKEYS=\"/bin/loadkeys\" \
125 -DKBD_SETFONT=\"/bin/setfont\" \
126 -DDEFAULT_FONT=\"LatArCyrHeb-16\"
130 -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
131 -DKBD_SETFONT=\"/usr/bin/setfont\" \
132 -DDEFAULT_FONT=\"LatArCyrHeb-16\"
135 -DKBD_LOADKEYS=\"/bin/loadkeys\" \
136 -DKBD_SETFONT=\"/bin/setfont\" \
137 -DDEFAULT_FONT=\"latarcyrheb-sun16\"
141 -DKBD_LOADKEYS=\"/bin/loadkeys\" \
142 -DKBD_SETFONT=\"/bin/setfont\" \
143 -DDEFAULT_FONT=\"LatArCyrHeb-16\"
156 systemd-ask-password \
157 systemd-tty-ask-password-agent \
159 systemd-machine-id-setup \
164 systemd-stdio-bridge \
173 systemd-gnome-ask-password-agent
176 rootlibexec_PROGRAMS = \
177 systemd-stdout-syslog-bridge \
178 systemd-cgroups-agent \
180 systemd-update-utmp \
181 systemd-random-seed \
184 systemd-modules-load \
185 systemd-remount-api-vfs \
186 systemd-kmsg-syslogd \
187 systemd-vconsole-setup \
188 systemd-reply-password \
189 systemd-readahead-collect \
190 systemd-readahead-replay \
191 systemd-user-sessions \
196 systemd-detect-virt \
200 systemgenerator_PROGRAMS = \
201 systemd-getty-generator
203 if HAVE_LIBCRYPTSETUP
204 rootlibexec_PROGRAMS += \
207 systemgenerator_PROGRAMS += \
208 systemd-cryptsetup-generator
212 libsystemd-daemon.la \
213 libsystemd-id128.la \
214 libsystemd-journal.la
216 pkginclude_HEADERS = \
219 src/journal/sd-journal.h
236 pamlib_LTLIBRARIES = \
240 dist_pkgsysconf_DATA = \
244 dist_dbuspolicy_DATA = \
245 src/org.freedesktop.systemd1.conf
247 dist_dbussystemservice_DATA = \
248 src/org.freedesktop.systemd1.service
250 dist_udevrules_DATA = \
253 nodist_udevrules_DATA = \
254 src/73-seat-late.rules \
257 dbusinterface_DATA = \
258 org.freedesktop.systemd1.Manager.xml \
259 org.freedesktop.systemd1.Job.xml \
260 org.freedesktop.systemd1.Unit.xml \
261 org.freedesktop.systemd1.Service.xml \
262 org.freedesktop.systemd1.Socket.xml \
263 org.freedesktop.systemd1.Timer.xml \
264 org.freedesktop.systemd1.Target.xml \
265 org.freedesktop.systemd1.Device.xml \
266 org.freedesktop.systemd1.Mount.xml \
267 org.freedesktop.systemd1.Automount.xml \
268 org.freedesktop.systemd1.Snapshot.xml \
269 org.freedesktop.systemd1.Swap.xml \
270 org.freedesktop.systemd1.Path.xml
272 dist_bashcompletion_DATA = \
273 src/systemd-bash-completion.sh
275 dist_tmpfiles_DATA = \
276 tmpfiles.d/systemd.conf \
277 tmpfiles.d/tmp.conf \
281 dist_tmpfiles_DATA += \
282 tmpfiles.d/legacy.conf
285 dist_systemunit_DATA = \
286 units/graphical.target \
287 units/multi-user.target \
288 units/emergency.service \
289 units/emergency.target \
290 units/sysinit.target \
295 units/local-fs.target \
296 units/local-fs-pre.target \
297 units/remote-fs.target \
298 units/remote-fs-pre.target \
299 units/cryptsetup.target \
300 units/network.target \
301 units/nss-lookup.target \
302 units/mail-transfer-agent.target \
303 units/http-daemon.target \
304 units/poweroff.target \
305 units/reboot.target \
306 units/rescue.target \
307 units/rpcbind.target \
308 units/time-sync.target \
309 units/shutdown.target \
311 units/umount.target \
312 units/sigpwr.target \
313 units/sockets.target \
315 units/systemd-initctl.socket \
316 units/systemd-stdout-syslog-bridge.socket \
317 units/systemd-shutdownd.socket \
318 units/syslog.socket \
319 units/dev-hugepages.mount \
320 units/dev-mqueue.mount \
321 units/sys-kernel-config.mount \
322 units/sys-kernel-debug.mount \
323 units/sys-kernel-security.mount \
324 units/sys-fs-fuse-connections.mount \
325 units/var-run.mount \
327 units/remount-rootfs.service \
328 units/printer.target \
330 units/bluetooth.target \
331 units/smartcard.target \
332 units/systemd-readahead-done.timer \
333 units/systemd-tmpfiles-clean.timer \
334 units/quotaon.service \
335 units/systemd-ask-password-wall.path \
336 units/systemd-ask-password-console.path \
337 units/syslog.target \
338 units/systemd-journald.socket
341 dist_systemunit_DATA += \
345 nodist_systemunit_DATA = \
346 units/getty@.service \
347 units/serial-getty@.service \
348 units/console-shell.service \
349 units/systemd-initctl.service \
350 units/systemd-stdout-syslog-bridge.service \
351 units/systemd-shutdownd.service \
352 units/systemd-journald.service \
353 units/systemd-kmsg-syslogd.service \
354 units/systemd-modules-load.service \
355 units/systemd-vconsole-setup.service \
356 units/systemd-remount-api-vfs.service \
357 units/systemd-update-utmp-runlevel.service \
358 units/systemd-update-utmp-shutdown.service \
359 units/systemd-random-seed-save.service \
360 units/systemd-random-seed-load.service \
361 units/systemd-readahead-collect.service \
362 units/systemd-readahead-replay.service \
363 units/systemd-readahead-done.service \
364 units/systemd-tmpfiles-setup.service \
365 units/systemd-tmpfiles-clean.service \
366 units/systemd-user-sessions.service \
367 units/systemd-ask-password-wall.service \
368 units/systemd-ask-password-console.service \
369 units/systemd-sysctl.service \
371 units/poweroff.service \
372 units/reboot.service \
373 units/kexec.service \
374 units/fsck@.service \
375 units/fsck-root.service \
376 units/quotacheck.service \
377 units/rescue.service \
380 dist_userunit_DATA = \
381 units/user/default.target \
382 units/user/exit.target
384 nodist_userunit_DATA = \
385 units/user/exit.service
388 units/getty@.service.m4 \
389 units/serial-getty@.service.m4 \
390 units/console-shell.service.m4 \
391 units/rescue.service.m4 \
392 units/systemd-initctl.service.in \
393 units/systemd-stdout-syslog-bridge.service.in \
394 units/systemd-shutdownd.service.in \
395 units/systemd-journald.service.in \
396 units/systemd-kmsg-syslogd.service.in \
397 units/systemd-modules-load.service.in \
398 units/systemd-vconsole-setup.service.in \
399 units/systemd-remount-api-vfs.service.in \
400 units/systemd-update-utmp-runlevel.service.in \
401 units/systemd-update-utmp-shutdown.service.in \
402 units/systemd-random-seed-save.service.in \
403 units/systemd-random-seed-load.service.in \
404 units/systemd-readahead-collect.service.in \
405 units/systemd-readahead-replay.service.in \
406 units/systemd-readahead-done.service.in \
407 units/systemd-tmpfiles-setup.service.in \
408 units/systemd-tmpfiles-clean.service.in \
409 units/systemd-user-sessions.service.in \
410 units/systemd-ask-password-wall.service.in \
411 units/systemd-ask-password-console.service.in \
412 units/systemd-sysctl.service.in \
413 units/halt.service.in \
414 units/poweroff.service.in \
415 units/reboot.service.in \
416 units/kexec.service.in \
417 units/user/exit.service.in \
418 units/fsck@.service.in \
419 units/fsck-root.service.in \
420 units/quotacheck.service.in \
421 units/user@.service.in \
423 libsystemd-daemon.pc.in \
424 libsystemd-id128.pc.in \
425 libsystemd-journal.pc.in \
426 src/libsystemd-daemon.sym \
427 src/libsystemd-id128.sym \
428 src/journal/libsystemd-journal.sym \
430 src/73-seat-late.rules.in \
431 src/99-systemd.rules.in \
435 dist_systemunit_DATA += \
436 units/fedora/prefdm.service \
437 units/fedora/rc-local.service \
438 units/fedora/halt-local.service
439 systemgenerator_PROGRAMS += \
440 systemd-rc-local-generator
444 dist_systemunit_DATA += \
445 units/mandriva/prefdm.service \
446 units/fedora/rc-local.service \
447 units/fedora/halt-local.service
448 systemgenerator_PROGRAMS += \
449 systemd-rc-local-generator
453 dist_systemunit_DATA += \
454 units/frugalware/display-manager.service
458 dist_systemunit_DATA += \
459 units/suse/rc-local.service \
460 units/suse/halt-local.service
461 systemgenerator_PROGRAMS += \
462 systemd-rc-local-generator
466 dist_systemunit_DATA += \
467 units/mageia/prefdm.service \
468 units/fedora/rc-local.service \
469 units/fedora/halt-local.service
470 systemgenerator_PROGRAMS += \
471 systemd-rc-local-generator
475 dist_systemunit_DATA += \
476 units/plymouth-start.service \
477 units/plymouth-read-write.service \
478 units/plymouth-quit.service \
479 units/plymouth-quit-wait.service \
480 units/plymouth-reboot.service \
481 units/plymouth-kexec.service \
482 units/plymouth-poweroff.service \
483 units/plymouth-halt.service \
484 units/systemd-ask-password-plymouth.path
486 nodist_systemunit_DATA += \
487 units/systemd-ask-password-plymouth.service
490 units/systemd-ask-password-plymouth.service.in
502 pkgconfigdata_DATA = \
505 pkgconfiglib_DATA = \
506 libsystemd-daemon.pc \
507 libsystemd-id128.pc \
508 libsystemd-journal.pc
510 # First passed through sed, followed by intltool
511 polkitpolicy_in_in_files = \
512 src/org.freedesktop.systemd1.policy.in.in
514 nodist_polkitpolicy_DATA = \
515 $(polkitpolicy_in_files:.policy.in=.policy) \
516 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
519 $(polkitpolicy_in_files) \
520 $(polkitpolicy_in_in_files)
522 @INTLTOOL_POLICY_RULE@
524 noinst_LTLIBRARIES = \
525 libsystemd-basic.la \
528 libsystemd_basic_la_SOURCES = \
541 libsystemd_basic_la_CFLAGS = \
545 libsystemd_basic_la_LIBADD = \
549 libsystemd_core_la_SOURCES = \
554 src/load-fragment.c \
577 src/dbus-automount.c \
579 src/dbus-snapshot.c \
585 src/hostname-setup.c \
586 src/selinux-setup.c \
587 src/loopback-setup.c \
590 src/machine-id-setup.c \
604 nodist_libsystemd_core_la_SOURCES = \
605 src/load-fragment-gperf.c \
606 src/load-fragment-gperf-nulstr.c
609 src/load-fragment-gperf.gperf.m4
611 libsystemd_core_la_CFLAGS = \
619 libsystemd_core_la_LIBADD = \
620 libsystemd-basic.la \
628 # This is needed because automake is buggy in how it generates the
629 # rules for C programs, but not Vala programs. We therefore can't
630 # list the .h files as dependencies if we want make dist to work.
633 ${libsystemd_basic_la_SOURCES:.c=.h} \
634 ${libsystemd_core_la_SOURCES:.c=.h} \
635 ${libsystemd_daemon_la_SOURCES:.c=.h} \
642 src/linux/auto_dev-ioctl.h \
643 src/linux/fanotify.h \
653 src/readahead-common.h \
654 src/ask-password-api.h \
660 src/journal/journal-def.h \
661 src/journal/journal-internal.h \
662 src/journal/journal-file.h \
663 src/journal/lookup3.h \
664 src/journal/compress.h \
665 src/journal/journal-rate-limit.h \
673 man/systemd-nspawn.1 \
674 man/systemd-tmpfiles.8 \
675 man/systemd-notify.1 \
679 man/sd_listen_fds.3 \
682 man/systemd.service.5 \
683 man/systemd.socket.5 \
684 man/systemd.mount.5 \
685 man/systemd.automount.5 \
687 man/systemd.timer.5 \
689 man/systemd.target.5 \
690 man/systemd.device.5 \
691 man/systemd.snapshot.5 \
706 man/vconsole.conf.5 \
710 man/modules-load.d.5 \
712 man/systemd-ask-password.1 \
713 man/sd_pid_get_session.3 \
714 man/sd_uid_get_state.3 \
715 man/sd_session_is_active.3 \
716 man/sd_seat_get_active.3 \
723 man/sd_is_socket_unix.3 \
724 man/sd_is_socket_inet.3 \
728 man/sd_session_get_uid.3 \
729 man/sd_session_get_seat.3 \
730 man/sd_pid_get_owner_uid.3 \
731 man/sd_uid_is_on_seat.3 \
732 man/sd_uid_get_sessions.3 \
733 man/sd_uid_get_seats.3 \
734 man/sd_seat_get_sessions.3 \
735 man/sd_seat_can_multi_session.3 \
736 man/sd_get_sessions.3 \
739 man/reboot.8: man/halt.8
740 man/poweroff.8: man/halt.8
741 man/sd_is_socket.3: man/sd_is_fifo.3
742 man/sd_is_socket_unix.3: man/sd_is_fifo.3
743 man/sd_is_socket_inet.3: man/sd_is_fifo.3
744 man/sd_is_mq.3: man/sd_is_fifo.3
745 man/sd_notifyf.3: man/sd_notify.3
746 man/init.1: man/systemd.1
747 man/sd_session_get_uid.3: man/sd_session_is_active.3
748 man/sd_session_get_seat.3: man/sd_session_is_active.3
749 man/sd_pid_get_owner_uid.3: man/sd_pid_get_session.3
750 man/sd_uid_is_on_seat.3: man/sd_uid_get_state.3
751 man/sd_uid_get_sessions.3: man/sd_uid_get_state.3
752 man/sd_uid_get_seats.3: man/sd_uid_get_state.3
753 man/sd_seat_get_sessions.3: man/sd_seat_get_active.3
754 man/sd_seat_can_multi_session.3: man/sd_seat_get_active.3
755 man/sd_get_sessions.3: man/sd_get_seats.3
756 man/sd_get_uids.3: man/sd_get_seats.3
763 man/systemd.special.7
766 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
769 ${patsubst %.1,%.xml.in,${patsubst %.3,%.xml.in,${patsubst %.5,%.xml.in,${patsubst %.7,%.xml.in,${patsubst %.8,%.xml.in,$(nodist_man_MANS)}}}}}
772 ${XML_FILES:.xml=.html}
774 nodist_noinst_DATA = \
775 ${XML_IN_FILES:.xml.in=.html}
780 ${nodist_man_MANS:=.in} \
781 ${XML_IN_FILES:.xml.in=.html.in}
794 test_engine_SOURCES = \
797 test_engine_CFLAGS = $(systemd_CFLAGS)
798 test_engine_LDADD = $(systemd_LDADD)
800 test_job_type_SOURCES = \
803 test_job_type_CFLAGS = $(systemd_CFLAGS)
804 test_job_type_LDADD = $(systemd_LDADD)
809 test_ns_CFLAGS = $(systemd_CFLAGS)
810 test_ns_LDADD = $(systemd_LDADD)
812 test_loopback_SOURCES = \
813 src/test-loopback.c \
816 test_loopback_LDADD = \
819 test_hostname_SOURCES = \
820 src/test-hostname.c \
823 test_hostname_LDADD = \
826 test_daemon_SOURCES = \
829 test_daemon_LDADD = \
830 libsystemd-basic.la \
833 test_cgroup_SOURCES = \
837 test_cgroup_CFLAGS = \
840 test_cgroup_LDADD = \
843 test_env_replace_SOURCES = \
844 src/test-env-replace.c
846 test_env_replace_CFLAGS = \
849 test_env_replace_LDADD = \
852 test_strv_SOURCES = \
862 test_install_SOURCES = \
868 test_install_CFLAGS = \
872 test_install_LDADD = \
875 test_id128_SOURCES = \
879 test_id128_CFLAGS = \
885 test_journal_SOURCES = \
886 src/journal/test-journal.c \
887 src/journal/sd-journal.c \
888 src/journal/journal-file.c \
889 src/journal/lookup3.c \
890 src/journal/journal-send.c \
893 test_journal_CFLAGS = \
896 test_journal_LDADD = \
900 test_journal_SOURCES += \
901 src/journal/compress.c
902 test_journal_CFLAGS += \
904 test_journal_LDADD += \
908 systemd_journald_SOURCES = \
909 src/journal/journald.c \
910 src/journal/sd-journal.c \
911 src/journal/journal-file.c \
912 src/journal/lookup3.c \
913 src/journal/journal-rate-limit.c \
918 systemd_journald_CFLAGS = \
922 systemd_journald_LDADD = \
923 libsystemd-basic.la \
924 libsystemd-daemon.la \
928 systemd_journald_SOURCES += \
929 src/journal/compress.c
930 systemd_journald_CFLAGS += \
932 systemd_journald_LDADD += \
936 systemd_journalctl_SOURCES = \
937 src/journal/journalctl.c \
938 src/journal/sd-journal.c \
939 src/journal/journal-file.c \
940 src/journal/lookup3.c \
944 systemd_journalctl_CFLAGS = \
947 systemd_journalctl_LDADD = \
951 systemd_journalctl_SOURCES += \
952 src/journal/compress.c
953 systemd_journalctl_CFLAGS += \
955 systemd_journalctl_LDADD += \
959 systemd_stdout_syslog_bridge_SOURCES = \
960 src/stdout-syslog-bridge.c \
963 systemd_stdout_syslog_bridge_LDADD = \
964 libsystemd-basic.la \
965 libsystemd-daemon.la \
968 systemd_initctl_SOURCES = \
972 systemd_initctl_CFLAGS = \
976 systemd_initctl_LDADD = \
977 libsystemd-basic.la \
978 libsystemd-daemon.la \
981 systemd_update_utmp_SOURCES = \
986 systemd_update_utmp_CFLAGS = \
991 systemd_update_utmp_LDADD = \
992 libsystemd-basic.la \
996 systemd_random_seed_SOURCES = \
999 systemd_random_seed_CFLAGS = \
1002 systemd_random_seed_LDADD = \
1005 systemd_shutdownd_SOURCES = \
1009 systemd_shutdownd_CFLAGS = \
1012 systemd_shutdownd_LDADD = \
1013 libsystemd-basic.la \
1014 libsystemd-daemon.la
1016 dist_pkgdata_DATA = \
1019 dist_noinst_SCRIPT = \
1020 src/generate-kbd-model-map
1022 # ------------------------------------------------------------------------------
1024 systemd_binfmt_SOURCES = \
1027 systemd_binfmt_LDADD = \
1030 rootlibexec_PROGRAMS += \
1033 dist_systemunit_DATA += \
1034 units/proc-sys-fs-binfmt_misc.automount \
1035 units/proc-sys-fs-binfmt_misc.mount
1037 nodist_systemunit_DATA += \
1038 units/systemd-binfmt.service
1040 binfmt-install-data-hook:
1041 $(MKDIR_P) -m 0755 \
1042 $(DESTDIR)$(prefix)/lib/binfmt.d \
1043 $(DESTDIR)$(sysconfdir)/binfmt.d
1044 ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1045 rm -f systemd-binfmt.service \
1046 proc-sys-fs-binfmt_misc.automount && \
1047 $(LN_S) ../systemd-binfmt.service systemd-binfmt.service && \
1048 $(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount )
1050 INSTALL_DATA_HOOKS += \
1051 binfmt-install-data-hook
1057 units/systemd-binfmt.service.in
1060 # ------------------------------------------------------------------------------
1062 systemd_hostnamed_SOURCES = \
1063 src/hostname/hostnamed.c \
1067 systemd_hostnamed_CFLAGS = \
1071 systemd_hostnamed_LDADD = \
1072 libsystemd-basic.la \
1073 libsystemd-daemon.la \
1076 rootlibexec_PROGRAMS += \
1079 nodist_systemunit_DATA += \
1080 units/systemd-hostnamed.service
1082 dist_dbuspolicy_DATA += \
1083 src/hostname/org.freedesktop.hostname1.conf
1085 dist_dbussystemservice_DATA += \
1086 src/hostname/org.freedesktop.hostname1.service
1088 polkitpolicy_in_files += \
1089 src/hostname/org.freedesktop.hostname1.policy.in
1091 dbusinterface_DATA += \
1092 org.freedesktop.hostname1.xml
1094 org.freedesktop.hostname1.xml: systemd-hostnamed
1095 $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.hostname1 $< $@.tmp && \
1096 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1097 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1099 hostnamed-install-data-hook:
1100 ( cd $(DESTDIR)$(systemunitdir) && \
1101 rm -f dbus-org.freedesktop.hostname1.service && \
1102 $(LN_S) systemd-hostnamed.service dbus-org.freedesktop.hostname1.service )
1104 INSTALL_DATA_HOOKS += \
1105 hostnamed-install-data-hook
1108 units/systemd-hostnamed.service.in
1111 # ------------------------------------------------------------------------------
1113 systemd_localed_SOURCES = \
1114 src/locale/localed.c \
1118 systemd_localed_CFLAGS = \
1122 systemd_localed_LDADD = \
1123 libsystemd-basic.la \
1124 libsystemd-daemon.la \
1127 nodist_systemunit_DATA += \
1128 units/systemd-localed.service
1130 rootlibexec_PROGRAMS += \
1133 dist_dbuspolicy_DATA += \
1134 src/locale/org.freedesktop.locale1.conf
1136 dist_dbussystemservice_DATA += \
1137 src/locale/org.freedesktop.locale1.service
1139 polkitpolicy_in_files += \
1140 src/locale/org.freedesktop.locale1.policy.in
1142 dbusinterface_DATA += \
1143 org.freedesktop.locale1.xml
1145 org.freedesktop.locale1.xml: systemd-localed
1146 $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.locale1 $< $@.tmp && \
1147 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1148 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1150 localed-install-data-hook:
1151 ( cd $(DESTDIR)$(systemunitdir) && \
1152 rm -f dbus-org.freedesktop.locale1.service && \
1153 $(LN_S) systemd-localed.service dbus-org.freedesktop.locale1.service )
1155 INSTALL_DATA_HOOKS += \
1156 localed-install-data-hook
1159 units/systemd-localed.service.in
1162 # ------------------------------------------------------------------------------
1164 systemd_timedated_SOURCES = \
1165 src/timedate/timedated.c \
1169 systemd_timedated_CFLAGS = \
1173 systemd_timedated_LDADD = \
1174 libsystemd-basic.la \
1175 libsystemd-daemon.la \
1178 rootlibexec_PROGRAMS += \
1181 dist_dbussystemservice_DATA += \
1182 src/timedate/org.freedesktop.timedate1.service
1184 dist_dbuspolicy_DATA += \
1185 src/timedate/org.freedesktop.timedate1.conf
1187 nodist_systemunit_DATA += \
1188 units/systemd-timedated.service
1190 polkitpolicy_in_files += \
1191 src/timedate/org.freedesktop.timedate1.policy.in
1193 org.freedesktop.timedate1.xml: systemd-timedated
1194 $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.timedate1 $< $@.tmp && \
1195 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1196 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1198 dbusinterface_DATA += \
1199 org.freedesktop.timedate1.xml
1201 timedated-install-data-hook:
1202 ( cd $(DESTDIR)$(systemunitdir) && \
1203 rm -f dbus-org.freedesktop.timedate1.service && \
1204 $(LN_S) systemd-timedated.service dbus-org.freedesktop.timedate1.service )
1206 INSTALL_DATA_HOOKS += \
1207 timedated-install-data-hook
1210 units/systemd-timedated.service.in
1213 # ------------------------------------------------------------------------------
1215 systemd_logind_SOURCES = \
1216 src/login/logind.c \
1217 src/login/logind-dbus.c \
1218 src/login/logind-device.c \
1219 src/login/logind-seat.c \
1220 src/login/logind-seat-dbus.c \
1221 src/login/logind-session.c \
1222 src/login/logind-session-dbus.c \
1223 src/login/logind-user.c \
1224 src/login/logind-user-dbus.c \
1230 nodist_systemd_logind_SOURCES = \
1231 src/login/logind-gperf.c
1234 systemd_logind_SOURCES += \
1235 src/login/logind-acl.c \
1239 systemd_logind_CPPFLAGS = \
1241 -I $(top_srcdir)/src/login
1243 systemd_logind_CFLAGS = \
1249 systemd_logind_LDADD = \
1250 libsystemd-basic.la \
1251 libsystemd-daemon.la \
1256 rootlibexec_PROGRAMS += \
1259 systemd_loginctl_SOURCES = \
1260 src/login/loginctl.c \
1267 systemd_loginctl_CFLAGS = \
1272 systemd_loginctl_LDADD = \
1273 libsystemd-basic.la \
1277 rootbin_PROGRAMS += \
1280 test_login_SOURCES = \
1281 src/login/test-login.c
1283 test_login_LDADD = \
1284 libsystemd-basic.la \
1287 noinst_PROGRAMS += \
1290 libsystemd_login_la_SOURCES = \
1291 src/login/sd-login.c \
1294 libsystemd_login_la_CFLAGS = \
1298 libsystemd_login_la_LDFLAGS = \
1300 -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
1301 -Wl,--version-script=$(top_srcdir)/src/login/libsystemd-login.sym
1303 libsystemd_login_la_LIBADD = \
1306 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1307 libsystemd-login-install-hook:
1308 if test "$(libdir)" != "$(rootlibdir)"; then \
1309 mkdir -p $(DESTDIR)$(rootlibdir) && \
1310 so_img_name=$$(readlink $(DESTDIR)$(libdir)/libsystemd-login.so) && \
1311 so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
1312 ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libsystemd-login.so && \
1313 mv $(DESTDIR)$(libdir)/libsystemd-login.so.* $(DESTDIR)$(rootlibdir); \
1316 INSTALL_EXEC_HOOKS += \
1317 libsystemd-login-install-hook
1319 libsystemd-login-uninstall-hook:
1320 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
1322 UNINSTALL_EXEC_HOOKS += \
1323 libsystemd-login-uninstall-hook
1325 nodist_systemunit_DATA += \
1326 units/systemd-logind.service
1328 dist_dbussystemservice_DATA += \
1329 src/login/org.freedesktop.login1.service
1331 dist_dbuspolicy_DATA += \
1332 src/login/org.freedesktop.login1.conf
1334 dist_pkgsysconf_DATA += \
1335 src/login/systemd-logind.conf
1337 pkginclude_HEADERS += \
1338 src/login/sd-login.h
1340 lib_LTLIBRARIES += \
1343 pkgconfiglib_DATA += \
1346 polkitpolicy_in_files += \
1347 src/login/org.freedesktop.login1.policy.in
1349 logind-install-data-hook:
1350 ( cd $(DESTDIR)$(systemunitdir) && \
1351 rm -f dbus-org.freedesktop.login1.service && \
1352 $(LN_S) systemd-logind.service dbus-org.freedesktop.login1.service)
1353 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1354 rm -f systemd-logind.service && \
1355 $(LN_S) ../systemd-logind.service systemd-logind.service )
1357 INSTALL_DATA_HOOKS += \
1358 logind-install-data-hook
1360 systemd_uaccess_SOURCES = \
1364 systemd_uaccess_SOURCES += \
1365 src/login/logind-acl.c \
1369 systemd_uaccess_CFLAGS = \
1374 systemd_uaccess_LDADD = \
1375 libsystemd-basic.la \
1376 libsystemd-daemon.la \
1377 libsystemd-login.la \
1381 rootlibexec_PROGRAMS += \
1384 dist_udevrules_DATA += \
1385 src/70-uaccess.rules
1388 man/systemd-logind.conf.5 \
1390 man/systemd-loginctl.1 \
1391 man/sd_login_monitor_new.3
1394 man/sd_login_monitor_unref.3 \
1395 man/sd_login_monitor_flush.3 \
1396 man/sd_login_monitor_get_fd.3
1398 man/sd_login_monitor_unref.3: man/sd_login_monitor_new.3
1399 man/sd_login_monitor_flush.3: man/sd_login_monitor_new.3
1400 man/sd_login_monitor_get_fd.3: man/sd_login_monitor_new.3
1403 src/login/logind-gperf.gperf \
1404 units/systemd-logind.service.in \
1405 libsystemd-login.pc.in \
1406 src/login/libsystemd-login.sym \
1407 src/login/logind.h \
1408 src/login/logind-device.h \
1409 src/login/logind-seat.h \
1410 src/login/logind-session.h \
1411 src/login/logind-user.h \
1412 src/login/logind-acl.h
1415 src/login/logind-gperf.c
1417 # ------------------------------------------------------------------------------
1419 systemd_shutdown_SOURCES = \
1424 systemd_shutdown_CFLAGS = \
1428 systemd_shutdown_LDADD = \
1429 libsystemd-basic.la \
1432 systemd_modules_load_SOURCES = \
1435 systemd_modules_load_CFLAGS = \
1438 systemd_modules_load_LDADD = \
1441 systemd_tmpfiles_SOURCES = \
1444 systemd_tmpfiles_CFLAGS = \
1447 systemd_tmpfiles_LDADD = \
1450 systemd_machine_id_setup_SOURCES = \
1451 src/machine-id-setup.c \
1452 src/machine-id-main.c \
1455 systemd_machine_id_setup_CFLAGS = \
1458 systemd_machine_id_setup_LDADD = \
1461 systemd_sysctl_SOURCES = \
1464 systemd_sysctl_CFLAGS = \
1467 systemd_sysctl_LDADD = \
1470 systemd_fsck_SOURCES = \
1474 systemd_fsck_CFLAGS = \
1479 systemd_fsck_LDADD = \
1480 libsystemd-basic.la \
1484 systemd_quotacheck_SOURCES = \
1487 systemd_quotacheck_CFLAGS = \
1490 systemd_quotacheck_LDADD = \
1493 systemd_timestamp_SOURCES = \
1496 systemd_timestamp_CFLAGS = \
1499 systemd_timestamp_LDADD = \
1502 systemd_ac_power_SOURCES = \
1505 systemd_ac_power_CFLAGS = \
1509 systemd_ac_power_LDADD = \
1510 libsystemd-basic.la \
1513 systemd_detect_virt_SOURCES = \
1516 systemd_detect_virt_CFLAGS = \
1519 systemd_detect_virt_LDADD = \
1522 systemd_cryptsetup_SOURCES = \
1524 src/ask-password-api.c
1526 systemd_cryptsetup_CFLAGS = \
1527 $(LIBCRYPTSETUP_CFLAGS) \
1531 systemd_cryptsetup_LDADD = \
1532 $(LIBCRYPTSETUP_LIBS) \
1536 systemd_cryptsetup_generator_SOURCES = \
1537 src/cryptsetup-generator.c \
1540 systemd_cryptsetup_generator_CFLAGS = \
1543 systemd_cryptsetup_generator_LDADD = \
1546 systemd_getty_generator_SOURCES = \
1547 src/getty-generator.c \
1550 systemd_getty_generator_CFLAGS = \
1553 systemd_getty_generator_LDADD = \
1556 systemd_rc_local_generator_SOURCES = \
1557 src/rc-local-generator.c
1559 systemd_rc_local_generator_CFLAGS = \
1562 systemd_rc_local_generator_LDADD = \
1565 systemd_user_sessions_SOURCES = \
1566 src/user-sessions.c \
1569 systemd_user_sessions_CFLAGS = \
1572 systemd_user_sessions_LDADD = \
1575 systemd_vconsole_setup_SOURCES = \
1576 src/vconsole-setup.c
1578 systemd_vconsole_setup_CFLAGS = \
1581 systemd_vconsole_setup_LDADD = \
1584 systemd_remount_api_vfs_SOURCES = \
1585 src/remount-api-vfs.c \
1589 systemd_remount_api_vfs_CFLAGS = \
1592 systemd_remount_api_vfs_LDADD = \
1595 systemd_cgroups_agent_SOURCES = \
1596 src/cgroups-agent.c \
1599 systemd_cgroups_agent_CFLAGS = \
1603 systemd_cgroups_agent_LDADD = \
1604 libsystemd-basic.la \
1607 systemd_kmsg_syslogd_SOURCES = \
1608 src/kmsg-syslogd.c \
1611 systemd_kmsg_syslogd_CFLAGS = \
1614 systemd_kmsg_syslogd_LDADD = \
1615 libsystemd-basic.la \
1616 libsystemd-daemon.la
1618 systemctl_SOURCES = \
1631 systemctl_CFLAGS = \
1636 libsystemd-basic.la \
1637 libsystemd-daemon.la \
1640 systemd_notify_SOURCES = \
1644 systemd_notify_LDADD = \
1645 libsystemd-basic.la \
1646 libsystemd-daemon.la
1648 systemd_ask_password_SOURCES = \
1649 src/ask-password.c \
1650 src/ask-password-api.c
1652 systemd_ask_password_LDADD = \
1655 systemd_reply_password_SOURCES = \
1656 src/reply-password.c
1658 systemd_reply_password_LDADD = \
1661 systemd_readahead_collect_SOURCES = \
1662 src/readahead-collect.c \
1663 src/readahead-common.c
1665 systemd_readahead_collect_CFLAGS = \
1668 systemd_readahead_collect_LDADD = \
1669 libsystemd-basic.la \
1670 libsystemd-daemon.la \
1673 systemd_readahead_replay_SOURCES = \
1674 src/readahead-replay.c \
1675 src/readahead-common.c
1677 systemd_readahead_replay_CFLAGS = \
1680 systemd_readahead_replay_LDADD = \
1681 libsystemd-basic.la \
1682 libsystemd-daemon.la \
1685 systemd_cgls_SOURCES = \
1691 systemd_cgls_CFLAGS = \
1694 systemd_cgls_LDADD = \
1697 systemd_nspawn_SOURCES = \
1700 src/loopback-setup.c
1702 systemd_nspawn_CFLAGS = \
1705 systemd_nspawn_LDADD = \
1706 libsystemd-basic.la \
1707 libsystemd-daemon.la
1709 systemd_stdio_bridge_SOURCES = \
1712 systemd_stdio_bridge_LDADD = \
1715 systemadm_SOURCES = \
1716 src/systemadm.vala \
1717 src/systemd-interfaces.vala \
1720 systemadm_CFLAGS = \
1723 -Wno-unused-variable \
1724 -Wno-unused-function \
1726 -Wno-format-nonliteral
1728 systemadm_VALAFLAGS = \
1737 systemd_gnome_ask_password_agent_SOURCES = \
1738 src/gnome-ask-password-agent.vala
1740 systemd_gnome_ask_password_agent_CFLAGS = \
1742 $(LIBNOTIFY_CFLAGS) \
1744 -Wno-unused-variable \
1745 -Wno-unused-function \
1747 -Wno-format-nonliteral
1749 systemd_gnome_ask_password_agent_VALAFLAGS = \
1753 --pkg=gio-unix-2.0 \
1756 systemd_gnome_ask_password_agent_VALAFLAGS += \
1759 systemd_gnome_ask_password_agent_VALAFLAGS += \
1762 systemd_gnome_ask_password_agent_LDADD = \
1766 systemd_tty_ask_password_agent_SOURCES = \
1767 src/tty-ask-password-agent.c \
1768 src/ask-password-api.c \
1771 systemd_tty_ask_password_agent_LDADD = \
1774 pam_systemd_la_SOURCES = \
1778 pam_systemd_la_CFLAGS = \
1784 pam_systemd_la_LDFLAGS = \
1789 -export-symbols-regex '^pam_sm_.*'
1791 pam_systemd_la_LIBADD = \
1792 libsystemd-basic.la \
1793 libsystemd-daemon.la \
1797 libsystemd_daemon_la_SOURCES = \
1800 libsystemd_daemon_la_CFLAGS = \
1802 -fvisibility=hidden \
1805 libsystemd_daemon_la_LDFLAGS = \
1807 -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
1808 -Wl,--version-script=$(top_srcdir)/src/libsystemd-daemon.sym
1810 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1811 libsystemd-daemon-install-hook:
1812 if test "$(libdir)" != "$(rootlibdir)"; then \
1813 mkdir -p $(DESTDIR)$(rootlibdir) && \
1814 so_img_name=$$(readlink $(DESTDIR)$(libdir)/libsystemd-daemon.so) && \
1815 so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
1816 ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libsystemd-daemon.so && \
1817 mv $(DESTDIR)$(libdir)/libsystemd-daemon.so.* $(DESTDIR)$(rootlibdir); \
1820 libsystemd-daemon-uninstall-hook:
1821 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
1823 libsystemd_id128_la_SOURCES = \
1826 libsystemd_id128_la_CFLAGS = \
1830 libsystemd_id128_la_LDFLAGS = \
1832 -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
1833 -Wl,--version-script=$(top_srcdir)/src/libsystemd-id128.sym
1835 libsystemd_id128_la_LIBADD = \
1838 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1839 libsystemd-id128-install-hook:
1840 if test "$(libdir)" != "$(rootlibdir)"; then \
1841 mkdir -p $(DESTDIR)$(rootlibdir) && \
1842 so_img_name=$$(readlink $(DESTDIR)$(libdir)/libsystemd-id128.so) && \
1843 so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
1844 ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libsystemd-id128.so && \
1845 mv $(DESTDIR)$(libdir)/libsystemd-id128.so.* $(DESTDIR)$(rootlibdir); \
1848 libsystemd-id128-uninstall-hook:
1849 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
1851 libsystemd_journal_la_SOURCES = \
1852 src/journal/sd-journal.c \
1853 src/journal/journal-file.c \
1854 src/journal/compress.c \
1855 src/journal/lookup3.c \
1856 src/journal/journal-send.c
1858 libsystemd_journal_la_CFLAGS = \
1863 libsystemd_journal_la_LDFLAGS = \
1865 -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
1866 -Wl,--version-script=$(top_srcdir)/src/journal/libsystemd-journal.sym
1868 libsystemd_journal_la_LIBADD = \
1869 libsystemd-basic.la \
1870 libsystemd-id128.la \
1873 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1874 libsystemd-journal-install-hook:
1875 if test "$(libdir)" != "$(rootlibdir)"; then \
1876 mkdir -p $(DESTDIR)$(rootlibdir) && \
1877 so_img_name=$$(readlink $(DESTDIR)$(libdir)/libsystemd-journal.so) && \
1878 so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
1879 ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libsystemd-journal.so && \
1880 mv $(DESTDIR)$(libdir)/libsystemd-journal.so.* $(DESTDIR)$(rootlibdir); \
1883 libsystemd-journal-uninstall-hook:
1884 rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
1887 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1888 $(SED) -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \
1889 -e 's,@rootbindir\@,$(rootbindir),g' \
1890 -e 's,@bindir\@,$(bindir),g' \
1891 -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \
1892 -e 's,@SYSTEMD_NOTIFY\@,$(rootbindir)/systemd-notify,g' \
1893 -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
1894 -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
1895 -e 's,@pkglibexecdir\@,$(pkglibexecdir),g' \
1896 -e 's,@systemunitdir\@,$(systemunitdir),g' \
1897 -e 's,@userunitdir\@,$(userunitdir),g' \
1898 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
1899 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
1900 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \
1901 -e 's,@prefix\@,$(prefix),g' \
1902 -e 's,@exec_prefix\@,$(exec_prefix),g' \
1903 -e 's,@libdir\@,$(libdir),g' \
1904 -e 's,@includedir\@,$(includedir),g' \
1907 units/%: units/%.in Makefile
1910 man/%: man/%.in Makefile
1913 %.pc: %.pc.in Makefile
1916 src/%.policy.in: src/%.policy.in.in Makefile
1919 src/%.rules: src/%.rules.in Makefile
1922 src/%.c: src/%.gperf
1923 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1927 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1928 $(M4) -P $(M4_DEFINES) < $< > $@ || rm $@
1930 src/load-fragment-gperf-nulstr.c: src/load-fragment-gperf.gperf
1931 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1932 $(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 $@
1934 M4_PROCESS_SYSTEM = \
1935 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1936 $(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@ || rm $@
1939 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1940 $(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@ || rm $@
1942 units/%: units/%.m4 Makefile
1943 $(M4_PROCESS_SYSTEM)
1945 units/user/%: units/%.m4 Makefile
1949 $(nodist_systemunit_DATA) \
1950 $(nodist_userunit_DATA) \
1951 $(nodist_man_MANS) \
1952 ${XML_IN_FILES:.xml.in=.html} \
1953 $(pkgconfigdata_DATA) \
1954 $(pkgconfiglib_DATA) \
1955 $(nodist_polkitpolicy_DATA) \
1956 src/73-seat-late.rules \
1957 src/99-systemd.rules \
1958 src/load-fragment-gperf.gperf \
1959 src/load-fragment-gperf.c \
1960 src/load-fragment-gperf-nulstr.c
1964 ${systemadm_SOURCES:.vala=.c}
1970 --stringparam funcsynopsis.style ansi
1972 XSLTPROC_PROCESS_MAN = \
1973 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1974 $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
1976 XSLTPROC_PROCESS_MAN_IN = \
1977 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1978 $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< && \
1981 XSLTPROC_PROCESS_HTML = \
1982 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1983 $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) man/custom-html.xsl $<
1985 XSLTPROC_PROCESS_HTML_IN = \
1986 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1987 $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) man/custom-html.xsl $< && \
1991 $(XSLTPROC_PROCESS_MAN)
1993 man/%.1.in: man/%.xml.in
1994 $(XSLTPROC_PROCESS_MAN)
1997 $(XSLTPROC_PROCESS_MAN)
1999 man/%.3.in: man/%.xml.in
2000 $(XSLTPROC_PROCESS_MAN)
2003 $(XSLTPROC_PROCESS_MAN)
2005 man/%.5.in: man/%.xml.in
2006 $(XSLTPROC_PROCESS_MAN)
2009 $(XSLTPROC_PROCESS_MAN)
2011 man/%.7.in: man/%.xml.in
2012 $(XSLTPROC_PROCESS_MAN_IN)
2015 $(XSLTPROC_PROCESS_MAN)
2017 man/%.8.in: man/%.xml.in
2018 $(XSLTPROC_PROCESS_MAN_IN)
2020 man/%.html: man/%.xml
2021 $(XSLTPROC_PROCESS_HTML)
2023 man/%.html.in: man/%.xml.in
2024 $(XSLTPROC_PROCESS_HTML_IN)
2028 ${nodist_man_MANS:=.in} \
2029 ${XML_FILES:.xml=.html} \
2030 ${XML_IN_FILES:.xml.in=.html.in}
2033 DBUS_PREPROCESS = $(CPP) -P $(DBUS_CFLAGS) -imacros dbus/dbus-protocol.h
2035 org.freedesktop.systemd1.%.xml: systemd
2036 $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.$* $< $@.tmp && \
2037 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
2038 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
2041 $(dbusinterface_DATA)
2043 systemd-install-data-hook:
2044 $(MKDIR_P) -m 0755 \
2045 $(DESTDIR)$(tmpfilesdir) \
2046 $(DESTDIR)$(sysconfdir)/tmpfiles.d \
2047 $(DESTDIR)$(prefix)/lib/modules-load.d \
2048 $(DESTDIR)$(sysconfdir)/modules-load.d \
2049 $(DESTDIR)$(prefix)/lib/sysctl.d \
2050 $(DESTDIR)$(sysconfdir)/sysctl.d \
2051 $(DESTDIR)$(systemshutdowndir) \
2052 $(DESTDIR)$(systemgeneratordir) \
2053 $(DESTDIR)$(usergeneratordir)
2054 $(MKDIR_P) -m 0755 \
2055 $(DESTDIR)$(systemunitdir) \
2056 $(DESTDIR)$(userunitdir) \
2057 $(DESTDIR)$(systemunitdir)/sysinit.target.wants \
2058 $(DESTDIR)$(systemunitdir)/sockets.target.wants \
2059 $(DESTDIR)$(systemunitdir)/basic.target.wants \
2060 $(DESTDIR)$(systemunitdir)/shutdown.target.wants \
2061 $(DESTDIR)$(systemunitdir)/local-fs.target.wants \
2062 $(DESTDIR)$(systemunitdir)/runlevel1.target.wants \
2063 $(DESTDIR)$(systemunitdir)/runlevel2.target.wants \
2064 $(DESTDIR)$(systemunitdir)/runlevel3.target.wants \
2065 $(DESTDIR)$(systemunitdir)/runlevel4.target.wants \
2066 $(DESTDIR)$(systemunitdir)/runlevel5.target.wants \
2067 $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
2068 $(DESTDIR)$(systemunitdir)/graphical.target.wants \
2069 $(DESTDIR)$(pkgsysconfdir)/system \
2070 $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants \
2071 $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants \
2072 $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \
2073 $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \
2074 $(DESTDIR)$(pkgsysconfdir)/user \
2075 $(DESTDIR)$(dbussessionservicedir) \
2076 $(DESTDIR)$(sysconfdir)/xdg/systemd
2077 ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
2079 $(LN_S) $(pkgsysconfdir)/user user )
2080 ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
2081 rm -f systemd-initctl.socket systemd-stdout-syslog-bridge.socket systemd-shutdownd.socket syslog.socket systemd-journald.socket && \
2082 $(LN_S) ../systemd-stdout-syslog-bridge.socket systemd-stdout-syslog-bridge.socket && \
2083 $(LN_S) ../systemd-initctl.socket systemd-initctl.socket && \
2084 $(LN_S) ../systemd-shutdownd.socket systemd-shutdownd.socket && \
2085 $(LN_S) ../syslog.socket syslog.socket && \
2086 $(LN_S) ../systemd-journald.socket )
2087 ( cd $(DESTDIR)$(systemunitdir)/runlevel1.target.wants && \
2088 rm -f systemd-update-utmp-runlevel.service && \
2089 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
2090 ( cd $(DESTDIR)$(systemunitdir)/runlevel2.target.wants && \
2091 rm -f systemd-update-utmp-runlevel.service && \
2092 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
2093 ( cd $(DESTDIR)$(systemunitdir)/runlevel3.target.wants && \
2094 rm -f systemd-update-utmp-runlevel.service && \
2095 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
2096 ( cd $(DESTDIR)$(systemunitdir)/runlevel4.target.wants && \
2097 rm -f systemd-update-utmp-runlevel.service && \
2098 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
2099 ( cd $(DESTDIR)$(systemunitdir)/runlevel5.target.wants && \
2100 rm -f systemd-update-utmp-runlevel.service && \
2101 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
2102 ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
2103 rm -f systemd-update-utmp-shutdown.service \
2104 systemd-random-seed-save.service && \
2105 $(LN_S) ../systemd-update-utmp-shutdown.service systemd-update-utmp-shutdown.service && \
2106 $(LN_S) ../systemd-random-seed-save.service systemd-random-seed-save.service )
2107 ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
2108 rm -f systemd-remount-api-vfs.service \
2110 remount-rootfs.service \
2113 $(LN_S) ../systemd-remount-api-vfs.service systemd-remount-api-vfs.service && \
2114 $(LN_S) ../fsck-root.service fsck-root.service && \
2115 $(LN_S) ../remount-rootfs.service remount-rootfs.service && \
2116 $(LN_S) ../var-run.mount var-run.mount && \
2117 $(LN_S) ../media.mount media.mount )
2118 ( cd $(DESTDIR)$(userunitdir) && \
2119 rm -f shutdown.target sockets.target bluetooth.target printer.target sound.target && \
2120 $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \
2121 $(LN_S) $(systemunitdir)/sockets.target sockets.target && \
2122 $(LN_S) $(systemunitdir)/bluetooth.target bluetooth.target && \
2123 $(LN_S) $(systemunitdir)/printer.target printer.target && \
2124 $(LN_S) $(systemunitdir)/sound.target sound.target )
2125 ( cd $(DESTDIR)$(systemunitdir) && \
2126 rm -f runlevel0.target runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target runlevel6.target && \
2127 $(LN_S) poweroff.target runlevel0.target && \
2128 $(LN_S) rescue.target runlevel1.target && \
2129 $(LN_S) multi-user.target runlevel2.target && \
2130 $(LN_S) multi-user.target runlevel3.target && \
2131 $(LN_S) multi-user.target runlevel4.target && \
2132 $(LN_S) graphical.target runlevel5.target && \
2133 $(LN_S) reboot.target runlevel6.target )
2134 ( cd $(DESTDIR)$(systemunitdir) && \
2135 rm -f default.target ctrl-alt-del.target autovt@.service && \
2136 $(LN_S) graphical.target default.target && \
2137 $(LN_S) reboot.target ctrl-alt-del.target && \
2138 $(LN_S) getty@.service autovt@.service )
2139 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
2140 rm -f getty.target systemd-user-sessions.service systemd-ask-password-wall.path && \
2141 $(LN_S) ../getty.target getty.target && \
2142 $(LN_S) ../systemd-user-sessions.service systemd-user-sessions.service && \
2143 $(LN_S) ../systemd-ask-password-wall.path systemd-ask-password-wall.path)
2144 ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
2145 rm -f getty@tty1.service && \
2146 $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service )
2147 ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
2148 rm -f remote-fs.target && \
2149 $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target )
2150 ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
2151 rm -f dev-hugepages.mount \
2153 sys-kernel-config.mount \
2154 sys-kernel-debug.mount \
2155 sys-kernel-security.mount \
2156 sys-fs-fuse-connections.mount \
2157 systemd-vconsole-setup.service \
2158 systemd-modules-load.service \
2159 systemd-random-seed-load.service \
2160 systemd-tmpfiles-setup.service \
2161 systemd-sysctl.service \
2162 systemd-ask-password-console.path \
2163 systemd-kmsg-syslogd.service \
2164 cryptsetup.target && \
2165 $(LN_S) ../dev-hugepages.mount dev-hugepages.mount && \
2166 $(LN_S) ../dev-mqueue.mount dev-mqueue.mount && \
2167 $(LN_S) ../sys-kernel-config.mount sys-kernel-config.mount && \
2168 $(LN_S) ../sys-kernel-debug.mount sys-kernel-debug.mount && \
2169 $(LN_S) ../sys-kernel-security.mount sys-kernel-security.mount && \
2170 $(LN_S) ../sys-fs-fuse-connections.mount sys-fs-fuse-connections.mount && \
2171 $(LN_S) ../systemd-vconsole-setup.service systemd-vconsole-setup.service && \
2172 $(LN_S) ../systemd-modules-load.service systemd-modules-load.service && \
2173 $(LN_S) ../systemd-random-seed-load.service systemd-random-seed-load.service && \
2174 $(LN_S) ../systemd-tmpfiles-setup.service systemd-tmpfiles-setup.service && \
2175 $(LN_S) ../systemd-sysctl.service systemd-sysctl.service && \
2176 $(LN_S) ../systemd-ask-password-console.path systemd-ask-password-console.path && \
2177 $(LN_S) ../systemd-kmsg-syslogd.service && \
2178 $(LN_S) ../cryptsetup.target cryptsetup.target )
2179 ( cd $(DESTDIR)$(systemunitdir)/basic.target.wants && \
2180 rm -f systemd-tmpfiles-clean.timer && \
2181 $(LN_S) ../systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.timer )
2182 ( cd $(DESTDIR)$(dbussessionservicedir) && \
2183 rm -f org.freedesktop.systemd1.service && \
2184 $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service )
2186 $(MKDIR_P) -m 0755 \
2187 $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) \
2188 $(DESTDIR)$(systemunitdir)/reboot.target.wants \
2189 $(DESTDIR)$(systemunitdir)/kexec.target.wants \
2190 $(DESTDIR)$(systemunitdir)/poweroff.target.wants \
2191 $(DESTDIR)$(systemunitdir)/halt.target.wants
2192 ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
2193 rm -f plymouth-start.service plymouth-read-write.service && \
2194 $(LN_S) ../plymouth-start.service plymouth-start.service && \
2195 $(LN_S) ../plymouth-read-write.service plymouth-read-write.service )
2196 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
2197 rm -f plymouth-quit.service plymouth-quit-wait.service && \
2198 $(LN_S) ../plymouth-quit.service plymouth-quit.service && \
2199 $(LN_S) ../plymouth-quit-wait.service plymouth-quit-wait.service )
2200 ( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \
2201 rm -f plymouth-reboot.service && \
2202 $(LN_S) ../plymouth-reboot.service plymouth-reboot.service )
2203 ( cd $(DESTDIR)$(systemunitdir)/kexec.target.wants && \
2204 rm -f plymouth-kexec.service && \
2205 $(LN_S) ../plymouth-kexec.service plymouth-kexec.service )
2206 ( cd $(DESTDIR)$(systemunitdir)/poweroff.target.wants && \
2207 rm -f plymouth-poweroff.service && \
2208 $(LN_S) ../plymouth-poweroff.service plymouth-poweroff.service )
2209 ( cd $(DESTDIR)$(systemunitdir)/halt.target.wants && \
2210 rm -f plymouth-halt.service && \
2211 $(LN_S) ../plymouth-halt.service plymouth-halt.service )
2214 $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2215 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
2216 rm -f network.target && \
2217 $(LN_S) $(systemunitdir)/network.target network.target )
2218 ( cd $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants && \
2220 ( cd $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants && \
2222 ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
2224 ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
2229 $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2230 ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
2231 rm -f halt-local.service && \
2232 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
2233 ( cd $(DESTDIR)$(systemunitdir) && \
2234 rm -f display-manager.service single.service && \
2235 $(LN_S) prefdm.service display-manager.service && \
2236 $(LN_S) rescue.service single.service )
2237 ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
2238 rm -f display-manager.service && \
2239 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
2243 $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2244 ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
2245 rm -f halt-local.service && \
2246 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
2247 ( cd $(DESTDIR)$(systemunitdir) && \
2248 rm -f display-manager.service dm.service single.service && \
2249 $(LN_S) prefdm.service display-manager.service && \
2250 $(LN_S) prefdm.service dm.service && \
2251 $(LN_S) rescue.service single.service )
2252 ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
2253 rm -f display-manager.service && \
2254 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
2257 if TARGET_DEBIAN_OR_UBUNTU
2258 ( cd $(DESTDIR)$(systemunitdir) && \
2259 rm -f runlevel5.target && \
2260 $(LN_S) multi-user.target runlevel5.target )
2264 $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2265 ( cd $(DESTDIR)$(systemunitdir) && \
2266 rm -f local.service && \
2267 $(LN_S) rc-local.service local.service )
2268 ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
2269 rm -f halt-local.service && \
2270 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
2274 $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2275 ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
2276 rm -f halt-local.service && \
2277 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
2278 ( cd $(DESTDIR)$(systemunitdir) && \
2279 rm -f display-manager.service && \
2280 $(LN_S) prefdm.service display-manager.service && \
2281 $(LN_S) prefdm.service dm.service )
2282 ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
2283 rm -f display-manager.service && \
2284 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
2288 ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
2289 rm -f var-lock.mount && \
2290 $(LN_S) ../var-lock.mount var-lock.mount )
2293 install-exec-hook: libsystemd-daemon-install-hook $(INSTALL_EXEC_HOOKS)
2295 uninstall-hook: libsystemd-daemon-uninstall-hook $(UNINSTALL_EXEC_HOOKS)
2297 install-data-hook: systemd-install-data-hook $(INSTALL_DATA_HOOKS)
2299 DISTCHECK_CONFIGURE_FLAGS = \
2300 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
2301 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
2302 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
2303 --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
2304 --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \
2305 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
2306 --with-rootdir=$$dc_install_base/$(rootdir)
2308 upload: all distcheck
2309 cp -v systemd-$(VERSION).tar.bz2 /home/lennart/git.fedora/systemd/
2310 scp systemd-$(VERSION).tar.bz2 fdo:/srv/www.freedesktop.org/www/software/systemd/
2311 scp man/*.html tango:public/systemd-man/
2314 git tag "v$(VERSION)" -m "systemd $(VERSION)"
2316 update-kbd-model-map:
2317 src/generate-kbd-model-map > src/kbd-model-map