aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Peter McGoron 2024-02-20 20:34:10 -0500
committerGravatar Peter McGoron 2024-02-20 20:34:10 -0500
commit4bcefafb697c27501cda3cb6f1584df78d9011bc (patch)
treef4aa662ee9eef6c02dd7a13301a1d61247210c82 /Makefile
xorshiftHEADmaster
Diffstat (limited to '')
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..355baa5
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,10 @@
+VERILATOR_FLAGS = --cc --exe -x-assign fast -Wall
+VERILATOR_INPUT = xorshift.v xorshift.cpp
+
+obj_dir/Vxorshift: obj_dir/Vxorshift.mk obj_dir/Vxorshift.cpp \
+ obj_dir/Vxorshift.h xorshift.cpp
+ cd obj_dir && make -f Vxorshift.mk && ./Vxorshift
+obj_dir/Vxorshift.mk: $(VERILATOR_INPUT)
+ verilator $(VERILATOR_FLAGS) $(VERILATOR_INPUT)
+clean:
+ rm -rf obj_dir