libversion.mak 1.1 KB

12345678910111213141516171819202122
  1. # -*- make -*-
  2. # Version number of libapt-pkg.
  3. # Please increase MAJOR with each ABI break,
  4. # with each non-ABI break to the lib, please increase RELEASE.
  5. # The versionnumber is extracted from apt-pkg/init.h - see also there.
  6. LIBAPTPKG_MAJOR=$(shell awk -v ORS='.' '/^\#define APT_PKG_M/ {print $$3}' $(BASE)/apt-pkg/init.h | sed 's/\.$$//')
  7. LIBAPTPKG_RELEASE=$(shell grep -E '^\#define APT_PKG_RELEASE' $(BASE)/apt-pkg/init.h | cut -d ' ' -f 3)
  8. # Version number of libapt-inst
  9. # Please increase MAJOR with each ABI break,
  10. # with each non-ABI break to the lib, please increase MINOR.
  11. # The versionnumber is extracted from apt-inst/makefile - see also there.
  12. LIBAPTINST_MAJOR=$(shell egrep '^MAJOR=' $(BASE)/apt-inst/makefile |cut -d '=' -f 2)
  13. LIBAPTINST_MINOR=$(shell egrep '^MINOR=' $(BASE)/apt-inst/makefile |cut -d '=' -f 2)
  14. # FIXME: In previous releases this lovely variable includes
  15. # the detected libc and libdc++ version. As this is bogus we
  16. # want to drop this, but this a ABI break.
  17. # And we don't want to do this now. So we hardcode a value here,
  18. # and drop it later on (hopefully as fast as possible).
  19. LIBEXT=-libc6.9-6