-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (37 loc) · 1.11 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
.PHONY: all app prog_ice40 ice40
APP = 00_demo
DIRS_SW = sw/apps
DIRS_HW = hw/verilog
DIRS_DEMO_ICE40 = demo/ice40
export APP
export DIRS_SW
export DIRS_HW
export DIRS_DEMO_ICE40
all: app
app:
@echo ""
@echo "************************************"
@echo "****** BUILDING APP *******"
@echo "************************************"
@make --no-print-directory -C $(DIRS_SW)/$(APP)
sim: app
@echo ""
@echo "************************************"
@echo "****** SIMULATING *******"
@echo "************************************"
@make --no-print-directory -C $(DIRS_HW)
ice40: app
@echo ""
@echo "************************************"
@echo "****** SYNTH/IMPL iCE40 *******"
@echo "************************************"
@make --no-print-directory -C $(DIRS_HW) ice40
prog_ice40:
@echo ""
@echo "************************************"
@echo "****** PROGRAMMING iCE40 *******"
@echo "************************************"
@make --no-print-directory -C $(DIRS_HW) prog_ice40
clean:
@make --no-print-directory -C $(DIRS_SW)/$(APP) clean
@make --no-print-directory -C $(DIRS_HW) clean