2011-11-02 23:45:32 +04:00
# Makefile for C source code
#
# Copyright (C) 2011 Colin Walters <walters@verbum.org>
#
2011-11-10 22:17:04 +04: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 23:45:32 +04:00
#
2011-11-10 22:17:04 +04:00
# This library is distributed in the hope that it will be useful,
2011-11-02 23:45:32 +04:00
# but WITHOUT ANY WARRANTY; without even the implied warranty of
2011-11-10 22:17:04 +04:00
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
2011-11-02 23:45:32 +04:00
#
2011-11-10 22:17:04 +04: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 23:45:32 +04:00
2011-11-30 03:25:07 +04:00
privlib_LTLIBRARIES += libostree.la
2011-11-02 23:45:32 +04:00
2011-11-15 00:39:38 +04:00
libostree_la_SOURCES = src/libostree/ostree.h \
src/libostree/ostree-core.c \
src/libostree/ostree-core.h \
2012-04-11 00:40:22 +04:00
src/libostree/ostree-checksum-input-stream.c \
src/libostree/ostree-checksum-input-stream.h \
2012-04-11 23:18:34 +04:00
src/libostree/ostree-chain-input-stream.c \
src/libostree/ostree-chain-input-stream.h \
2011-12-21 22:34:10 +04:00
src/libostree/ostree-mutable-tree.c \
src/libostree/ostree-mutable-tree.h \
2011-11-15 00:39:38 +04:00
src/libostree/ostree-repo.c \
src/libostree/ostree-repo.h \
src/libostree/ostree-repo-file.c \
src/libostree/ostree-repo-file.h \
src/libostree/ostree-repo-file-enumerator.c \
src/libostree/ostree-repo-file-enumerator.h \
2012-03-06 17:45:43 +04:00
src/libostree/ostree-types.h \
2012-04-02 23:51:23 +04:00
src/libostree/ostree-traverse.c \
src/libostree/ostree-traverse.h \
2012-04-04 07:45:48 +04:00
src/libostree/ostree-sysroot.c \
src/libostree/ostree-sysroot.h \
2011-11-02 23:45:32 +04:00
$(NULL)
2011-12-04 21:14:08 +04:00
if USE_LIBARCHIVE
libostree_la_SOURCES += src/libostree/ostree-libarchive-input-stream.h \
src/libostree/ostree-libarchive-input-stream.c \
$(NULL)
endif
2011-11-30 18:21:14 +04:00
libostree_la_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/src/libotutil -I$(srcdir)/src/libostree -DLOCALEDIR=\"$(datadir)/locale\" $(OT_DEP_GIO_UNIX_CFLAGS)
2012-05-03 21:40:23 +04:00
libostree_la_LDFLAGS = -avoid-version -Bsymbolic-functions
2011-11-30 18:21:14 +04:00
libostree_la_LIBADD = libotutil.la $(OT_DEP_GIO_UNIX_LIBS)
2011-12-04 21:14:08 +04:00
if USE_LIBARCHIVE
libostree_la_CFLAGS += $(OT_DEP_LIBARCHIVE_CFLAGS)
libostree_la_LIBADD += $(OT_DEP_LIBARCHIVE_LIBS)
endif
2011-12-19 03:37:48 +04:00
install-data-hook:
rm $(DESTDIR)$(privlibdir)/libostree.la