]>
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 LP |
61 | systemd-install \ |
62 | systemd-cgls | |
10e87ee7 LP |
63 | |
64 | if HAVE_GTK | |
65 | bin_PROGRAMS += \ | |
8e274523 | 66 | systemadm |
a9b5b032 | 67 | endif |
8e274523 | 68 | |
8c4a3079 | 69 | rootlibexec_PROGRAMS = \ |
8e274523 | 70 | systemd-logger \ |
0b7964b8 LP |
71 | systemd-cgroups-agent \ |
72 | systemd-initctl | |
47be870b LP |
73 | |
74 | noinst_PROGRAMS = \ | |
75 | test-engine \ | |
15ae422b | 76 | test-job-type \ |
af5bc85d | 77 | test-ns \ |
8c47c732 | 78 | test-loopback \ |
8c6db833 LP |
79 | test-daemon \ |
80 | test-cgroup | |
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 \ |
f92a18f5 | 116 | units/basic.target \ |
5e6afdd3 LP |
117 | units/getty.target \ |
118 | units/halt.target \ | |
70449379 LP |
119 | units/local-fs.target \ |
120 | units/network.target \ | |
121 | units/nss-lookup.target \ | |
683f468c | 122 | units/mail-transfer-agent.target \ |
5e6afdd3 LP |
123 | units/poweroff.target \ |
124 | units/reboot.target \ | |
5e6afdd3 | 125 | units/rescue.target \ |
f0b02ca2 | 126 | units/rpcbind.target \ |
70449379 LP |
127 | units/rtc-set.target \ |
128 | units/shutdown.target \ | |
129 | units/sigpwr.target \ | |
130 | units/sockets.target \ | |
131 | units/swap.target \ | |
83bda358 | 132 | units/dbus.target \ |
70fcff31 | 133 | units/systemd-initctl.socket \ |
670802d4 LP |
134 | units/systemd-logger.socket \ |
135 | units/dev-hugepages.automount \ | |
136 | units/dev-hugepages.mount \ | |
137 | units/dev-mqueue.automount \ | |
138 | units/dev-mqueue.mount \ | |
139 | units/proc-sys-fs-binfmt_misc.automount \ | |
140 | units/proc-sys-fs-binfmt_misc.mount \ | |
141 | units/sys-kernel-debug.automount \ | |
142 | units/sys-kernel-debug.mount \ | |
6d526de2 LP |
143 | units/sys-kernel-security.automount \ |
144 | units/sys-kernel-security.mount \ | |
145 | units/var-lock.mount \ | |
670802d4 | 146 | units/var-run.mount |
70fcff31 | 147 | |
6f6083dc | 148 | nodist_systemunit_DATA = \ |
f92a18f5 | 149 | units/sysinit.target \ |
5e6afdd3 LP |
150 | units/getty@.service \ |
151 | units/graphical.target \ | |
6f6083dc | 152 | units/remote-fs.target \ |
5e6afdd3 | 153 | units/multi-user.target \ |
dfac97b2 | 154 | units/systemd-initctl.service \ |
a7b6f8e5 | 155 | units/systemd-logger.service \ |
83bda358 | 156 | units/syslog.target |
d1ab0ca0 | 157 | |
0d26c910 LP |
158 | dist_sessionunit_DATA = \ |
159 | units/session/default.target | |
160 | ||
6f6083dc | 161 | nodist_sessionunit_DATA = \ |
a1b256b0 LP |
162 | units/session/remote-fs.target \ |
163 | units/session/exit.service | |
fb1bd35a | 164 | |
e24067c3 | 165 | EXTRA_DIST = \ |
f92a18f5 | 166 | units/sysinit.target.m4 \ |
5e6afdd3 LP |
167 | units/getty@.service.m4 \ |
168 | units/graphical.target.m4 \ | |
169 | units/multi-user.target.m4 \ | |
705dbf3a | 170 | units/remote-fs.target.m4 \ |
70fcff31 | 171 | units/systemd-initctl.service.in \ |
70fcff31 | 172 | units/systemd-logger.service.in \ |
a7b6f8e5 | 173 | units/syslog.target.in \ |
a1b256b0 | 174 | units/session/exit.service.in \ |
64ca679e | 175 | systemd.pc.in |
e24067c3 | 176 | |
5e6afdd3 LP |
177 | if TARGET_FEDORA |
178 | dist_systemunit_DATA += \ | |
179 | units/fedora/halt.service \ | |
180 | units/fedora/killall.service \ | |
181 | units/fedora/poweroff.service \ | |
182 | units/fedora/prefdm.service \ | |
183 | units/fedora/rc-local.service \ | |
184 | units/fedora/reboot.service \ | |
185 | units/fedora/sysinit.service | |
186 | endif | |
187 | ||
65b0095b KS |
188 | if TARGET_SUSE |
189 | dist_systemunit_DATA += \ | |
190 | units/suse/halt.service \ | |
191 | units/suse/poweroff.service \ | |
192 | units/suse/reboot.service | |
193 | endif | |
194 | ||
ea2d9ed4 MAP |
195 | if TARGET_GENTOO |
196 | dist_systemunit_DATA += \ | |
197 | units/gentoo/halt.service \ | |
198 | units/gentoo/killall.service \ | |
199 | units/gentoo/poweroff.service \ | |
200 | units/gentoo/reboot.service \ | |
201 | units/gentoo/xdm.service | |
202 | endif | |
203 | ||
1ebdf2d8 TG |
204 | if TARGET_ARCH |
205 | dist_systemunit_DATA += \ | |
206 | units/arch/sysinit.service \ | |
207 | units/arch/rc-local.service \ | |
208 | units/arch/halt.service \ | |
209 | units/arch/poweroff.service \ | |
210 | units/arch/reboot.service | |
211 | endif | |
212 | ||
240a3a85 LP |
213 | dist_doc_DATA = \ |
214 | README \ | |
795750ca LP |
215 | LICENSE \ |
216 | DISTRO_PORTING \ | |
240a3a85 LP |
217 | src/sd-daemon.h \ |
218 | src/sd-daemon.c | |
219 | ||
8c6db833 LP |
220 | pkgconfigdata_DATA = \ |
221 | systemd.pc | |
222 | ||
139be57d LP |
223 | noinst_LTLIBRARIES = \ |
224 | libsystemd-basic.la \ | |
225 | libsystemd-core.la | |
226 | ||
139be57d | 227 | libsystemd_basic_la_SOURCES = \ |
e99e38bb LP |
228 | src/util.c \ |
229 | src/hashmap.c \ | |
230 | src/set.c \ | |
231 | src/strv.c \ | |
232 | src/conf-parser.c \ | |
233 | src/socket-util.c \ | |
234 | src/log.c \ | |
235 | src/ratelimit.c | |
47be870b | 236 | |
139be57d | 237 | libsystemd_core_la_SOURCES = \ |
e99e38bb LP |
238 | src/unit.c \ |
239 | src/job.c \ | |
240 | src/manager.c \ | |
84e3543e | 241 | src/path-lookup.c \ |
e99e38bb LP |
242 | src/load-fragment.c \ |
243 | src/service.c \ | |
244 | src/automount.c \ | |
245 | src/mount.c \ | |
246 | src/swap.c \ | |
247 | src/device.c \ | |
248 | src/target.c \ | |
249 | src/snapshot.c \ | |
250 | src/socket.c \ | |
251 | src/timer.c \ | |
01f78473 | 252 | src/path.c \ |
e99e38bb LP |
253 | src/load-dropin.c \ |
254 | src/execute.c \ | |
255 | src/dbus.c \ | |
256 | src/dbus-manager.c \ | |
257 | src/dbus-unit.c \ | |
258 | src/dbus-job.c \ | |
259 | src/dbus-service.c \ | |
260 | src/dbus-socket.c \ | |
871d7de4 | 261 | src/dbus-timer.c \ |
e99e38bb LP |
262 | src/dbus-target.c \ |
263 | src/dbus-mount.c \ | |
264 | src/dbus-automount.c \ | |
265 | src/dbus-swap.c \ | |
266 | src/dbus-snapshot.c \ | |
267 | src/dbus-device.c \ | |
268 | src/dbus-execute.c \ | |
01f78473 | 269 | src/dbus-path.c \ |
e99e38bb LP |
270 | src/cgroup.c \ |
271 | src/mount-setup.c \ | |
272 | src/hostname-setup.c \ | |
273 | src/loopback-setup.c \ | |
11c3a4ee | 274 | src/kmod-setup.c \ |
fa0f4d8a | 275 | src/modprobe-setup.c \ |
e99e38bb LP |
276 | src/utmp-wtmp.c \ |
277 | src/specifier.c \ | |
278 | src/unit-name.c \ | |
279 | src/fdset.c \ | |
0213c3f8 | 280 | src/namespace.c \ |
8c6db833 LP |
281 | src/tcpwrap.c \ |
282 | src/cgroup-util.c | |
47be870b | 283 | |
139be57d LP |
284 | libsystemd_core_la_CFLAGS = \ |
285 | $(AM_CFLAGS) \ | |
286 | $(DBUS_CFLAGS) \ | |
287 | $(UDEV_CFLAGS) \ | |
288 | $(CGROUP_CFLAGS) | |
289 | ||
290 | libsystemd_core_la_LIBADD = \ | |
291 | libsystemd-basic.la \ | |
292 | $(DBUS_LIBS) \ | |
293 | $(UDEV_LIBS) \ | |
294 | $(CGROUP_LIBS) \ | |
295 | $(LIBWRAP_LIBS) \ | |
296 | $(PAM_LIBS) | |
297 | ||
9a1ac7b9 LP |
298 | # This is needed because automake is buggy in how it generates the |
299 | # rules for C programs, but not Vala programs. We therefore can't | |
300 | # list the .h files as dependencies if we want make dist to work. | |
301 | ||
462b33e9 | 302 | EXTRA_DIST += \ |
139be57d LP |
303 | ${libsystemd_basic_la_SOURCES:.c=.h} \ |
304 | ${libsystemd_core_la_SOURCES:.c=.h} \ | |
e99e38bb LP |
305 | src/macro.h \ |
306 | src/ioprio.h \ | |
307 | src/missing.h \ | |
308 | src/list.h \ | |
309 | src/securebits.h \ | |
310 | src/linux/auto_dev-ioctl.h \ | |
311 | src/initreq.h \ | |
514f4ef5 | 312 | src/sd-daemon.h \ |
9a1ac7b9 | 313 | src/special.h \ |
398ef8ba | 314 | src/dbus-common.h \ |
ab35fb1b LP |
315 | src/bus-errors.h \ |
316 | src/cgroup-show.h | |
6f6083dc LP |
317 | |
318 | MANPAGES = \ | |
160cd5c9 | 319 | man/systemd.1 \ |
6f6083dc LP |
320 | man/systemctl.1 \ |
321 | man/systemadm.1 \ | |
322 | man/systemd-install.1 \ | |
fa776d8e | 323 | man/systemd-cgls.1 \ |
c5abba08 | 324 | man/systemd-notify.1 \ |
f9378423 LP |
325 | man/sd_notify.3 \ |
326 | man/sd_booted.3 \ | |
327 | man/sd_listen_fds.3 \ | |
328 | man/sd_is_fifo.3 \ | |
6f6083dc LP |
329 | man/systemd.unit.5 \ |
330 | man/systemd.service.5 \ | |
1f812fea | 331 | man/systemd.socket.5 \ |
cdb788e4 | 332 | man/systemd.mount.5 \ |
65232ea7 | 333 | man/systemd.automount.5 \ |
e0cabd4b | 334 | man/systemd.swap.5 \ |
11fcc3ab | 335 | man/systemd.timer.5 \ |
b36b082c | 336 | man/systemd.path.5 \ |
da49e9ab | 337 | man/systemd.target.5 \ |
eec575d8 | 338 | man/systemd.device.5 \ |
b2c20dd9 | 339 | man/systemd.snapshot.5 \ |
dd1eb43b | 340 | man/systemd.exec.5 \ |
6f6083dc | 341 | man/daemon.7 \ |
359957ee LP |
342 | man/sd-daemon.7 \ |
343 | man/runlevel.8 \ | |
160cd5c9 LP |
344 | man/telinit.8 \ |
345 | man/halt.8 \ | |
346 | man/shutdown.8 \ | |
f3e219a2 LP |
347 | man/pam_systemd.8 \ |
348 | man/systemd.conf.5 | |
6f6083dc LP |
349 | |
350 | MANPAGES_ALIAS = \ | |
351 | man/reboot.8 \ | |
352 | man/poweroff.8 \ | |
353 | man/sd_is_socket.3 \ | |
354 | man/sd_is_socket_unix.3 \ | |
355 | man/sd_is_socket_inet.3 \ | |
356 | man/sd_notifyf.3 \ | |
357 | man/init.1 | |
358 | ||
359 | man/reboot.8: man/halt.8 | |
360 | man/poweroff.8: man/halt.8 | |
361 | man/sd_is_socket.3: man/sd_is_fifo.3 | |
362 | man/sd_is_socket_unix.3: man/sd_is_fifo.3 | |
363 | man/sd_is_socket_inet.3: man/sd_is_fifo.3 | |
364 | man/sd_notifyf.3: man/sd_notify.3 | |
365 | man/init.1: man/systemd.1 | |
366 | ||
367 | dist_man_MANS = \ | |
368 | $(MANPAGES) \ | |
369 | $(MANPAGES_ALIAS) | |
9f2c5942 LP |
370 | |
371 | nodist_man_MANS = \ | |
9f235308 | 372 | man/systemd.special.7 |
d1ab0ca0 | 373 | |
6f6083dc LP |
374 | XML_FILES = \ |
375 | ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}} | |
376 | ||
377 | XML_IN_FILES = \ | |
378 | ${patsubst %.1,%.xml.in,${patsubst %.3,%.xml.in,${patsubst %.5,%.xml.in,${patsubst %.7,%.xml.in,${patsubst %.8,%.xml.in,$(nodist_man_MANS)}}}}} | |
379 | ||
9f2c5942 | 380 | dist_noinst_DATA = \ |
6f6083dc | 381 | ${XML_FILES:.xml=.html} |
d1ab0ca0 | 382 | |
9f2c5942 | 383 | nodist_noinst_DATA = \ |
6f6083dc | 384 | ${XML_IN_FILES:.xml.in=.html} |
d1ab0ca0 LP |
385 | |
386 | EXTRA_DIST += \ | |
6f6083dc LP |
387 | $(XML_FILES) \ |
388 | $(XML_IN_FILES) \ | |
389 | ${nodist_man_MANS:=.in} \ | |
390 | ${XML_IN_FILES:.xml.in=.html.in} | |
d1ab0ca0 | 391 | |
47be870b | 392 | systemd_SOURCES = \ |
e99e38bb | 393 | src/main.c |
47be870b | 394 | |
10e87ee7 LP |
395 | systemd_CFLAGS = \ |
396 | $(AM_CFLAGS) \ | |
47be870b | 397 | $(DBUS_CFLAGS) \ |
8e274523 LP |
398 | $(UDEV_CFLAGS) \ |
399 | $(CGROUP_CFLAGS) | |
47be870b LP |
400 | |
401 | systemd_LDADD = \ | |
139be57d | 402 | libsystemd-core.la |
47be870b LP |
403 | |
404 | test_engine_SOURCES = \ | |
e99e38bb | 405 | src/test-engine.c |
47be870b | 406 | |
10e87ee7 | 407 | test_engine_CFLAGS = $(systemd_CFLAGS) |
47be870b LP |
408 | test_engine_LDADD = $(systemd_LDADD) |
409 | ||
410 | test_job_type_SOURCES = \ | |
e1d680ad | 411 | src/test-job-type.c |
47be870b | 412 | |
10e87ee7 | 413 | test_job_type_CFLAGS = $(systemd_CFLAGS) |
47be870b LP |
414 | test_job_type_LDADD = $(systemd_LDADD) |
415 | ||
15ae422b | 416 | test_ns_SOURCES = \ |
139be57d | 417 | src/test-ns.c |
15ae422b | 418 | |
10e87ee7 | 419 | test_ns_CFLAGS = $(systemd_CFLAGS) |
15ae422b LP |
420 | test_ns_LDADD = $(systemd_LDADD) |
421 | ||
af5bc85d | 422 | test_loopback_SOURCES = \ |
e99e38bb LP |
423 | src/test-loopback.c \ |
424 | src/loopback-setup.c | |
af5bc85d | 425 | |
139be57d LP |
426 | test_loopback_LDADD = \ |
427 | libsystemd-basic.la | |
428 | ||
8c47c732 | 429 | test_daemon_SOURCES = \ |
8c47c732 LP |
430 | src/test-daemon.c \ |
431 | src/sd-daemon.c | |
af5bc85d | 432 | |
139be57d LP |
433 | test_daemon_LDADD = \ |
434 | libsystemd-basic.la | |
435 | ||
8c6db833 LP |
436 | test_cgroup_SOURCES = \ |
437 | src/test-cgroup.c \ | |
438 | src/cgroup-util.c | |
439 | ||
440 | test_cgroup_CFLAGS = \ | |
441 | $(AM_CFLAGS) \ | |
442 | $(CGROUP_CFLAGS) | |
443 | ||
444 | test_cgroup_LDADD = \ | |
445 | libsystemd-basic.la \ | |
446 | $(CGROUP_LIBS) | |
447 | ||
47be870b | 448 | systemd_logger_SOURCES = \ |
e99e38bb | 449 | src/logger.c \ |
0213c3f8 LP |
450 | src/sd-daemon.c \ |
451 | src/tcpwrap.c | |
452 | ||
453 | systemd_logger_LDADD = \ | |
139be57d | 454 | libsystemd-basic.la \ |
0213c3f8 | 455 | $(LIBWRAP_LIBS) |
47be870b | 456 | |
0b7964b8 | 457 | systemd_initctl_SOURCES = \ |
e99e38bb | 458 | src/initctl.c \ |
a822056b LP |
459 | src/sd-daemon.c \ |
460 | src/dbus-common.c | |
0b7964b8 | 461 | |
10e87ee7 LP |
462 | systemd_initctl_CFLAGS = \ |
463 | $(AM_CFLAGS) \ | |
0b7964b8 LP |
464 | $(DBUS_CFLAGS) |
465 | ||
466 | systemd_initctl_LDADD = \ | |
139be57d | 467 | libsystemd-basic.la \ |
0b7964b8 LP |
468 | $(DBUS_LIBS) |
469 | ||
8e274523 | 470 | systemd_cgroups_agent_SOURCES = \ |
e99e38bb | 471 | src/cgroups-agent.c |
8e274523 | 472 | |
10e87ee7 LP |
473 | systemd_cgroups_agent_CFLAGS = \ |
474 | $(AM_CFLAGS) \ | |
8e274523 LP |
475 | $(DBUS_CFLAGS) |
476 | ||
477 | systemd_cgroups_agent_LDADD = \ | |
139be57d | 478 | libsystemd-basic.la \ |
8e274523 LP |
479 | $(DBUS_LIBS) |
480 | ||
7e4249b9 LP |
481 | systemctl_SOURCES = \ |
482 | src/systemctl.c \ | |
9a1ac7b9 | 483 | src/utmp-wtmp.c \ |
ab35fb1b LP |
484 | src/dbus-common.c \ |
485 | src/cgroup-show.c | |
139be57d LP |
486 | |
487 | systemctl_CFLAGS = \ | |
488 | $(AM_CFLAGS) \ | |
489 | $(DBUS_CFLAGS) | |
7e4249b9 | 490 | |
139be57d LP |
491 | systemctl_LDADD = \ |
492 | libsystemd-basic.la \ | |
493 | $(DBUS_LIBS) | |
7e4249b9 | 494 | |
4a2a8b5a LP |
495 | systemd_notify_SOURCES = \ |
496 | src/notify.c \ | |
139be57d LP |
497 | src/sd-daemon.c |
498 | ||
499 | systemd_notify_LDADD = \ | |
500 | libsystemd-basic.la | |
4a2a8b5a | 501 | |
10e87ee7 LP |
502 | systemd_install_SOURCES = \ |
503 | src/install.c \ | |
9a1ac7b9 | 504 | src/path-lookup.c \ |
b4f10a5e LP |
505 | src/dbus-common.c \ |
506 | src/sd-daemon.c | |
139be57d LP |
507 | |
508 | systemd_install_LDADD = \ | |
9a1ac7b9 LP |
509 | libsystemd-basic.la \ |
510 | $(DBUS_LIBS) | |
e99e38bb | 511 | |
139be57d LP |
512 | systemd_install_CFLAGS = \ |
513 | $(AM_CFLAGS) \ | |
514 | $(DBUS_CFLAGS) | |
47be870b | 515 | |
fa776d8e LP |
516 | systemd_cgls_SOURCES = \ |
517 | src/systemd-cgls.c \ | |
518 | src/cgroup-show.c | |
519 | ||
520 | systemd_cgls_LDADD = \ | |
521 | libsystemd-basic.la | |
522 | ||
523 | systemd_cgls_CFLAGS = \ | |
524 | $(AM_CFLAGS) | |
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 = \ | |
555 | $(AM_CFLAGS) \ | |
556 | $(CGROUP_CFLAGS) \ | |
557 | -fvisibility=hidden | |
558 | ||
559 | pam_systemd_la_LDFLAGS = \ | |
560 | -module \ | |
561 | -export-dynamic \ | |
562 | -avoid-version \ | |
563 | -shared \ | |
564 | -export-symbols-regex '^pam_sm_.*' | |
565 | ||
566 | pam_systemd_la_LIBADD = \ | |
567 | libsystemd-basic.la \ | |
568 | $(PAM_LIBS) \ | |
569 | $(CGROUP_LIBS) | |
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) && \ |
fb1bd35a | 714 | rm -f shutdown.target sockets.target local-fs.target swap.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 && \ | |
718 | $(LN_S) $(systemunitdir)/swap.target swap.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 LP |
761 | $(MKDIR_P) -m 0755 \ |
762 | $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) | |
1e287fe3 LP |
763 | ( cd $(DESTDIR)$(pkgsysconfdir)/system && \ |
764 | rm -f display-manager.service && \ | |
765 | $(LN_S) $(systemunitdir)/prefdm.service display-manager.service ) | |
5e6afdd3 | 766 | ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \ |
af65a091 | 767 | rm -f prefdm.service && \ |
83698d60 | 768 | $(LN_S) $(systemunitdir)/prefdm.service prefdm.service ) |
5e6afdd3 LP |
769 | ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \ |
770 | rm -f rc-local.service && \ | |
771 | $(LN_S) $(systemunitdir)/rc-local.service rc-local.service ) | |
772 | ( cd $(DESTDIR)$(systemunitdir) && \ | |
773 | rm -f local.service && \ | |
774 | $(LN_S) rc-local.service local.service ) | |
a3723b97 | 775 | ( cd $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) && \ |
1afaf573 | 776 | $(LN_S) halt reboot > /dev/null 2>&1 || true ) |
5e6afdd3 | 777 | endif |
f306f4c4 MAP |
778 | if TARGET_GENTOO |
779 | ( cd $(DESTDIR)$(pkgsysconfdir)/system && \ | |
780 | rm -f display-manager.service && \ | |
781 | $(LN_S) $(systemunitdir)/xdm.service display-manager.service ) | |
782 | ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \ | |
83698d60 LP |
783 | rm -f xdm.service && \ |
784 | $(LN_S) $(systemunitdir)/xdm.service xdm.service ) | |
f306f4c4 | 785 | endif |
5e6afdd3 | 786 | |
d1ab0ca0 | 787 | DISTCHECK_CONFIGURE_FLAGS = \ |
d2d12cd1 LP |
788 | --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \ |
789 | --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \ | |
790 | --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \ | |
791 | --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \ | |
8c4a3079 | 792 | --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \ |
8c6db833 | 793 | --with-pamlibdir=$$dc_install_base/$(pamlibdir) \ |
8c4a3079 | 794 | --with-rootdir=$$dc_install_base/$(rootdir) |
a45f61d7 LP |
795 | |
796 | upload: all distcheck | |
797 | cp -v systemd-$(VERSION).tar.bz2 /home/lennart/cvs.fedora/systemd/devel/ | |
798 | scp systemd-$(VERSION).tar.bz2 fdo:/srv/www.freedesktop.org/www/software/systemd/ | |
799 | scp man/*.html tango:public/systemd-man/ | |
800 | ||
801 | git-tag: | |
802 | git tag "v$(VERSION)" -m "systemd $(VERSION)" |