# Makefile for 680x0 Linux blk_drv source directory
#
# Copyright 1993 by Hamish Macdonald
#
# This file is subject to the terms and conditions of the GNU General Public
# License.  See the file "README.legal" in the main directory of this archive
# for more details.

include ../../MakeVars

SUBDIRS = scsi

OBJS = ll_rw_blk.o ramdisk.o genhd.o floppy.o # hd.o

all: blk_drv.a scsisubdirs

blk_drv.a: $(OBJS)
	$(AR) ruv blk_drv.a $(OBJS)
	$(RANLIB) blk_drv.a

scsisubdirs:
	@for i in $(SUBDIRS); do (cd $$i && echo cd $$i && $(MAKE) $(MFLAGS)) || exit; done
clean:
	$(RM) $(RMFLAGS) *.o *.a
	for i in $(SUBDIRS); do (cd $$i && $(MAKE) $(MFLAGS) clean); done

dep:
	$(CPP) -M $(INCFLAGS) *.c > .depend
	for i in $(SUBDIRS); do (cd $$i && $(MAKE) $(MFLAGS) dep) || exit; done

#
# include a dependency file if one exists
#
ifeq (.depend,$(wildcard .depend))
include .depend
endif
