Files
FreeRTOS/tools/memory_estimator/template/Makefile.template
Gaurav-Aggarwal-AWS 91068f0862 Add the memory estimator tool (#69)
* 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>
2020-05-26 12:34:47 -07:00

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 $@