2024-05-22 17:33:42 +00:00
|
|
|
TOP=./
|
|
|
|
include $(TOP)/Make.rules
|
|
|
|
|
|
|
|
LDLIBS=
|
2024-05-23 16:16:34 +00:00
|
|
|
#CFLAGS+=-O0 -g
|
|
|
|
# CFLAGS+=-Og -ggdb3
|
|
|
|
CFLAGS+=-O0 -ggdb3
|
2024-05-22 17:33:42 +00:00
|
|
|
|
|
|
|
LDFLAGS+=-Wl,--no-relax
|
2024-05-23 16:16:34 +00:00
|
|
|
LDFLAGS+=-Wl,-Ttext=0x80000000,-Tdata=0x80010000
|
|
|
|
# LDFLAGS+=-T murax_128k_ram.ld
|
2024-05-22 17:33:42 +00:00
|
|
|
|
|
|
|
PROGS=prog prog.bin prog.lst
|
|
|
|
|
|
|
|
all:: $(PROGS)
|
|
|
|
|
2024-05-23 16:16:34 +00:00
|
|
|
prog: _crt0.o _rvmain.o myfunc.o
|
2024-05-22 17:33:42 +00:00
|
|
|
$(LINK.cc) -o $@ $^ $(LDLIBS)
|
|
|
|
$(SIZE) -A -x $@
|
|
|
|
|
|
|
|
clean::
|
|
|
|
rm -f $(PROGS) *.o *.s *.lst *.bin *.srec *.dis
|
|
|
|
|
|
|
|
.PHONY: run
|
|
|
|
run: prog.bin
|
|
|
|
../../../src/rvddt -l0x3000 -f prog.bin
|
|
|
|
|