#Auto generated by Edalize
SHELL = bash

NAME	:= {{ top }}
PARTNAME:= {{ partname }}
BITSTREAM_DEVICE := {{ bitstream_device }}

all: ${NAME}.bit

${NAME}.fasm: ${NAME}-nextpnr.mk
	$(EDALIZE_LAUNCHER) $(MAKE) -f ${NAME}-nextpnr.mk

${NAME}.bit: ${NAME}.fasm
	$(EDALIZE_LAUNCHER) symbiflow_write_bitstream -d ${BITSTREAM_DEVICE} -f ${NAME}.fasm -p ${PARTNAME} -b ${NAME}.bit

clean:
	$(EDALIZE_LAUNCHER) rm -rf *.bit* *.blif *.eblif *.fasm *.json *.dcp *.log *.rpt *.jou *.txt
