#
# Makefile for common code of the NEC VR4100 series.
#
# Note! Dependencies are done automagically by 'make dep', which also
# removes any old dependencies. DON'T put your own dependencies here
# unless it's something special (ie not a .c file).
#

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

all: vr41xx.o

O_TARGET := vr41xx.o

obj-y		:= bcu.o cmu.o giu.o icu.o int-handler.o reset.o  pmu.o mr2a_rtc.o  

obj-$(CONFIG_SERIAL)		+= serial.o
obj-$(CONFIG_VR41XX_TIME_C)	+= time.o

obj-$(CONFIG_VR41XX_LED) += led.o
obj-$(CONFIG_PROC_GIUINFO) += giuinfo.o
obj-$(CONFIG_PM) += power.o
obj-$(CONFIG_PM_SLEEP) += mr2a_sleep.o sleep.o

include $(TOPDIR)/Rules.make
