Makefile.am 40.7 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#  This file is part of systemd.
#
#  Copyright 2010 Lennart Poettering
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 of the License, or
#  (at your option) any later version.
#
#  systemd is distributed in the hope that it will be useful, but
#  WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
#  General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with systemd; If not, see <http://www.gnu.org/licenses/>.

ACLOCAL_AMFLAGS = -I m4

20
# Dirs of external packages
21 22 23 24
dbuspolicydir=@dbuspolicydir@
dbussessionservicedir=@dbussessionservicedir@
dbussystemservicedir=@dbussystemservicedir@
dbusinterfacedir=@dbusinterfacedir@
25
udevrulesdir=@udevrulesdir@
26 27
pamlibdir=@pamlibdir@
pkgconfigdatadir=$(datadir)/pkgconfig
28
polkitpolicydir=$(datadir)/polkit-1/actions
29
bashcompletiondir=$(sysconfdir)/bash_completion.d
30

31
# Our own, non-special dirs
32
pkgsysconfdir=$(sysconfdir)/systemd
33
userunitdir=$(prefix)/lib/systemd/user
34
tmpfilesdir=$(prefix)/lib/tmpfiles.d
35
usergeneratordir=$(pkglibexecdir)/user-generators
36 37 38 39 40

# And these are the special ones for /
rootdir=@rootdir@
rootbindir=$(rootdir)/bin
rootlibexecdir=$(rootdir)/lib/systemd
41 42
systemgeneratordir=$(rootlibexecdir)/system-generators
systemshutdowndir=$(rootlibexecdir)/system-shutdown
43
systemunitdir=$(rootdir)/lib/systemd/system
44

45
AM_CPPFLAGS = \
46
	-include $(top_builddir)/config.h \
47
	-DSYSTEM_CONFIG_FILE=\"$(pkgsysconfdir)/system.conf\" \
48
	-DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
49
	-DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
50
	-DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
51
	-DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
52 53 54
	-DUSER_CONFIG_FILE=\"$(pkgsysconfdir)/user.conf\" \
	-DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
	-DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
55
	-DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
56
	-DSYSTEMD_BINARY_PATH=\"$(rootbindir)/systemd\" \
57
	-DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
58
	-DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
59
	-DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
60
	-DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
61
	-DRUNTIME_DIR=\"/run\" \
62
	-DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \
63
	-DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
64
	-DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
65
	-DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
66
	-DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
67
	-I $(top_srcdir)/src
68

69 70 71 72 73 74
if TARGET_GENTOO
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
75 76 77 78 79 80
if TARGET_ARCH
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
81 82 83 84 85 86
if TARGET_FRUGALWARE
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
87 88 89 90 91 92
if TARGET_MANDRIVA
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
Chris E Ferron's avatar
Chris E Ferron committed
93 94 95 96 97 98
if TARGET_MEEGO
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
Koen Kooi's avatar
Koen Kooi committed
99 100 101 102 103 104
if TARGET_ANGSTROM
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
105 106 107 108 109
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
	-DDEFAULT_FONT=\"latarcyrheb-sun16\"
endif
110
endif
111
endif
112
endif
Chris E Ferron's avatar
Chris E Ferron committed
113
endif
Koen Kooi's avatar
Koen Kooi committed
114
endif
115

116
rootbin_PROGRAMS = \
117
	systemd \
118
	systemctl \
119
	systemd-notify \
120
	systemd-ask-password \
121
	systemd-tty-ask-password-agent \
122
	systemd-tmpfiles \
123
	systemd-machine-id-setup
124

125
bin_PROGRAMS = \
126
	systemd-cgls \
127
	systemd-stdio-bridge \
128
	systemd-nspawn
129

130
dist_bin_SCRIPTS = \
131
	src/systemd-analyze
132

133 134
if HAVE_GTK
bin_PROGRAMS += \
135
	systemadm \
136
	systemd-gnome-ask-password-agent
137
endif
138

