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

TARGETS = mq.elf

VPATH = ../../../
ASFILES = 
CFILES =\
        mq.c

default: $(TARGETS)

include $(COMMONRULES)

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

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

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

