patch-2.1.40 linux/drivers/scsi/Makefile

Next file: linux/drivers/scsi/amiga7xx.c
Previous file: linux/drivers/scsi/53c7xx.scr
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.39/linux/drivers/scsi/Makefile linux/drivers/scsi/Makefile
@@ -95,6 +95,30 @@
   endif
 endif
 
+ifeq ($(CONFIG_A4000T_SCSI),y)
+L_OBJS += amiga7xx.o 53c7xx.o
+else
+  ifeq ($(CONFIG_A4000T_SCSI),m)
+  M_OBJS += amiga7xx.o 53c7xx.o
+  endif
+endif
+
+ifeq ($(CONFIG_A4091_SCSI),y)
+L_OBJS += amiga7xx.o 53c7xx.o
+else
+  ifeq ($(CONFIG_A4091_SCSI),m)
+  M_OBJS += amiga7xx.o 53c7xx.o
+  endif
+endif
+
+ifeq ($(CONFIG_WARPENGINE_SCSI),y)
+L_OBJS += amiga7xx.o 53c7xx.o
+else
+  ifeq ($(CONFIG_WARPENGINE_SCSI),m)
+  M_OBJS += amiga7xx.o 53c7xx.o
+  endif
+endif
+
 ifeq ($(CONFIG_A3000_SCSI),y)
 L_OBJS += a3000.o wd33c93.o
 else
@@ -416,6 +440,16 @@
 	$(CPP) -traditional -DCHIP=810 fake.c | grep -v '^#' | perl script_asm.pl 
 	mv script.h 53c8xx_d.h
 	mv scriptu.h 53c8xx_u.h
+	rm fake.c
+
+53c7xx.o : 53c7xx_d.h 53c7xx.c
+	$(CC) $(CFLAGS) -c 53c7xx.c
+
+53c7xx_d.h 53c7xx_u.h : 53c7xx.scr script_asm.pl
+	ln -sf 53c7xx.scr fake.c
+	$(CPP) -traditional -DCHIP=710 fake.c | grep -v '^#' | perl -s script_asm.pl -ncr7x0_family
+	mv script.h 53c7xx_d.h
+	mv scriptu.h 53c7xx_u.h
 	rm fake.c
 
 ncr53c8xx.o : ncr53c8xx.c

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov