-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
30 lines (21 loc) · 643 Bytes
/
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
include dir_list.mk
CROSS_COMPILE ?=
PLATFORM ?= marble
APP ?= cctrl_aurora_8b10b
TARGET = $(APP)_$(PLATFORM)
GW_TGT_DIR = $(GW_SYN_DIR)/$(TARGET)
BIT = $(GW_TGT_DIR)/$(TARGET)_top.bit
SW_TGT_DIR = $(SW_APP_DIR)/$(APP)
.PHONY: all bit sw download
all: bit sw
bit:
make -C $(GW_TGT_DIR) TARGET=$(TARGET) $(TARGET)_top.bit
make -C $(GW_TGT_DIR) TARGET=$(TARGET) $(TARGET)_top.mmi
sw:
make -C $(SW_TGT_DIR) TARGET=$(TARGET) BIT=$(BIT) all
swclean:
make -C $(SW_TGT_DIR) TARGET=$(TARGET) clean
gwclean:
make -C $(GW_TGT_DIR) TARGET=$(TARGET) clean
clean: swclean gwclean
rm -f *.log *.jou