[24167] | 1 | # schroot Makefile template |
---|
| 2 | # |
---|
| 3 | # |
---|
| 4 | # Copyright © 2004-2009 Roger Leigh <rleigh@debian.org> |
---|
| 5 | # |
---|
| 6 | # schroot is free software: you can redistribute it and/or modify it |
---|
| 7 | # under the terms of the GNU General Public License as published by |
---|
| 8 | # the Free Software Foundation, either version 3 of the License, or |
---|
| 9 | # (at your option) any later version. |
---|
| 10 | # |
---|
| 11 | # schroot is distributed in the hope that it will be useful, but |
---|
| 12 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
| 14 | # General Public License for more details. |
---|
| 15 | # |
---|
| 16 | # You should have received a copy of the GNU General Public License |
---|
| 17 | # along with this program. If not, see |
---|
| 18 | # <http://www.gnu.org/licenses/>. |
---|
| 19 | # |
---|
| 20 | ##################################################################### |
---|
| 21 | |
---|
| 22 | include $(top_srcdir)/scripts/global.mk |
---|
| 23 | |
---|
| 24 | LOCAL_CXXFLAGS = $(SCHROOT_CFLAGS) |
---|
| 25 | |
---|
| 26 | DEFS = -D_GNU_SOURCE |
---|
| 27 | |
---|
| 28 | lib_LTLIBRARIES = libsbuild.la |
---|
| 29 | |
---|
| 30 | sbuild_public_h_sources = \ |
---|
| 31 | sbuild-auth.h \ |
---|
| 32 | sbuild-auth-null.h \ |
---|
| 33 | sbuild-chroot.h \ |
---|
| 34 | sbuild-chroot-directory.h \ |
---|
| 35 | sbuild-chroot-directory-base.h \ |
---|
| 36 | sbuild-chroot-facet.h \ |
---|
| 37 | sbuild-chroot-facet-mountable.h \ |
---|
| 38 | sbuild-chroot-facet-personality.h \ |
---|
| 39 | sbuild-chroot-facet-session.h \ |
---|
| 40 | sbuild-chroot-facet-session-clonable.h \ |
---|
| 41 | sbuild-chroot-facet-source.h \ |
---|
| 42 | sbuild-chroot-facet-source-clonable.h \ |
---|
| 43 | sbuild-chroot-file.h \ |
---|
| 44 | sbuild-chroot-plain.h \ |
---|
| 45 | sbuild-chroot-config.h \ |
---|
| 46 | sbuild-ctty.h \ |
---|
| 47 | sbuild-custom-error.h \ |
---|
| 48 | sbuild-environment.h \ |
---|
| 49 | sbuild-error.h \ |
---|
| 50 | sbuild-error.tcc \ |
---|
| 51 | sbuild-format-detail.h \ |
---|
| 52 | sbuild-i18n.h \ |
---|
| 53 | sbuild-keyfile-base.h \ |
---|
| 54 | sbuild-basic-keyfile.h \ |
---|
| 55 | sbuild-basic-keyfile.tcc \ |
---|
| 56 | sbuild-keyfile.h \ |
---|
| 57 | sbuild-lock.h \ |
---|
| 58 | sbuild-log.h \ |
---|
| 59 | sbuild-mntstream.h \ |
---|
| 60 | sbuild-nostream.h \ |
---|
| 61 | sbuild-null.h \ |
---|
| 62 | sbuild-parse-error.h \ |
---|
| 63 | sbuild-parse-value.h \ |
---|
| 64 | sbuild-personality.h \ |
---|
| 65 | sbuild-regex.h \ |
---|
| 66 | sbuild-run-parts.h \ |
---|
| 67 | sbuild-session.h \ |
---|
| 68 | sbuild-types.h \ |
---|
| 69 | sbuild-tr1types.h \ |
---|
| 70 | sbuild-util.h |
---|
| 71 | |
---|
| 72 | if BUILD_PAM |
---|
| 73 | sbuild_public_auth_pam_h_sources = \ |
---|
| 74 | sbuild-auth-pam-conv.h \ |
---|
| 75 | sbuild-auth-pam-conv-tty.h \ |
---|
| 76 | sbuild-auth-pam.h \ |
---|
| 77 | sbuild-auth-pam-message.h |
---|
| 78 | endif |
---|
| 79 | |
---|
| 80 | if BUILD_BLOCKDEV |
---|
| 81 | sbuild_public_blockdev_base_h_sources = \ |
---|
| 82 | sbuild-chroot-block-device-base.h |
---|
| 83 | sbuild_public_blockdev_h_sources = \ |
---|
| 84 | sbuild-chroot-block-device.h |
---|
| 85 | endif |
---|
| 86 | |
---|
| 87 | if BUILD_LVMSNAP |
---|
| 88 | sbuild_public_blockdev_base_h_sources = \ |
---|
| 89 | sbuild-chroot-block-device-base.h |
---|
| 90 | sbuild_public_lvmsnap_h_sources = \ |
---|
| 91 | sbuild-chroot-lvm-snapshot.h |
---|
| 92 | endif |
---|
| 93 | |
---|
| 94 | if BUILD_LOOPBACK |
---|
| 95 | sbuild_public_loopback_h_sources = \ |
---|
| 96 | sbuild-chroot-loopback.h |
---|
| 97 | endif |
---|
| 98 | |
---|
| 99 | if BUILD_UNION |
---|
| 100 | sbuild_public_union_h_sources = \ |
---|
| 101 | sbuild-chroot-facet-union.h |
---|
| 102 | endif |
---|
| 103 | |
---|
| 104 | sbuild_public_cc_sources = \ |
---|
| 105 | sbuild-auth.cc \ |
---|
| 106 | sbuild-auth-null.cc \ |
---|
| 107 | sbuild-chroot.cc \ |
---|
| 108 | sbuild-chroot-directory.cc \ |
---|
| 109 | sbuild-chroot-directory-base.cc \ |
---|
| 110 | sbuild-chroot-facet-mountable.cc \ |
---|
| 111 | sbuild-chroot-facet-personality.cc \ |
---|
| 112 | sbuild-chroot-facet-session.cc \ |
---|
| 113 | sbuild-chroot-facet-session-clonable.cc \ |
---|
| 114 | sbuild-chroot-facet-source.cc \ |
---|
| 115 | sbuild-chroot-facet-source-clonable.cc \ |
---|
| 116 | sbuild-chroot-file.cc \ |
---|
| 117 | sbuild-chroot-plain.cc \ |
---|
| 118 | sbuild-chroot-config.cc \ |
---|
| 119 | sbuild-ctty.cc \ |
---|
| 120 | sbuild-environment.cc \ |
---|
| 121 | sbuild-format-detail.cc \ |
---|
| 122 | sbuild-keyfile-base.cc \ |
---|
| 123 | sbuild-lock.cc \ |
---|
| 124 | sbuild-log.cc \ |
---|
| 125 | sbuild-mntstream.cc \ |
---|
| 126 | sbuild-nostream.cc \ |
---|
| 127 | sbuild-null.cc \ |
---|
| 128 | sbuild-parse-value.cc \ |
---|
| 129 | sbuild-personality.cc \ |
---|
| 130 | sbuild-run-parts.cc \ |
---|
| 131 | sbuild-session.cc \ |
---|
| 132 | sbuild-types.cc \ |
---|
| 133 | sbuild-util.cc |
---|
| 134 | |
---|
| 135 | if BUILD_PAM |
---|
| 136 | sbuild_public_auth_pam_cc_sources = \ |
---|
| 137 | sbuild-auth-pam-conv.cc \ |
---|
| 138 | sbuild-auth-pam-conv-tty.cc \ |
---|
| 139 | sbuild-auth-pam.cc \ |
---|
| 140 | sbuild-auth-pam-message.cc |
---|
| 141 | endif |
---|
| 142 | |
---|
| 143 | if BUILD_BLOCKDEV |
---|
| 144 | sbuild_public_blockdev_base_cc_sources = \ |
---|
| 145 | sbuild-chroot-block-device-base.cc |
---|
| 146 | sbuild_public_blockdev_cc_sources = \ |
---|
| 147 | sbuild-chroot-block-device.cc |
---|
| 148 | endif |
---|
| 149 | |
---|
| 150 | if BUILD_LVMSNAP |
---|
| 151 | sbuild_public_blockdev_base_cc_sources = \ |
---|
| 152 | sbuild-chroot-block-device-base.cc |
---|
| 153 | sbuild_public_lvmsnap_cc_sources = \ |
---|
| 154 | sbuild-chroot-lvm-snapshot.cc |
---|
| 155 | endif |
---|
| 156 | |
---|
| 157 | if BUILD_LOOPBACK |
---|
| 158 | sbuild_public_loopback_cc_sources = \ |
---|
| 159 | sbuild-chroot-loopback.cc |
---|
| 160 | endif |
---|
| 161 | |
---|
| 162 | if BUILD_UNION |
---|
| 163 | sbuild_public_union_cc_sources = \ |
---|
| 164 | sbuild-chroot-facet-union.cc |
---|
| 165 | endif |
---|
| 166 | |
---|
| 167 | pkgincludedir = $(includedir)/sbuild |
---|
| 168 | |
---|
| 169 | pkginclude_HEADERS = \ |
---|
| 170 | $(sbuild_public_h_sources) \ |
---|
| 171 | $(sbuild_public_blockdev_base_h_sources) \ |
---|
| 172 | $(sbuild_public_blockdev_h_sources) \ |
---|
| 173 | $(sbuild_public_lvmsnap_h_sources) \ |
---|
| 174 | $(sbuild_public_loopback_h_sources) \ |
---|
| 175 | $(sbuild_public_union_h_sources) |
---|
| 176 | |
---|
| 177 | libsbuild_la_SOURCES = \ |
---|
| 178 | $(sbuild_public_h_sources) \ |
---|
| 179 | $(sbuild_public_cc_sources) \ |
---|
| 180 | $(sbuild_public_auth_pam_h_sources) \ |
---|
| 181 | $(sbuild_public_auth_pam_cc_sources) \ |
---|
| 182 | $(sbuild_public_blockdev_base_h_sources) \ |
---|
| 183 | $(sbuild_public_blockdev_base_cc_sources) \ |
---|
| 184 | $(sbuild_public_blockdev_h_sources) \ |
---|
| 185 | $(sbuild_public_blockdev_cc_sources) \ |
---|
| 186 | $(sbuild_public_lvmsnap_h_sources) \ |
---|
| 187 | $(sbuild_public_lvmsnap_cc_sources) \ |
---|
| 188 | $(sbuild_public_loopback_h_sources) \ |
---|
| 189 | $(sbuild_public_loopback_cc_sources) \ |
---|
| 190 | $(sbuild_public_union_h_sources) \ |
---|
| 191 | $(sbuild_public_union_cc_sources) |
---|
| 192 | |
---|
| 193 | nodist_libsbuild_la_SOURCES = \ |
---|
| 194 | sbuild-config.h |
---|
| 195 | |
---|
[24314] | 196 | libsbuild_la_LIBADD = $(UUID_LIBS) $(PAM_LIBS) $(LOCKDEV_LIBS) $(BOOST_LIBS) $(BOOST_FILESYSTEM_LIBS) $(LIBINTL) |
---|
[24167] | 197 | |
---|
| 198 | pkgconfigdatadir = $(libdir)/pkgconfig |
---|
| 199 | |
---|
| 200 | pkgconfigdata_DATA = sbuild.pc |
---|
| 201 | |
---|
| 202 | # Uncommment to build an unversioned library (version in soname) |
---|
| 203 | #libsbuild_version = -release $(SBUILD_VERSION) |
---|
| 204 | # Uncomment to build a versioned library |
---|
| 205 | libsbuild_version = -version-info $(SBUILD_CURRENT_INTERFACE):$(SBUILD_INTERFACE_AGE):$(SBUILD_BINARY_AGE) |
---|
| 206 | libsbuild_la_LDFLAGS = $(libsbuild_version) \ |
---|
| 207 | -rpath $(libdir) -no-undefined |
---|