Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,11 @@ DRIVERLIB = $(SDK_PATH)/driverlib
OSLIB = $(SDK_PATH)/oslib
FREERTOS = $(SDK_PATH)/third_party/FreeRTOS
COMMON = $(SDK_PATH)/example/common
STR = external/str

CPPFLAGS += $(DEFINES) $(INC)
CFLAGS += -ffunction-sections -fdata-sections -Wall -std=c11
CXXFLAGS += -ffunction-sections -fdata-sections -Wall
CFLAGS += -Os -ffunction-sections -fdata-sections -Wall -std=c11
CXXFLAGS += -Os -ffunction-sections -fdata-sections -Wall

INC += -I$(SDK_PATH)
INC += -I$(SDK_PATH)/inc
Expand All @@ -63,13 +64,15 @@ INC += -I$(FREERTOS)/source
INC += -I$(FREERTOS)/source/include
INC += -I$(FREERTOS)/source/portable/GCC/ARM_CM4
INC += -I$(COMMON)
INC += -I$(STR)

LIBS =

OBJDIR ?= obj

OBJ := $(addprefix $(OBJDIR)/src/, \
ApplicationHooks.o \
FormattedIO.o \
IPCQueue.o \
main.o \
pinmux.o \
Expand Down Expand Up @@ -123,6 +126,10 @@ OBJ += $(addprefix $(OBJDIR)/$(DRIVERLIB)/, \
wdt.o \
)

OBJ += $(addprefix $(OBJDIR)/$(STR)/, \
StrPrintf.o \
)

.PHONY: all
all: $(TARGET)

Expand Down
Loading