]>
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 | |
490aed58 | 28 | polkitpolicydir=$(datadir)/polkit-1/actions |
036643a2 | 29 | |
8c4a3079 | 30 | # Our own, non-special dirs |
d1ab0ca0 | 31 | pkgsysconfdir=$(sysconfdir)/systemd |
d1ab0ca0 | 32 | sessionunitdir=$(pkgdatadir)/session |
34c8deaa | 33 | tmpfilesdir=$(sysconfdir)/tmpfiles.d |
8c4a3079 LP |
34 | |
35 | # And these are the special ones for / | |
36 | rootdir=@rootdir@ | |
8c4a3079 | 37 | rootbindir=$(rootdir)/bin |
b1b2a107 | 38 | rootsbindir=$(rootdir)/sbin |
8c4a3079 LP |
39 | rootlibexecdir=$(rootdir)/lib/systemd |
40 | systemunitdir=$(rootdir)/lib/systemd/system | |
70fcff31 | 41 | |
47be870b | 42 | AM_CPPFLAGS = \ |
d3f09cf3 | 43 | -include $(top_builddir)/config.h \ |
487393e9 | 44 | -DSYSTEM_CONFIG_FILE=\"$(pkgsysconfdir)/system.conf\" \ |
036643a2 | 45 | -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \ |
70fcff31 | 46 | -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \ |
0571e011 | 47 | -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \ |
061978fa | 48 | -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \ |
487393e9 | 49 | -DSESSION_CONFIG_FILE=\"$(pkgsysconfdir)/session.conf\" \ |
036643a2 | 50 | -DSESSION_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/session\" \ |
70fcff31 | 51 | -DSESSION_DATA_UNIT_PATH=\"$(sessionunitdir)\" \ |
8c4a3079 | 52 | -DCGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \ |
f401faf5 | 53 | -DSYSTEMD_BINARY_PATH=\"$(rootbindir)/systemd\" \ |
b1b2a107 | 54 | -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \ |
2cb1a60d | 55 | -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \ |
8c6db833 | 56 | -DRUNTIME_DIR=\"$(localstatedir)/run\" \ |
ca2cab5d | 57 | -DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \ |
b1b2a107 | 58 | -DKEXEC_BINARY_PATH=\"$(rootsbindir)/kexec\" \ |
e99e38bb | 59 | -I $(top_srcdir)/src |
47be870b | 60 | |
9841e8e3 GSB |
61 | if TARGET_GENTOO |
62 | AM_CPPFLAGS += \ | |
63 | -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \ | |
64 | -DKBD_SETFONT=\"/usr/bin/setfont\" \ | |
65 | -DDEFAULT_FONT=\"LatArCyrHeb-16\" | |
66 | else | |
c226fa41 LDM |
67 | if TARGET_ARCH |
68 | AM_CPPFLAGS += \ | |
69 | -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \ | |
70 | -DKBD_SETFONT=\"/usr/bin/setfont\" \ | |
71 | -DDEFAULT_FONT=\"LatArCyrHeb-16\" | |
72 | else | |
9841e8e3 GSB |
73 | AM_CPPFLAGS += \ |
74 | -DKBD_LOADKEYS=\"/bin/loadkeys\" \ | |
75 | -DKBD_SETFONT=\"/bin/setfont\" \ | |
76 | -DDEFAULT_FONT=\"latarcyrheb-sun16\" | |
77 | endif | |
c226fa41 | 78 | endif |
9841e8e3 | 79 | |
8c4a3079 | 80 | rootbin_PROGRAMS = \ |
134dc482 | 81 | systemd \ |
4a2a8b5a | 82 | systemctl \ |
490aed58 LP |
83 | systemd-notify \ |
84 | systemd-ask-password | |
a9b5b032 | 85 | |
8c4a3079 | 86 | bin_PROGRAMS = \ |
fa776d8e | 87 | systemd-cgls |
10e87ee7 LP |
88 | |
89 | if HAVE_GTK | |
90 | bin_PROGRAMS += \ | |
490aed58 LP |
91 | systemadm \ |
92 | systemd-ask-password-agent | |
a9b5b032 | 93 | endif |
8e274523 | 94 | |
8c4a3079 | 95 | rootlibexec_PROGRAMS = \ |
8e274523 | 96 | systemd-logger \ |
0b7964b8 | 97 | systemd-cgroups-agent \ |
4927fcae | 98 | systemd-initctl \ |
ca2cab5d | 99 | systemd-update-utmp \ |
f6144808 | 100 | systemd-random-seed \ |
5192bd19 | 101 | systemd-shutdownd \ |
b1b2a107 | 102 | systemd-shutdown \ |
449ddb2d | 103 | systemd-modules-load \ |
addab137 | 104 | systemd-remount-api-vfs \ |
97c4a07d | 105 | systemd-kmsg-syslogd \ |
490aed58 | 106 | systemd-vconsole-setup \ |
22be093f LP |
107 | systemd-reply-password \ |
108 | systemd-readahead-collect \ | |
5008d581 | 109 | systemd-readahead-replay \ |
e9278741 | 110 | systemd-tmpfiles \ |
3d20ed6d LP |
111 | systemd-user-sessions \ |
112 | systemd-fsck \ | |
113 | systemd-quotacheck | |
47be870b LP |
114 | |
115 | noinst_PROGRAMS = \ | |
116 | test-engine \ | |
15ae422b | 117 | test-job-type \ |
af5bc85d | 118 | test-ns \ |
8c47c732 | 119 | test-loopback \ |
e5907703 | 120 | test-hostname \ |
8c6db833 | 121 | test-daemon \ |
c24eb49e LP |
122 | test-cgroup \ |
123 | test-env-replace | |
8c6db833 LP |
124 | |
125 | if HAVE_PAM | |
126 | pamlib_LTLIBRARIES = \ | |
127 | pam_systemd.la | |
128 | endif | |
47be870b | 129 | |
487393e9 LP |
130 | dist_pkgsysconf_DATA = \ |
131 | src/system.conf | |
132 | ||
d1ab0ca0 | 133 | dist_dbuspolicy_DATA = \ |
dfac97b2 | 134 | src/org.freedesktop.systemd1.conf |
e24067c3 | 135 | |
d122948d LP |
136 | dist_dbussystemservice_DATA = \ |
137 | src/org.freedesktop.systemd1.service | |
138 | ||
d1ab0ca0 | 139 | dist_udevrules_DATA = \ |
dfac97b2 | 140 | src/99-systemd.rules |
5cc5d790 | 141 | |
d122948d | 142 | dbusinterface_DATA = \ |
4288f619 LP |
143 | org.freedesktop.systemd1.Manager.xml \ |
144 | org.freedesktop.systemd1.Job.xml \ | |
145 | org.freedesktop.systemd1.Unit.xml \ | |
146 | org.freedesktop.systemd1.Service.xml \ | |
147 | org.freedesktop.systemd1.Socket.xml \ | |
871d7de4 | 148 | org.freedesktop.systemd1.Timer.xml \ |
4288f619 LP |
149 | org.freedesktop.systemd1.Target.xml \ |
150 | org.freedesktop.systemd1.Device.xml \ | |
151 | org.freedesktop.systemd1.Mount.xml \ | |
152 | org.freedesktop.systemd1.Automount.xml \ | |
153 | org.freedesktop.systemd1.Snapshot.xml \ | |
01f78473 LP |
154 | org.freedesktop.systemd1.Swap.xml \ |
155 | org.freedesktop.systemd1.Path.xml | |
4288f619 | 156 | |
34c8deaa LP |
157 | dist_tmpfiles_DATA = \ |
158 | tmpfiles.d/systemd.conf \ | |
159 | tmpfiles.d/x11.conf | |
160 | ||
d1ab0ca0 | 161 | dist_systemunit_DATA = \ |
70fcff31 | 162 | units/emergency.service \ |
f057408c | 163 | units/emergency.target \ |
f92a18f5 | 164 | units/basic.target \ |
5e6afdd3 LP |
165 | units/getty.target \ |
166 | units/halt.target \ | |
85ed27f6 | 167 | units/kexec.target \ |
70449379 LP |
168 | units/local-fs.target \ |
169 | units/network.target \ | |
170 | units/nss-lookup.target \ | |
683f468c | 171 | units/mail-transfer-agent.target \ |
a2ff477f | 172 | units/http-daemon.target \ |
5e6afdd3 LP |
173 | units/poweroff.target \ |
174 | units/reboot.target \ | |
5e6afdd3 | 175 | units/rescue.target \ |
f0b02ca2 | 176 | units/rpcbind.target \ |
70449379 LP |
177 | units/rtc-set.target \ |
178 | units/shutdown.target \ | |
9aac953a | 179 | units/final.target \ |
4e67ddd6 | 180 | units/umount.target \ |
70449379 LP |
181 | units/sigpwr.target \ |
182 | units/sockets.target \ | |
183 | units/swap.target \ | |
83bda358 | 184 | units/dbus.target \ |
70fcff31 | 185 | units/systemd-initctl.socket \ |
670802d4 | 186 | units/systemd-logger.socket \ |
f6144808 | 187 | units/systemd-shutdownd.socket \ |
addab137 | 188 | units/systemd-kmsg-syslogd.socket \ |
670802d4 LP |
189 | units/dev-hugepages.automount \ |
190 | units/dev-hugepages.mount \ | |
191 | units/dev-mqueue.automount \ | |
192 | units/dev-mqueue.mount \ | |
193 | units/proc-sys-fs-binfmt_misc.automount \ | |
194 | units/proc-sys-fs-binfmt_misc.mount \ | |
195 | units/sys-kernel-debug.automount \ | |
196 | units/sys-kernel-debug.mount \ | |
6d526de2 LP |
197 | units/sys-kernel-security.automount \ |
198 | units/sys-kernel-security.mount \ | |
b54dd8b7 | 199 | units/tmp.mount \ |
6d526de2 | 200 | units/var-lock.mount \ |
da78e1b4 | 201 | units/var-run.mount \ |
5481ab2b | 202 | units/hwclock-load.service \ |
f556ea46 LP |
203 | units/hwclock-save.service \ |
204 | units/sysctl.service \ | |
90685f7d | 205 | units/remount-rootfs.service \ |
da78e1b4 | 206 | units/printer.target \ |
ceda54d9 | 207 | units/bluetooth.target \ |
b15124f1 | 208 | units/smartcard.target \ |
3b63d2d3 | 209 | units/systemd-readahead-done.timer \ |
a9e1f5ec | 210 | units/systemd-tmpfiles-clean.timer \ |
335aa753 | 211 | units/quotaon.service |
70fcff31 | 212 | |
6f6083dc | 213 | nodist_systemunit_DATA = \ |
f92a18f5 | 214 | units/sysinit.target \ |
5e6afdd3 | 215 | units/getty@.service \ |
93a45c56 | 216 | units/serial-getty@.service \ |
5e6afdd3 | 217 | units/graphical.target \ |
6f6083dc | 218 | units/remote-fs.target \ |
5e6afdd3 | 219 | units/multi-user.target \ |
dfac97b2 | 220 | units/systemd-initctl.service \ |
a7b6f8e5 | 221 | units/systemd-logger.service \ |
f6144808 | 222 | units/systemd-shutdownd.service \ |
addab137 | 223 | units/systemd-kmsg-syslogd.service \ |
b2423f1f | 224 | units/systemd-modules-load.service \ |
97c4a07d | 225 | units/systemd-vconsole-setup.service \ |
449ddb2d | 226 | units/systemd-remount-api-vfs.service \ |
cd6d0a45 LP |
227 | units/systemd-update-utmp-runlevel.service \ |
228 | units/systemd-update-utmp-shutdown.service \ | |
ca2cab5d LP |
229 | units/systemd-random-seed-save.service \ |
230 | units/systemd-random-seed-load.service \ | |
4bb2357f LP |
231 | units/systemd-readahead-collect.service \ |
232 | units/systemd-readahead-replay.service \ | |
c7b50859 | 233 | units/systemd-readahead-done.service \ |
3b63d2d3 LP |
234 | units/systemd-tmpfiles-setup.service \ |
235 | units/systemd-tmpfiles-clean.service \ | |
447be155 | 236 | units/systemd-user-sessions.service \ |
85ed27f6 | 237 | units/syslog.target \ |
46574a5b LP |
238 | units/halt.service \ |
239 | units/poweroff.service \ | |
240 | units/reboot.service \ | |
a9e1f5ec LP |
241 | units/kexec.service \ |
242 | units/fsck@.service \ | |
335aa753 LP |
243 | units/fsck-root.service \ |
244 | units/quotacheck.service | |
d1ab0ca0 | 245 | |
0d26c910 | 246 | dist_sessionunit_DATA = \ |
85ed27f6 LP |
247 | units/session/default.target \ |
248 | units/session/exit.target | |
0d26c910 | 249 | |
6f6083dc | 250 | nodist_sessionunit_DATA = \ |
a1b256b0 LP |
251 | units/session/remote-fs.target \ |
252 | units/session/exit.service | |
fb1bd35a | 253 | |
e24067c3 | 254 | EXTRA_DIST = \ |
f92a18f5 | 255 | units/sysinit.target.m4 \ |
5e6afdd3 | 256 | units/getty@.service.m4 \ |
93a45c56 | 257 | units/serial-getty@.service.m4 \ |
5e6afdd3 LP |
258 | units/graphical.target.m4 \ |
259 | units/multi-user.target.m4 \ | |
705dbf3a | 260 | units/remote-fs.target.m4 \ |
70fcff31 | 261 | units/systemd-initctl.service.in \ |
70fcff31 | 262 | units/systemd-logger.service.in \ |
f6144808 | 263 | units/systemd-shutdownd.service.in \ |
addab137 | 264 | units/systemd-kmsg-syslogd.service.in \ |
b2423f1f | 265 | units/systemd-modules-load.service.in \ |
97c4a07d | 266 | units/systemd-vconsole-setup.service.in \ |
449ddb2d | 267 | units/systemd-remount-api-vfs.service.in \ |
cd6d0a45 LP |
268 | units/systemd-update-utmp-runlevel.service.in \ |
269 | units/systemd-update-utmp-shutdown.service.in \ | |
ca2cab5d LP |
270 | units/systemd-random-seed-save.service.in \ |
271 | units/systemd-random-seed-load.service.in \ | |
4bb2357f LP |
272 | units/systemd-readahead-collect.service.in \ |
273 | units/systemd-readahead-replay.service.in \ | |
c7b50859 | 274 | units/systemd-readahead-done.service.in \ |
3b63d2d3 LP |
275 | units/systemd-tmpfiles-setup.service.in \ |
276 | units/systemd-tmpfiles-clean.service.in \ | |
447be155 | 277 | units/systemd-user-sessions.service.in \ |
a7b6f8e5 | 278 | units/syslog.target.in \ |
46574a5b LP |
279 | units/halt.service.in \ |
280 | units/poweroff.service.in \ | |
281 | units/reboot.service.in \ | |
85ed27f6 | 282 | units/kexec.service.in \ |
a1b256b0 | 283 | units/session/exit.service.in \ |
a9e1f5ec LP |
284 | units/fsck@.service.in \ |
285 | units/fsck-root.service.in \ | |
335aa753 | 286 | units/quotacheck.service.in \ |
64ca679e | 287 | systemd.pc.in |
e24067c3 | 288 | |
5e6afdd3 LP |
289 | if TARGET_FEDORA |
290 | dist_systemunit_DATA += \ | |
5e6afdd3 LP |
291 | units/fedora/prefdm.service \ |
292 | units/fedora/rc-local.service \ | |
ddd941ed | 293 | units/fedora/halt-local.service \ |
f057408c | 294 | units/fedora/sysinit.service \ |
1310609b LP |
295 | units/fedora/single.service \ |
296 | units/fedora/plymouth-quit.service \ | |
0278dfeb LP |
297 | units/fedora/plymouth-reboot.service \ |
298 | units/fedora/plymouth-poweroff.service \ | |
299 | units/fedora/plymouth-halt.service | |
5e6afdd3 LP |
300 | endif |
301 | ||
ad206afc MB |
302 | if TARGET_DEBIAN |
303 | dist_systemunit_DATA += \ | |
a5dc0a45 MB |
304 | units/debian/fsck.target \ |
305 | units/debian/umountfs.service \ | |
306 | units/debian/umountnfs.service \ | |
307 | units/debian/umountroot.service | |
ad206afc MB |
308 | endif |
309 | ||
65b0095b KS |
310 | if TARGET_SUSE |
311 | dist_systemunit_DATA += \ | |
922cc001 | 312 | units/suse/fsck.target |
65b0095b KS |
313 | endif |
314 | ||
ea2d9ed4 MAP |
315 | if TARGET_GENTOO |
316 | dist_systemunit_DATA += \ | |
ea2d9ed4 MAP |
317 | units/gentoo/xdm.service |
318 | endif | |
319 | ||
1ebdf2d8 TG |
320 | if TARGET_ARCH |
321 | dist_systemunit_DATA += \ | |
322 | units/arch/sysinit.service \ | |
46574a5b | 323 | units/arch/rc-local.service |
1ebdf2d8 TG |
324 | endif |
325 | ||
240a3a85 LP |
326 | dist_doc_DATA = \ |
327 | README \ | |
795750ca LP |
328 | LICENSE \ |
329 | DISTRO_PORTING \ | |
240a3a85 | 330 | src/sd-daemon.h \ |
d0b48809 LP |
331 | src/sd-daemon.c \ |
332 | src/sd-readahead.h \ | |
333 | src/sd-readahead.c | |
240a3a85 | 334 | |
8c6db833 LP |
335 | pkgconfigdata_DATA = \ |
336 | systemd.pc | |
337 | ||
490aed58 LP |
338 | dist_polkitpolicy_DATA = \ |
339 | src/org.freedesktop.systemd1.policy | |
340 | ||
139be57d LP |
341 | noinst_LTLIBRARIES = \ |
342 | libsystemd-basic.la \ | |
343 | libsystemd-core.la | |
344 | ||
139be57d | 345 | libsystemd_basic_la_SOURCES = \ |
d3f09cf3 | 346 | src/util.c \ |
e51bc1a2 | 347 | src/label.c \ |
d3f09cf3 KS |
348 | src/hashmap.c \ |
349 | src/set.c \ | |
350 | src/strv.c \ | |
351 | src/conf-parser.c \ | |
352 | src/socket-util.c \ | |
353 | src/log.c \ | |
354 | src/ratelimit.c | |
47be870b | 355 | |
4927fcae LP |
356 | libsystemd_basic_la_CFLAGS = \ |
357 | $(AM_CFLAGS) \ | |
358 | $(SELINUX_CFLAGS) | |
359 | ||
360 | libsystemd_basic_la_LIBADD = \ | |
361 | $(SELINUX_LIBS) | |
362 | ||
139be57d | 363 | libsystemd_core_la_SOURCES = \ |
e99e38bb | 364 | src/unit.c \ |
d3f09cf3 KS |
365 | src/job.c \ |
366 | src/manager.c \ | |
84e3543e | 367 | src/path-lookup.c \ |
d3f09cf3 KS |
368 | src/load-fragment.c \ |
369 | src/service.c \ | |
370 | src/automount.c \ | |
371 | src/mount.c \ | |
372 | src/swap.c \ | |
373 | src/device.c \ | |
374 | src/target.c \ | |
375 | src/snapshot.c \ | |
376 | src/socket.c \ | |
377 | src/timer.c \ | |
01f78473 | 378 | src/path.c \ |
d3f09cf3 KS |
379 | src/load-dropin.c \ |
380 | src/execute.c \ | |
169c1bda | 381 | src/utmp-wtmp.c \ |
d06dacd0 | 382 | src/exit-status.c \ |
d3f09cf3 KS |
383 | src/dbus.c \ |
384 | src/dbus-manager.c \ | |
385 | src/dbus-unit.c \ | |
386 | src/dbus-job.c \ | |
e99e38bb LP |
387 | src/dbus-service.c \ |
388 | src/dbus-socket.c \ | |
871d7de4 | 389 | src/dbus-timer.c \ |
e99e38bb LP |
390 | src/dbus-target.c \ |
391 | src/dbus-mount.c \ | |
392 | src/dbus-automount.c \ | |
393 | src/dbus-swap.c \ | |
394 | src/dbus-snapshot.c \ | |
395 | src/dbus-device.c \ | |
396 | src/dbus-execute.c \ | |
01f78473 | 397 | src/dbus-path.c \ |
e99e38bb LP |
398 | src/cgroup.c \ |
399 | src/mount-setup.c \ | |
400 | src/hostname-setup.c \ | |
401 | src/loopback-setup.c \ | |
11c3a4ee | 402 | src/kmod-setup.c \ |
72bca11b | 403 | src/locale-setup.c \ |
e99e38bb LP |
404 | src/specifier.c \ |
405 | src/unit-name.c \ | |
406 | src/fdset.c \ | |
0213c3f8 | 407 | src/namespace.c \ |
8c6db833 | 408 | src/tcpwrap.c \ |
52661efd LP |
409 | src/cgroup-util.c \ |
410 | src/condition.c | |
47be870b | 411 | |
139be57d LP |
412 | libsystemd_core_la_CFLAGS = \ |
413 | $(AM_CFLAGS) \ | |
414 | $(DBUS_CFLAGS) \ | |
4927fcae LP |
415 | $(UDEV_CFLAGS) \ |
416 | $(LIBWRAP_CFLAGS) \ | |
417 | $(PAM_CFLAGS) \ | |
418 | $(AUDIT_CFLAGS) | |
139be57d LP |
419 | |
420 | libsystemd_core_la_LIBADD = \ | |
421 | libsystemd-basic.la \ | |
422 | $(DBUS_LIBS) \ | |
423 | $(UDEV_LIBS) \ | |
139be57d | 424 | $(LIBWRAP_LIBS) \ |
7a58bfa4 | 425 | $(PAM_LIBS) \ |
4927fcae | 426 | $(AUDIT_LIBS) |
139be57d | 427 | |
9a1ac7b9 LP |
428 | # This is needed because automake is buggy in how it generates the |
429 | # rules for C programs, but not Vala programs. We therefore can't | |
430 | # list the .h files as dependencies if we want make dist to work. | |
431 | ||
462b33e9 | 432 | EXTRA_DIST += \ |
139be57d LP |
433 | ${libsystemd_basic_la_SOURCES:.c=.h} \ |
434 | ${libsystemd_core_la_SOURCES:.c=.h} \ | |
e99e38bb LP |
435 | src/macro.h \ |
436 | src/ioprio.h \ | |
437 | src/missing.h \ | |
438 | src/list.h \ | |
439 | src/securebits.h \ | |
440 | src/linux/auto_dev-ioctl.h \ | |
30b89475 | 441 | src/linux/fanotify.h \ |
e99e38bb | 442 | src/initreq.h \ |
514f4ef5 | 443 | src/sd-daemon.h \ |
d0b48809 | 444 | src/sd-readahead.h \ |
9a1ac7b9 | 445 | src/special.h \ |
398ef8ba | 446 | src/dbus-common.h \ |
ab35fb1b | 447 | src/bus-errors.h \ |
cd6d0a45 | 448 | src/cgroup-show.h \ |
f6144808 | 449 | src/build.h \ |
30b89475 | 450 | src/shutdownd.h \ |
26e190cf | 451 | src/umount.h \ |
30b89475 | 452 | src/readahead-common.h |
6f6083dc LP |
453 | |
454 | MANPAGES = \ | |
160cd5c9 | 455 | man/systemd.1 \ |
6f6083dc LP |
456 | man/systemctl.1 \ |
457 | man/systemadm.1 \ | |
fa776d8e | 458 | man/systemd-cgls.1 \ |
c5abba08 | 459 | man/systemd-notify.1 \ |
f9378423 | 460 | man/sd_notify.3 \ |
6624768c | 461 | man/sd_readahead.3 \ |
f9378423 LP |
462 | man/sd_booted.3 \ |
463 | man/sd_listen_fds.3 \ | |
464 | man/sd_is_fifo.3 \ | |
6f6083dc LP |
465 | man/systemd.unit.5 \ |
466 | man/systemd.service.5 \ | |
1f812fea | 467 | man/systemd.socket.5 \ |
cdb788e4 | 468 | man/systemd.mount.5 \ |
65232ea7 | 469 | man/systemd.automount.5 \ |
e0cabd4b | 470 | man/systemd.swap.5 \ |
11fcc3ab | 471 | man/systemd.timer.5 \ |
b36b082c | 472 | man/systemd.path.5 \ |
da49e9ab | 473 | man/systemd.target.5 \ |
eec575d8 | 474 | man/systemd.device.5 \ |
b2c20dd9 | 475 | man/systemd.snapshot.5 \ |
dd1eb43b | 476 | man/systemd.exec.5 \ |
6f6083dc | 477 | man/daemon.7 \ |
359957ee | 478 | man/sd-daemon.7 \ |
e62e6670 | 479 | man/sd-readahead.7 \ |
359957ee | 480 | man/runlevel.8 \ |
160cd5c9 LP |
481 | man/telinit.8 \ |
482 | man/halt.8 \ | |
483 | man/shutdown.8 \ | |
f3e219a2 LP |
484 | man/pam_systemd.8 \ |
485 | man/systemd.conf.5 | |
6f6083dc LP |
486 | |
487 | MANPAGES_ALIAS = \ | |
488 | man/reboot.8 \ | |
489 | man/poweroff.8 \ | |
490 | man/sd_is_socket.3 \ | |
491 | man/sd_is_socket_unix.3 \ | |
492 | man/sd_is_socket_inet.3 \ | |
493 | man/sd_notifyf.3 \ | |
494 | man/init.1 | |
495 | ||
496 | man/reboot.8: man/halt.8 | |
497 | man/poweroff.8: man/halt.8 | |
498 | man/sd_is_socket.3: man/sd_is_fifo.3 | |
499 | man/sd_is_socket_unix.3: man/sd_is_fifo.3 | |
500 | man/sd_is_socket_inet.3: man/sd_is_fifo.3 | |
501 | man/sd_notifyf.3: man/sd_notify.3 | |
502 | man/init.1: man/systemd.1 | |
503 | ||
504 | dist_man_MANS = \ | |
505 | $(MANPAGES) \ | |
506 | $(MANPAGES_ALIAS) | |
9f2c5942 LP |
507 | |
508 | nodist_man_MANS = \ | |
9f235308 | 509 | man/systemd.special.7 |
d1ab0ca0 | 510 | |
6f6083dc LP |
511 | XML_FILES = \ |
512 | ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}} | |
513 | ||
514 | XML_IN_FILES = \ | |
515 | ${patsubst %.1,%.xml.in,${patsubst %.3,%.xml.in,${patsubst %.5,%.xml.in,${patsubst %.7,%.xml.in,${patsubst %.8,%.xml.in,$(nodist_man_MANS)}}}}} | |
516 | ||
9f2c5942 | 517 | dist_noinst_DATA = \ |
6f6083dc | 518 | ${XML_FILES:.xml=.html} |
d1ab0ca0 | 519 | |
9f2c5942 | 520 | nodist_noinst_DATA = \ |
6f6083dc | 521 | ${XML_IN_FILES:.xml.in=.html} |
d1ab0ca0 LP |
522 | |
523 | EXTRA_DIST += \ | |
6f6083dc LP |
524 | $(XML_FILES) \ |
525 | $(XML_IN_FILES) \ | |
526 | ${nodist_man_MANS:=.in} \ | |
527 | ${XML_IN_FILES:.xml.in=.html.in} | |
d1ab0ca0 | 528 | |
47be870b | 529 | systemd_SOURCES = \ |
e99e38bb | 530 | src/main.c |
47be870b | 531 | |
10e87ee7 LP |
532 | systemd_CFLAGS = \ |
533 | $(AM_CFLAGS) \ | |
47be870b | 534 | $(DBUS_CFLAGS) \ |
35d2e7ec | 535 | $(UDEV_CFLAGS) |
47be870b LP |
536 | |
537 | systemd_LDADD = \ | |
139be57d | 538 | libsystemd-core.la |
47be870b LP |
539 | |
540 | test_engine_SOURCES = \ | |
e99e38bb | 541 | src/test-engine.c |
47be870b | 542 | |
10e87ee7 | 543 | test_engine_CFLAGS = $(systemd_CFLAGS) |
47be870b LP |
544 | test_engine_LDADD = $(systemd_LDADD) |
545 | ||
546 | test_job_type_SOURCES = \ | |
e1d680ad | 547 | src/test-job-type.c |
47be870b | 548 | |
10e87ee7 | 549 | test_job_type_CFLAGS = $(systemd_CFLAGS) |
47be870b LP |
550 | test_job_type_LDADD = $(systemd_LDADD) |
551 | ||
15ae422b | 552 | test_ns_SOURCES = \ |
139be57d | 553 | src/test-ns.c |
15ae422b | 554 | |
10e87ee7 | 555 | test_ns_CFLAGS = $(systemd_CFLAGS) |
15ae422b LP |
556 | test_ns_LDADD = $(systemd_LDADD) |
557 | ||
af5bc85d | 558 | test_loopback_SOURCES = \ |
e99e38bb LP |
559 | src/test-loopback.c \ |
560 | src/loopback-setup.c | |
af5bc85d | 561 | |
139be57d LP |
562 | test_loopback_LDADD = \ |
563 | libsystemd-basic.la | |
564 | ||
e5907703 LP |
565 | test_hostname_SOURCES = \ |
566 | src/test-hostname.c \ | |
567 | src/hostname-setup.c | |
568 | ||
569 | test_hostname_LDADD = \ | |
570 | libsystemd-basic.la | |
571 | ||
8c47c732 | 572 | test_daemon_SOURCES = \ |
8c47c732 LP |
573 | src/test-daemon.c \ |
574 | src/sd-daemon.c | |
af5bc85d | 575 | |
139be57d LP |
576 | test_daemon_LDADD = \ |
577 | libsystemd-basic.la | |
578 | ||
8c6db833 LP |
579 | test_cgroup_SOURCES = \ |
580 | src/test-cgroup.c \ | |
581 | src/cgroup-util.c | |
582 | ||
583 | test_cgroup_CFLAGS = \ | |
35d2e7ec | 584 | $(AM_CFLAGS) |
8c6db833 LP |
585 | |
586 | test_cgroup_LDADD = \ | |
35d2e7ec | 587 | libsystemd-basic.la |
8c6db833 | 588 | |
c24eb49e LP |
589 | test_env_replace_SOURCES = \ |
590 | src/test-env-replace.c | |
591 | ||
592 | test_env_replace_CFLAGS = \ | |
593 | $(AM_CFLAGS) | |
594 | ||
595 | test_env_replace_LDADD = \ | |
596 | libsystemd-basic.la | |
597 | ||
47be870b | 598 | systemd_logger_SOURCES = \ |
e99e38bb | 599 | src/logger.c \ |
0213c3f8 LP |
600 | src/sd-daemon.c \ |
601 | src/tcpwrap.c | |
602 | ||
603 | systemd_logger_LDADD = \ | |
139be57d | 604 | libsystemd-basic.la \ |
0213c3f8 | 605 | $(LIBWRAP_LIBS) |
47be870b | 606 | |
0b7964b8 | 607 | systemd_initctl_SOURCES = \ |
e99e38bb | 608 | src/initctl.c \ |
a822056b LP |
609 | src/sd-daemon.c \ |
610 | src/dbus-common.c | |
0b7964b8 | 611 | |
10e87ee7 LP |
612 | systemd_initctl_CFLAGS = \ |
613 | $(AM_CFLAGS) \ | |
0b7964b8 LP |
614 | $(DBUS_CFLAGS) |
615 | ||
616 | systemd_initctl_LDADD = \ | |
139be57d | 617 | libsystemd-basic.la \ |
0b7964b8 LP |
618 | $(DBUS_LIBS) |
619 | ||
4927fcae LP |
620 | systemd_update_utmp_SOURCES = \ |
621 | src/update-utmp.c \ | |
622 | src/dbus-common.c \ | |
623 | src/utmp-wtmp.c | |
624 | ||
625 | systemd_update_utmp_CFLAGS = \ | |
626 | $(AM_CFLAGS) \ | |
627 | $(DBUS_CFLAGS) \ | |
628 | $(AUDIT_CFLAGS) | |
629 | ||
630 | systemd_update_utmp_LDADD = \ | |
631 | libsystemd-basic.la \ | |
632 | $(DBUS_LIBS) \ | |
633 | $(AUDIT_LIBS) | |
634 | ||
ca2cab5d LP |
635 | systemd_random_seed_SOURCES = \ |
636 | src/random-seed.c | |
637 | ||
638 | systemd_random_seed_CFLAGS = \ | |
639 | $(AM_CFLAGS) | |
640 | ||
641 | systemd_random_seed_LDADD = \ | |
642 | libsystemd-basic.la | |
643 | ||
f6144808 | 644 | systemd_shutdownd_SOURCES = \ |
9be9828c | 645 | src/utmp-wtmp.c \ |
f6144808 LP |
646 | src/sd-daemon.c \ |
647 | src/shutdownd.c | |
648 | ||
649 | systemd_shutdownd_CFLAGS = \ | |
650 | $(AM_CFLAGS) | |
651 | ||
652 | systemd_shutdownd_LDADD = \ | |
653 | libsystemd-basic.la | |
654 | ||
b1b2a107 FF |
655 | systemd_shutdown_SOURCES = \ |
656 | src/mount-setup.c \ | |
657 | src/umount.c \ | |
658 | src/shutdown.c | |
659 | ||
660 | systemd_shutdown_CFLAGS = \ | |
661 | $(AM_CFLAGS) \ | |
662 | $(UDEV_CFLAGS) | |
663 | ||
664 | systemd_shutdown_LDADD = \ | |
665 | libsystemd-basic.la \ | |
666 | $(UDEV_LIBS) | |
667 | ||
b2423f1f LP |
668 | systemd_modules_load_SOURCES = \ |
669 | src/modules-load.c | |
670 | ||
671 | systemd_modules_load_CFLAGS = \ | |
672 | $(AM_CFLAGS) | |
673 | ||
3d20ed6d | 674 | systemd_modules_load_LDADD = \ |
5008d581 LP |
675 | libsystemd-basic.la |
676 | ||
bfaf42d2 LP |
677 | systemd_tmpfiles_SOURCES = \ |
678 | src/tmpfiles.c | |
5008d581 | 679 | |
bfaf42d2 | 680 | systemd_tmpfiles_CFLAGS = \ |
5008d581 LP |
681 | $(AM_CFLAGS) |
682 | ||
3d20ed6d LP |
683 | systemd_tmpfiles_LDADD = \ |
684 | libsystemd-basic.la | |
685 | ||
686 | systemd_fsck_SOURCES = \ | |
687 | src/fsck.c \ | |
3d20ed6d LP |
688 | src/dbus-common.c |
689 | ||
690 | systemd_fsck_CFLAGS = \ | |
691 | $(AM_CFLAGS) \ | |
692 | $(UDEV_CFLAGS) \ | |
693 | $(DBUS_CFLAGS) | |
694 | ||
695 | systemd_fsck_LDADD = \ | |
696 | libsystemd-basic.la \ | |
697 | $(UDEV_LIBS) \ | |
698 | $(DBUS_LIBS) | |
699 | ||
700 | systemd_quotacheck_SOURCES = \ | |
701 | src/quotacheck.c | |
702 | ||
703 | systemd_quotacheck_CFLAGS = \ | |
704 | $(AM_CFLAGS) | |
705 | ||
706 | systemd_quotacheck_LDADD = \ | |
e9278741 LP |
707 | libsystemd-basic.la |
708 | ||
709 | systemd_user_sessions_SOURCES = \ | |
710 | src/user-sessions.c \ | |
711 | src/cgroup-util.c | |
712 | ||
713 | systemd_user_sessions_CFLAGS = \ | |
714 | $(AM_CFLAGS) | |
715 | ||
3d20ed6d | 716 | systemd_user_sessions_LDADD = \ |
b2423f1f LP |
717 | libsystemd-basic.la |
718 | ||
97c4a07d LP |
719 | systemd_vconsole_setup_SOURCES = \ |
720 | src/vconsole-setup.c | |
721 | ||
722 | systemd_vconsole_setup_CFLAGS = \ | |
723 | $(AM_CFLAGS) | |
724 | ||
725 | systemd_vconsole_setup_LDADD = \ | |
726 | libsystemd-basic.la | |
727 | ||
449ddb2d LP |
728 | systemd_remount_api_vfs_SOURCES = \ |
729 | src/remount-api-vfs.c \ | |
730 | src/mount-setup.c | |
731 | ||
732 | systemd_remount_api_vfs_CFLAGS = \ | |
733 | $(AM_CFLAGS) | |
734 | ||
735 | systemd_remount_api_vfs_LDADD = \ | |
736 | libsystemd-basic.la | |
737 | ||
8e274523 | 738 | systemd_cgroups_agent_SOURCES = \ |
3c661fad LP |
739 | src/cgroups-agent.c \ |
740 | src/dbus-common.c | |
8e274523 | 741 | |
10e87ee7 LP |
742 | systemd_cgroups_agent_CFLAGS = \ |
743 | $(AM_CFLAGS) \ | |
8e274523 LP |
744 | $(DBUS_CFLAGS) |
745 | ||
746 | systemd_cgroups_agent_LDADD = \ | |
139be57d | 747 | libsystemd-basic.la \ |
8e274523 LP |
748 | $(DBUS_LIBS) |
749 | ||
addab137 LP |
750 | systemd_kmsg_syslogd_SOURCES = \ |
751 | src/kmsg-syslogd.c \ | |
752 | src/sd-daemon.c \ | |
753 | src/fdset.c | |
754 | ||
755 | systemd_kmsg_syslogd_CFLAGS = \ | |
756 | $(AM_CFLAGS) | |
757 | ||
758 | systemd_kmsg_syslogd_LDADD = \ | |
759 | libsystemd-basic.la | |
760 | ||
7e4249b9 LP |
761 | systemctl_SOURCES = \ |
762 | src/systemctl.c \ | |
9a1ac7b9 | 763 | src/utmp-wtmp.c \ |
ab35fb1b | 764 | src/dbus-common.c \ |
ee5762e3 LP |
765 | src/path-lookup.c \ |
766 | src/sd-daemon.c \ | |
c6c18be3 | 767 | src/cgroup-show.c \ |
d06dacd0 | 768 | src/cgroup-util.c \ |
71fad675 LP |
769 | src/exit-status.c \ |
770 | src/unit-name.c | |
139be57d LP |
771 | |
772 | systemctl_CFLAGS = \ | |
773 | $(AM_CFLAGS) \ | |
35d2e7ec | 774 | $(DBUS_CFLAGS) |
7e4249b9 | 775 | |
139be57d LP |
776 | systemctl_LDADD = \ |
777 | libsystemd-basic.la \ | |
35d2e7ec | 778 | $(DBUS_LIBS) |
7e4249b9 | 779 | |
4a2a8b5a LP |
780 | systemd_notify_SOURCES = \ |
781 | src/notify.c \ | |
d0b48809 LP |
782 | src/sd-daemon.c \ |
783 | src/sd-readahead.c | |
139be57d LP |
784 | |
785 | systemd_notify_LDADD = \ | |
786 | libsystemd-basic.la | |
4a2a8b5a | 787 | |
490aed58 LP |
788 | systemd_ask_password_SOURCES = \ |
789 | src/ask-password.c | |
790 | ||
791 | systemd_ask_password_LDADD = \ | |
792 | libsystemd-basic.la | |
793 | ||
794 | systemd_reply_password_SOURCES = \ | |
795 | src/reply-password.c | |
796 | ||
797 | systemd_reply_password_LDADD = \ | |
798 | libsystemd-basic.la | |
799 | ||
22be093f LP |
800 | systemd_readahead_collect_SOURCES = \ |
801 | src/readahead-collect.c \ | |
802 | src/sd-daemon.c \ | |
803 | src/readahead-common.c | |
804 | ||
805 | systemd_readahead_collect_CFLAGS = \ | |
806 | $(UDEV_CFLAGS) | |
807 | ||
808 | systemd_readahead_collect_LDADD = \ | |
809 | libsystemd-basic.la \ | |
810 | $(UDEV_LIBS) | |
811 | ||
812 | systemd_readahead_replay_SOURCES = \ | |
813 | src/readahead-replay.c \ | |
814 | src/sd-daemon.c \ | |
815 | src/readahead-common.c | |
816 | ||
817 | systemd_readahead_replay_CFLAGS = \ | |
818 | $(UDEV_CFLAGS) | |
819 | ||
820 | systemd_readahead_replay_LDADD = \ | |
821 | libsystemd-basic.la \ | |
822 | $(UDEV_LIBS) | |
823 | ||
fa776d8e | 824 | systemd_cgls_SOURCES = \ |
d04247cf | 825 | src/cgls.c \ |
c6c18be3 LP |
826 | src/cgroup-show.c \ |
827 | src/cgroup-util.c | |
fa776d8e LP |
828 | |
829 | systemd_cgls_CFLAGS = \ | |
35d2e7ec | 830 | $(AM_CFLAGS) |
c6c18be3 LP |
831 | |
832 | systemd_cgls_LDADD = \ | |
35d2e7ec | 833 | libsystemd-basic.la |
fa776d8e | 834 | |
47be870b | 835 | systemadm_SOURCES = \ |
e99e38bb LP |
836 | src/systemadm.vala \ |
837 | src/systemd-interfaces.vala | |
47be870b | 838 | |
10e87ee7 LP |
839 | systemadm_CFLAGS = \ |
840 | $(AM_CFLAGS) \ | |
841 | $(DBUSGLIB_CFLAGS) \ | |
842 | $(GTK_CFLAGS) \ | |
843 | -Wno-unused-variable \ | |
844 | -Wno-unused-function \ | |
845 | -Wno-shadow \ | |
846 | -Wno-format-nonliteral | |
847 | ||
848 | systemadm_VALAFLAGS = \ | |
849 | --pkg=dbus-glib-1 \ | |
850 | --pkg=posix \ | |
851 | --pkg=gtk+-2.0 \ | |
852 | -g | |
853 | ||
139be57d LP |
854 | systemadm_LDADD = \ |
855 | $(DBUSGLIB_LIBS) \ | |
856 | $(GTK_LIBS) | |
c1e1601e | 857 | |
490aed58 LP |
858 | systemd_ask_password_agent_SOURCES = \ |
859 | src/ask-password-agent.vala | |
860 | ||
861 | systemd_ask_password_agent_CFLAGS = \ | |
862 | $(AM_CFLAGS) \ | |
863 | $(DBUSGLIB_CFLAGS) \ | |
864 | $(GTK_CFLAGS) \ | |
865 | -Wno-unused-variable \ | |
866 | -Wno-unused-function \ | |
867 | -Wno-shadow \ | |
868 | -Wno-format-nonliteral | |
869 | ||
870 | systemd_ask_password_agent_VALAFLAGS = \ | |
871 | --pkg=dbus-glib-1 \ | |
872 | --pkg=posix \ | |
873 | --pkg=gtk+-2.0 \ | |
874 | --pkg=linux \ | |
875 | --pkg=gio-unix-2.0 \ | |
efb3237e | 876 | --pkg=libnotify \ |
490aed58 LP |
877 | -g |
878 | ||
879 | systemd_ask_password_agent_LDADD = \ | |
880 | $(DBUSGLIB_LIBS) \ | |
881 | $(GTK_LIBS) | |
882 | ||
8c6db833 LP |
883 | pam_systemd_la_SOURCES = \ |
884 | src/pam-module.c \ | |
885 | src/cgroup-util.c \ | |
886 | src/sd-daemon.c | |
887 | ||
888 | pam_systemd_la_CFLAGS = \ | |
35d2e7ec | 889 | $(AM_CFLAGS) |
8c6db833 LP |
890 | -fvisibility=hidden |
891 | ||
892 | pam_systemd_la_LDFLAGS = \ | |
893 | -module \ | |
894 | -export-dynamic \ | |
895 | -avoid-version \ | |
896 | -shared \ | |
897 | -export-symbols-regex '^pam_sm_.*' | |
898 | ||
899 | pam_systemd_la_LIBADD = \ | |
900 | libsystemd-basic.la \ | |
35d2e7ec | 901 | $(PAM_LIBS) |
8c6db833 | 902 | |
5e6afdd3 | 903 | SED_PROCESS = \ |
a00e4879 | 904 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ |
1136a371 | 905 | $(SED) -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \ |
5e6afdd3 | 906 | -e 's,@SPECIAL_SYSLOG_SERVICE\@,$(SPECIAL_SYSLOG_SERVICE),g' \ |
1136a371 | 907 | -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \ |
c7b50859 | 908 | -e 's,@SYSTEMD_NOTIFY\@,$(rootbindir)/systemd-notify,g' \ |
8c6db833 LP |
909 | -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \ |
910 | -e 's,@pkgdatadir\@,$(pkgdatadir),g' \ | |
911 | -e 's,@systemunitdir\@,$(systemunitdir),g' \ | |
912 | -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \ | |
913 | -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \ | |
914 | -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \ | |
915 | -e 's,@prefix\@,$(prefix),g' \ | |
2d02719c | 916 | < $< > $@ |
70fcff31 | 917 | |
9f2c5942 | 918 | units/%: units/%.in Makefile |
5e6afdd3 LP |
919 | $(SED_PROCESS) |
920 | ||
2a3d6294 | 921 | man/%: man/%.in Makefile |
5e6afdd3 LP |
922 | $(SED_PROCESS) |
923 | ||
8c6db833 LP |
924 | %.pc: %.pc.in Makefile |
925 | $(SED_PROCESS) | |
926 | ||
fb1bd35a | 927 | M4_PROCESS_SYSTEM = \ |
a00e4879 | 928 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ |
9f2c5942 | 929 | $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SYSTEM=1 < $< > $@ |
fb1bd35a LP |
930 | |
931 | M4_PROCESS_SESSION = \ | |
a00e4879 | 932 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ |
9f2c5942 | 933 | $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SESSION=1 < $< > $@ |
5e6afdd3 | 934 | |
9f2c5942 | 935 | units/%: units/%.m4 Makefile |
fb1bd35a | 936 | $(M4_PROCESS_SYSTEM) |
5e6afdd3 | 937 | |
9f2c5942 | 938 | units/session/%: units/%.m4 Makefile |
fb1bd35a | 939 | $(M4_PROCESS_SESSION) |
a7b6f8e5 | 940 | |
c1e1601e | 941 | CLEANFILES = \ |
6f6083dc LP |
942 | $(nodist_systemunit_DATA) \ |
943 | $(nodist_sessionunit_DATA) \ | |
944 | $(nodist_man_MANS) \ | |
945 | ${XML_IN_FILES:.xml.in=.html} \ | |
946 | $(pkgconfigdata_DATA) | |
4697132b | 947 | |
42e39f0b LP |
948 | if HAVE_VALAC |
949 | CLEANFILES += \ | |
6f6083dc | 950 | ${systemadm_SOURCES:.vala=.c} |
42e39f0b LP |
951 | endif |
952 | ||
c3bd7322 | 953 | if HAVE_XSLTPROC |
c6365917 LP |
954 | XSLTPROC_FLAGS = \ |
955 | --nonet \ | |
956 | --param funcsynopsis.style "'ansi'" | |
957 | ||
9f2c5942 | 958 | XSLTPROC_PROCESS_MAN = \ |
a00e4879 | 959 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ |
c6365917 | 960 | $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< |
d1ab0ca0 | 961 | |
9f2c5942 | 962 | XSLTPROC_PROCESS_MAN_IN = \ |
a00e4879 | 963 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ |
c6365917 | 964 | $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< && \ |
9f2c5942 LP |
965 | mv ${@:.in=} $@ |
966 | ||
967 | XSLTPROC_PROCESS_HTML = \ | |
a00e4879 | 968 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ |
c6365917 | 969 | $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $< |
d1ab0ca0 | 970 | |
9f2c5942 | 971 | XSLTPROC_PROCESS_HTML_IN = \ |
a00e4879 | 972 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ |
c6365917 | 973 | $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $< && \ |
9f2c5942 LP |
974 | mv ${@:.in=} $@ |
975 | ||
6f6083dc | 976 | man/%.1: man/%.xml |
f9378423 LP |
977 | $(XSLTPROC_PROCESS_MAN) |
978 | ||
6f6083dc | 979 | man/%.1.in: man/%.xml.in |
f9378423 LP |
980 | $(XSLTPROC_PROCESS_MAN) |
981 | ||
6f6083dc | 982 | man/%.3: man/%.xml |
359957ee LP |
983 | $(XSLTPROC_PROCESS_MAN) |
984 | ||
6f6083dc | 985 | man/%.3.in: man/%.xml.in |
359957ee LP |
986 | $(XSLTPROC_PROCESS_MAN) |
987 | ||
9f2c5942 LP |
988 | man/%.5: man/%.xml |
989 | $(XSLTPROC_PROCESS_MAN) | |
990 | ||
991 | man/%.5.in: man/%.xml.in | |
992 | $(XSLTPROC_PROCESS_MAN) | |
993 | ||
994 | man/%.7: man/%.xml | |
995 | $(XSLTPROC_PROCESS_MAN) | |
996 | ||
997 | man/%.7.in: man/%.xml.in | |
998 | $(XSLTPROC_PROCESS_MAN_IN) | |
999 | ||
f9378423 LP |
1000 | man/%.8: man/%.xml |
1001 | $(XSLTPROC_PROCESS_MAN) | |
1002 | ||
1003 | man/%.8.in: man/%.xml.in | |
1004 | $(XSLTPROC_PROCESS_MAN_IN) | |
1005 | ||
9f2c5942 LP |
1006 | man/%.html: man/%.xml |
1007 | $(XSLTPROC_PROCESS_HTML) | |
1008 | ||
1009 | man/%.html.in: man/%.xml.in | |
1010 | $(XSLTPROC_PROCESS_HTML_IN) | |
1011 | ||
d1ab0ca0 LP |
1012 | CLEANFILES += \ |
1013 | $(dist_man_MANS) \ | |
6f6083dc LP |
1014 | ${nodist_man_MANS:=.in} \ |
1015 | ${XML_FILES:.xml=.html} \ | |
1016 | ${XML_IN_FILES:.xml.in=.html.in} | |
c3bd7322 | 1017 | endif |
d1ab0ca0 | 1018 | |
4288f619 | 1019 | org.freedesktop.systemd1.%.xml: systemd |
4627d396 | 1020 | $(AM_V_GEN)SYSTEMD_SKIP_API_MOUNTS=1 ./systemd --introspect=${@:.xml=} > $@ |
4288f619 | 1021 | |
6f6083dc LP |
1022 | CLEANFILES += \ |
1023 | $(dbusinterface_DATA) | |
4288f619 | 1024 | |
4697132b | 1025 | install-data-hook: |
64c1b5bf | 1026 | $(MKDIR_P) -m 0755 \ |
43aa226d LP |
1027 | $(DESTDIR)$(systemunitdir) \ |
1028 | $(DESTDIR)$(sessionunitdir) \ | |
5e6afdd3 | 1029 | $(DESTDIR)$(systemunitdir)/sockets.target.wants \ |
c0a1b6e9 | 1030 | $(DESTDIR)$(systemunitdir)/basic.target.wants \ |
cd6d0a45 | 1031 | $(DESTDIR)$(systemunitdir)/shutdown.target.wants \ |
65ae3821 | 1032 | $(DESTDIR)$(systemunitdir)/local-fs.target.wants \ |
cd6d0a45 LP |
1033 | $(DESTDIR)$(systemunitdir)/runlevel1.target.wants \ |
1034 | $(DESTDIR)$(systemunitdir)/runlevel2.target.wants \ | |
1035 | $(DESTDIR)$(systemunitdir)/runlevel3.target.wants \ | |
1036 | $(DESTDIR)$(systemunitdir)/runlevel4.target.wants \ | |
1037 | $(DESTDIR)$(systemunitdir)/runlevel5.target.wants \ | |
45cf9716 | 1038 | $(DESTDIR)$(systemunitdir)/multi-user.target.wants \ |
64c1b5bf | 1039 | $(DESTDIR)$(pkgsysconfdir)/system \ |
5e6afdd3 LP |
1040 | $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \ |
1041 | $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \ | |
1042 | $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants \ | |
64c1b5bf | 1043 | $(DESTDIR)$(pkgsysconfdir)/session \ |
e82e442b | 1044 | $(DESTDIR)$(sysconfdir)/xdg/systemd |
e9da3678 LP |
1045 | ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \ |
1046 | rm -f session && \ | |
5e6afdd3 LP |
1047 | $(LN_S) $(pkgsysconfdir)/session session ) |
1048 | ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \ | |
a145090c | 1049 | rm -f systemd-initctl.socket systemd-logger.socket systemd-shutdownd.socket && \ |
5e6afdd3 | 1050 | $(LN_S) ../systemd-logger.socket systemd-logger.socket && \ |
a145090c LP |
1051 | $(LN_S) ../systemd-initctl.socket systemd-initctl.socket && \ |
1052 | $(LN_S) ../systemd-shutdownd.socket systemd-shutdownd.socket ) | |
cd6d0a45 LP |
1053 | ( cd $(DESTDIR)$(systemunitdir)/runlevel1.target.wants && \ |
1054 | rm -f systemd-update-utmp-runlevel.service && \ | |
45cf9716 | 1055 | $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service ) |
cd6d0a45 LP |
1056 | ( cd $(DESTDIR)$(systemunitdir)/runlevel2.target.wants && \ |
1057 | rm -f systemd-update-utmp-runlevel.service && \ | |
45cf9716 | 1058 | $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service ) |
cd6d0a45 LP |
1059 | ( cd $(DESTDIR)$(systemunitdir)/runlevel3.target.wants && \ |
1060 | rm -f systemd-update-utmp-runlevel.service && \ | |
45cf9716 | 1061 | $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service ) |
cd6d0a45 LP |
1062 | ( cd $(DESTDIR)$(systemunitdir)/runlevel4.target.wants && \ |
1063 | rm -f systemd-update-utmp-runlevel.service && \ | |
45cf9716 | 1064 | $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service ) |
cd6d0a45 LP |
1065 | ( cd $(DESTDIR)$(systemunitdir)/runlevel5.target.wants && \ |
1066 | rm -f systemd-update-utmp-runlevel.service && \ | |
45cf9716 | 1067 | $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service ) |
cd6d0a45 | 1068 | ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \ |
d3f09cf3 | 1069 | rm -f systemd-update-utmp-shutdown.service \ |
7376cffd | 1070 | hwclock-save.service \ |
d3f09cf3 | 1071 | systemd-random-seed-save.service && \ |
45cf9716 KS |
1072 | $(LN_S) ../systemd-update-utmp-shutdown.service systemd-update-utmp-shutdown.service && \ |
1073 | $(LN_S) ../hwclock-save.service hwclock-save.service && \ | |
1074 | $(LN_S) ../systemd-random-seed-save.service systemd-random-seed-save.service ) | |
65ae3821 | 1075 | ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \ |
c0a1b6e9 LP |
1076 | rm -f systemd-remount-api-vfs.service \ |
1077 | remount-rootfs.service \ | |
1078 | var-run.mount \ | |
93ca9714 | 1079 | var-lock.mount && \ |
c0a1b6e9 LP |
1080 | $(LN_S) ../systemd-remount-api-vfs.service systemd-remount-api-vfs.service && \ |
1081 | $(LN_S) ../remount-rootfs.service remount-rootfs.service && \ | |
1082 | $(LN_S) ../var-run.mount var-run.mount && \ | |
93ca9714 | 1083 | $(LN_S) ../var-lock.mount var-lock.mount ) |
70449379 | 1084 | ( cd $(DESTDIR)$(sessionunitdir) && \ |
da78e1b4 | 1085 | rm -f shutdown.target sockets.target local-fs.target swap.target bluetooth.target printer.target && \ |
8c4a3079 LP |
1086 | $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \ |
1087 | $(LN_S) $(systemunitdir)/sockets.target sockets.target && \ | |
1088 | $(LN_S) $(systemunitdir)/local-fs.target local-fs.target && \ | |
da78e1b4 LP |
1089 | $(LN_S) $(systemunitdir)/swap.target swap.target && \ |
1090 | $(LN_S) $(systemunitdir)/bluetooth.target bluetooth.target && \ | |
1091 | $(LN_S) $(systemunitdir)/printer.target printer.target) | |
5e6afdd3 | 1092 | ( cd $(DESTDIR)$(systemunitdir) && \ |
c88f64bd | 1093 | rm -f runlevel0.target runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target runlevel6.target && \ |
5e6afdd3 LP |
1094 | $(LN_S) poweroff.target runlevel0.target && \ |
1095 | $(LN_S) rescue.target runlevel1.target && \ | |
c88f64bd LP |
1096 | $(LN_S) multi-user.target runlevel2.target && \ |
1097 | $(LN_S) multi-user.target runlevel3.target && \ | |
1098 | $(LN_S) multi-user.target runlevel4.target && \ | |
1099 | $(LN_S) graphical.target runlevel5.target && \ | |
5e6afdd3 | 1100 | $(LN_S) reboot.target runlevel6.target ) |
45cf9716 KS |
1101 | ( cd $(DESTDIR)$(systemunitdir) && \ |
1102 | rm -f default.target ctrl-alt-del.target && \ | |
1103 | $(LN_S) graphical.target default.target && \ | |
1104 | $(LN_S) reboot.target ctrl-alt-del.target ) | |
3e24da51 | 1105 | ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \ |
447be155 LP |
1106 | rm -f getty.target systemd-user-sessions.service && \ |
1107 | $(LN_S) ../getty.target getty.target && \ | |
1108 | $(LN_S) ../systemd-user-sessions.service systemd-user-sessions.service ) | |
5e6afdd3 | 1109 | ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \ |
b2bb3dbe | 1110 | rm -f getty@tty1.service getty@tty2.service getty@tty3.service getty@tty4.service getty@tty5.service getty@tty6.service && \ |
5e6afdd3 LP |
1111 | $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service && \ |
1112 | $(LN_S) $(systemunitdir)/getty@.service getty@tty2.service && \ | |
1113 | $(LN_S) $(systemunitdir)/getty@.service getty@tty3.service && \ | |
1114 | $(LN_S) $(systemunitdir)/getty@.service getty@tty4.service && \ | |
1115 | $(LN_S) $(systemunitdir)/getty@.service getty@tty5.service && \ | |
b2bb3dbe | 1116 | $(LN_S) $(systemunitdir)/getty@.service getty@tty6.service ) |
5e6afdd3 | 1117 | ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \ |
3e24da51 | 1118 | rm -f remote-fs.target && \ |
f92a18f5 | 1119 | $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target ) |
c0a1b6e9 | 1120 | ( cd $(DESTDIR)$(systemunitdir)/basic.target.wants && \ |
6d526de2 LP |
1121 | rm -f dev-hugepages.automount \ |
1122 | dev-mqueue.automount \ | |
1123 | proc-sys-fs-binfmt_misc.automount \ | |
1124 | sys-kernel-debug.automount \ | |
f0a73e24 | 1125 | sys-kernel-security.automount \ |
d3f09cf3 KS |
1126 | systemd-vconsole-setup.service \ |
1127 | systemd-modules-load.service \ | |
1128 | systemd-random-seed-load.service \ | |
3b63d2d3 | 1129 | systemd-tmpfiles-setup.service \ |
f9ccc724 | 1130 | sysctl.service \ |
3b63d2d3 | 1131 | systemd-tmpfiles-clean.timer && \ |
670802d4 LP |
1132 | $(LN_S) ../dev-hugepages.automount dev-hugepages.automount && \ |
1133 | $(LN_S) ../dev-mqueue.automount dev-mqueue.automount && \ | |
1134 | $(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount && \ | |
6d526de2 | 1135 | $(LN_S) ../sys-kernel-debug.automount sys-kernel-debug.automount && \ |
f0a73e24 | 1136 | $(LN_S) ../sys-kernel-security.automount sys-kernel-security.automount && \ |
45cf9716 KS |
1137 | $(LN_S) ../systemd-vconsole-setup.service systemd-vconsole-setup.service && \ |
1138 | $(LN_S) ../systemd-modules-load.service systemd-modules-load.service && \ | |
1139 | $(LN_S) ../systemd-random-seed-load.service systemd-random-seed-load.service && \ | |
3b63d2d3 | 1140 | $(LN_S) ../systemd-tmpfiles-setup.service systemd-tmpfiles-setup.service && \ |
45cf9716 | 1141 | $(LN_S) ../sysctl.service sysctl.service && \ |
3b63d2d3 | 1142 | $(LN_S) ../systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.timer ) |
d122948d LP |
1143 | ( cd $(DESTDIR)$(dbussessionservicedir) && \ |
1144 | rm -f org.freedesktop.systemd1.service && \ | |
1145 | $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service ) | |
5e6afdd3 | 1146 | if TARGET_FEDORA |
a3723b97 | 1147 | $(MKDIR_P) -m 0755 \ |
f057408c | 1148 | $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) \ |
3cc144eb LP |
1149 | $(DESTDIR)$(systemunitdir)/reboot.target.wants \ |
1150 | $(DESTDIR)$(systemunitdir)/poweroff.target.wants \ | |
1151 | $(DESTDIR)$(systemunitdir)/halt.target.wants \ | |
1152 | $(DESTDIR)$(systemunitdir)/rescue.target.wants \ | |
ddd941ed LP |
1153 | $(DESTDIR)$(systemunitdir)/multi-user.target.wants \ |
1154 | $(DESTDIR)$(systemunitdir)/final.target.wants | |
1e287fe3 LP |
1155 | ( cd $(DESTDIR)$(pkgsysconfdir)/system && \ |
1156 | rm -f display-manager.service && \ | |
1157 | $(LN_S) $(systemunitdir)/prefdm.service display-manager.service ) | |
5e6afdd3 | 1158 | ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \ |
af65a091 | 1159 | rm -f prefdm.service && \ |
83698d60 | 1160 | $(LN_S) $(systemunitdir)/prefdm.service prefdm.service ) |
5e6afdd3 | 1161 | ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \ |
3cc144eb LP |
1162 | rm -f rc-local.service && \ |
1163 | $(LN_S) $(systemunitdir)/rc-local.service rc-local.service ) | |
ddd941ed LP |
1164 | ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \ |
1165 | rm -f halt-local.service && \ | |
1166 | $(LN_S) $(systemunitdir)/halt-local.service halt-local.service ) | |
f057408c LP |
1167 | ( cd $(DESTDIR)$(systemunitdir)/rescue.target.wants && \ |
1168 | rm -f single.service && \ | |
1169 | $(LN_S) $(systemunitdir)/single.service single.service ) | |
3cc144eb LP |
1170 | ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \ |
1171 | rm -f plymouth-quit.service && \ | |
1172 | $(LN_S) ../plymouth-quit.service plymouth-quit.service ) | |
1173 | ( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \ | |
0278dfeb | 1174 | rm -f plymouth-reboot.service && \ |
3cc144eb LP |
1175 | $(LN_S) ../plymouth-reboot.service plymouth-reboot.service ) |
1176 | ( cd $(DESTDIR)$(systemunitdir)/poweroff.target.wants && \ | |
0278dfeb | 1177 | rm -f plymouth-poweroff.service && \ |
3cc144eb LP |
1178 | $(LN_S) ../plymouth-poweroff.service plymouth-poweroff.service ) |
1179 | ( cd $(DESTDIR)$(systemunitdir)/halt.target.wants && \ | |
0278dfeb | 1180 | rm -f plymouth-halt.service && \ |
3cc144eb | 1181 | $(LN_S) ../plymouth-halt.service plymouth-halt.service ) |
5e6afdd3 LP |
1182 | ( cd $(DESTDIR)$(systemunitdir) && \ |
1183 | rm -f local.service && \ | |
1184 | $(LN_S) rc-local.service local.service ) | |
a3723b97 | 1185 | ( cd $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) && \ |
1afaf573 | 1186 | $(LN_S) halt reboot > /dev/null 2>&1 || true ) |
5e6afdd3 | 1187 | endif |
f306f4c4 MAP |
1188 | if TARGET_GENTOO |
1189 | ( cd $(DESTDIR)$(pkgsysconfdir)/system && \ | |
1190 | rm -f display-manager.service && \ | |
1191 | $(LN_S) $(systemunitdir)/xdm.service display-manager.service ) | |
1192 | ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \ | |
83698d60 LP |
1193 | rm -f xdm.service && \ |
1194 | $(LN_S) $(systemunitdir)/xdm.service xdm.service ) | |
f306f4c4 | 1195 | endif |
a5dc0a45 MB |
1196 | if TARGET_DEBIAN |
1197 | $(MKDIR_P) -m 0755 \ | |
1198 | $(DESTDIR)$(systemunitdir)/umount.target.wants | |
1199 | ( cd $(DESTDIR)$(systemunitdir)/umount.target.wants && \ | |
1200 | rm -f umountfs.service umountnfs.service umountroot.service && \ | |
1201 | $(LN_S) ../umountfs.service umountfs.service && \ | |
1202 | $(LN_S) ../umountnfs.service umountnfs.service && \ | |
1203 | $(LN_S) ../umountroot.service umountroot.service ) | |
e082d6c8 MB |
1204 | ( cd $(DESTDIR)$(systemunitdir) && \ |
1205 | rm -f runlevel5.target && \ | |
1206 | $(LN_S) multi-user.target runlevel5.target ) | |
a5dc0a45 | 1207 | endif |
922cc001 | 1208 | if !TARGET_SUSE |
f10814d9 | 1209 | if !TARGET_DEBIAN |
922cc001 LP |
1210 | ( cd $(DESTDIR)$(systemunitdir) && \ |
1211 | rm -f fsck.target && \ | |
1212 | $(LN_S) sysinit.target fsck.target ) | |
1213 | endif | |
f10814d9 | 1214 | endif |
5e6afdd3 | 1215 | |
d1ab0ca0 | 1216 | DISTCHECK_CONFIGURE_FLAGS = \ |
d2d12cd1 LP |
1217 | --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \ |
1218 | --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \ | |
1219 | --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \ | |
1220 | --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \ | |
8c4a3079 | 1221 | --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \ |
8c6db833 | 1222 | --with-pamlibdir=$$dc_install_base/$(pamlibdir) \ |
8c4a3079 | 1223 | --with-rootdir=$$dc_install_base/$(rootdir) |
a45f61d7 LP |
1224 | |
1225 | upload: all distcheck | |
53eff0c7 | 1226 | cp -v systemd-$(VERSION).tar.bz2 /home/lennart/git.fedora/systemd/ |
a45f61d7 LP |
1227 | scp systemd-$(VERSION).tar.bz2 fdo:/srv/www.freedesktop.org/www/software/systemd/ |
1228 | scp man/*.html tango:public/systemd-man/ | |
1229 | ||
1230 | git-tag: | |
1231 | git tag "v$(VERSION)" -m "systemd $(VERSION)" | |
c0a1b6e9 LP |
1232 | |
1233 | # Opt out from a few services on Fedora for now, as long as rc.sysinit does this job | |
1234 | fedora: install | |
c0a1b6e9 | 1235 | rm /lib/systemd/system/local-fs.target.wants/var-run.mount |
c0a1b6e9 | 1236 | rm /lib/systemd/system/local-fs.target.wants/var-lock.mount |