Skip to content

Commit

Permalink
Add back POLite HW sim target
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Naylor committed Jun 6, 2021
1 parent 4f53c92 commit 331ac53
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions apps/POLite/util/polite.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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

0 comments on commit 331ac53

Please sign in to comment.