Makefile.am 59.3 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 21
SUBDIRS = po

22
LIBSYSTEMD_LOGIN_CURRENT=0
23
LIBSYSTEMD_LOGIN_REVISION=6
24 25
LIBSYSTEMD_LOGIN_AGE=0

26 27 28 29
LIBSYSTEMD_DAEMON_CURRENT=0
LIBSYSTEMD_DAEMON_REVISION=0
LIBSYSTEMD_DAEMON_AGE=0

30 31 32 33 34 35 36 37
LIBSYSTEMD_ID128_CURRENT=0
LIBSYSTEMD_ID128_REVISION=0
LIBSYSTEMD_ID128_AGE=0

LIBSYSTEMD_JOURNAL_CURRENT=0
LIBSYSTEMD_JOURNAL_REVISION=0
LIBSYSTEMD_JOURNAL_AGE=0

38
# Dirs of external packages
39 40 41 42
dbuspolicydir=@dbuspolicydir@
dbussessionservicedir=@dbussessionservicedir@
dbussystemservicedir=@dbussystemservicedir@
dbusinterfacedir=@dbusinterfacedir@
43
udevrulesdir=@udevrulesdir@
44 45
pamlibdir=@pamlibdir@
pkgconfigdatadir=$(datadir)/pkgconfig
46
pkgconfiglibdir=$(libdir)/pkgconfig
47
polkitpolicydir=$(datadir)/polkit-1/actions
48
bashcompletiondir=$(sysconfdir)/bash_completion.d
49

50
# Our own, non-special dirs
51
pkgsysconfdir=$(sysconfdir)/systemd
52
userunitdir=$(prefix)/lib/systemd/user
53
tmpfilesdir=$(prefix)/lib/tmpfiles.d
54
usergeneratordir=$(pkglibexecdir)/user-generators
55
pkgincludedir=$(includedir)/systemd
56 57 58 59 60

# And these are the special ones for /
rootdir=@rootdir@
rootbindir=$(rootdir)/bin
rootlibexecdir=$(rootdir)/lib/systemd
61 62
systemgeneratordir=$(rootlibexecdir)/system-generators
systemshutdowndir=$(rootlibexecdir)/system-shutdown
63
systemunitdir=$(rootdir)/lib/systemd/system
64

65
AM_CPPFLAGS = \
66
	-include $(top_builddir)/config.h \
67
	-DSYSTEM_CONFIG_FILE=\"$(pkgsysconfdir)/system.conf\" \
68
	-DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
69
	-DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
70
	-DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
71
	-DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
72 73 74
	-DUSER_CONFIG_FILE=\"$(pkgsysconfdir)/user.conf\" \
	-DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
	-DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
75
	-DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
76
	-DSYSTEMD_BINARY_PATH=\"$(rootbindir)/systemd\" \
77
	-DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
78
	-DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
79
	-DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
80
	-DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
81
	-DRUNTIME_DIR=\"/run\" \
82
	-DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \
83
	-DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
84
	-DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
85
	-DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
86
	-DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
Lennart Poettering's avatar
Lennart Poettering committed
87
        -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
88
	-I $(top_srcdir)/src
89

90 91 92 93 94 95
if TARGET_GENTOO
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
96 97 98 99 100 101
if TARGET_ARCH
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
102 103 104 105 106 107
if TARGET_FRUGALWARE
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
108 109 110 111 112 113
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
114 115 116 117 118 119
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
120 121 122 123 124 125
if TARGET_ANGSTROM
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
126 127 128 129
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
	-DDEFAULT_FONT=\"latarcyrheb-sun16\"
Dexter Morgan's avatar
Dexter Morgan committed
130 131 132 133 134 135 136
else
if TARGET_MAGEIA
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
endif
137
endif
138
endif
139
endif
140
endif
Chris E Ferron's avatar
Chris E Ferron committed
141
endif
Koen Kooi's avatar
Koen Kooi committed
142
endif
143

144
rootbin_PROGRAMS = \
145
	systemd \
146
	systemctl \
147
        systemd-loginctl \
148
	systemd-notify \
149
	systemd-ask-password \
150
	systemd-tty-ask-password-agent \
151
	systemd-tmpfiles \
152 153
	systemd-machine-id-setup \
        systemd-journalctl
154

155
bin_PROGRAMS = \
156
	systemd-cgls \
157
	systemd-stdio-bridge \
158
	systemd-nspawn
