mirror of
https://github.com/openhwgroup/cvw
synced 2025-01-24 05:24:49 +00:00
35 lines
1.0 KiB
Makefile
35 lines
1.0 KiB
Makefile
|
# Jordan Carlin, jcarlin@hmc.edu, August 2024
|
||
|
# Testfloat vector Makefile for CORE-V-Wally
|
||
|
# SPDX-License-Identifier: Apache-2.0 WITH SHL-2.1
|
||
|
|
||
|
SOFTFLOAT_DIR := ${WALLY}/addins/SoftFloat-3e/build/Linux-x86_64-GCC
|
||
|
TESTFLOAT_DIR := ${WALLY}/addins/TestFloat-3e/build/Linux-x86_64-GCC
|
||
|
|
||
|
.PHONY: all softfloat testfloat vectors combined_IF_vectors clean
|
||
|
|
||
|
all: vectors combined_IF_vectors
|
||
|
|
||
|
softfloat: ${SOFTFLOAT_DIR}/softfloat.a
|
||
|
|
||
|
testfloat: ${TESTFLOAT_DIR}/testfloat
|
||
|
|
||
|
vectors: testfloat
|
||
|
$(MAKE) -C ${WALLY}/tests/fp/vectors
|
||
|
|
||
|
combined_IF_vectors: ${WALLY}/tests/riscof/work/riscv-arch-test/rv32i_m/M/src vectors
|
||
|
cd ${WALLY}/tests/fp/combined_IF_vectors \
|
||
|
&& ./create_IF_vectors.sh
|
||
|
|
||
|
clean:
|
||
|
$(MAKE) -C ${WALLY}/tests/fp/vectors clean
|
||
|
rm -f ${WALLY}/tests/fp/combined_IF_vectors/IF_vectors/*.tv
|
||
|
|
||
|
${SOFTFLOAT_DIR}/softfloat.a:
|
||
|
$(MAKE) -C ${SOFTFLOAT_DIR}
|
||
|
|
||
|
${TESTFLOAT_DIR}/testfloat: ${SOFTFLOAT_DIR}/softfloat.a
|
||
|
$(MAKE) -C ${TESTFLOAT_DIR}
|
||
|
|
||
|
${WALLY}/tests/riscof/work/riscv-arch-test/rv32i_m/M/src:
|
||
|
@$(error "riscv-arch-tests must be generated first. Run make from $$WALLY")
|