1 # This file is part of systemd.
3 # Copyright 2010 Lennart Poettering
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.
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.
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/>.
18 ACLOCAL_AMFLAGS = -I m4
20 # Dirs of external packages
21 dbuspolicydir=@dbuspolicydir@
22 dbussessionservicedir=@dbussessionservicedir@
23 dbussystemservicedir=@dbussystemservicedir@
24 dbusinterfacedir=@dbusinterfacedir@
25 udevrulesdir=@udevrulesdir@
27 pkgconfigdatadir=$(datadir)/pkgconfig
28 polkitpolicydir=$(datadir)/polkit-1/actions
29 bashcompletiondir=$(sysconfdir)/bash_completion.d
31 # Our own, non-special dirs
32 pkgsysconfdir=$(sysconfdir)/systemd
33 userunitdir=$(prefix)/lib/systemd/user
34 tmpfilesdir=$(prefix)/lib/tmpfiles.d
35 usergeneratordir=$(pkglibexecdir)/user-generators
37 # And these are the special ones for /
39 rootbindir=$(rootdir)/bin
40 rootlibexecdir=$(rootdir)/lib/systemd
41 systemgeneratordir=$(rootlibexecdir)/system-generators
42 systemshutdowndir=$(rootlibexecdir)/system-shutdown
43 systemunitdir=$(rootdir)/lib/systemd/system
46 -include $(top_builddir)/config.h \
47 -DSYSTEM_CONFIG_FILE=\"$(pkgsysconfdir)/system.conf\" \
48 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
49 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
50 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
51 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
52 -DUSER_CONFIG_FILE=\"$(pkgsysconfdir)/user.conf\" \
53 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
54 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
55 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
56 -DSYSTEMD_BINARY_PATH=\"$(rootbindir)/systemd\" \
57 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
58 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
59 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
60 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
61 -DRUNTIME_DIR=\"/run\" \
62 -DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \
63 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
64 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
65 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
66 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
71 -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
72 -DKBD_SETFONT=\"/usr/bin/setfont\" \
73 -DDEFAULT_FONT=\"LatArCyrHeb-16\"
77 -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
78 -DKBD_SETFONT=\"/usr/bin/setfont\" \
79 -DDEFAULT_FONT=\"LatArCyrHeb-16\"
83 -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
84 -DKBD_SETFONT=\"/usr/bin/setfont\" \
85 -DDEFAULT_FONT=\"LatArCyrHeb-16\"
89 -DKBD_LOADKEYS=\"/bin/loadkeys\" \
90 -DKBD_SETFONT=\"/bin/setfont\" \
91 -DDEFAULT_FONT=\"LatArCyrHeb-16\"
95 -DKBD_LOADKEYS=\"/bin/loadkeys\" \
96 -DKBD_SETFONT=\"/bin/setfont\" \
97 -DDEFAULT_FONT=\"LatArCyrHeb-16\"
100 -DKBD_LOADKEYS=\"/bin/loadkeys\" \
101 -DKBD_SETFONT=\"/bin/setfont\" \
102 -DDEFAULT_FONT=\"latarcyrheb-sun16\"
113 systemd-ask-password \
114 systemd-tty-ask-password-agent \
116 systemd-machine-id-setup
120 systemd-stdio-bridge \
129 systemd-gnome-ask-password-agent
132 rootlibexec_PROGRAMS = \
134 systemd-cgroups-agent \
136 systemd-update-utmp \
137 systemd-random-seed \
140 systemd-modules-load \
141 systemd-remount-api-vfs \
142 systemd-kmsg-syslogd \
143 systemd-vconsole-setup \
144 systemd-reply-password \
145 systemd-readahead-collect \
146 systemd-readahead-replay \
147 systemd-user-sessions \
152 systemd-detect-virt \
157 rootlibexec_PROGRAMS += \
161 systemgenerator_PROGRAMS = \
162 systemd-getty-generator
164 if HAVE_LIBCRYPTSETUP
165 rootlibexec_PROGRAMS += \
168 systemgenerator_PROGRAMS += \
169 systemd-cryptsetup-generator
184 pamlib_LTLIBRARIES = \
188 dist_pkgsysconf_DATA = \
191 dist_dbuspolicy_DATA = \
192 src/org.freedesktop.systemd1.conf \
193 src/org.freedesktop.hostname1.conf
195 dist_dbussystemservice_DATA = \
196 src/org.freedesktop.systemd1.service \
197 src/org.freedesktop.hostname1.service
199 dist_udevrules_DATA = \
202 dbusinterface_DATA = \
203 org.freedesktop.systemd1.Manager.xml \
204 org.freedesktop.systemd1.Job.xml \
205 org.freedesktop.systemd1.Unit.xml \
206 org.freedesktop.systemd1.Service.xml \
207 org.freedesktop.systemd1.Socket.xml \
208 org.freedesktop.systemd1.Timer.xml \
209 org.freedesktop.systemd1.Target.xml \
210 org.freedesktop.systemd1.Device.xml \
211 org.freedesktop.systemd1.Mount.xml \
212 org.freedesktop.systemd1.Automount.xml \
213 org.freedesktop.systemd1.Snapshot.xml \
214 org.freedesktop.systemd1.Swap.xml \
215 org.freedesktop.systemd1.Path.xml
217 dist_bashcompletion_DATA = \
218 src/systemctl-bash-completion.sh
220 dist_tmpfiles_DATA = \
221 tmpfiles.d/systemd.conf \
225 dist_tmpfiles_DATA += \
226 tmpfiles.d/legacy.conf
229 dist_systemunit_DATA = \
230 units/graphical.target \
231 units/multi-user.target \
232 units/emergency.service \
233 units/emergency.target \
234 units/sysinit.target \
239 units/local-fs.target \
240 units/cryptsetup.target \
241 units/network.target \
242 units/nss-lookup.target \
243 units/mail-transfer-agent.target \
244 units/http-daemon.target \
245 units/poweroff.target \
246 units/reboot.target \
247 units/rescue.target \
248 units/rpcbind.target \
249 units/time-sync.target \
250 units/shutdown.target \
252 units/umount.target \
253 units/sigpwr.target \
254 units/sockets.target \
256 units/systemd-initctl.socket \
257 units/systemd-logger.socket \
258 units/systemd-shutdownd.socket \
259 units/syslog.socket \
260 units/dev-hugepages.automount \
261 units/dev-hugepages.mount \
262 units/dev-mqueue.automount \
263 units/dev-mqueue.mount \
264 units/sys-kernel-debug.automount \
265 units/sys-kernel-debug.mount \
266 units/sys-kernel-security.automount \
267 units/sys-kernel-security.mount \
268 units/var-run.mount \
270 units/hwclock-load.service \
271 units/hwclock-save.service \
272 units/remount-rootfs.service \
273 units/printer.target \
275 units/bluetooth.target \
276 units/smartcard.target \
277 units/systemd-readahead-done.timer \
278 units/systemd-tmpfiles-clean.timer \
279 units/quotaon.service \
280 units/systemd-ask-password-wall.path \
281 units/systemd-ask-password-console.path \
285 dist_systemunit_DATA += \
290 dist_systemunit_DATA += \
291 units/proc-sys-fs-binfmt_misc.automount \
292 units/proc-sys-fs-binfmt_misc.mount
295 nodist_systemunit_DATA = \
296 units/getty@.service \
297 units/serial-getty@.service \
298 units/console-shell.service \
299 units/remote-fs.target \
300 units/systemd-initctl.service \
301 units/systemd-logger.service \
302 units/systemd-shutdownd.service \
303 units/systemd-hostnamed.service \
304 units/systemd-kmsg-syslogd.service \
305 units/systemd-modules-load.service \
306 units/systemd-vconsole-setup.service \
307 units/systemd-remount-api-vfs.service \
308 units/systemd-update-utmp-runlevel.service \
309 units/systemd-update-utmp-shutdown.service \
310 units/systemd-random-seed-save.service \
311 units/systemd-random-seed-load.service \
312 units/systemd-readahead-collect.service \
313 units/systemd-readahead-replay.service \
314 units/systemd-readahead-done.service \
315 units/systemd-tmpfiles-setup.service \
316 units/systemd-tmpfiles-clean.service \
317 units/systemd-user-sessions.service \
318 units/systemd-ask-password-wall.service \
319 units/systemd-ask-password-console.service \
320 units/systemd-sysctl.service \
322 units/poweroff.service \
323 units/reboot.service \
324 units/kexec.service \
325 units/fsck@.service \
326 units/fsck-root.service \
327 units/quotacheck.service \
331 nodist_systemunit_DATA += \
332 units/systemd-binfmt.service
335 dist_userunit_DATA = \
336 units/user/default.target \
337 units/user/exit.target
339 nodist_userunit_DATA = \
340 units/user/remote-fs.target \
341 units/user/exit.service
344 units/getty@.service.m4 \
345 units/serial-getty@.service.m4 \
346 units/console-shell.service.m4 \
347 units/remote-fs.target.m4 \
348 units/rescue.service.m4 \
349 units/systemd-initctl.service.in \
350 units/systemd-logger.service.in \
351 units/systemd-shutdownd.service.in \
352 units/systemd-hostnamed.service.in \
353 units/systemd-kmsg-syslogd.service.in \
354 units/systemd-modules-load.service.in \
355 units/systemd-vconsole-setup.service.in \
356 units/systemd-remount-api-vfs.service.in \
357 units/systemd-update-utmp-runlevel.service.in \
358 units/systemd-update-utmp-shutdown.service.in \
359 units/systemd-random-seed-save.service.in \
360 units/systemd-random-seed-load.service.in \
361 units/systemd-readahead-collect.service.in \
362 units/systemd-readahead-replay.service.in \
363 units/systemd-readahead-done.service.in \
364 units/systemd-tmpfiles-setup.service.in \
365 units/systemd-tmpfiles-clean.service.in \
366 units/systemd-user-sessions.service.in \
367 units/systemd-ask-password-wall.service.in \
368 units/systemd-ask-password-console.service.in \
369 units/systemd-sysctl.service.in \
370 units/halt.service.in \
371 units/poweroff.service.in \
372 units/reboot.service.in \
373 units/kexec.service.in \
374 units/user/exit.service.in \
375 units/fsck@.service.in \
376 units/fsck-root.service.in \
377 units/quotacheck.service.in \
380 src/org.freedesktop.systemd1.policy.in
384 units/systemd-binfmt.service.in
388 dist_systemunit_DATA += \
389 units/fedora/prefdm.service \
390 units/fedora/rc-local.service \
391 units/fedora/halt-local.service
395 dist_systemunit_DATA += \
396 units/mandriva/prefdm.service \
397 units/fedora/rc-local.service \
398 units/fedora/halt-local.service
402 dist_systemunit_DATA += \
403 units/frugalware/display-manager.service
407 dist_systemunit_DATA += \
408 units/plymouth-start.service \
409 units/plymouth-read-write.service \
410 units/plymouth-quit.service \
411 units/plymouth-quit-wait.service \
412 units/plymouth-reboot.service \
413 units/plymouth-kexec.service \
414 units/plymouth-poweroff.service \
415 units/plymouth-halt.service \
416 units/systemd-ask-password-plymouth.path
418 nodist_systemunit_DATA += \
419 units/systemd-ask-password-plymouth.service
422 units/systemd-ask-password-plymouth.service.in
434 pkgconfigdata_DATA = \
437 nodist_polkitpolicy_DATA = \
438 src/org.freedesktop.systemd1.policy
440 dist_polkitpolicy_DATA = \
441 src/org.freedesktop.hostname1.policy
443 noinst_LTLIBRARIES = \
444 libsystemd-basic.la \
448 libsystemd_basic_la_SOURCES = \
460 libsystemd_basic_la_CFLAGS = \
464 libsystemd_basic_la_LIBADD = \
467 libsystemd_core_la_SOURCES = \
472 src/load-fragment.c \
495 src/dbus-automount.c \
497 src/dbus-snapshot.c \
503 src/hostname-setup.c \
504 src/selinux-setup.c \
505 src/loopback-setup.c \
508 src/machine-id-setup.c \
518 libsystemd_core_la_CFLAGS = \
526 libsystemd_core_la_LIBADD = \
527 libsystemd-basic.la \
534 libsystemd_daemon_la_SOURCES = \
537 # This is needed because automake is buggy in how it generates the
538 # rules for C programs, but not Vala programs. We therefore can't
539 # list the .h files as dependencies if we want make dist to work.
542 ${libsystemd_basic_la_SOURCES:.c=.h} \
543 ${libsystemd_core_la_SOURCES:.c=.h} \
544 ${libsystemd_daemon_la_SOURCES:.c=.h} \
551 src/linux/auto_dev-ioctl.h \
552 src/linux/fanotify.h \
562 src/readahead-common.h \
563 src/ask-password-api.h
570 man/systemd-nspawn.1 \
571 man/systemd-tmpfiles.8 \
572 man/systemd-notify.1 \
576 man/sd_listen_fds.3 \
579 man/systemd.service.5 \
580 man/systemd.socket.5 \
581 man/systemd.mount.5 \
582 man/systemd.automount.5 \
584 man/systemd.timer.5 \
586 man/systemd.target.5 \
587 man/systemd.device.5 \
588 man/systemd.snapshot.5 \
602 man/vconsole.conf.5 \
606 man/modules-load.d.5 \
608 man/systemd-ask-password.1
619 man/sd_is_socket_unix.3 \
620 man/sd_is_socket_inet.3 \
624 man/reboot.8: man/halt.8
625 man/poweroff.8: man/halt.8
626 man/sd_is_socket.3: man/sd_is_fifo.3
627 man/sd_is_socket_unix.3: man/sd_is_fifo.3
628 man/sd_is_socket_inet.3: man/sd_is_fifo.3
629 man/sd_notifyf.3: man/sd_notify.3
630 man/init.1: man/systemd.1
637 man/systemd.special.7
640 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
643 ${patsubst %.1,%.xml.in,${patsubst %.3,%.xml.in,${patsubst %.5,%.xml.in,${patsubst %.7,%.xml.in,${patsubst %.8,%.xml.in,$(nodist_man_MANS)}}}}}
646 ${XML_FILES:.xml=.html}
648 nodist_noinst_DATA = \
649 ${XML_IN_FILES:.xml.in=.html}
654 ${nodist_man_MANS:=.in} \
655 ${XML_IN_FILES:.xml.in=.html.in}
668 test_engine_SOURCES = \
671 test_engine_CFLAGS = $(systemd_CFLAGS)
672 test_engine_LDADD = $(systemd_LDADD)
674 test_job_type_SOURCES = \
677 test_job_type_CFLAGS = $(systemd_CFLAGS)
678 test_job_type_LDADD = $(systemd_LDADD)
683 test_ns_CFLAGS = $(systemd_CFLAGS)
684 test_ns_LDADD = $(systemd_LDADD)
686 test_loopback_SOURCES = \
687 src/test-loopback.c \
690 test_loopback_LDADD = \
693 test_hostname_SOURCES = \
694 src/test-hostname.c \
697 test_hostname_LDADD = \
700 test_daemon_SOURCES = \
703 test_daemon_LDADD = \
704 libsystemd-basic.la \
707 test_cgroup_SOURCES = \
711 test_cgroup_CFLAGS = \
714 test_cgroup_LDADD = \
717 test_env_replace_SOURCES = \
718 src/test-env-replace.c
720 test_env_replace_CFLAGS = \
723 test_env_replace_LDADD = \
726 test_strv_SOURCES = \
736 systemd_logger_SOURCES = \
740 systemd_logger_LDADD = \
741 libsystemd-basic.la \
742 libsystemd-daemon.la \
745 systemd_initctl_SOURCES = \
749 systemd_initctl_CFLAGS = \
753 systemd_initctl_LDADD = \
754 libsystemd-basic.la \
755 libsystemd-daemon.la \
758 systemd_update_utmp_SOURCES = \
763 systemd_update_utmp_CFLAGS = \
768 systemd_update_utmp_LDADD = \
769 libsystemd-basic.la \
773 systemd_random_seed_SOURCES = \
776 systemd_random_seed_CFLAGS = \
779 systemd_random_seed_LDADD = \
782 systemd_shutdownd_SOURCES = \
786 systemd_shutdownd_CFLAGS = \
789 systemd_shutdownd_LDADD = \
790 libsystemd-basic.la \
793 systemd_hostnamed_SOURCES = \
797 systemd_hostnamed_CFLAGS = \
801 systemd_hostnamed_LDADD = \
802 libsystemd-basic.la \
803 libsystemd-daemon.la \
806 systemd_shutdown_SOURCES = \
811 systemd_shutdown_CFLAGS = \
815 systemd_shutdown_LDADD = \
816 libsystemd-basic.la \
819 systemd_modules_load_SOURCES = \
822 systemd_modules_load_CFLAGS = \
825 systemd_modules_load_LDADD = \
828 systemd_tmpfiles_SOURCES = \
831 systemd_tmpfiles_CFLAGS = \
834 systemd_tmpfiles_LDADD = \
837 systemd_machine_id_setup_SOURCES = \
838 src/machine-id-setup.c \
839 src/machine-id-main.c
841 systemd_machine_id_setup_CFLAGS = \
844 systemd_machine_id_setup_LDADD = \
847 systemd_sysctl_SOURCES = \
850 systemd_sysctl_CFLAGS = \
853 systemd_sysctl_LDADD = \
856 systemd_binfmt_SOURCES = \
859 systemd_binfmt_CFLAGS = \
862 systemd_binfmt_LDADD = \
865 systemd_fsck_SOURCES = \
869 systemd_fsck_CFLAGS = \
874 systemd_fsck_LDADD = \
875 libsystemd-basic.la \
879 systemd_quotacheck_SOURCES = \
882 systemd_quotacheck_CFLAGS = \
885 systemd_quotacheck_LDADD = \
888 systemd_timestamp_SOURCES = \
891 systemd_timestamp_CFLAGS = \
894 systemd_timestamp_LDADD = \
897 systemd_ac_power_SOURCES = \
900 systemd_ac_power_CFLAGS = \
904 systemd_ac_power_LDADD = \
905 libsystemd-basic.la \
908 systemd_detect_virt_SOURCES = \
911 systemd_detect_virt_CFLAGS = \
914 systemd_detect_virt_LDADD = \
917 systemd_cryptsetup_SOURCES = \
919 src/ask-password-api.c
921 systemd_cryptsetup_CFLAGS = \
922 $(LIBCRYPTSETUP_CFLAGS) \
926 systemd_cryptsetup_LDADD = \
927 $(LIBCRYPTSETUP_LIBS) \
931 systemd_cryptsetup_generator_SOURCES = \
932 src/cryptsetup-generator.c \
935 systemd_cryptsetup_generator_CFLAGS = \
938 systemd_cryptsetup_generator_LDADD = \
941 systemd_getty_generator_SOURCES = \
942 src/getty-generator.c \
945 systemd_getty_generator_CFLAGS = \
948 systemd_getty_generator_LDADD = \
951 systemd_user_sessions_SOURCES = \
952 src/user-sessions.c \
955 systemd_user_sessions_CFLAGS = \
958 systemd_user_sessions_LDADD = \
961 systemd_vconsole_setup_SOURCES = \
964 systemd_vconsole_setup_CFLAGS = \
967 systemd_vconsole_setup_LDADD = \
970 systemd_remount_api_vfs_SOURCES = \
971 src/remount-api-vfs.c \
975 systemd_remount_api_vfs_CFLAGS = \
978 systemd_remount_api_vfs_LDADD = \
981 systemd_cgroups_agent_SOURCES = \
982 src/cgroups-agent.c \
985 systemd_cgroups_agent_CFLAGS = \
989 systemd_cgroups_agent_LDADD = \
990 libsystemd-basic.la \
993 systemd_kmsg_syslogd_SOURCES = \
997 systemd_kmsg_syslogd_CFLAGS = \
1000 systemd_kmsg_syslogd_LDADD = \
1001 libsystemd-basic.la \
1002 libsystemd-daemon.la
1004 systemctl_SOURCES = \
1014 systemctl_CFLAGS = \
1019 libsystemd-basic.la \
1020 libsystemd-daemon.la \
1023 systemd_notify_SOURCES = \
1027 systemd_notify_LDADD = \
1028 libsystemd-basic.la \
1029 libsystemd-daemon.la
1031 systemd_ask_password_SOURCES = \
1032 src/ask-password.c \
1033 src/ask-password-api.c
1035 systemd_ask_password_LDADD = \
1038 systemd_reply_password_SOURCES = \
1039 src/reply-password.c
1041 systemd_reply_password_LDADD = \
1044 systemd_readahead_collect_SOURCES = \
1045 src/readahead-collect.c \
1046 src/readahead-common.c
1048 systemd_readahead_collect_CFLAGS = \
1051 systemd_readahead_collect_LDADD = \
1052 libsystemd-basic.la \
1053 libsystemd-daemon.la \
1056 systemd_readahead_replay_SOURCES = \
1057 src/readahead-replay.c \
1058 src/readahead-common.c
1060 systemd_readahead_replay_CFLAGS = \
1063 systemd_readahead_replay_LDADD = \
1064 libsystemd-basic.la \
1065 libsystemd-daemon.la \
1068 systemd_cgls_SOURCES = \
1073 systemd_cgls_CFLAGS = \
1076 systemd_cgls_LDADD = \
1079 systemd_nspawn_SOURCES = \
1083 systemd_nspawn_CFLAGS = \
1086 systemd_nspawn_LDADD = \
1087 libsystemd-basic.la \
1088 libsystemd-daemon.la
1090 systemd_stdio_bridge_SOURCES = \
1093 systemd_stdio_bridge_LDADD = \
1096 systemadm_SOURCES = \
1097 src/systemadm.vala \
1098 src/systemd-interfaces.vala
1100 systemadm_CFLAGS = \
1103 -Wno-unused-variable \
1104 -Wno-unused-function \
1106 -Wno-format-nonliteral
1108 systemadm_VALAFLAGS = \
1116 systemd_gnome_ask_password_agent_SOURCES = \
1117 src/gnome-ask-password-agent.vala
1119 systemd_gnome_ask_password_agent_CFLAGS = \
1121 $(LIBNOTIFY_CFLAGS) \
1123 -Wno-unused-variable \
1124 -Wno-unused-function \
1126 -Wno-format-nonliteral
1128 systemd_gnome_ask_password_agent_VALAFLAGS = \
1132 --pkg=gio-unix-2.0 \
1135 systemd_gnome_ask_password_agent_VALAFLAGS += \
1138 systemd_gnome_ask_password_agent_VALAFLAGS += \
1141 systemd_gnome_ask_password_agent_LDADD = \
1145 systemd_tty_ask_password_agent_SOURCES = \
1146 src/tty-ask-password-agent.c \
1147 src/ask-password-api.c \
1150 systemd_tty_ask_password_agent_LDADD = \
1153 pam_systemd_la_SOURCES = \
1157 pam_systemd_la_CFLAGS = \
1161 pam_systemd_la_LDFLAGS = \
1166 -export-symbols-regex '^pam_sm_.*'
1168 pam_systemd_la_LIBADD = \
1169 libsystemd-basic.la \
1170 libsystemd-daemon.la \
1174 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1175 $(SED) -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \
1176 -e 's,@rootbindir\@,$(rootbindir),g' \
1177 -e 's,@bindir\@,$(bindir),g' \
1178 -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \
1179 -e 's,@SYSTEMD_NOTIFY\@,$(rootbindir)/systemd-notify,g' \
1180 -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
1181 -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
1182 -e 's,@pkglibexecdir\@,$(pkglibexecdir),g' \
1183 -e 's,@systemunitdir\@,$(systemunitdir),g' \
1184 -e 's,@userunitdir\@,$(userunitdir),g' \
1185 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
1186 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
1187 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \
1188 -e 's,@prefix\@,$(prefix),g' \
1191 units/%: units/%.in Makefile
1194 man/%: man/%.in Makefile
1197 %.pc: %.pc.in Makefile
1200 src/%.policy: src/%.policy.in Makefile
1203 M4_PROCESS_SYSTEM = \
1204 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1205 $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SYSTEM=1 < $< > $@ || rm $@
1208 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1209 $(M4) -P $(M4_DISTRO_FLAG) -DFOR_USER=1 < $< > $@ || rm $@
1211 units/%: units/%.m4 Makefile
1212 $(M4_PROCESS_SYSTEM)
1214 units/user/%: units/%.m4 Makefile
1218 $(nodist_systemunit_DATA) \
1219 $(nodist_userunit_DATA) \
1220 $(nodist_man_MANS) \
1221 ${XML_IN_FILES:.xml.in=.html} \
1222 $(pkgconfigdata_DATA) \
1223 src/org.freedesktop.systemd1.policy
1227 ${systemadm_SOURCES:.vala=.c}
1233 --param funcsynopsis.style "'ansi'"
1235 XSLTPROC_PROCESS_MAN = \
1236 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1237 $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
1239 XSLTPROC_PROCESS_MAN_IN = \
1240 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1241 $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< && \
1244 XSLTPROC_PROCESS_HTML = \
1245 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1246 $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $<
1248 XSLTPROC_PROCESS_HTML_IN = \
1249 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1250 $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $< && \
1254 $(XSLTPROC_PROCESS_MAN)
1256 man/%.1.in: man/%.xml.in
1257 $(XSLTPROC_PROCESS_MAN)
1260 $(XSLTPROC_PROCESS_MAN)
1262 man/%.3.in: man/%.xml.in
1263 $(XSLTPROC_PROCESS_MAN)
1266 $(XSLTPROC_PROCESS_MAN)
1268 man/%.5.in: man/%.xml.in
1269 $(XSLTPROC_PROCESS_MAN)
1272 $(XSLTPROC_PROCESS_MAN)
1274 man/%.7.in: man/%.xml.in
1275 $(XSLTPROC_PROCESS_MAN_IN)
1278 $(XSLTPROC_PROCESS_MAN)
1280 man/%.8.in: man/%.xml.in
1281 $(XSLTPROC_PROCESS_MAN_IN)
1283 man/%.html: man/%.xml
1284 $(XSLTPROC_PROCESS_HTML)
1286 man/%.html.in: man/%.xml.in
1287 $(XSLTPROC_PROCESS_HTML_IN)
1291 ${nodist_man_MANS:=.in} \
1292 ${XML_FILES:.xml=.html} \
1293 ${XML_IN_FILES:.xml.in=.html.in}
1296 DBUS_PREPROCESS = $(CPP) -P $(DBUS_CFLAGS) -imacros dbus/dbus-protocol.h
1298 org.freedesktop.systemd1.%.xml: systemd
1299 $(AM_V_GEN)$(OBJCOPY) -O binary -j introspect.$* $< $@.tmp && \
1300 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1301 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1304 $(dbusinterface_DATA)
1307 $(MKDIR_P) -m 0755 \
1308 $(DESTDIR)$(tmpfilesdir) \
1309 $(DESTDIR)$(sysconfdir)/tmpfiles.d \
1310 $(DESTDIR)$(prefix)/lib/modules-load.d \
1311 $(DESTDIR)$(sysconfdir)/modules-load.d \
1312 $(DESTDIR)$(prefix)/lib/sysctl.d \
1313 $(DESTDIR)$(sysconfdir)/sysctl.d \
1314 $(DESTDIR)$(systemshutdowndir) \
1315 $(DESTDIR)$(systemgeneratordir) \
1316 $(DESTDIR)$(usergeneratordir)
1318 $(MKDIR_P) -m 0755 \
1319 $(DESTDIR)$(prefix)/lib/binfmt.d \
1320 $(DESTDIR)$(sysconfdir)/binfmt.d
1322 $(MKDIR_P) -m 0755 \
1323 $(DESTDIR)$(systemunitdir) \
1324 $(DESTDIR)$(userunitdir) \
1325 $(DESTDIR)$(systemunitdir)/sysinit.target.wants \
1326 $(DESTDIR)$(systemunitdir)/sockets.target.wants \
1327 $(DESTDIR)$(systemunitdir)/basic.target.wants \
1328 $(DESTDIR)$(systemunitdir)/shutdown.target.wants \
1329 $(DESTDIR)$(systemunitdir)/local-fs.target.wants \
1330 $(DESTDIR)$(systemunitdir)/runlevel1.target.wants \
1331 $(DESTDIR)$(systemunitdir)/runlevel2.target.wants \
1332 $(DESTDIR)$(systemunitdir)/runlevel3.target.wants \
1333 $(DESTDIR)$(systemunitdir)/runlevel4.target.wants \
1334 $(DESTDIR)$(systemunitdir)/runlevel5.target.wants \
1335 $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
1336 $(DESTDIR)$(systemunitdir)/graphical.target.wants \
1337 $(DESTDIR)$(pkgsysconfdir)/system \
1338 $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants \
1339 $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants \
1340 $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \
1341 $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \
1342 $(DESTDIR)$(pkgsysconfdir)/user \
1343 $(DESTDIR)$(sysconfdir)/xdg/systemd
1344 ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
1346 $(LN_S) $(pkgsysconfdir)/user user )
1347 ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
1348 rm -f systemd-initctl.socket systemd-logger.socket systemd-shutdownd.socket syslog.socket && \
1349 $(LN_S) ../systemd-logger.socket systemd-logger.socket && \
1350 $(LN_S) ../systemd-initctl.socket systemd-initctl.socket && \
1351 $(LN_S) ../systemd-shutdownd.socket systemd-shutdownd.socket && \
1352 $(LN_S) ../syslog.socket syslog.socket )
1353 ( cd $(DESTDIR)$(systemunitdir)/runlevel1.target.wants && \
1354 rm -f systemd-update-utmp-runlevel.service && \
1355 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1356 ( cd $(DESTDIR)$(systemunitdir)/runlevel2.target.wants && \
1357 rm -f systemd-update-utmp-runlevel.service && \
1358 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1359 ( cd $(DESTDIR)$(systemunitdir)/runlevel3.target.wants && \
1360 rm -f systemd-update-utmp-runlevel.service && \
1361 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1362 ( cd $(DESTDIR)$(systemunitdir)/runlevel4.target.wants && \
1363 rm -f systemd-update-utmp-runlevel.service && \
1364 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1365 ( cd $(DESTDIR)$(systemunitdir)/runlevel5.target.wants && \
1366 rm -f systemd-update-utmp-runlevel.service && \
1367 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1368 ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
1369 rm -f systemd-update-utmp-shutdown.service \
1370 hwclock-save.service \
1371 systemd-random-seed-save.service && \
1372 $(LN_S) ../systemd-update-utmp-shutdown.service systemd-update-utmp-shutdown.service && \
1373 $(LN_S) ../hwclock-save.service hwclock-save.service && \
1374 $(LN_S) ../systemd-random-seed-save.service systemd-random-seed-save.service )
1375 ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
1376 rm -f systemd-remount-api-vfs.service \
1378 remount-rootfs.service \
1381 $(LN_S) ../systemd-remount-api-vfs.service systemd-remount-api-vfs.service && \
1382 $(LN_S) ../fsck-root.service fsck-root.service && \
1383 $(LN_S) ../remount-rootfs.service remount-rootfs.service && \
1384 $(LN_S) ../var-run.mount var-run.mount && \
1385 $(LN_S) ../media.mount media.mount )
1386 ( cd $(DESTDIR)$(userunitdir) && \
1387 rm -f shutdown.target sockets.target local-fs.target swap.target bluetooth.target printer.target sound.target && \
1388 $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \
1389 $(LN_S) $(systemunitdir)/sockets.target sockets.target && \
1390 $(LN_S) $(systemunitdir)/local-fs.target local-fs.target && \
1391 $(LN_S) $(systemunitdir)/swap.target swap.target && \
1392 $(LN_S) $(systemunitdir)/bluetooth.target bluetooth.target && \
1393 $(LN_S) $(systemunitdir)/printer.target printer.target && \
1394 $(LN_S) $(systemunitdir)/sound.target sound.target )
1395 ( cd $(DESTDIR)$(systemunitdir) && \
1396 rm -f runlevel0.target runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target runlevel6.target && \
1397 $(LN_S) poweroff.target runlevel0.target && \
1398 $(LN_S) rescue.target runlevel1.target && \
1399 $(LN_S) multi-user.target runlevel2.target && \
1400 $(LN_S) multi-user.target runlevel3.target && \
1401 $(LN_S) multi-user.target runlevel4.target && \
1402 $(LN_S) graphical.target runlevel5.target && \
1403 $(LN_S) reboot.target runlevel6.target )
1404 ( cd $(DESTDIR)$(systemunitdir) && \
1405 rm -f default.target ctrl-alt-del.target dbus-org.freedesktop.hostname1.service && \
1406 $(LN_S) graphical.target default.target && \
1407 $(LN_S) reboot.target ctrl-alt-del.target && \
1408 $(LN_S) systemd-hostnamed.service dbus-org.freedesktop.hostname1.service )
1409 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1410 rm -f getty.target systemd-user-sessions.service systemd-ask-password-wall.path && \
1411 $(LN_S) ../getty.target getty.target && \
1412 $(LN_S) ../systemd-user-sessions.service systemd-user-sessions.service && \
1413 $(LN_S) ../systemd-ask-password-wall.path systemd-ask-password-wall.path )
1414 ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
1415 rm -f getty@tty1.service getty@tty2.service getty@tty3.service getty@tty4.service getty@tty5.service getty@tty6.service && \
1416 $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service && \
1417 $(LN_S) $(systemunitdir)/getty@.service getty@tty2.service && \
1418 $(LN_S) $(systemunitdir)/getty@.service getty@tty3.service && \
1419 $(LN_S) $(systemunitdir)/getty@.service getty@tty4.service && \
1420 $(LN_S) $(systemunitdir)/getty@.service getty@tty5.service && \
1421 $(LN_S) $(systemunitdir)/getty@.service getty@tty6.service )
1422 ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
1423 rm -f remote-fs.target && \
1424 $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target )
1425 ( cd $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants && \
1426 rm -f hwclock-load.service && \
1427 $(LN_S) $(systemunitdir)/hwclock-load.service hwclock-load.service )
1428 ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1429 rm -f dev-hugepages.automount \
1430 dev-mqueue.automount \
1431 sys-kernel-debug.automount \
1432 sys-kernel-security.automount \
1433 systemd-vconsole-setup.service \
1434 systemd-modules-load.service \
1435 systemd-random-seed-load.service \
1436 systemd-tmpfiles-setup.service \
1437 systemd-sysctl.service \
1438 systemd-ask-password-console.path \
1439 systemd-kmsg-syslogd.service \
1440 cryptsetup.target && \
1441 $(LN_S) ../dev-hugepages.automount dev-hugepages.automount && \
1442 $(LN_S) ../dev-mqueue.automount dev-mqueue.automount && \
1443 $(LN_S) ../sys-kernel-debug.automount sys-kernel-debug.automount && \
1444 $(LN_S) ../sys-kernel-security.automount sys-kernel-security.automount && \
1445 $(LN_S) ../systemd-vconsole-setup.service systemd-vconsole-setup.service && \
1446 $(LN_S) ../systemd-modules-load.service systemd-modules-load.service && \
1447 $(LN_S) ../systemd-random-seed-load.service systemd-random-seed-load.service && \
1448 $(LN_S) ../systemd-tmpfiles-setup.service systemd-tmpfiles-setup.service && \
1449 $(LN_S) ../systemd-sysctl.service systemd-sysctl.service && \
1450 $(LN_S) ../systemd-ask-password-console.path systemd-ask-password-console.path && \
1451 $(LN_S) ../systemd-kmsg-syslogd.service && \
1452 $(LN_S) ../cryptsetup.target cryptsetup.target )
1454 ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1455 rm -f systemd-binfmt.service \
1456 proc-sys-fs-binfmt_misc.automount && \
1457 $(LN_S) ../systemd-binfmt.service systemd-binfmt.service && \
1458 $(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount )
1460 ( cd $(DESTDIR)$(systemunitdir)/basic.target.wants && \
1461 rm -f systemd-tmpfiles-clean.timer && \
1462 $(LN_S) ../systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.timer )
1463 ( cd $(DESTDIR)$(dbussessionservicedir) && \
1464 rm -f org.freedesktop.systemd1.service && \
1465 $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service )
1467 $(MKDIR_P) -m 0755 \
1468 $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) \
1469 $(DESTDIR)$(systemunitdir)/reboot.target.wants \
1470 $(DESTDIR)$(systemunitdir)/kexec.target.wants \
1471 $(DESTDIR)$(systemunitdir)/poweroff.target.wants \
1472 $(DESTDIR)$(systemunitdir)/halt.target.wants
1473 ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1474 rm -f plymouth-start.service plymouth-read-write.service && \
1475 $(LN_S) ../plymouth-start.service plymouth-start.service && \
1476 $(LN_S) ../plymouth-read-write.service plymouth-read-write.service )
1477 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1478 rm -f plymouth-quit.service plymouth-quit-wait.service && \
1479 $(LN_S) ../plymouth-quit.service plymouth-quit.service && \
1480 $(LN_S) ../plymouth-quit-wait.service plymouth-quit-wait.service )
1481 ( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \
1482 rm -f plymouth-reboot.service && \
1483 $(LN_S) ../plymouth-reboot.service plymouth-reboot.service )
1484 ( cd $(DESTDIR)$(systemunitdir)/kexec.target.wants && \
1485 rm -f plymouth-kexec.service && \
1486 $(LN_S) ../plymouth-kexec.service plymouth-kexec.service )
1487 ( cd $(DESTDIR)$(systemunitdir)/poweroff.target.wants && \
1488 rm -f plymouth-poweroff.service && \
1489 $(LN_S) ../plymouth-poweroff.service plymouth-poweroff.service )
1490 ( cd $(DESTDIR)$(systemunitdir)/halt.target.wants && \
1491 rm -f plymouth-halt.service && \
1492 $(LN_S) ../plymouth-halt.service plymouth-halt.service )
1495 $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
1496 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1497 rm -f network.target && \
1498 $(LN_S) $(systemunitdir)/network.target network.target )
1499 ( cd $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants && \
1501 ( cd $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants && \
1503 ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
1505 ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
1510 $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
1511 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1512 rm -f rc-local.service && \
1513 $(LN_S) $(systemunitdir)/rc-local.service rc-local.service )
1514 ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
1515 rm -f halt-local.service && \
1516 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
1517 ( cd $(DESTDIR)$(systemunitdir) && \
1518 rm -f display-manager.service single.service && \
1519 $(LN_S) prefdm.service display-manager.service && \
1520 $(LN_S) rescue.service single.service )
1521 ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
1522 rm -f display-manager.service && \
1523 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
1527 $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
1528 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1529 rm -f rc-local.service && \
1530 $(LN_S) $(systemunitdir)/rc-local.service rc-local.service )
1531 ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
1532 rm -f halt-local.service && \
1533 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
1534 ( cd $(DESTDIR)$(systemunitdir) && \
1535 rm -f display-manager.service dm.service single.service && \
1536 $(LN_S) prefdm.service display-manager.service && \
1537 $(LN_S) prefdm.service dm.service && \
1538 $(LN_S) rescue.service single.service )
1539 ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
1540 rm -f display-manager.service && \
1541 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
1544 if TARGET_DEBIAN_OR_UBUNTU
1545 ( cd $(DESTDIR)$(systemunitdir) && \
1546 rm -f runlevel5.target && \
1547 $(LN_S) multi-user.target runlevel5.target )
1551 ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
1552 rm -f var-lock.mount && \
1553 $(LN_S) ../var-lock.mount var-lock.mount )
1556 DISTCHECK_CONFIGURE_FLAGS = \
1557 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
1558 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
1559 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
1560 --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
1561 --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \
1562 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
1563 --with-rootdir=$$dc_install_base/$(rootdir)
1565 upload: all distcheck
1566 cp -v systemd-$(VERSION).tar.bz2 /home/lennart/git.fedora/systemd/
1567 scp systemd-$(VERSION).tar.bz2 fdo:/srv/www.freedesktop.org/www/software/systemd/
1568 scp man/*.html tango:public/systemd-man/
1571 git tag "v$(VERSION)" -m "systemd $(VERSION)"