CORE = ../fpgadbg_core
CONV = ../fpgadbg_conv
VHDLS = \
 ${CORE}/fpgadbgmem.vhd  \
 ${CORE}/fpgadbg.vhd  \
 ${CORE}/fpgadbg_tb.vhd \
  
#STD=standard
STD=synopsys
  
all:    show
fpgadbg_tb: ${CORE}/*.vhd
#	vhdlp -work fmf fmf/*.vhd
	ghdl -a --std=93c  --ieee=${STD} ${VHDLS} 
	ghdl -e --std=93c  --ieee=${STD} fpgadbg_tb
dbg.out: fpgadbg_tb 
	./fpgadbg_tb --vcd=fpgadbg_tb.vcd
# Compilation of Python LXT library
# You may need to modify the -I/usr/include/python2.3 option
# To match your particular distribution
CONV: 
	$(MAKE) -C ${CONV} all
# Display the produce LXT file
show: dbg.out CONV
	python ${CONV}/fpgadbg_demo.py
clean:
	$(MAKE) -C ${CONV} clean
	rm *.o fpgadbg_tb *.cf *.out *.vcd *.lxt