mirror of
https://github.com/FreeRTOS/FreeRTOS.git
synced 2026-08-05 12:43:41 +00:00
* Add the memory estimator tool This tool helps in determining the memory estimates for FreeRTOS libraries. Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com> * Address review feedback 1. Make the tool python3 compatible - The output read from a process is bytes array and needs to be decoded as 'utf-8' before doing any string like operations. 2. Make the script runnable from any directory. Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
26 lines
381 B
Makefile
26 lines
381 B
Makefile
# Source Files
|
|
SOURCE_FILES
|
|
|
|
# Include Directories
|
|
INCLUDE_DIRECTORIES
|
|
|
|
OBJS=$(SRCS:.c=.o)
|
|
|
|
CFLAGS+=-std=gnu99 -Wall -Wextra -ggdb -OPTIMIZATION
|
|
CFLAGS+=-mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16
|
|
|
|
.DEFAULT_GOAL:=build
|
|
|
|
build: $(OBJS)
|
|
|
|
size:
|
|
$(SIZETOOL) $(OBJS)
|
|
|
|
clean:
|
|
rm -rf $(OBJS)
|
|
|
|
.PHONY: build size clean
|
|
|
|
.c.o:
|
|
$(CC) $(CFLAGS) $(INCLUDE_DIRS) -c $< -o $@
|