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 org.freedesktop.systemd1.conf
64 dist_udevrules_DATA = \
67 dist_systemunit_DATA = \
68 units/emergency.service \
69 units/systemd-initctl.socket \
70 units/systemd-logger.socket
73 systemd-initctl.service \
74 systemd-logger.service
77 units/systemd-initctl.service.in \
78 units/systemd-logger.service.in \
82 # This is needed because automake is buggy in how it generates the
83 # rules for C programs, but not Vala programs. We therefore can't
84 # list the .h files as dependencies if we want make dist to work.
100 src/load-fragment.c \
120 src/dbus-automount.c \
122 src/dbus-snapshot.c \
127 src/hostname-setup.c \
128 src/loopback-setup.c \
136 ${COMMON_SOURCES:.c=.h} \
142 src/linux/auto_dev-ioctl.h \
158 man/systemd.unit.xml \
159 man/systemd.service.xml
176 test_engine_SOURCES = \
180 test_engine_CPPFLAGS = $(systemd_CPPFLAGS)
181 test_engine_LDADD = $(systemd_LDADD)
183 test_job_type_SOURCES = \
187 test_job_type_CPPFLAGS = $(systemd_CPPFLAGS)
188 test_job_type_LDADD = $(systemd_LDADD)
195 test_ns_CPPFLAGS = $(systemd_CPPFLAGS)
196 test_ns_LDADD = $(systemd_LDADD)
198 test_loopback_SOURCES = \
200 src/test-loopback.c \
203 test_loopback_CPPFLAGS = $(systemd_CPPFLAGS)
204 test_loopback_LDADD = $(systemd_LDADD)
206 systemd_logger_SOURCES = \
211 systemd_initctl_SOURCES = \
216 systemd_initctl_CPPFLAGS = \
220 systemd_initctl_LDADD = \
223 systemd_cgroups_agent_SOURCES = \
227 systemd_cgroups_agent_CPPFLAGS = \
231 systemd_cgroups_agent_LDADD = \
246 -Wno-unused-variable \
249 systemctl_SOURCES = \
251 src/systemd-interfaces.vala
253 systemctl_CPPFLAGS = $(AM_CPPFLAGS) $(DBUSGLIB_CFLAGS) $(VALA_CFLAGS)
254 systemctl_LDADD = $(DBUSGLIB_LIBS)
256 systemadm_SOURCES = \
258 src/systemd-interfaces.vala
260 systemadm_CPPFLAGS = $(AM_CPPFLAGS) $(DBUSGLIB_CFLAGS) $(GTK_CFLAGS) $(VALA_CFLAGS)
261 systemadm_LDADD = $(DBUSGLIB_LIBS) $(GTK_LIBS)
263 systemd-initctl.service: units/systemd-initctl.service.in Makefile
264 $(SED) -e 's,@libexecdir\@,$(libexecdir),g' \
265 -e 's,@pkglibexecdir\@,$(pkglibexecdir),g' \
268 systemd-logger.service: units/systemd-logger.service.in Makefile
269 $(SED) -e 's,@libexecdir\@,$(libexecdir),g' \
270 -e 's,@pkglibexecdir\@,$(pkglibexecdir),g' \
274 src/systemd-interfaces.c \
277 systemd-initctl.service \
278 systemd-logger.service
282 $(XSLTPROC) -o $@ -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
285 $(XSLTPROC) -o $@ -nonet http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $<
294 $(DESTDIR)$(systemunitdir) \
295 $(DESTDIR)$(sessionunitdir) \
296 $(DESTDIR)$(pkgsysconfdir)/system \
297 $(DESTDIR)$(pkgsysconfdir)/session \
298 $(DESTDIR)$(sysconfdir)/xdg/systemd \
299 $(DESTDIR)/cgroup/debug
300 ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
302 $(LN_S) $(DESTDIR)$(pkgsysconfdir)/session session )
304 DISTCHECK_CONFIGURE_FLAGS = \
305 --with-udevrulesdir=$$dc_install_base/$(udevrulesdir)