makefile 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. # -*- make -*-
  2. BASE=..
  3. SUBDIR=apt-pkg
  4. # Header location
  5. SUBDIRS = deb edsp contrib
  6. HEADER_TARGETDIRS = apt-pkg
  7. # Bring in the default rules
  8. include ../buildlib/defaults.mak
  9. # The library name and version (indirectly used from init.h)
  10. include ../buildlib/libversion.mak
  11. LIBRARY=apt-pkg
  12. MAJOR=$(LIBAPTPKG_MAJOR)
  13. MINOR=$(LIBAPTPKG_RELEASE)
  14. SLIBS=$(PTHREADLIB) $(INTLLIBS) -lutil -ldl
  15. ifeq ($(HAVE_ZLIB),yes)
  16. SLIBS+= -lz
  17. endif
  18. ifeq ($(HAVE_BZ2),yes)
  19. SLIBS+= -lbz2
  20. endif
  21. ifeq ($(HAVE_LZMA),yes)
  22. SLIBS+= -llzma
  23. endif
  24. APT_DOMAIN:=libapt-pkg$(LIBAPTPKG_MAJOR)
  25. # Source code for the contributed non-core things
  26. SOURCE = contrib/mmap.cc contrib/error.cc contrib/strutl.cc \
  27. contrib/configuration.cc contrib/progress.cc contrib/cmndline.cc \
  28. contrib/hashsum.cc contrib/md5.cc contrib/sha1.cc \
  29. contrib/sha2_internal.cc contrib/hashes.cc \
  30. contrib/cdromutl.cc contrib/crc-16.cc contrib/netrc.cc \
  31. contrib/fileutl.cc contrib/gpgv.cc
  32. HEADERS = mmap.h error.h configuration.h fileutl.h cmndline.h netrc.h \
  33. md5.h crc-16.h cdromutl.h strutl.h sptr.h sha1.h sha2.h sha256.h \
  34. sha2_internal.h hashes.h hashsum_template.h \
  35. macros.h weakptr.h gpgv.h
  36. # Source code for the core main library
  37. SOURCE+= pkgcache.cc version.cc depcache.cc \
  38. orderlist.cc tagfile.cc sourcelist.cc packagemanager.cc \
  39. pkgrecords.cc algorithms.cc acquire.cc\
  40. acquire-worker.cc acquire-method.cc init.cc clean.cc \
  41. srcrecords.cc cachefile.cc versionmatch.cc policy.cc \
  42. pkgsystem.cc indexfile.cc pkgcachegen.cc acquire-item.cc \
  43. indexrecords.cc vendor.cc vendorlist.cc cdrom.cc indexcopy.cc \
  44. aptconfiguration.cc cachefilter.cc cacheset.cc edsp.cc \
  45. install-progress.cc upgrade.cc update.cc
  46. HEADERS+= algorithms.h depcache.h pkgcachegen.h cacheiterators.h \
  47. orderlist.h sourcelist.h packagemanager.h tagfile.h \
  48. init.h pkgcache.h version.h progress.h pkgrecords.h \
  49. acquire.h acquire-worker.h acquire-item.h acquire-method.h \
  50. clean.h srcrecords.h cachefile.h versionmatch.h policy.h \
  51. pkgsystem.h indexfile.h metaindex.h indexrecords.h vendor.h \
  52. vendorlist.h cdrom.h indexcopy.h aptconfiguration.h \
  53. cachefilter.h cacheset.h edsp.h install-progress.h \
  54. upgrade.h update.h
  55. # Source code for the debian specific components
  56. # In theory the deb headers do not need to be exported..
  57. SOURCE+= deb/deblistparser.cc deb/debrecords.cc deb/dpkgpm.cc \
  58. deb/debsrcrecords.cc deb/debversion.cc deb/debsystem.cc \
  59. deb/debindexfile.cc deb/debindexfile.cc deb/debmetaindex.cc
  60. HEADERS+= debversion.h debsrcrecords.h dpkgpm.h debrecords.h \
  61. deblistparser.h debsystem.h debindexfile.h debmetaindex.h
  62. # Source code for the APT resolver interface specific components
  63. SOURCE+= edsp/edsplistparser.cc edsp/edspindexfile.cc edsp/edspsystem.cc
  64. HEADERS+= edsplistparser.h edspindexfile.h edspsystem.h
  65. HEADERS := $(addprefix apt-pkg/,$(HEADERS))
  66. include $(LIBRARY_H)