summaryrefslogtreecommitdiffstats
path: root/drivers/acorn/scsi/Makefile
blob: ee7152a442ccae06fca6ee5aca296d5f1eb87036 (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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
#
# Makefile for drivers/acorn/scsi
#

L_TARGET := acorn-scsi.a
L_OBJS   :=
LX_OBJS  :=
M_OBJS   :=
MX_OBJS  :=
MOD_LIST_NAME := ACORN_SCSI_MODULES

CONFIG_QUEUE_BUILTIN :=
CONFIG_FAS216_BUILTIN :=
CONFIG_QUEUE_MODULE :=
CONFIG_FAS216_MODULE :=

ifeq ($(CONFIG_SCSI_ACORNSCSI_3),y)
  L_OBJS += acornscsi.o acornscsi-io.o
  CONFIG_QUEUE_BUILTIN=y
else
  ifeq ($(CONFIG_SCSI_ACORNSCSI_3),m)
    M_OBJS += acornscsi_mod.o
    CONFIG_QUEUE_MODULE=y
  endif
endif

ifeq ($(CONFIG_SCSI_ARXESCSI),y)
  L_OBJS += arxescsi.o
  CONFIG_FAS216_BUILTIN=y
else
  ifeq ($(CONFIG_SCSI_ARXESCSI),m)
    M_OBJS += arxescsi.o
    CONFIG_FAS216_MODULE=y
  endif
endif

ifeq ($(CONFIG_SCSI_CUMANA_1),y)
  L_OBJS += cumana_1.o
else
  ifeq ($(CONFIG_SCSI_CUMANA_1),m)
    M_OBJS += cumana_1.o
  endif
endif

ifeq ($(CONFIG_SCSI_CUMANA_2),y)
  L_OBJS += cumana_2.o
  CONFIG_FAS216_BUILTIN=y
else
  ifeq ($(CONFIG_SCSI_CUMANA_2),m)
    M_OBJS += cumana_2.o
    CONFIG_FAS216_MODULE=y
  endif
endif

ifeq ($(CONFIG_SCSI_ECOSCSI),y)
  L_OBJS += ecoscsi.o
else
  ifeq ($(CONFIG_SCSI_ECOSCSI),m)
    M_OBJS += ecoscsi.o
  endif
endif

ifeq ($(CONFIG_SCSI_OAK1),y)
  L_OBJS += oak.o
else
  ifeq ($(CONFIG_SCSI_OAK1),m)
    M_OBJS += oak.o
  endif
endif

ifeq ($(CONFIG_SCSI_POWERTECSCSI),y)
  L_OBJS += powertec.o
  CONFIG_FAS216_BUILTIN=y
else
  ifeq ($(CONFIG_SCSI_POWERTECSCSI),m)
    M_OBJS += powertec.o
    CONFIG_FAS216_MODULE=y
  endif
endif

ifeq ($(CONFIG_SCSI_EESOXSCSI),y)
  L_OBJS += eesox.o
  CONFIG_FAS216_BUILTIN=y
else
  ifeq ($(CONFIG_SCSI_EESOXSCSI),m)
    M_OBJS += eesox.o
    CONFIG_FAS216_MODULE=y
  endif
endif

ifeq ($(CONFIG_FAS216_BUILTIN),y)
  LX_OBJS += fas216.o
  CONFIG_QUEUE_BUILTIN=y
else
  ifeq ($(CONFIG_FAS216_MODULE),y)
    MX_OBJS += fas216.o
    CONFIG_QUEUE_MODULE=y
  endif
endif

ifeq ($(CONFIG_QUEUE_BUILTIN),y)
  LX_OBJS += queue.o msgqueue.o
else
  ifeq ($(CONFIG_QUEUE_MODULE),y)
    MX_OBJS += queue.o msgqueue.o
  endif
endif

include $(TOPDIR)/Rules.make

.S.o:
	$(CC) -D__ASSEMBLY__ $(AFLAGS) -traditional -c -o $*.o $<

acornscsi_mod.o: acornscsi.o acornscsi-io.o
	$(LD) $(LD_RFLAG) -r -o $@ acornscsi.o acornscsi-io.o