159

160
dist_bin_SCRIPTS = \
161
	src/systemd-analyze
162

163 164
if HAVE_GTK
bin_PROGRAMS += \
165
	systemadm \
166
	systemd-gnome-ask-password-agent
167
endif
168

169
rootlibexec_PROGRAMS = \
170
	systemd-stdout-syslog-bridge \
171
	systemd-cgroups-agent \
172
	systemd-initctl \
173
	systemd-update-utmp \
174
	systemd-random-seed \
175
	systemd-shutdownd \
176
	systemd-shutdown \
177
	systemd-modules-load \
178
	systemd-remount-api-vfs \
179
	systemd-kmsg-syslogd \
180
	systemd-vconsole-setup \
181 182
	systemd-reply-password \
	systemd-readahead-collect \
183
	systemd-readahead-replay \
184 185
	systemd-user-sessions \
	systemd-fsck \
186
	systemd-quotacheck \
187
	systemd-timestamp \
188
	systemd-ac-power \
189
	systemd-detect-virt \
190
	systemd-sysctl \
191
        systemd-logind \
192 193
        systemd-uaccess \
        systemd-journald
194

195 196 197 198 199
if ENABLE_BINFMT
rootlibexec_PROGRAMS += \
	systemd-binfmt
endif

200 201 202 203 204
if ENABLE_HOSTNAMED
rootlibexec_PROGRAMS += \
	systemd-hostnamed
endif

205 206 207 208 209
if ENABLE_TIMEDATED
rootlibexec_PROGRAMS += \
	systemd-timedated
endif

210 211 212 213 214
if ENABLE_LOCALED
rootlibexec_PROGRAMS += \
	systemd-localed
endif

215
systemgenerator_PROGRAMS = \
216
	systemd-getty-generator
217

218 219 220 221
if HAVE_LIBCRYPTSETUP
rootlibexec_PROGRAMS += \
	systemd-cryptsetup

222
systemgenerator_PROGRAMS += \
223
	systemd-cryptsetup-generator
224
endif
225

226
lib_LTLIBRARIES = \
227
	libsystemd-daemon.la \
228 229 230
	libsystemd-login.la \
        libsystemd-id128.la \
        libsystemd-journal.la
231 232

pkginclude_HEADERS = \
233
	src/sd-daemon.h \
234
	src/login/sd-login.h \
235 236
        src/sd-id128.h \
        src/journal/sd-journal.h
237

238 239
noinst_PROGRAMS = \
	test-engine \
240
	test-job-type \
241
	test-ns \
242
	test-loopback \
243
	test-hostname \
244
	test-daemon \
245
	test-cgroup \
246
	test-env-replace \
247
	test-strv \
248
        test-login \
249 250 251
        test-install \
        test-id128 \
        test-journal
252 253 254 255 256

if HAVE_PAM
pamlib_LTLIBRARIES = \
	pam_systemd.la
endif
257

258
dist_pkgsysconf_DATA = \
259 260
	src/system.conf \
        src/user.conf \
261
        src/login/systemd-logind.conf
262

263
dist_dbuspolicy_DATA = \
264
	src/org.freedesktop.systemd1.conf \
265
        src/login/org.freedesktop.login1.conf
266

267 268 269 270 271
if ENABLE_HOSTNAMED
dist_dbuspolicy_DATA += \
	src/org.freedesktop.hostname1.conf
endif

272 273 274 275 276
if ENABLE_TIMEDATED
dist_dbuspolicy_DATA += \
	src/org.freedesktop.timedate1.conf
endif

277 278 279 280 281
if ENABLE_LOCALED
dist_dbuspolicy_DATA += \
	src/org.freedesktop.locale1.conf
endif

282
dist_dbussystemservice_DATA = \
283
	src/org.freedesktop.systemd1.service \
284
        src/login/org.freedesktop.login1.service
285

286 287 288 289 290
if ENABLE_HOSTNAMED
dist_dbussystemservice_DATA += \
	src/org.freedesktop.hostname1.service
endif

291 292 293 294 295
if ENABLE_TIMEDATED
dist_dbussystemservice_DATA += \
	src/org.freedesktop.timedate1.service
endif

296 297 298 299 300
if ENABLE_LOCALED
dist_dbussystemservice_DATA += \
        src/org.freedesktop.locale1.service
endif

301
dist_udevrules_DATA = \
302
        src/70-uaccess.rules \
