]>
Commit | Line | Data |
---|---|---|
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 | ||
18 | ACLOCAL_AMFLAGS = -I m4 | |
19 | ||
8c4a3079 | 20 | # Dirs of external packages |
d122948d LP |
21 | dbuspolicydir=@dbuspolicydir@ |
22 | dbussessionservicedir=@dbussessionservicedir@ | |
23 | dbussystemservicedir=@dbussystemservicedir@ | |
24 | dbusinterfacedir=@dbusinterfacedir@ | |
d1ab0ca0 | 25 | udevrulesdir=@udevrulesdir@ |
8c6db833 LP |
26 | pamlibdir=@pamlibdir@ |
27 | pkgconfigdatadir=$(datadir)/pkgconfig | |
036643a2 | 28 | |
8c4a3079 | 29 | # Our own, non-special dirs |
d1ab0ca0 | 30 | pkgsysconfdir=$(sysconfdir)/systemd |
d1ab0ca0 | 31 | sessionunitdir=$(pkgdatadir)/session |
8c4a3079 LP |
32 | |
33 | # And these are the special ones for / | |
34 | rootdir=@rootdir@ | |
8c4a3079 LP |
35 | rootbindir=$(rootdir)/bin |
36 | rootlibexecdir=$(rootdir)/lib/systemd | |
37 | systemunitdir=$(rootdir)/lib/systemd/system | |
70fcff31 | 38 | |
47be870b LP |
39 | AM_CPPFLAGS = \ |
40 | -include $(top_builddir)/config.h \ | |
487393e9 | 41 | -DSYSTEM_CONFIG_FILE=\"$(pkgsysconfdir)/system.conf\" \ |
036643a2 | 42 | -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \ |
70fcff31 | 43 | -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \ |
0571e011 | 44 | -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \ |
061978fa | 45 | -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \ |
487393e9 | 46 | -DSESSION_CONFIG_FILE=\"$(pkgsysconfdir)/session.conf\" \ |
036643a2 | 47 | -DSESSION_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/session\" \ |
70fcff31 | 48 | -DSESSION_DATA_UNIT_PATH=\"$(sessionunitdir)\" \ |
8c4a3079 | 49 | -DCGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \ |
f401faf5 | 50 | -DSYSTEMD_BINARY_PATH=\"$(rootbindir)/systemd\" \ |
2cb1a60d | 51 | -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \ |
8c6db833 | 52 | -DRUNTIME_DIR=\"$(localstatedir)/run\" \ |
e99e38bb | 53 | -I $(top_srcdir)/src |
47be870b | 54 | |
8c4a3079 | 55 | rootbin_PROGRAMS = \ |
134dc482 | 56 | systemd \ |
4a2a8b5a LP |
57 | systemctl \ |
58 | systemd-notify | |
a9b5b032 | 59 | |
8c4a3079 | 60 | bin_PROGRAMS = \ |
10e87ee7 LP |
61 | systemd-install |
62 | ||
63 | if HAVE_GTK | |
64 | bin_PROGRAMS += \ | |
8e274523 | 65 | systemadm |
a9b5b032 | 66 | endif |
8e274523 | 67 | |
8c4a3079 | 68 | rootlibexec_PROGRAMS = \ |
8e274523 | 69 | systemd-logger \ |
0b7964b8 LP |
70 | systemd-cgroups-agent \ |
71 | systemd-initctl | |
47be870b LP |
72 | |
73 | noinst_PROGRAMS = \ | |
74 | test-engine \ | |
15ae422b | 75 | test-job-type \ |
af5bc85d | 76 | test-ns \ |
8c47c732 | 77 | test-loopback \ |
8c6db833 LP |
78 | test-daemon \ |
79 | test-cgroup | |
80 | ||
81 | if HAVE_PAM | |
82 | pamlib_LTLIBRARIES = \ | |
83 | pam_systemd.la | |
84 | endif | |
47be870b | 85 | |
487393e9 LP |
86 | dist_pkgsysconf_DATA = \ |
87 | src/system.conf | |
88 | ||
d1ab0ca0 | 89 | dist_dbuspolicy_DATA = \ |
dfac97b2 | 90 | src/org.freedesktop.systemd1.conf |
e24067c3 | 91 | |
d122948d LP |
92 | dist_dbussystemservice_DATA = \ |
93 | src/org.freedesktop.systemd1.service | |
94 | ||
d1ab0ca0 | 95 | dist_udevrules_DATA = \ |
dfac97b2 | 96 | src/99-systemd.rules |
5cc5d790 | 97 | |
d122948d | 98 | dbusinterface_DATA = \ |
4288f619 LP |
99 | org.freedesktop.systemd1.Manager.xml \ |
100 | org.freedesktop.systemd1.Job.xml \ | |
101 | org.freedesktop.systemd1.Unit.xml \ | |
102 | org.freedesktop.systemd1.Service.xml \ | |
103 | org.freedesktop.systemd1.Socket.xml \ | |
871d7de4 | 104 | org.freedesktop.systemd1.Timer.xml \ |
4288f619 LP |
105 | org.freedesktop.systemd1.Target.xml \ |
106 | org.freedesktop.systemd1.Device.xml \ | |
107 | org.freedesktop.systemd1.Mount.xml \ | |
108 | org.freedesktop.systemd1.Automount.xml \ | |
109 | org.freedesktop.systemd1.Snapshot.xml \ | |
01f78473 LP |
110 | org.freedesktop.systemd1.Swap.xml \ |
111 | org.freedesktop.systemd1.Path.xml | |
4288f619 | 112 | |
d1ab0ca0 | 113 | dist_systemunit_DATA = \ |
70fcff31 | 114 | units/emergency.service \ |
f92a18f5 | 115 | units/basic.target \ |
5e6afdd3 LP |
116 | units/getty.target \ |
117 | units/halt.target \ | |
70449379 LP |
118 | units/local-fs.target \ |
119 | units/network.target \ | |
120 | units/nss-lookup.target \ | |
683f468c | 121 | units/mail-transfer-agent.target \ |
5e6afdd3 LP |
122 | units/poweroff.target \ |
123 | units/reboot.target \ | |
5e6afdd3 | 124 | units/rescue.target \ |
f0b02ca2 | 125 | units/rpcbind.target \ |
70449379 LP |
126 | units/rtc-set.target \ |
127 | units/shutdown.target \ | |
128 | units/sigpwr.target \ | |
129 | units/sockets.target \ | |
130 | units/swap.target \ | |
70fcff31 | 131 | units/systemd-initctl.socket \ |
670802d4 LP |
132 | units/systemd-logger.socket \ |
133 | units/dev-hugepages.automount \ | |
134 | units/dev-hugepages.mount \ | |
135 | units/dev-mqueue.automount \ | |
136 | units/dev-mqueue.mount \ | |
137 | units/proc-sys-fs-binfmt_misc.automount \ | |
138 | units/proc-sys-fs-binfmt_misc.mount \ | |
139 | units/sys-kernel-debug.automount \ | |
140 | units/sys-kernel-debug.mount \ | |
6d526de2 LP |
141 | units/sys-kernel-security.automount \ |
142 | units/sys-kernel-security.mount \ | |
143 | units/var-lock.mount \ | |
670802d4 | 144 | units/var-run.mount |
70fcff31 | 145 | |
6f6083dc | 146 | nodist_systemunit_DATA = \ |
f92a18f5 | 147 | units/sysinit.target \ |
5e6afdd3 LP |
148 | units/getty@.service \ |
149 | units/graphical.target \ | |
6f6083dc | 150 | units/remote-fs.target \ |
5e6afdd3 | 151 | units/multi-user.target \ |
dfac97b2 | 152 | units/systemd-initctl.service \ |
a7b6f8e5 | 153 | units/systemd-logger.service \ |
af65a091 LP |
154 | units/syslog.target \ |
155 | units/dbus.target | |
d1ab0ca0 | 156 | |
0d26c910 LP |
157 | dist_sessionunit_DATA = \ |
158 | units/session/default.target | |
159 | ||
6f6083dc | 160 | nodist_sessionunit_DATA = \ |
a1b256b0 LP |
161 | units/session/remote-fs.target \ |
162 | units/session/exit.service | |
fb1bd35a | 163 | |
e24067c3 | 164 | EXTRA_DIST = \ |
f92a18f5 | 165 | units/sysinit.target.m4 \ |
5e6afdd3 LP |
166 | units/getty@.service.m4 \ |
167 | units/graphical.target.m4 \ | |
168 | units/multi-user.target.m4 \ | |
705dbf3a | 169 | units/remote-fs.target.m4 \ |
70fcff31 | 170 | units/systemd-initctl.service.in \ |
70fcff31 | 171 | units/systemd-logger.service.in \ |
a7b6f8e5 | 172 | units/syslog.target.in \ |
af65a091 | 173 | units/dbus.target.in \ |
a1b256b0 | 174 | units/session/exit.service.in \ |
64ca679e | 175 | systemd.pc.in |
e24067c3 | 176 | |
5e6afdd3 LP |
177 | if TARGET_FEDORA |
178 | dist_systemunit_DATA += \ | |
179 | units/fedora/halt.service \ | |
180 | units/fedora/killall.service \ | |
181 | units/fedora/poweroff.service \ | |
182 | units/fedora/prefdm.service \ | |
183 | units/fedora/rc-local.service \ | |
184 | units/fedora/reboot.service \ | |
185 | units/fedora/sysinit.service | |
186 | endif | |
187 | ||
65b0095b KS |
188 | if TARGET_SUSE |
189 | dist_systemunit_DATA += \ | |
190 | units/suse/halt.service \ | |
191 | units/suse/poweroff.service \ | |
192 | units/suse/reboot.service | |
193 | endif | |
194 | ||
ea2d9ed4 MAP |
195 | if TARGET_GENTOO |
196 | dist_systemunit_DATA += \ | |
197 | units/gentoo/halt.service \ | |
198 | units/gentoo/killall.service \ | |
199 | units/gentoo/poweroff.service \ | |
200 | units/gentoo/reboot.service \ | |
201 | units/gentoo/xdm.service | |
202 | endif | |
203 | ||
1ebdf2d8 TG |
204 | if TARGET_ARCH |
205 | dist_systemunit_DATA += \ | |
206 | units/arch/sysinit.service \ | |
207 | units/arch/rc-local.service \ | |
208 | units/arch/halt.service \ | |
209 | units/arch/poweroff.service \ | |
210 | units/arch/reboot.service | |
211 | endif | |
212 | ||
240a3a85 LP |
213 | dist_doc_DATA = \ |
214 | README \ | |
795750ca LP |
215 | LICENSE \ |
216 | DISTRO_PORTING \ | |
240a3a85 LP |
217 | src/sd-daemon.h \ |
218 | src/sd-daemon.c | |
219 | ||
8c6db833 LP |
220 | pkgconfigdata_DATA = \ |
221 | systemd.pc | |
222 | ||
139be57d LP |
223 | noinst_LTLIBRARIES = \ |
224 | libsystemd-basic.la \ | |
225 | libsystemd-core.la | |
226 | ||
139be57d | 227 | libsystemd_basic_la_SOURCES = \ |
e99e38bb LP |
228 | src/util.c \ |
229 | src/hashmap.c \ | |
230 | src/set.c \ | |
231 | src/strv.c \ | |
232 | src/conf-parser.c \ | |
233 | src/socket-util.c \ | |
234 | src/log.c \ | |
235 | src/ratelimit.c | |
47be870b | 236 | |
139be57d | 237 | libsystemd_core_la_SOURCES = \ |
e99e38bb LP |
238 | src/unit.c \ |
239 | src/job.c \ | |
240 | src/manager.c \ | |
84e3543e | 241 | src/path-lookup.c \ |
e99e38bb LP |
242 | src/load-fragment.c \ |
243 | src/service.c \ | |
244 | src/automount.c \ | |
245 | src/mount.c \ | |
246 | src/swap.c \ | |
247 | src/device.c \ | |
248 | src/target.c \ | |
249 | src/snapshot.c \ | |
250 | src/socket.c \ | |
251 | src/timer.c \ | |
01f78473 | 252 | src/path.c \ |
e99e38bb LP |
253 | src/load-dropin.c \ |
254 | src/execute.c \ | |
255 | src/dbus.c \ | |
256 | src/dbus-manager.c \ | |
257 | src/dbus-unit.c \ | |
258 | src/dbus-job.c \ | |
259 | src/dbus-service.c \ | |
260 | src/dbus-socket.c \ | |
871d7de4 | 261 | src/dbus-timer.c \ |
e99e38bb LP |
262 | src/dbus-target.c \ |
263 | src/dbus-mount.c \ | |
264 | src/dbus-automount.c \ | |
265 | src/dbus-swap.c \ | |
266 | src/dbus-snapshot.c \ | |
267 | src/dbus-device.c \ | |
268 | src/dbus-execute.c \ | |
01f78473 | 269 | src/dbus-path.c \ |
e99e38bb LP |
270 | src/cgroup.c \ |
271 | src/mount-setup.c \ | |
272 | src/hostname-setup.c \ | |
273 | src/loopback-setup.c \ | |
11c3a4ee | 274 | src/kmod-setup.c \ |
fa0f4d8a | 275 | src/modprobe-setup.c \ |
e99e38bb LP |
276 | src/utmp-wtmp.c \ |
277 | src/specifier.c \ | |
278 | src/unit-name.c \ | |
279 | src/fdset.c \ | |
0213c3f8 | 280 | src/namespace.c \ |
8c6db833 LP |
281 | src/tcpwrap.c \ |
282 | src/cgroup-util.c | |
47be870b | 283 | |
139be57d LP |
284 | libsystemd_core_la_CFLAGS = \ |
285 | $(AM_CFLAGS) \ | |
286 | $(DBUS_CFLAGS) \ | |
287 | $(UDEV_CFLAGS) \ | |
288 | $(CGROUP_CFLAGS) | |
289 | ||
290 | libsystemd_core_la_LIBADD = \ | |
291 | libsystemd-basic.la \ | |
292 | $(DBUS_LIBS) \ | |
293 | $(UDEV_LIBS) \ | |
294 | $(CGROUP_LIBS) \ | |
295 | $(LIBWRAP_LIBS) \ | |
296 | $(PAM_LIBS) | |
297 | ||
9a1ac7b9 LP |
298 | # This is needed because automake is buggy in how it generates the |
299 | # rules for C programs, but not Vala programs. We therefore can't | |
300 | # list the .h files as dependencies if we want make dist to work. | |
301 | ||
462b33e9 | 302 | EXTRA_DIST += \ |
139be57d LP |
303 | ${libsystemd_basic_la_SOURCES:.c=.h} \ |
304 | ${libsystemd_core_la_SOURCES:.c=.h} \ | |
e99e38bb LP |
305 | src/macro.h \ |
306 | src/ioprio.h \ | |
307 | src/missing.h \ | |
308 | src/list.h \ | |
309 | src/securebits.h \ | |
310 | src/linux/auto_dev-ioctl.h \ | |
311 | src/initreq.h \ | |
514f4ef5 | 312 | src/sd-daemon.h \ |
9a1ac7b9 | 313 | src/special.h \ |
398ef8ba LP |
314 | src/dbus-common.h \ |
315 | src/bus-errors.h | |
6f6083dc LP |
316 | |
317 | MANPAGES = \ | |
160cd5c9 | 318 | man/systemd.1 \ |
6f6083dc LP |
319 | man/systemctl.1 \ |
320 | man/systemadm.1 \ | |
321 | man/systemd-install.1 \ | |
c5abba08 | 322 | man/systemd-notify.1 \ |
f9378423 LP |
323 | man/sd_notify.3 \ |
324 | man/sd_booted.3 \ | |
325 | man/sd_listen_fds.3 \ | |
326 | man/sd_is_fifo.3 \ | |
6f6083dc LP |
327 | man/systemd.unit.5 \ |
328 | man/systemd.service.5 \ | |
1f812fea | 329 | man/systemd.socket.5 \ |
cdb788e4 | 330 | man/systemd.mount.5 \ |
65232ea7 | 331 | man/systemd.automount.5 \ |
e0cabd4b | 332 | man/systemd.swap.5 \ |
11fcc3ab | 333 | man/systemd.timer.5 \ |
b36b082c | 334 | man/systemd.path.5 \ |
da49e9ab | 335 | man/systemd.target.5 \ |
eec575d8 | 336 | man/systemd.device.5 \ |
b2c20dd9 | 337 | man/systemd.snapshot.5 \ |
dd1eb43b | 338 | man/systemd.exec.5 \ |
6f6083dc | 339 | man/daemon.7 \ |
359957ee LP |
340 | man/sd-daemon.7 \ |
341 | man/runlevel.8 \ | |
160cd5c9 LP |
342 | man/telinit.8 \ |
343 | man/halt.8 \ | |
344 | man/shutdown.8 \ | |
f3e219a2 LP |
345 | man/pam_systemd.8 \ |
346 | man/systemd.conf.5 | |
6f6083dc LP |
347 | |
348 | MANPAGES_ALIAS = \ | |
349 | man/reboot.8 \ | |
350 | man/poweroff.8 \ | |
351 | man/sd_is_socket.3 \ | |
352 | man/sd_is_socket_unix.3 \ | |
353 | man/sd_is_socket_inet.3 \ | |
354 | man/sd_notifyf.3 \ | |
355 | man/init.1 | |
356 | ||
357 | man/reboot.8: man/halt.8 | |
358 | man/poweroff.8: man/halt.8 | |
359 | man/sd_is_socket.3: man/sd_is_fifo.3 | |
360 | man/sd_is_socket_unix.3: man/sd_is_fifo.3 | |
361 | man/sd_is_socket_inet.3: man/sd_is_fifo.3 | |
362 | man/sd_notifyf.3: man/sd_notify.3 | |
363 | man/init.1: man/systemd.1 | |
364 | ||
365 | dist_man_MANS = \ | |
366 | $(MANPAGES) \ | |
367 | $(MANPAGES_ALIAS) | |
9f2c5942 LP |
368 | |
369 | nodist_man_MANS = \ | |
9f235308 | 370 | man/systemd.special.7 |
d1ab0ca0 | 371 | |
6f6083dc LP |
372 | XML_FILES = \ |
373 | ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}} | |
374 | ||
375 | XML_IN_FILES = \ | |
376 | ${patsubst %.1,%.xml.in,${patsubst %.3,%.xml.in,${patsubst %.5,%.xml.in,${patsubst %.7,%.xml.in,${patsubst %.8,%.xml.in,$(nodist_man_MANS)}}}}} | |
377 | ||
9f2c5942 | 378 | dist_noinst_DATA = \ |
6f6083dc | 379 | ${XML_FILES:.xml=.html} |
d1ab0ca0 | 380 | |
9f2c5942 | 381 | nodist_noinst_DATA = \ |
6f6083dc | 382 | ${XML_IN_FILES:.xml.in=.html} |
d1ab0ca0 LP |
383 | |
384 | EXTRA_DIST += \ | |
6f6083dc LP |
385 | $(XML_FILES) \ |
386 | $(XML_IN_FILES) \ | |
387 | ${nodist_man_MANS:=.in} \ | |
388 | ${XML_IN_FILES:.xml.in=.html.in} | |
d1ab0ca0 | 389 | |
47be870b | 390 | systemd_SOURCES = \ |
e99e38bb | 391 | src/main.c |
47be870b | 392 | |
10e87ee7 LP |
393 | systemd_CFLAGS = \ |
394 | $(AM_CFLAGS) \ | |
47be870b | 395 | $(DBUS_CFLAGS) \ |
8e274523 LP |
396 | $(UDEV_CFLAGS) \ |
397 | $(CGROUP_CFLAGS) | |
47be870b LP |
398 | |
399 | systemd_LDADD = \ | |
139be57d | 400 | libsystemd-core.la |
47be870b LP |
401 | |
402 | test_engine_SOURCES = \ | |
e99e38bb | 403 | src/test-engine.c |
47be870b | 404 | |
10e87ee7 | 405 | test_engine_CFLAGS = $(systemd_CFLAGS) |
47be870b LP |
406 | test_engine_LDADD = $(systemd_LDADD) |
407 | ||
408 | test_job_type_SOURCES = \ | |
e1d680ad | 409 | src/test-job-type.c |
47be870b | 410 | |
10e87ee7 | 411 | test_job_type_CFLAGS = $(systemd_CFLAGS) |
47be870b LP |
412 | test_job_type_LDADD = $(systemd_LDADD) |
413 | ||
15ae422b | 414 | test_ns_SOURCES = \ |
139be57d | 415 | src/test-ns.c |
15ae422b | 416 | |
10e87ee7 | 417 | test_ns_CFLAGS = $(systemd_CFLAGS) |
15ae422b LP |
418 | test_ns_LDADD = $(systemd_LDADD) |
419 | ||
af5bc85d | 420 | test_loopback_SOURCES = \ |
e99e38bb LP |
421 | src/test-loopback.c \ |
422 | src/loopback-setup.c | |
af5bc85d | 423 | |
139be57d LP |
424 | test_loopback_LDADD = \ |
425 | libsystemd-basic.la | |
426 | ||
8c47c732 | 427 | test_daemon_SOURCES = \ |
8c47c732 LP |
428 | src/test-daemon.c \ |
429 | src/sd-daemon.c | |
af5bc85d | 430 | |
139be57d LP |
431 | test_daemon_LDADD = \ |
432 | libsystemd-basic.la | |
433 | ||
8c6db833 LP |
434 | test_cgroup_SOURCES = \ |
435 | src/test-cgroup.c \ | |
436 | src/cgroup-util.c | |
437 | ||
438 | test_cgroup_CFLAGS = \ | |
439 | $(AM_CFLAGS) \ | |
440 | $(CGROUP_CFLAGS) | |
441 | ||
442 | test_cgroup_LDADD = \ | |
443 | libsystemd-basic.la \ | |
444 | $(CGROUP_LIBS) | |
445 | ||
47be870b | 446 | systemd_logger_SOURCES = \ |
e99e38bb | 447 | src/logger.c \ |
0213c3f8 LP |
448 | src/sd-daemon.c \ |
449 | src/tcpwrap.c | |
450 | ||
451 | systemd_logger_LDADD = \ | |
139be57d | 452 | libsystemd-basic.la \ |
0213c3f8 | 453 | $(LIBWRAP_LIBS) |
47be870b | 454 | |
0b7964b8 | 455 | systemd_initctl_SOURCES = \ |
e99e38bb | 456 | src/initctl.c \ |
a822056b LP |
457 | src/sd-daemon.c \ |
458 | src/dbus-common.c | |
0b7964b8 | 459 | |
10e87ee7 LP |
460 | systemd_initctl_CFLAGS = \ |
461 | $(AM_CFLAGS) \ | |
0b7964b8 LP |
462 | $(DBUS_CFLAGS) |
463 | ||
464 | systemd_initctl_LDADD = \ | |
139be57d | 465 | libsystemd-basic.la \ |
0b7964b8 LP |
466 | $(DBUS_LIBS) |
467 | ||
8e274523 | 468 | systemd_cgroups_agent_SOURCES = \ |
e99e38bb | 469 | src/cgroups-agent.c |
8e274523 | 470 | |
10e87ee7 LP |
471 | systemd_cgroups_agent_CFLAGS = \ |
472 | $(AM_CFLAGS) \ | |
8e274523 LP |
473 | $(DBUS_CFLAGS) |
474 | ||
475 | systemd_cgroups_agent_LDADD = \ | |
139be57d | 476 | libsystemd-basic.la \ |
8e274523 LP |
477 | $(DBUS_LIBS) |
478 | ||
7e4249b9 LP |
479 | systemctl_SOURCES = \ |
480 | src/systemctl.c \ | |
9a1ac7b9 LP |
481 | src/utmp-wtmp.c \ |
482 | src/dbus-common.c | |
139be57d LP |
483 | |
484 | systemctl_CFLAGS = \ | |
485 | $(AM_CFLAGS) \ | |
486 | $(DBUS_CFLAGS) | |
7e4249b9 | 487 | |
139be57d LP |
488 | systemctl_LDADD = \ |
489 | libsystemd-basic.la \ | |
490 | $(DBUS_LIBS) | |
7e4249b9 | 491 | |
4a2a8b5a LP |
492 | systemd_notify_SOURCES = \ |
493 | src/notify.c \ | |
139be57d LP |
494 | src/sd-daemon.c |
495 | ||
496 | systemd_notify_LDADD = \ | |
497 | libsystemd-basic.la | |
4a2a8b5a | 498 | |
10e87ee7 LP |
499 | systemd_install_SOURCES = \ |
500 | src/install.c \ | |
9a1ac7b9 LP |
501 | src/path-lookup.c \ |
502 | src/dbus-common.c | |
139be57d LP |
503 | |
504 | systemd_install_LDADD = \ | |
9a1ac7b9 LP |
505 | libsystemd-basic.la \ |
506 | $(DBUS_LIBS) | |
e99e38bb | 507 | |
139be57d LP |
508 | systemd_install_CFLAGS = \ |
509 | $(AM_CFLAGS) \ | |
510 | $(DBUS_CFLAGS) | |
47be870b | 511 | |
47be870b | 512 | systemadm_SOURCES = \ |
e99e38bb LP |
513 | src/systemadm.vala \ |
514 | src/systemd-interfaces.vala | |
47be870b | 515 | |
10e87ee7 LP |
516 | systemadm_CFLAGS = \ |
517 | $(AM_CFLAGS) \ | |
518 | $(DBUSGLIB_CFLAGS) \ | |
519 | $(GTK_CFLAGS) \ | |
520 | -Wno-unused-variable \ | |
521 | -Wno-unused-function \ | |
522 | -Wno-shadow \ | |
523 | -Wno-format-nonliteral | |
524 | ||
525 | systemadm_VALAFLAGS = \ | |
526 | --pkg=dbus-glib-1 \ | |
527 | --pkg=posix \ | |
528 | --pkg=gtk+-2.0 \ | |
529 | -g | |
530 | ||
139be57d LP |
531 | systemadm_LDADD = \ |
532 | $(DBUSGLIB_LIBS) \ | |
533 | $(GTK_LIBS) | |
c1e1601e | 534 | |
8c6db833 LP |
535 | pam_systemd_la_SOURCES = \ |
536 | src/pam-module.c \ | |
537 | src/cgroup-util.c \ | |
538 | src/sd-daemon.c | |
539 | ||
540 | pam_systemd_la_CFLAGS = \ | |
541 | $(AM_CFLAGS) \ | |
542 | $(CGROUP_CFLAGS) \ | |
543 | -fvisibility=hidden | |
544 | ||
545 | pam_systemd_la_LDFLAGS = \ | |
546 | -module \ | |
547 | -export-dynamic \ | |
548 | -avoid-version \ | |
549 | -shared \ | |
550 | -export-symbols-regex '^pam_sm_.*' | |
551 | ||
552 | pam_systemd_la_LIBADD = \ | |
553 | libsystemd-basic.la \ | |
554 | $(PAM_LIBS) \ | |
555 | $(CGROUP_LIBS) | |
556 | ||
5e6afdd3 | 557 | SED_PROCESS = \ |
a00e4879 | 558 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ |
1136a371 | 559 | $(SED) -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \ |
5e6afdd3 | 560 | -e 's,@SPECIAL_SYSLOG_SERVICE\@,$(SPECIAL_SYSLOG_SERVICE),g' \ |
a1b256b0 | 561 | -e 's,@SPECIAL_DBUS_SERVICE\@,$(SPECIAL_DBUS_SERVICE),g' \ |
1136a371 | 562 | -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \ |
8c6db833 LP |
563 | -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \ |
564 | -e 's,@pkgdatadir\@,$(pkgdatadir),g' \ | |
565 | -e 's,@systemunitdir\@,$(systemunitdir),g' \ | |
566 | -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \ | |
567 | -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \ | |
568 | -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \ | |
569 | -e 's,@prefix\@,$(prefix),g' \ | |
2d02719c | 570 | < $< > $@ |
70fcff31 | 571 | |
9f2c5942 | 572 | units/%: units/%.in Makefile |
5e6afdd3 LP |
573 | $(SED_PROCESS) |
574 | ||
2a3d6294 | 575 | man/%: man/%.in Makefile |
5e6afdd3 LP |
576 | $(SED_PROCESS) |
577 | ||
8c6db833 LP |
578 | %.pc: %.pc.in Makefile |
579 | $(SED_PROCESS) | |
580 | ||
fb1bd35a | 581 | M4_PROCESS_SYSTEM = \ |
a00e4879 | 582 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ |
9f2c5942 | 583 | $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SYSTEM=1 < $< > $@ |
fb1bd35a LP |
584 | |
585 | M4_PROCESS_SESSION = \ | |
a00e4879 | 586 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ |
9f2c5942 | 587 | $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SESSION=1 < $< > $@ |
5e6afdd3 | 588 | |
9f2c5942 | 589 | units/%: units/%.m4 Makefile |
fb1bd35a | 590 | $(M4_PROCESS_SYSTEM) |
5e6afdd3 | 591 | |
9f2c5942 | 592 | units/session/%: units/%.m4 Makefile |
fb1bd35a | 593 | $(M4_PROCESS_SESSION) |
a7b6f8e5 | 594 | |
c1e1601e | 595 | CLEANFILES = \ |
6f6083dc LP |
596 | $(nodist_systemunit_DATA) \ |
597 | $(nodist_sessionunit_DATA) \ | |
598 | $(nodist_man_MANS) \ | |
599 | ${XML_IN_FILES:.xml.in=.html} \ | |
600 | $(pkgconfigdata_DATA) | |
4697132b | 601 | |
42e39f0b LP |
602 | if HAVE_VALAC |
603 | CLEANFILES += \ | |
6f6083dc | 604 | ${systemadm_SOURCES:.vala=.c} |
42e39f0b LP |
605 | endif |
606 | ||
c3bd7322 | 607 | if HAVE_XSLTPROC |
c6365917 LP |
608 | XSLTPROC_FLAGS = \ |
609 | --nonet \ | |
610 | --param funcsynopsis.style "'ansi'" | |
611 | ||
9f2c5942 | 612 | XSLTPROC_PROCESS_MAN = \ |
a00e4879 | 613 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ |
c6365917 | 614 | $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< |
d1ab0ca0 | 615 | |
9f2c5942 | 616 | XSLTPROC_PROCESS_MAN_IN = \ |
a00e4879 | 617 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ |
c6365917 | 618 | $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< && \ |
9f2c5942 LP |
619 | mv ${@:.in=} $@ |
620 | ||
621 | XSLTPROC_PROCESS_HTML = \ | |
a00e4879 | 622 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ |
c6365917 | 623 | $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $< |
d1ab0ca0 | 624 | |
9f2c5942 | 625 | XSLTPROC_PROCESS_HTML_IN = \ |
a00e4879 | 626 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ |
c6365917 | 627 | $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $< && \ |
9f2c5942 LP |
628 | mv ${@:.in=} $@ |
629 | ||
6f6083dc | 630 | man/%.1: man/%.xml |
f9378423 LP |
631 | $(XSLTPROC_PROCESS_MAN) |
632 | ||
6f6083dc | 633 | man/%.1.in: man/%.xml.in |
f9378423 LP |
634 | $(XSLTPROC_PROCESS_MAN) |
635 | ||
6f6083dc | 636 | man/%.3: man/%.xml |
359957ee LP |
637 | $(XSLTPROC_PROCESS_MAN) |
638 | ||
6f6083dc | 639 | man/%.3.in: man/%.xml.in |
359957ee LP |
640 | $(XSLTPROC_PROCESS_MAN) |
641 | ||
9f2c5942 LP |
642 | man/%.5: man/%.xml |
643 | $(XSLTPROC_PROCESS_MAN) | |
644 | ||
645 | man/%.5.in: man/%.xml.in | |
646 | $(XSLTPROC_PROCESS_MAN) | |
647 | ||
648 | man/%.7: man/%.xml | |
649 | $(XSLTPROC_PROCESS_MAN) | |
650 | ||
651 | man/%.7.in: man/%.xml.in | |
652 | $(XSLTPROC_PROCESS_MAN_IN) | |
653 | ||
f9378423 LP |
654 | man/%.8: man/%.xml |
655 | $(XSLTPROC_PROCESS_MAN) | |
656 | ||
657 | man/%.8.in: man/%.xml.in | |
658 | $(XSLTPROC_PROCESS_MAN_IN) | |
659 | ||
9f2c5942 LP |
660 | man/%.html: man/%.xml |
661 | $(XSLTPROC_PROCESS_HTML) | |
662 | ||
663 | man/%.html.in: man/%.xml.in | |
664 | $(XSLTPROC_PROCESS_HTML_IN) | |
665 | ||
d1ab0ca0 LP |
666 | CLEANFILES += \ |
667 | $(dist_man_MANS) \ | |
6f6083dc LP |
668 | ${nodist_man_MANS:=.in} \ |
669 | ${XML_FILES:.xml=.html} \ | |
670 | ${XML_IN_FILES:.xml.in=.html.in} | |
c3bd7322 | 671 | endif |
d1ab0ca0 | 672 | |
4288f619 LP |
673 | org.freedesktop.systemd1.%.xml: systemd |
674 | $(AM_V_GEN)./systemd --introspect=${@:.xml=} > $@ | |
675 | ||
6f6083dc LP |
676 | CLEANFILES += \ |
677 | $(dbusinterface_DATA) | |
4288f619 | 678 | |
4697132b | 679 | install-data-hook: |
64c1b5bf | 680 | $(MKDIR_P) -m 0755 \ |
43aa226d LP |
681 | $(DESTDIR)$(systemunitdir) \ |
682 | $(DESTDIR)$(sessionunitdir) \ | |
5e6afdd3 | 683 | $(DESTDIR)$(systemunitdir)/sockets.target.wants \ |
f92a18f5 | 684 | $(DESTDIR)$(systemunitdir)/sysinit.target.wants \ |
64c1b5bf | 685 | $(DESTDIR)$(pkgsysconfdir)/system \ |
5e6afdd3 LP |
686 | $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \ |
687 | $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \ | |
688 | $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants \ | |
64c1b5bf | 689 | $(DESTDIR)$(pkgsysconfdir)/session \ |
e82e442b | 690 | $(DESTDIR)$(sysconfdir)/xdg/systemd |
a3723b97 LP |
691 | $(MKDIR_P) -m 0755 $(DESTDIR)/cgroup || \ |
692 | echo "Don't forget to create /cgroup! Couldn't create it for you, continuing anyway." | |
e9da3678 LP |
693 | ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \ |
694 | rm -f session && \ | |
5e6afdd3 LP |
695 | $(LN_S) $(pkgsysconfdir)/session session ) |
696 | ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \ | |
70449379 | 697 | rm -f systemd-initctl.socket systemd-logger.socket && \ |
5e6afdd3 LP |
698 | $(LN_S) ../systemd-logger.socket systemd-logger.socket && \ |
699 | $(LN_S) ../systemd-initctl.socket systemd-initctl.socket ) | |
70449379 | 700 | ( cd $(DESTDIR)$(sessionunitdir) && \ |
fb1bd35a | 701 | rm -f shutdown.target sockets.target local-fs.target swap.target && \ |
8c4a3079 LP |
702 | $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \ |
703 | $(LN_S) $(systemunitdir)/sockets.target sockets.target && \ | |
704 | $(LN_S) $(systemunitdir)/local-fs.target local-fs.target && \ | |
705 | $(LN_S) $(systemunitdir)/swap.target swap.target ) | |
5e6afdd3 LP |
706 | ( cd $(DESTDIR)$(systemunitdir) && \ |
707 | rm -f runlevel0.target runlevel1.target runlevel6.target && \ | |
708 | $(LN_S) poweroff.target runlevel0.target && \ | |
709 | $(LN_S) rescue.target runlevel1.target && \ | |
710 | $(LN_S) reboot.target runlevel6.target ) | |
711 | ( cd $(DESTDIR)$(pkgsysconfdir)/system && \ | |
712 | rm -f default.target ctrl-alt-del.target kbrequest.target && \ | |
713 | $(LN_S) $(systemunitdir)/graphical.target default.target && \ | |
714 | $(LN_S) $(systemunitdir)/reboot.target ctrl-alt-del.target && \ | |
715 | $(LN_S) $(systemunitdir)/rescue.target kbrequest.target && \ | |
716 | rm -f runlevel2.target runlevel3.target runlevel4.target runlevel5.target && \ | |
717 | $(LN_S) $(systemunitdir)/multi-user.target runlevel2.target && \ | |
718 | $(LN_S) $(systemunitdir)/multi-user.target runlevel3.target && \ | |
719 | $(LN_S) $(systemunitdir)/multi-user.target runlevel4.target && \ | |
720 | $(LN_S) $(systemunitdir)/graphical.target runlevel5.target ) | |
721 | ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \ | |
722 | rm -f getty@tty1.service getty@tty2.service getty@tty3.service getty@tty4.service getty@tty5.service getty@tty6.service && \ | |
723 | $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service && \ | |
724 | $(LN_S) $(systemunitdir)/getty@.service getty@tty2.service && \ | |
725 | $(LN_S) $(systemunitdir)/getty@.service getty@tty3.service && \ | |
726 | $(LN_S) $(systemunitdir)/getty@.service getty@tty4.service && \ | |
727 | $(LN_S) $(systemunitdir)/getty@.service getty@tty5.service && \ | |
728 | $(LN_S) $(systemunitdir)/getty@.service getty@tty6.service ) | |
729 | ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \ | |
f92a18f5 LP |
730 | rm -f getty.target remote-fs.target && \ |
731 | $(LN_S) $(systemunitdir)/getty.target getty.target && \ | |
732 | $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target ) | |
733 | ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \ | |
6d526de2 LP |
734 | rm -f dev-hugepages.automount \ |
735 | dev-mqueue.automount \ | |
736 | proc-sys-fs-binfmt_misc.automount \ | |
737 | sys-kernel-debug.automount \ | |
6d526de2 | 738 | sys-kernel-security.automount && \ |
670802d4 LP |
739 | $(LN_S) ../dev-hugepages.automount dev-hugepages.automount && \ |
740 | $(LN_S) ../dev-mqueue.automount dev-mqueue.automount && \ | |
741 | $(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount && \ | |
6d526de2 | 742 | $(LN_S) ../sys-kernel-debug.automount sys-kernel-debug.automount && \ |
8c4a3079 | 743 | $(LN_S) ../sys-kernel-security.automount sys-kernel-security.automount ) |
d122948d LP |
744 | ( cd $(DESTDIR)$(dbussessionservicedir) && \ |
745 | rm -f org.freedesktop.systemd1.service && \ | |
746 | $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service ) | |
5e6afdd3 | 747 | if TARGET_FEDORA |
a3723b97 LP |
748 | $(MKDIR_P) -m 0755 \ |
749 | $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) | |
1e287fe3 LP |
750 | ( cd $(DESTDIR)$(pkgsysconfdir)/system && \ |
751 | rm -f display-manager.service && \ | |
752 | $(LN_S) $(systemunitdir)/prefdm.service display-manager.service ) | |
5e6afdd3 | 753 | ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \ |
af65a091 LP |
754 | rm -f prefdm.service && \ |
755 | $(LN_S) ../prefdm.service prefdm.service ) | |
5e6afdd3 LP |
756 | ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \ |
757 | rm -f rc-local.service && \ | |
758 | $(LN_S) $(systemunitdir)/rc-local.service rc-local.service ) | |
759 | ( cd $(DESTDIR)$(systemunitdir) && \ | |
760 | rm -f local.service && \ | |
761 | $(LN_S) rc-local.service local.service ) | |
a3723b97 | 762 | ( cd $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) && \ |
1afaf573 | 763 | $(LN_S) halt reboot > /dev/null 2>&1 || true ) |
5e6afdd3 | 764 | endif |
f306f4c4 MAP |
765 | if TARGET_GENTOO |
766 | ( cd $(DESTDIR)$(pkgsysconfdir)/system && \ | |
767 | rm -f display-manager.service && \ | |
768 | $(LN_S) $(systemunitdir)/xdm.service display-manager.service ) | |
769 | ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \ | |
af65a091 LP |
770 | rm -f prefdm.service && \ |
771 | $(LN_S) ../prefdm.service prefdm.service ) | |
f306f4c4 | 772 | endif |
5e6afdd3 | 773 | |
d1ab0ca0 | 774 | DISTCHECK_CONFIGURE_FLAGS = \ |
d2d12cd1 LP |
775 | --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \ |
776 | --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \ | |
777 | --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \ | |
778 | --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \ | |
8c4a3079 | 779 | --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \ |
8c6db833 | 780 | --with-pamlibdir=$$dc_install_base/$(pamlibdir) \ |
8c4a3079 | 781 | --with-rootdir=$$dc_install_base/$(rootdir) |