Files
radiance/radiance.mk
2024-01-29 15:40:15 -08:00

20 lines
764 B
Makefile

##############################################################
# extra variables/targets ingested by the chipyard make system
##############################################################
##################################################################
# THE FOLLOWING MUST BE += operators
##################################################################
RADPIE_SRC_DIR = $(base_dir)/generators/radiance/radpie
RADPIE_BUILD_DIR = $(RADPIE_SRC_DIR)/target/release
EXTRA_SIM_REQS += radpie
EXTRA_SIM_LDFLAGS += -L$(RADPIE_BUILD_DIR) -Wl,-rpath,$(RADPIE_BUILD_DIR) -lradpie
# cargo handles building of Rust files all on its own, so make this a PHONY
# target to run cargo unconditionally
.PHONY: radpie
radpie:
cd $(RADPIE_SRC_DIR) && cargo build --release