From bb9e1954855b2d63c484a757d3d53d5133f7972c Mon Sep 17 00:00:00 2001 From: Jose Date: Sat, 22 Feb 2025 22:53:15 +0100 Subject: [PATCH] =?UTF-8?q?feat=20=E2=9C=A8:=20Enhance=20compiler=20settin?= =?UTF-8?q?gs=20with=20Z-Stack=20SDK=20path=20spec=20and=20optimization=20?= =?UTF-8?q?level=20adjustments?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - The main goal of the changes is to enhance the compiler settings by adding path specifications for the Z-Stack SDK and adjust optimization levels. --- Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 322ed9c..e3ca0f8 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,15 @@ +# Path to Z-Stack SDK +ZSTACK_DIR = ./include + +# Include path for the Z-Stack SDK +# INCLUDE_DIRS = -I$(ZSTACK_DIR)/Components/hal/CC2530 \ +# -I$(ZSTACK_DIR)/Components/zigbee +INCLUDE_DIRS = -I$(ZSTACK_DIR) + # Compiler settings CC = msp430-elf-gcc # MSP430 compiler -CFLAGS = -Wall -Os # Enable all warnings, Optimize for size +# CFLAGS (C Compiler flags) +CFLAGS = $(INCLUDE_DIRS) -Wall -O2 # Enable all warnings, Optimize for size LDFLAGS = LIBS = -lZStack -lhal # ZStack for Zigbee communication, lhal for Hardware Abstraction Layer library