1 # Makefile for linux/drivers/scsi
3 # Note! Dependencies are done automagically by 'make dep', which also
4 # removes any old dependencies. DON'T put your own dependencies here
5 # unless it's something special (ie not a .c file).
13 MOD_LIST_NAME
:= SCSI_MODULES
14 SCSI_SRCS
= $(wildcard $(L_OBJS
:%.o
=%.c
))
16 CFLAGS_aha152x.o
= -DDEBUG_AHA152X
-DAUTOCONF
17 CFLAGS_gdth.o
= # -DDEBUG_GDTH=2 -D__SERIAL__ -D__COM2__ -DGDTH_STATISTICS
18 CFLAGS_seagate.o
= -DARBITRATE
-DPARITY
-DSEAGATE_USE_ASM
21 .SUFFIXES
: .c .o .h .a
24 CFLAGS
= -D__KERNEL__
=1 \
25 -DMODULE
-Wall
-Wstrict-prototypes
-I.
-I..
/..
/include \
26 -O2
-fomit-frame-pointer
34 ifeq ($(CONFIG_SCSI
),y
)
35 # We must attach scsi_syms.o to scsi.o, as otherwise there is nothing to
36 # pull the object file from the archive.
37 O_TARGET
:= scsi_n_syms.o
39 ifeq ($(CONFIG_MODULES
),y
)
40 OX_OBJS
:= scsi_syms.o
42 L_OBJS
+= scsi_n_syms.o hosts.o scsi_ioctl.o constants.o scsicam.o
43 L_OBJS
+= scsi_error.o scsi_obsolete.o scsi_queue.o
44 ifeq ($(CONFIG_PROC_FS
),y
)
48 ifeq ($(CONFIG_SCSI
),m
)
49 MIX_OBJS
+= scsi_syms.o
54 ifeq ($(CONFIG_CHR_DEV_ST
),y
)
57 ifeq ($(CONFIG_CHR_DEV_ST
),m
)
62 ifeq ($(CONFIG_BLK_DEV_SD
),y
)
63 L_OBJS
+= sd.o sd_ioctl.o
65 ifeq ($(CONFIG_BLK_DEV_SD
),m
)
70 ifeq ($(CONFIG_BLK_DEV_SR
),y
)
71 L_OBJS
+= sr.o sr_ioctl.o sr_vendor.o
73 ifeq ($(CONFIG_BLK_DEV_SR
),m
)
78 ifeq ($(CONFIG_CHR_DEV_SG
),y
)
81 ifeq ($(CONFIG_CHR_DEV_SG
),m
)
86 ifeq ($(CONFIG_SCSI_ADVANSYS
),y
)
89 ifeq ($(CONFIG_SCSI_ADVANSYS
),m
)
94 ifeq ($(CONFIG_SCSI_PCI2000
),y
)
97 ifeq ($(CONFIG_SCSI_PCI2000
),m
)
102 ifeq ($(CONFIG_SCSI_PCI2220I
),y
)
105 ifeq ($(CONFIG_SCSI_PCI2220I
),m
)
110 ifeq ($(CONFIG_SCSI_PSI240I
),y
)
113 ifeq ($(CONFIG_SCSI_PSI240I
),m
)
118 ifeq ($(CONFIG_MVME16x_SCSI
),y
)
119 L_OBJS
+= mvme16x.o
53c7xx.o
121 ifeq ($(CONFIG_MVME16x_SCSI
),m
)
122 M_OBJS
+= mvme16x.o
53c7xx.o
126 ifeq ($(CONFIG_BVME6000_SCSI
),y
)
127 L_OBJS
+= bvme6000.o
53c7xx.o
129 ifeq ($(CONFIG_BVME6000_SCSI
),m
)
130 M_OBJS
+= bvme6000.o
53c7xx.o
134 ifeq ($(CONFIG_A4000T_SCSI
),y
)
135 L_OBJS
+= amiga7xx.o
53c7xx.o
137 ifeq ($(CONFIG_A4000T_SCSI
),m
)
138 M_OBJS
+= amiga7xx.o
53c7xx.o
142 ifeq ($(CONFIG_A4091_SCSI
),y
)
143 L_OBJS
+= amiga7xx.o
53c7xx.o
145 ifeq ($(CONFIG_A4091_SCSI
),m
)
146 M_OBJS
+= amiga7xx.o
53c7xx.o
150 ifeq ($(CONFIG_WARPENGINE_SCSI
),y
)
151 L_OBJS
+= amiga7xx.o
53c7xx.o
153 ifeq ($(CONFIG_WARPENGINE_SCSI
),m
)
154 M_OBJS
+= amiga7xx.o
53c7xx.o
158 ifeq ($(CONFIG_A3000_SCSI
),y
)
159 L_OBJS
+= a3000.o wd33c93.o
161 ifeq ($(CONFIG_A3000_SCSI
),m
)
162 M_OBJS
+= a3000.o wd33c93.o
166 ifeq ($(CONFIG_A2091_SCSI
),y
)
167 L_OBJS
+= a2091.o wd33c93.o
169 ifeq ($(CONFIG_A2091_SCSI
),m
)
170 M_OBJS
+= a2091.o wd33c93.o
174 ifeq ($(CONFIG_GVP11_SCSI
),y
)
175 L_OBJS
+= gvp11.o wd33c93.o
177 ifeq ($(CONFIG_GVP11_SCSI
),m
)
178 M_OBJS
+= gvp11.o wd33c93.o
182 ifeq ($(CONFIG_SCSI_SGIWD93
),y
)
183 L_OBJS
+= sgiwd93.o wd33c93.o
185 ifeq ($(CONFIG_SCSI_SGIWD93
),m
)
186 M_OBJS
+= sgiwd93.o wd33c93.o
190 ifeq ($(CONFIG_CYBERSTORM_SCSI
),y
)
191 L_OBJS
+= NCR53C9x.o cyberstorm.o
193 ifeq ($(CONFIG_CYBERSTORM_SCSI
),m
)
194 M_OBJS
+= NCR53C9x.o cyberstorm.o
198 ifeq ($(CONFIG_CYBERSTORMII_SCSI
),y
)
199 L_OBJS
+= NCR53C9x.o cyberstormII.o
201 ifeq ($(CONFIG_CYBERSTORMII_SCSI
),m
)
202 M_OBJS
+= NCR53C9x.o cyberstormII.o
206 ifeq ($(CONFIG_BLZ2060_SCSI
),y
)
207 L_OBJS
+= NCR53C9x.o blz2060.o
209 ifeq ($(CONFIG_BLZ2060_SCSI
),m
)
210 M_OBJS
+= NCR53C9x.o blz2060.o
214 ifeq ($(CONFIG_BLZ1230_SCSI
),y
)
215 L_OBJS
+= NCR53C9x.o blz1230.o
217 ifeq ($(CONFIG_BLZ1230_SCSI
),m
)
218 M_OBJS
+= NCR53C9x.o blz1230.o
222 ifeq ($(CONFIG_FASTLANE_SCSI
),y
)
223 L_OBJS
+= NCR53C9x.o fastlane.o
225 ifeq ($(CONFIG_FASTLANE_SCSI
),m
)
226 M_OBJS
+= NCR53C9x.o fastlane.o
230 ifeq ($(CONFIG_ATARI_SCSI
),y
)
231 L_OBJS
+= atari_scsi.o
233 ifeq ($(CONFIG_ATARI_SCSI
),m
)
234 M_OBJS
+= atari_scsi.o
238 ifeq ($(CONFIG_SCSI_PPA
),y
)
241 ifeq ($(CONFIG_SCSI_PPA
),m
)
246 ifeq ($(CONFIG_SCSI_QLOGIC_FAS
),y
)
247 L_OBJS
+= qlogicfas.o
249 ifeq ($(CONFIG_SCSI_QLOGIC_FAS
),m
)
250 M_OBJS
+= qlogicfas.o
255 ifeq ($(CONFIG_SCSI_QLOGIC_ISP
),y
)
256 L_OBJS
+= qlogicisp.o
258 ifeq ($(CONFIG_SCSI_QLOGIC_ISP
),m
)
259 M_OBJS
+= qlogicisp.o
264 ifeq ($(CONFIG_SCSI_AHA152X
),y
)
267 ifeq ($(CONFIG_SCSI_AHA152X
),m
)
272 ifeq ($(CONFIG_SCSI_AHA1542
),y
)
275 ifeq ($(CONFIG_SCSI_AHA1542
),m
)
280 ifeq ($(CONFIG_SCSI_AHA1740
),y
)
283 ifeq ($(CONFIG_SCSI_AHA1740
),m
)
288 ifeq ($(CONFIG_SCSI_AIC7XXX
),y
)
291 ifeq ($(CONFIG_SCSI_AIC7XXX
),m
)
296 ifeq ($(CONFIG_SCSI_DC390T
),y
)
299 ifeq ($(CONFIG_SCSI_DC390T
),m
)
304 ifeq ($(CONFIG_SCSI_AM53C974
),y
)
307 ifeq ($(CONFIG_SCSI_AM53C974
),m
)
312 ifeq ($(CONFIG_SCSI_BUSLOGIC
),y
)
315 ifeq ($(CONFIG_SCSI_BUSLOGIC
),m
)
320 ifeq ($(CONFIG_SCSI_EATA_DMA
),y
)
323 ifeq ($(CONFIG_SCSI_EATA_DMA
),m
)
328 ifeq ($(CONFIG_SCSI_EATA_PIO
),y
)
331 ifeq ($(CONFIG_SCSI_EATA_PIO
),m
)
336 ifeq ($(CONFIG_SCSI_U14_34F
),y
)
339 ifeq ($(CONFIG_SCSI_U14_34F
),m
)
344 ifeq ($(CONFIG_SCSI_SUNESP
),y
)
347 ifeq ($(CONFIG_SCSI_SUNESP
),m
)
352 ifeq ($(CONFIG_SCSI_QLOGICPTI
),y
)
353 L_OBJS
+= qlogicpti.o
355 ifeq ($(CONFIG_SCSI_QLOGICPTI
),m
)
356 M_OBJS
+= qlogicpti.o
360 ifeq ($(CONFIG_SCSI_MESH
),y
)
363 ifeq ($(CONFIG_SCSI_MESH
),m
)
368 ifeq ($(CONFIG_SCSI_MAC53C94
),y
)
371 ifeq ($(CONFIG_SCSI_MAC53C94
),m
)
376 ifeq ($(CONFIG_SCSI_GDTH
),y
)
379 ifeq ($(CONFIG_SCSI_GDTH
),m
)
384 ifeq ($(CONFIG_SCSI_DEBUG
),y
)
385 L_OBJS
+= scsi_debug.o
387 ifeq ($(CONFIG_SCSI_DEBUG
),m
)
388 M_OBJS
+= scsi_debug.o
392 ifeq ($(CONFIG_SCSI_FUTURE_DOMAIN
),y
)
395 ifeq ($(CONFIG_SCSI_FUTURE_DOMAIN
),m
)
400 ifeq ($(CONFIG_SCSI_IN2000
),y
)
403 ifeq ($(CONFIG_SCSI_IN2000
),m
)
408 ifeq ($(CONFIG_SCSI_GENERIC_NCR5380
),y
)
409 L_OBJS
+= g_NCR5380.o
411 ifeq ($(CONFIG_SCSI_GENERIC_NCR5380
),m
)
412 M_OBJS
+= g_NCR5380.o
416 ifeq ($(CONFIG_SCSI_NCR53C7xx
),y
)
419 ifeq ($(CONFIG_SCSI_NCR53C7xx
),m
)
424 ifeq ($(CONFIG_SCSI_NCR53C8XX
),y
)
425 L_OBJS
+= ncr53c8xx.o
427 ifeq ($(CONFIG_SCSI_NCR53C8XX
),m
)
428 M_OBJS
+= ncr53c8xx.o
432 ifeq ($(CONFIG_SCSI_PAS16
),y
)
435 ifeq ($(CONFIG_SCSI_PAS16
),m
)
440 ifeq ($(CONFIG_SCSI_SEAGATE
),y
)
443 ifeq ($(CONFIG_SCSI_SEAGATE
),m
)
447 ifndef CONFIG_SCSI_SEAGATE
448 ifeq ($(CONFIG_SCSI_FD_8xx
),y
)
451 ifeq ($(CONFIG_SCSI_FD_8xx
),m
)
457 ifeq ($(CONFIG_SCSI_7000FASST
),y
)
460 ifeq ($(CONFIG_SCSI_7000FASST
),m
)
465 ifeq ($(CONFIG_SCSI_IBMMCA
),y
)
468 ifeq ($(CONFIG_SCSI_IBMMCA
),m
)
473 ifeq ($(CONFIG_SCSI_T128
),y
)
476 ifeq ($(CONFIG_SCSI_T128
),m
)
481 ifeq ($(CONFIG_SCSI_DTC3280
),y
)
484 ifeq ($(CONFIG_SCSI_DTC3280
),m
)
489 ifeq ($(CONFIG_SCSI_ULTRASTOR
),y
)
490 L_OBJS
+= ultrastor.o
492 ifeq ($(CONFIG_SCSI_ULTRASTOR
),m
)
493 M_OBJS
+= ultrastor.o
497 ifeq ($(CONFIG_SCSI_PLUTO
),y
)
500 ifeq ($(CONFIG_SCSI_PLUTO
),m
)
505 ifeq ($(CONFIG_SCSI_EATA
),y
)
508 ifeq ($(CONFIG_SCSI_EATA
),m
)
513 ifeq ($(CONFIG_SCSI_NCR53C406A
),y
)
514 L_OBJS
+= NCR53c406a.o
516 ifeq ($(CONFIG_SCSI_NCR53C406A
),m
)
517 M_OBJS
+= NCR53c406a.o
521 ifeq ($(CONFIG_BLK_DEV_IDESCSI
),y
)
524 ifeq ($(CONFIG_BLK_DEV_IDESCSI
),m
)
529 ifeq ($(CONFIG_JAZZ_ESP
),y
)
530 L_OBJS
+= NCR53C9x.o jazz_esp.o
533 include $(TOPDIR
)/Rules.make
535 53c8xx_d.h
: 53c7
,8xx.scr script_asm.pl
536 ln
-sf
53c7
,8xx.scr fake8.c
537 $(CPP
) -traditional
-DCHIP
=810 fake8.c | grep
-v
'^#' | perl script_asm.pl
538 mv script.h
53c8xx_d.h
539 mv scriptu.h
53c8xx_u.h
542 53c8xx_u.h
: 53c8xx_d.h
544 53c7xx_d.h
: 53c7xx.scr script_asm.pl
545 ln
-sf
53c7xx.scr fake7.c
546 $(CPP
) -traditional
-DCHIP
=710 fake7.c | grep
-v
'^#' | perl
-s script_asm.pl
-ncr7x0_family
547 mv script.h
53c7xx_d.h
548 mv scriptu.h
53c7xx_u.h
551 53c7xx_u.h
: 53c7xx_d.h
553 53c7xx.o
: 53c7xx_d.h
53c7xx.c
554 $(CC
) $(CFLAGS
) -c
53c7xx.c
556 scsi_mod.o
: $(MIX_OBJS
) hosts.o scsi.o scsi_ioctl.o constants.o \
557 scsicam.o scsi_proc.o scsi_error.o scsi_obsolete.o scsi_queue.o
558 $(LD
) $(LD_RFLAG
) -r
-o
$@
$(MIX_OBJS
) hosts.o scsi.o scsi_ioctl.o \
559 constants.o scsicam.o scsi_proc.o \
560 scsi_error.o scsi_obsolete.o scsi_queue.o \
562 sr_mod.o
: sr.o sr_ioctl.o sr_vendor.o
563 $(LD
) $(LD_RFLAG
) -r
-o
$@ sr.o sr_ioctl.o sr_vendor.o
565 sd_mod.o
: sd.o sd_ioctl.o
566 $(LD
) $(LD_RFLAG
) -r
-o
$@ sd.o sd_ioctl.o