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:
parent
9217a5f888
commit
aad8d06c3f
12
README.md
12
README.md
@ -90,6 +90,7 @@ them as environment variables, for example:
|
|||||||
$ VARIABLE=value make
|
$ VARIABLE=value make
|
||||||
|
|
||||||
* `FP_FLAGS` - Control the floating-point ABI
|
* `FP_FLAGS` - Control the floating-point ABI
|
||||||
|
|
||||||
If the Cortex-M core supports a hard float ABI, it will be compiled with
|
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
|
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
|
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=soft" make # No hardfloat
|
||||||
$ FP_FLAGS="-mfloat-abi=hard -mfpu=magic" make # New FPU we don't know of
|
$ 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
|
Example projects
|
||||||
----------------
|
----------------
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ $(SRCLIBDIR)/$(LIBNAME).ld: $(LIBNAME).ld
|
|||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
@printf " CC $(<F)\n"
|
@printf " CC $(<F)\n"
|
||||||
$(Q)$(CC) $(CFLAGS) -o $@ -c $<
|
$(Q)$(CC) $(TGT_CFLAGS) $(CFLAGS) -o $@ -c $<
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(Q)rm -f *.o *.d ../*.o ../*.d
|
$(Q)rm -f *.o *.d ../*.o ../*.d
|
||||||
|
@ -26,14 +26,14 @@ PREFIX ?= arm-none-eabi
|
|||||||
#PREFIX ?= arm-elf
|
#PREFIX ?= arm-elf
|
||||||
CC = $(PREFIX)-gcc
|
CC = $(PREFIX)-gcc
|
||||||
AR = $(PREFIX)-ar
|
AR = $(PREFIX)-ar
|
||||||
CFLAGS = -Os \
|
TGT_CFLAGS = -Os \
|
||||||
-Wall -Wextra -Wimplicit-function-declaration \
|
-Wall -Wextra -Wimplicit-function-declaration \
|
||||||
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
||||||
-Wundef -Wshadow \
|
-Wundef -Wshadow \
|
||||||
-I../../../include -fno-common \
|
-I../../../include -fno-common \
|
||||||
-mcpu=cortex-m3 $(FP_FLAGS) -mthumb -Wstrict-prototypes \
|
-mcpu=cortex-m3 $(FP_FLAGS) -mthumb -Wstrict-prototypes \
|
||||||
-ffunction-sections -fdata-sections -MD -D$(FAMILY)
|
-ffunction-sections -fdata-sections -MD -D$(FAMILY)
|
||||||
CFLAGS += $(DEBUG_FLAGS)
|
TGT_CFLAGS += $(DEBUG_FLAGS)
|
||||||
# ARFLAGS = rcsv
|
# ARFLAGS = rcsv
|
||||||
ARFLAGS = rcs
|
ARFLAGS = rcs
|
||||||
OBJS =
|
OBJS =
|
||||||
|
@ -26,14 +26,14 @@ PREFIX ?= arm-none-eabi
|
|||||||
#PREFIX ?= arm-elf
|
#PREFIX ?= arm-elf
|
||||||
CC = $(PREFIX)-gcc
|
CC = $(PREFIX)-gcc
|
||||||
AR = $(PREFIX)-ar
|
AR = $(PREFIX)-ar
|
||||||
CFLAGS = -Os \
|
TGT_CFLAGS = -Os \
|
||||||
-Wall -Wextra -Wimplicit-function-declaration \
|
-Wall -Wextra -Wimplicit-function-declaration \
|
||||||
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
||||||
-Wundef -Wshadow \
|
-Wundef -Wshadow \
|
||||||
-I../../../include -fno-common \
|
-I../../../include -fno-common \
|
||||||
-mcpu=cortex-m3 $(FP_FLAGS) -mthumb -Wstrict-prototypes \
|
-mcpu=cortex-m3 $(FP_FLAGS) -mthumb -Wstrict-prototypes \
|
||||||
-ffunction-sections -fdata-sections -MD -D$(FAMILY)
|
-ffunction-sections -fdata-sections -MD -D$(FAMILY)
|
||||||
CFLAGS += $(DEBUG_FLAGS)
|
TGT_CFLAGS += $(DEBUG_FLAGS)
|
||||||
# ARFLAGS = rcsv
|
# ARFLAGS = rcsv
|
||||||
ARFLAGS = rcs
|
ARFLAGS = rcs
|
||||||
OBJS =
|
OBJS =
|
||||||
|
@ -26,14 +26,14 @@ PREFIX ?= arm-none-eabi
|
|||||||
#PREFIX ?= arm-elf
|
#PREFIX ?= arm-elf
|
||||||
CC = $(PREFIX)-gcc
|
CC = $(PREFIX)-gcc
|
||||||
AR = $(PREFIX)-ar
|
AR = $(PREFIX)-ar
|
||||||
CFLAGS = -Os \
|
TGT_CFLAGS = -Os \
|
||||||
-Wall -Wextra -Wimplicit-function-declaration \
|
-Wall -Wextra -Wimplicit-function-declaration \
|
||||||
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
||||||
-Wundef -Wshadow \
|
-Wundef -Wshadow \
|
||||||
-I../../../include -fno-common \
|
-I../../../include -fno-common \
|
||||||
-mcpu=cortex-m3 $(FP_FLAGS) -mthumb -Wstrict-prototypes \
|
-mcpu=cortex-m3 $(FP_FLAGS) -mthumb -Wstrict-prototypes \
|
||||||
-ffunction-sections -fdata-sections -MD -D$(FAMILY)
|
-ffunction-sections -fdata-sections -MD -D$(FAMILY)
|
||||||
CFLAGS += $(DEBUG_FLAGS)
|
TGT_CFLAGS += $(DEBUG_FLAGS)
|
||||||
# ARFLAGS = rcsv
|
# ARFLAGS = rcsv
|
||||||
ARFLAGS = rcs
|
ARFLAGS = rcs
|
||||||
OBJS =
|
OBJS =
|
||||||
|
@ -26,14 +26,14 @@ PREFIX ?= arm-none-eabi
|
|||||||
#PREFIX ?= arm-elf
|
#PREFIX ?= arm-elf
|
||||||
CC = $(PREFIX)-gcc
|
CC = $(PREFIX)-gcc
|
||||||
AR = $(PREFIX)-ar
|
AR = $(PREFIX)-ar
|
||||||
CFLAGS = -Os \
|
TGT_CFLAGS = -Os \
|
||||||
-Wall -Wextra -Wimplicit-function-declaration \
|
-Wall -Wextra -Wimplicit-function-declaration \
|
||||||
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
||||||
-Wundef -Wshadow \
|
-Wundef -Wshadow \
|
||||||
-I../../../include -fno-common \
|
-I../../../include -fno-common \
|
||||||
-mcpu=cortex-m3 $(FP_FLAGS) -mthumb -Wstrict-prototypes \
|
-mcpu=cortex-m3 $(FP_FLAGS) -mthumb -Wstrict-prototypes \
|
||||||
-ffunction-sections -fdata-sections -MD -D$(FAMILY)
|
-ffunction-sections -fdata-sections -MD -D$(FAMILY)
|
||||||
CFLAGS += $(DEBUG_FLAGS)
|
TGT_CFLAGS += $(DEBUG_FLAGS)
|
||||||
# ARFLAGS = rcsv
|
# ARFLAGS = rcsv
|
||||||
ARFLAGS = rcs
|
ARFLAGS = rcs
|
||||||
OBJS =
|
OBJS =
|
||||||
|
@ -24,14 +24,14 @@ PREFIX ?= arm-none-eabi
|
|||||||
|
|
||||||
CC = $(PREFIX)-gcc
|
CC = $(PREFIX)-gcc
|
||||||
AR = $(PREFIX)-ar
|
AR = $(PREFIX)-ar
|
||||||
CFLAGS = -Os \
|
TGT_CFLAGS = -Os \
|
||||||
-Wall -Wextra -Wimplicit-function-declaration \
|
-Wall -Wextra -Wimplicit-function-declaration \
|
||||||
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
||||||
-Wundef -Wshadow \
|
-Wundef -Wshadow \
|
||||||
-I../../include -fno-common \
|
-I../../include -fno-common \
|
||||||
-mcpu=cortex-m3 -mthumb $(FP_FLAGS) -Wstrict-prototypes \
|
-mcpu=cortex-m3 -mthumb $(FP_FLAGS) -Wstrict-prototypes \
|
||||||
-ffunction-sections -fdata-sections -MD -DLM3S
|
-ffunction-sections -fdata-sections -MD -DLM3S
|
||||||
CFLAGS += $(DEBUG_FLAGS)
|
TGT_CFLAGS += $(DEBUG_FLAGS)
|
||||||
# ARFLAGS = rcsv
|
# ARFLAGS = rcsv
|
||||||
ARFLAGS = rcs
|
ARFLAGS = rcs
|
||||||
OBJS = gpio.o vector.o assert.o
|
OBJS = gpio.o vector.o assert.o
|
||||||
|
@ -26,14 +26,14 @@ PREFIX ?= arm-none-eabi
|
|||||||
|
|
||||||
CC = $(PREFIX)-gcc
|
CC = $(PREFIX)-gcc
|
||||||
AR = $(PREFIX)-ar
|
AR = $(PREFIX)-ar
|
||||||
CFLAGS = -Os \
|
TGT_CFLAGS = -Os \
|
||||||
-Wall -Wextra -Wimplicit-function-declaration \
|
-Wall -Wextra -Wimplicit-function-declaration \
|
||||||
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
||||||
-Wundef -Wshadow \
|
-Wundef -Wshadow \
|
||||||
-I../../include -fno-common \
|
-I../../include -fno-common \
|
||||||
-mcpu=cortex-m4 -mthumb $(FP_FLAGS) -Wstrict-prototypes \
|
-mcpu=cortex-m4 -mthumb $(FP_FLAGS) -Wstrict-prototypes \
|
||||||
-ffunction-sections -fdata-sections -MD -DLM4F
|
-ffunction-sections -fdata-sections -MD -DLM4F
|
||||||
CFLAGS += $(DEBUG_FLAGS)
|
TGT_CFLAGS += $(DEBUG_FLAGS)
|
||||||
# ARFLAGS = rcsv
|
# ARFLAGS = rcsv
|
||||||
ARFLAGS = rcs
|
ARFLAGS = rcs
|
||||||
OBJS = gpio.o vector.o assert.o systemcontrol.o rcc.o uart.o \
|
OBJS = gpio.o vector.o assert.o systemcontrol.o rcc.o uart.o \
|
||||||
|
@ -24,14 +24,14 @@ PREFIX ?= arm-none-eabi
|
|||||||
|
|
||||||
CC = $(PREFIX)-gcc
|
CC = $(PREFIX)-gcc
|
||||||
AR = $(PREFIX)-ar
|
AR = $(PREFIX)-ar
|
||||||
CFLAGS = -Os \
|
TGT_CFLAGS = -Os \
|
||||||
-Wall -Wextra -Wimplicit-function-declaration \
|
-Wall -Wextra -Wimplicit-function-declaration \
|
||||||
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
||||||
-Wundef -Wshadow \
|
-Wundef -Wshadow \
|
||||||
-I../../include -fno-common \
|
-I../../include -fno-common \
|
||||||
-mcpu=cortex-m3 -mthumb $(FP_FLAGS) -Wstrict-prototypes \
|
-mcpu=cortex-m3 -mthumb $(FP_FLAGS) -Wstrict-prototypes \
|
||||||
-ffunction-sections -fdata-sections -MD -DLPC13XX
|
-ffunction-sections -fdata-sections -MD -DLPC13XX
|
||||||
CFLAGS += $(DEBUG_FLAGS)
|
TGT_CFLAGS += $(DEBUG_FLAGS)
|
||||||
# ARFLAGS = rcsv
|
# ARFLAGS = rcsv
|
||||||
ARFLAGS = rcs
|
ARFLAGS = rcs
|
||||||
OBJS = gpio.o
|
OBJS = gpio.o
|
||||||
|
@ -24,14 +24,14 @@ PREFIX ?= arm-none-eabi
|
|||||||
|
|
||||||
CC = $(PREFIX)-gcc
|
CC = $(PREFIX)-gcc
|
||||||
AR = $(PREFIX)-ar
|
AR = $(PREFIX)-ar
|
||||||
CFLAGS = -Os \
|
TGT_CFLAGS = -Os \
|
||||||
-Wall -Wextra -Wimplicit-function-declaration \
|
-Wall -Wextra -Wimplicit-function-declaration \
|
||||||
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
||||||
-Wundef -Wshadow \
|
-Wundef -Wshadow \
|
||||||
-I../../include -fno-common \
|
-I../../include -fno-common \
|
||||||
-mcpu=cortex-m3 -mthumb $(FP_FLAGS) -Wstrict-prototypes \
|
-mcpu=cortex-m3 -mthumb $(FP_FLAGS) -Wstrict-prototypes \
|
||||||
-ffunction-sections -fdata-sections -MD -DLPC17XX
|
-ffunction-sections -fdata-sections -MD -DLPC17XX
|
||||||
CFLAGS += $(DEBUG_FLAGS)
|
TGT_CFLAGS += $(DEBUG_FLAGS)
|
||||||
# ARFLAGS = rcsv
|
# ARFLAGS = rcsv
|
||||||
ARFLAGS = rcs
|
ARFLAGS = rcs
|
||||||
OBJS = gpio.o pwr.o
|
OBJS = gpio.o pwr.o
|
||||||
|
@ -26,10 +26,10 @@ PREFIX ?= arm-none-eabi
|
|||||||
#PREFIX ?= arm-elf
|
#PREFIX ?= arm-elf
|
||||||
CC = $(PREFIX)-gcc
|
CC = $(PREFIX)-gcc
|
||||||
AR = $(PREFIX)-ar
|
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 \
|
-mcpu=cortex-m0 -mthumb -Wstrict-prototypes \
|
||||||
-ffunction-sections -fdata-sections -MD -DLPC43XX -DLPC43XX_M0
|
-ffunction-sections -fdata-sections -MD -DLPC43XX -DLPC43XX_M0
|
||||||
CFLAGS += $(DEBUG_FLAGS)
|
TGT_CFLAGS += $(DEBUG_FLAGS)
|
||||||
# ARFLAGS = rcsv
|
# ARFLAGS = rcsv
|
||||||
ARFLAGS = rcs
|
ARFLAGS = rcs
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ PREFIX ?= arm-none-eabi
|
|||||||
|
|
||||||
CC = $(PREFIX)-gcc
|
CC = $(PREFIX)-gcc
|
||||||
AR = $(PREFIX)-ar
|
AR = $(PREFIX)-ar
|
||||||
CFLAGS = -O2 \
|
TGT_CFLAGS = -O2 \
|
||||||
-Wall -Wextra -Wimplicit-function-declaration \
|
-Wall -Wextra -Wimplicit-function-declaration \
|
||||||
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
||||||
-Wundef -Wshadow \
|
-Wundef -Wshadow \
|
||||||
@ -36,7 +36,7 @@ CFLAGS = -O2 \
|
|||||||
-mcpu=cortex-m4 -mthumb -Wstrict-prototypes \
|
-mcpu=cortex-m4 -mthumb -Wstrict-prototypes \
|
||||||
-ffunction-sections -fdata-sections -MD \
|
-ffunction-sections -fdata-sections -MD \
|
||||||
$(FP_FLAGS) -DLPC43XX -DLPC43XX_M4
|
$(FP_FLAGS) -DLPC43XX -DLPC43XX_M4
|
||||||
CFLAGS += $(DEBUG_FLAGS)
|
TGT_CFLAGS += $(DEBUG_FLAGS)
|
||||||
|
|
||||||
ARFLAGS = rcs
|
ARFLAGS = rcs
|
||||||
|
|
||||||
|
@ -24,10 +24,10 @@ PREFIX ?= arm-none-eabi
|
|||||||
|
|
||||||
CC = $(PREFIX)-gcc
|
CC = $(PREFIX)-gcc
|
||||||
AR = $(PREFIX)-ar
|
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 \
|
-mcpu=cortex-m3 -mthumb $(FP_FLAGS) -Wstrict-prototypes \
|
||||||
-ffunction-sections -fdata-sections -MD -DSAM3A
|
-ffunction-sections -fdata-sections -MD -DSAM3A
|
||||||
CFLAGS += $(DEBUG_FLAGS)
|
TGT_CFLAGS += $(DEBUG_FLAGS)
|
||||||
# ARFLAGS = rcsv
|
# ARFLAGS = rcsv
|
||||||
ARFLAGS = rcs
|
ARFLAGS = rcs
|
||||||
OBJS = gpio_common_all.o gpio_common_3a3u3x.o pmc.o usart.o
|
OBJS = gpio_common_all.o gpio_common_3a3u3x.o pmc.o usart.o
|
||||||
|
@ -24,10 +24,10 @@ PREFIX ?= arm-none-eabi
|
|||||||
|
|
||||||
CC = $(PREFIX)-gcc
|
CC = $(PREFIX)-gcc
|
||||||
AR = $(PREFIX)-ar
|
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 \
|
-mcpu=cortex-m3 -mthumb $(FP_FLAGS) -Wstrict-prototypes \
|
||||||
-ffunction-sections -fdata-sections -MD -DSAM3N
|
-ffunction-sections -fdata-sections -MD -DSAM3N
|
||||||
CFLAGS += $(DEBUG_FLAGS)
|
TGT_CFLAGS += $(DEBUG_FLAGS)
|
||||||
# ARFLAGS = rcsv
|
# ARFLAGS = rcsv
|
||||||
ARFLAGS = rcs
|
ARFLAGS = rcs
|
||||||
OBJS = gpio_common_all.o gpio_common_3n3s.o pmc.o usart.o
|
OBJS = gpio_common_all.o gpio_common_3n3s.o pmc.o usart.o
|
||||||
|
@ -25,10 +25,10 @@ PREFIX ?= arm-none-eabi
|
|||||||
|
|
||||||
CC = $(PREFIX)-gcc
|
CC = $(PREFIX)-gcc
|
||||||
AR = $(PREFIX)-ar
|
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 \
|
-mcpu=cortex-m3 -mthumb $(FP_FLAGS) -Wstrict-prototypes \
|
||||||
-ffunction-sections -fdata-sections -MD -DSAM3S
|
-ffunction-sections -fdata-sections -MD -DSAM3S
|
||||||
CFLAGS += $(DEBUG_FLAGS)
|
TGT_CFLAGS += $(DEBUG_FLAGS)
|
||||||
# ARFLAGS = rcsv
|
# ARFLAGS = rcsv
|
||||||
ARFLAGS = rcs
|
ARFLAGS = rcs
|
||||||
OBJS = gpio_common_all.o gpio_common_3n3s.o pmc.o usart.o
|
OBJS = gpio_common_all.o gpio_common_3n3s.o pmc.o usart.o
|
||||||
|
@ -25,10 +25,10 @@ PREFIX ?= arm-none-eabi
|
|||||||
|
|
||||||
CC = $(PREFIX)-gcc
|
CC = $(PREFIX)-gcc
|
||||||
AR = $(PREFIX)-ar
|
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 \
|
-mcpu=cortex-m3 -mthumb $(FP_FLAGS) -Wstrict-prototypes \
|
||||||
-ffunction-sections -fdata-sections -MD -DSAM3U
|
-ffunction-sections -fdata-sections -MD -DSAM3U
|
||||||
CFLAGS += $(DEBUG_FLAGS)
|
TGT_CFLAGS += $(DEBUG_FLAGS)
|
||||||
# ARFLAGS = rcsv
|
# ARFLAGS = rcsv
|
||||||
ARFLAGS = rcs
|
ARFLAGS = rcs
|
||||||
OBJS = gpio_common_all.o gpio_common_3a3u3x.o pmc.o usart.o
|
OBJS = gpio_common_all.o gpio_common_3a3u3x.o pmc.o usart.o
|
||||||
|
@ -24,10 +24,10 @@ PREFIX ?= arm-none-eabi
|
|||||||
|
|
||||||
CC = $(PREFIX)-gcc
|
CC = $(PREFIX)-gcc
|
||||||
AR = $(PREFIX)-ar
|
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 \
|
-mcpu=cortex-m3 -mthumb $(FP_FLAGS) -Wstrict-prototypes \
|
||||||
-ffunction-sections -fdata-sections -MD -DSAM3X
|
-ffunction-sections -fdata-sections -MD -DSAM3X
|
||||||
CFLAGS += $(DEBUG_FLAGS)
|
TGT_CFLAGS += $(DEBUG_FLAGS)
|
||||||
# ARFLAGS = rcsv
|
# ARFLAGS = rcsv
|
||||||
ARFLAGS = rcs
|
ARFLAGS = rcs
|
||||||
OBJS = gpio_common_all.o gpio_common_3a3u3x.o pmc.o usart.o
|
OBJS = gpio_common_all.o gpio_common_3a3u3x.o pmc.o usart.o
|
||||||
|
@ -24,14 +24,14 @@ PREFIX ?= arm-none-eabi
|
|||||||
#PREFIX ?= arm-elf
|
#PREFIX ?= arm-elf
|
||||||
CC = $(PREFIX)-gcc
|
CC = $(PREFIX)-gcc
|
||||||
AR = $(PREFIX)-ar
|
AR = $(PREFIX)-ar
|
||||||
CFLAGS = -Os \
|
TGT_CFLAGS = -Os \
|
||||||
-Wall -Wextra -Wimplicit-function-declaration \
|
-Wall -Wextra -Wimplicit-function-declaration \
|
||||||
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
||||||
-Wundef -Wshadow \
|
-Wundef -Wshadow \
|
||||||
-I../../../include -fno-common \
|
-I../../../include -fno-common \
|
||||||
-mcpu=cortex-m0 $(FP_FLAGS) -mthumb -Wstrict-prototypes \
|
-mcpu=cortex-m0 $(FP_FLAGS) -mthumb -Wstrict-prototypes \
|
||||||
-ffunction-sections -fdata-sections -MD -DSTM32F0
|
-ffunction-sections -fdata-sections -MD -DSTM32F0
|
||||||
CFLAGS += $(DEBUG_FLAGS)
|
TGT_CFLAGS += $(DEBUG_FLAGS)
|
||||||
|
|
||||||
ARFLAGS = rcs
|
ARFLAGS = rcs
|
||||||
|
|
||||||
|
@ -24,14 +24,14 @@ PREFIX ?= arm-none-eabi
|
|||||||
|
|
||||||
CC = $(PREFIX)-gcc
|
CC = $(PREFIX)-gcc
|
||||||
AR = $(PREFIX)-ar
|
AR = $(PREFIX)-ar
|
||||||
CFLAGS = -Os \
|
TGT_CFLAGS = -Os \
|
||||||
-Wall -Wextra -Wimplicit-function-declaration \
|
-Wall -Wextra -Wimplicit-function-declaration \
|
||||||
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
||||||
-Wundef -Wshadow \
|
-Wundef -Wshadow \
|
||||||
-I../../../include -fno-common \
|
-I../../../include -fno-common \
|
||||||
-mcpu=cortex-m3 $(FP_FLAGS) -mthumb -Wstrict-prototypes \
|
-mcpu=cortex-m3 $(FP_FLAGS) -mthumb -Wstrict-prototypes \
|
||||||
-ffunction-sections -fdata-sections -MD -DSTM32F1
|
-ffunction-sections -fdata-sections -MD -DSTM32F1
|
||||||
CFLAGS += $(DEBUG_FLAGS)
|
TGT_CFLAGS += $(DEBUG_FLAGS)
|
||||||
# ARFLAGS = rcsv
|
# ARFLAGS = rcsv
|
||||||
ARFLAGS = rcs
|
ARFLAGS = rcs
|
||||||
|
|
||||||
|
@ -24,14 +24,14 @@ PREFIX ?= arm-none-eabi
|
|||||||
|
|
||||||
CC = $(PREFIX)-gcc
|
CC = $(PREFIX)-gcc
|
||||||
AR = $(PREFIX)-ar
|
AR = $(PREFIX)-ar
|
||||||
CFLAGS = -Os \
|
TGT_CFLAGS = -Os \
|
||||||
-Wall -Wextra -Wimplicit-function-declaration \
|
-Wall -Wextra -Wimplicit-function-declaration \
|
||||||
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
||||||
-Wundef -Wshadow \
|
-Wundef -Wshadow \
|
||||||
-I../../../include -fno-common \
|
-I../../../include -fno-common \
|
||||||
-mcpu=cortex-m3 -mthumb $(FP_FLAGS) -Wstrict-prototypes \
|
-mcpu=cortex-m3 -mthumb $(FP_FLAGS) -Wstrict-prototypes \
|
||||||
-ffunction-sections -fdata-sections -MD -DSTM32F2
|
-ffunction-sections -fdata-sections -MD -DSTM32F2
|
||||||
CFLAGS += $(DEBUG_FLAGS)
|
TGT_CFLAGS += $(DEBUG_FLAGS)
|
||||||
# ARFLAGS = rcsv
|
# ARFLAGS = rcsv
|
||||||
ARFLAGS = rcs
|
ARFLAGS = rcs
|
||||||
|
|
||||||
|
@ -25,14 +25,14 @@ PREFIX ?= arm-none-eabi
|
|||||||
|
|
||||||
CC = $(PREFIX)-gcc
|
CC = $(PREFIX)-gcc
|
||||||
AR = $(PREFIX)-ar
|
AR = $(PREFIX)-ar
|
||||||
CFLAGS = -Os \
|
TGT_CFLAGS = -Os \
|
||||||
-Wall -Wextra -Wimplicit-function-declaration \
|
-Wall -Wextra -Wimplicit-function-declaration \
|
||||||
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
||||||
-Wundef -Wshadow \
|
-Wundef -Wshadow \
|
||||||
-I../../../include -fno-common \
|
-I../../../include -fno-common \
|
||||||
-mcpu=cortex-m4 -mthumb $(FP_FLAGS) -Wstrict-prototypes \
|
-mcpu=cortex-m4 -mthumb $(FP_FLAGS) -Wstrict-prototypes \
|
||||||
-ffunction-sections -fdata-sections -MD -DSTM32F3
|
-ffunction-sections -fdata-sections -MD -DSTM32F3
|
||||||
CFLAGS += $(DEBUG_FLAGS)
|
TGT_CFLAGS += $(DEBUG_FLAGS)
|
||||||
|
|
||||||
ARFLAGS = rcs
|
ARFLAGS = rcs
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ PREFIX ?= arm-none-eabi
|
|||||||
|
|
||||||
CC = $(PREFIX)-gcc
|
CC = $(PREFIX)-gcc
|
||||||
AR = $(PREFIX)-ar
|
AR = $(PREFIX)-ar
|
||||||
CFLAGS = -Os \
|
TGT_CFLAGS = -Os \
|
||||||
-Wall -Wextra -Wimplicit-function-declaration \
|
-Wall -Wextra -Wimplicit-function-declaration \
|
||||||
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
||||||
-Wundef -Wshadow \
|
-Wundef -Wshadow \
|
||||||
@ -34,7 +34,7 @@ CFLAGS = -Os \
|
|||||||
-mcpu=cortex-m4 -mthumb $(FP_FLAGS) \
|
-mcpu=cortex-m4 -mthumb $(FP_FLAGS) \
|
||||||
-Wstrict-prototypes \
|
-Wstrict-prototypes \
|
||||||
-ffunction-sections -fdata-sections -MD -DSTM32F4
|
-ffunction-sections -fdata-sections -MD -DSTM32F4
|
||||||
CFLAGS += $(DEBUG_FLAGS)
|
TGT_CFLAGS += $(DEBUG_FLAGS)
|
||||||
# ARFLAGS = rcsv
|
# ARFLAGS = rcsv
|
||||||
ARFLAGS = rcs
|
ARFLAGS = rcs
|
||||||
|
|
||||||
|
@ -24,14 +24,14 @@ PREFIX ?= arm-none-eabi
|
|||||||
#PREFIX ?= arm-elf
|
#PREFIX ?= arm-elf
|
||||||
CC = $(PREFIX)-gcc
|
CC = $(PREFIX)-gcc
|
||||||
AR = $(PREFIX)-ar
|
AR = $(PREFIX)-ar
|
||||||
CFLAGS = -Os \
|
TGT_CFLAGS = -Os \
|
||||||
-Wall -Wextra -Wimplicit-function-declaration \
|
-Wall -Wextra -Wimplicit-function-declaration \
|
||||||
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
||||||
-Wundef -Wshadow \
|
-Wundef -Wshadow \
|
||||||
-I../../../include -fno-common \
|
-I../../../include -fno-common \
|
||||||
-mcpu=cortex-m0plus $(FP_FLAGS) -mthumb -Wstrict-prototypes \
|
-mcpu=cortex-m0plus $(FP_FLAGS) -mthumb -Wstrict-prototypes \
|
||||||
-ffunction-sections -fdata-sections -MD -DSTM32L0
|
-ffunction-sections -fdata-sections -MD -DSTM32L0
|
||||||
CFLAGS += $(DEBUG_FLAGS)
|
TGT_CFLAGS += $(DEBUG_FLAGS)
|
||||||
|
|
||||||
ARFLAGS = rcs
|
ARFLAGS = rcs
|
||||||
|
|
||||||
|
@ -24,14 +24,14 @@ PREFIX ?= arm-none-eabi
|
|||||||
|
|
||||||
CC = $(PREFIX)-gcc
|
CC = $(PREFIX)-gcc
|
||||||
AR = $(PREFIX)-ar
|
AR = $(PREFIX)-ar
|
||||||
CFLAGS = -Os \
|
TGT_CFLAGS = -Os \
|
||||||
-Wall -Wextra -Wimplicit-function-declaration \
|
-Wall -Wextra -Wimplicit-function-declaration \
|
||||||
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
||||||
-Wundef -Wshadow \
|
-Wundef -Wshadow \
|
||||||
-I../../../include -fno-common \
|
-I../../../include -fno-common \
|
||||||
-mcpu=cortex-m3 $(FP_FLAGS) -mthumb -Wstrict-prototypes \
|
-mcpu=cortex-m3 $(FP_FLAGS) -mthumb -Wstrict-prototypes \
|
||||||
-ffunction-sections -fdata-sections -MD -DSTM32L1
|
-ffunction-sections -fdata-sections -MD -DSTM32L1
|
||||||
CFLAGS += $(DEBUG_FLAGS)
|
TGT_CFLAGS += $(DEBUG_FLAGS)
|
||||||
# ARFLAGS = rcsv
|
# ARFLAGS = rcsv
|
||||||
ARFLAGS = rcs
|
ARFLAGS = rcs
|
||||||
OBJS = crc.o desig.o flash.o rcc.o usart.o dma.o lcd.o
|
OBJS = crc.o desig.o flash.o rcc.o usart.o dma.o lcd.o
|
||||||
|
@ -26,14 +26,14 @@ PREFIX ?= arm-none-eabi
|
|||||||
|
|
||||||
CC = $(PREFIX)-gcc
|
CC = $(PREFIX)-gcc
|
||||||
AR = $(PREFIX)-ar
|
AR = $(PREFIX)-ar
|
||||||
CFLAGS = -Os \
|
TGT_CFLAGS = -Os \
|
||||||
-Wall -Wextra -Wimplicit-function-declaration \
|
-Wall -Wextra -Wimplicit-function-declaration \
|
||||||
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
||||||
-Wundef -Wshadow \
|
-Wundef -Wshadow \
|
||||||
-I../../include -fno-common \
|
-I../../include -fno-common \
|
||||||
-mcpu=cortex-m4 -mthumb $(FP_FLAGS) -Wstrict-prototypes \
|
-mcpu=cortex-m4 -mthumb $(FP_FLAGS) -Wstrict-prototypes \
|
||||||
-ffunction-sections -fdata-sections -MD -DVF6XX
|
-ffunction-sections -fdata-sections -MD -DVF6XX
|
||||||
CFLAGS += $(DEBUG_FLAGS)
|
TGT_CFLAGS += $(DEBUG_FLAGS)
|
||||||
ARFLAGS = rcs
|
ARFLAGS = rcs
|
||||||
OBJS = ccm.o uart.o gpio.o iomuxc.o
|
OBJS = ccm.o uart.o gpio.o iomuxc.o
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user