You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

83 lines
1.5 KiB

  1. # -*- make -*-
  2. BASE=..
  3. SUBDIR=methods
  4. # Bring in the default rules
  5. include ../buildlib/defaults.mak
  6. BIN := $(BIN)/methods
  7. # FIXME..
  8. LIB_APT_PKG_MAJOR = 3.10
  9. APT_DOMAIN := libapt-pkg$(LIB_APT_PKG_MAJOR)
  10. # The file method
  11. PROGRAM=file
  12. SLIBS = -lapt-pkg
  13. LIB_MAKES = apt-pkg/makefile
  14. SOURCE = file.cc
  15. include $(PROGRAM_H)
  16. # The copy method
  17. PROGRAM=copy
  18. SLIBS = -lapt-pkg
  19. LIB_MAKES = apt-pkg/makefile
  20. SOURCE = copy.cc
  21. include $(PROGRAM_H)
  22. # The gzip method
  23. PROGRAM=gzip
  24. SLIBS = -lapt-pkg
  25. LIB_MAKES = apt-pkg/makefile
  26. SOURCE = gzip.cc
  27. include $(PROGRAM_H)
  28. # The gpgv method
  29. PROGRAM=gpgv
  30. SLIBS = -lapt-pkg
  31. LIB_MAKES = apt-pkg/makefile
  32. SOURCE = gpgv.cc
  33. include $(PROGRAM_H)
  34. # The cdrom method
  35. PROGRAM=cdrom
  36. SLIBS = -lapt-pkg
  37. LIB_MAKES = apt-pkg/makefile
  38. SOURCE = cdrom.cc
  39. include $(PROGRAM_H)
  40. # The http method
  41. PROGRAM=http
  42. SLIBS = -lapt-pkg $(SOCKETLIBS)
  43. LIB_MAKES = apt-pkg/makefile
  44. SOURCE = http.cc rfc2553emu.cc connect.cc
  45. include $(PROGRAM_H)
  46. # The ftp method
  47. PROGRAM=ftp
  48. SLIBS = -lapt-pkg $(SOCKETLIBS)
  49. LIB_MAKES = apt-pkg/makefile
  50. SOURCE = ftp.cc rfc2553emu.cc connect.cc
  51. include $(PROGRAM_H)
  52. # The rsh method
  53. PROGRAM=rsh
  54. SLIBS = -lapt-pkg
  55. LIB_MAKES = apt-pkg/makefile
  56. SOURCE = rsh.cc
  57. include $(PROGRAM_H)
  58. # SSH and vzip2 method symlink
  59. binary: $(BIN)/ssh $(BIN)/bzip2
  60. veryclean: clean-$(BIN)/ssh clean-$(BIN)/bzip2
  61. $(BIN)/ssh:
  62. echo "Installing ssh method link"
  63. ln -fs rsh $(BIN)/ssh
  64. clean-$(BIN)/ssh:
  65. -rm $(BIN)/ssh
  66. $(BIN)/bzip2:
  67. echo "Installing bzip2 method link"
  68. ln -fs gzip $(BIN)/bzip2
  69. clean-$(BIN)/bzip2:
  70. -rm $(BIN)/bzip2