# $Id: Makefile 801 2016-08-27 16:47:01Z mueller $
#
#  Revision History: 
# Date         Rev Version  Comment
# 2016-08-26   801   1.3    use explicit VBOM_all, no wildcard
# 2013-04-20   509   1.2    add fx2 support
# 2011-08-13   405   1.1    use includes from rtl/make
# 2010-05-28   295   1.0    Initial version (derived from _s3 version)
#
VBOM_all  = sys_w11a_n2.vbom
BIT_all   = $(VBOM_all:.vbom=.bit)
#
include ${RETROBASE}/rtl/make_ise/xflow_default_nexys2.mk
FX2_FILE  = nexys2_jtag_2fifo_ic.ihx
#
.PHONY : all clean
#
all : $(BIT_all)
#
clean : ise_clean
	rm -f $(VBOM_all:.vbom=.ucf)
#
sys_w11a_n2.mcs : sys_w11a_n2.bit
	promgen -w -x xcf04s -p mcs -u 0 sys_w11a_n2
	mv sys_w11a_n2.prm sys_w11a_n2_prm.log
	mv sys_w11a_n2.cfi sys_w11a_n2_cfi.log
#
#----
#
include ${RETROBASE}/rtl/make_ise/generic_xflow.mk
include ${RETROBASE}/rtl/make_ise/generic_ghdl.mk
#
ifndef DONTINCDEP
include $(VBOM_all:.vbom=.dep_xst)
include $(VBOM_all:.vbom=.dep_ghdl)
endif
#
