makefile 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. # -*- make -*-
  2. BASE=..
  3. SUBDIR=cmdline
  4. # Bring in the default rules
  5. include ../buildlib/defaults.mak
  6. # The apt program
  7. PROGRAM=apt
  8. SLIBS = -lapt-pkg -lapt-private $(INTLLIBS)
  9. LIB_MAKES = apt-pkg/makefile
  10. SOURCE = apt.cc
  11. include $(PROGRAM_H)
  12. # The apt-cache program
  13. PROGRAM=apt-cache
  14. SLIBS = -lapt-pkg -lapt-private $(INTLLIBS)
  15. LIB_MAKES = apt-pkg/makefile
  16. SOURCE = apt-cache.cc
  17. include $(PROGRAM_H)
  18. # The apt-get program
  19. PROGRAM=apt-get
  20. SLIBS = -lapt-pkg -lapt-private $(INTLLIBS)
  21. LIB_MAKES = apt-pkg/makefile
  22. SOURCE = apt-get.cc
  23. include $(PROGRAM_H)
  24. # The apt-config program
  25. PROGRAM=apt-config
  26. SLIBS = -lapt-pkg -lapt-private $(INTLLIBS)
  27. LIB_MAKES = apt-pkg/makefile
  28. SOURCE = apt-config.cc
  29. include $(PROGRAM_H)
  30. # The apt-cdrom program
  31. PROGRAM=apt-cdrom
  32. SLIBS = -lapt-pkg -lapt-private $(INTLLIBS)
  33. LIB_MAKES = apt-pkg/makefile
  34. SOURCE = apt-cdrom.cc
  35. include $(PROGRAM_H)
  36. # The apt-key program
  37. apt-key: apt-key.in
  38. sed -e "s#&keyring-filename;#$(shell ../vendor/getinfo keyring-filename)#" \
  39. -e "s#&keyring-removed-filename;#$(shell ../vendor/getinfo keyring-removed-filename)#" \
  40. -e "s#&keyring-master-filename;#$(shell ../vendor/getinfo keyring-master-filename)#" \
  41. -e "s#&keyring-uri;#$(shell ../vendor/getinfo keyring-uri)#" \
  42. -e "s#&keyring-package;#$(shell ../vendor/getinfo keyring-package)#" $< > $@
  43. chmod 755 $@
  44. SOURCE=apt-key
  45. TO=$(BIN)
  46. TARGET=program
  47. include $(COPY_H)
  48. # The apt-mark program
  49. PROGRAM=apt-mark
  50. SLIBS = -lapt-pkg -lapt-private $(INTLLIBS)
  51. LIB_MAKES = apt-pkg/makefile
  52. SOURCE = apt-mark.cc
  53. include $(PROGRAM_H)
  54. # The apt-report-mirror-failure program
  55. #SOURCE=apt-report-mirror-failure
  56. #TO=$(BIN)
  57. #TARGET=program
  58. #include $(COPY_H)
  59. #
  60. # the following programs are shipped in apt-utils
  61. #
  62. APT_DOMAIN:=apt-utils
  63. # The apt-sortpkgs program
  64. PROGRAM=apt-sortpkgs
  65. SLIBS = -lapt-pkg $(INTLLIBS)
  66. LIB_MAKES = apt-pkg/makefile
  67. SOURCE = apt-sortpkgs.cc
  68. include $(PROGRAM_H)
  69. # The apt-extracttemplates program
  70. PROGRAM=apt-extracttemplates
  71. SLIBS = -lapt-pkg -lapt-inst $(INTLLIBS)
  72. LIB_MAKES = apt-pkg/makefile
  73. SOURCE = apt-extracttemplates.cc
  74. include $(PROGRAM_H)
  75. # The internal solver acting as an external
  76. PROGRAM=apt-internal-solver
  77. SLIBS = -lapt-pkg $(INTLLIBS)
  78. LIB_MAKES = apt-pkg/makefile
  79. SOURCE = apt-internal-solver.cc
  80. include $(PROGRAM_H)
  81. # This just dumps out the state
  82. PROGRAM=apt-dump-solver
  83. SLIBS = -lapt-pkg $(INTLLIBS)
  84. LIB_MAKES = apt-pkg/makefile
  85. SOURCE = apt-dump-solver.cc
  86. include $(PROGRAM_H)