139
rootlibexec_PROGRAMS = \
140
	systemd-logger \
141
	systemd-cgroups-agent \
142
	systemd-initctl \
143
	systemd-update-utmp \
144
	systemd-random-seed \
145
	systemd-shutdownd \
146
	systemd-shutdown \
147
	systemd-modules-load \
148
	systemd-remount-api-vfs \
149
	systemd-kmsg-syslogd \
150
	systemd-vconsole-setup \
151 152
	systemd-reply-password \
	systemd-readahead-collect \
153
	systemd-readahead-replay \
154 155
	systemd-user-sessions \
	systemd-fsck \
156
	systemd-quotacheck \
157
	systemd-timestamp \
158
	systemd-ac-power \
159
	systemd-detect-virt \
160
	systemd-sysctl \
161
        systemd-hostnamed
162

163 164 165 166 167
if ENABLE_BINFMT
rootlibexec_PROGRAMS += \
	systemd-binfmt
endif

168
systemgenerator_PROGRAMS = \
169
	systemd-getty-generator
170

171 172 173 174
if HAVE_LIBCRYPTSETUP
rootlibexec_PROGRAMS += \
	systemd-cryptsetup

175
systemgenerator_PROGRAMS += \
176
	systemd-cryptsetup-generator
177
endif
178

179 180
noinst_PROGRAMS = \
	test-engine \
181
	test-job-type \
182
	test-ns \
183
	test-loopback \
184
	test-hostname \
185
	test-daemon \
186
	test-cgroup \
187 188
	test-env-replace \
	test-strv
189 190 191 192 193

if HAVE_PAM
pamlib_LTLIBRARIES = \
	pam_systemd.la
endif
194

195 196 197
dist_pkgsysconf_DATA = \
	src/system.conf

198
dist_dbuspolicy_DATA = \
199 200
	src/org.freedesktop.systemd1.conf \
        src/org.freedesktop.hostname1.conf
201

202
dist_dbussystemservice_DATA = \
203 204
	src/org.freedesktop.systemd1.service \
        src/org.freedesktop.hostname1.service
205

206
dist_udevrules_DATA = \
207
	src/99-systemd.rules
208

209
dbusinterface_DATA = \
210 211 212 213 214
	org.freedesktop.systemd1.Manager.xml \
	org.freedesktop.systemd1.Job.xml \
	org.freedesktop.systemd1.Unit.xml \
	org.freedesktop.systemd1.Service.xml \
	org.freedesktop.systemd1.Socket.xml \
215
	org.freedesktop.systemd1.Timer.xml \
216 217 218 219 220
	org.freedesktop.systemd1.Target.xml \
	org.freedesktop.systemd1.Device.xml \
	org.freedesktop.systemd1.Mount.xml \
	org.freedesktop.systemd1.Automount.xml \
	org.freedesktop.systemd1.Snapshot.xml \
221 222
	org.freedesktop.systemd1.Swap.xml \
	org.freedesktop.systemd1.Path.xml
223

224
dist_bashcompletion_DATA = \
225
	src/systemctl-bash-completion.sh
226

227 228 229 230
dist_tmpfiles_DATA = \
	tmpfiles.d/systemd.conf \
	tmpfiles.d/x11.conf

231 232
if HAVE_SYSV_COMPAT
dist_tmpfiles_DATA += \
233
	tmpfiles.d/legacy.conf
234 235
endif

236
dist_systemunit_DATA = \
237 238
	units/graphical.target \
	units/multi-user.target \
239
	units/emergency.service \
240
	units/emergency.target \
241
	units/sysinit.target \
242
	units/basic.target \
243 244
	units/getty.target \
	units/halt.target \
245
	units/kexec.target \
246
	units/local-fs.target \
247
	units/cryptsetup.target \
248 249
	units/network.target \
	units/nss-lookup.target \
250
	units/mail-transfer-agent.target \
251
	units/http-daemon.target \
252 253 254
	units/poweroff.target \
	units/reboot.target \
	units/rescue.target \
