1
0
mirror of https://github.com/mist-devel/mist-board.git synced 2026-01-28 12:38:43 +00:00

Adding a makefile for the spectrum.

Derived from the minimig Makefile
This commit is contained in:
sleary
2014-09-21 20:38:14 +00:00
parent 22fa2dba10
commit 2eefe16a22

46
cores/spectrum/Makefile Normal file
View File

@@ -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/