OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [uclinux/] [uClinux-2.0.x/] [drivers/] [scsi/] [Makefile] - Blame information for rev 199

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
 
2
# Makefile for linux/drivers/scsi
3
#
4
# Note! Dependencies are done automagically by 'make dep', which also
5
# removes any old dependencies. DON'T put your own dependencies here
6
# unless it's something special (ie not a .c file).
7
#
8
 
9
ifdef CONFIG_KERNEL_ELF
10
# This is used for ELF - it needs to migrate or be moved.
11
LD_RFLAG = -m elf_i386
12
endif
13
 
14
L_TARGET := scsi.a
15
L_OBJS   :=
16
M_OBJS   :=
17
MX_OBJS  :=
18
MOD_LIST_NAME := SCSI_MODULES
19
SCSI_SRCS = $(wildcard $(L_OBJS:%.o=%.c))
20
 
21
AHA152X = -DDEBUG_AHA152X -DAUTOCONF
22
GDTH = #-DDEBUG_GDTH=2 -D__SERIAL__ -D__COM2__ -DGDTH_STATISTICS
23
 
24
.SUFFIXES:
25
.SUFFIXES: .c .o .h .a
26
 
27
ifeq (${CFLAGS},)
28
CFLAGS = -D__KERNEL__=1 \
29
        -DMODULE -Wall -Wstrict-prototypes -I. -I../../include \
30
        -O2 -fomit-frame-pointer -m486
31
 
32
include ../../.config
33
 
34
TOPDIR = ../..
35
 
36
endif
37
 
38
ifeq ($(CONFIG_SCSI),y)
39
L_OBJS += hosts.o scsi.o scsi_ioctl.o constants.o scsicam.o
40
  ifeq ($(CONFIG_PROC_FS),y)
41
    L_OBJS += scsi_proc.o
42
  endif
43
LX_OBJS += scsi_syms.o
44
else
45
  ifeq ($(CONFIG_SCSI),m)
46
    MX_OBJS += scsi_syms.o
47
    M_OBJS += scsi_mod.o
48
  endif
49
endif
50
 
51
ifeq ($(CONFIG_CHR_DEV_ST),y)
52
L_OBJS += st.o
53
else
54
  ifeq ($(CONFIG_CHR_DEV_ST),m)
55
  M_OBJS += st.o
56
  endif
57
endif
58
 
59
ifeq ($(CONFIG_BLK_DEV_SD),y)
60
L_OBJS += sd.o sd_ioctl.o
61
else
62
  ifeq ($(CONFIG_BLK_DEV_SD),m)
63
  M_OBJS += sd_mod.o
64
  endif
65
endif
66
 
67
ifeq ($(CONFIG_BLK_DEV_SR),y)
68
L_OBJS += sr.o sr_ioctl.o
69
else
70
  ifeq ($(CONFIG_BLK_DEV_SR),m)
71
  M_OBJS += sr_mod.o
72
  endif
73
endif
74
 
75
ifeq ($(CONFIG_CHR_DEV_SG),y)
76
L_OBJS += sg.o
77
else
78
  ifeq ($(CONFIG_CHR_DEV_SG),m)
79
  M_OBJS += sg.o
80
  endif
81
endif
82
 
83
ifeq ($(CONFIG_SCSI_ADVANSYS),y)
84
L_OBJS += advansys.o
85
else
86
  ifeq ($(CONFIG_SCSI_ADVANSYS),m)
87
  M_OBJS += advansys.o
88
  endif
89
endif
90
 
91
ifeq ($(CONFIG_A3000_SCSI),y)
92
L_OBJS += a3000.o wd33c93.o
93
else
94
  ifeq ($(CONFIG_A3000_SCSI),m)
95
  M_OBJS += a3000.o wd33c93.o
96
  endif
97
endif
98
 
99
ifeq ($(CONFIG_A2091_SCSI),y)
100
L_OBJS += a2091.o wd33c93.o
101
else
102
  ifeq ($(CONFIG_A2091_SCSI),m)
103
  M_OBJS += a2091.o wd33c93.o
104
  endif
105
endif
106
 
107
ifeq ($(CONFIG_GVP11_SCSI),y)
108
L_OBJS += gvp11.o wd33c93.o
109
else
110
  ifeq ($(CONFIG_GVP11_SCSI),m)
111
  M_OBJS += gvp11.o wd33c93.o
112
  endif
113
endif
114
 
115
ifeq ($(CONFIG_ATARI_SCSI),y)
116
L_OBJS += atari_scsi.o
117
else
118
  ifeq ($(CONFIG_ATARI_SCSI),m)
119
  M_OBJS += atari_scsi.o
120
  endif
121
endif
122
 
