-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathMakefile
32 lines (26 loc) · 1.09 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
#
# This is a project Makefile. It is assumed the directory this Makefile resides in is a
# project subdirectory.
#
PROJECT_NAME := lws-esp32-test-server-demos
SSL_CERT_PEM:=${PWD}/build/libwebsockets/libwebsockets-test-server
SSL_KEY_PEM:=${PWD}/build/libwebsockets/libwebsockets-test-server.key
EXTRA_COMPONENT_DIRS := components
LWS_IS_FACTORY_APPLICATION=0
export LWS_IS_FACTORY_APPLICATION
include $(IDF_PATH)/make/project.mk
include sdkconfig
include ${PWD}/components/libwebsockets/scripts/esp32.mk
CFLAGS+= -I$(PROJECT_PATH)/components/libwebsockets/plugins \
-I$(BUILD_DIR_BASE)/libwebsockets/include \
-I$(PROJECT_PATH)/components/libwebsockets/lib \
-I$(IDF_PATH)/components/heap/include \
-I$(IDF_PATH)/components/soc/include \
-I$(IDF_PATH)/components/vfs/include \
-DLWS_IS_FACTORY_APPLICATION=$(LWS_IS_FACTORY_APPLICATION) \
-I$(IDF_PATH)/components/soc/esp32/include/ \
-I$(IDF_PATH)/components/esp32/include \
-I$(IDF_PATH)/components/lwip/port/esp32/include \
-I$(IDF_PATH)/components/lwip/lwip/src/include \
-I$(IDF_PATH)/components/lwip/include/apps
export IDF_PATH