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