c1/Makefile

26 lines
354 B
Makefile
Raw Normal View History

2025-05-20 07:49:48 +00:00
TOP=../..
include $(TOP)/Make.rules
LDLIBS=
CFLAGS+=-O0 -g
LDFLAGS+=-Wl,--no-relax
LDFLAGS+=-Wl,-Tdata=0x80010000
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