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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uClinux-2.0.x/] [arch/] [armnommu/] [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 kernel/blk_drv/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
all: links first_rule
10
 
11
L_TARGET := scsi.a
12
L_OBJS   :=
13
M_OBJS   :=
14
MOD_LIST_NAME := SCSI_MODULES
15
SCSI_SRCS := $(wildcard $(L_OBJS:%.o=%.c))
16
 
17
LK        = NCR5380.c NCR5380.h constants.c constants.h hosts.h \
18
            ide-scsi.c ide-scsi.h ppa.c \
19
            ppa.h scsi.h scsi_ioctl.c scsi_proc.c scsi_syms.c scsicam.c \
20
            sd.c sd.h sd_ioctl.c sg.c sr.c sr.h sr_ioctl.c st.c st.h \
21
            st_options.h scsi_module.c
22
 
23
ifeq ($(CONFIG_SCSI),y)
24
L_OBJS += hosts.o scsi.o scsi_ioctl.o constants.o scsicam.o
25
  ifeq ($(CONFIG_PROC_FS),y)
26
    L_OBJS += scsi_proc.o
27
  endif
28
LX_OBJS += scsi_syms.o
29
else
30
  ifeq ($(CONFIG_SCSI),m)
31
    MX_OBJS += scsi_syms.o
32
    M_OBJS += scsi_mod.o
33
  endif
34
endif
35
 
36
ifeq ($(CONFIG_CHR_DEV_ST),y)
37
L_OBJS += st.o
38
else
39
  ifeq ($(CONFIG_CHR_DEV_ST),m)
40
  M_OBJS += st.o
41
  endif
42
endif
43
 
44
ifeq ($(CONFIG_BLK_DEV_SD),y)
45
L_OBJS += sd.o sd_ioctl.o
46
else
47
  ifeq ($(CONFIG_BLK_DEV_SD),m)
48
  M_OBJS += sd_mod.o
49
  endif
50
endif
51
 
52
ifeq ($(CONFIG_BLK_DEV_SR),y)
53
L_OBJS += sr.o sr_ioctl.o
54
else
55
  ifeq ($(CONFIG_BLK_DEV_SR),m)
56
  M_OBJS += sr_mod.o
57
  endif
58
endif
59
 
60
ifeq ($(CONFIG_CHR_DEV_SG),y)
61
L_OBJS += sg.o
62
else
63
  ifeq ($(CONFIG_CHR_DEV_SG),m)
64
  M_OBJS += sg.o
65
  endif
66
endif
67
 
68
ifeq ($(CONFIG_SCSI_ACORNSCSI_3),y)
69
L_OBJS += acornscsi.o acornscsi-io.o
70
LQ=y
71
else
72
  ifeq ($(CONFIG_SCSI_ACORNSCSI_3),m)
73
  M_OBJS += acornscsi_mod.o
74
  MQ=m
75
  endif
76
endif
77
 
78
ifeq ($(CONFIG_SCSI_CUMANA_1),y)
79
L_OBJS += cumana_1.o
80
else
81
  ifeq ($(CONFIG_SCSI_CUMANA_1),m)
82
  M_OBJS += cumana_1.o
83
  endif
84
endif
85
 
86
ifeq ($(CONFIG_SCSI_CUMANA_2),y)
87
L_OBJS += cumana_2.o
88
LQ=y
89
LE=y
90
else
91
  ifeq ($(CONFIG_SCSI_CUMANA_2),m)
92
  M_OBJS += cumana_2_mod.o
93
  MQ=m
94
  endif
95
endif
96
 
97
ifeq ($(CONFIG_SCSI_ECOSCSI),y)
98
L_OBJS += ecoscsi.o
99
else
100
  ifeq ($(CONFIG_SCSI_ECOSCSI),m)
101
  M_OBJS += ecoscsi.o
102
  endif
103
endif
104
 
105
ifeq ($(CONFIG_SCSI_EESOXSCSI),y)
106
L_OBJS += eesox.o
107
LQ=y
108
LE=y
109
else
110
  ifeq ($(CONFIG_SCSI_EESOXSCSI),m)
111
  M_OBJS += eesox_mod.o
112
  endif
113
endif
114
 
115
ifeq ($(CONFIG_SCSI_OAK1),y)
116
L_OBJS += oak.o
117
else
118
  ifeq ($(CONFIG_SCSI_OAK1),m)
119
  M_OBJS += oak.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_BLK_DEV_IDESCSI),y)
