include $(ROOT)/usr/include/make/SCdefs

VPATH = ../../..

TARGETS = timer.elf

ASFILES = 
CFILES = timer.c

default: $(TARGETS)

include $(COMMONRULES)

LDIRT += timer.elf
LLDLIBS = -lios -lioslibc -lvio
LLDOPTS = -Ttext $(MK_APP_START) -T $(SDRAM_LINK) -L$(ROOT)/usr/lib/sc
LCOPTS = 

timer.elf: $(OBJECTS)
	$(CC) $(CFLAGS) -o $@ $(CRT0) $^ $(LDFLAGS) $(LDLIBS)

runtests: $(TARGETS)
	$(MERGE) -k ../../sk.elf -s $(MK_SHARED_START) -n timer.elf -o test.mrg
	$(SCE) -t 0x1ff -f -o test.mrg
	/bin/rm -f test.mrg
