mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-10-20 13:45:08 +08:00
16 lines
348 B
Makefile
16 lines
348 B
Makefile
#
|
|
# Component Makefile
|
|
#
|
|
|
|
COMPONENT_ADD_INCLUDEDIRS := platform_include
|
|
COMPONENT_SRCDIRS := src
|
|
|
|
ifdef CONFIG_NEWLIB_NANO_FORMAT
|
|
LIBC := c_nano
|
|
else # CONFIG_NEWLIB_NANO_FORMAT
|
|
LIBC := c
|
|
endif # CONFIG_NEWLIB_NANO_FORMAT
|
|
|
|
# Order of linking matters: libnewlib.a should go before libc.a
|
|
COMPONENT_ADD_LDFLAGS := -lnewlib -l$(LIBC) -lm -u __errno
|