16 lines
335 B
Plaintext
16 lines
335 B
Plaintext
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 *~
|