Outline basic concept
This commit is contained in:
18
Makefile
Normal file
18
Makefile
Normal file
@@ -0,0 +1,18 @@
|
||||
CHDL = ghdl
|
||||
FLAGS = --std=08
|
||||
STOP = 60000ns
|
||||
PARTS = alu
|
||||
|
||||
all: $(PARTS)
|
||||
|
||||
%: %.vhd tb_%.vhd
|
||||
$(CHDL) -a $(FLAGS)
|
||||
$(CHDL) -e $(FLAGS)
|
||||
$(CHDL) -r $(FLAGS) --wave=$@.ghw --stop-time=$(STOP)
|
||||
|
||||
clean:
|
||||
find . -name '*.o' -exec rm -r {}\;
|
||||
find . -name '*.cf' -exec rm -r {}\;
|
||||
find . -name '*.ghw' -exec rm -r {}\;
|
||||
|
||||
.PHONY: all clean
|
||||
Reference in New Issue
Block a user