patch-2.1.66 linux/drivers/char/ftape/Makefile

Next file: linux/drivers/char/ftape/README.PCI
Previous file: linux/drivers/char/ftape/Config.in
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.65/linux/drivers/char/ftape/Makefile linux/drivers/char/ftape/Makefile
@@ -1,65 +1,67 @@
 #
-# Makefile for the ftape device driver.
+#       Copyright (C) 1997 Claus Heine.
 #
-# 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).
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+# 
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+# 
+# You should have received a copy of the GNU General Public License
+# along with this program; see the file COPYING.  If not, write to
+# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+#
+# $Source: /homes/cvs/ftape-stacked/ftape/Makefile,v $
+# $Revision: 1.4 $
+# $Date: 1997/10/05 19:17:56 $
 #
-# Note 2! The CFLAGS definitions are now inherited from the
-# parent makes..
+#      Makefile for the QIC-40/80/3010/3020 floppy-tape driver for
+#      Linux.
 #
 
-#  Valid ftape options are:
-#       NO_TRACE        - if defined, only information and errors show up.
-#       NO_TRACE_AT_ALL - if defined, no trace output shows up.
-#       GCC_2_4_5_BUG   - must be set if using gcc-2.4.5 to prevent
-#                         bad assembler-code for the dma handling.
-#	NR_BUFFERS	- Number of ftape DMA buffers (keep it at 3!)
-#       VERIFY_HEADERS  - if set the headers segments are verified after
-#                         being written.
-#       PROBE_FC10      - if defined will look for a FC-10 card at specified
-#                         settings (FDC_BASE,FDC_IRQ,FDC_DMA) before using
-#                         the standard fd controller.
-#       FDC_BASE        - sets base address (only!) if using non-standard fdc
-#       FDC_IRQ         - sets interrupt if FDC_BASE is defined
-#       FDC_DMA         - sets dma channel if FDC_BASE is defined
-#       MACH2           - Support for Mountain MACH-2 controller at either 1E0
-#                         or 3E0, don't forget the FDC_OPT's !
-#	CLK_48MHZ	- Set to 1. If you have a i82078-1 FDC and it does not
-#			  work, try setting it to 0. (only used for i82078-1's)
-#	FDC_82078SL	- If you have a 82078SL, define this.
-
-FTAPE_OPT       = -DVERIFY_HEADERS -DNR_BUFFERS=3 -DCLK_48MHZ=1 \
-	-DNO_TRACE -DFDC_82078SL
-
-#  If you're using a non-standard floppy disk controller for the
-#  tape drive, enable one (only!) of the following lines and set
-#  the FDC_BASE, FDC_IRQ and FDC_DMA parameters to the actual values.
-#
-#  Note1: A FC-10/FC-20 controller must use either of DMA 1, 2, or 3.
-#         DMA 5 and 7 does NOT work!.
-#
-#  Note2: IRQ 2 and IRQ 9 can be considered the same. When using IRQ 2
-#         on a controller you must specify IRQ 9 here!
 #
-# For a Mountain MACH-2 controller, try 
-#FDC_OPT         = -DMACH2 -DFDC_BASE=0x1E0 -DFDC_IRQ=6 -DFDC_DMA=2
+#  This isn't used inside the kernel, only for my private development
+#  version
 #
-# For Colorado CMS FC-10 or FC-20 controllers:
-#FDC_OPT         = -DPROBE_FC10 -DFDC_BASE=0x180 -DFDC_IRQ=9 -DFDC_DMA=3
-#
-# Secondary floppy disk controller:
-#FDC_OPT         = -DFDC_BASE=0x370 -DFDC_IRQ=9 -DFDC_DMA=3
-#
-# This enables some (most?) 2Mbps controllers:
-#FDC_OPT         = -DFDC_BASE=0x3E0 -DFDC_IRQ=6 -DFDC_DMA=2
+ifndef TOPDIR
+TOPDIR= ..
+include $(TOPDIR)/MCONFIG
+endif
+
+SUB_DIRS     := 
+MOD_SUB_DIRS := $(SUB_DIRS)
+ALL_SUB_DIRS := $(SUB_DIRS) lowlevel zftape compressor
+
+ifeq ($(CONFIG_FTAPE),y)
+  O_TARGET := ftape.o
+  SUB_DIRS += lowlevel
+  O_OBJS   += lowlevel/ftape.o
+else
+  ifeq ($(CONFIG_FTAPE),m)
+  MOD_SUB_DIRS += lowlevel
+  endif
+endif
 
-EXTRA_CFLAGS := $(FTAPE_OPT) $(FDC_OPT)
+ifeq ($(CONFIG_ZFTAPE),y)
+  SUB_DIRS += zftape
+  O_OBJS   += zftape/zftape.o
+else
+  ifeq ($(CONFIG_ZFTAPE),m)
+  MOD_SUB_DIRS += zftape
+  endif
+endif
 
-O_TARGET := ftape.o
-O_OBJS   = kernel-interface.o tracing.o fdc-io.o fdc-isr.o \
-	   ftape-bsm.o ftape-ctl.o ftape-eof.o ftape-read.o ftape-rw.o \
-	   ftape-write.o ftape-io.o calibr.o ecc.o fc-10.o
-M_OBJS   = $(O_TARGET)
+ifeq ($(CONFIG_ZFT_COMPRESSOR),y)
+  SUB_DIRS += compressor
+  O_OBJS   += compressor/zft-compressor.o
+else
+  ifeq ($(CONFIG_ZFT_COMPRESSOR),m)
+  MOD_SUB_DIRS += compressor
+  endif
+endif
 
 include $(TOPDIR)/Rules.make

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov