# Makefile for Amiga 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.

KERNELHDRS = ../../include
INCFLAGS   = -nostdinc -I$(KERNELHDRS)
CC	   = gcc -DKERNEL -b linux
CFLAGS	   = -Wall -nostdinc $(INCFLAGS) -O2 -fomit-frame-pointer -mc68020

.c.o:
	$(CC) $(CFLAGS) -c -o $*.o $<
.s.o:
	$(CC) $(CFLAGS) -c -o $*.o $<

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

blk_drv.a: $(OBJS)
	ar ruv blk_drv.a $(OBJS)
	ranlib blk_drv.a

clean:
	$(RM) $(RMFLAGS) *.o *.a

dep:
	$(CPP) -M $(INCFLAGS) *.c > .depend

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