blob: 3235efe773f4cb6d7a934711726d31ef5d158682 (
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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
|
# schroot Makefile template
#
#
# Copyright © 2004-2009 Roger Leigh <rleigh@debian.org>
#
# schroot 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 3 of the License, or
# (at your option) any later version.
#
# schroot 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.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see
# <http://www.gnu.org/licenses/>.
#
#####################################################################
include $(top_srcdir)/scripts/global.mk
LOCAL_CXXFLAGS = $(SCHROOT_CFLAGS)
DEFS = -D_GNU_SOURCE
lib_LTLIBRARIES = libsbuild.la
sbuild_public_h_sources = \
sbuild-auth.h \
sbuild-auth-null.h \
sbuild-chroot.h \
sbuild-chroot-directory.h \
sbuild-chroot-directory-base.h \
sbuild-chroot-file.h \
sbuild-chroot-mountable.h \
sbuild-chroot-plain.h \
sbuild-chroot-source.h \
sbuild-chroot-config.h \
sbuild-chroot-union.h \
sbuild-ctty.h \
sbuild-custom-error.h \
sbuild-dirstream.h \
sbuild-environment.h \
sbuild-error.h \
sbuild-error.tcc \
sbuild-format-detail.h \
sbuild-i18n.h \
sbuild-keyfile-base.h \
sbuild-basic-keyfile.h \
sbuild-basic-keyfile.tcc \
sbuild-keyfile.h \
sbuild-lock.h \
sbuild-log.h \
sbuild-mntstream.h \
sbuild-nostream.h \
sbuild-null.h \
sbuild-parse-error.h \
sbuild-parse-value.h \
sbuild-personality.h \
sbuild-regex.h \
sbuild-run-parts.h \
sbuild-session.h \
sbuild-types.h \
sbuild-tr1types.h \
sbuild-util.h
if BUILD_PAM
sbuild_public_auth_pam_h_sources = \
sbuild-auth-pam-conv.h \
sbuild-auth-pam-conv-tty.h \
sbuild-auth-pam.h \
sbuild-auth-pam-message.h
endif
if BUILD_BLOCKDEV
sbuild_public_blockdev_base_h_sources = \
sbuild-chroot-block-device-base.h
sbuild_public_blockdev_h_sources = \
sbuild-chroot-block-device.h
endif
if BUILD_LVMSNAP
sbuild_public_blockdev_base_h_sources = \
sbuild-chroot-block-device-base.h
sbuild_public_lvmsnap_h_sources = \
sbuild-chroot-lvm-snapshot.h
endif
if BUILD_LOOPBACK
sbuild_public_loopback_h_sources = \
sbuild-chroot-loopback.h
endif
if BUILD_UNION
sbuild_public_union_h_sources = \
sbuild-chroot-union.h
endif
sbuild_public_cc_sources = \
sbuild-auth.cc \
sbuild-auth-null.cc \
sbuild-chroot.cc \
sbuild-chroot-directory.cc \
sbuild-chroot-directory-base.cc \
sbuild-chroot-file.cc \
sbuild-chroot-mountable.cc \
sbuild-chroot-plain.cc \
sbuild-chroot-source.cc \
sbuild-chroot-config.cc \
sbuild-ctty.cc \
sbuild-dirstream.cc \
sbuild-environment.cc \
sbuild-format-detail.cc \
sbuild-keyfile-base.cc \
sbuild-lock.cc \
sbuild-log.cc \
sbuild-mntstream.cc \
sbuild-nostream.cc \
sbuild-null.cc \
sbuild-parse-value.cc \
sbuild-personality.cc \
sbuild-run-parts.cc \
sbuild-session.cc \
sbuild-types.cc \
sbuild-util.cc
if BUILD_PAM
sbuild_public_auth_pam_cc_sources = \
sbuild-auth-pam-conv.cc \
sbuild-auth-pam-conv-tty.cc \
sbuild-auth-pam.cc \
sbuild-auth-pam-message.cc
endif
if BUILD_BLOCKDEV
sbuild_public_blockdev_base_cc_sources = \
sbuild-chroot-block-device-base.cc
sbuild_public_blockdev_cc_sources = \
sbuild-chroot-block-device.cc
endif
if BUILD_LVMSNAP
sbuild_public_blockdev_base_cc_sources = \
sbuild-chroot-block-device-base.cc
sbuild_public_lvmsnap_cc_sources = \
sbuild-chroot-lvm-snapshot.cc
endif
if BUILD_LOOPBACK
sbuild_public_loopback_cc_sources = \
sbuild-chroot-loopback.cc
endif
if BUILD_UNION
sbuild_public_union_cc_sources = \
sbuild-chroot-union.cc
endif
pkgincludedir = $(includedir)/sbuild
pkginclude_HEADERS = \
$(sbuild_public_h_sources) \
$(sbuild_public_blockdev_base_h_sources) \
$(sbuild_public_blockdev_h_sources) \
$(sbuild_public_lvmsnap_h_sources) \
$(sbuild_public_loopback_h_sources) \
$(sbuild_public_union_h_sources)
libsbuild_la_SOURCES = \
$(sbuild_public_h_sources) \
$(sbuild_public_cc_sources) \
$(sbuild_public_auth_pam_h_sources) \
$(sbuild_public_auth_pam_cc_sources) \
$(sbuild_public_blockdev_base_h_sources) \
$(sbuild_public_blockdev_base_cc_sources) \
$(sbuild_public_blockdev_h_sources) \
$(sbuild_public_blockdev_cc_sources) \
$(sbuild_public_lvmsnap_h_sources) \
$(sbuild_public_lvmsnap_cc_sources) \
$(sbuild_public_loopback_h_sources) \
$(sbuild_public_loopback_cc_sources) \
$(sbuild_public_union_h_sources) \
$(sbuild_public_union_cc_sources)
nodist_libsbuild_la_SOURCES = \
sbuild-config.h
libsbuild_la_LIBADD = $(UUID_LIBS) $(PAM_LIBS) $(LOCKDEV_LIBS) $(BOOST_LIBS) $(LIBINTL)
pkgconfigdatadir = $(libdir)/pkgconfig
pkgconfigdata_DATA = sbuild.pc
# Uncommment to build an unversioned library (version in soname)
#libsbuild_version = -release $(SBUILD_VERSION)
# Uncomment to build a versioned library
libsbuild_version = -version-info $(SBUILD_CURRENT_INTERFACE):$(SBUILD_INTERFACE_AGE):$(SBUILD_BINARY_AGE)
libsbuild_la_LDFLAGS = $(libsbuild_version) \
-rpath $(libdir) -no-undefined
|