19 lines
416 B
Makefile
19 lines
416 B
Makefile
CHDL = ghdl
|
|
FLAGS = --std=08
|
|
STOP = 60000ns
|
|
PARTS = alu stack
|
|
|
|
all: $(PARTS)
|
|
|
|
%: *.vhd tb_%.vhdl
|
|
$(CHDL) -a $(FLAGS) $^
|
|
$(CHDL) -e $(FLAGS) $@_tb
|
|
$(CHDL) -r $(FLAGS) $@_tb --wave=$@.ghw --stop-time=$(STOP)
|
|
|
|
clean:
|
|
find . -name '*.o' -exec rm -r {} \;
|
|
find . -name '*.cf' -exec rm -r {} \;
|
|
find . -name '*.ghw' -exec rm -r {} \;
|
|
find . -name '*.entity' -exec rm -r {} \;
|
|
find . -name '*_tb' -exec rm -r {} \;
|