255
	units/rpcbind.target \
256
	units/time-sync.target \
257
	units/shutdown.target \
258
	units/final.target \
259
	units/umount.target \
260 261 262
	units/sigpwr.target \
	units/sockets.target \
	units/swap.target \
263
	units/systemd-initctl.socket \
264
	units/systemd-logger.socket \
265
	units/systemd-shutdownd.socket \
266
	units/syslog.socket \
267 268 269 270 271 272
	units/dev-hugepages.automount \
	units/dev-hugepages.mount \
	units/dev-mqueue.automount \
	units/dev-mqueue.mount \
	units/sys-kernel-debug.automount \
	units/sys-kernel-debug.mount \
273 274
	units/sys-kernel-security.automount \
	units/sys-kernel-security.mount \
275
	units/var-run.mount \
276
	units/media.mount \
277
	units/remount-rootfs.service \
278
	units/printer.target \
279
	units/sound.target \
280
	units/bluetooth.target \
Kay Sievers's avatar
Kay Sievers committed
281
	units/smartcard.target \
282
	units/systemd-readahead-done.timer \
283
	units/systemd-tmpfiles-clean.timer \
284
	units/quotaon.service \
285
	units/systemd-ask-password-wall.path \
286 287
	units/systemd-ask-password-console.path \
	units/syslog.target
288

289 290 291 292 293
if HAVE_SYSV_COMPAT
dist_systemunit_DATA += \
	units/var-lock.mount
endif

294 295 296 297 298 299
if ENABLE_BINFMT
dist_systemunit_DATA += \
	units/proc-sys-fs-binfmt_misc.automount \
	units/proc-sys-fs-binfmt_misc.mount
endif

300
nodist_systemunit_DATA = \
301
	units/getty@.service \
302
	units/serial-getty@.service \
303
	units/console-shell.service \
304
	units/remote-fs.target \
305
	units/systemd-initctl.service \
306
	units/systemd-logger.service \
307
	units/systemd-shutdownd.service \
308
	units/systemd-hostnamed.service \
309
	units/systemd-kmsg-syslogd.service \
310
	units/systemd-modules-load.service \
311
	units/systemd-vconsole-setup.service \
312
	units/systemd-remount-api-vfs.service \
313 314
	units/systemd-update-utmp-runlevel.service \
	units/systemd-update-utmp-shutdown.service \
315 316
	units/systemd-random-seed-save.service \
	units/systemd-random-seed-load.service \
317 318
	units/systemd-readahead-collect.service \
	units/systemd-readahead-replay.service \
319
	units/systemd-readahead-done.service \
320 321
	units/systemd-tmpfiles-setup.service \
	units/systemd-tmpfiles-clean.service \
322
	units/systemd-user-sessions.service \
323
	units/systemd-ask-password-wall.service \
324
	units/systemd-ask-password-console.service \
325
	units/systemd-sysctl.service \
326 327 328
	units/halt.service \
	units/poweroff.service \
	units/reboot.service \
329 330
	units/kexec.service \
	units/fsck@.service \
331
	units/fsck-root.service \
332 333
	units/quotacheck.service \
	units/rescue.service
334

335 336 337 338 339
if ENABLE_BINFMT
nodist_systemunit_DATA += \
	units/systemd-binfmt.service
endif

340 341 342
dist_userunit_DATA = \
	units/user/default.target \
	units/user/exit.target
343

344 345 346
nodist_userunit_DATA = \
	units/user/remote-fs.target \
	units/user/exit.service
347

348
EXTRA_DIST = \
349
	units/getty@.service.m4 \
350
	units/serial-getty@.service.m4 \
351
	units/console-shell.service.m4 \
352
	units/remote-fs.target.m4 \
353
	units/rescue.service.m4 \
354 355
	units/systemd-initctl.service.in \
	units/systemd-logger.service.in \
356
	units/systemd-shutdownd.service.in \
357
	units/systemd-hostnamed.service.in \
