makefile 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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 apt-private/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 apt-private/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 apt-private/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 apt-private/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 apt-private/makefile
  34. SOURCE = apt-cdrom.cc
  35. include $(PROGRAM_H)
  36. # The apt-mark program
  37. PROGRAM=apt-mark
  38. SLIBS = -lapt-pkg -lapt-private $(INTLLIBS)
  39. LIB_MAKES = apt-pkg/makefile apt-private/makefile
  40. SOURCE = apt-mark.cc
  41. include $(PROGRAM_H)
  42. # The apt-helper
  43. PROGRAM=apt-helper
  44. SLIBS = -lapt-pkg -lapt-private $(INTLLIBS) -lresolv
  45. LIB_MAKES = apt-pkg/makefile apt-private/makefile
  46. SOURCE = apt-helper.cc
  47. include $(PROGRAM_H)
  48. # The apt-report-mirror-failure program
  49. #SOURCE=apt-report-mirror-failure
  50. #TO=$(BIN)
  51. #TARGET=program
  52. #include $(COPY_H)
  53. #
  54. # the following programs are shipped in apt-utils
  55. #
  56. APT_DOMAIN:=apt-utils
  57. # The apt-sortpkgs program
  58. PROGRAM=apt-sortpkgs
  59. SLIBS = -lapt-pkg -lapt-private $(INTLLIBS)
  60. LIB_MAKES = apt-pkg/makefile apt-private/makefile
  61. SOURCE = apt-sortpkgs.cc
  62. include $(PROGRAM_H)
  63. # The apt-extracttemplates program
  64. PROGRAM=apt-extracttemplates
  65. SLIBS = -lapt-pkg -lapt-inst -lapt-private $(INTLLIBS)
  66. LIB_MAKES = apt-pkg/makefile apt-inst/makefile apt-private/makefile
  67. SOURCE = apt-extracttemplates.cc
  68. include $(PROGRAM_H)
  69. # The internal solver acting as an external
  70. PROGRAM=apt-internal-solver
  71. SLIBS = -lapt-pkg -lapt-private $(INTLLIBS)
  72. LIB_MAKES = apt-pkg/makefile apt-private/makefile
  73. SOURCE = apt-internal-solver.cc
  74. include $(PROGRAM_H)
  75. # This just dumps out the state
  76. PROGRAM=apt-dump-solver
  77. SLIBS = -lapt-pkg $(INTLLIBS)
  78. LIB_MAKES = apt-pkg/makefile
  79. SOURCE = apt-dump-solver.cc
  80. include $(PROGRAM_H)
  81. # The apt-key program
  82. apt-key: apt-key.in
  83. sed -e "s#&keyring-filename;#$(shell ../vendor/getinfo keyring-filename)#" \
  84. -e "s#&keyring-removed-filename;#$(shell ../vendor/getinfo keyring-removed-filename)#" \
  85. -e "s#&keyring-master-filename;#$(shell ../vendor/getinfo keyring-master-filename)#" \
  86. -e "s#&keyring-uri;#$(shell ../vendor/getinfo keyring-uri)#" \
  87. -e "s#&keyring-package;#$(shell ../vendor/getinfo keyring-package)#" $< > $@
  88. chmod 755 $@
  89. SOURCE=apt-key
  90. TO=$(BIN)
  91. TARGET=program
  92. include $(COPY_H)
  93. clean: clean/apt-key
  94. clean/apt-key:
  95. rm -f apt-key