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\"
39 -Wno-unused-variable \
53 pkglibexec_PROGRAMS = \
55 systemd-cgroups-agent \
64 dist_dbuspolicy_DATA = \
65 org.freedesktop.systemd1.conf
67 dist_udevrules_DATA = \
70 dist_systemunit_DATA = \
71 units/emergency.service \
72 units/systemd-initctl.socket \
73 units/systemd-logger.socket
76 systemd-initctl.service \
77 systemd-logger.service
80 units/systemd-initctl.service.in \
81 units/systemd-logger.service.in \
85 # This is needed because automake is buggy in how it generates the
86 # rules for C programs, but not Vala programs. We therefore can't
87 # list the .h files as dependencies if we want make dist to work.
139 ${COMMON_SOURCES:.c=.h} \
145 linux/auto_dev-ioctl.h \
161 man/systemd.unit.xml \
162 man/systemd.service.xml
179 test_engine_SOURCES = \
183 test_engine_CPPFLAGS = $(systemd_CPPFLAGS)
184 test_engine_LDADD = $(systemd_LDADD)
186 test_job_type_SOURCES = \
190 test_job_type_CPPFLAGS = $(systemd_CPPFLAGS)
191 test_job_type_LDADD = $(systemd_LDADD)
198 test_ns_CPPFLAGS = $(systemd_CPPFLAGS)
199 test_ns_LDADD = $(systemd_LDADD)
201 test_loopback_SOURCES = \
206 test_loopback_CPPFLAGS = $(systemd_CPPFLAGS)
207 test_loopback_LDADD = $(systemd_LDADD)
209 systemd_logger_SOURCES = \
214 systemd_initctl_SOURCES = \
219 systemd_initctl_CPPFLAGS = \
223 systemd_initctl_LDADD = \
226 systemd_cgroups_agent_SOURCES = \
230 systemd_cgroups_agent_CPPFLAGS = \
234 systemd_cgroups_agent_LDADD = \
237 VALAFLAGS = -g --save-temps --pkg=dbus-glib-1 --pkg=posix --pkg gtk+-2.0
239 systemctl_SOURCES = \
241 systemd-interfaces.vala
243 systemctl_CPPFLAGS = $(AM_CPPFLAGS) $(DBUSGLIB_CFLAGS) $(VALA_CFLAGS)
244 systemctl_LDADD = $(DBUSGLIB_LIBS)
246 systemadm_SOURCES = \
248 systemd-interfaces.vala
250 systemadm_CPPFLAGS = $(AM_CPPFLAGS) $(DBUSGLIB_CFLAGS) $(GTK_CFLAGS) $(VALA_CFLAGS)
251 systemadm_LDADD = $(DBUSGLIB_LIBS) $(GTK_LIBS)
253 systemd-initctl.service: units/systemd-initctl.service.in Makefile
254 $(SED) -e 's,@libexecdir\@,$(libexecdir),g' \
255 -e 's,@pkglibexecdir\@,$(pkglibexecdir),g' \
258 systemd-logger.service: units/systemd-logger.service.in Makefile
259 $(SED) -e 's,@libexecdir\@,$(libexecdir),g' \
260 -e 's,@pkglibexecdir\@,$(pkglibexecdir),g' \
264 systemd-interfaces.c \
267 systemd-initctl.service \
268 systemd-logger.service
272 $(XSLTPROC) -o $@ -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
275 $(XSLTPROC) -o $@ -nonet http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $<
284 $(DESTDIR)$(systemunitdir) \
285 $(DESTDIR)$(sessionunitdir) \
286 $(DESTDIR)$(pkgsysconfdir)/system \
287 $(DESTDIR)$(pkgsysconfdir)/session \
288 $(DESTDIR)$(sysconfdir)/xdg/systemd \
289 $(DESTDIR)/cgroup/debug
290 ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
292 $(LN_S) $(DESTDIR)$(pkgsysconfdir)/session session )
294 DISTCHECK_CONFIGURE_FLAGS = \
295 --with-udevrulesdir=$$dc_install_base/$(udevrulesdir)