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

LD=/gcc/compilers/linux/2.2.2/ld
KERNELHDRS = ../include
INCFLAGS = -nostdinc -I$(KERNELHDRS)

# Putting -mc68020 in CFLAGS results in a non-working memory.c (mm_init)
# Compiler bug?  Assembler bug?  Who knows...	HM
CFLAGS=-Wall -DKERNEL -b linux $(INCFLAGS) -O2 -fomit-frame-pointer
LDFLAGS=

OBJS	= memory.o swap.o mmap.o

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

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

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

.INCLUDE .IGNORE: ".depend"