123
ifeq ($(CONFIG_SCSI_PPA),y)
124
L_OBJS += ppa.o
125
else
126
  ifeq ($(CONFIG_SCSI_PPA),m)
127
  M_OBJS += ppa.o
128
  endif
129
endif
130
 
131
ifeq ($(CONFIG_SCSI_QLOGIC_FAS),y)
132
L_OBJS += qlogicfas.o
133
else
134
  ifeq ($(CONFIG_SCSI_QLOGIC_FAS),m)
135
  M_OBJS += qlogicfas.o
136
  endif
137
endif
138
 
139
 
140
ifeq ($(CONFIG_SCSI_QLOGIC_ISP),y)
141
L_OBJS += qlogicisp.o
142
else
143
  ifeq ($(CONFIG_SCSI_QLOGIC_ISP),m)
144
  M_OBJS += qlogicisp.o
145
  endif
146
endif
147
 
148
ifeq ($(CONFIG_SCSI_ACARD),y)
149
L_OBJS += atp870u.o
150
else
151
  ifeq ($(CONFIG_SCSI_ACARD),m)
152
  M_OBJS += atp870u.o
153
  endif
154
endif
155
 
156
 
157
ifeq ($(CONFIG_SCSI_INITIO),y)
158
L_OBJS += initio.o
159
else
160
  ifeq ($(CONFIG_SCSI_INITIO),m)
161
  M_OBJS += initio.o
162
  endif
163
endif
164
 
165
 
166
ifeq ($(CONFIG_SCSI_AHA152X),y)
167
L_OBJS += aha152x.o
168
else
169
  ifeq ($(CONFIG_SCSI_AHA152X),m)
170
  M_OBJS += aha152x.o
171
  endif
172
endif
173
 
174
ifeq ($(CONFIG_SCSI_AHA1542),y)
175
L_OBJS += aha1542.o
176
else
177
  ifeq ($(CONFIG_SCSI_AHA1542),m)
178
  M_OBJS += aha1542.o
179
  endif
180
endif
181
 
182
ifeq ($(CONFIG_SCSI_AHA1740),y)
183
L_OBJS += aha1740.o
184
else
185
  ifeq ($(CONFIG_SCSI_AHA1740),m)
186
  M_OBJS += aha1740.o
187
  endif
188
endif
189
 
190
ifeq ($(CONFIG_SCSI_AIC7XXX),y)
191
L_OBJS += aic7xxx.o
192
else
193
  ifeq ($(CONFIG_SCSI_AIC7XXX),m)
194
  M_OBJS += aic7xxx.o
195
  endif
196
endif
197
 
198
ifeq ($(CONFIG_SCSI_DC390T),y)
199
L_OBJS += tmscsim.o
200
else
201
  ifeq ($(CONFIG_SCSI_DC390T),m)
202
  M_OBJS += tmscsim.o
203
  endif
204
endif
205
 
206
ifeq ($(CONFIG_SCSI_AM53C974),y)
207
L_OBJS += AM53C974.o
208
else
209
  ifeq ($(CONFIG_SCSI_AM53C974),m)
210
  M_OBJS += AM53C974.o
211
  endif
212
endif
213
 
214
ifeq ($(CONFIG_SCSI_BUSLOGIC),y)
215
L_OBJS += BusLogic.o
216
else
217
  ifeq ($(CONFIG_SCSI_BUSLOGIC),m)
218
  M_OBJS += BusLogic.o
219
  endif
220
endif
221
 
222
ifeq ($(CONFIG_SCSI_EATA_DMA),y)
223
L_OBJS += eata_dma.o
224
else
225
  ifeq ($(CONFIG_SCSI_EATA_DMA),m)
226
  M_OBJS += eata_dma.o
227
  endif
228
endif
229
 
230
ifeq ($(CONFIG_SCSI_EATA_PIO),y)
231
L_OBJS += eata_pio.o
232
else
233
  ifeq ($(CONFIG_SCSI_EATA_PIO),m)
234
  M_OBJS += eata_pio.o
235
  endif
236
endif
237
 
238
ifeq ($(CONFIG_SCSI_U14_34F),y)
239
L_OBJS += u14-34f.o
240
else
241
  ifeq ($(CONFIG_SCSI_U14_34F),m)
242
  M_OBJS += u14-34f.o
243
  endif
244
endif
245
 
246
ifeq ($(CONFIG_SCSI_SUNESP),y)
247
L_OBJS += esp.o
248
else
249
  ifeq ($(CONFIG_SCSI_SUNESP),m)
250
  M_OBJS += esp.o
251
  endif
252
endif
253
 
