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