]> git.ipfire.org Git - people/ms/systemd.git/blob - Makefile.am
loopback: configure lo device on bootup
[people/ms/systemd.git] / Makefile.am
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
18 ACLOCAL_AMFLAGS = -I m4
19
20 pkgsysconfdir=$(sysconfdir)/systemd
21 dbuspolicydir=$(sysconfdir)/dbus-1/system.d
22 udevrulesdir=/lib/udev/rules.d
23
24 systemunitdir=$(pkgdatadir)/system
25 sessionunitdir=$(pkgdatadir)/system
26
27 AM_CPPFLAGS = \
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\"
37
38 # -DSYSTEMD_BINARY_PATH=\"/home/lennart/projects/systemd/systemd\"
39
40
41 sbin_PROGRAMS = \
42 systemd
43
44 bin_PROGRAMS = \
45 systemctl \
46 systemadm
47
48 pkglibexec_PROGRAMS = \
49 systemd-logger \
50 systemd-cgroups-agent \
51 systemd-initctl
52
53 noinst_PROGRAMS = \
54 test-engine \
55 test-job-type \
56 test-ns \
57 test-loopback
58
59 dbuspolicy_DATA = \
60 org.freedesktop.systemd1.conf
61
62 udevrules_DATA = \
63 99-systemd.rules
64
65 systemunit_DATA = \
66 units/emergency.service \
67 systemd-initctl.service \
68 units/systemd-initctl.socket \
69 systemd-logger.service \
70 units/systemd-logger.socket
71
72 EXTRA_DIST = \
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
80
81 BASIC_SOURCES = \
82 util.c \
83 util.h \
84 hashmap.c \
85 hashmap.h \
86 set.c \
87 set.h \
88 strv.c \
89 strv.h \
90 conf-parser.c \
91 conf-parser.h \
92 socket-util.c \
93 socket-util.h \
94 log.c \
95 log.h \
96 ratelimit.c \
97 ratelimit.h
98
99 COMMON_SOURCES = \
100 $(BASIC_SOURCES) \
101 unit.c \
102 unit.h \
103 job.c \
104 job.h \
105 manager.c \
106 manager.h \
107 load-fragment.c \
108 load-fragment.h \
109 service.c \
110 service.h \
111 automount.c \
112 automount.h \
113 mount.c \
114 mount.h \
115 device.c \
116 device.h \
117 target.c \
118 target.h \
119 snapshot.c \
120 snapshot.h \
121 socket.c \
122 socket.h \
123 timer.c \
124 timer.h \
125 load-dropin.c \
126 load-dropin.h \
127 execute.c \
128 execute.h \
129 dbus.c \
130 dbus.h \
131 dbus-manager.c \
132 dbus-manager.h \
133 dbus-unit.c \
134 dbus-unit.h \
135 dbus-job.c \
136 dbus-job.h \
137 dbus-service.c \
138 dbus-service.h \
139 dbus-socket.c \
140 dbus-socket.h \
141 dbus-target.c \
142 dbus-target.h \
143 dbus-mount.c \
144 dbus-mount.h \
145 dbus-automount.c \
146 dbus-autpmount.h \
147 dbus-snapshot.c \
148 dbus-snapshot.h \
149 dbus-device.c \
150 dbus-device.h \
151 dbus-execute.c \
152 dbus-execute.h \
153 cgroup.c \
154 cgroup.h \
155 mount-setup.c \
156 mount-setup.h \
157 hostname-setup.c \
158 hostname-setup.h \
159 loopback-setup.c \
160 loopback-setup.h \
161 utmp-wtmp.c \
162 utmp-wtmp.h \
163 specifier.c \
164 specifier.h \
165 unit-name.c \
166 unit-name.h \
167 fdset.c \
168 fdset.h \
169 namespace.h \
170 namespace.c
171
172 systemd_SOURCES = \
173 $(COMMON_SOURCES) \
174 main.c
175
176 systemd_CPPFLAGS = \
177 $(AM_CPPFLAGS) \
178 $(DBUS_CFLAGS) \
179 $(UDEV_CFLAGS) \
180 $(CGROUP_CFLAGS)
181
182 systemd_LDADD = \
183 $(DBUS_LIBS) \
184 $(UDEV_LIBS) \
185 $(CGROUP_LIBS)
186
187 test_engine_SOURCES = \
188 $(COMMON_SOURCES) \
189 test-engine.c
190
191 test_engine_CPPFLAGS = $(systemd_CPPFLAGS)
192 test_engine_LDADD = $(systemd_LDADD)
193
194 test_job_type_SOURCES = \
195 $(COMMON_SOURCES) \
196 test-engine.c
197
198 test_job_type_CPPFLAGS = $(systemd_CPPFLAGS)
199 test_job_type_LDADD = $(systemd_LDADD)
200
201 test_ns_SOURCES = \
202 $(BASIC_SOURCES) \
203 test-ns.c \
204 namespace.c
205
206 test_ns_CPPFLAGS = $(systemd_CPPFLAGS)
207 test_ns_LDADD = $(systemd_LDADD)
208
209 test_loopback_SOURCES = \
210 $(BASIC_SOURCES) \
211 test-loopback.c \
212 loopback-setup.c
213
214 test_loopback_CPPFLAGS = $(systemd_CPPFLAGS)
215 test_loopback_LDADD = $(systemd_LDADD)
216
217 systemd_logger_SOURCES = \
218 $(BASIC_SOURCES) \
219 logger.c
220
221 systemd_initctl_SOURCES = \
222 $(BASIC_SOURCES) \
223 initctl.c
224
225 systemd_initctl_CPPFLAGS = \
226 $(AM_CPPFLAGS) \
227 $(DBUS_CFLAGS)
228
229 systemd_initctl_LDADD = \
230 $(DBUS_LIBS)
231
232 systemd_cgroups_agent_SOURCES = \
233 $(BASIC_SOURCES) \
234 cgroups-agent.c
235
236 systemd_cgroups_agent_CPPFLAGS = \
237 $(AM_CPPFLAGS) \
238 $(DBUS_CFLAGS)
239
240 systemd_cgroups_agent_LDADD = \
241 $(DBUS_LIBS)
242
243 VALAFLAGS = -g --save-temps --pkg=dbus-glib-1 --pkg=posix --pkg gtk+-2.0
244
245 systemctl_SOURCES = \
246 systemctl.vala \
247 systemd-interfaces.vala
248
249 systemctl_CPPFLAGS = $(AM_CPPFLAGS) $(DBUSGLIB_CFLAGS)
250 systemctl_LDADD = $(DBUSGLIB_LIBS)
251
252 systemadm_SOURCES = \
253 systemadm.vala \
254 systemd-interfaces.vala
255
256 systemadm_CPPFLAGS = $(AM_CPPFLAGS) $(DBUSGLIB_CFLAGS) $(GTK_CFLAGS)
257 systemadm_LDADD = $(DBUSGLIB_LIBS) $(GTK_LIBS)
258
259 systemd-initctl.service: units/systemd-initctl.service.in Makefile
260 sed -e 's,@libexecdir\@,$(libexecdir),g' \
261 -e 's,@pkglibexecdir\@,$(pkglibexecdir),g' \
262 < $< > $@
263
264 systemd-logger.service: units/systemd-logger.service.in Makefile
265 sed -e 's,@libexecdir\@,$(libexecdir),g' \
266 -e 's,@pkglibexecdir\@,$(pkglibexecdir),g' \
267 < $< > $@
268
269 CLEANFILES = \
270 systemd-interfaces.c \
271 systemctl.c \
272 systemadm.c \
273 systemd-initctl.service \
274 systemd-logger.service