# Gauntlet/kernel/SA1100/Makefile
# Created by Adam Wiggins: 30/06/1999
# Last Modified by Adam Wiggins: 04/10/1999
# SA-1100 CPU Specific Makefile for Gauntlet

include ../../Makefile.conf
include ../Makefile.conf

SOURCES=init.c debug.c debug_asm.S debug_serial.c interrupt.S reset.S
OBJECTS=$(patsubst %.S, %.o, $(patsubst %.c, %.o, $(SOURCES)))

libsa1100.a: $(OBJECTS) ./Makefile ../Makefile.conf ../../Makefile.conf
	$(AR) crs $@ $(OBJECTS)
	cp $@ ../libcpu.a

.depend: $(SOURCES) ./Makefile ../Makefile.conf ../../Makefile.conf
	$(CC) -M $(CPPFLAGS) $(SOURCES) > .depend

clean:
	rm -f *.o *.a *~

include .depend
