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