From 331ac53ce8e8627c4a59afea8252b934e2731005 Mon Sep 17 00:00:00 2001 From: Matthew Naylor Date: Sun, 6 Jun 2021 20:07:02 +0000 Subject: [PATCH] Add back POLite HW sim target --- apps/POLite/util/polite.mk | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/POLite/util/polite.mk b/apps/POLite/util/polite.mk index 31e64014..ba807fe6 100644 --- a/apps/POLite/util/polite.mk +++ b/apps/POLite/util/polite.mk @@ -52,6 +52,9 @@ $(INC)/config.h: $(TINSEL_ROOT)/config.py $(HL)/hostlink.a: make -C $(HL) hostlink.a +$(HL)/sim/hostlink.a: + make -C $(HL) sim/hostlink.a + RUN_CPP_OBJ := $(patsubst %.cpp, build/%.run.o, $(RUN_CPP)) SIM_CPP_OBJ := $(patsubst %.cpp, build/%.sim.o, $(RUN_CPP)) SIM_RELEASE_CPP_OBJ := $(patsubst %.cpp, build/%.sim-release.o, $(RUN_CPP)) @@ -86,6 +89,11 @@ $(BUILD)/%.sim-release.o : %.cpp $(BUILD)/sim-release: $(SIM_RELEASE_CPP_OBJ) $(RUN_H) g++ -std=c++17 -g $(SIM_CPP_OBJ) -o $(BUILD)/sim-release -g -lmetis -ltbb -fopenmp +$(BUILD)/hwsim: $(RUN_CPP) $(RUN_H) $(HL)/sim/hostlink.a + mkdir -p $(BUILD) + g++ -O2 -I $(INC) -I $(HL) -o $(BUILD)/hwsim $(RUN_CPP) $(HL)/sim/hostlink.a \ + -lmetis -fopenmp + .PHONY: clean clean: rm -rf build