X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=Makefile.am;h=85cd086ae57666377fcaaee6c4e0c53aa319e582;hp=675e591352b8624e150d0733b5175d3b4bbebde4;hb=643a14a5271ed19ec30a9882d4b9e9ae1c357fb1;hpb=88dc4327e0aae3cd99caa23334eb3d777fbe2686 diff --git a/Makefile.am b/Makefile.am index 675e59135..85cd086ae 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,19 +1,21 @@ +# -*- Mode: makefile; indent-tabs-mode: t -*- */ +# # This file is part of systemd. # # Copyright 2010-2012 Lennart Poettering # Copyright 2010-2012 Kay Sievers # # 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 +# under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation; either version 2.1 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. +# Lesser General Public License for more details. # -# You should have received a copy of the GNU General Public License +# You should have received a copy of the GNU Lesser General Public License # along with systemd; If not, see . ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} @@ -120,12 +122,10 @@ AM_CPPFLAGS = \ -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \ -DX_SERVER=\"$(bindir)/X\" \ -DUDEVLIBEXECDIR=\""$(libexecdir)/udev"\" \ - -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \ + -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \ -I $(top_srcdir)/src \ -I $(top_srcdir)/src/shared \ - -I $(top_srcdir)/src/readahead \ -I $(top_srcdir)/src/login \ - -I $(top_srcdir)/src/journal \ -I $(top_srcdir)/src/systemd \ -I $(top_srcdir)/src/core \ -I $(top_srcdir)/src/udev @@ -457,7 +457,9 @@ endif dist_doc_DATA = \ README \ NEWS \ - LICENSE \ + LICENSE.LGPL2.1 \ + LICENSE.GPL2 \ + LICENSE.MIT \ DISTRO_PORTING pkgconfigdata_DATA = \ @@ -554,6 +556,9 @@ noinst_LTLIBRARIES += \ libsystemd-shared.la libsystemd_shared_la_SOURCES = \ + src/missing.h \ + src/linux/auto_dev-ioctl.h \ + src/linux/fanotify.h \ src/shared/util.c \ src/shared/util.h \ src/shared/virt.c \ @@ -581,14 +586,49 @@ libsystemd_shared_la_SOURCES = \ src/shared/socket-util.h \ src/shared/cgroup-util.c \ src/shared/cgroup-util.h \ + src/shared/dbus-common.c \ + src/shared/dbus-common.h \ + src/shared/hostname-setup.c \ + src/shared/hostname-setup.h \ + src/shared/logs-show.c \ + src/shared/logs-show.h \ + src/shared/cgroup-show.c \ + src/shared/cgroup-show.h \ + src/shared/unit-name.c \ + src/shared/unit-name.h \ + src/shared/utmp-wtmp.c \ + src/shared/utmp-wtmp.h \ + src/shared/watchdog.c \ + src/shared/watchdog.h \ + src/shared/spawn-ask-password-agent.c \ + src/shared/spawn-ask-password-agent.h \ + src/shared/mount-setup.c \ + src/shared/mount-setup.h \ + src/shared/machine-id-util.c \ + src/shared/machine-id-util.h \ + src/shared/loopback-setup.h \ + src/shared/loopback-setup.c \ + src/shared/specifier.c \ + src/shared/specifier.h \ + src/shared/spawn-polkit-agent.c \ + src/shared/spawn-polkit-agent.h \ src/shared/list.h \ - src/shared/macro.h + src/shared/macro.h \ + src/shared/ask-password-api.h + +libsystemd_shared_la_CFLAGS = \ + $(AM_CFLAGS) \ + $(DBUS_CFLAGS) # ------------------------------------------------------------------------------ noinst_LTLIBRARIES += \ libsystemd-label.la libsystemd_label_la_SOURCES = \ + src/shared/install.c \ + src/shared/install.h \ + src/shared/path-lookup.c \ + src/shared/path-lookup.h \ src/shared/cgroup-label.c \ src/shared/socket-label.c \ src/shared/label.c \ @@ -598,6 +638,7 @@ libsystemd_label_la_SOURCES = \ libsystemd_label_la_CFLAGS = \ $(AM_CFLAGS) \ + $(DBUS_CFLAGS) \ $(SELINUX_CFLAGS) libsystemd_label_la_LIBADD = \ @@ -652,31 +693,6 @@ noinst_LTLIBRARIES += \ libsystemd_core_la_SOURCES = \ src/def.h \ - src/missing.h \ - src/dbus-common.c \ - src/dbus-common.h \ - src/watchdog.c \ - src/watchdog.h \ - src/loopback-setup.h \ - src/loopback-setup.c \ - src/hostname-setup.c \ - src/hostname-setup.h \ - src/specifier.c \ - src/specifier.h \ - src/install.c \ - src/install.h \ - src/path-lookup.c \ - src/path-lookup.h \ - src/unit-name.c \ - src/unit-name.h \ - src/utmp-wtmp.c \ - src/utmp-wtmp.h \ - src/machine-id-setup.c \ - src/machine-id-setup.h \ - src/mount-setup.c \ - src/mount-setup.h \ - src/linux/auto_dev-ioctl.h \ - src/linux/fanotify.h \ src/core/unit.c \ src/core/unit.h \ src/core/job.c \ @@ -764,9 +780,7 @@ libsystemd_core_la_SOURCES = \ src/core/special.h \ src/core/bus-errors.h \ src/core/build.h \ - src/core/ask-password-api.h \ src/core/sysfs-show.h \ - src/core/polkit.h \ src/core/dbus-loop.h nodist_libsystemd_core_la_SOURCES = \ @@ -798,7 +812,7 @@ libsystemd_core_la_LIBADD = \ # ------------------------------------------------------------------------------ systemd_SOURCES = \ - src/main.c + src/core/main.c systemd_CFLAGS = \ $(AM_CFLAGS) \ @@ -811,7 +825,7 @@ systemd_LDADD = \ # ------------------------------------------------------------------------------ test_engine_SOURCES = \ - src/test-engine.c + test/test-engine.c test_engine_CFLAGS = \ $(AM_CFLAGS) \ @@ -822,7 +836,7 @@ test_engine_LDADD = \ libsystemd-daemon.la test_job_type_SOURCES = \ - src/test-job-type.c + test/test-job-type.c test_job_type_CFLAGS = \ $(AM_CFLAGS) \ @@ -832,57 +846,51 @@ test_job_type_LDADD = \ libsystemd-core.la test_ns_SOURCES = \ - src/test-ns.c + test/test-ns.c test_ns_LDADD = \ libsystemd-core.la test_loopback_SOURCES = \ - src/test-loopback.c \ - src/loopback-setup.c + test/test-loopback.c test_loopback_LDADD = \ libsystemd-shared.la test_hostname_SOURCES = \ - src/test-hostname.c \ - src/hostname-setup.c + test/test-hostname.c test_hostname_LDADD = \ libsystemd-shared.la test_daemon_SOURCES = \ - src/test-daemon.c + test/test-daemon.c test_daemon_LDADD = \ libsystemd-shared.la \ libsystemd-daemon.la test_cgroup_SOURCES = \ - src/test-cgroup.c + test/test-cgroup.c test_cgroup_LDADD = \ libsystemd-label.la \ libsystemd-shared.la test_env_replace_SOURCES = \ - src/test-env-replace.c + test/test-env-replace.c test_env_replace_LDADD = \ libsystemd-shared.la test_strv_SOURCES = \ - src/test-strv.c \ - src/specifier.c + test/test-strv.c test_strv_LDADD = \ libsystemd-shared.la test_install_SOURCES = \ - src/test-install.c \ - src/install.c \ - src/path-lookup.c \ - src/unit-name.c + test/test-install.c test_install_CFLAGS = \ $(AM_CFLAGS) \ @@ -893,17 +901,14 @@ test_install_LDADD = \ libsystemd-shared.la test_watchdog_SOURCES = \ - src/test-watchdog.c \ - src/watchdog.c \ - src/watchdog.h + test/test-watchdog.c test_watchdog_LDADD = \ libsystemd-shared.la # ------------------------------------------------------------------------------ systemd_initctl_SOURCES = \ - src/initctl.c \ - src/dbus-common.c + src/initctl.c systemd_initctl_CFLAGS = \ $(AM_CFLAGS) \ @@ -916,9 +921,7 @@ systemd_initctl_LDADD = \ # ------------------------------------------------------------------------------ systemd_update_utmp_SOURCES = \ - src/update-utmp.c \ - src/dbus-common.c \ - src/utmp-wtmp.c + src/update-utmp.c systemd_update_utmp_CFLAGS = \ $(AM_CFLAGS) \ @@ -932,7 +935,6 @@ systemd_update_utmp_LDADD = \ # ------------------------------------------------------------------------------ systemd_shutdownd_SOURCES = \ - src/utmp-wtmp.c \ src/shutdownd.c systemd_shutdownd_LDADD = \ @@ -945,12 +947,9 @@ pkginclude_HEADERS += \ # ------------------------------------------------------------------------------ systemd_shutdown_SOURCES = \ - src/mount-setup.c \ src/umount.c \ src/umount.h \ - src/shutdown.c \ - src/watchdog.c \ - src/watchdog.h + src/shutdown.c systemd_shutdown_LDADD = \ libsystemd-label.la \ @@ -979,8 +978,7 @@ systemd_tmpfiles_LDADD = \ # ------------------------------------------------------------------------------ systemd_machine_id_setup_SOURCES = \ - src/machine-id-setup.c \ - src/machine-id-main.c + src/machine-id-setup.c systemd_machine_id_setup_LDADD = \ libsystemd-label.la \ @@ -996,8 +994,7 @@ systemd_sysctl_LDADD = \ # ------------------------------------------------------------------------------ systemd_fsck_SOURCES = \ - src/fsck.c \ - src/dbus-common.c + src/fsck.c systemd_fsck_CFLAGS = \ $(AM_CFLAGS) \ @@ -1032,8 +1029,7 @@ systemd_detect_virt_LDADD = \ # ------------------------------------------------------------------------------ systemd_getty_generator_SOURCES = \ - src/getty-generator.c \ - src/unit-name.c + src/getty-generator.c systemd_getty_generator_LDADD = \ libsystemd-label.la \ @@ -1049,16 +1045,14 @@ systemd_rc_local_generator_LDADD = \ # ------------------------------------------------------------------------------ systemd_remount_api_vfs_SOURCES = \ - src/remount-api-vfs.c \ - src/mount-setup.c + src/remount-api-vfs.c systemd_remount_api_vfs_LDADD = \ libsystemd-shared.la # ------------------------------------------------------------------------------ systemd_cgroups_agent_SOURCES = \ - src/cgroups-agent.c \ - src/dbus-common.c + src/cgroups-agent.c systemd_cgroups_agent_CFLAGS = \ $(AM_CFLAGS) \ @@ -1070,20 +1064,7 @@ systemd_cgroups_agent_LDADD = \ # ------------------------------------------------------------------------------ systemctl_SOURCES = \ - src/systemctl.c \ - src/utmp-wtmp.c \ - src/dbus-common.c \ - src/path-lookup.c \ - src/cgroup-show.c \ - src/cgroup-show.h \ - src/unit-name.c \ - src/install.c \ - src/spawn-ask-password-agent.c \ - src/spawn-ask-password-agent.h \ - src/spawn-polkit-agent.c \ - src/spawn-polkit-agent.h \ - src/logs-show.c \ - src/logs-show.h + src/systemctl.c systemctl_CFLAGS = \ $(AM_CFLAGS) \ @@ -1124,9 +1105,7 @@ systemd_reply_password_LDADD = \ # ------------------------------------------------------------------------------ systemd_cgls_SOURCES = \ - src/cgls.c \ - src/cgroup-show.c \ - src/cgroup-show.h + src/cgls.c systemd_cgls_LDADD = \ libsystemd-shared.la @@ -1140,13 +1119,12 @@ systemd_cgtop_LDADD = \ # ------------------------------------------------------------------------------ systemd_nspawn_SOURCES = \ - src/nspawn.c \ - src/loopback-setup.c + src/nspawn.c systemd_nspawn_LDADD = \ libsystemd-label.la \ - libsystemd-shared.la \ libsystemd-capability.la \ + libsystemd-shared.la \ libsystemd-daemon.la # ------------------------------------------------------------------------------ @@ -1159,8 +1137,7 @@ systemd_stdio_bridge_LDADD = \ # ------------------------------------------------------------------------------ systemd_tty_ask_password_agent_SOURCES = \ src/tty-ask-password-agent.c \ - src/ask-password-api.c \ - src/utmp-wtmp.c + src/ask-password-api.c systemd_tty_ask_password_agent_LDADD = \ libsystemd-label.la \ @@ -1616,6 +1593,8 @@ libgudev_1_0_la_CPPFLAGS = \ $(AM_CPPFLAGS) \ -I$(top_builddir)/src\ -I$(top_srcdir)/src\ + -I$(top_builddir)/src/udev \ + -I$(top_srcdir)/src/udev \ -I$(top_builddir)/src/udev/gudev \ -I$(top_srcdir)/src/udev/gudev \ -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \ @@ -1664,43 +1643,45 @@ src/udev/gudev/gudevenumtypes.c: src/udev/gudev/gudevenumtypes.c.template src/ud $@.tmp && mv $@.tmp $@ if ENABLE_INTROSPECTION -src/udev/gudev/GUdev-1.0.gir: libgudev-1.0.la $(G_IR_SCANNER) - $(AM_V_GEN)$(G_IR_SCANNER) -v \ - --warn-all \ - --namespace GUdev \ - --nsversion=1.0 \ - --include=GObject-2.0 \ - --library=gudev-1.0 \ - --library-path=$(top_builddir)/src/udev \ - --library-path=$(top_builddir)/src/udev/gudev \ - --output $@ \ - --pkg=glib-2.0 \ - --pkg=gobject-2.0 \ - --pkg-export=gudev-1.0 \ - --c-include=gudev/gudev.h \ - -I$(top_srcdir)/src/udev \ - -I$(top_builddir)/src/udev \ - -D_GUDEV_COMPILATION \ - -D_GUDEV_WORK_AROUND_DEV_T_BUG \ - $(top_srcdir)/src/udev/gudev/gudev.h \ - $(top_srcdir)/src/udev/gudev/gudevtypes.h \ - $(top_srcdir)/src/udev/gudev/gudevenums.h \ - $(or $(wildcard $(top_builddir)/src/udev/gudev/gudevenumtypes.h),$(top_srcdir)/src/udev/gudev/gudevenumtypes.h) \ - $(top_srcdir)/src/udev/gudev/gudevclient.h \ - $(top_srcdir)/src/udev/gudev/gudevdevice.h \ - $(top_srcdir)/src/udev/gudev/gudevenumerator.h \ - $(top_srcdir)/src/udev/gudev/gudevclient.c \ - $(top_srcdir)/src/udev/gudev/gudevdevice.c \ - $(top_srcdir)/src/udev/gudev/gudevenumerator.c - -src/udev/gudev/GUdev-1.0.typelib: src/udev/gudev/GUdev-1.0.gir $(G_IR_COMPILER) - $(AM_V_GEN)g-ir-compiler $< -o $@ - -girdir = $(GIRDIR) +-include $(INTROSPECTION_MAKEFILE) + +src/udev/gudev/GUdev-1.0.gir: libgudev-1.0.la + +src_udev_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0 + +src_udev_gudev_GUdev_1_0_gir_CFLAGS = \ + $(INCLUDES) \ + -D_GUDEV_COMPILATION \ + -D_GUDEV_WORK_AROUND_DEV_T_BUG \ + -I$(top_srcdir)/src/udev \ + -I$(top_builddir)/src/udev + +src_udev_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la + +src_udev_gudev_GUdev_1_0_gir_SCANNERFLAGS = \ + --pkg-export=gudev-1.0 \ + --warn-all + +src_udev_gudev_GUdev_1_0_gir_FILES = \ + $(top_srcdir)/src/udev/gudev/gudev.h \ + $(top_srcdir)/src/udev/gudev/gudevtypes.h \ + $(top_srcdir)/src/udev/gudev/gudevenums.h \ + $(or $(wildcard $(top_builddir)/src/udev/gudev/gudevenumtypes.h),$(top_srcdir)/src/udev/gudev/gudevenumtypes.h) \ + $(top_srcdir)/src/udev/gudev/gudevclient.h \ + $(top_srcdir)/src/udev/gudev/gudevdevice.h \ + $(top_srcdir)/src/udev/gudev/gudevenumerator.h \ + $(top_srcdir)/src/udev/gudev/gudevclient.c \ + $(top_srcdir)/src/udev/gudev/gudevdevice.c \ + $(top_srcdir)/src/udev/gudev/gudevenumerator.c + +INTROSPECTION_GIRS = src/udev/gudev/GUdev-1.0.gir +INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h + +girdir = $(datadir)/gir-1.0 gir_DATA = \ src/udev/gudev/GUdev-1.0.gir -typelibsdir = $(GIRTYPELIBDIR) +typelibsdir = $(libdir)/girepository-1.0 typelibs_DATA = \ src/udev/gudev/GUdev-1.0.typelib @@ -1881,7 +1862,7 @@ libsystemd_id128_la_LIBADD = \ libsystemd-shared.la test_id128_SOURCES = \ - src/test-id128.c + test/test-id128.c test_id128_LDADD = \ libsystemd-shared.la \ @@ -1976,9 +1957,7 @@ systemd_cat_LDADD = \ libsystemd-journal.la journalctl_SOURCES = \ - src/journal/journalctl.c \ - src/logs-show.c \ - src/logs-show.h + src/journal/journalctl.c journalctl_LDADD = \ libsystemd-shared.la \ @@ -2351,8 +2330,7 @@ systemd_cryptsetup_LDADD = \ $(LIBCRYPTSETUP_LIBS) systemd_cryptsetup_generator_SOURCES = \ - src/cryptsetup/cryptsetup-generator.c \ - src/unit-name.c + src/cryptsetup/cryptsetup-generator.c systemd_cryptsetup_generator_LDADD = \ libsystemd-label.la \ @@ -2373,8 +2351,8 @@ endif if ENABLE_HOSTNAMED systemd_hostnamed_SOURCES = \ src/hostname/hostnamed.c \ - src/dbus-common.c \ - src/polkit.c + src/polkit.c \ + src/polkit.h systemd_hostnamed_CFLAGS = \ $(AM_CFLAGS) \ @@ -2424,8 +2402,8 @@ endif if ENABLE_LOCALED systemd_localed_SOURCES = \ src/locale/localed.c \ - src/dbus-common.c \ - src/polkit.c + src/polkit.c \ + src/polkit.h systemd_localed_CFLAGS = \ $(AM_CFLAGS) \ @@ -2486,8 +2464,8 @@ endif if ENABLE_TIMEDATED systemd_timedated_SOURCES = \ src/timedate/timedated.c \ - src/dbus-common.c \ - src/polkit.c + src/polkit.c \ + src/polkit.h systemd_timedated_CFLAGS = \ $(AM_CFLAGS) \ @@ -2550,9 +2528,9 @@ systemd_logind_SOURCES = \ src/login/logind-session-dbus.c \ src/login/logind-seat-dbus.c \ src/login/logind-user-dbus.c \ - src/dbus-common.c \ src/dbus-loop.c \ src/polkit.c \ + src/polkit.h \ src/login/logind-acl.h nodist_systemd_logind_SOURCES = \ @@ -2590,12 +2568,7 @@ rootlibexec_PROGRAMS += \ loginctl_SOURCES = \ src/login/loginctl.c \ - src/login/sysfs-show.c \ - src/dbus-common.c \ - src/spawn-polkit-agent.c \ - src/spawn-polkit-agent.h \ - src/cgroup-show.c \ - src/cgroup-show.h + src/login/sysfs-show.c loginctl_CFLAGS = \ $(AM_CFLAGS) \ @@ -2637,8 +2610,7 @@ libsystemd_login_la_LIBADD = \ if HAVE_PAM pam_systemd_la_SOURCES = \ - src/login/pam-module.c \ - src/dbus-common.c + src/login/pam-module.c pam_systemd_la_CFLAGS = \ $(AM_CFLAGS) \ @@ -2712,7 +2684,7 @@ polkitpolicy_in_files += \ logind-install-data-hook: $(MKDIR_P) -m 0755 \ $(DESTDIR)$(systemunitdir)/multi-user.target.wants \ - $(DESTDIR)$(localstatedir)/lib/systemd + $(DESTDIR)$(localstatedir)/lib/systemd ( cd $(DESTDIR)$(systemunitdir) && \ rm -f dbus-org.freedesktop.login1.service && \ $(LN_S) systemd-logind.service dbus-org.freedesktop.login1.service)