diff options
author | Tido Klaassen <tido@4gh.eu> | 2015-10-06 09:04:14 +0300 |
---|---|---|
committer | Karl Palsson <karlp@tweak.net.au> | 2015-10-11 22:14:25 +0300 |
commit | aad8d06c3f0f3a248c983c6186db7f8d439059c1 (patch) | |
tree | f54329e54a3ec807819e7d5c3ea3fb5986065db1 | |
parent | 9217a5f888019236e8fc41f5803310f7ac661360 (diff) |
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.
-rw-r--r-- | README.md | 12 | ||||
-rw-r--r-- | lib/Makefile.include | 2 | ||||
-rw-r--r-- | lib/efm32/efm32g/Makefile | 4 | ||||
-rw-r--r-- | lib/efm32/efm32gg/Makefile | 4 | ||||
-rw-r--r-- | lib/efm32/efm32lg/Makefile | 4 | ||||
-rw-r--r-- | lib/efm32/efm32tg/Makefile | 4 | ||||
-rw-r--r-- | lib/lm3s/Makefile | 4 | ||||
-rw-r--r-- | lib/lm4f/Makefile | 4 | ||||
-rw-r--r-- | lib/lpc13xx/Makefile | 4 | ||||
-rw-r--r-- | lib/lpc17xx/Makefile | 4 | ||||
-rw-r--r-- | lib/lpc43xx/m0/Makefile | 4 | ||||
-rw-r--r-- | lib/lpc43xx/m4/Makefile | 4 | ||||
-rw-r--r-- | lib/sam/3a/Makefile | 4 | ||||
-rw-r--r-- | lib/sam/3n/Makefile | 4 | ||||
-rw-r--r-- | lib/sam/3s/Makefile | 4 | ||||
-rw-r--r-- | lib/sam/3u/Makefile | 4 | ||||
-rw-r--r-- | lib/sam/3x/Makefile | 4 | ||||
-rw-r--r-- | lib/stm32/f0/Makefile | 4 | ||||
-rwxr-xr-x | lib/stm32/f1/Makefile | 4 | ||||
-rw-r--r-- | lib/stm32/f2/Makefile | 4 | ||||
-rw-r--r-- | lib/stm32/f3/Makefile | 4 | ||||
-rw-r--r-- | lib/stm32/f4/Makefile | 4 | ||||
-rw-r--r-- | lib/stm32/l0/Makefile | 4 | ||||
-rw-r--r-- | lib/stm32/l1/Makefile | 4 | ||||
-rw-r--r-- | lib/vf6xx/Makefile | 4 |
25 files changed, 59 insertions, 47 deletions
@@ -90,6 +90,7 @@ them as environment variables, for example: $ VARIABLE=value make * `FP_FLAGS` - Control the floating-point ABI + If the Cortex-M core supports a hard float ABI, it will be compiled with floating-point support by default. In cases where this is not desired, the behavior can be specified by setting `FP_FLAGS` Currently, M4F cores default @@ -100,6 +101,17 @@ them as environment variables, for example: $ FP_FLAGS="-mfloat-abi=soft" make # No hardfloat $ FP_FLAGS="-mfloat-abi=hard -mfpu=magic" make # New FPU we don't know of +* `CFLAGS` - Add to or supersede compiler flags + + If the library needs to be compiled with additional flags, they can be + passed to the build system via the environment variable `CFLAGS`. The + contents of `CFLAGS` will be placed after all flags defined by the build + system, giving the user a way to override any default if necessary. + + Examples: + + $ CFLAGS="-fshort-wchar" make # compile lib with 2 byte wide wchar_t + Example projects ---------------- diff --git a/lib/Makefile.include b/lib/Makefile.include index 657f70ec..8cff0669 100644 --- a/lib/Makefile.include +++ b/lib/Makefile.include @@ -42,7 +42,7 @@ $(SRCLIBDIR)/$(LIBNAME).ld: $(LIBNAME).ld %.o: %.c @printf " CC $(<F)\n" - $(Q)$(CC) $(CFLAGS) -o $@ -c $< + $(Q)$(CC) $(TGT_CFLAGS) $(CFLAGS) -o $@ -c $< clean: $(Q)rm -f *.o *.d ../*.o ../*.d diff --git a/lib/efm32/efm32g/Makefile b/lib/efm32/efm32g/Makefile index ce28aa6a..cb8442d4 100644 --- a/lib/efm32/efm32g/Makefile +++ b/lib/efm32/efm32g/Makefile @@ -26,14 +26,14 @@ PREFIX ?= arm-none-eabi #PREFIX ?= arm-elf CC = $(PREFIX)-gcc AR = $(PREFIX)-ar -CFLAGS = -Os \ +TGT_CFLAGS = -Os \ -Wall -Wextra -Wimplicit-function-declaration \ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \ -Wundef -Wshadow \ -I../../../include -fno-common \ -mcpu=cortex-m3 $(FP_FLAGS) -mthumb -Wstrict-prototypes \ -ffunction-sections -fdata-sections -MD -D$(FAMILY) -CFLAGS += $(DEBUG_FLAGS) +TGT_CFLAGS += $(DEBUG_FLAGS) # ARFLAGS = rcsv ARFLAGS = rcs OBJS = diff --git a/lib/efm32/efm32gg/Makefile b/lib/efm32/efm32gg/Makefile index 04f16d46..7d7ef8f6 100644 --- a/lib/efm32/efm32gg/Makefile +++ b/lib/efm32/efm32gg/Makefile @@ -26,14 +26,14 @@ PREFIX ?= arm-none-eabi #PREFIX ?= arm-elf CC = $(PREFIX)-gcc AR = $(PREFIX)-ar -CFLAGS = -Os \ +TGT_CFLAGS = -Os \ -Wall -Wextra -Wimplicit-function-declaration \ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \ -Wundef -Wshadow \ -I../../../include -fno-common \ -mcpu=cortex-m3 $(FP_FLAGS) -mthumb -Wstrict-prototypes \ -ffunction-sections -fdata-sections -MD -D$(FAMILY) -CFLAGS += $(DEBUG_FLAGS) +TGT_CFLAGS += $(DEBUG_FLAGS) # ARFLAGS = rcsv ARFLAGS = rcs OBJS = diff --git a/lib/efm32/efm32lg/Makefile b/lib/efm32/efm32lg/Makefile index 94af24f1..c37b9d4e 100644 --- a/lib/efm32/efm32lg/Makefile +++ b/lib/efm32/efm32lg/Makefile @@ -26,14 +26,14 @@ PREFIX ?= arm-none-eabi #PREFIX ?= arm-elf CC = $(PREFIX)-gcc AR = $(PREFIX)-ar -CFLAGS = -Os \ +TGT_CFLAGS = -Os \ -Wall -Wextra -Wimplicit-function-declaration \ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \ -Wundef -Wshadow \ -I../../../include -fno-common \ -mcpu=cortex-m3 $(FP_FLAGS) -mthumb -Wstrict-prototypes \ -ffunction-sections -fdata-sections -MD -D$(FAMILY) -CFLAGS += $(DEBUG_FLAGS) +TGT_CFLAGS += $(DEBUG_FLAGS) # ARFLAGS = rcsv ARFLAGS = rcs OBJS = diff --git a/lib/efm32/efm32tg/Makefile b/lib/efm32/efm32tg/Makefile index 842a3988..6eefda11 100644 --- a/lib/efm32/efm32tg/Makefile +++ b/lib/efm32/efm32tg/Makefile @@ -26,14 +26,14 @@ PREFIX ?= arm-none-eabi #PREFIX ?= arm-elf CC = $(PREFIX)-gcc AR = $(PREFIX)-ar -CFLAGS = -Os \ +TGT_CFLAGS = -Os \ -Wall -Wextra -Wimplicit-function-declaration \ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \ -Wundef -Wshadow \ -I../../../include -fno-common \ -mcpu=cortex-m3 $(FP_FLAGS) -mthumb -Wstrict-prototypes \ -ffunction-sections -fdata-sections -MD -D$(FAMILY) -CFLAGS += $(DEBUG_FLAGS) +TGT_CFLAGS += $(DEBUG_FLAGS) # ARFLAGS = rcsv ARFLAGS = rcs OBJS = diff --git a/lib/lm3s/Makefile b/lib/lm3s/Makefile index 1e383940..4a763e28 100644 --- a/lib/lm3s/Makefile +++ b/lib/lm3s/Makefile @@ -24,14 +24,14 @@ PREFIX ?= arm-none-eabi CC = $(PREFIX)-gcc AR = $(PREFIX)-ar -CFLAGS = -Os \ +TGT_CFLAGS = -Os \ -Wall -Wextra -Wimplicit-function-declaration \ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \ -Wundef -Wshadow \ -I../../include -fno-common \ -mcpu=cortex-m3 -mthumb $(FP_FLAGS) -Wstrict-prototypes \ -ffunction-sections -fdata-sections -MD -DLM3S -CFLAGS += $(DEBUG_FLAGS) +TGT_CFLAGS += $(DEBUG_FLAGS) # ARFLAGS = rcsv ARFLAGS = rcs OBJS = gpio.o vector.o assert.o diff --git a/lib/lm4f/Makefile b/lib/lm4f/Makefile index 29872fd5..df1bf454 100644 --- a/lib/lm4f/Makefile +++ b/lib/lm4f/Makefile @@ -26,14 +26,14 @@ PREFIX ?= arm-none-eabi CC = $(PREFIX)-gcc AR = $(PREFIX)-ar -CFLAGS = -Os \ +TGT_CFLAGS = -Os \ -Wall -Wextra -Wimplicit-function-declaration \ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \ -Wundef -Wshadow \ -I../../include -fno-common \ -mcpu=cortex-m4 -mthumb $(FP_FLAGS) -Wstrict-prototypes \ -ffunction-sections -fdata-sections -MD -DLM4F -CFLAGS += $(DEBUG_FLAGS) +TGT_CFLAGS += $(DEBUG_FLAGS) # ARFLAGS = rcsv ARFLAGS = rcs OBJS = gpio.o vector.o assert.o systemcontrol.o rcc.o uart.o \ diff --git a/lib/lpc13xx/Makefile b/lib/lpc13xx/Makefile index 5b88784b..3d48adf6 100644 --- a/lib/lpc13xx/Makefile +++ b/lib/lpc13xx/Makefile @@ -24,14 +24,14 @@ PREFIX ?= arm-none-eabi CC = $(PREFIX)-gcc AR = $(PREFIX)-ar -CFLAGS = -Os \ +TGT_CFLAGS = -Os \ -Wall -Wextra -Wimplicit-function-declaration \ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \ -Wundef -Wshadow \ -I../../include -fno-common \ -mcpu=cortex-m3 -mthumb $(FP_FLAGS) -Wstrict-prototypes \ -ffunction-sections -fdata-sections -MD -DLPC13XX -CFLAGS += $(DEBUG_FLAGS) +TGT_CFLAGS += $(DEBUG_FLAGS) # ARFLAGS = rcsv ARFLAGS = rcs OBJS = gpio.o diff --git a/lib/lpc17xx/Makefile b/lib/lpc17xx/Makefile index 4b72a60d..bcc52c9c 100644 --- a/lib/lpc17xx/Makefile +++ b/lib/lpc17xx/Makefile @@ -24,14 +24,14 @@ PREFIX ?= arm-none-eabi CC = $(PREFIX)-gcc AR = $(PREFIX)-ar -CFLAGS = -Os \ +TGT_CFLAGS = -Os \ -Wall -Wextra -Wimplicit-function-declaration \ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \ -Wundef -Wshadow \ -I../../include -fno-common \ -mcpu=cortex-m3 -mthumb $(FP_FLAGS) -Wstrict-prototypes \ -ffunction-sections -fdata-sections -MD -DLPC17XX -CFLAGS += $(DEBUG_FLAGS) +TGT_CFLAGS += $(DEBUG_FLAGS) # ARFLAGS = rcsv ARFLAGS = rcs OBJS = gpio.o pwr.o diff --git a/lib/lpc43xx/m0/Makefile b/lib/lpc43xx/m0/Makefile index a3d6dc36..90e5f45c 100644 --- a/lib/lpc43xx/m0/Makefile +++ b/lib/lpc43xx/m0/Makefile @@ -26,10 +26,10 @@ PREFIX ?= arm-none-eabi #PREFIX ?= arm-elf CC = $(PREFIX)-gcc AR = $(PREFIX)-ar -CFLAGS = -O2 -Wall -Wextra -I../../../include -fno-common \ +TGT_CFLAGS = -O2 -Wall -Wextra -I../../../include -fno-common \ -mcpu=cortex-m0 -mthumb -Wstrict-prototypes \ -ffunction-sections -fdata-sections -MD -DLPC43XX -DLPC43XX_M0 -CFLAGS += $(DEBUG_FLAGS) +TGT_CFLAGS += $(DEBUG_FLAGS) # ARFLAGS = rcsv ARFLAGS = rcs diff --git a/lib/lpc43xx/m4/Makefile b/lib/lpc43xx/m4/Makefile index 96d1a5bf..9c221521 100644 --- a/lib/lpc43xx/m4/Makefile +++ b/lib/lpc43xx/m4/Makefile @@ -28,7 +28,7 @@ PREFIX ?= arm-none-eabi CC = $(PREFIX)-gcc AR = $(PREFIX)-ar -CFLAGS = -O2 \ +TGT_CFLAGS = -O2 \ -Wall -Wextra -Wimplicit-function-declaration \ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \ -Wundef -Wshadow \ @@ -36,7 +36,7 @@ CFLAGS = -O2 \ -mcpu=cortex-m4 -mthumb -Wstrict-prototypes \ -ffunction-sections -fdata-sections -MD \ $(FP_FLAGS) -DLPC43XX -DLPC43XX_M4 -CFLAGS += $(DEBUG_FLAGS) +TGT_CFLAGS += $(DEBUG_FLAGS) ARFLAGS = rcs diff --git a/lib/sam/3a/Makefile b/lib/sam/3a/Makefile index ebb2c06f..8aac0e26 100644 --- a/lib/sam/3a/Makefile +++ b/lib/sam/3a/Makefile @@ -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 -DSAM3A -CFLAGS += $(DEBUG_FLAGS) +TGT_CFLAGS += $(DEBUG_FLAGS) # ARFLAGS = rcsv ARFLAGS = rcs OBJS = gpio_common_all.o gpio_common_3a3u3x.o pmc.o usart.o diff --git a/lib/sam/3n/Makefile b/lib/sam/3n/Makefile index 1886730e..6b3dc4c6 100644 --- a/lib/sam/3n/Makefile +++ b/lib/sam/3n/Makefile @@ -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 -DSAM3N -CFLAGS += $(DEBUG_FLAGS) +TGT_CFLAGS += $(DEBUG_FLAGS) # ARFLAGS = rcsv ARFLAGS = rcs OBJS = gpio_common_all.o gpio_common_3n3s.o pmc.o usart.o diff --git a/lib/sam/3s/Makefile b/lib/sam/3s/Makefile index b4751a67..e1fed311 100644 --- a/lib/sam/3s/Makefile +++ b/lib/sam/3s/Makefile @@ -25,10 +25,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 -DSAM3S -CFLAGS += $(DEBUG_FLAGS) +TGT_CFLAGS += $(DEBUG_FLAGS) # ARFLAGS = rcsv ARFLAGS = rcs OBJS = gpio_common_all.o gpio_common_3n3s.o pmc.o usart.o diff --git a/lib/sam/3u/Makefile b/lib/sam/3u/Makefile index fc49836c..a7164a7e 100644 --- a/lib/sam/3u/Makefile +++ b/lib/sam/3u/Makefile @@ -25,10 +25,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 -DSAM3U -CFLAGS += $(DEBUG_FLAGS) +TGT_CFLAGS += $(DEBUG_FLAGS) # ARFLAGS = rcsv ARFLAGS = rcs OBJS = gpio_common_all.o gpio_common_3a3u3x.o pmc.o usart.o diff --git a/lib/sam/3x/Makefile b/lib/sam/3x/Makefile index dbc28221..e0607a8a 100644 --- a/lib/sam/3x/Makefile +++ b/lib/sam/3x/Makefile @@ -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 diff --git a/lib/stm32/f0/Makefile b/lib/stm32/f0/Makefile index dc4d56ef..f5841045 100644 --- a/lib/stm32/f0/Makefile +++ b/lib/stm32/f0/Makefile @@ -24,14 +24,14 @@ PREFIX ?= arm-none-eabi #PREFIX ?= arm-elf CC = $(PREFIX)-gcc AR = $(PREFIX)-ar -CFLAGS = -Os \ +TGT_CFLAGS = -Os \ -Wall -Wextra -Wimplicit-function-declaration \ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \ -Wundef -Wshadow \ -I../../../include -fno-common \ -mcpu=cortex-m0 $(FP_FLAGS) -mthumb -Wstrict-prototypes \ -ffunction-sections -fdata-sections -MD -DSTM32F0 -CFLAGS += $(DEBUG_FLAGS) +TGT_CFLAGS += $(DEBUG_FLAGS) ARFLAGS = rcs diff --git a/lib/stm32/f1/Makefile b/lib/stm32/f1/Makefile index 651c9fd8..78ace5fb 100755 --- a/lib/stm32/f1/Makefile +++ b/lib/stm32/f1/Makefile @@ -24,14 +24,14 @@ PREFIX ?= arm-none-eabi CC = $(PREFIX)-gcc AR = $(PREFIX)-ar -CFLAGS = -Os \ +TGT_CFLAGS = -Os \ -Wall -Wextra -Wimplicit-function-declaration \ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \ -Wundef -Wshadow \ -I../../../include -fno-common \ -mcpu=cortex-m3 $(FP_FLAGS) -mthumb -Wstrict-prototypes \ -ffunction-sections -fdata-sections -MD -DSTM32F1 -CFLAGS += $(DEBUG_FLAGS) +TGT_CFLAGS += $(DEBUG_FLAGS) # ARFLAGS = rcsv ARFLAGS = rcs diff --git a/lib/stm32/f2/Makefile b/lib/stm32/f2/Makefile index 794d162b..ed64fc3a 100644 --- a/lib/stm32/f2/Makefile +++ b/lib/stm32/f2/Makefile @@ -24,14 +24,14 @@ PREFIX ?= arm-none-eabi CC = $(PREFIX)-gcc AR = $(PREFIX)-ar -CFLAGS = -Os \ +TGT_CFLAGS = -Os \ -Wall -Wextra -Wimplicit-function-declaration \ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \ -Wundef -Wshadow \ -I../../../include -fno-common \ -mcpu=cortex-m3 -mthumb $(FP_FLAGS) -Wstrict-prototypes \ -ffunction-sections -fdata-sections -MD -DSTM32F2 -CFLAGS += $(DEBUG_FLAGS) +TGT_CFLAGS += $(DEBUG_FLAGS) # ARFLAGS = rcsv ARFLAGS = rcs diff --git a/lib/stm32/f3/Makefile b/lib/stm32/f3/Makefile index 8ef009a5..b3b134c7 100644 --- a/lib/stm32/f3/Makefile +++ b/lib/stm32/f3/Makefile @@ -25,14 +25,14 @@ PREFIX ?= arm-none-eabi CC = $(PREFIX)-gcc AR = $(PREFIX)-ar -CFLAGS = -Os \ +TGT_CFLAGS = -Os \ -Wall -Wextra -Wimplicit-function-declaration \ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \ -Wundef -Wshadow \ -I../../../include -fno-common \ -mcpu=cortex-m4 -mthumb $(FP_FLAGS) -Wstrict-prototypes \ -ffunction-sections -fdata-sections -MD -DSTM32F3 -CFLAGS += $(DEBUG_FLAGS) +TGT_CFLAGS += $(DEBUG_FLAGS) ARFLAGS = rcs diff --git a/lib/stm32/f4/Makefile b/lib/stm32/f4/Makefile index a1775c86..e8a2a326 100644 --- a/lib/stm32/f4/Makefile +++ b/lib/stm32/f4/Makefile @@ -26,7 +26,7 @@ PREFIX ?= arm-none-eabi CC = $(PREFIX)-gcc AR = $(PREFIX)-ar -CFLAGS = -Os \ +TGT_CFLAGS = -Os \ -Wall -Wextra -Wimplicit-function-declaration \ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \ -Wundef -Wshadow \ @@ -34,7 +34,7 @@ CFLAGS = -Os \ -mcpu=cortex-m4 -mthumb $(FP_FLAGS) \ -Wstrict-prototypes \ -ffunction-sections -fdata-sections -MD -DSTM32F4 -CFLAGS += $(DEBUG_FLAGS) +TGT_CFLAGS += $(DEBUG_FLAGS) # ARFLAGS = rcsv ARFLAGS = rcs diff --git a/lib/stm32/l0/Makefile b/lib/stm32/l0/Makefile index 4f3259d3..fa87b253 100644 --- a/lib/stm32/l0/Makefile +++ b/lib/stm32/l0/Makefile @@ -24,14 +24,14 @@ PREFIX ?= arm-none-eabi #PREFIX ?= arm-elf CC = $(PREFIX)-gcc AR = $(PREFIX)-ar -CFLAGS = -Os \ +TGT_CFLAGS = -Os \ -Wall -Wextra -Wimplicit-function-declaration \ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \ -Wundef -Wshadow \ -I../../../include -fno-common \ -mcpu=cortex-m0plus $(FP_FLAGS) -mthumb -Wstrict-prototypes \ -ffunction-sections -fdata-sections -MD -DSTM32L0 -CFLAGS += $(DEBUG_FLAGS) +TGT_CFLAGS += $(DEBUG_FLAGS) ARFLAGS = rcs diff --git a/lib/stm32/l1/Makefile b/lib/stm32/l1/Makefile index ceced5f2..b645a1a1 100644 --- a/lib/stm32/l1/Makefile +++ b/lib/stm32/l1/Makefile @@ -24,14 +24,14 @@ PREFIX ?= arm-none-eabi CC = $(PREFIX)-gcc AR = $(PREFIX)-ar -CFLAGS = -Os \ +TGT_CFLAGS = -Os \ -Wall -Wextra -Wimplicit-function-declaration \ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \ -Wundef -Wshadow \ -I../../../include -fno-common \ -mcpu=cortex-m3 $(FP_FLAGS) -mthumb -Wstrict-prototypes \ -ffunction-sections -fdata-sections -MD -DSTM32L1 -CFLAGS += $(DEBUG_FLAGS) +TGT_CFLAGS += $(DEBUG_FLAGS) # ARFLAGS = rcsv ARFLAGS = rcs OBJS = crc.o desig.o flash.o rcc.o usart.o dma.o lcd.o diff --git a/lib/vf6xx/Makefile b/lib/vf6xx/Makefile index 78958dd4..1dc317bd 100644 --- a/lib/vf6xx/Makefile +++ b/lib/vf6xx/Makefile @@ -26,14 +26,14 @@ PREFIX ?= arm-none-eabi CC = $(PREFIX)-gcc AR = $(PREFIX)-ar -CFLAGS = -Os \ +TGT_CFLAGS = -Os \ -Wall -Wextra -Wimplicit-function-declaration \ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \ -Wundef -Wshadow \ -I../../include -fno-common \ -mcpu=cortex-m4 -mthumb $(FP_FLAGS) -Wstrict-prototypes \ -ffunction-sections -fdata-sections -MD -DVF6XX -CFLAGS += $(DEBUG_FLAGS) +TGT_CFLAGS += $(DEBUG_FLAGS) ARFLAGS = rcs OBJS = ccm.o uart.o gpio.o iomuxc.o |