303
        src/71-seat.rules
304

305
nodist_udevrules_DATA = \
306 307
        src/73-seat-late.rules \
        src/99-systemd.rules
308

309
dbusinterface_DATA = \
310 311 312 313 314
	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 \
315
	org.freedesktop.systemd1.Timer.xml \
316 317 318 319 320
	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 \
321
	org.freedesktop.systemd1.Swap.xml \
322
	org.freedesktop.systemd1.Path.xml
323

324 325 326 327 328
if ENABLE_HOSTNAMED
dbusinterface_DATA += \
	org.freedesktop.hostname1.xml
endif

329 330 331 332 333
if ENABLE_TIMEDATED
dbusinterface_DATA += \
	org.freedesktop.timedate1.xml
endif

334 335 336 337 338
if ENABLE_LOCALED
dbusinterface_DATA += \
	org.freedesktop.locale1.xml
endif

339
dist_bashcompletion_DATA = \
340
	src/systemd-bash-completion.sh
341

342 343
dist_tmpfiles_DATA = \
	tmpfiles.d/systemd.conf \
344
	tmpfiles.d/tmp.conf \
345 346
	tmpfiles.d/x11.conf

347 348
if HAVE_SYSV_COMPAT
dist_tmpfiles_DATA += \
349
	tmpfiles.d/legacy.conf
350 351
endif

352
dist_systemunit_DATA = \
353 354
	units/graphical.target \
	units/multi-user.target \
355
	units/emergency.service \
356
	units/emergency.target \
357
	units/sysinit.target \
358
	units/basic.target \
359 360
	units/getty.target \
	units/halt.target \
361
	units/kexec.target \
362
	units/local-fs.target \
363
        units/local-fs-pre.target \
Lennart Poettering's avatar
Lennart Poettering committed
364
	units/remote-fs.target \
365
        units/remote-fs-pre.target \
366
	units/cryptsetup.target \
367 368
	units/network.target \
	units/nss-lookup.target \
369
	units/mail-transfer-agent.target \
370
	units/http-daemon.target \
371 372 373
	units/poweroff.target \
	units/reboot.target \
	units/rescue.target \
374
	units/rpcbind.target \
375
	units/time-sync.target \
376
	units/shutdown.target \
377
	units/final.target \
378
	units/umount.target \
379 380 381
	units/sigpwr.target \
	units/sockets.target \
	units/swap.target \
382
	units/systemd-initctl.socket \
383
	units/systemd-stdout-syslog-bridge.socket \
384
	units/systemd-shutdownd.socket \
385
	units/syslog.socket \
386 387
	units/dev-hugepages.mount \
	units/dev-mqueue.mount \
388
	units/sys-kernel-config.mount \
389
	units/sys-kernel-debug.mount \
390
	units/sys-kernel-security.mount \
391
	units/sys-fs-fuse-connections.mount \
392
	units/var-run.mount \
393
	units/media.mount \
394
	units/remount-rootfs.service \
395
	units/printer.target \
396
	units/sound.target \
397
	units/bluetooth.target \
Kay Sievers's avatar
Kay Sievers committed
398
	units/smartcard.target \
399
	units/systemd-readahead-done.timer \
400
	units/systemd-tmpfiles-clean.timer \
401
	units/quotaon.service \
402
	units/systemd-ask-password-wall.path \
403
	units/systemd-ask-password-console.path \
404 405
	units/syslog.target \
        units/systemd-journald.socket
406

407 408 409 410 411
if HAVE_SYSV_COMPAT
dist_systemunit_DATA += \
	units/var-lock.mount
endif

412 413 414 415 416 417
if ENABLE_BINFMT
dist_systemunit_DATA += \
	units/proc-sys-fs-binfmt_misc.automount \
	units/proc-sys-fs-binfmt_misc.mount
endif

418
nodist_systemunit_DATA = \
419
	units/getty@.service \
420
	units/serial-getty@.service \
421
	units/console-shell.service \
422
	units/systemd-initctl.service \
423
	units/systemd-stdout-syslog-bridge.service \
424
	units/systemd-shutdownd.service \
425
	units/systemd-logind.service \
426
        units/systemd-journald.service \
427
	units/systemd-kmsg-syslogd.service \
428
	units/systemd-modules-load.service \
429
	units/systemd-vconsole-setup.service \
430
	units/systemd-remount-api-vfs.service \
