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:
rm *.o
rm *.cf
rm *.ghw
.PHONY: all clean $(PARTS)