2011-11-02 15:45:32 -04:00
# Makefile for C source code
#
2014-05-01 12:55:13 -04:00
# Copyright (C) 2011,2014 Colin Walters <walters@verbum.org>
2011-11-02 15:45:32 -04:00
#
2011-11-10 13:17:04 -05:00
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
2011-11-02 15:45:32 -04:00
#
2011-11-10 13:17:04 -05:00
# This library is distributed in the hope that it will be useful,
2011-11-02 15:45:32 -04:00
# but WITHOUT ANY WARRANTY; without even the implied warranty of
2011-11-10 13:17:04 -05:00
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
2011-11-02 15:45:32 -04:00
#
2011-11-10 13:17:04 -05:00
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
2011-11-02 15:45:32 -04:00
2013-08-16 22:54:35 -04:00
include Makefile-libostree-defines.am
2014-01-16 13:04:00 -05:00
noinst_LTLIBRARIES += libostree-kernel-args.la
libostree_kernel_args_la_SOURCES = \
src/libostree/ostree-kernel-args.h \
src/libostree/ostree-kernel-args.c \
$(NULL)
libostree_kernel_args_la_CFLAGS = $(OT_INTERNAL_GIO_UNIX_CFLAGS)
libostree_kernel_args_la_LIBADD = $(OT_INTERNAL_GIO_UNIX_LIBS)
2013-07-26 19:25:07 -04:00
lib_LTLIBRARIES += libostree-1.la
2011-11-02 15:45:32 -04:00
2013-08-12 16:27:42 +02:00
libostreeincludedir = $(includedir)/ostree-1
libostreeinclude_HEADERS = $(libostree_public_headers)
2013-07-26 19:25:07 -04:00
libostree_1_la_SOURCES = \
2013-10-24 09:10:34 -04:00
src/libostree/ostree-async-progress.c \
2014-10-11 08:59:06 -04:00
src/libostree/ostree-cmdprivate.h \
src/libostree/ostree-cmdprivate.c \
2013-10-15 16:30:09 -04:00
src/libostree/ostree-core-private.h \
2013-07-26 19:25:07 -04:00
src/libostree/ostree-core.c \
2012-04-10 16:40:22 -04:00
src/libostree/ostree-checksum-input-stream.c \
src/libostree/ostree-checksum-input-stream.h \
2012-04-11 15:18:34 -04:00
src/libostree/ostree-chain-input-stream.c \
src/libostree/ostree-chain-input-stream.h \
2014-04-29 08:56:05 -04:00
src/libostree/ostree-lzma-common.c \
src/libostree/ostree-lzma-common.h \
src/libostree/ostree-lzma-compressor.c \
src/libostree/ostree-lzma-compressor.h \
src/libostree/ostree-lzma-decompressor.c \
src/libostree/ostree-lzma-decompressor.h \
2015-01-29 17:39:34 -05:00
src/libostree/bupsplit.h \
src/libostree/bupsplit.c \
2015-01-30 10:13:07 -05:00
src/libostree/ostree-rollsum.h \
src/libostree/ostree-rollsum.c \
2013-08-15 09:03:21 -04:00
src/libostree/ostree-varint.h \
src/libostree/ostree-varint.c \
2014-05-30 10:02:01 -04:00
src/libostree/ostree-linuxfsutil.h \
src/libostree/ostree-linuxfsutil.c \
2012-08-31 14:49:58 -07:00
src/libostree/ostree-diff.c \
2011-12-21 13:34:10 -05:00
src/libostree/ostree-mutable-tree.c \
2011-11-14 15:39:38 -05:00
src/libostree/ostree-repo.c \
2013-07-09 19:02:38 -04:00
src/libostree/ostree-repo-checkout.c \
2013-09-05 15:43:07 -04:00
src/libostree/ostree-repo-commit.c \
2013-07-09 19:11:37 -04:00
src/libostree/ostree-repo-libarchive.c \
2013-07-09 20:05:31 -04:00
src/libostree/ostree-repo-prune.c \
2013-07-09 19:49:00 -04:00
src/libostree/ostree-repo-refs.c \
2013-07-09 19:59:39 -04:00
src/libostree/ostree-repo-traverse.c \
2013-07-09 19:02:38 -04:00
src/libostree/ostree-repo-private.h \
2011-11-14 15:39:38 -05:00
src/libostree/ostree-repo-file.c \
src/libostree/ostree-repo-file-enumerator.c \
src/libostree/ostree-repo-file-enumerator.h \
2014-02-19 08:40:29 -05:00
src/libostree/ostree-sepolicy.c \
2013-09-15 18:07:34 -04:00
src/libostree/ostree-sysroot-private.h \
2013-09-15 14:33:57 -04:00
src/libostree/ostree-sysroot.c \
2013-09-15 18:07:34 -04:00
src/libostree/ostree-sysroot-cleanup.c \
2013-09-15 20:16:20 -04:00
src/libostree/ostree-sysroot-deploy.c \
2014-03-23 08:54:28 -04:00
src/libostree/ostree-sysroot-upgrader.c \
2013-09-15 15:06:31 -04:00
src/libostree/ostree-bootconfig-parser.c \
src/libostree/ostree-deployment.c \
2013-09-15 20:26:13 -04:00
src/libostree/ostree-bootloader.h \
2013-09-15 18:07:34 -04:00
src/libostree/ostree-bootloader.c \
2014-10-11 08:59:06 -04:00
src/libostree/ostree-bootloader-grub2.h \
src/libostree/ostree-bootloader-grub2.c \
2013-09-15 18:07:34 -04:00
src/libostree/ostree-bootloader-syslinux.h \
src/libostree/ostree-bootloader-syslinux.c \
src/libostree/ostree-bootloader-uboot.h \
src/libostree/ostree-bootloader-uboot.c \
2013-09-05 12:50:36 -06:00
src/libostree/ostree-gpg-verifier.c \
src/libostree/ostree-gpg-verifier.h \
2013-08-15 09:17:37 -04:00
src/libostree/ostree-repo-static-delta-core.c \
src/libostree/ostree-repo-static-delta-processing.c \
src/libostree/ostree-repo-static-delta-compilation.c \
2015-02-11 03:29:14 -05:00
src/libostree/ostree-repo-static-delta-compilation-analysis.c \
2013-08-15 09:17:37 -04:00
src/libostree/ostree-repo-static-delta-private.h \
2011-11-02 15:45:32 -04:00
$(NULL)
2011-12-04 12:14:08 -05:00
if USE_LIBARCHIVE
2013-07-26 19:25:07 -04:00
libostree_1_la_SOURCES += src/libostree/ostree-libarchive-input-stream.h \
2011-12-04 12:14:08 -05:00
src/libostree/ostree-libarchive-input-stream.c \
$(NULL)
endif
2014-05-01 12:55:13 -04:00
if HAVE_LIBSOUP_CLIENT_CERTS
libostree_1_la_SOURCES += \
src/libostree/ostree-tls-cert-interaction.c \
src/libostree/ostree-tls-cert-interaction.h \
$(NULL)
endif
2011-12-04 12:14:08 -05:00
2015-02-17 17:38:36 -05:00
libostree_1_la_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/libglnx -I$(srcdir)/src/libotutil -I$(srcdir)/src/libostree \
2014-09-08 11:47:58 -04:00
$(OT_INTERNAL_GIO_UNIX_CFLAGS) $(OT_DEP_LZMA_CFLAGS)
2013-07-26 19:25:07 -04:00
libostree_1_la_LDFLAGS = -version-number 1:0:0 -Bsymbolic-functions -export-symbols-regex '^ostree_'
2015-02-17 17:38:36 -05:00
libostree_1_la_LIBADD = libotutil.la libglnx.la libostree-kernel-args.la $(OT_INTERNAL_GIO_UNIX_LIBS) $(OT_DEP_LZMA_LIBS)
2011-12-04 12:14:08 -05:00
if USE_LIBARCHIVE
2013-07-26 19:25:07 -04:00
libostree_1_la_CFLAGS += $(OT_DEP_LIBARCHIVE_CFLAGS)
libostree_1_la_LIBADD += $(OT_DEP_LIBARCHIVE_LIBS)
2011-12-04 12:14:08 -05:00
endif
2011-12-18 18:37:48 -05:00
2013-07-09 20:14:53 -04:00
if USE_LIBSOUP
2013-07-26 19:25:07 -04:00
libostree_1_la_SOURCES += \
2013-07-09 20:14:53 -04:00
src/libostree/ostree-fetcher.h \
src/libostree/ostree-fetcher.c \
2014-07-31 18:50:19 -04:00
src/libostree/ostree-metalink.h \
src/libostree/ostree-metalink.c \
2013-07-09 20:14:53 -04:00
src/libostree/ostree-repo-pull.c \
$(NULL)
2013-07-26 19:25:07 -04:00
libostree_1_la_CFLAGS += $(OT_INTERNAL_SOUP_CFLAGS)
libostree_1_la_LIBADD += $(OT_INTERNAL_SOUP_LIBS)
endif
2014-10-20 11:06:51 -04:00
if USE_SELINUX
libostree_1_la_CFLAGS += $(OT_DEP_SELINUX_CFLAGS)
libostree_1_la_LIBADD += $(OT_DEP_SELINUX_LIBS)
endif
2013-07-26 19:25:07 -04:00
if BUILDOPT_INTROSPECTION
OSTree-1.0.gir: libostree-1.la Makefile
OSTree_1_0_gir_EXPORT_PACKAGES = ostree-1
OSTree_1_0_gir_INCLUDES = Gio-2.0
OSTree_1_0_gir_CFLAGS = $(libostree_1_la_CFLAGS)
OSTree_1_0_gir_LIBS = libostree-1.la
OSTree_1_0_gir_SCANNERFLAGS = --warn-all --identifier-prefix=Ostree --symbol-prefix=ostree
2013-09-01 11:17:38 -04:00
OSTree_1_0_gir_FILES = $(libostreeinclude_HEADERS) $(filter-out %-private.h,$(libostree_1_la_SOURCES))
2013-07-26 19:25:07 -04:00
INTROSPECTION_GIRS += OSTree-1.0.gir
gir_DATA += OSTree-1.0.gir
typelib_DATA += OSTree-1.0.typelib
2013-08-12 16:27:42 +02:00
CLEANFILES += $(gir_DATA) $(typelib_DATA)
2013-07-09 20:14:53 -04:00
endif
2013-07-26 19:25:07 -04:00
pkgconfig_DATA += src/libostree/ostree-1.pc
2013-09-02 19:43:49 -06:00
if USE_GPGME
libostree_1_la_LIBADD += $(GPGME_LIBS)
2013-09-05 12:50:36 -06:00
gpgreadme_DATA = src/libostree/README-gpg
2014-01-30 15:27:10 -05:00
gpgreadmedir = $(pkgdatadir)/trusted.gpg.d
2015-01-30 14:19:04 +01:00
EXTRA_DIST += src/libostree/README-gpg src/libostree/bupsplit.h
2013-09-02 19:43:49 -06:00
endif
2014-05-08 09:16:36 -04:00
install-mkdir-remotes-d-hook:
2014-05-09 09:06:59 -04:00
mkdir -p $(DESTDIR)$(sysconfdir)/ostree/remotes.d
2014-05-08 09:16:36 -04:00
INSTALL_DATA_HOOKS += install-mkdir-remotes-d-hook