makefile 1.9 KB

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