#
#       Copyright (C) 1997-2001 Claus-Justus Heine.
#
# 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.
#
# $RCSfile: Makefile,v $
# $Revision: 1.20 $
# $Date: 2001/07/14 21:23:20 $
#
#      Makefile for the QIC-40/80/3010/3020 floppy-tape driver for
#      Linux.
#

#
#  This isn't used inside the kernel, only for my private development
#  version
#
ifndef TOPDIR
TOPDIR= ..
include $(TOPDIR)/MCONFIG
endif

obj-y    :=
obj-m    :=
subdir-y :=
subdir-m :=

ifeq ($(CONFIG_FTAPE),y)
  O_TARGET := ftape.o
  subdir-y += setup
  obj-y     = lowlevel/ftape.o setup/setup.o
endif

subdir-$(CONFIG_FTAPE)          += lowlevel
subdir-$(CONFIG_FT_INTERNAL)    += internal
subdir-$(CONFIG_FT_PARPORT)     += parport
subdir-$(CONFIG_ZFTAPE)         += zftape
subdir-$(CONFIG_ZFT_COMPRESSOR) += compressor

ifeq ($(CONFIG_FT_INTERNAL),y)
  obj-y += internal/ftape-internal.o
endif  

ifeq ($(CONFIG_FT_PARPORT),y)
  subdir-m += parport
  obj-y    += parport/ftape-parport.o
endif

ifeq ($(CONFIG_ZFTAPE),y)
  obj-y    += zftape/zftape.o
endif

ifeq ($(CONFIG_ZFT_COMPRESSOR),y)
  obj-y    += compressor/zft-compressor.o
endif

include $(TOPDIR)/Rules.make
