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 dbuspolicydir=$(sysconfdir)/dbus-1/system.d
21 udevrulesdir=@udevrulesdir@
23 pkgsysconfdir=$(sysconfdir)/systemd
24 systemunitdir=$(pkgdatadir)/system
25 sessionunitdir=$(pkgdatadir)/session
28 -include $(top_builddir)/config.h \
29 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
30 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
31 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
32 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
33 -DSESSION_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/session\" \
34 -DSESSION_DATA_UNIT_PATH=\"$(sessionunitdir)\" \
35 -DCGROUP_AGENT_PATH=\"$(pkglibexecdir)/systemd-cgroups-agent\" \
36 -DSYSTEMD_BINARY_PATH=\"$(sbindir)/systemd\" \
50 pkglibexec_PROGRAMS = \
52 systemd-cgroups-agent \
61 dist_dbuspolicy_DATA = \
62 src/org.freedesktop.systemd1.conf
64 dist_udevrules_DATA = \
67 dist_systemunit_DATA = \
68 units/emergency.service \
69 units/local-fs.target \
70 units/network.target \
71 units/nss-lookup.target \
72 units/remote-fs.target \
73 units/rpcbind.target \
74 units/rtc-set.target \
75 units/shutdown.target \
77 units/sockets.target \
79 units/systemd-initctl.socket \
80 units/systemd-logger.socket
83 units/systemd-initctl.service \
84 units/systemd-logger.service \
88 units/systemd-initctl.service.in \
89 units/systemd-logger.service.in \
90 units/syslog.target.in \
94 # This is needed because automake is buggy in how it generates the
95 # rules for C programs, but not Vala programs. We therefore can't
96 # list the .h files as dependencies if we want make dist to work.
112 src/load-fragment.c \
132 src/dbus-automount.c \
134 src/dbus-snapshot.c \
139 src/hostname-setup.c \
140 src/loopback-setup.c \
148 ${COMMON_SOURCES:.c=.h} \
154 src/linux/auto_dev-ioctl.h \
160 man/systemd.service.5 \
161 man/systemd.special.7
164 man/systemd.unit.html \
165 man/systemd.service.html \
166 man/systemd.special.html
172 man/systemd.unit.xml \
173 man/systemd.service.xml \
174 man/systemd.special.xml
191 test_engine_SOURCES = \
195 test_engine_CPPFLAGS = $(systemd_CPPFLAGS)
196 test_engine_LDADD = $(systemd_LDADD)
198 test_job_type_SOURCES = \
202 test_job_type_CPPFLAGS = $(systemd_CPPFLAGS)
203 test_job_type_LDADD = $(systemd_LDADD)
210 test_ns_CPPFLAGS = $(systemd_CPPFLAGS)
211 test_ns_LDADD = $(systemd_LDADD)
213 test_loopback_SOURCES = \
215 src/test-loopback.c \
218 test_loopback_CPPFLAGS = $(systemd_CPPFLAGS)
219 test_loopback_LDADD = $(systemd_LDADD)
221 systemd_logger_SOURCES = \
226 systemd_initctl_SOURCES = \
231 systemd_initctl_CPPFLAGS = \
235 systemd_initctl_LDADD = \
238 systemd_cgroups_agent_SOURCES = \
242 systemd_cgroups_agent_CPPFLAGS = \
246 systemd_cgroups_agent_LDADD = \
261 -Wno-unused-variable \
264 systemctl_SOURCES = \
266 src/systemd-interfaces.vala
268 systemctl_CPPFLAGS = $(AM_CPPFLAGS) $(DBUSGLIB_CFLAGS) $(VALA_CFLAGS)
269 systemctl_LDADD = $(DBUSGLIB_LIBS)
271 systemadm_SOURCES = \
273 src/systemd-interfaces.vala
275 systemadm_CPPFLAGS = $(AM_CPPFLAGS) $(DBUSGLIB_CFLAGS) $(GTK_CFLAGS) $(VALA_CFLAGS)
276 systemadm_LDADD = $(DBUSGLIB_LIBS) $(GTK_LIBS)
278 units/systemd-initctl.service: units/systemd-initctl.service.in Makefile
280 $(SED) -e 's,@libexecdir\@,$(libexecdir),g' \
281 -e 's,@pkglibexecdir\@,$(pkglibexecdir),g' \
284 units/systemd-logger.service: units/systemd-logger.service.in Makefile
286 $(SED) -e 's,@libexecdir\@,$(libexecdir),g' \
287 -e 's,@pkglibexecdir\@,$(pkglibexecdir),g' \
290 units/syslog.target: units/syslog.target.in Makefile
292 $(SED) -e 's,@SPECIAL_SYSLOG_SERVICE\@,$(SPECIAL_SYSLOG_SERVICE),g' \
296 src/systemd-interfaces.c \
299 units/systemd-initctl.service \
300 units/systemd-logger.service \
304 man/%.5 man/%.7: man/%.xml
306 $(XSLTPROC) -o $@ -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
308 man/%.html: man/%.xml
310 $(XSLTPROC) -o $@ -nonet http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $<
319 $(DESTDIR)$(systemunitdir) \
320 $(DESTDIR)$(sessionunitdir) \
321 $(DESTDIR)$(pkgsysconfdir)/system \
322 $(DESTDIR)$(pkgsysconfdir)/system/sockets.target.wants \
323 $(DESTDIR)$(pkgsysconfdir)/session \
324 $(DESTDIR)$(sysconfdir)/xdg/systemd \
325 $(DESTDIR)/cgroup/debug
326 ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
328 $(LN_S) $(DESTDIR)$(pkgsysconfdir)/session session )
329 ( cd $(DESTDIR)$(pkgsysconfdir)/system/sockets.target.wants && \
330 rm -f systemd-initctl.socket systemd-logger.socket && \
331 $(LN_S) $(DESTDIR)$(systemunitdir)/systemd-logger.socket systemd-logger.socket && \
332 $(LN_S) $(DESTDIR)$(systemunitdir)/systemd-initctl.socket systemd-initctl.socket )
333 ( cd $(DESTDIR)$(sessionunitdir) && \
334 rm -f shutdown.target sockets.target && \
335 $(LN_S) ../system/shutdown.target shutdown.target && \
336 $(LN_S) ../system/sockets.target sockets.target )
338 DISTCHECK_CONFIGURE_FLAGS = \
339 --with-udevrulesdir=$$dc_install_base/$(udevrulesdir)