2012-09-09 17:27:51 -04:00
|
|
|
PYTHON=c:\Python32\python
|
2012-09-09 15:18:09 -04:00
|
|
|
|
2012-09-09 17:27:51 -04:00
|
|
|
all: build/de0_nano.sta
|
2012-09-09 15:18:09 -04:00
|
|
|
# We need to change to the build directory because the Quartus tools
|
|
|
|
# tend to dump a mess of various files in the current directory.
|
|
|
|
|
2012-09-09 17:27:51 -04:00
|
|
|
build/de0_nano.qsf:
|
2012-09-09 15:18:09 -04:00
|
|
|
$(PYTHON) build.py
|
|
|
|
|
2012-09-09 17:27:51 -04:00
|
|
|
build/de0_nano.map: build/de0_nano.qsf
|
|
|
|
cp de0_nano.qpf build/de0_nano.qpf
|
2012-09-12 10:28:52 -04:00
|
|
|
cp de0_nano.sdc build/de0_nano.sdc
|
2012-09-09 16:32:09 -04:00
|
|
|
cd build && quartus_map de0_nano.qpf
|
2012-09-09 17:27:51 -04:00
|
|
|
|
|
|
|
build/de0_nano.fit: build/de0_nano.map
|
|
|
|
cd build && quartus_fit de0_nano.qpf
|
|
|
|
|
|
|
|
build/de0_nano.asm: build/de0_nano.fit
|
|
|
|
cd build && quartus_asm de0_nano.qpf
|
|
|
|
|
|
|
|
build/de0_nano.sta: build/de0_nano.asm
|
|
|
|
cd build && quartus_sta de0_nano.qpf
|
2012-09-09 15:18:09 -04:00
|
|
|
|
2012-09-12 10:28:52 -04:00
|
|
|
load:
|
|
|
|
cd build && quartus_pgm.exe -m jtag -c USB-Blaster[USB-0] -o "p;de0_nano.sof"
|
|
|
|
|
2012-09-09 15:18:09 -04:00
|
|
|
clean:
|
|
|
|
rm -rf build/*
|
|
|
|
|
|
|
|
.PHONY: load clean
|