* better
[mascara-docs.git] / i386 / linux-2.3.21 / drivers / acorn / scsi / Makefile
blob6efd2268176481431d9289e9c0e8812cb6743500
2 # Makefile for drivers/acorn/scsi
5 L_TARGET := acorn-scsi.a
6 L_OBJS :=
7 LX_OBJS :=
8 M_OBJS :=
9 MX_OBJS :=
10 MOD_LIST_NAME := ACORN_SCSI_MODULES
12 CONFIG_QUEUE_BUILTIN :=
13 CONFIG_FAS216_BUILTIN :=
14 CONFIG_QUEUE_MODULE :=
15 CONFIG_FAS216_MODULE :=
17 ifeq ($(CONFIG_SCSI_ACORNSCSI_3),y)
18 L_OBJS += acornscsi.o acornscsi-io.o
19 CONFIG_QUEUE_BUILTIN=y
20 else
21 ifeq ($(CONFIG_SCSI_ACORNSCSI_3),m)
22 M_OBJS += acornscsi_mod.o
23 CONFIG_QUEUE_MODULE=y
24 endif
25 endif
27 ifeq ($(CONFIG_SCSI_ARXESCSI),y)
28 L_OBJS += arxescsi.o
29 CONFIG_FAS216_BUILTIN=y
30 else
31 ifeq ($(CONFIG_SCSI_ARXESCSI),m)
32 M_OBJS += arxescsi.o
33 CONFIG_FAS216_MODULE=y
34 endif
35 endif
37 ifeq ($(CONFIG_SCSI_CUMANA_1),y)
38 L_OBJS += cumana_1.o
39 else
40 ifeq ($(CONFIG_SCSI_CUMANA_1),m)
41 M_OBJS += cumana_1.o
42 endif
43 endif
45 ifeq ($(CONFIG_SCSI_CUMANA_2),y)
46 L_OBJS += cumana_2.o
47 CONFIG_FAS216_BUILTIN=y
48 else
49 ifeq ($(CONFIG_SCSI_CUMANA_2),m)
50 M_OBJS += cumana_2.o
51 CONFIG_FAS216_MODULE=y
52 endif
53 endif
55 ifeq ($(CONFIG_SCSI_ECOSCSI),y)
56 L_OBJS += ecoscsi.o
57 else
58 ifeq ($(CONFIG_SCSI_ECOSCSI),m)
59 M_OBJS += ecoscsi.o
60 endif
61 endif
63 ifeq ($(CONFIG_SCSI_OAK1),y)
64 L_OBJS += oak.o
65 else
66 ifeq ($(CONFIG_SCSI_OAK1),m)
67 M_OBJS += oak.o
68 endif
69 endif
71 ifeq ($(CONFIG_SCSI_POWERTECSCSI),y)
72 L_OBJS += powertec.o
73 CONFIG_FAS216_BUILTIN=y
74 else
75 ifeq ($(CONFIG_SCSI_POWERTECSCSI),m)
76 M_OBJS += powertec.o
77 CONFIG_FAS216_MODULE=y
78 endif
79 endif
81 ifeq ($(CONFIG_SCSI_EESOXSCSI),y)
82 L_OBJS += eesox.o
83 CONFIG_FAS216_BUILTIN=y
84 else
85 ifeq ($(CONFIG_SCSI_EESOXSCSI),m)
86 M_OBJS += eesox.o
87 CONFIG_FAS216_MODULE=y
88 endif
89 endif
91 ifeq ($(CONFIG_FAS216_BUILTIN),y)
92 LX_OBJS += fas216.o
93 CONFIG_QUEUE_BUILTIN=y
94 else
95 ifeq ($(CONFIG_FAS216_MODULE),y)
96 MX_OBJS += fas216.o
97 CONFIG_QUEUE_MODULE=y
98 endif
99 endif
101 ifeq ($(CONFIG_QUEUE_BUILTIN),y)
102 LX_OBJS += queue.o msgqueue.o
103 else
104 ifeq ($(CONFIG_QUEUE_MODULE),y)
105 MX_OBJS += queue.o msgqueue.o
106 endif
107 endif
109 include $(TOPDIR)/Rules.make
111 acornscsi_mod.o: acornscsi.o acornscsi-io.o
112 $(LD) $(LD_RFLAG) -r -o $@ acornscsi.o acornscsi-io.o
114 %.o: %.S
115 ifndef $(CONFIG_BINUTILS_NEW)
116 $(CC) $(CFLAGS) -D__ASSEMBLY__ -E $< | tr ';$$' '\n#' > ..tmp.$<.s
117 $(CC) $(CFLAGS:-pipe=) -c -o $@ ..tmp.$<.s
118 $(RM) ..tmp.$<.s
119 else
120 $(CC) $(CFLAGS) -D__ASSEMBLY__ -c -o $@ $<
121 endif