forked from MiSTer-devel/Arcade-IremM92_MiSTer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (26 loc) · 1.09 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
QUARTUS_DIR = C:/intelFPGA_lite/17.0/quartus/bin64
PROJECT = Arcade-IremM92
CONFIG = Arcade-IremM92-Fast
MISTER = root@mister-dev
OUTDIR = output_files
FAST_RBF = $(OUTDIR)/$(CONFIG).rbf
rwildcard=$(foreach d,$(wildcard $(1:=/*)),$(call rwildcard,$d,$2) $(filter $(subst *,%,$2),$d))
SRCS = \
$(call rwildcard,sys,*.v *.sv *.vhd *.vhdl *.qip *.sdc) \
$(call rwildcard,rtl,*.v *.sv *.vhd *.vhdl *.qip *.sdc) \
$(wildcard *.sdc *.v *.sv *.vhd *.vhdl *.qip)
all: run
$(OUTDIR)/Arcade-IremM92-Fast.rbf: $(SRCS)
$(QUARTUS_DIR)/quartus_sh --flow compile $(PROJECT) -c Arcade-IremM92-Fast
$(OUTDIR)/Arcade-IremM92.rbf: $(SRCS)
$(QUARTUS_DIR)/quartus_sh --flow compile $(PROJECT) -c Arcade-IremM92
deploy.done: $(FAST_RBF) releases/m92.mra
scp $(FAST_RBF) $(MISTER):/media/fat/_Arcade/cores/IremM92.rbf
scp releases/m92.mra $(MISTER):/media/fat/_Arcade/m92.mra
echo done > deploy.done
deploy: deploy.done
run: deploy.done
ssh $(MISTER) "echo load_core _Arcade/m92.mra > /dev/MiSTer_cmd"
fast: $(OUTDIR)/Arcade-IremM92-Fast.rbf
release: $(OUTDIR)/Arcade-IremM92.rbf
.PHONY: all run deploy release fast