summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/pcmcia/Makefile
blob: d37c6fc5f31e7957ad15b55eeafbc240c87553e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#
# drivers/scsi/pcmcia/Makefile
#
# Makefile for the Linux PCMCIA SCSI drivers.
#

SUB_DIRS     := 
MOD_SUB_DIRS := $(SUB_DIRS)
ALL_SUB_DIRS := $(SUB_DIRS)

MOD_LIST_NAME := PCMCIA_SCSI_MODULES

obj-y		:=
obj-m		:=
obj-n		:=
obj-		:=

vpath %c ..

CFLAGS_aha152x.o = -DPCMCIA -D__NO_VERSION__ -DAHA152X_STAT
CFLAGS_aic7xxx.o = -DPCMCIA -D__NO_VERSION__
CFLAGS_fdomain.o = -DPCMCIA -D__NO_VERSION__
CFLAGS_qlogicfas.o = -DPCMCIA -D__NO_VERSION__

# 16-bit client drivers
obj-$(CONFIG_PCMCIA_QLOGIC)	+= qlogic_cs.o
obj-$(CONFIG_PCMCIA_FDOMAIN)	+= fdomain_cs.o
obj-$(CONFIG_PCMCIA_AHA152X)	+= aha152x_cs.o

# Cardbus client drivers
obj-$(CONFIG_PCMCIA_APA1480)	+= apa1480_cb.o

list-multi	:= qlogic_cs.o fdomain_cs.o aha152x_cs.o apa1480_cb.o
aha152x-objs	:= aha152x_stub.o aha152x.o
apa1480-objs	:= apa1480_stub.o aic7xxx.o
fdomain-objs	:= fdomain_stub.o fdomain.o
qlogic-objs	:= qlogic_stub.o qlogicfas.o

# Extract lists of the multi-part drivers.

multi-y		:= $(filter $(list-multi), $(obj-y))
multi-m		:= $(filter $(list-multi), $(obj-m))
int-y		:= $(sort $(foreach m, $(multi-y), $($(basename $(m))-objs)))
int-m		:= $(sort $(foreach m, $(multi-m), $($(basename $(m))-objs)))

# Translate to Rules.make lists.

O_OBJS		:= $(filter-out $(export-objs), $(obj-y))
OX_OBJS		:= $(filter     $(export-objs), $(obj-y))
M_OBJS		:= $(filter-out $(export-objs), $(obj-m))
MX_OBJS		:= $(filter     $(export-objs), $(obj-m))
MI_OBJS		:= $(filter-out $(export-objs), $(int-m))
MIX_OBJS	:= $(filter     $(export-objs), $(int-m))

include $(TOPDIR)/Rules.make

aha152x_cs.o: $(aha152x-objs)
	$(LD) -r -o $@ $(aha152x-objs)

apa1480_cb.o: $(apa1480-objs)
	$(LD) -r -o $@ $(apa1480-objs)

fdomain_cs.o: $(fdomain-objs)
	$(LD) -r -o $@ $(fdomain-objs)

qlogic_cs.o: $(qlogic-objs)
	$(LD) -r -o $@ $(qlogic-objs)