* added 0.99 linux version
[mascara-docs.git] / i386 / linux / linux-0.99 / drivers / scsi / Makefile
blob76e3dc2186e7c1551ec2775cf5be6f720fdaa016
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
14 SCSI_OBJS =
15 SCSI_SRCS =
17 ifdef CONFIG_SCSI
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
25 endif
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
30 endif
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
35 endif
37 ifdef CONFIG_CHR_DEV_SG
38 SCSI_OBJS := $(SCSI_OBJS) sg.o
39 SCSI_SRCS := $(SCSI_SRCS) sg.c
40 endif
42 ifdef CONFIG_SCSI_AHA152X
43 SCSI_OBJS := $(SCSI_OBJS) aha152x.o
44 SCSI_SRCS := $(SCSI_SRCS) aha152x.c
45 endif
47 ifdef CONFIG_SCSI_AHA1542
48 SCSI_OBJS := $(SCSI_OBJS) aha1542.o
49 SCSI_SRCS := $(SCSI_SRCS) aha1542.c
50 endif
52 ifdef CONFIG_SCSI_AHA1740
53 SCSI_OBJS := $(SCSI_OBJS) aha1740.o
54 SCSI_SRCS := $(SCSI_SRCS) aha1740.c
55 endif
57 ifdef CONFIG_SCSI_DEBUG
58 SCSI_OBJS := $(SCSI_OBJS) scsi_debug.o
59 SCSI_SRCS := $(SCSI_SRCS) scsi_debug.c
60 endif
62 ifdef CONFIG_SCSI_FUTURE_DOMAIN
63 SCSI_OBJS := $(SCSI_OBJS) fdomain.o
64 SCSI_SRCS := $(SCSI_SRCS) fdomain.c
65 endif
67 ifdef CONFIG_SCSI_GENERIC_NCR5380
68 SCSI_OBJS := $(SCSI_OBJS) g_NCR5380.o
69 SCSI_SRCS := $(SCSI_SRCS) g_NCR5380.c
70 endif
72 ifdef CONFIG_SCSI_PAS16
73 SCSI_OBJS := $(SCSI_OBJS) pas16.o
74 SCSI_SRCS := $(SCSI_SRCS) pas16.c
75 endif
77 ifdef CONFIG_SCSI_SEAGATE
78 SCSI_OBJS := $(SCSI_OBJS) seagate.o
79 SCSI_SRCS := $(SCSI_SRCS) seagate.c
80 else
81 ifdef CONFIG_SCSI_FD_8xx
82 SCSI_OBJS := $(SCSI_OBJS) seagate.o
83 SCSI_SRCS := $(SCSI_SRCS) seagate.c
84 endif
85 endif
87 ifdef CONFIG_SCSI_7000FASST
88 SCSI_OBJS := $(SCSI_OBJS) wd7000.o
89 SCSI_SRCS := $(SCSI_SRCS) wd7000.c
90 endif
92 ifdef CONFIG_SCSI_T128
93 SCSI_OBJS := $(SCSI_OBJS) t128.o
94 SCSI_SRCS := $(SCSI_SRCS) t128.c
95 endif
97 ifdef CONFIG_SCSI_ULTRASTOR
98 SCSI_OBJS := $(SCSI_OBJS) ultrastor.o
99 SCSI_SRCS := $(SCSI_SRCS) ultrastor.c
100 endif
104 scsi.a: $(SCSI_OBJS)
105 rm -f scsi.a
106 $(AR) rcs scsi.a $(SCSI_OBJS)
107 sync
109 aha152x.o: aha152x.c
110 $(CC) $(CFLAGS) $(AHA152X) -c aha152x.c
113 seagate.o: seagate.c
114 $(CC) $(CFLAGS) -DARBITRATE -DSLOW_HANDSHAKE -DFAST32 -c seagate.c
116 dep:
117 $(CPP) -M $(AHA152X) $(SCSI_SRCS) > .depend
119 else
121 scsi.a:
122 rm -f scsi.a
123 @echo No SCSI drivers configured
124 $(AR) rcs scsi.a
126 dep:
128 endif
132 # include a dependency file if one exists
134 ifeq (.depend,$(wildcard .depend))
135 include .depend
136 endif