You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

71 lines
2.7 KiB

  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. APT_DOMAIN:=libapt-pkg$(LIBAPTPKG_MAJOR)
  22. # Source code for the contributed non-core things
  23. SOURCE = contrib/mmap.cc contrib/error.cc contrib/strutl.cc \
  24. contrib/configuration.cc contrib/progress.cc contrib/cmndline.cc \
  25. contrib/hashsum.cc contrib/md5.cc contrib/sha1.cc \
  26. contrib/sha2_internal.cc contrib/hashes.cc \
  27. contrib/cdromutl.cc contrib/crc-16.cc contrib/netrc.cc \
  28. contrib/fileutl.cc contrib/gpgv.cc
  29. HEADERS = mmap.h error.h configuration.h fileutl.h cmndline.h netrc.h \
  30. md5.h crc-16.h cdromutl.h strutl.h sptr.h sha1.h sha2.h sha256.h \
  31. sha2_internal.h hashes.h hashsum_template.h \
  32. macros.h weakptr.h gpgv.h
  33. # Source code for the core main library
  34. SOURCE+= pkgcache.cc version.cc depcache.cc \
  35. orderlist.cc tagfile.cc sourcelist.cc packagemanager.cc \
  36. pkgrecords.cc algorithms.cc acquire.cc\
  37. acquire-worker.cc acquire-method.cc init.cc clean.cc \
  38. srcrecords.cc cachefile.cc versionmatch.cc policy.cc \
  39. pkgsystem.cc indexfile.cc pkgcachegen.cc acquire-item.cc \
  40. indexrecords.cc vendor.cc vendorlist.cc cdrom.cc indexcopy.cc \
  41. aptconfiguration.cc cachefilter.cc cacheset.cc edsp.cc iprogress.cc
  42. HEADERS+= algorithms.h depcache.h pkgcachegen.h cacheiterators.h \
  43. orderlist.h sourcelist.h packagemanager.h tagfile.h \
  44. init.h pkgcache.h version.h progress.h pkgrecords.h \
  45. acquire.h acquire-worker.h acquire-item.h acquire-method.h \
  46. clean.h srcrecords.h cachefile.h versionmatch.h policy.h \
  47. pkgsystem.h indexfile.h metaindex.h indexrecords.h vendor.h \
  48. vendorlist.h cdrom.h indexcopy.h aptconfiguration.h \
  49. cachefilter.h cacheset.h edsp.h iprogress.h
  50. # Source code for the debian specific components
  51. # In theory the deb headers do not need to be exported..
  52. SOURCE+= deb/deblistparser.cc deb/debrecords.cc deb/dpkgpm.cc \
  53. deb/debsrcrecords.cc deb/debversion.cc deb/debsystem.cc \
  54. deb/debindexfile.cc deb/debindexfile.cc deb/debmetaindex.cc
  55. HEADERS+= debversion.h debsrcrecords.h dpkgpm.h debrecords.h \
  56. deblistparser.h debsystem.h debindexfile.h debmetaindex.h
  57. # Source code for the APT resolver interface specific components
  58. SOURCE+= edsp/edsplistparser.cc edsp/edspindexfile.cc edsp/edspsystem.cc
  59. HEADERS+= edsplistparser.h edspindexfile.h edspsystem.h
  60. HEADERS := $(addprefix apt-pkg/,$(HEADERS))
  61. include $(LIBRARY_H)