358
	units/systemd-kmsg-syslogd.service.in \
359
	units/systemd-modules-load.service.in \
360
	units/systemd-vconsole-setup.service.in \
361
	units/systemd-remount-api-vfs.service.in \
362 363
	units/systemd-update-utmp-runlevel.service.in \
	units/systemd-update-utmp-shutdown.service.in \
364 365
	units/systemd-random-seed-save.service.in \
	units/systemd-random-seed-load.service.in \
366 367
	units/systemd-readahead-collect.service.in \
	units/systemd-readahead-replay.service.in \
368
	units/systemd-readahead-done.service.in \
369 370
	units/systemd-tmpfiles-setup.service.in \
	units/systemd-tmpfiles-clean.service.in \
371
	units/systemd-user-sessions.service.in \
372
	units/systemd-ask-password-wall.service.in \
373
	units/systemd-ask-password-console.service.in \
374
	units/systemd-sysctl.service.in \
375 376 377
	units/halt.service.in \
	units/poweroff.service.in \
	units/reboot.service.in \
378
	units/kexec.service.in \
379
	units/user/exit.service.in \
380 381
	units/fsck@.service.in \
	units/fsck-root.service.in \
382
	units/quotacheck.service.in \
383
	systemd.pc.in \
384
	introspect.awk \
385
	src/org.freedesktop.systemd1.policy.in
386

387 388 389 390 391
if ENABLE_BINFMT
EXTRA_DIST += \
	units/systemd-binfmt.service.in
endif

392 393 394 395
if TARGET_FEDORA
dist_systemunit_DATA += \
	units/fedora/prefdm.service \
	units/fedora/rc-local.service \
396 397 398
	units/fedora/halt-local.service
endif

399 400 401 402 403 404 405
if TARGET_MANDRIVA
dist_systemunit_DATA += \
	units/mandriva/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
endif

406 407 408 409 410
if TARGET_FRUGALWARE
dist_systemunit_DATA += \
	units/frugalware/display-manager.service
endif

411 412 413 414 415
if HAVE_PLYMOUTH
dist_systemunit_DATA += \
	units/plymouth-start.service \
	units/plymouth-read-write.service \
	units/plymouth-quit.service \
416
	units/plymouth-quit-wait.service \
417 418 419
	units/plymouth-reboot.service \
	units/plymouth-kexec.service \
	units/plymouth-poweroff.service \
420 421 422 423 424 425 426 427
	units/plymouth-halt.service \
	units/systemd-ask-password-plymouth.path

nodist_systemunit_DATA += \
	units/systemd-ask-password-plymouth.service

EXTRA_DIST += \
	units/systemd-ask-password-plymouth.service.in
428 429
endif

430 431
dist_doc_DATA = \
	README \
432 433
	LICENSE \
	DISTRO_PORTING \
434
	src/sd-daemon.h \
435 436 437
	src/sd-daemon.c \
	src/sd-readahead.h \
	src/sd-readahead.c
438

439 440 441
pkgconfigdata_DATA = \
	systemd.pc

442
nodist_polkitpolicy_DATA = \
443 444
	src/org.freedesktop.systemd1.policy

445 446 447
dist_polkitpolicy_DATA = \
        src/org.freedesktop.hostname1.policy

448 449
noinst_LTLIBRARIES = \
	libsystemd-basic.la \
450 451
	libsystemd-core.la \
	libsystemd-daemon.la
452 453

libsystemd_basic_la_SOURCES = \
454
	src/util.c \
455
	src/label.c \
456 457 458 459 460 461
	src/hashmap.c \
	src/set.c \
	src/strv.c \
	src/conf-parser.c \
	src/socket-util.c \
	src/log.c \
462 463
	src/ratelimit.c \
	src/exit-status.c
464

465 466 467 468 469 470 471
libsystemd_basic_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(SELINUX_CFLAGS)

libsystemd_basic_la_LIBADD = \
	$(SELINUX_LIBS)

472
libsystemd_core_la_SOURCES = \
473
	src/unit.c \
