diff --git a/Makefile b/Makefile index 02a46bfe..29421a67 100644 --- a/Makefile +++ b/Makefile @@ -17,8 +17,7 @@ ## along with this library. If not, see . ## -PREFIX ?= arm-none-eabi -#PREFIX ?= arm-elf +PREFIX ?= arm-none-eabi- STYLECHECK := scripts/checkpatch.pl STYLECHECKFLAGS := --no-tree -f --terse --mailback @@ -69,7 +68,7 @@ LIB_DIRS:=$(wildcard $(addprefix lib/,$(TARGETS))) $(LIB_DIRS): $(IRQ_DEFN_FILES:=.genhdr) $(Q)$(RM) .stamp_failure_$(subst /,_,$@) @printf " BUILD $@\n"; - $(Q)$(MAKE) --directory=$@ SRCLIBDIR="$(SRCLIBDIR)" || \ + $(Q)$(MAKE) --directory=$@ SRCLIBDIR="$(SRCLIBDIR)" PREFIX="$(PREFIX)" || \ echo "Failure building: $@: code: $$?" > .stamp_failure_$(subst /,_,$@) lib: $(LIB_DIRS) diff --git a/lib/efm32/ezr32wg/Makefile b/lib/efm32/ezr32wg/Makefile index 70b1a252..1a8f2a08 100644 --- a/lib/efm32/ezr32wg/Makefile +++ b/lib/efm32/ezr32wg/Makefile @@ -24,10 +24,8 @@ SRCLIBDIR ?= ../.. FAMILY = EZR32WG FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv4-sp-d16 -PREFIX ?= arm-none-eabi -#PREFIX ?= arm-elf -CC = $(PREFIX)-gcc -AR = $(PREFIX)-ar +CC = $(PREFIX)gcc +AR = $(PREFIX)ar TGT_CFLAGS = -Os \ -Wall -Wextra -Wimplicit-function-declaration \ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \ diff --git a/lib/efm32/g/Makefile b/lib/efm32/g/Makefile index 1aace7c6..f1f3568b 100644 --- a/lib/efm32/g/Makefile +++ b/lib/efm32/g/Makefile @@ -22,10 +22,8 @@ LIBNAME = libopencm3_efm32g SRCLIBDIR ?= ../.. FAMILY = EFM32G -PREFIX ?= arm-none-eabi -#PREFIX ?= arm-elf -CC = $(PREFIX)-gcc -AR = $(PREFIX)-ar +CC = $(PREFIX)gcc +AR = $(PREFIX)ar TGT_CFLAGS = -Os \ -Wall -Wextra -Wimplicit-function-declaration \ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \ diff --git a/lib/efm32/gg/Makefile b/lib/efm32/gg/Makefile index a96b3df8..231cec2c 100644 --- a/lib/efm32/gg/Makefile +++ b/lib/efm32/gg/Makefile @@ -22,10 +22,8 @@ LIBNAME = libopencm3_efm32gg SRCLIBDIR ?= ../.. FAMILY = EFM32GG -PREFIX ?= arm-none-eabi -#PREFIX ?= arm-elf -CC = $(PREFIX)-gcc -AR = $(PREFIX)-ar +CC = $(PREFIX)gcc +AR = $(PREFIX)ar TGT_CFLAGS = -Os \ -Wall -Wextra -Wimplicit-function-declaration \ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \ diff --git a/lib/efm32/hg/Makefile b/lib/efm32/hg/Makefile index f5b897d8..fe59d9b9 100644 --- a/lib/efm32/hg/Makefile +++ b/lib/efm32/hg/Makefile @@ -24,10 +24,8 @@ LIBNAME = libopencm3_efm32hg SRCLIBDIR ?= ../.. FAMILY = EFM32HG -PREFIX ?= arm-none-eabi -#PREFIX ?= arm-elf -CC = $(PREFIX)-gcc -AR = $(PREFIX)-ar +CC = $(PREFIX)gcc +AR = $(PREFIX)ar TGT_CFLAGS = -Os \ -Wall -Wextra -Wimplicit-function-declaration \ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \ diff --git a/lib/efm32/lg/Makefile b/lib/efm32/lg/Makefile index a0163677..a5010169 100644 --- a/lib/efm32/lg/Makefile +++ b/lib/efm32/lg/Makefile @@ -23,10 +23,8 @@ LIBNAME = libopencm3_efm32lg SRCLIBDIR ?= ../.. FAMILY = EFM32LG -PREFIX ?= arm-none-eabi -#PREFIX ?= arm-elf -CC = $(PREFIX)-gcc -AR = $(PREFIX)-ar +CC = $(PREFIX)gcc +AR = $(PREFIX)ar TGT_CFLAGS = -Os \ -Wall -Wextra -Wimplicit-function-declaration \ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \ diff --git a/lib/efm32/tg/Makefile b/lib/efm32/tg/Makefile index 43ab711c..d29ade3e 100644 --- a/lib/efm32/tg/Makefile +++ b/lib/efm32/tg/Makefile @@ -22,10 +22,8 @@ LIBNAME = libopencm3_efm32tg SRCLIBDIR ?= ../.. FAMILY = EFM32TG -PREFIX ?= arm-none-eabi -#PREFIX ?= arm-elf -CC = $(PREFIX)-gcc -AR = $(PREFIX)-ar +CC = $(PREFIX)gcc +AR = $(PREFIX)ar TGT_CFLAGS = -Os \ -Wall -Wextra -Wimplicit-function-declaration \ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \ diff --git a/lib/efm32/wg/Makefile b/lib/efm32/wg/Makefile index f2a767c5..4909c24e 100644 --- a/lib/efm32/wg/Makefile +++ b/lib/efm32/wg/Makefile @@ -24,10 +24,8 @@ SRCLIBDIR ?= ../.. FAMILY = EFM32WG FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv4-sp-d16 -PREFIX ?= arm-none-eabi -#PREFIX ?= arm-elf -CC = $(PREFIX)-gcc -AR = $(PREFIX)-ar +CC = $(PREFIX)gcc +AR = $(PREFIX)ar TGT_CFLAGS = -Os \ -Wall -Wextra -Wimplicit-function-declaration \ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \ diff --git a/lib/gd32/f1x0/Makefile b/lib/gd32/f1x0/Makefile index 72bb1598..9c605133 100755 --- a/lib/gd32/f1x0/Makefile +++ b/lib/gd32/f1x0/Makefile @@ -20,10 +20,8 @@ LIBNAME = libopencm3_gd32f1x0 SRCLIBDIR ?= ../.. -PREFIX ?= arm-none-eabi - -CC = $(PREFIX)-gcc -AR = $(PREFIX)-ar +CC = $(PREFIX)gcc +AR = $(PREFIX)ar TGT_CFLAGS = -Os \ -Wall -Wextra -Wimplicit-function-declaration \ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \ diff --git a/lib/lm3s/Makefile b/lib/lm3s/Makefile index 7bce6313..8c6338a7 100644 --- a/lib/lm3s/Makefile +++ b/lib/lm3s/Makefile @@ -20,10 +20,8 @@ LIBNAME = libopencm3_lm3s SRCLIBDIR ?= .. -PREFIX ?= arm-none-eabi - -CC = $(PREFIX)-gcc -AR = $(PREFIX)-ar +CC = $(PREFIX)gcc +AR = $(PREFIX)ar TGT_CFLAGS = -Os \ -Wall -Wextra -Wimplicit-function-declaration \ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \ diff --git a/lib/lm4f/Makefile b/lib/lm4f/Makefile index 2cb3853a..bc50bdc2 100644 --- a/lib/lm4f/Makefile +++ b/lib/lm4f/Makefile @@ -22,10 +22,8 @@ LIBNAME = libopencm3_lm4f SRCLIBDIR ?= .. FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv4-sp-d16 -PREFIX ?= arm-none-eabi - -CC = $(PREFIX)-gcc -AR = $(PREFIX)-ar +CC = $(PREFIX)gcc +AR = $(PREFIX)ar TGT_CFLAGS = -Os \ -Wall -Wextra -Wimplicit-function-declaration \ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \ diff --git a/lib/lpc13xx/Makefile b/lib/lpc13xx/Makefile index 5b6ec485..35f27a3f 100644 --- a/lib/lpc13xx/Makefile +++ b/lib/lpc13xx/Makefile @@ -20,10 +20,8 @@ LIBNAME = libopencm3_lpc13xx SRCLIBDIR ?= .. -PREFIX ?= arm-none-eabi - -CC = $(PREFIX)-gcc -AR = $(PREFIX)-ar +CC = $(PREFIX)gcc +AR = $(PREFIX)ar TGT_CFLAGS = -Os \ -Wall -Wextra -Wimplicit-function-declaration \ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \ diff --git a/lib/lpc17xx/Makefile b/lib/lpc17xx/Makefile index 5a34606e..c970bea1 100644 --- a/lib/lpc17xx/Makefile +++ b/lib/lpc17xx/Makefile @@ -20,10 +20,8 @@ LIBNAME = libopencm3_lpc17xx SRCLIBDIR ?= .. -PREFIX ?= arm-none-eabi - -CC = $(PREFIX)-gcc -AR = $(PREFIX)-ar +CC = $(PREFIX)gcc +AR = $(PREFIX)ar TGT_CFLAGS = -Os \ -Wall -Wextra -Wimplicit-function-declaration \ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \ diff --git a/lib/lpc43xx/m0/Makefile b/lib/lpc43xx/m0/Makefile index e05b799c..6f36574b 100644 --- a/lib/lpc43xx/m0/Makefile +++ b/lib/lpc43xx/m0/Makefile @@ -22,10 +22,8 @@ LIBNAME = libopencm3_lpc43xx_m0 SRCLIBDIR ?= ../.. -PREFIX ?= arm-none-eabi -#PREFIX ?= arm-elf -CC = $(PREFIX)-gcc -AR = $(PREFIX)-ar +CC = $(PREFIX)gcc +AR = $(PREFIX)ar TGT_CFLAGS = -O2 -Wall -Wextra -I../../../include -fno-common \ -mcpu=cortex-m0 -mthumb -Wstrict-prototypes \ -ffunction-sections -fdata-sections -MD -DLPC43XX -DLPC43XX_M0 diff --git a/lib/lpc43xx/m4/Makefile b/lib/lpc43xx/m4/Makefile index 4c022f92..e9ca7eaf 100644 --- a/lib/lpc43xx/m4/Makefile +++ b/lib/lpc43xx/m4/Makefile @@ -24,10 +24,8 @@ LIBNAME = libopencm3_lpc43xx SRCLIBDIR ?= ../.. FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv4-sp-d16 -PREFIX ?= arm-none-eabi - -CC = $(PREFIX)-gcc -AR = $(PREFIX)-ar +CC = $(PREFIX)gcc +AR = $(PREFIX)ar TGT_CFLAGS = -O2 \ -Wall -Wextra -Wimplicit-function-declaration \ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \ diff --git a/lib/msp432/e4/Makefile b/lib/msp432/e4/Makefile index 255af4cb..d4a40a78 100644 --- a/lib/msp432/e4/Makefile +++ b/lib/msp432/e4/Makefile @@ -23,10 +23,8 @@ LIBNAME = libopencm3_msp432e4 SRCLIBDIR ?= ../.. FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv4-sp-d16 -PREFIX ?= arm-none-eabi - -CC = $(PREFIX)-gcc -AR = $(PREFIX)-ar +CC = $(PREFIX)gcc +AR = $(PREFIX)ar TGT_CFLAGS = -Os \ -Wall -Wextra -Wimplicit-function-declaration \ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \ diff --git a/lib/sam/3a/Makefile b/lib/sam/3a/Makefile index 5b9293d7..b77d12a2 100644 --- a/lib/sam/3a/Makefile +++ b/lib/sam/3a/Makefile @@ -20,10 +20,8 @@ LIBNAME = libopencm3_sam3a SRCLIBDIR ?= ../.. -PREFIX ?= arm-none-eabi - -CC = $(PREFIX)-gcc -AR = $(PREFIX)-ar +CC = $(PREFIX)gcc +AR = $(PREFIX)ar TGT_CFLAGS = -Os -Wall -Wextra -I../../../include -fno-common \ -mcpu=cortex-m3 -mthumb $(FP_FLAGS) -Wstrict-prototypes \ -ffunction-sections -fdata-sections -MD -DSAM3A diff --git a/lib/sam/3n/Makefile b/lib/sam/3n/Makefile index 2baa2ee2..e5c9e249 100644 --- a/lib/sam/3n/Makefile +++ b/lib/sam/3n/Makefile @@ -20,10 +20,8 @@ LIBNAME = libopencm3_sam3n SRCLIBDIR ?= ../.. -PREFIX ?= arm-none-eabi - -CC = $(PREFIX)-gcc -AR = $(PREFIX)-ar +CC = $(PREFIX)gcc +AR = $(PREFIX)ar TGT_CFLAGS = -Os -Wall -Wextra -I../../../include -fno-common \ -mcpu=cortex-m3 -mthumb $(FP_FLAGS) -Wstrict-prototypes \ -ffunction-sections -fdata-sections -MD -DSAM3N diff --git a/lib/sam/3s/Makefile b/lib/sam/3s/Makefile index 4ec0b12b..4fb973b4 100644 --- a/lib/sam/3s/Makefile +++ b/lib/sam/3s/Makefile @@ -21,10 +21,8 @@ LIBNAME = libopencm3_sam3s SRCLIBDIR ?= ../.. -PREFIX ?= arm-none-eabi - -CC = $(PREFIX)-gcc -AR = $(PREFIX)-ar +CC = $(PREFIX)gcc +AR = $(PREFIX)ar TGT_CFLAGS = -Os -Wall -Wextra -I../../../include -fno-common \ -mcpu=cortex-m3 -mthumb $(FP_FLAGS) -Wstrict-prototypes \ -ffunction-sections -fdata-sections -MD -DSAM3S diff --git a/lib/sam/3u/Makefile b/lib/sam/3u/Makefile index 4b0ab0ce..7424c842 100644 --- a/lib/sam/3u/Makefile +++ b/lib/sam/3u/Makefile @@ -21,10 +21,8 @@ LIBNAME = libopencm3_sam3u SRCLIBDIR ?= ../.. -PREFIX ?= arm-none-eabi - -CC = $(PREFIX)-gcc -AR = $(PREFIX)-ar +CC = $(PREFIX)gcc +AR = $(PREFIX)ar TGT_CFLAGS = -Os -Wall -Wextra -I../../../include -fno-common \ -mcpu=cortex-m3 -mthumb $(FP_FLAGS) -Wstrict-prototypes \ -ffunction-sections -fdata-sections -MD -DSAM3U diff --git a/lib/sam/3x/Makefile b/lib/sam/3x/Makefile index c3dbc02d..5234fb76 100644 --- a/lib/sam/3x/Makefile +++ b/lib/sam/3x/Makefile @@ -20,10 +20,8 @@ LIBNAME = libopencm3_sam3x SRCLIBDIR ?= ../.. -PREFIX ?= arm-none-eabi - -CC = $(PREFIX)-gcc -AR = $(PREFIX)-ar +CC = $(PREFIX)gcc +AR = $(PREFIX)ar TGT_CFLAGS = -Os -Wall -Wextra -I../../../include -fno-common \ -mcpu=cortex-m3 -mthumb $(FP_FLAGS) -Wstrict-prototypes \ -ffunction-sections -fdata-sections -MD -DSAM3X diff --git a/lib/sam/4l/Makefile b/lib/sam/4l/Makefile index 42a507f0..24144dd9 100644 --- a/lib/sam/4l/Makefile +++ b/lib/sam/4l/Makefile @@ -18,11 +18,9 @@ LIBNAME = libopencm3_sam4l SRCLIBDIR ?= ../.. -PREFIX ?= arm-none-eabi FP_FLAGS ?= -msoft-float - -CC = $(PREFIX)-gcc -AR = $(PREFIX)-ar +CC = $(PREFIX)gcc +AR = $(PREFIX)ar TGT_CFLAGS = -Os -Wall -Wextra -I../../../include -fno-common \ -mcpu=cortex-m4 -mthumb $(FP_FLAGS) -Wstrict-prototypes \ -ffunction-sections -fdata-sections -MD -DSAM4L diff --git a/lib/sam/d/Makefile b/lib/sam/d/Makefile index 0a2a5c89..380ade30 100644 --- a/lib/sam/d/Makefile +++ b/lib/sam/d/Makefile @@ -20,10 +20,8 @@ LIBNAME = libopencm3_samd SRCLIBDIR ?= ../.. -PREFIX ?= arm-none-eabi - -CC = $(PREFIX)-gcc -AR = $(PREFIX)-ar +CC = $(PREFIX)gcc +AR = $(PREFIX)ar TGT_CFLAGS = -Os -Wall -Wextra -I../../../include -fno-common \ -mcpu=cortex-m0plus -mthumb $(FP_FLAGS) -Wstrict-prototypes \ -ffunction-sections -fdata-sections -MD -DSAMD diff --git a/lib/stm32/f0/Makefile b/lib/stm32/f0/Makefile index efe25563..4480ff2f 100644 --- a/lib/stm32/f0/Makefile +++ b/lib/stm32/f0/Makefile @@ -20,10 +20,8 @@ LIBNAME = libopencm3_stm32f0 SRCLIBDIR ?= ../.. -PREFIX ?= arm-none-eabi -#PREFIX ?= arm-elf -CC = $(PREFIX)-gcc -AR = $(PREFIX)-ar +CC = $(PREFIX)gcc +AR = $(PREFIX)ar TGT_CFLAGS = -Os \ -Wall -Wextra -Wimplicit-function-declaration \ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \ diff --git a/lib/stm32/f1/Makefile b/lib/stm32/f1/Makefile index c61f737b..de6082b5 100755 --- a/lib/stm32/f1/Makefile +++ b/lib/stm32/f1/Makefile @@ -20,10 +20,8 @@ LIBNAME = libopencm3_stm32f1 SRCLIBDIR ?= ../.. -PREFIX ?= arm-none-eabi - -CC = $(PREFIX)-gcc -AR = $(PREFIX)-ar +CC = $(PREFIX)gcc +AR = $(PREFIX)ar TGT_CFLAGS = -Os \ -Wall -Wextra -Wimplicit-function-declaration \ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \ diff --git a/lib/stm32/f2/Makefile b/lib/stm32/f2/Makefile index 2af763fd..0b5c8c82 100644 --- a/lib/stm32/f2/Makefile +++ b/lib/stm32/f2/Makefile @@ -20,10 +20,8 @@ LIBNAME = libopencm3_stm32f2 SRCLIBDIR ?= ../.. -PREFIX ?= arm-none-eabi - -CC = $(PREFIX)-gcc -AR = $(PREFIX)-ar +CC = $(PREFIX)gcc +AR = $(PREFIX)ar TGT_CFLAGS = -Os \ -Wall -Wextra -Wimplicit-function-declaration \ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \ diff --git a/lib/stm32/f3/Makefile b/lib/stm32/f3/Makefile index 362e0cd0..3a37b34d 100644 --- a/lib/stm32/f3/Makefile +++ b/lib/stm32/f3/Makefile @@ -21,10 +21,8 @@ LIBNAME = libopencm3_stm32f3 SRCLIBDIR ?= ../.. FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv4-sp-d16 -PREFIX ?= arm-none-eabi - -CC = $(PREFIX)-gcc -AR = $(PREFIX)-ar +CC = $(PREFIX)gcc +AR = $(PREFIX)ar TGT_CFLAGS = -Os \ -Wall -Wextra -Wimplicit-function-declaration \ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \ diff --git a/lib/stm32/f4/Makefile b/lib/stm32/f4/Makefile index c01c26e6..b80d6a65 100644 --- a/lib/stm32/f4/Makefile +++ b/lib/stm32/f4/Makefile @@ -22,10 +22,8 @@ LIBNAME = libopencm3_stm32f4 SRCLIBDIR ?= ../.. FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv4-sp-d16 -PREFIX ?= arm-none-eabi - -CC = $(PREFIX)-gcc -AR = $(PREFIX)-ar +CC = $(PREFIX)gcc +AR = $(PREFIX)ar TGT_CFLAGS = -Os \ -Wall -Wextra -Wimplicit-function-declaration \ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \ diff --git a/lib/stm32/f7/Makefile b/lib/stm32/f7/Makefile index 35d226e9..fed0a274 100644 --- a/lib/stm32/f7/Makefile +++ b/lib/stm32/f7/Makefile @@ -21,10 +21,8 @@ LIBNAME = libopencm3_stm32f7 SRCLIBDIR ?= ../.. -PREFIX ?= arm-none-eabi - -CC = $(PREFIX)-gcc -AR = $(PREFIX)-ar +CC = $(PREFIX)gcc +AR = $(PREFIX)ar # STM32F7 only supports single precision FPU FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv5-sp-d16 diff --git a/lib/stm32/g0/Makefile b/lib/stm32/g0/Makefile index 9b4719bc..ffdd6fbf 100644 --- a/lib/stm32/g0/Makefile +++ b/lib/stm32/g0/Makefile @@ -20,10 +20,8 @@ LIBNAME = libopencm3_stm32g0 SRCLIBDIR ?= ../.. -PREFIX ?= arm-none-eabi - -CC = $(PREFIX)-gcc -AR = $(PREFIX)-ar +CC = $(PREFIX)gcc +AR = $(PREFIX)ar TGT_CFLAGS = -Os \ -Wall -Wextra -Wimplicit-function-declaration \ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \ diff --git a/lib/stm32/l0/Makefile b/lib/stm32/l0/Makefile index baa19d3e..facaa8dd 100644 --- a/lib/stm32/l0/Makefile +++ b/lib/stm32/l0/Makefile @@ -20,10 +20,8 @@ LIBNAME = libopencm3_stm32l0 SRCLIBDIR ?= ../.. -PREFIX ?= arm-none-eabi -#PREFIX ?= arm-elf -CC = $(PREFIX)-gcc -AR = $(PREFIX)-ar +CC = $(PREFIX)gcc +AR = $(PREFIX)ar TGT_CFLAGS = -Os \ -Wall -Wextra -Wimplicit-function-declaration \ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \ diff --git a/lib/stm32/l1/Makefile b/lib/stm32/l1/Makefile index cd614593..a9382cb5 100644 --- a/lib/stm32/l1/Makefile +++ b/lib/stm32/l1/Makefile @@ -20,10 +20,8 @@ LIBNAME = libopencm3_stm32l1 SRCLIBDIR ?= ../.. -PREFIX ?= arm-none-eabi - -CC = $(PREFIX)-gcc -AR = $(PREFIX)-ar +CC = $(PREFIX)gcc +AR = $(PREFIX)ar TGT_CFLAGS = -Os \ -Wall -Wextra -Wimplicit-function-declaration \ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \ diff --git a/lib/stm32/l4/Makefile b/lib/stm32/l4/Makefile index e0bed7c5..1de6e320 100644 --- a/lib/stm32/l4/Makefile +++ b/lib/stm32/l4/Makefile @@ -21,10 +21,8 @@ LIBNAME = libopencm3_stm32l4 SRCLIBDIR ?= ../.. FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv4-sp-d16 -PREFIX ?= arm-none-eabi - -CC = $(PREFIX)-gcc -AR = $(PREFIX)-ar +CC = $(PREFIX)gcc +AR = $(PREFIX)ar TGT_CFLAGS = -Os \ -Wall -Wextra -Wimplicit-function-declaration \ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \ diff --git a/lib/swm050/Makefile b/lib/swm050/Makefile index ccbf14a7..fc2f89d1 100644 --- a/lib/swm050/Makefile +++ b/lib/swm050/Makefile @@ -20,10 +20,8 @@ LIBNAME = libopencm3_swm050 SRCLIBDIR ?= .. -PREFIX ?= arm-none-eabi - -CC = $(PREFIX)-gcc -AR = $(PREFIX)-ar +CC = $(PREFIX)gcc +AR = $(PREFIX)ar TGT_CFLAGS = -Os \ -Wall -Wextra -Wimplicit-function-declaration \ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \ diff --git a/lib/vf6xx/Makefile b/lib/vf6xx/Makefile index d87247be..f24d2e9b 100644 --- a/lib/vf6xx/Makefile +++ b/lib/vf6xx/Makefile @@ -22,10 +22,8 @@ LIBNAME = libopencm3_vf6xx SRCLIBDIR ?= .. FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv4-sp-d16 -PREFIX ?= arm-none-eabi - -CC = $(PREFIX)-gcc -AR = $(PREFIX)-ar +CC = $(PREFIX)gcc +AR = $(PREFIX)ar TGT_CFLAGS = -Os \ -Wall -Wextra -Wimplicit-function-declaration \ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \