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

VPATH = ../../..

TARGETS = cplusplus.elf

ASFILES = 
C++FILES = cplusplus.cpp

default: $(TARGETS)

include $(COMMONRULES)

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

cplusplus.elf: $(CRT0) $(OBJECTS)
	$(CXX) $(C++FLAGS) -o $@ $^ $(LDFLAGS) $(LDLIBS)

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