474 475
	src/job.c \
	src/manager.c \
476
	src/path-lookup.c \
477 478 479 480 481 482 483 484 485 486
	src/load-fragment.c \
	src/service.c \
	src/automount.c \
	src/mount.c \
	src/swap.c \
	src/device.c \
	src/target.c \
	src/snapshot.c \
	src/socket.c \
	src/timer.c \
487
	src/path.c \
488 489
	src/load-dropin.c \
	src/execute.c \
490
	src/utmp-wtmp.c \
491 492 493 494
	src/dbus.c \
	src/dbus-manager.c \
	src/dbus-unit.c \
	src/dbus-job.c \
495 496
	src/dbus-service.c \
	src/dbus-socket.c \
497
	src/dbus-timer.c \
498 499 500 501 502 503 504
	src/dbus-target.c \
	src/dbus-mount.c \
	src/dbus-automount.c \
	src/dbus-swap.c \
	src/dbus-snapshot.c \
	src/dbus-device.c \
	src/dbus-execute.c \
505
	src/dbus-path.c \
506 507 508
	src/cgroup.c \
	src/mount-setup.c \
	src/hostname-setup.c \
509
	src/selinux-setup.c \
510
	src/loopback-setup.c \
511
	src/kmod-setup.c \
512
	src/locale-setup.c \
513
	src/machine-id-setup.c \
514 515 516
	src/specifier.c \
	src/unit-name.c \
	src/fdset.c \
517
	src/namespace.c \
518
	src/tcpwrap.c \
519
	src/cgroup-util.c \
520 521
	src/condition.c \
        src/dbus-common.c
522

523 524 525
libsystemd_core_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS) \
526 527 528 529
	$(UDEV_CFLAGS) \
	$(LIBWRAP_CFLAGS) \
	$(PAM_CFLAGS) \
	$(AUDIT_CFLAGS)
530 531 532 533 534 535

libsystemd_core_la_LIBADD = \
	libsystemd-basic.la \
	$(DBUS_LIBS) \
	$(UDEV_LIBS) \
	$(LIBWRAP_LIBS) \
536
	$(PAM_LIBS) \
537
	$(AUDIT_LIBS)
538

539 540 541
libsystemd_daemon_la_SOURCES = \
	src/sd-daemon.c

542 543 544 545
# This is needed because automake is buggy in how it generates the
# rules for C programs, but not Vala programs.  We therefore can't
# list the .h files as dependencies if we want make dist to work.

546
EXTRA_DIST += \
547 548
	${libsystemd_basic_la_SOURCES:.c=.h} \
	${libsystemd_core_la_SOURCES:.c=.h} \
549
	${libsystemd_daemon_la_SOURCES:.c=.h} \
550
	src/macro.h \
551
	src/def.h \
552 553 554 555 556
	src/ioprio.h \
	src/missing.h \
	src/list.h \
	src/securebits.h \
	src/linux/auto_dev-ioctl.h \
557
	src/linux/fanotify.h \
558
	src/initreq.h \
559
	src/sd-readahead.h \
560
	src/special.h \
561
	src/dbus-common.h \
562
	src/bus-errors.h \
563
	src/cgroup-show.h \
564
	src/build.h \
565
	src/shutdownd.h \
566
	src/umount.h \
567 568
	src/readahead-common.h \
	src/ask-password-api.h
569 570

MANPAGES = \
Lennart Poettering's avatar
Lennart Poettering committed
571
	man/systemd.1 \
572 573
	man/systemctl.1 \
	man/systemadm.1 \
574
	man/systemd-cgls.1 \
575
	man/systemd-nspawn.1 \
576
	man/systemd-tmpfiles.8 \
577
	man/systemd-notify.1 \
578
	man/sd_notify.3 \
579
	man/sd_readahead.3 \
580 581 582
	man/sd_booted.3 \
	man/sd_listen_fds.3 \
	man/sd_is_fifo.3 \
