2 # Makefile for drivers/acorn/scsi
5 L_TARGET
:= acorn-scsi.a
6 MOD_LIST_NAME
:= ACORN_SCSI_MODULES
13 export-objs
:= fas216.o queue.o msgqueue.o
14 list-multi
:= acornscsi_mod.o
15 acornscsi_mod-objs
:= acornscsi.o acornscsi-io.o
17 obj-
$(CONFIG_SCSI_ACORNSCSI_3
) += acornscsi_mod.o queue.o msgqueue.o
18 obj-
$(CONFIG_SCSI_ARXESCSI
) += arxescsi.o fas216.o queue.o msgqueue.o
19 obj-
$(CONFIG_SCSI_CUMANA_1
) += cumana_1.o
20 obj-
$(CONFIG_SCSI_CUMANA_2
) += cumana_2.o fas216.o queue.o msgqueue.o
21 obj-
$(CONFIG_SCSI_ECOSCSI
) += ecoscsi.o
22 obj-
$(CONFIG_SCSI_OAK1
) += oak.o
23 obj-
$(CONFIG_SCSI_POWERTECSCSI
) += powertec.o fas216.o queue.o msgqueue.o
24 obj-
$(CONFIG_SCSI_EESOXSCSI
) += eesox.o fas216.o queue.o msgqueue.o
26 # Extract lists of the multi-part drivers.
27 # The 'int-*' lists are intermediate files used to build the multi's.
29 multi-y
:= $(filter $(list-multi
), $(obj-y
))
30 multi-m
:= $(filter $(list-multi
), $(obj-m
))
31 int-y
:= $(sort $(foreach m
, $(multi-y
), $($(basename $(m
))-objs
)))
32 int-m
:= $(sort $(foreach m
, $(multi-m
), $($(basename $(m
))-objs
)))
34 # Files that are both resident and modular; remove from modular.
36 obj-m
:= $(filter-out $(obj-y
), $(obj-m
))
37 int-m
:= $(filter-out $(int-y
), $(int-m
))
39 # Take multi-part drivers out of obj-y and put components in.
41 obj-y
:= $(filter-out $(list-multi
), $(obj-y
)) $(int-y
)
43 # Translate to Rules.make lists.
45 L_OBJS
:= $(filter-out $(export-objs
), $(obj-y
))
46 LX_OBJS
:= $(filter $(export-objs
), $(obj-y
))
47 M_OBJS
:= $(sort $(filter-out $(export-objs
), $(obj-m
)))
48 MX_OBJS
:= $(sort $(filter $(export-objs
), $(obj-m
)))
50 include $(TOPDIR
)/Rules.make
53 $(CC
) -D__ASSEMBLY__
$(AFLAGS
) -traditional
-c
-o
$*.o
$<
55 acornscsi_mod.o
: acornscsi.o acornscsi-io.o
56 $(LD
) $(LD_RFLAG
) -r
-o
$@ acornscsi.o acornscsi-io.o