2011-11-02 15:45:32 -04:00
# Makefile for C source code
#
# Copyright (C) 2011 Colin Walters <walters@verbum.org>
#
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-07-26 19:25:07 -04:00
lib_LTLIBRARIES += libostree-1.la
2011-11-02 15:45:32 -04:00
2013-07-26 19:25:07 -04:00
libostreeheadersdir = $(includedir)/ostree-1
libostreeheaders_DATA = \
src/libostree/ostree.h \
2011-11-14 15:39:38 -05:00
src/libostree/ostree-core.h \
2013-07-26 19:25:07 -04:00
src/libostree/ostree-mutable-tree.h \
src/libostree/ostree-repo.h \
src/libostree/ostree-types.h \
src/libostree/ostree-repo-file.h \
src/libostree/ostree-diff.h \
$(NULL)
libostree_1_la_SOURCES = \
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 \
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-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 \
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
2013-07-26 19:25:07 -04:00
libostree_1_la_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/src/libgsystem -I$(srcdir)/src/libotutil -I$(srcdir)/src/libostree -DLOCALEDIR=\"$(datadir)/locale\" $(OT_INTERNAL_GIO_UNIX_CFLAGS)
libostree_1_la_LDFLAGS = -version-number 1:0:0 -Bsymbolic-functions -export-symbols-regex '^ostree_'
libostree_1_la_LIBADD = libotutil.la $(OT_INTERNAL_GIO_UNIX_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 \
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
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
OSTree_1_0_gir_FILES = $(libostreeheaders_DATA) $(filter-out %-private.h,$(libostree_1_la_SOURCES))
INTROSPECTION_GIRS += OSTree-1.0.gir
gir_DATA += OSTree-1.0.gir
typelib_DATA += OSTree-1.0.typelib
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-07-09 20:14:53 -04:00
2013-06-04 13:18:36 -04:00
INSTALL_DATA_HOOKS += install-libostree-data-hook
install-libostree-data-hook:
2013-07-26 19:25:07 -04:00
rm -f $(DESTDIR)$(libdir)/libostree-1.la