2013-05-10 16:30:28 -04:00
|
|
|
RM ?= rm -f
|
|
|
|
|
2013-02-19 07:27:43 -05:00
|
|
|
all: build/top.bit build/top.fpg
|
2012-02-17 12:09:48 -05:00
|
|
|
|
2013-02-16 18:12:15 -05:00
|
|
|
build/top.bit build/top.bin:
|
2013-02-11 12:23:06 -05:00
|
|
|
./build.py
|
2012-02-17 12:09:48 -05:00
|
|
|
|
2013-02-19 07:27:43 -05:00
|
|
|
build/top.fpg: build/top.bin
|
2013-05-10 16:30:28 -04:00
|
|
|
$(MAKE) -C tools
|
2013-02-19 07:27:43 -05:00
|
|
|
tools/byteswap $< $@
|
|
|
|
|
2013-02-16 18:12:15 -05:00
|
|
|
load: build/top.bit
|
2012-02-17 12:09:48 -05:00
|
|
|
jtag -n load.jtag
|
|
|
|
|
|
|
|
clean:
|
2013-05-10 16:30:28 -04:00
|
|
|
$(RM) -r build/*
|
2012-02-17 12:09:48 -05:00
|
|
|
|
2013-05-10 16:30:28 -04:00
|
|
|
.PHONY: all load clean
|