431 432
	units/systemd-update-utmp-runlevel.service \
	units/systemd-update-utmp-shutdown.service \
433 434
	units/systemd-random-seed-save.service \
	units/systemd-random-seed-load.service \
435 436
	units/systemd-readahead-collect.service \
	units/systemd-readahead-replay.service \
437
	units/systemd-readahead-done.service \
438 439
	units/systemd-tmpfiles-setup.service \
	units/systemd-tmpfiles-clean.service \
440
	units/systemd-user-sessions.service \
441
	units/systemd-ask-password-wall.service \
442
	units/systemd-ask-password-console.service \
443
	units/systemd-sysctl.service \
444 445 446
	units/halt.service \
	units/poweroff.service \
	units/reboot.service \
447 448
	units/kexec.service \
	units/fsck@.service \
449
	units/fsck-root.service \
450
	units/quotacheck.service \
451 452
	units/rescue.service \
        units/user@.service
453

454 455 456 457 458
if ENABLE_BINFMT
nodist_systemunit_DATA += \
	units/systemd-binfmt.service
endif

459 460 461 462 463
if ENABLE_HOSTNAMED
nodist_systemunit_DATA += \
	units/systemd-hostnamed.service
endif

464 465 466 467 468
if ENABLE_TIMEDATED
nodist_systemunit_DATA += \
	units/systemd-timedated.service
endif

469 470 471 472 473
if ENABLE_LOCALED
nodist_systemunit_DATA += \
	units/systemd-localed.service
endif

474 475 476
dist_userunit_DATA = \
	units/user/default.target \
	units/user/exit.target
477

478 479
nodist_userunit_DATA = \
	units/user/exit.service
480

481
EXTRA_DIST = \
482
	units/getty@.service.m4 \
483
	units/serial-getty@.service.m4 \
484
	units/console-shell.service.m4 \
485
	units/rescue.service.m4 \
486
	units/systemd-initctl.service.in \
487
	units/systemd-stdout-syslog-bridge.service.in \
488
	units/systemd-shutdownd.service.in \
489
	units/systemd-logind.service.in \
490 491
        units/systemd-journald.service.in \
        units/systemd-kmsg-syslogd.service.in \
492
	units/systemd-modules-load.service.in \
493
	units/systemd-vconsole-setup.service.in \
494
	units/systemd-remount-api-vfs.service.in \
495 496
	units/systemd-update-utmp-runlevel.service.in \
	units/systemd-update-utmp-shutdown.service.in \
497 498
	units/systemd-random-seed-save.service.in \
	units/systemd-random-seed-load.service.in \
499 500
	units/systemd-readahead-collect.service.in \
	units/systemd-readahead-replay.service.in \
501
	units/systemd-readahead-done.service.in \
502 503
	units/systemd-tmpfiles-setup.service.in \
	units/systemd-tmpfiles-clean.service.in \
504
	units/systemd-user-sessions.service.in \
505
	units/systemd-ask-password-wall.service.in \
506
	units/systemd-ask-password-console.service.in \
507
	units/systemd-sysctl.service.in \
508 509 510
	units/halt.service.in \
	units/poweroff.service.in \
	units/reboot.service.in \
511
	units/kexec.service.in \
512
	units/user/exit.service.in \
513 514
	units/fsck@.service.in \
	units/fsck-root.service.in \
515
	units/quotacheck.service.in \
Kay Sievers's avatar
Kay Sievers committed
516
	units/user@.service.in \
517
	systemd.pc.in \
Kay Sievers's avatar
Kay Sievers committed
518 519
	libsystemd-daemon.pc.in \
	libsystemd-login.pc.in \
520 521
        libsystemd-id128.pc.in \
        libsystemd-journal.pc.in \
Kay Sievers's avatar
Kay Sievers committed
522
	src/libsystemd-daemon.sym \
523
	src/login/libsystemd-login.sym \
524
	src/libsystemd-id128.sym \
525
	src/journal/libsystemd-journal.sym \
526
	introspect.awk \
527
	src/73-seat-late.rules.in \
528 529
        src/99-systemd.rules.in \
        man/custom-html.xsl
530

531 532 533 534 535
if ENABLE_BINFMT
EXTRA_DIST += \
	units/systemd-binfmt.service.in
endif

536 537 538 539 540
if ENABLE_HOSTNAMED
EXTRA_DIST += \
	units/systemd-hostnamed.service.in
endif

