]> git.ipfire.org Git - thirdparty/systemd.git/blame - Makefile.am
execute: support basic filesystem namespacing
[thirdparty/systemd.git] / Makefile.am
CommitLineData
47be870b
LP
1# This file is part of systemd.
2#
3# Copyright 2010 Lennart Poettering
4#
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.
9#
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.
14#
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/>.
17
18ACLOCAL_AMFLAGS = -I m4
19
036643a2 20pkgsysconfdir=$(sysconfdir)/systemd
e24067c3 21dbuspolicydir=$(sysconfdir)/dbus-1/system.d
5cc5d790 22udevrulesdir=/lib/udev/rules.d
036643a2 23
70fcff31
LP
24systemunitdir=$(pkgdatadir)/system
25sessionunitdir=$(pkgdatadir)/system
26
47be870b
LP
27AM_CPPFLAGS = \
28 -include $(top_builddir)/config.h \
036643a2 29 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
70fcff31 30 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
0571e011 31 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
061978fa 32 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
036643a2 33 -DSESSION_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/session\" \
70fcff31 34 -DSESSION_DATA_UNIT_PATH=\"$(sessionunitdir)\" \
a16e1123
LP
35 -DCGROUP_AGENT_PATH=\"$(pkglibexecdir)/systemd-cgroups-agent\" \
36 -DSYSTEMD_BINARY_PATH=\"$(sbindir)/systemd\"
37
38# -DSYSTEMD_BINARY_PATH=\"/home/lennart/projects/systemd/systemd\"
39
47be870b
LP
40
41sbin_PROGRAMS = \
42 systemd
43
44bin_PROGRAMS = \
45 systemctl \
8e274523
LP
46 systemadm
47
48pkglibexec_PROGRAMS = \
49 systemd-logger \
0b7964b8
LP
50 systemd-cgroups-agent \
51 systemd-initctl
47be870b
LP
52
53noinst_PROGRAMS = \
54 test-engine \
15ae422b
LP
55 test-job-type \
56 test-ns
47be870b 57
e24067c3
LP
58dbuspolicy_DATA = \
59 org.freedesktop.systemd1.conf
60
5cc5d790
LP
61udevrules_DATA = \
62 99-systemd.rules
63
70fcff31
LP
64systemunit_DATA = \
65 units/emergency.service \
66 systemd-initctl.service \
67 units/systemd-initctl.socket \
68 systemd-logger.service \
69 units/systemd-logger.socket
70
e24067c3 71EXTRA_DIST = \
70fcff31
LP
72 org.freedesktop.systemd1.conf \
73 99-systemd.rules \
74 units/emergency.service \
75 units/systemd-initctl.service.in \
76 units/systemd-initctl.socket \
77 units/systemd-logger.service.in \
78 units/systemd-logger.socket
e24067c3 79
47be870b
LP
80BASIC_SOURCES= \
81 util.c \
8e274523 82 util.h \
47be870b 83 hashmap.c \
8e274523 84 hashmap.h \
47be870b 85 set.c \
8e274523 86 set.h \
47be870b 87 strv.c \
8e274523 88 strv.h \
47be870b 89 conf-parser.c \
8e274523 90 conf-parser.h \
47be870b 91 socket-util.c \
8e274523 92 socket-util.h \
47be870b 93 log.c \
8e274523
LP
94 log.h \
95 ratelimit.c \
96 ratelimit.h
47be870b
LP
97
98COMMON_SOURCES= \
99 $(BASIC_SOURCES) \
100 unit.c \
8e274523 101 unit.h \
47be870b 102 job.c \
8e274523 103 job.h \
47be870b 104 manager.c \
8e274523 105 manager.h \
47be870b 106 load-fragment.c \
8e274523 107 load-fragment.h \
47be870b 108 service.c \
8e274523 109 service.h \
47be870b 110 automount.c \
8e274523 111 automount.h \
47be870b 112 mount.c \
8e274523 113 mount.h \
47be870b 114 device.c \
8e274523 115 device.h \
47be870b 116 target.c \
8e274523 117 target.h \
47be870b 118 snapshot.c \
8e274523 119 snapshot.h \
47be870b 120 socket.c \
8e274523 121 socket.h \
47be870b 122 timer.c \
8e274523 123 timer.h \
47be870b 124 load-dropin.c \
8e274523 125 load-dropin.h \
47be870b 126 execute.c \
8e274523 127 execute.h \
47be870b 128 dbus.c \
8e274523 129 dbus.h \
47be870b 130 dbus-manager.c \
8e274523 131 dbus-manager.h \
47be870b 132 dbus-unit.c \
8e274523
LP
133 dbus-unit.h \
134 dbus-job.c \
135 dbus-job.h \
4139c1b2
LP
136 dbus-service.c \
137 dbus-service.h \
138 dbus-socket.c \
139 dbus-socket.h \
140 dbus-target.c \
141 dbus-target.h \
142 dbus-mount.c \
143 dbus-mount.h \
144 dbus-automount.c \
145 dbus-autpmount.h \
146 dbus-snapshot.c \
147 dbus-snapshot.h \
148 dbus-device.c \
149 dbus-device.h \
150 dbus-execute.c \
151 dbus-execute.h \
8e274523
LP
152 cgroup.c \
153 cgroup.h \
154 mount-setup.c \
302e8c4c
LP
155 mount-setup.h \
156 hostname-setup.c \
e537352b
LP
157 hostname-setup.h \
158 utmp-wtmp.c \
9e2f7c11
LP
159 utmp-wtmp.h \
160 specifier.c \
161 specifier.h \
162 unit-name.c \
a16e1123
LP
163 unit-name.h \
164 fdset.c \
15ae422b
LP
165 fdset.h \
166 namespace.h \
167 namespace.c
47be870b
LP
168
169systemd_SOURCES = \
170 $(COMMON_SOURCES) \
171 main.c
172
173systemd_CPPFLAGS = \
174 $(AM_CPPFLAGS) \
175 $(DBUS_CFLAGS) \
8e274523
LP
176 $(UDEV_CFLAGS) \
177 $(CGROUP_CFLAGS)
47be870b
LP
178
179systemd_LDADD = \
180 $(DBUS_LIBS) \
8e274523
LP
181 $(UDEV_LIBS) \
182 $(CGROUP_LIBS)
47be870b
LP
183
184test_engine_SOURCES = \
185 $(COMMON_SOURCES) \
186 test-engine.c
187
188test_engine_CPPFLAGS = $(systemd_CPPFLAGS)
189test_engine_LDADD = $(systemd_LDADD)
190
191test_job_type_SOURCES = \
192 $(COMMON_SOURCES) \
193 test-engine.c
194
195test_job_type_CPPFLAGS = $(systemd_CPPFLAGS)
196test_job_type_LDADD = $(systemd_LDADD)
197
15ae422b
LP
198test_ns_SOURCES = \
199 $(BASIC_SOURCES) \
200 test-ns.c \
201 namespace.c
202
203test_ns_CPPFLAGS = $(systemd_CPPFLAGS)
204test_ns_LDADD = $(systemd_LDADD)
205
47be870b
LP
206systemd_logger_SOURCES = \
207 $(BASIC_SOURCES) \
208 logger.c
209
0b7964b8
LP
210systemd_initctl_SOURCES = \
211 $(BASIC_SOURCES) \
212 initctl.c
213
214systemd_initctl_CPPFLAGS = \
215 $(AM_CPPFLAGS) \
216 $(DBUS_CFLAGS)
217
218systemd_initctl_LDADD = \
219 $(DBUS_LIBS)
220
8e274523
LP
221systemd_cgroups_agent_SOURCES = \
222 $(BASIC_SOURCES) \
223 cgroups-agent.c
224
225systemd_cgroups_agent_CPPFLAGS = \
226 $(AM_CPPFLAGS) \
227 $(DBUS_CFLAGS)
228
229systemd_cgroups_agent_LDADD = \
230 $(DBUS_LIBS)
231
47be870b
LP
232VALAFLAGS = -g --save-temps --pkg=dbus-glib-1 --pkg=posix --pkg gee-1.0 --pkg gtk+-2.0
233
234systemctl_SOURCES = \
235 systemctl.vala \
236 systemd-interfaces.vala
237
238systemctl_CPPFLAGS = $(AM_CPPFLAGS) $(DBUSGLIB_CFLAGS)
239systemctl_LDADD = $(DBUSGLIB_LIBS)
240
241systemadm_SOURCES = \
242 systemadm.vala \
243 systemd-interfaces.vala
244
245systemadm_CPPFLAGS = $(AM_CPPFLAGS) $(DBUSGLIB_CFLAGS) $(GTK_CFLAGS)
246systemadm_LDADD = $(DBUSGLIB_LIBS) $(GTK_LIBS)
c1e1601e 247
70fcff31
LP
248systemd-initctl.service: units/systemd-initctl.service.in Makefile
249 sed -e 's,@libexecdir\@,$(libexecdir),g' < $< > $@
250
251systemd-logger.service: units/systemd-logger.service.in Makefile
252 sed -e 's,@libexecdir\@,$(libexecdir),g' < $< > $@
253
c1e1601e
LP
254CLEANFILES = \
255 systemd-interfaces.c \
256 systemctl.c \
8e274523 257 systemadm.c \
70fcff31
LP
258 systemd-initctl.service \
259 systemd-logger.service