#
#       Copyright (C) 1996-1998 Clau-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.13 $
# $Date: 2002/03/19 22:59:23 $
#
#      Makefile for the lowlevel part 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

O_TARGET := ftape.o
obj-y := ftape-init.o fdc-io.o fdc-isr.o \
	ftape-bsm.o ftape-ctl.o ftape-read.o ftape-rw.o \
	ftape-write.o ftape-io.o ftape-calibr.o ftape-ecc.o \
	ftape-buffer.o ftape-format.o ftape_syms.o

ifndef CONFIG_FT_NO_TRACE_AT_ALL
  obj-y += ftape-tracing.o
endif

ifeq ($(CONFIG_PROC_FS),y)
ifeq ($(CONFIG_FT_PROC_FS),y)
ifneq (2.3,$(findstring 2.3,$(KERNELRELEASE)))
ifneq (2.4,$(findstring 2.4,$(KERNELRELEASE)))
  obj-y += ftape-proc-old.o
else
  obj-y += ftape-proc.o
endif
endif
endif
endif

export-objs := ftape_syms.o

obj-m       := $(O_TARGET)

CFLAGS_fdc-isr.o := -O6 -funroll-all-loops -fexpensive-optimizations
CFLAGS_fdc-isr.s := -O6 -funroll-all-loops -fexpensive-optimizations

include $(TOPDIR)/Rules.make
