From ca2a66987f0cf673e385af980f19a01bcc8ad38b Mon Sep 17 00:00:00 2001 From: per1234 Date: Fri, 19 Aug 2016 06:25:55 -0700 Subject: [PATCH] Allow compiler options to be passed to the makefile Added ADDED_CFLAGS variable to CFLAGS. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a94a188..c986e90 100644 --- a/Makefile +++ b/Makefile @@ -27,7 +27,7 @@ DEBUG = dwarf-2 ASFLAGS = -Wa,-adhlns=$(<:.S=.lst),-gstabs $(DEFS) ALL_ASFLAGS = -mmcu=$(MCU_TARGET) -I. -x assembler-with-cpp $(ASFLAGS) -CFLAGS = -g$(DEBUG) -Wall $(OPTIMIZE) -mmcu=$(MCU_TARGET) -std=c99 $(DEFS) +CFLAGS = -g$(DEBUG) -Wall $(OPTIMIZE) $(ADDED_CFLAGS) -mmcu=$(MCU_TARGET) -std=c99 $(DEFS) LDFLAGS = -Wl,-Map,$(TARGET).map -Wl,--gc-sections -Wl,--section-start,.text=$(BOOT_ADR) OBJ = $(CSRC:.c=.o) $(ASRC:.S=.o)