patch-2.4.21 linux-2.4.21/drivers/scsi/aic7xxx/Makefile

Next file: linux-2.4.21/drivers/scsi/aic7xxx/aic7xxx_core.c
Previous file: linux-2.4.21/drivers/scsi/aic79xx/scsi_message.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.20/drivers/scsi/aic7xxx/Makefile linux-2.4.21/drivers/scsi/aic7xxx/Makefile
@@ -30,14 +30,12 @@
 
 include $(TOPDIR)/Rules.make
 
-aic7xxx.o: $(obj-aic7xxx)
-	$(LD) $(LD_RFLAG) -r -o $@ $(obj-aic7xxx)
-
-ifeq ($(CONFIG_AIC7XXX_BUILD_FIRMWARE),y)
 aic7xxx_core.o: aic7xxx_seq.h
-
 $(obj-aic7xxx): aic7xxx_reg.h
+aic7xxx.o: aic7xxx_seq.h aic7xxx_reg.h $(obj-aic7xxx)
+	$(LD) $(LD_RFLAG) -r -o $@ $(obj-aic7xxx)
 
+ifeq ($(CONFIG_AIC7XXX_BUILD_FIRMWARE),y)
 aic7xxx_seq.h aic7xxx_reg.h: aic7xxx.seq aic7xxx.reg aicasm/aicasm
 	aicasm/aicasm -I. -r aic7xxx_reg.h -o aic7xxx_seq.h aic7xxx.seq
 endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)