254
ifeq ($(CONFIG_SCSI_GDTH),y)
255
L_OBJS += gdth.o
256
else
257
  ifeq ($(CONFIG_SCSI_GDTH),m)
258
  M_OBJS += gdth.o
259
  endif
260
endif
261
 
262
ifeq ($(CONFIG_SCSI_DEBUG),y)
263
L_OBJS += scsi_debug.o
264
else
265
  ifeq ($(CONFIG_SCSI_DEBUG),m)
266
  M_OBJS += scsi_debug.o
267
  endif
268
endif
269
 
270
ifeq ($(CONFIG_SCSI_FUTURE_DOMAIN),y)
271
L_OBJS += fdomain.o
272
else
273
  ifeq ($(CONFIG_SCSI_FUTURE_DOMAIN),m)
274
  M_OBJS += fdomain.o
275
  endif
276
endif
277
 
278
ifeq ($(CONFIG_SCSI_IN2000),y)
279
L_OBJS += in2000.o
280
else
281
  ifeq ($(CONFIG_SCSI_IN2000),m)
282
  M_OBJS += in2000.o
283
  endif
284
endif
285
 
286
ifeq ($(CONFIG_SCSI_GENERIC_NCR5380),y)
287
L_OBJS += g_NCR5380.o
288
else
289
  ifeq ($(CONFIG_SCSI_GENERIC_NCR5380),m)
290
  M_OBJS += g_NCR5380.o
291
  endif
292
endif
293
 
294
ifeq ($(CONFIG_SCSI_NCR53C7xx),y)
295
L_OBJS += 53c7,8xx.o
296
else
297
  ifeq ($(CONFIG_SCSI_NCR53C7xx),m)
298
  M_OBJS += 53c7,8xx.o
299
  endif
300
endif
301
 
302
ifeq ($(CONFIG_SCSI_NCR53C8XX),y)
303
L_OBJS += ncr53c8xx.o
304
else
305
  ifeq ($(CONFIG_SCSI_NCR53C8XX),m)
306
  M_OBJS += ncr53c8xx.o
307
  endif
308
endif
309
 
310
ifeq ($(CONFIG_SCSI_PAS16),y)
311
L_OBJS += pas16.o
312
else
313
  ifeq ($(CONFIG_SCSI_PAS16),m)
314
  M_OBJS += pas16.o
315
  endif
316
endif
317
 
318
ifeq ($(CONFIG_SCSI_SEAGATE),y)
319
L_OBJS += seagate.o
320
else
321
  ifeq ($(CONFIG_SCSI_SEAGATE),m)
322
  M_OBJS += seagate.o
323
  endif
324
endif
325
ifndef CONFIG_SCSI_SEAGATE
326
  ifeq ($(CONFIG_SCSI_FD_8xx),y)
327
  L_OBJS += seagate.o
328
  else
329
    ifeq ($(CONFIG_SCSI_FD_8xx),m)
330
    M_OBJS += seagate.o
331
    endif
332
  endif
333
endif
334
 
335
ifeq ($(CONFIG_SCSI_7000FASST),y)
336
L_OBJS += wd7000.o
337
else
338
  ifeq ($(CONFIG_SCSI_7000FASST),m)
339
  M_OBJS += wd7000.o
340
  endif
341
endif
342
 
343
ifeq ($(CONFIG_SCSI_T128),y)
344
L_OBJS += t128.o
345
else
346
  ifeq ($(CONFIG_SCSI_T128),m)
347
  M_OBJS += t128.o
348
  endif
349
endif
350
 
351
ifeq ($(CONFIG_SCSI_DTC3280),y)
352
L_OBJS += dtc.o
353
else
354
  ifeq ($(CONFIG_SCSI_DTC3280),m)
355
  M_OBJS += dtc.o
356
  endif
357
endif
358
 
359
ifeq ($(CONFIG_SCSI_ULTRASTOR),y)
360
L_OBJS += ultrastor.o
361
else
362
  ifeq ($(CONFIG_SCSI_ULTRASTOR),m)
363
  M_OBJS += ultrastor.o
364
  endif
365
endif
366
 
367
ifeq ($(CONFIG_SCSI_EATA),y)
368
L_OBJS += eata.o
369
else
370
  ifeq ($(CONFIG_SCSI_EATA),m)
371
  M_OBJS += eata.o
372
  endif
373
endif
374
 
375
ifeq ($(CONFIG_SCSI_NCR53C406A),y)
376
L_OBJS += NCR53c406a.o
377
else
378
  ifeq ($(CONFIG_SCSI_NCR53C406A),m)
379
  M_OBJS += NCR53c406a.o
380
  endif
381
endif
382
 
383
ifeq ($(CONFIG_SCSI_SYM53C416),y)
384
L_OBJS += sym53c416.o
385
else
386
  ifeq ($(CONFIG_SCSI_SYM53C416),m)
