From 2eefe16a221850d3122342269ce262bfd94fcc68 Mon Sep 17 00:00:00 2001 From: sleary Date: Sun, 21 Sep 2014 20:38:14 +0000 Subject: [PATCH] Adding a makefile for the spectrum. Derived from the minimig Makefile --- cores/spectrum/Makefile | 46 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 cores/spectrum/Makefile diff --git a/cores/spectrum/Makefile b/cores/spectrum/Makefile new file mode 100644 index 0000000..3731b6c --- /dev/null +++ b/cores/spectrum/Makefile @@ -0,0 +1,46 @@ +# MINIMIG-DE1 +# fpga makefile +# 2012, rok.krajnc@gmail.com + + +### programs ### +MAP=quartus_map +FIT=quartus_fit +ASM=quartus_asm +PGM=quartus_pgm + +### project ### +PROJECT=spectrum + + +### build rules ### + +# all +all: + @echo Making FPGA programming files ... + @make map + @make fit + @make asm + +map: + @echo Running mapper ... + @$(MAP) $(PROJECT) + +fit: + @echo Running fitter ... + @$(FIT) $(PROJECT) + +asm: + @echo Running assembler ... + @$(ASM) $(PROJECT) + +run: + @$(PGM) -c USB-Blaster -m jtag -o "p;./out/$(PROJECT).sof" + +# clean +clean: + @echo clean + @rm -rf ./out/ + @rm -rf ./db/ + @rm -rf ./incremental_db/ +