355bd72c8d
ysyx_22040000 李心杨 Linux calcite 6.1.65 #1-NixOS SMP PREEMPT_DYNAMIC Sun Dec 3 06:32:13 UTC 2023 x86_64 GNU/Linux 17:27:29 up 20:25, 2 users, load average: 0.48, 0.77, 0.76
16 lines
365 B
Makefile
16 lines
365 B
Makefile
VERILATOR := verilator
|
|
|
|
VSRC := $(wildcard vsrc/*.v)
|
|
CPPSRC := $(wildcard csrc/*.cpp)
|
|
|
|
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)
|
|
$(VERILATOR) $(VSRC:%=--cc %) $< $(CPPSRC:%=--exe %) --Mdir $@
|
|
|
|
include ../Makefile
|