make: rename CFLAGS in target Makefiles to TGT_CFLAGS
Renamed every instance of variable CFLAGS in target specific Makefiles to TGT_CFLAGS to free up CFLAGS for user defined compiler flags. Added information in README.md about existence and usage of CFLAGS environment variable in build process.
This commit is contained in:
committed by
Karl Palsson
parent
9217a5f888
commit
aad8d06c3f
@@ -24,10 +24,10 @@ PREFIX ?= arm-none-eabi
|
||||
|
||||
CC = $(PREFIX)-gcc
|
||||
AR = $(PREFIX)-ar
|
||||
CFLAGS = -Os -Wall -Wextra -I../../../include -fno-common \
|
||||
TGT_CFLAGS = -Os -Wall -Wextra -I../../../include -fno-common \
|
||||
-mcpu=cortex-m3 -mthumb $(FP_FLAGS) -Wstrict-prototypes \
|
||||
-ffunction-sections -fdata-sections -MD -DSAM3X
|
||||
CFLAGS += $(DEBUG_FLAGS)
|
||||
TGT_CFLAGS += $(DEBUG_FLAGS)
|
||||
# ARFLAGS = rcsv
|
||||
ARFLAGS = rcs
|
||||
OBJS = gpio_common_all.o gpio_common_3a3u3x.o pmc.o usart.o
|
||||
|
||||
Reference in New Issue
Block a user