541 542 543 544 545
if ENABLE_TIMEDATED
EXTRA_DIST += \
	units/systemd-timedated.service.in
endif

546 547 548 549 550
if ENABLE_LOCALED
EXTRA_DIST += \
	units/systemd-localed.service.in
endif

551 552 553 554
if TARGET_FEDORA
dist_systemunit_DATA += \
	units/fedora/prefdm.service \
	units/fedora/rc-local.service \
555
	units/fedora/halt-local.service
556 557
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
558 559
endif

560 561 562 563 564
if TARGET_MANDRIVA
dist_systemunit_DATA += \
	units/mandriva/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
565 566
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
567 568
endif

569 570 571 572 573
if TARGET_FRUGALWARE
dist_systemunit_DATA += \
	units/frugalware/display-manager.service
endif

574 575 576 577
if TARGET_SUSE
dist_systemunit_DATA += \
	units/suse/rc-local.service \
	units/suse/halt-local.service
578 579
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
580 581
endif

Dexter Morgan's avatar
Dexter Morgan committed
582 583 584 585 586
if TARGET_MAGEIA
dist_systemunit_DATA += \
	units/mageia/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
587 588
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
Dexter Morgan's avatar
Dexter Morgan committed
589 590
endif

591 592 593 594 595
if HAVE_PLYMOUTH
dist_systemunit_DATA += \
	units/plymouth-start.service \
	units/plymouth-read-write.service \
	units/plymouth-quit.service \
596
	units/plymouth-quit-wait.service \
597 598 599
	units/plymouth-reboot.service \
	units/plymouth-kexec.service \
	units/plymouth-poweroff.service \
600 601 602 603 604 605 606 607
	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
608 609
endif

610 611
dist_doc_DATA = \
	README \
612 613
	LICENSE \
	DISTRO_PORTING \
614
	src/sd-daemon.h \
615 616 617
	src/sd-daemon.c \
	src/sd-readahead.h \
	src/sd-readahead.c
618

619
pkgconfigdata_DATA = \
620 621 622
	systemd.pc

pkgconfiglib_DATA = \
623
        libsystemd-daemon.pc \
624 625 626
        libsystemd-login.pc \
        libsystemd-id128.pc \
        libsystemd-journal.pc
627

628 629
# Passed through intltool only
polkitpolicy_in_files = \
630
        src/login/org.freedesktop.login1.policy.in
631

632 633 634 635 636
if ENABLE_HOSTNAMED
polkitpolicy_in_files += \
	src/org.freedesktop.hostname1.policy.in
endif

637 638 639 640 641
if ENABLE_TIMEDATED
polkitpolicy_in_files += \
	src/org.freedesktop.timedate1.policy.in
endif

642 643 644 645 646
if ENABLE_LOCALED
polkitpolicy_in_files += \
        src/org.freedesktop.locale1.policy.in
endif

647 648 649 650 651 652
# First passed through sed, followed by intltool
polkitpolicy_in_in_files = \
	src/org.freedesktop.systemd1.policy.in.in

nodist_polkitpolicy_DATA = \
        $(polkitpolicy_in_files:.policy.in=.policy) \
653
        $(polkitpolicy_in_in_files:.policy.in.in=.policy)
654 655 656 657 658

EXTRA_DIST += \
        $(polkitpolicy_in_files) \
        $(polkitpolicy_in_in_files)

659
@INTLTOOL_POLICY_RULE@
660

661 662
noinst_LTLIBRARIES = \
	libsystemd-basic.la \
663
	libsystemd-core.la
664 665

libsystemd_basic_la_SOURCES = \
666
	src/util.c \
667
        src/virt.c \
668
	src/label.c \
669 670 671 672 673 674
	src/hashmap.c \
	src/set.c \
	src/strv.c \
	src/conf-parser.c \
	src/socket-util.c \
	src/log.c \
675 676
	src/ratelimit.c \
	src/exit-status.c
677

678 679 680 681 682
libsystemd_basic_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(SELINUX_CFLAGS)

libsystemd_basic_la_LIBADD = \
683 684
	$(SELINUX_LIBS) \
	$(CAP_LIBS)
685

686
libsystemd_core_la_SOURCES = \
687
	src/unit.c \
688 689
	src/job.c \
	src/manager.c \
690
	src/path-lookup.c \
691 692 693 694 695 696 697 698 699 700
	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 \
701
	src/path.c \