132
L_OBJS += ide-scsi.o
133
endif
134
 
135
ifeq ($(CONFIG_SCSI_POWERTECSCSI),y)
136
L_OBJS += powertec.o
137
LQ=y
138
LE=y
139
else
140
  ifeq ($(CONFIG_SCSI_POWERTECSCSI),m)
141
  M_OBJS += powertec_mod.o
142
  endif
143
endif
144
 
145
ifeq ($(LE),y)
146
L_OBJS += fas216.o
147
endif
148
 
149
ifeq ($(LQ),y)
150
L_OBJS += queue.o msgqueue.o
151
#else
152
#  ifeq ($(MQ),mn)
153
#  M_OBJS += queue.o msgqueue.o
154
#  endif
155
endif
156
 
157
include $(TOPDIR)/Rules.make
158
 
159
fastdep: links
160
 
161
scsi_mod.o: $(MX_OBJS) hosts.o scsi.o scsi_ioctl.o constants.o \
162
                scsicam.o scsi_proc.o
163
        $(LD) $(LD_RFLAG) -r -o $@ $(MX_OBJS) hosts.o scsi.o scsi_ioctl.o constants.o scsicam.o scsi_proc.o
164
 
165
sr_mod.o: sr.o sr_ioctl.o
166
        $(LD) $(LD_RFLAG) -r -o $@ sr.o sr_ioctl.o
167
 
168
sd_mod.o: sd.o sd_ioctl.o
169
        $(LD) $(LD_RFLAG) -r -o $@ sd.o sd_ioctl.o
170
 
171
acornscsi_mod.o: acornscsi.o acornscsi-io.o queue_mod.o msgqueue_mod.o
172
        $(LD) $(LD_RFLAG) -r -o $@ acornscsi.o acornscsi-io.o queue_mod.o msgqueue_mod.o
173
 
174
cumana_2_mod.o: cumana_2.o fas216_mod.o queue_mod.o msgqueue_mod.o
175
        $(LD) $(LD_RFLAG) -r -o $@ cumana_2.o fas216_mod.o queue_mod.o msgqueue_mod.o
176
 
177
powertec_mod.o: powertec.o fas216_mod.o queue_mod.o msgqueue_mod.o
178
        $(LD) $(LD_RFLAG) -r -o $@ powertec.o fas216_mod.o queue_mod.o msgqueue_mod.o
179
 
180
eesox_mod.o: eesox.o fas216_mod.o queue_mod.o msgqueue_mod.o
181
        $(LD) $(LD_RFLAG) -r -o $@ eesox.o fas216_mod.o queue_mod.o msgqueue_mod.o
182
 
183
fas216_mod.c: fas216.c
184
        ln -s fas216.c $@
185
 
186
queue_mod.c: queue.c
187
        ln -s queue.c $@
188
 
189
msgqueue_mod.c: msgqueue.c
190
        ln -s msgqueue.c $@
191
 
192
%.o: %.S
193
        $(CC) $(CFLAGS) -E $< | tr ';$$' '\n#' > ..tmp.s
194
        $(CC) $(CFLAGS) -c -o $@ ..tmp.s
195
        $(RM) ..tmp.s
196
 
197
.PHONY: links
198
links:
199
        -@for f in $(LK); do \
200
                if [ ! -e $$f ]; then \
201
                        echo "ln -s ../../../../drivers/scsi/$$f ."; \
202
                        ln -s ../../../../drivers/scsi/$$f .; \
203
                fi; \
204
        done
205
 
206
mrproper:
207
        -@for f in $(LK); do \
208
                if [ -L $$f ]; then \
209
                        echo $(RM) $$f; \
210
                        $(RM) $$f; \
211
                elif [ -f $$f ]; then \
212
                        echo not removing $$f; \
213
                fi; \
214
        done

powered by: WebSVN 2.1.0

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