homework/cpp/Makefile

39 lines
693 B
Makefile

TOP=./
include $(TOP)/Make.rules
LDLIBS=
<<<<<<< HEAD
#CFLAGS+=-O0 -g
# CFLAGS+=-Og -ggdb3
CFLAGS+=-O0 -ggdb3
LDFLAGS+=-Wl,--no-relax
LDFLAGS+=-Wl,-Ttext=0x80000000,-Tdata=0x80010000
# LDFLAGS+=-T murax_128k_ram.ld
=======
CFLAGS+=-O0 -g
LDFLAGS+=-Wl,--no-relax
LDFLAGS+=-Wl,-Tdata=0x10000
>>>>>>> origin/fabian
PROGS=prog prog.bin prog.lst
all:: $(PROGS)
<<<<<<< HEAD
prog: _crt0.o _rvmain.o myfunc.o
=======
prog: _crt0.o _rvmain.o myfunc.o myfuncStruct.o myfuncStructOOP.o myfuncOOP.o
>>>>>>> origin/fabian
$(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