TEST?=$(shell basename $(PWD))

DOTF=../../tb.f
SRCS=$(TEST).S
APPNAME=ram_init

LDSCRIPT=../memmap.ld
LDFLAGS=-nostartfiles
INCDIRS=../include
MARCH=rv32ic
# Disassemble all sections
DISASSEMBLE=-D

include $(SCRIPTS)/sim.mk
include $(SCRIPTS)/software.mk

compile::
	objdump -t ram_init.elf | grep hazard5_signature_start | cut -c1-8 > result_ptr.hex
	objdump -t ram_init.elf | grep hazard5_signature_end | cut -c1-8 >> result_ptr.hex

test:
	$(MAKE) sim TEST=$(TEST) > sim.log
	../compare_testvec sim.log $(TEST).ref

clean::
	rm -f sim.log result_ptr.hex