TOPSRC		= $(shell cd ../../..; pwd)
include $(TOPSRC)/target.mk

CFLAGS		+= -Werror

all:            cplus

cplus:          cplus.o
		${CXX} ${LDFLAGS} -nostdlib -o cplus.elf cplus.o ${LIBS}
		${OBJDUMP} -S cplus.elf > cplus.dis
		${SIZE} cplus.elf
		${ELF2AOUT} cplus.elf $@

clean:
		rm -f *.o *.elf ${MAN} cplus *.elf *.dis tags *~
