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