makefile 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. LIBEXT=$(GLIBC_VER)$(LIBSTDCPP_VER)
  12. MAJOR=3.1
  13. MINOR=1
  14. SLIBS=$(PTHREADLIB)
  15. # Source code for the contributed non-core things
  16. SOURCE = contrib/mmap.cc contrib/error.cc contrib/strutl.cc \
  17. contrib/configuration.cc contrib/progress.cc contrib/cmndline.cc \
  18. contrib/md5.cc contrib/cdromutl.cc contrib/crc-16.cc \
  19. contrib/fileutl.cc
  20. HEADERS = mmap.h error.h configuration.h fileutl.h cmndline.h \
  21. md5.h crc-16.h cdromutl.h strutl.h sptr.h
  22. # Source code for the core main library
  23. SOURCE+= pkgcache.cc version.cc depcache.cc \
  24. orderlist.cc tagfile.cc sourcelist.cc packagemanager.cc \
  25. pkgrecords.cc algorithms.cc acquire.cc\
  26. acquire-worker.cc acquire-method.cc init.cc clean.cc \
  27. srcrecords.cc cachefile.cc versionmatch.cc policy.cc \
  28. pkgsystem.cc indexfile.cc pkgcachegen.cc acquire-item.cc
  29. HEADERS+= algorithms.h depcache.h pkgcachegen.h cacheiterators.h \
  30. orderlist.h sourcelist.h packagemanager.h tagfile.h \
  31. init.h pkgcache.h version.h progress.h pkgrecords.h \
  32. acquire.h acquire-worker.h acquire-item.h acquire-method.h \
  33. clean.h srcrecords.h cachefile.h versionmatch.h policy.h \
  34. pkgsystem.h indexfile.h
  35. # Source code for the debian specific components
  36. # In theory the deb headers do not need to be exported..
  37. SOURCE+= deb/deblistparser.cc deb/debrecords.cc deb/dpkgpm.cc \
  38. deb/debsrcrecords.cc deb/debversion.cc deb/debsystem.cc \
  39. deb/debindexfile.cc deb/debindexfile.cc
  40. HEADERS+= debversion.h debsrcrecords.h dpkgpm.h debrecords.h \
  41. deblistparser.h debsystem.h debindexfile.h
  42. HEADERS := $(addprefix apt-pkg/,$(HEADERS))
  43. # Private header files
  44. HEADERS+= system.h
  45. include $(LIBRARY_H)