583 584
	man/systemd.unit.5 \
	man/systemd.service.5 \
585
	man/systemd.socket.5 \
Lennart Poettering's avatar
Lennart Poettering committed
586
	man/systemd.mount.5 \
587
	man/systemd.automount.5 \
Lennart Poettering's avatar
Lennart Poettering committed
588
	man/systemd.swap.5 \
Lennart Poettering's avatar
Lennart Poettering committed
589
	man/systemd.timer.5 \
Lennart Poettering's avatar
Lennart Poettering committed
590
	man/systemd.path.5 \
591
	man/systemd.target.5 \
592
	man/systemd.device.5 \
593
	man/systemd.snapshot.5 \
594
	man/systemd.exec.5 \
595
	man/daemon.7 \
596
	man/sd-daemon.7 \
597
	man/sd-readahead.7 \
598
	man/runlevel.8 \
Lennart Poettering's avatar
Lennart Poettering committed
599 600 601
	man/telinit.8 \
	man/halt.8 \
	man/shutdown.8 \
602
	man/pam_systemd.8 \
603
	man/systemd.conf.5 \
604
	man/tmpfiles.d.5 \
605
	man/hostname.5 \
606
	man/machine-id.5 \
Lennart Poettering's avatar
Lennart Poettering committed
607
	man/vconsole.conf.5 \
608
	man/locale.conf.5 \
609
	man/os-release.5 \
610
        man/machine-info.5 \
611
	man/modules-load.d.5 \
612 613
	man/sysctl.d.5 \
        man/systemd-ask-password.1
614

615 616 617 618 619
if ENABLE_BINFMT
MANPAGES += \
	man/binfmt.d.5
endif

620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639
MANPAGES_ALIAS = \
	man/reboot.8 \
	man/poweroff.8 \
	man/sd_is_socket.3 \
	man/sd_is_socket_unix.3 \
	man/sd_is_socket_inet.3 \
	man/sd_notifyf.3 \
	man/init.1

man/reboot.8: man/halt.8
man/poweroff.8: man/halt.8
man/sd_is_socket.3: man/sd_is_fifo.3
man/sd_is_socket_unix.3: man/sd_is_fifo.3
man/sd_is_socket_inet.3: man/sd_is_fifo.3
man/sd_notifyf.3: man/sd_notify.3
man/init.1: man/systemd.1

dist_man_MANS = \
	$(MANPAGES) \
	$(MANPAGES_ALIAS)
640 641

nodist_man_MANS = \
642
	man/systemd.special.7
643

644 645 646 647 648 649
XML_FILES = \
	${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}

XML_IN_FILES = \
	${patsubst %.1,%.xml.in,${patsubst %.3,%.xml.in,${patsubst %.5,%.xml.in,${patsubst %.7,%.xml.in,${patsubst %.8,%.xml.in,$(nodist_man_MANS)}}}}}

650
dist_noinst_DATA = \
651
	${XML_FILES:.xml=.html}
652

653
nodist_noinst_DATA = \
654
	${XML_IN_FILES:.xml.in=.html}
655 656

EXTRA_DIST += \
657 658 659 660
	$(XML_FILES) \
	$(XML_IN_FILES) \
	${nodist_man_MANS:=.in} \
	${XML_IN_FILES:.xml.in=.html.in}
661

662
systemd_SOURCES = \
663
	src/main.c
664

665 666
systemd_CFLAGS = \
	$(AM_CFLAGS) \
667
	$(DBUS_CFLAGS) \
668
	$(UDEV_CFLAGS)
669 670

systemd_LDADD = \
671
	libsystemd-core.la
672 673

test_engine_SOURCES = \
674
	src/test-engine.c
675

676
test_engine_CFLAGS = $(systemd_CFLAGS)
677 678 679
test_engine_LDADD = $(systemd_LDADD)

test_job_type_SOURCES = \
680
	src/test-job-type.c
681

682
test_job_type_CFLAGS = $(systemd_CFLAGS)
683 684
test_job_type_LDADD = $(systemd_LDADD)

