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