Init
This commit is contained in:
33
Makefile
Normal file
33
Makefile
Normal file
@@ -0,0 +1,33 @@
|
||||
# Makefile for lut
|
||||
# Yannick Reiß
|
||||
|
||||
# Variable section
|
||||
PARTS = lut
|
||||
CHDL = ghdl
|
||||
FLAGS = --std=08
|
||||
SRC = src/lut.vhd
|
||||
MULTI = $(SRC) tb/tb_lut.vhd
|
||||
STOP = 300ns
|
||||
|
||||
ENTITY = lut_tb
|
||||
TARGETSRC = $(MULTI)
|
||||
PART = lut
|
||||
|
||||
# Build all
|
||||
all: $(PARTS)
|
||||
|
||||
# execute testbench
|
||||
$(PART): $(TARGETSRC)
|
||||
$(CHDL) -a $(FLAGS) $(TARGETSRC)
|
||||
$(CHDL) -e $(FLAGS) $(ENTITY)
|
||||
$(CHDL) -r $(FLAGS) $(ENTITY) --vcd=$(ENTITY).vcd --stop-time=$(STOP)
|
||||
|
||||
# project rules
|
||||
clean:
|
||||
find . -name '*.o' -exec rm -r {} \;
|
||||
find . -name '*.cf' -exec rm -r {} \;
|
||||
find . -name '*.ghw' -exec rm -r {} \;
|
||||
find . -name '*.vcd' -exec rm -r {} \;
|
||||
rm $(ENTITY)
|
||||
|
||||
.PHONY: all clean
|
||||
Reference in New Issue
Block a user