summaryrefslogtreecommitdiff
path: root/Makefile-libostree.am
blob: fbe173dca7f5f0eb7d1cfeada9574779c16f1aa0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
# Makefile for C source code
#
# Copyright (C) 2011,2014 Colin Walters <walters@verbum.org>
#
# 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.
#
# This library 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
# Lesser General Public License for more details.
#
# 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.

include Makefile-libostree-defines.am

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)

lib_LTLIBRARIES += libostree-1.la

libostreeincludedir = $(includedir)/ostree-1
libostreeinclude_HEADERS = $(libostree_public_headers)

libostree_1_la_SOURCES = \
	src/libostree/ostree-async-progress.c \
	src/libostree/ostree-core-private.h \
	src/libostree/ostree-core.c \
	src/libostree/ostree-checksum-input-stream.c \
	src/libostree/ostree-checksum-input-stream.h \
	src/libostree/ostree-chain-input-stream.c \
	src/libostree/ostree-chain-input-stream.h \
	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 \
	src/libostree/ostree-varint.h \
	src/libostree/ostree-varint.c \
	src/libostree/ostree-linuxfsutil.h \
	src/libostree/ostree-linuxfsutil.c \
	src/libostree/ostree-diff.c \
	src/libostree/ostree-mutable-tree.c \
	src/libostree/ostree-repo.c \
	src/libostree/ostree-repo-checkout.c \
	src/libostree/ostree-repo-commit.c \
	src/libostree/ostree-repo-libarchive.c \
	src/libostree/ostree-repo-prune.c \
	src/libostree/ostree-repo-refs.c \
	src/libostree/ostree-repo-traverse.c \
	src/libostree/ostree-repo-private.h \
	src/libostree/ostree-repo-file.c \
	src/libostree/ostree-repo-file-enumerator.c \
	src/libostree/ostree-repo-file-enumerator.h \
	src/libostree/ostree-sepolicy.c \
	src/libostree/ostree-sysroot-private.h \
	src/libostree/ostree-sysroot.c \
	src/libostree/ostree-sysroot-cleanup.c \
	src/libostree/ostree-sysroot-deploy.c \
	src/libostree/ostree-sysroot-upgrader.c \
	src/libostree/ostree-bootconfig-parser.c \
	src/libostree/ostree-deployment.c \
	src/libostree/ostree-bootloader.h \
	src/libostree/ostree-bootloader.c \
	src/libostree/ostree-bootloader-syslinux.h \
	src/libostree/ostree-bootloader-syslinux.c \
	src/libostree/ostree-bootloader-uboot.h \
	src/libostree/ostree-bootloader-uboot.c \
	src/libostree/ostree-gpg-verifier.c \
	src/libostree/ostree-gpg-verifier.h \
	src/libostree/ostree-repo-static-delta-core.c \
	src/libostree/ostree-repo-static-delta-processing.c \
	src/libostree/ostree-repo-static-delta-compilation.c \
	src/libostree/ostree-repo-static-delta-private.h \
	$(NULL)
if USE_LIBARCHIVE
libostree_1_la_SOURCES += src/libostree/ostree-libarchive-input-stream.h \
	src/libostree/ostree-libarchive-input-stream.c \
	$(NULL)
endif
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

libostree_1_la_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/src/libotutil -I$(srcdir)/src/libostree \
	$(OT_INTERNAL_GIO_UNIX_CFLAGS) $(OT_DEP_LZMA_CFLAGS)
libostree_1_la_LDFLAGS = -version-number 1:0:0 -Bsymbolic-functions -export-symbols-regex '^ostree_'
libostree_1_la_LIBADD = libotutil.la libostree-kernel-args.la $(OT_INTERNAL_GIO_UNIX_LIBS) $(OT_DEP_LZMA_LIBS)

if USE_LIBARCHIVE
libostree_1_la_CFLAGS += $(OT_DEP_LIBARCHIVE_CFLAGS)
libostree_1_la_LIBADD += $(OT_DEP_LIBARCHIVE_LIBS)
endif

if USE_LIBSOUP
libostree_1_la_SOURCES += \
	src/libostree/ostree-fetcher.h \
	src/libostree/ostree-fetcher.c \
	src/libostree/ostree-metalink.h \
	src/libostree/ostree-metalink.c \
	src/libostree/ostree-repo-pull.c \
	$(NULL)
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 = $(libostreeinclude_HEADERS) $(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

CLEANFILES += $(gir_DATA) $(typelib_DATA)
endif

pkgconfig_DATA += src/libostree/ostree-1.pc

if USE_GPGME
libostree_1_la_LIBADD += $(GPGME_LIBS)

gpgreadme_DATA = src/libostree/README-gpg
gpgreadmedir = $(pkgdatadir)/trusted.gpg.d
EXTRA_DIST += src/libostree/README-gpg
endif

install-mkdir-remotes-d-hook:
	mkdir -p $(DESTDIR)$(sysconfdir)/ostree/remotes.d
INSTALL_DATA_HOOKS += install-mkdir-remotes-d-hook