2023-12-23 09:27:29 +00:00
|
|
|
VERILATOR := verilator
|
|
|
|
|
|
|
|
VSRC := $(wildcard vsrc/*.v)
|
|
|
|
CPPSRC := $(wildcard csrc/*.cpp)
|
2023-12-23 09:29:41 +00:00
|
|
|
PREFIX ?= .
|
|
|
|
OBJDIR := $(PREFIX)/obj
|
2023-12-23 09:27:29 +00:00
|
|
|
|
|
|
|
all:
|
|
|
|
@echo "Write this Makefile by your self."
|
|
|
|
|
|
|
|
sim: obj_dir
|
|
|
|
$(call git_commit, "sim RTL") # DO NOT REMOVE THIS LINE!!!
|
|
|
|
@echo "Write this Makefile by your self."
|
|
|
|
|
|
|
|
obj_dir: $(VSRC) $(CPPSRC)
|
2023-12-23 09:29:41 +00:00
|
|
|
$(VERILATOR) $(VSRC:%=--cc %) $(CPPSRC:%=--exe %) --Mdir $(OBJDIR)
|
2023-12-23 09:27:29 +00:00
|
|
|
|
|
|
|
include ../Makefile
|