rvddt/examples/freestanding/stand05/Makefile
2025-02-13 11:12:23 +00:00

24 lines
344 B
Makefile

TOP=../..
include $(TOP)/Make.rules
LDLIBS=
CFLAGS+=-O
LDFLAGS+=-Wl,--no-relax
LDFLAGS+=-Wl,-Tdata=0x1000
PROGS=prog prog.bin prog.lst
all:: $(PROGS)
prog: crt0.o main.o
$(LINK.c) -o $@ $^ $(LDLIBS)
$(SIZE) -A -x $@
clean::
rm -f $(PROGS) *.o *.s *.lst *.bin *.srec
.PHONY: run
run: prog.bin
../../../src/rvddt -l0x3000 -f prog.bin