Makefile 560 Bytes
# Makefile v1 Frank Berndt

PCDIR = /home/berndt/pc/ifx
TOOLS = ../tools
OUT = ifx.v ifx.ucf idrom.init
IN = $(PCDIR)/ifx.jhd $(PCDIR)/ifx.npl

all default ifx: idrom.init ifx.ucf

idrom.init: $(TOOLS)/xh2v ../vsim/identify.hex
	$(TOOLS)/xh2v idrom ../vsim/identify.hex > idrom.init

idrom.ucf: $(TOOLS)/xh2ucf ../vsim/identify.hex
	$(TOOLS)/xh2ucf idrom ../vsim/identify.hex > idrom.ucf

ifx.ucf: idrom.ucf ifx.constraints
	cat ifx.constraints idrom.ucf > ifx.ucf

out: _always ifx.v idrom.init ifx.ucf
	cp $(OUT) $(PCDIR)

in: _always
	cp $(IN) .

_always: