strlen-c/cpp/Makefile

25 lines
367 B
Makefile
Raw Normal View History

2024-03-18 10:11:23 +00:00
TOP=./
include $(TOP)/Make.rules
LDLIBS=
CFLAGS+=-O0 -g
LDFLAGS+=-Wl,--no-relax
LDFLAGS+=-Wl,-Tdata=0x10000
PROGS=prog prog.bin prog.lst
all:: $(PROGS)
2024-03-18 10:20:23 +00:00
prog: _crt0.o _rvmain.o myfunc.o
2024-03-18 10:11:23 +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