# Makefile for Amiga Linux minix filesystem 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)
LD=/gcc/compilers/linux/2.2.2/ld
CFLAGS=-Wall -DKERNEL -b linux $(INCFLAGS) -O2 -fomit-frame-pointer -mc68020

LDFLAGS=

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

OBJS=	bitmap.o truncate.o namei.o inode.o \
	file.o dir.o symlink.o blkdev.o chrdev.o fifo.o

minix.o: $(OBJS)
	$(LD) -r -o minix.o $(OBJS)

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

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

.INCLUDE .IGNORE: ".depend"
