makefile 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. # -*- make -*-
  2. BASE=..
  3. SUBDIR=methods
  4. # Bring in the default rules
  5. include ../buildlib/defaults.mak
  6. BIN := $(BIN)/methods
  7. include ../buildlib/libversion.mak
  8. APT_DOMAIN := apt
  9. # The file method
  10. PROGRAM=file
  11. SLIBS = -lapt-pkg $(INTLLIBS)
  12. LIB_MAKES = apt-pkg/makefile
  13. SOURCE = file.cc
  14. include $(PROGRAM_H)
  15. # The copy method
  16. PROGRAM=copy
  17. SLIBS = -lapt-pkg $(INTLLIBS)
  18. LIB_MAKES = apt-pkg/makefile
  19. SOURCE = copy.cc
  20. include $(PROGRAM_H)
  21. # The store method
  22. PROGRAM=store
  23. SLIBS = -lapt-pkg $(INTLLIBS)
  24. LIB_MAKES = apt-pkg/makefile
  25. SOURCE = store.cc
  26. include $(PROGRAM_H)
  27. # The gpgv method
  28. PROGRAM=gpgv
  29. SLIBS = -lapt-pkg $(INTLLIBS)
  30. LIB_MAKES = apt-pkg/makefile
  31. SOURCE = gpgv.cc
  32. include $(PROGRAM_H)
  33. # The cdrom method
  34. PROGRAM=cdrom
  35. SLIBS = -lapt-pkg $(INTLLIBS)
  36. LIB_MAKES = apt-pkg/makefile
  37. SOURCE = cdrom.cc
  38. include $(PROGRAM_H)
  39. # The http method
  40. PROGRAM=http
  41. SLIBS = -lapt-pkg $(SOCKETLIBS) $(INTLLIBS) -lresolv
  42. LIB_MAKES = apt-pkg/makefile
  43. SOURCE = http.cc http_main.cc rfc2553emu.cc connect.cc server.cc
  44. include $(PROGRAM_H)
  45. # The https method
  46. PROGRAM=https
  47. SLIBS = -lapt-pkg -lcurl $(INTLLIBS) -lresolv
  48. LIB_MAKES = apt-pkg/makefile
  49. SOURCE = https.cc server.cc
  50. include $(PROGRAM_H)
  51. # The ftp method
  52. PROGRAM=ftp
  53. SLIBS = -lapt-pkg $(SOCKETLIBS) $(INTLLIBS) -lresolv
  54. LIB_MAKES = apt-pkg/makefile
  55. SOURCE = ftp.cc rfc2553emu.cc connect.cc
  56. include $(PROGRAM_H)
  57. # The rred method
  58. PROGRAM=rred
  59. SLIBS = -lapt-pkg $(SOCKETLIBS) $(INTLLIBS)
  60. LIB_MAKES = apt-pkg/makefile
  61. SOURCE = rred.cc
  62. include $(PROGRAM_H)
  63. # The rsh method
  64. PROGRAM=rsh
  65. SLIBS = -lapt-pkg $(INTLLIBS)
  66. LIB_MAKES = apt-pkg/makefile
  67. SOURCE = rsh.cc
  68. include $(PROGRAM_H)
  69. # The mirror method
  70. PROGRAM=mirror
  71. SLIBS = -lapt-pkg $(SOCKETLIBS) -lresolv
  72. LIB_MAKES = apt-pkg/makefile
  73. SOURCE = mirror.cc http.cc rfc2553emu.cc connect.cc server.cc
  74. include $(PROGRAM_H)
  75. # SSH method symlink
  76. binary: $(BIN)/ssh
  77. veryclean: clean-$(BIN)/ssh
  78. $(BIN)/ssh:
  79. echo "Installing ssh method link"
  80. ln -fs rsh $(BIN)/ssh
  81. clean-$(BIN)/ssh:
  82. -rm $(BIN)/ssh
  83. # create compat links for all compressors
  84. COMPRESSORS=gzip bzip2 lzma xz
  85. binary: $(addprefix $(BIN)/,$(COMPRESSORS))
  86. veryclean: $(addprefix clean-$(BIN)/,$(COMPRESSORS))
  87. $(addprefix $(BIN)/,$(COMPRESSORS)): $(BIN)/store
  88. echo "Installing $(notdir $@) method link"
  89. ln -fs store $@
  90. $(addprefix clean-$(BIN)/,$(COMPRESSORS)):
  91. -rm $(BIN)/$(notdir $@)