#
# Makefile for a block device driver
# for the DiskOnChip flash module from M-Systems
#
# Copyright (C) 1998 IGEL GmbH
#
# 16.8.98 updated by Ron Dick, rond@m-sys.com
#
# 15 January 2001, Tom Rushworth <tbr@lineo.com>
# Rewritten to use lists instead of if-statements.
#

# O_TARGET := doc.o

list-multi      := doc.o

obj-$(CONFIG_BLK_DEV_MSYS_DOC)	+= doc.o

doc-objs   := fldrvlnx.o libosak.a

doc.o: $(doc-objs)
	$(LD) -r -o $@ $(doc-objs)

libosak.a: libosak.uu
	uudecode libosak.uu

# Yes, this looks weird, and yes this does seem to be needed sometimes
# to make sure changes to compat* get noticed for fldrvlnx.o
fldrvlnx.c: compat20.h compat20.c compat22.h compat22.c compat24.h compat24.c
	touch $@

include $(TOPDIR)/Rules.make
