patch-1.3.39 linux/drivers/scsi/Makefile
Next file: linux/drivers/scsi/scsi.c
Previous file: linux/drivers/scsi/53c7,8xx.c
Back to the patch index
Back to the overall index
- Lines: 56
- Date:
Thu Nov 9 08:24:08 1995
- Orig file:
v1.3.38/linux/drivers/scsi/Makefile
- Orig date:
Wed Nov 8 07:11:33 1995
diff -u --recursive --new-file v1.3.38/linux/drivers/scsi/Makefile linux/drivers/scsi/Makefile
@@ -14,6 +14,7 @@
L_TARGET := scsi.a
L_OBJS :=
M_OBJS :=
+MX_OBJS :=
MOD_LIST_NAME := SCSI_MODULES
SCSI_SRCS = $(wildcard $(L_OBJS:%.o=%.c))
@@ -34,11 +35,7 @@
L_OBJS += hosts.o scsi.o scsi_ioctl.o constants.o scsicam.o scsi_proc.o
else
ifeq ($(CONFIG_SCSI),m)
- ifdef CONFIG_MODVERSIONS
- # Create this before we build anything else.
- SCSI_MODULE_VER := scsi_syms.ver
- endif
- SYMTAB_OBJS := scsi_syms.o
+ MX_OBJS += scsi_syms.o
M_OBJS += scsi_mod.o
endif
endif
@@ -242,12 +239,6 @@
include $(TOPDIR)/Rules.make
-ifeq ($(CONFIG_SCSI),m)
- ifdef CONFIG_MODVERSIONS
- include ../../versions.mk
- endif
-endif
-
aha152x.o: aha152x.c
$(CC) $(CFLAGS) $(AHA152X) -c aha152x.c
@@ -272,16 +263,12 @@
mv scriptu.h 53c8xx_u.h
rm fake.c
-scsi_mod.o: $(SCSI_MODULE_VER) hosts.o scsi.o scsi_ioctl.o constants.o \
- scsicam.o scsi_proc.o $(SYMTAB_OBJS)
- $(LD) $(LD_RFLAG) -r -o $@ hosts.o scsi.o scsi_ioctl.o constants.o scsicam.o scsi_proc.o $(SYMTAB_OBJS)
+scsi_mod.o: $(MX_OBJS) hosts.o scsi.o scsi_ioctl.o constants.o \
+ scsicam.o scsi_proc.o
+ $(LD) $(LD_RFLAG) -r -o $@ $(MX_OBJS) hosts.o scsi.o scsi_ioctl.o constants.o scsicam.o scsi_proc.o
-sr_mod.o: $(SCSI_MODULE_VER) sr.o sr_ioctl.o
+sr_mod.o: sr.o sr_ioctl.o
$(LD) $(LD_RFLAG) -r -o $@ sr.o sr_ioctl.o
-sd_mod.o: $(SCSI_MODULE_VER) sd.o sd_ioctl.o
+sd_mod.o: sd.o sd_ioctl.o
$(LD) $(LD_RFLAG) -r -o $@ sd.o sd_ioctl.o
-
-$(SYMTAB_OBJS): $(SYMTAB_OBJS:.o=.c)
-
-modules: $(SCSI_MODULE_VER)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this