387
  M_OBJS += sym53c416.o
388
  endif
389
endif
390
 
391
ifeq ($(CONFIG_SCSI_TC2550),y)
392
L_OBJS += tripace.o
393
else
394
  ifeq ($(CONFIG_SCSI_TC2550),m)
395
  M_OBJS += tripace.o
396
  endif
397
endif
398
 
399
ifeq ($(CONFIG_SCSI_MEGARAID),y)
400
L_OBJS += megaraid.o
401
else
402
  ifeq ($(CONFIG_SCSI_MEGARAID),m)
403
  M_OBJS += megaraid.o
404
  endif
405
endif
406
 
407
ifeq ($(CONFIG_SCSI_INIA100),y)
408
L_OBJS += a100u2w.o
409
else
410
  ifeq ($(CONFIG_SCSI_INIA100),m)
411
  M_OBJS += a100u2w.o
412
  endif
413
endif
414
 
415
ifeq ($(CONFIG_SCSI_PCI2000),y)
416
L_OBJS += pci2000.o
417
else
418
    ifeq ($(CONFIG_SCSI_PCI2000),m)
419
    M_OBJS += pci2000.o
420
    endif
421
endif
422
 
423
ifeq ($(CONFIG_SCSI_PCI2220I),y)
424
L_OBJS += pci2220i.o
425
else
426
    ifeq ($(CONFIG_SCSI_PCI2220I),m)
427
    M_OBJS += pci2220i.o
428
    endif
429
endif
430
 
431
ifeq ($(CONFIG_SCSI_PSI240I),y)
432
L_OBJS += psi240i.o
433
else
434
    ifeq ($(CONFIG_SCSI_PSI240I),m)
435
    M_OBJS += psi240i.o
436
    endif
437
endif
438
 
439
ifeq ($(CONFIG_BLK_DEV_IDESCSI),y)
440
L_OBJS += ide-scsi.o
441
endif
442
 
443
include $(TOPDIR)/Rules.make
444
 
445
aha152x.o: aha152x.c
446
        $(CC) $(CFLAGS) $(AHA152X) -c aha152x.c
447
 
448
gdth.o: gdth.c gdth.h gdth_proc.c gdth_proc.h
449
        $(CC) $(CFLAGS) $(GDTH) -c gdth.c
450
 
451
aic7xxx.o: aic7xxx.c aic7xxx_seq.c aic7xxx_reg.h
452
        $(CC) $(CFLAGS) -c -o $@ aic7xxx.c
453
 
454
seagate.o: seagate.c
455
        $(CC) $(CFLAGS) -DARBITRATE -DSLOW_HANDSHAKE -DFAST32 -c seagate.c
456
 
457
tmscsim.o : tmscsim.c
458
        $(CC) $(CFLAGS) -c tmscsim.c
459
 
460
53c8xx_d.h 53c8xx_u.h : 53c7,8xx.scr script_asm.pl
461
        ln -sf 53c7,8xx.scr fake.c
462
        $(CPP) -traditional -DCHIP=810 fake.c | grep -v '^#' | perl script_asm.pl
463
        mv script.h 53c8xx_d.h
464
        mv scriptu.h 53c8xx_u.h
465
        rm fake.c
466
 
467
g_NCR5380.o: g_NCR5380.c
468
        $(CC) $(CFLAGS) -DGENERIC_NCR5380_OVERRIDE="{{(NCR5380_map_type)0x350,5,0, BOARD_NCR53C400}};" -c g_NCR5380.c
469
 
470
initio.o: ini9100u.o i91uscsi.o
471
        $(LD) -r -o initio.o ini9100u.o i91uscsi.o
472
 
473
megaraid.o: megaraid.c
474
        $(CC) $(CFLAGS) -c megaraid.c
475
 
476
a100u2w.o: inia100.o i60uscsi.o
477
        $(LD) -r -o a100u2w.o inia100.o i60uscsi.o
478
 
479
scsi_mod.o: $(MX_OBJS) hosts.o scsi.o scsi_ioctl.o constants.o \
480
                scsicam.o scsi_proc.o
481
        $(LD) $(LD_RFLAG) -r -o $@ $(MX_OBJS) hosts.o scsi.o scsi_ioctl.o constants.o scsicam.o scsi_proc.o
482
 
483
sr_mod.o: sr.o sr_ioctl.o
484
        $(LD) $(LD_RFLAG) -r -o $@ sr.o sr_ioctl.o
485
 
486
sd_mod.o: sd.o sd_ioctl.o
487
        $(LD) $(LD_RFLAG) -r -o $@ sd.o sd_ioctl.o

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.