-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
70 lines (54 loc) · 1.08 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
PRJ=de0_led_example
QPF := $(PRJ).qpf
SOF_FILE := $(PRJ).sof
SOPC_FILE := $(PRJ).sopcinfo
RBF_FILE := $(PRJ).rbf
CDF_FILE := $(PRJ).cdf
JIC_FILE := $(PRJ).jic
CDF_JIC_FILE := $(PRJ)_jic.cdf
COF_FILE := $(PRJ).cof
SRC = ${PRJ}.v
.PHONY: all
all: rbf quartus_generate
.PHONY: rbf
rbf: $(RBF_FILE)
.PHONY: jic
rbf: $(JIC_FILE)
.PHONY: quartus_edit
quartus_edit:
quartus $(QPF) &
.PHONY: quartus_generate
quartus_generate: $(SOF_FILE)
.PHONY: programm
programm: $(SOF_FILE) $(CDF_FILE)
quartus_pgm $(CDF_FILE)
.PHONY: flash
flash: $(JIC_FILE) $(CDF_JIC_FILE)
quartus_pgm $(CDF_JIC_FILE)
$(JIC_FILE): $(SOF_FILE)
quartus_cpf -c $(COF_FILE)
$(RBF_FILE): $(SOF_FILE)
quartus_cpf -c $(SOF_FILE) $(RBF_FILE)
$(SOF_FILE): $(SRC)
quartus_sh --flow compile $(QPF)
clean:
rm -rf db \
incremental_db \
c5_pin_model_dump.txt \
*_assignment_defaults.qdf \
.qsys_edit \
$(SOF_FILE) \
$(RBF_FILE)\
*.rpt \
*.done \
*.smsg \
*.summary \
*.htm \
*.sopcinfo \
*.sdl \
*.pin \
*.qws \
*.sld \
*.map \
*.jdi \
*.jic