mirror of
https://github.com/Silicon1602/srdl2sv.git
synced 2024-12-22 06:58:41 +00:00
Add Makefiles in example/ to easily rebuild all examples
This commit is contained in:
parent
82b2490256
commit
6c9df1cc02
11
examples/Makefile
Normal file
11
examples/Makefile
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
ALL_DIRS = $(shell ls -d */)
|
||||||
|
|
||||||
|
.PHONY: clean $(ALL_DIRS)
|
||||||
|
|
||||||
|
default: $(ALL_DIRS)
|
||||||
|
|
||||||
|
$(ALL_DIRS):
|
||||||
|
make -C $@
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf */srdl2sv_out
|
11
examples/enums/Makefile
Normal file
11
examples/enums/Makefile
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
RTL_TARGETS = $(subst .rdl,.sv,srdl2sv_out/$(shell ls *.rdl))
|
||||||
|
|
||||||
|
.PHONY: clean
|
||||||
|
|
||||||
|
default: $(RTL_TARGETS)
|
||||||
|
|
||||||
|
srdl2sv_out/%.sv: %.rdl
|
||||||
|
srdl2sv $? --out-dir $(shell dirname $@) --stdout-logging INFO
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf srdl2sv_out
|
11
examples/hierarchical_regfiles/Makefile
Normal file
11
examples/hierarchical_regfiles/Makefile
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
RTL_TARGETS = $(subst .rdl,.sv,srdl2sv_out/$(shell ls *.rdl))
|
||||||
|
|
||||||
|
.PHONY: clean
|
||||||
|
|
||||||
|
default: $(RTL_TARGETS)
|
||||||
|
|
||||||
|
srdl2sv_out/%.sv: %.rdl
|
||||||
|
srdl2sv $? --out-dir $(shell dirname $@) --stdout-logging INFO
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf srdl2sv_out
|
11
examples/interrupt_hierarchy/Makefile
Normal file
11
examples/interrupt_hierarchy/Makefile
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
RTL_TARGETS = $(subst .rdl,.sv,srdl2sv_out/$(shell ls *.rdl))
|
||||||
|
|
||||||
|
.PHONY: clean
|
||||||
|
|
||||||
|
default: $(RTL_TARGETS)
|
||||||
|
|
||||||
|
srdl2sv_out/%.sv: %.rdl
|
||||||
|
srdl2sv $? --out-dir $(shell dirname $@) --stdout-logging INFO
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf srdl2sv_out
|
11
examples/simple_rw_reg/Makefile
Normal file
11
examples/simple_rw_reg/Makefile
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
RTL_TARGETS = $(subst .rdl,.sv,srdl2sv_out/$(shell ls *.rdl))
|
||||||
|
|
||||||
|
.PHONY: clean
|
||||||
|
|
||||||
|
default: $(RTL_TARGETS)
|
||||||
|
|
||||||
|
srdl2sv_out/%.sv: %.rdl
|
||||||
|
srdl2sv $? --out-dir $(shell dirname $@) --stdout-logging INFO
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf srdl2sv_out
|
Loading…
Reference in New Issue
Block a user