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