]> git.ipfire.org Git - people/ms/systemd.git/blame - Makefile.am
swap: add .swap unit type
[people/ms/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 55 test-job-type \
af5bc85d
LP
56 test-ns \
57 test-loopback
47be870b 58
e24067c3
LP
59dbuspolicy_DATA = \
60 org.freedesktop.systemd1.conf
61
5cc5d790
LP
62udevrules_DATA = \
63 99-systemd.rules
64
70fcff31
LP
65systemunit_DATA = \
66 units/emergency.service \
67 systemd-initctl.service \
68 units/systemd-initctl.socket \
69 systemd-logger.service \
70 units/systemd-logger.socket
71
e24067c3 72EXTRA_DIST = \
70fcff31
LP
73 org.freedesktop.systemd1.conf \
74 99-systemd.rules \
75 units/emergency.service \
76 units/systemd-initctl.service.in \
77 units/systemd-initctl.socket \
78 units/systemd-logger.service.in \
79 units/systemd-logger.socket
e24067c3 80
ea6145da 81BASIC_SOURCES = \
47be870b 82 util.c \
8e274523 83 util.h \
47be870b 84 hashmap.c \
8e274523 85 hashmap.h \
47be870b 86 set.c \
8e274523 87 set.h \
47be870b 88 strv.c \
8e274523 89 strv.h \
47be870b 90 conf-parser.c \
8e274523 91 conf-parser.h \
47be870b 92 socket-util.c \
8e274523 93 socket-util.h \
47be870b 94 log.c \
8e274523
LP
95 log.h \
96 ratelimit.c \
97 ratelimit.h
47be870b 98
ea6145da 99COMMON_SOURCES = \
47be870b
LP
100 $(BASIC_SOURCES) \
101 unit.c \
8e274523 102 unit.h \
47be870b 103 job.c \
8e274523 104 job.h \
47be870b 105 manager.c \
8e274523 106 manager.h \
47be870b 107 load-fragment.c \
8e274523 108 load-fragment.h \
47be870b 109 service.c \
8e274523 110 service.h \
47be870b 111 automount.c \
8e274523 112 automount.h \
47be870b 113 mount.c \
8e274523 114 mount.h \
07b0b134
ML
115 swap.c \
116 swap.h \
47be870b 117 device.c \
8e274523 118 device.h \
47be870b 119 target.c \
8e274523 120 target.h \
47be870b 121 snapshot.c \
8e274523 122 snapshot.h \
47be870b 123 socket.c \
8e274523 124 socket.h \
47be870b 125 timer.c \
8e274523 126 timer.h \
47be870b 127 load-dropin.c \
8e274523 128 load-dropin.h \
47be870b 129 execute.c \
8e274523 130 execute.h \
47be870b 131 dbus.c \
8e274523 132 dbus.h \
47be870b 133 dbus-manager.c \
8e274523 134 dbus-manager.h \
47be870b 135 dbus-unit.c \
8e274523
LP
136 dbus-unit.h \
137 dbus-job.c \
138 dbus-job.h \
4139c1b2
LP
139 dbus-service.c \
140 dbus-service.h \
141 dbus-socket.c \
142 dbus-socket.h \
143 dbus-target.c \
144 dbus-target.h \
145 dbus-mount.c \
146 dbus-mount.h \
147 dbus-automount.c \
148 dbus-autpmount.h \
07b0b134
ML
149 dbus-swap.c \
150 dbus-swap.h \
4139c1b2
LP
151 dbus-snapshot.c \
152 dbus-snapshot.h \
153 dbus-device.c \
154 dbus-device.h \
155 dbus-execute.c \
156 dbus-execute.h \
8e274523
LP
157 cgroup.c \
158 cgroup.h \
159 mount-setup.c \
302e8c4c
LP
160 mount-setup.h \
161 hostname-setup.c \
e537352b 162 hostname-setup.h \
af5bc85d
LP
163 loopback-setup.c \
164 loopback-setup.h \
e537352b 165 utmp-wtmp.c \
9e2f7c11
LP
166 utmp-wtmp.h \
167 specifier.c \
168 specifier.h \
169 unit-name.c \
a16e1123
LP
170 unit-name.h \
171 fdset.c \
15ae422b
LP
172 fdset.h \
173 namespace.h \
174 namespace.c
47be870b
LP
175
176systemd_SOURCES = \
177 $(COMMON_SOURCES) \
178 main.c
179
180systemd_CPPFLAGS = \
181 $(AM_CPPFLAGS) \
182 $(DBUS_CFLAGS) \
8e274523
LP
183 $(UDEV_CFLAGS) \
184 $(CGROUP_CFLAGS)
47be870b
LP
185
186systemd_LDADD = \
187 $(DBUS_LIBS) \
8e274523
LP
188 $(UDEV_LIBS) \
189 $(CGROUP_LIBS)
47be870b
LP
190
191test_engine_SOURCES = \
192 $(COMMON_SOURCES) \
193 test-engine.c
194
195test_engine_CPPFLAGS = $(systemd_CPPFLAGS)
196test_engine_LDADD = $(systemd_LDADD)
197
198test_job_type_SOURCES = \
199 $(COMMON_SOURCES) \
200 test-engine.c
201
202test_job_type_CPPFLAGS = $(systemd_CPPFLAGS)
203test_job_type_LDADD = $(systemd_LDADD)
204
15ae422b
LP
205test_ns_SOURCES = \
206 $(BASIC_SOURCES) \
207 test-ns.c \
208 namespace.c
209
210test_ns_CPPFLAGS = $(systemd_CPPFLAGS)
211test_ns_LDADD = $(systemd_LDADD)
212
af5bc85d
LP
213test_loopback_SOURCES = \
214 $(BASIC_SOURCES) \
215 test-loopback.c \
216 loopback-setup.c
217
218test_loopback_CPPFLAGS = $(systemd_CPPFLAGS)
219test_loopback_LDADD = $(systemd_LDADD)
220
47be870b
LP
221systemd_logger_SOURCES = \
222 $(BASIC_SOURCES) \
223 logger.c
224
0b7964b8
LP
225systemd_initctl_SOURCES = \
226 $(BASIC_SOURCES) \
227 initctl.c
228
229systemd_initctl_CPPFLAGS = \
230 $(AM_CPPFLAGS) \
231 $(DBUS_CFLAGS)
232
233systemd_initctl_LDADD = \
234 $(DBUS_LIBS)
235
8e274523
LP
236systemd_cgroups_agent_SOURCES = \
237 $(BASIC_SOURCES) \
238 cgroups-agent.c
239
240systemd_cgroups_agent_CPPFLAGS = \
241 $(AM_CPPFLAGS) \
242 $(DBUS_CFLAGS)
243
244systemd_cgroups_agent_LDADD = \
245 $(DBUS_LIBS)
246
b9cd233f 247VALAFLAGS = -g --save-temps --pkg=dbus-glib-1 --pkg=posix --pkg gtk+-2.0
47be870b
LP
248
249systemctl_SOURCES = \
250 systemctl.vala \
251 systemd-interfaces.vala
252
253systemctl_CPPFLAGS = $(AM_CPPFLAGS) $(DBUSGLIB_CFLAGS)
254systemctl_LDADD = $(DBUSGLIB_LIBS)
255
256systemadm_SOURCES = \
257 systemadm.vala \
258 systemd-interfaces.vala
259
260systemadm_CPPFLAGS = $(AM_CPPFLAGS) $(DBUSGLIB_CFLAGS) $(GTK_CFLAGS)
261systemadm_LDADD = $(DBUSGLIB_LIBS) $(GTK_LIBS)
c1e1601e 262
70fcff31 263systemd-initctl.service: units/systemd-initctl.service.in Makefile
2d02719c
LP
264 sed -e 's,@libexecdir\@,$(libexecdir),g' \
265 -e 's,@pkglibexecdir\@,$(pkglibexecdir),g' \
266 < $< > $@
70fcff31
LP
267
268systemd-logger.service: units/systemd-logger.service.in Makefile
2d02719c
LP
269 sed -e 's,@libexecdir\@,$(libexecdir),g' \
270 -e 's,@pkglibexecdir\@,$(pkglibexecdir),g' \
271 < $< > $@
70fcff31 272
c1e1601e
LP
273CLEANFILES = \
274 systemd-interfaces.c \
275 systemctl.c \
8e274523 276 systemadm.c \
70fcff31
LP
277 systemd-initctl.service \
278 systemd-logger.service