# Makefile for 680x0 Linux amiga 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
CPPFLAGS   = -nostdinc -I$(KERNELHDRS) $(KEYBOARD)
CC	   = gcc -DKERNEL -b linux
LD	   = $(CC) -nostdlib -Xlinker
CFLAGS	   = -Wall $(CPPFLAGS) -O2 -fomit-frame-pointer -mc68020

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

#OBJS	= config.o amikeyb.o chipregs.o amiints.o
OBJS	= config.o amikeyb.o amiints.o amicon.o font.o

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

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

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

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