diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1995-11-14 08:00:00 +0000 |
---|---|---|
committer | <ralf@linux-mips.org> | 1995-11-14 08:00:00 +0000 |
commit | e7c2a72e2680827d6a733931273a93461c0d8d1b (patch) | |
tree | c9abeda78ef7504062bb2e816bcf3e3c9d680112 /drivers/block/Makefile | |
parent | ec6044459060a8c9ce7f64405c465d141898548c (diff) |
Import of Linux/MIPS 1.3.0
Diffstat (limited to 'drivers/block/Makefile')
-rw-r--r-- | drivers/block/Makefile | 38 |
1 files changed, 36 insertions, 2 deletions
diff --git a/drivers/block/Makefile b/drivers/block/Makefile index ea77020f6..ebf02d8a5 100644 --- a/drivers/block/Makefile +++ b/drivers/block/Makefile @@ -21,8 +21,14 @@ # In the future, some of these should be built conditionally. # -OBJS := ll_rw_blk.o floppy.o ramdisk.o genhd.o -SRCS := ll_rw_blk.c floppy.c ramdisk.c genhd.c +OBJS := ll_rw_blk.o ramdisk.o genhd.o +SRCS := ll_rw_blk.c ramdisk.c genhd.c +BLOCK_MODULE_OBJS = + +ifdef CONFIG_BLK_DEV_FD +OBJS := $(OBJS) floppy.o +SRCS := $(SRCS) floppy.c +endif ifdef CONFIG_CDU31A OBJS := $(OBJS) cdu31a.o @@ -34,9 +40,18 @@ OBJS := $(OBJS) mcd.o SRCS := $(SRCS) mcd.c endif +ifdef CONFIG_AZTCD +OBJS := $(OBJS) aztcd.o +SRCS := $(SRCS) aztcd.c +else +BLOCK_MODULE_OBJS := $(BLOCK_MODULE_OBJS) aztcd.o +endif + ifdef CONFIG_SBPCD OBJS := $(OBJS) sbpcd.o SRCS := $(SRCS) sbpcd.c +else +BLOCK_MODULE_OBJS := $(BLOCK_MODULE_OBJS) sbpcd.o endif #CONFIG_SBPCD ifdef CONFIG_SBPCD2 @@ -59,11 +74,23 @@ OBJS := $(OBJS) hd.o SRCS := $(SRCS) hd.c endif +ifdef CONFIG_BLK_DEV_IDE +OBJS := ide.o $(OBJS) +SRCS := ide.c $(SRCS) +endif + ifdef CONFIG_BLK_DEV_XD OBJS := $(OBJS) xd.o SRCS := $(SRCS) xd.c endif +ifdef CONFIG_CDU535 +OBJS := $(OBJS) sonycd535.o +SRCS := $(SRCS) sonycd535.c +else +BLOCK_MODULE_OBJS := $(BLOCK_MODULE_OBJS) sonycd535.o +endif + all: block.a block.a: $(OBJS) @@ -73,6 +100,13 @@ block.a: $(OBJS) dep: $(CPP) -M $(SRCS) > .depend +ifdef BLOCK_MODULE_OBJS + $(CPP) -M -DMODULE $(BLOCK_MODULE_OBJS:.o=.c) >> .depend +endif + +modules: $(BLOCK_MODULE_OBJS) + echo $(BLOCK_MODULE_OBJS) > ../../modules/BLOCK_MODULES + (cd ../../modules;for i in $(BLOCK_MODULE_OBJS); do ln -sf ../drivers/block/$$i .; done) dummy: |