Files
ESP8266_RTOS_SDK/components/newlib/component.mk
2020-09-30 10:24:08 +08:00

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