2 # Makefile for kernel/blk_drv/scsi
4 # Note! Dependencies are done automagically by 'make dep', which also
5 # removes any old dependencies. DONT put your own dependencies here
6 # unless its something special (ie not a .c file).
9 #AHA152X = -DDEBUG -DAUTOCONF -DIRQ=11 -DSCSI_ID=7 -DRECONNECT=0 \
10 # -DPORTBASE=0x340 -DSKIP_BIOSTEST -DDONT_SNARF
12 AHA152X
= -DDEBUG
-DAUTOCONF
19 SCSI_OBJS
:= hosts.o scsi.o scsi_ioctl.o constants.o
20 SCSI_SRCS
:= hosts.c scsi.c scsi_ioctl.c constants.c
22 ifdef CONFIG_CHR_DEV_ST
23 SCSI_OBJS
:= $(SCSI_OBJS
) st.o
24 SCSI_SRCS
:= $(SCSI_SRCS
) st.c
27 ifdef CONFIG_BLK_DEV_SD
28 SCSI_OBJS
:= $(SCSI_OBJS
) sd.o sd_ioctl.o
29 SCSI_SRCS
:= $(SCSI_SRCS
) sd.c sd_ioctl.c
32 ifdef CONFIG_BLK_DEV_SR
33 SCSI_OBJS
:= $(SCSI_OBJS
) sr.o sr_ioctl.o
34 SCSI_SRCS
:= $(SCSI_SRCS
) sr.c sr_ioctl.c
37 ifdef CONFIG_CHR_DEV_SG
38 SCSI_OBJS
:= $(SCSI_OBJS
) sg.o
39 SCSI_SRCS
:= $(SCSI_SRCS
) sg.c
42 ifdef CONFIG_SCSI_AHA152X
43 SCSI_OBJS
:= $(SCSI_OBJS
) aha152x.o
44 SCSI_SRCS
:= $(SCSI_SRCS
) aha152x.c
47 ifdef CONFIG_SCSI_AHA1542
48 SCSI_OBJS
:= $(SCSI_OBJS
) aha1542.o
49 SCSI_SRCS
:= $(SCSI_SRCS
) aha1542.c
52 ifdef CONFIG_SCSI_AHA1740
53 SCSI_OBJS
:= $(SCSI_OBJS
) aha1740.o
54 SCSI_SRCS
:= $(SCSI_SRCS
) aha1740.c
57 ifdef CONFIG_SCSI_DEBUG
58 SCSI_OBJS
:= $(SCSI_OBJS
) scsi_debug.o
59 SCSI_SRCS
:= $(SCSI_SRCS
) scsi_debug.c
62 ifdef CONFIG_SCSI_FUTURE_DOMAIN
63 SCSI_OBJS
:= $(SCSI_OBJS
) fdomain.o
64 SCSI_SRCS
:= $(SCSI_SRCS
) fdomain.c
67 ifdef CONFIG_SCSI_GENERIC_NCR5380
68 SCSI_OBJS
:= $(SCSI_OBJS
) g_NCR5380.o
69 SCSI_SRCS
:= $(SCSI_SRCS
) g_NCR5380.c
72 ifdef CONFIG_SCSI_PAS16
73 SCSI_OBJS
:= $(SCSI_OBJS
) pas16.o
74 SCSI_SRCS
:= $(SCSI_SRCS
) pas16.c
77 ifdef CONFIG_SCSI_SEAGATE
78 SCSI_OBJS
:= $(SCSI_OBJS
) seagate.o
79 SCSI_SRCS
:= $(SCSI_SRCS
) seagate.c
81 ifdef CONFIG_SCSI_FD_8xx
82 SCSI_OBJS
:= $(SCSI_OBJS
) seagate.o
83 SCSI_SRCS
:= $(SCSI_SRCS
) seagate.c
87 ifdef CONFIG_SCSI_7000FASST
88 SCSI_OBJS
:= $(SCSI_OBJS
) wd7000.o
89 SCSI_SRCS
:= $(SCSI_SRCS
) wd7000.c
92 ifdef CONFIG_SCSI_T128
93 SCSI_OBJS
:= $(SCSI_OBJS
) t128.o
94 SCSI_SRCS
:= $(SCSI_SRCS
) t128.c
97 ifdef CONFIG_SCSI_ULTRASTOR
98 SCSI_OBJS
:= $(SCSI_OBJS
) ultrastor.o
99 SCSI_SRCS
:= $(SCSI_SRCS
) ultrastor.c
106 $(AR
) rcs scsi.a
$(SCSI_OBJS
)
110 $(CC
) $(CFLAGS
) $(AHA152X
) -c aha152x.c
114 $(CC
) $(CFLAGS
) -DARBITRATE
-DSLOW_HANDSHAKE
-DFAST32
-c seagate.c
117 $(CPP
) -M
$(AHA152X
) $(SCSI_SRCS
) > .depend
123 @echo No SCSI drivers configured
132 # include a dependency file if one exists
134 ifeq (.depend
,$(wildcard .depend
))