URL
https://opencores.org/ocsvn/lxp32/lxp32/trunk
Subversion Repositories lxp32
[/] [lxp32/] [trunk/] [verify/] [icache/] [run/] [ghdl/] [Makefile] - Rev 7
Go to most recent revision | Compare with Previous | Blame | View Log
include ../../src/make/sources.make
GHDL_FLAGS=--std=93
WAVE_VCD=wave.vcd
WAVE_OUT=wave.fst
########################
# Phony targets
########################
all: batch
.PHONY: all compile batch gui clean
.PRECIOUS: $(WAVE_OUT)
compile: compile.stamp
batch: compile.stamp
ghdl -r $(GHDL_FLAGS) $(TB_MOD)
gui: $(WAVE_OUT)
gtkwave $(WAVE_OUT)
clean:
rm -f *.cf
rm -f $(WAVE_VCD)
rm -f $(WAVE_OUT)
rm -f *.o
rm -f $(TB_MOD)
rm -f compile.stamp
########################
# Normal targets
########################
$(WAVE_OUT): $(WAVE_VCD)
vcd2fst $^ $@
$(WAVE_VCD): compile.stamp
ghdl -r $(GHDL_FLAGS) $(TB_MOD) --vcd=$(WAVE_VCD)
compile.stamp: $(LXP32_RTL) $(COMMON_SRC) $(TB_SRC)
ghdl -a $(GHDL_FLAGS) $(LXP32_RTL) $(COMMON_SRC) $(TB_SRC)
ghdl -e $(GHDL_FLAGS) $(TB_MOD)
echo > compile.stamp
Go to most recent revision | Compare with Previous | Blame | View Log