esp-idf/components/newlib/component.mk

15 lines
348 B
Makefile
Raw Normal View History

2016-08-17 11:08:22 -04:00
ifdef CONFIG_NEWLIB_NANO_FORMAT
LIBC_PATH := $(COMPONENT_PATH)/lib/libc_nano.a
else
LIBC_PATH := $(COMPONENT_PATH)/lib/libc.a
endif
LIBM_PATH := $(COMPONENT_PATH)/lib/libm.a
COMPONENT_ADD_LDFLAGS := $(LIBC_PATH) $(LIBM_PATH) -lnewlib
COMPONENT_ADD_LINKER_DEPS := $(LIBC_PATH) $(LIBM_PATH)
2016-08-17 11:08:22 -04:00
COMPONENT_ADD_INCLUDEDIRS := platform_include include