# Makefile for sh7045
# Satofumi KAMIMURA
# $Id: Makefile 1043 2009-06-19 14:51:09Z satofumi $

include rules.mk

# Compile options
ARCH = sh-elf
CFLAGS_FOR_BUILD = -O2 -m2 -Wall -W -Werror $(INCLUDES)
INCLUDES =
LDFLAGS_FOR_BUILD = -nostartfiles $(START_UP_FILES)
LDLIBS_FOR_BUILD =
ARFLAGS_FOR_BUILD = rv

# Target
SH7045_LIB = sh7045.a
TARGET = $(SH7045_LIB)

all : $(TARGET)

clean :
	$(RM) *.o $(TARGET)
	cd samples/ && $(MAKE) clean

depend :
	makedepend -Y -- $(INCLUDES) -- $(wildcard *.h *.c *.cpp)

.PHONY : all clean depend
######################################################################
$(SH7045_LIB) : \
	$(SH7045_LIB)(imask_control.o) \
	$(SH7045_LIB)(timer_control.o) \
	$(SH7045_LIB)(sci_control.o) \
	$(SH7045_LIB)(sci_put.o) \
	$(SH7045_LIB)(sci_get.o) \
	$(SH7045_LIB)(ring_buffer.o) \
	$(SH7045_LIB)(exit.o) \

# DO NOT DELETE

sci_get.o: sci_control.h
sci_put.o: sci_control.h
exit.o: exit.h
imask_control.o: imask_control.h
ring_buffer.o: ring_buffer.h
sci_control.o: sci_control.h cpu_aki_sh2.h ring_buffer.h imask_control.h
sci_get.o: sci_get.h sci_control.h cpu_aki_sh2.h
sci_put.o: sci_put.h sci_control.h cpu_aki_sh2.h
timer_control.o: timer_control.h cpu_aki_sh2.h
