makefile 1.3 KB

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