Makefile 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. #
  2. # Makefile for the Linux aic7xxx SCSI driver.
  3. #
  4. # $Id: //depot/linux-aic79xx-2.5.0/drivers/scsi/aic7xxx/Makefile#8 $
  5. #
  6. # Let kbuild descend into aicasm when cleaning
  7. subdir- += aicasm
  8. obj-$(CONFIG_SCSI_AIC7XXX) += aic7xxx.o
  9. obj-$(CONFIG_SCSI_AIC79XX) += aic79xx.o
  10. # Core Fast -> U160 files
  11. aic7xxx-y += aic7xxx_core.o \
  12. aic7xxx_93cx6.o
  13. aic7xxx-$(CONFIG_EISA) += aic7770.o
  14. aic7xxx-$(CONFIG_PCI) += aic7xxx_pci.o
  15. aic7xxx-$(CONFIG_AIC7XXX_REG_PRETTY_PRINT) += aic7xxx_reg_print.o
  16. # Platform Specific Fast -> U160 Files
  17. aic7xxx-y += aic7xxx_osm.o \
  18. aic7xxx_proc.o
  19. aic7xxx-$(CONFIG_EISA) += aic7770_osm.o
  20. aic7xxx-$(CONFIG_PCI) += aic7xxx_osm_pci.o
  21. # Core U320 files
  22. aic79xx-y += aic79xx_core.o \
  23. aic79xx_pci.o
  24. aic79xx-$(CONFIG_AIC79XX_REG_PRETTY_PRINT) += aic79xx_reg_print.o
  25. # Platform Specific U320 Files
  26. aic79xx-y += aic79xx_osm.o \
  27. aic79xx_proc.o \
  28. aic79xx_osm_pci.o
  29. EXTRA_CFLAGS += -Idrivers/scsi
  30. ifdef WARNINGS_BECOME_ERRORS
  31. EXTRA_CFLAGS += -Werror
  32. endif
  33. #EXTRA_CFLAGS += -g
  34. # Files generated that shall be removed upon make clean
  35. clean-files := aic7xxx_seq.h aic7xxx_reg.h aic7xxx_reg_print.c
  36. clean-files += aic79xx_seq.h aic79xx_reg.h aic79xx_reg_print.c
  37. # Dependencies for generated files need to be listed explicitly
  38. $(obj)/aic7xxx_core.o: $(obj)/aic7xxx_seq.h
  39. $(obj)/aic79xx_core.o: $(obj)/aic79xx_seq.h
  40. $(obj)/aic79xx_reg_print.c: $(src)/aic79xx_reg_print.c_shipped
  41. $(obj)/aic7xxx_reg_print.c: $(src)/aic7xxx_reg_print.c_shipped
  42. $(addprefix $(obj)/,$(aic7xxx-y)): $(obj)/aic7xxx_reg.h
  43. $(addprefix $(obj)/,$(aic79xx-y)): $(obj)/aic79xx_reg.h
  44. aic7xxx-gen-$(CONFIG_AIC7XXX_BUILD_FIRMWARE) := $(obj)/aic7xxx_seq.h \
  45. $(obj)/aic7xxx_reg.h
  46. aic7xxx-gen-$(CONFIG_AIC7XXX_REG_PRETTY_PRINT) += $(obj)/aic7xxx_reg_print.c
  47. aicasm-7xxx-opts-$(CONFIG_AIC7XXX_REG_PRETTY_PRINT) := \
  48. -p $(obj)/aic7xxx_reg_print.c -i aic7xxx_osm.h
  49. ifeq ($(CONFIG_AIC7XXX_BUILD_FIRMWARE),y)
  50. # Create a dependency chain in generated files
  51. # to avoid concurrent invocations of the single
  52. # rule that builds them all.
  53. aic7xxx_seq.h: aic7xxx_reg.h
  54. ifeq ($(CONFIG_AIC7XXX_REG_PRETTY_PRINT),y)
  55. aic7xxx_reg.h: aic7xxx_reg_print.c
  56. endif
  57. $(aic7xxx-gen-y): $(src)/aic7xxx.seq $(src)/aic7xxx.reg $(obj)/aicasm/aicasm
  58. $(obj)/aicasm/aicasm -I$(src) -r $(obj)/aic7xxx_reg.h \
  59. $(aicasm-7xxx-opts-y) -o $(obj)/aic7xxx_seq.h \
  60. $(src)/aic7xxx.seq
  61. endif
  62. aic79xx-gen-$(CONFIG_AIC79XX_BUILD_FIRMWARE) := $(obj)/aic79xx_seq.h \
  63. $(obj)/aic79xx_reg.h
  64. aic79xx-gen-$(CONFIG_AIC79XX_REG_PRETTY_PRINT) += $(obj)/aic79xx_reg_print.c
  65. aicasm-79xx-opts-$(CONFIG_AIC79XX_REG_PRETTY_PRINT) := \
  66. -p $(obj)/aic79xx_reg_print.c -i aic79xx_osm.h
  67. ifeq ($(CONFIG_AIC79XX_BUILD_FIRMWARE),y)
  68. # Create a dependency chain in generated files
  69. # to avoid concurrent invocations of the single
  70. # rule that builds them all.
  71. aic79xx_seq.h: aic79xx_reg.h
  72. ifeq ($(CONFIG_AIC79XX_REG_PRETTY_PRINT),y)
  73. aic79xx_reg.h: aic79xx_reg_print.c
  74. endif
  75. $(aic79xx-gen-y): $(src)/aic79xx.seq $(src)/aic79xx.reg $(obj)/aicasm/aicasm
  76. $(obj)/aicasm/aicasm -I$(src) -r $(obj)/aic79xx_reg.h \
  77. $(aicasm-79xx-opts-y) -o $(obj)/aic79xx_seq.h \
  78. $(src)/aic79xx.seq
  79. endif
  80. $(obj)/aicasm/aicasm: $(src)/aicasm/*.[chyl]
  81. $(MAKE) -C $(src)/aicasm