Makefile
上传用户:lgb322
上传日期:2013-02-24
资源大小:30529k
文件大小:7k
- #
- # Makefile for linux/drivers/scsi
- #
- # 30 May 2000, Christoph Hellwig <hch@infradead.org>
- # Rewritten to use lists instead of if-statements.
- #
- # 20 Sep 2000, Torben Mathiasen <tmm@image.dk>
- # Changed link order to reflect new scsi initialization.
- #
- # *!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!
- # The link order must be, SCSI Core, SCSI HBA drivers, and
- # lastly SCSI peripheral drivers (disk/tape/cdrom/etc.) to
- # satisfy certain initialization assumptions in the SCSI layer.
- # *!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!
- CFLAGS_aha152x.o = -DAHA152X_STAT -DAUTOCONF
- CFLAGS_gdth.o = # -DDEBUG_GDTH=2 -D__SERIAL__ -D__COM2__ -DGDTH_STATISTICS
- CFLAGS_seagate.o = -DARBITRATE -DPARITY -DSEAGATE_USE_ASM
- O_TARGET := scsidrv.o
- export-objs := scsi_syms.o 53c700.o
- mod-subdirs := pcmcia ../acorn/scsi
- subdir-$(CONFIG_SCSI_AACRAID) += aacraid
- subdir-$(CONFIG_SCSI_AIC7XXX) += aic7xxx
- subdir-$(CONFIG_PCMCIA) += pcmcia
- obj-$(CONFIG_SCSI) += scsi_mod.o
- obj-$(CONFIG_A4000T_SCSI) += amiga7xx.o 53c7xx.o
- obj-$(CONFIG_A4091_SCSI) += amiga7xx.o 53c7xx.o
- obj-$(CONFIG_BLZ603EPLUS_SCSI) += amiga7xx.o 53c7xx.o
- obj-$(CONFIG_WARPENGINE_SCSI) += amiga7xx.o 53c7xx.o
- obj-$(CONFIG_A3000_SCSI) += a3000.o wd33c93.o
- obj-$(CONFIG_A2091_SCSI) += a2091.o wd33c93.o
- obj-$(CONFIG_GVP11_SCSI) += gvp11.o wd33c93.o
- obj-$(CONFIG_MVME147_SCSI) += mvme147.o wd33c93.o
- obj-$(CONFIG_SGIWD93_SCSI) += sgiwd93.o wd33c93.o
- obj-$(CONFIG_CYBERSTORM_SCSI) += NCR53C9x.o cyberstorm.o
- obj-$(CONFIG_CYBERSTORMII_SCSI) += NCR53C9x.o cyberstormII.o
- obj-$(CONFIG_BLZ2060_SCSI) += NCR53C9x.o blz2060.o
- obj-$(CONFIG_BLZ1230_SCSI) += NCR53C9x.o blz1230.o
- obj-$(CONFIG_FASTLANE_SCSI) += NCR53C9x.o fastlane.o
- obj-$(CONFIG_OKTAGON_SCSI) += NCR53C9x.o oktagon_esp.o oktagon_io.o
- obj-$(CONFIG_ATARI_SCSI) += atari_scsi.o
- obj-$(CONFIG_MAC_SCSI) += mac_scsi.o
- obj-$(CONFIG_SCSI_MAC_ESP) += mac_esp.o NCR53C9x.o
- obj-$(CONFIG_SUN3_SCSI) += sun3_scsi.o
- obj-$(CONFIG_MVME16x_SCSI) += mvme16x.o 53c7xx.o
- obj-$(CONFIG_BVME6000_SCSI) += bvme6000.o 53c7xx.o
- obj-$(CONFIG_SCSI_SIM710) += sim710.o
- obj-$(CONFIG_SCSI_ADVANSYS) += advansys.o
- obj-$(CONFIG_SCSI_PCI2000) += pci2000.o
- obj-$(CONFIG_SCSI_PCI2220I) += pci2220i.o
- obj-$(CONFIG_SCSI_PSI240I) += psi240i.o
- obj-$(CONFIG_SCSI_BUSLOGIC) += BusLogic.o
- obj-$(CONFIG_SCSI_DPT_I2O) += dpt_i2o.o
- obj-$(CONFIG_SCSI_U14_34F) += u14-34f.o
- obj-$(CONFIG_SCSI_ULTRASTOR) += ultrastor.o
- obj-$(CONFIG_SCSI_AHA152X) += aha152x.o
- obj-$(CONFIG_SCSI_AHA1542) += aha1542.o
- obj-$(CONFIG_SCSI_AHA1740) += aha1740.o
- ifeq ($(CONFIG_SCSI_AACRAID),y)
- obj-$(CONFIG_SCSI_AACRAID) += aacraid/aacraid.o
- endif
- ifeq ($(CONFIG_SCSI_AIC7XXX),y)
- obj-$(CONFIG_SCSI_AIC7XXX) += aic7xxx/aic7xxx_drv.o
- endif
- obj-$(CONFIG_SCSI_AIC7XXX_OLD) += aic7xxx_old.o
- obj-$(CONFIG_SCSI_IPS) += ips.o
- obj-$(CONFIG_SCSI_FD_MCS) += fd_mcs.o
- obj-$(CONFIG_SCSI_FUTURE_DOMAIN)+= fdomain.o
- obj-$(CONFIG_SCSI_IN2000) += in2000.o
- obj-$(CONFIG_SCSI_GENERIC_NCR5380) += g_NCR5380.o
- obj-$(CONFIG_SCSI_NCR53C406A) += NCR53c406a.o
- obj-$(CONFIG_SCSI_NCR_D700) += NCR_D700.o 53c700.o
- obj-$(CONFIG_SCSI_SYM53C416) += sym53c416.o
- obj-$(CONFIG_SCSI_QLOGIC_FAS) += qlogicfas.o
- obj-$(CONFIG_SCSI_QLOGIC_ISP) += qlogicisp.o
- obj-$(CONFIG_SCSI_QLOGIC_FC) += qlogicfc.o
- obj-$(CONFIG_SCSI_QLOGIC_1280) += qla1280.o
- obj-$(CONFIG_SCSI_PAS16) += pas16.o
- obj-$(CONFIG_SCSI_SEAGATE) += seagate.o
- obj-$(CONFIG_SCSI_FD_8xx) += seagate.o
- obj-$(CONFIG_SCSI_T128) += t128.o
- obj-$(CONFIG_SCSI_DMX3191D) += dmx3191d.o
- obj-$(CONFIG_SCSI_DTC3280) += dtc.o
- obj-$(CONFIG_SCSI_NCR53C7xx) += 53c7,8xx.o
- subdir-$(CONFIG_SCSI_SYM53C8XX_2) += sym53c8xx_2
- ifeq ($(CONFIG_SCSI_SYM53C8XX_2),y)
- obj-$(CONFIG_SCSI_SYM53C8XX_2) += sym53c8xx_2/sym53c8xx.o
- endif
- obj-$(CONFIG_SCSI_SYM53C8XX) += sym53c8xx.o
- obj-$(CONFIG_SCSI_NCR53C8XX) += ncr53c8xx.o
- obj-$(CONFIG_SCSI_EATA_DMA) += eata_dma.o
- obj-$(CONFIG_SCSI_EATA_PIO) += eata_pio.o
- obj-$(CONFIG_SCSI_7000FASST) += wd7000.o
- obj-$(CONFIG_SCSI_MCA_53C9X) += NCR53C9x.o mca_53c9x.o
- obj-$(CONFIG_SCSI_IBMMCA) += ibmmca.o
- obj-$(CONFIG_SCSI_EATA) += eata.o
- obj-$(CONFIG_SCSI_DC390T) += tmscsim.o
- obj-$(CONFIG_SCSI_AM53C974) += AM53C974.o
- obj-$(CONFIG_SCSI_MEGARAID) += megaraid.o
- obj-$(CONFIG_SCSI_ACARD) += atp870u.o
- obj-$(CONFIG_SCSI_SUNESP) += esp.o
- obj-$(CONFIG_SCSI_GDTH) += gdth.o
- obj-$(CONFIG_SCSI_INITIO) += initio.o
- obj-$(CONFIG_SCSI_INIA100) += a100u2w.o
- obj-$(CONFIG_SCSI_QLOGICPTI) += qlogicpti.o
- obj-$(CONFIG_BLK_DEV_IDESCSI) += ide-scsi.o
- obj-$(CONFIG_SCSI_MESH) += mesh.o
- obj-$(CONFIG_SCSI_MAC53C94) += mac53c94.o
- obj-$(CONFIG_SCSI_PLUTO) += pluto.o
- obj-$(CONFIG_SCSI_DECNCR) += NCR53C9x.o dec_esp.o
- obj-$(CONFIG_BLK_DEV_3W_XXXX_RAID) += 3w-xxxx.o
- obj-$(CONFIG_SCSI_PPA) += ppa.o
- obj-$(CONFIG_SCSI_IMM) += imm.o
- obj-$(CONFIG_JAZZ_ESP) += NCR53C9x.o jazz_esp.o
- obj-$(CONFIG_SUN3X_ESP) += NCR53C9x.o sun3x_esp.o
- obj-$(CONFIG_SCSI_DEBUG) += scsi_debug.o
- obj-$(CONFIG_SCSI_FCAL) += fcal.o
- obj-$(CONFIG_SCSI_CPQFCTS) += cpqfc.o
- obj-$(CONFIG_SCSI_LASI700) += lasi700.o 53c700.o
- subdir-$(CONFIG_ARCH_ACORN) += ../acorn/scsi
- obj-$(CONFIG_ARCH_ACORN) += ../acorn/scsi/acorn-scsi.o
- obj-$(CONFIG_CHR_DEV_ST) += st.o
- obj-$(CONFIG_CHR_DEV_OSST) += osst.o
- obj-$(CONFIG_BLK_DEV_SD) += sd_mod.o
- obj-$(CONFIG_BLK_DEV_SR) += sr_mod.o
- obj-$(CONFIG_CHR_DEV_SG) += sg.o
- list-multi := scsi_mod.o sd_mod.o sr_mod.o initio.o a100u2w.o cpqfc.o
- scsi_mod-objs := scsi.o hosts.o scsi_ioctl.o constants.o
- scsicam.o scsi_proc.o scsi_error.o
- scsi_obsolete.o scsi_queue.o scsi_lib.o
- scsi_merge.o scsi_dma.o scsi_scan.o
- scsi_syms.o
- sd_mod-objs := sd.o
- sr_mod-objs := sr.o sr_ioctl.o sr_vendor.o
- initio-objs := ini9100u.o i91uscsi.o
- a100u2w-objs := inia100.o i60uscsi.o
- cpqfc-objs := cpqfcTSinit.o cpqfcTScontrol.o cpqfcTSi2c.o
- cpqfcTSworker.o cpqfcTStrigger.o
- include $(TOPDIR)/Rules.make
- scsi_mod.o: $(scsi_mod-objs)
- $(LD) -r -o $@ $(scsi_mod-objs)
- sd_mod.o: $(sd_mod-objs)
- $(LD) -r -o $@ $(sd_mod-objs)
- sr_mod.o: $(sr_mod-objs)
- $(LD) -r -o $@ $(sr_mod-objs)
- initio.o: $(initio-objs)
- $(LD) -r -o $@ $(initio-objs)
- a100u2w.o: $(a100u2w-objs)
- $(LD) -r -o $@ $(a100u2w-objs)
- cpqfc.o: $(cpqfc-objs)
- $(LD) -r -o $@ $(cpqfc-objs)
- 53c8xx_d.h: 53c7,8xx.scr script_asm.pl
- ln -sf 53c7,8xx.scr fake8.c
- $(CPP) $(CPPFLAGS) -traditional -DCHIP=810 fake8.c | grep -v '^#' | $(PERL) script_asm.pl
- mv script.h 53c8xx_d.h
- mv scriptu.h 53c8xx_u.h
- rm fake8.c
- 53c8xx_u.h: 53c8xx_d.h
- 53c7,8xx.o: 53c8xx_u.h
- 53c7xx_d.h: 53c7xx.scr script_asm.pl
- ln -sf 53c7xx.scr fake7.c
- $(CPP) $(CPPFLAGS) -traditional -DCHIP=710 fake7.c | grep -v '^#' | $(PERL) -s script_asm.pl -ncr7x0_family
- mv script.h 53c7xx_d.h
- mv scriptu.h 53c7xx_u.h
- rm fake7.c
- 53c7xx_u.h: 53c7xx_d.h
- 53c7xx.o : 53c7xx_d.h
- sim710_d.h: sim710.scr script_asm.pl
- ln -sf sim710.scr fake7.c
- $(CPP) $(CPPFLAGS) -traditional -DCHIP=710 fake7.c | grep -v '^#' | $(PERL) -s script_asm.pl -ncr7x0_family
- mv script.h sim710_d.h
- mv scriptu.h sim710_u.h
- rm fake7.c
- sim710_u.h: sim710_d.h
- sim710.o : sim710_d.h
- 53c700_d.h: 53c700.scr script_asm.pl
- $(PERL) -s script_asm.pl -ncr7x0_family < 53c700.scr
- rm -f scriptu.h
- mv script.h 53c700_d.h
- 53c700.o: 53c700_d.h