# mcd.o (H) 1995 by Martin Dalecki 
# Makefile for the mcd.o runntime loadable module for 
# mitsumi drives using the old proprietary version of ATAPI

CC = gcc -pipe

# Configuration values:
# LOCAL_MCD_BASE 	- Base addres of the mitsumi drive
# LOCAL_MCD_INT		- Interrupt used by the device
# LOCAL_MCD_TIMEOUT	- increase this, when you are getting too lot
#			of getValue timeout kernel errors during
#			drive usage.

CONFIG = -DLOCAL_MCD_BASE=0x230 \
         -DLOCAL_MCD_INT=11 \
         -DLOCAL_MCD_TIMEOUT=256

OFLAGS = -O3 -m486 
GFLAGS = -Wall -Wstrict-prototypes 
DFLAGS = -D__KERNEL__ -DLINUX -DMODULE


XCC = $(CC) $(OFLAGS) $(GFLAGS) $(DFLAGS) $(CONFIG)

mcd.o: mcd.c Makefile
	$(XCC) -c mcd.c
	chmod u=+x mcd.o 
	
clean::
	rm -f *.o *%
install::
	cp mcd.o /lib/modules/`uname -r`/misc/
