forked from IOsetting/wm-sdk-w806
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
54 lines (40 loc) · 1.1 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
TOP_DIR := .
sinclude $(TOP_DIR)/tools/W806/conf.mk
ifndef PDIR # {
GEN_IMAGES= $(TARGET).elf
GEN_BINS = $(TARGET).bin
SUBDIRS = \
$(TOP_DIR)/app \
$(TOP_DIR)/demo
endif # } PDIR
ifndef PDIR # {
ifeq ($(USE_LIB), 0)
SUBDIRS += \
$(TOP_DIR)/platform/arch \
$(TOP_DIR)/platform/component \
$(TOP_DIR)/platform/drivers
endif
endif
COMPONENTS_$(TARGET) = \
$(TOP_DIR)/app/libappuser$(LIB_EXT) \
$(TOP_DIR)/demo/libdemo$(LIB_EXT)
ifeq ($(USE_LIB), 0)
COMPONENTS_$(TARGET) += \
$(TOP_DIR)/platform/boot/libwmarch$(LIB_EXT) \
$(TOP_DIR)/platform/component/libwmcomponent$(LIB_EXT) \
$(TOP_DIR)/platform/drivers/libdrivers$(LIB_EXT)
endif
LINKLIB = \
$(TOP_DIR)/lib/$(CONFIG_ARCH_TYPE)/libdsp$(LIB_EXT)
LINKFLAGS_$(TARGET) = \
$(LINKLIB)
CONFIGURATION_DEFINES =
DEFINES += \
$(CONFIGURATION_DEFINES)
DDEFINES += \
$(CONFIGURATION_DEFINES)
INCLUDES := $(INCLUDES) -I$(PDIR)include
INCLUDES += -I ./
sinclude $(TOP_DIR)/tools/$(CONFIG_ARCH_TYPE)/rules.mk
.PHONY: FORCE
FORCE: