Skip to content

Commit

Permalink
fix: sim Makefile
Browse files Browse the repository at this point in the history
- make c++ compilations dependent on verilate step
  • Loading branch information
saursin committed Sep 13, 2023
1 parent 3c5024c commit f6ca6bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sim/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@ $(VERILATED_DIR)/V$(VTOPMODULE)__ALL.a: $(VTOPMODULE_FILE) $(VSRCS)
make -s -C $(VERILATED_DIR) -f V$(VTOPMODULE).mk


# Generic rule to compile Cpp Files in .
# Generic rule to compile Cpp Files in . (prerequisite: complete verilate step first)
$(OBJ_DIR)/%.o: %.cpp
$(OBJ_DIR)/%.o: %.cpp $(DEPDIR)/%.Td
$(OBJ_DIR)/%.o: %.cpp $(DEPDIR)/%.Td $(VERILATED_DIR)/V$(VTOPMODULE)__ALL.a
@printf "$(CLR_CY)> Compiling %-35s <- %s$(CLR_NC)\n" $@ $<
$(COMPILE_CPP_MACRO) $<

Expand Down

0 comments on commit f6ca6bc

Please sign in to comment.