patch-2.1.88 linux/drivers/acorn/block/Makefile
Next file: linux/drivers/acorn/block/fd1772.c
Previous file: linux/drivers/acorn/block/Config.in
Back to the patch index
Back to the overall index
- Lines: 67
- Date:
Mon Feb 16 13:49:36 1998
- Orig file:
v2.1.87/linux/drivers/acorn/block/Makefile
- Orig date:
Wed Dec 31 16:00:00 1969
diff -u --recursive --new-file v2.1.87/linux/drivers/acorn/block/Makefile linux/drivers/acorn/block/Makefile
@@ -0,0 +1,66 @@
+#
+# Makefile for the Acorn 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.
+#
+
+L_TARGET := acorn-block.a
+L_OBJS :=
+M_OBJS :=
+MOD_LIST_NAME := ACORN_BLOCK_MODULES
+
+ifeq ($(CONFIG_ARCH_ARC),y)
+ ifeq ($(CONFIG_BLK_DEV_FD),y)
+ L_OBJS += fd1772.o fd1772dma.o
+ else
+ ifeq ($(CONFIG_BLK_DEV_FD),m)
+ M_OBJS += fd1772_mod.o
+ endif
+ endif
+endif
+
+ifeq ($(CONFIG_BLK_DEV_IDE_ICSIDE),y)
+ L_OBJS += ide-ics.o
+else
+ ifeq ($(CONFIG_BLK_DEV_IDE_ICSIDE),m)
+ M_OBJS += ide-ics.o
+ endif
+endif
+
+ifeq ($(CONFIG_BLK_DEV_IDE_RAPIDE),y)
+ L_OBJS += ide-rapide.o
+else
+ ifeq ($(CONFIG_BLK_DEV_IDE_RAPIDE),m)
+ M_OBJS += ide-rapide.o
+ endif
+endif
+
+ifeq ($(CONFIG_BLK_DEV_MFM),y)
+ L_OBJS += mfmhd.o mfm.o
+else
+ ifeq ($(CONFIG_BLK_DEV_MFM),m)
+ M_OBJS += mfmhd_mod.o
+ endif
+endif
+
+include $(TOPDIR)/Rules.make
+
+fd1772_mod.o: $(FLOPPY)
+ $(LD) -r -o $@ $(FLOPPY)
+
+mfmhd_mod.o: mfmhd.o mfm.o
+ $(LD) -r -o $@ mfmhd.o mfm.o
+
+%.o: %.S
+ifndef $(CONFIG_BINUTILS_NEW)
+ $(CC) $(CFLAGS) -D__ASSEMBLY__ -E $< | tr ';$$' '\n#' > ..tmp.s
+ $(CC) $(CFLAGS) -c -o $@ ..tmp.s
+ $(RM) ..tmp.s
+else
+ $(CC) $(CFLAGS) -D__ASSEMBLY__ -c -o $@ $<
+endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov