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

Next file: linux/drivers/scsi/aic7xxx/aic7770.c
Previous file: linux/drivers/scsi/advansys.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.8/linux/drivers/scsi/aic7xxx/Makefile linux/drivers/scsi/aic7xxx/Makefile
@@ -10,14 +10,23 @@
 
 obj-$(CONFIG_SCSI_AIC7XXX)	+= aic7xxx_mod.o
 
+#EXTRA_CFLAGS += -g
+
 # Platform Specific Files
-AIC7XXX_OBJS = aic7xxx_linux.o aic7xxx_linux_pci.o
+AIC7XXX_OBJS = aic7xxx_linux.o 
 AIC7XXX_OBJS += aic7xxx_proc.o aic7770_linux.o
+#PCI Specific Platform Files
+ifeq ($(CONFIG_PCI),y)
+AIC7XXX_OBJS += aic7xxx_linux_pci.o
+endif
 # Core Files
-AIC7XXX_OBJS += aic7xxx.o aic7xxx_pci.o aic7xxx_93cx6.o aic7770.o
+AIC7XXX_OBJS += aic7xxx.o aic7xxx_93cx6.o aic7770.o
+#PCI Specific Core Files
+ifeq ($(CONFIG_PCI),y)
+AIC7XXX_OBJS += aic7xxx_pci.o
+endif
 
 # Override our module desitnation
-MOD_DESTDIR = $(shell cd .. && $(CONFIG_SHELL) $(TOPDIR)/scripts/pathdown.sh)
 MOD_TARGET = aic7xxx.o
 
 include $(TOPDIR)/Rules.make
@@ -28,9 +37,6 @@
 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
-else
-aic7xxx_seq.h aic7xxx_reg.h: aic7xxx.seq aic7xxx.reg
-	echo "Warning, generated aic7xxx firmware files may be out of date!\n"
 endif
 
 aicasm/aicasm: aicasm/*.[chyl]

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