-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
35 lines (26 loc) · 1.2 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
#
# This is a project Makefile. It is assumed the directory this Makefile resides in is a
# project subdirectory.
#
PROJECT_NAME := main
#
# choose different Macro definition to enable diferent function
# ------------------------------------------------------------------
# | IOTX_DEBUG | open debug log |
# ------------------------------------------------------------------
# |MQTT_DIRECT |use mqtt direct connect instead through http|
# ------------------------------------------------------------------
# | MQTT_COMM_ENABLED | open MQTT |
# ------------------------------------------------------------------
# | OTA_SIGNAL_CHANNEL| = 1(use mqtt) = 2(use coap) |
# ------------------------------------------------------------------
# | COAP_DTLS_SUPPORT | use DTLS with coap |
# ------------------------------------------------------------------
#
CFLAGS += -D IOTX_DEBUG
CFLAGS += -D MQTT_COMM_ENABLED
CFLAGS += -D OTA_SIGNAL_CHANNEL=1
CFLAGS += -D COAP_DTLS_SUPPORT
CFLAGS += -D MQTT_DIRECT
COMPONENT_ADD_INCLUDEDIRS := components/esp32-aliyun/platform/os/include
include $(IDF_PATH)/make/project.mk