685
test_ns_SOURCES = \
686
	src/test-ns.c
687

688
test_ns_CFLAGS = $(systemd_CFLAGS)
689 690
test_ns_LDADD = $(systemd_LDADD)

691
test_loopback_SOURCES = \
692 693
	src/test-loopback.c \
	src/loopback-setup.c
694

695 696 697
test_loopback_LDADD = \
	libsystemd-basic.la

698 699 700 701 702 703 704
test_hostname_SOURCES = \
	src/test-hostname.c \
	src/hostname-setup.c

test_hostname_LDADD = \
	libsystemd-basic.la

705
test_daemon_SOURCES = \
706
	src/test-daemon.c
707

708
test_daemon_LDADD = \
709 710
	libsystemd-basic.la \
	libsystemd-daemon.la
711

712 713 714 715 716
test_cgroup_SOURCES = \
	src/test-cgroup.c \
	src/cgroup-util.c

test_cgroup_CFLAGS = \
717
	$(AM_CFLAGS)
718 719

test_cgroup_LDADD = \
720
	libsystemd-basic.la
721

722 723 724 725 726 727 728 729 730
test_env_replace_SOURCES = \
	src/test-env-replace.c

test_env_replace_CFLAGS = \
	$(AM_CFLAGS)

test_env_replace_LDADD = \
	libsystemd-basic.la

731
test_strv_SOURCES = \
732
	src/test-strv.c \
Lennart Poettering's avatar
Lennart Poettering committed
733
	src/specifier.c
734 735 736 737 738 739 740

test_strv_CFLAGS = \
	$(AM_CFLAGS)

test_strv_LDADD = \
	libsystemd-basic.la

741
systemd_logger_SOURCES = \
742
	src/logger.c \
743 744 745
	src/tcpwrap.c

systemd_logger_LDADD = \
746
	libsystemd-basic.la \
747
	libsystemd-daemon.la \
748
	$(LIBWRAP_LIBS)
749

750
systemd_initctl_SOURCES = \
751
	src/initctl.c \
752
	src/dbus-common.c
753

754 755
systemd_initctl_CFLAGS = \
	$(AM_CFLAGS) \
756 757 758
	$(DBUS_CFLAGS)

systemd_initctl_LDADD = \
759
	libsystemd-basic.la \
760
	libsystemd-daemon.la \
761 762
	$(DBUS_LIBS)

763 764 765 766 767 768 769 770 771 772 773 774 775 776 777
systemd_update_utmp_SOURCES = \
	src/update-utmp.c \
	src/dbus-common.c \
	src/utmp-wtmp.c

systemd_update_utmp_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS) \
	$(AUDIT_CFLAGS)

systemd_update_utmp_LDADD = \
	libsystemd-basic.la \
	$(DBUS_LIBS) \
	$(AUDIT_LIBS)

778 779 780 781 782 783 784 785 786
systemd_random_seed_SOURCES = \
	src/random-seed.c

systemd_random_seed_CFLAGS = \
	$(AM_CFLAGS)

systemd_random_seed_LDADD = \
	libsystemd-basic.la

787
systemd_shutdownd_SOURCES = \
788
	src/utmp-wtmp.c \
789 790 791 792 793 794
	src/shutdownd.c

systemd_shutdownd_CFLAGS = \
	$(AM_CFLAGS)

systemd_shutdownd_LDADD = \
795 796
	libsystemd-basic.la \
	libsystemd-daemon.la
797

798 799 800 801 802 803 804 805 806 807 808 809 810
systemd_hostnamed_SOURCES = \
	src/hostnamed.c \
        src/dbus-common.c

systemd_hostnamed_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS)

systemd_hostnamed_LDADD = \
	libsystemd-basic.la \
	libsystemd-daemon.la \
	$(DBUS_LIBS)

811 812 813 814 815 816 817 818 819 820 821 822 823
systemd_shutdown_SOURCES = \
	src/mount-set