makefile 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # -*- make -*-
  2. BASE=..
  3. SUBDIR=apt-pkg
  4. # Header location
  5. SUBDIRS = deb contrib
  6. HEADER_TARGETDIRS = apt-pkg
  7. # Bring in the default rules
  8. include ../buildlib/defaults.mak
  9. # The library name, don't forget to update init.h
  10. LIBRARY=apt-pkg
  11. MAJOR=3.1
  12. MINOR=0
  13. SLIBS=$(PTHREADLIB)
  14. # Source code for the contributed non-core things
  15. SOURCE = contrib/mmap.cc contrib/error.cc contrib/strutl.cc \
  16. contrib/configuration.cc contrib/progress.cc contrib/cmndline.cc \
  17. contrib/md5.cc contrib/cdromutl.cc contrib/crc-16.cc \
  18. contrib/fileutl.cc
  19. HEADERS = mmap.h error.h configuration.h fileutl.h cmndline.h \
  20. md5.h crc-16.h cdromutl.h strutl.h sptr.h
  21. # Source code for the core main library
  22. SOURCE+= pkgcache.cc version.cc depcache.cc \
  23. orderlist.cc tagfile.cc sourcelist.cc packagemanager.cc \
  24. pkgrecords.cc algorithms.cc acquire.cc\
  25. acquire-worker.cc acquire-method.cc init.cc clean.cc \
  26. srcrecords.cc cachefile.cc versionmatch.cc policy.cc \
  27. pkgsystem.cc indexfile.cc pkgcachegen.cc acquire-item.cc
  28. HEADERS+= algorithms.h depcache.h pkgcachegen.h cacheiterators.h \
  29. orderlist.h sourcelist.h packagemanager.h tagfile.h \
  30. init.h pkgcache.h version.h progress.h pkgrecords.h \
  31. acquire.h acquire-worker.h acquire-item.h acquire-method.h \
  32. clean.h srcrecords.h cachefile.h versionmatch.h policy.h \
  33. pkgsystem.h indexfile.h
  34. # Source code for the debian specific components
  35. # In theory the deb headers do not need to be exported..
  36. SOURCE+= deb/deblistparser.cc deb/debrecords.cc deb/dpkgpm.cc \
  37. deb/debsrcrecords.cc deb/debversion.cc deb/debsystem.cc \
  38. deb/debindexfile.cc deb/debindexfile.cc
  39. HEADERS+= debversion.h debsrcrecords.h dpkgpm.h debrecords.h \
  40. deblistparser.h debsystem.h debindexfile.h
  41. HEADERS := $(addprefix apt-pkg/,$(HEADERS))
  42. # Private header files
  43. HEADERS+= system.h
  44. include $(LIBRARY_H)