summaryrefslogtreecommitdiffstats
path: root/drivers/block/Makefile
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1994-11-28 11:59:19 +0000
committer <ralf@linux-mips.org>1994-11-28 11:59:19 +0000
commit1513ff9b7899ab588401c89db0e99903dbf5f886 (patch)
treef69cc81a940a502ea23d664c3ffb2d215a479667 /drivers/block/Makefile
Import of Linus's Linux 1.1.68
Diffstat (limited to 'drivers/block/Makefile')
-rw-r--r--drivers/block/Makefile84
1 files changed, 84 insertions, 0 deletions
diff --git a/drivers/block/Makefile b/drivers/block/Makefile
new file mode 100644
index 000000000..30e6d74a1
--- /dev/null
+++ b/drivers/block/Makefile
@@ -0,0 +1,84 @@
+#
+# Makefile for the kernel block device drivers.
+#
+# Note! Dependencies are done automagically by 'make dep', which also
+# removes any old dependencies. DON'T put your own dependencies here
+# unless it's something special (ie not a .c file).
+#
+# Note 2! The CFLAGS definition is now inherited from the
+# parent makefile.
+#
+
+.c.s:
+ $(CC) $(CFLAGS) -S $<
+.s.o:
+ $(AS) -c -o $*.o $<
+.c.o:
+ $(CC) $(CFLAGS) -c $<
+
+#
+# Note : at this point, these files are compiled on all systems.
+# 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
+
+ifdef CONFIG_CDU31A
+OBJS := $(OBJS) cdu31a.o
+SRCS := $(SRCS) cdu31a.c
+endif
+
+ifdef CONFIG_MCD
+OBJS := $(OBJS) mcd.o
+SRCS := $(SRCS) mcd.c
+endif
+
+ifdef CONFIG_SBPCD
+OBJS := $(OBJS) sbpcd.o
+SRCS := $(SRCS) sbpcd.c
+endif #CONFIG_SBPCD
+
+ifdef CONFIG_SBPCD2
+OBJS := $(OBJS) sbpcd2.o
+SRCS := $(SRCS) sbpcd2.c
+endif #CONFIG_SBPCD2
+
+ifdef CONFIG_SBPCD3
+OBJS := $(OBJS) sbpcd3.o
+SRCS := $(SRCS) sbpcd3.c
+endif #CONFIG_SBPCD3
+
+ifdef CONFIG_SBPCD4
+OBJS := $(OBJS) sbpcd4.o
+SRCS := $(SRCS) sbpcd4.c
+endif #CONFIG_SBPCD4
+
+ifdef CONFIG_BLK_DEV_HD
+OBJS := $(OBJS) hd.o
+SRCS := $(SRCS) hd.c
+endif
+
+ifdef CONFIG_BLK_DEV_XD
+OBJS := $(OBJS) xd.o
+SRCS := $(SRCS) xd.c
+endif
+
+all: block.a
+
+block.a: $(OBJS)
+ rm -f block.a
+ $(AR) rcs block.a $(OBJS)
+ sync
+
+dep:
+ $(CPP) -M $(SRCS) > .depend
+
+dummy:
+
+#
+# include a dependency file if one exists
+#
+ifeq (.depend,$(wildcard .depend))
+include .depend
+endif