702 703
	src/load-dropin.c \
	src/execute.c \
704
	src/utmp-wtmp.c \
705 706 707 708
	src/dbus.c \
	src/dbus-manager.c \
	src/dbus-unit.c \
	src/dbus-job.c \
709 710
	src/dbus-service.c \
	src/dbus-socket.c \
711
	src/dbus-timer.c \
712 713 714 715 716 717 718
	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 \
719
	src/dbus-path.c \
720 721 722
	src/cgroup.c \
	src/mount-setup.c \
	src/hostname-setup.c \
723
	src/selinux-setup.c \
724
	src/loopback-setup.c \
725
	src/kmod-setup.c \
726
	src/locale-setup.c \
727
	src/machine-id-setup.c \
728 729 730
	src/specifier.c \
	src/unit-name.c \
	src/fdset.c \
731
	src/namespace.c \
732
	src/tcpwrap.c \
733
	src/cgroup-util.c \
734
	src/condition.c \
735
        src/dbus-common.c \
736
        src/sd-daemon.c \
737
        src/install.c \
738 739
        src/cgroup-attr.c \
        src/sd-id128.c
740

741 742 743 744
nodist_libsystemd_core_la_SOURCES = \
        src/load-fragment-gperf.c \
        src/load-fragment-gperf-nulstr.c

745 746 747
EXTRA_DIST += \
        src/load-fragment-gperf.gperf.m4

748 749 750
libsystemd_core_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS) \
751 752 753 754
	$(UDEV_CFLAGS) \
	$(LIBWRAP_CFLAGS) \
	$(PAM_CFLAGS) \
	$(AUDIT_CFLAGS)
755 756 757 758 759 760

libsystemd_core_la_LIBADD = \
	libsystemd-basic.la \
	$(DBUS_LIBS) \
	$(UDEV_LIBS) \
	$(LIBWRAP_LIBS) \
761
	$(PAM_LIBS) \
762 763
	$(AUDIT_LIBS) \
	$(CAP_LIBS)
764

765 766 767 768
# 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.

769
EXTRA_DIST += \
770 771
	${libsystemd_basic_la_SOURCES:.c=.h} \
	${libsystemd_core_la_SOURCES:.c=.h} \
772
	${libsystemd_daemon_la_SOURCES:.c=.h} \
773
	src/macro.h \
774
	src/def.h \
775 776 777 778 779
	src/ioprio.h \
	src/missing.h \
	src/list.h \
	src/securebits.h \
	src/linux/auto_dev-ioctl.h \
780
	src/linux/fanotify.h \
781
	src/initreq.h \
782
	src/sd-readahead.h \
783
	src/special.h \
784
	src/dbus-common.h \
785
	src/bus-errors.h \
786
	src/cgroup-show.h \
787
	src/build.h \
788
	src/shutdownd.h \
789
	src/umount.h \
790
	src/readahead-common.h \
791 792 793 794
	src/ask-password-api.h \
        src/pager.h \
        src/sysfs-show.h \
        src/polkit.h \
795 796 797 798 799 800
        src/login/logind.h \
        src/login/logind-device.h \
        src/login/logind-seat.h \
        src/login/logind-session.h \
        src/login/logind-user.h \
        src/login/logind-acl.h \
801
        src/dbus-loop.h \
802 803 804 805 806 807 808 809
        src/spawn-agent.h \
        src/journal/journal-def.h \
        src/journal/journal-internal.h \
        src/journal/journal-file.h \
        src/journal/lookup3.h \
        src/journal/compress.h \
        src/journal/journal-rate-limit.h \
        src/acl-util.h
810 811

MANPAGES = \
Lennart Poettering's avatar
Lennart Poettering committed
812
	man/systemd.1 \
813 814
	man/systemctl.1 \
	man/systemadm.1 \
815
	man/systemd-cgls.1 \
816
	man/systemd-nspawn.1 \
817
	man/systemd-tmpfiles.8 \
818
	man/systemd-notify.1 \
819
	man/sd_notify.3 \
820
	man/sd_readahead.3 \
821 822 823
	man/sd_booted.3 \
	man/sd_listen_fds.3 \
	man/sd_is_fifo.3 \
824 825
	man/systemd.unit.5 \
	man/systemd.service.5 \
826
	man/systemd.socket.5 \
Lennart Poettering's avatar
Lennart Poettering committed
827
	man/systemd.mount.5 \