#
#       Copyright (C) 1996-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.11 $
# $Date: 2001/07/14 21:23:22 $
#
#       Makefile for parport modules for ftape.
#

#
#  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 :=

O_TARGET := ftape-parport.o

obj-$(CONFIG_FT_PARPORT) += fdc-parport.o
obj-$(CONFIG_FT_TRAKKER) += trakker.o
obj-$(CONFIG_FT_BPCK)    += bpck-fdc.o

include $(TOPDIR)/Rules.make

ftape-makecrc: ftape-makecrc.c
	$(HOSTCC) $(HOSTCFLAGS) -o $@ $<

bpck-fdc-crctab.h: ftape-makecrc
	./ftape-makecrc 0x1021 > $@

bpck-fdc.c: bpck-fdc-crctab.h
