URL
https://opencores.org/ocsvn/lxp32/lxp32/trunk
Subversion Repositories lxp32
[/] [lxp32/] [trunk/] [verify/] [lxp32/] [run/] [xsim/] [Makefile] - Rev 9
Compare with Previous | Blame | View Log
include ../../src/make/sources.make
ifeq ($(findstring Windows,$(OS)),)
BAT=
else
BAT=.bat
endif
########################
# Phony targets
########################
all: batch
.PHONY: all compile batch gui clean
compile: compile.stamp
batch: compile.stamp
xsim$(BAT) -R tb_sim
gui: compile.stamp
xsim$(BAT) -g -onfinish stop -onerror stop tb_sim
clean:
rm -rf .Xil
rm -rf xsim.dir
rm -f webtalk*
rm -f xelab*
rm -f xsim*
rm -f xvhdl*
rm -f hs_err*
rm -f vivado*
rm -f *.wdb
rm -f $(FIRMWARE)
rm -f compile.stamp
########################
# Normal targets
########################
compile.stamp: $(LXP32_RTL) $(COMMON_SRC) $(PLATFORM_RTL) $(TB_SRC) $(FIRMWARE)
xvhdl$(BAT) $(LXP32_RTL) $(COMMON_SRC) $(PLATFORM_RTL) $(TB_SRC)
xelab$(BAT) work.tb -s tb_sim -debug typical
echo > compile.stamp
%.ram: $(FW_SRC_DIR)/%.asm
$(ASM) -f textio $^ -o $@