make: use shared DEBUG_FLAGS (-gdb3) by default
-ggdb3 make slightly bigger .elf files, but allows gdb to understand macros, which libopenocm3 uses somewhat extensively. Make this the default, and pull it up to the common base makefile, so it can be easily substituted.
This commit is contained in:
parent
a21da3aebf
commit
6d658c20b8
@ -26,6 +26,9 @@ endif
|
|||||||
# common objects
|
# common objects
|
||||||
OBJS += vector.o systick.o scb.o nvic.o assert.o sync.o dwt.o
|
OBJS += vector.o systick.o scb.o nvic.o assert.o sync.o dwt.o
|
||||||
|
|
||||||
|
# Slightly bigger .elf files but gains the ability to decode macros
|
||||||
|
DEBUG_FLAGS ?= -ggdb3
|
||||||
|
|
||||||
all: $(SRCLIBDIR)/$(LIBNAME).a
|
all: $(SRCLIBDIR)/$(LIBNAME).a
|
||||||
|
|
||||||
$(SRCLIBDIR)/$(LIBNAME).a: $(SRCLIBDIR)/$(LIBNAME).ld $(OBJS)
|
$(SRCLIBDIR)/$(LIBNAME).a: $(SRCLIBDIR)/$(LIBNAME).ld $(OBJS)
|
||||||
|
@ -26,13 +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 -g \
|
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)
|
||||||
# ARFLAGS = rcsv
|
# ARFLAGS = rcsv
|
||||||
ARFLAGS = rcs
|
ARFLAGS = rcs
|
||||||
OBJS =
|
OBJS =
|
||||||
|
@ -26,13 +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 -g \
|
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)
|
||||||
# ARFLAGS = rcsv
|
# ARFLAGS = rcsv
|
||||||
ARFLAGS = rcs
|
ARFLAGS = rcs
|
||||||
OBJS =
|
OBJS =
|
||||||
|
@ -26,13 +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 -g \
|
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)
|
||||||
# ARFLAGS = rcsv
|
# ARFLAGS = rcsv
|
||||||
ARFLAGS = rcs
|
ARFLAGS = rcs
|
||||||
OBJS =
|
OBJS =
|
||||||
|
@ -26,13 +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 -g \
|
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)
|
||||||
# ARFLAGS = rcsv
|
# ARFLAGS = rcsv
|
||||||
ARFLAGS = rcs
|
ARFLAGS = rcs
|
||||||
OBJS =
|
OBJS =
|
||||||
|
@ -24,13 +24,14 @@ PREFIX ?= arm-none-eabi
|
|||||||
|
|
||||||
CC = $(PREFIX)-gcc
|
CC = $(PREFIX)-gcc
|
||||||
AR = $(PREFIX)-ar
|
AR = $(PREFIX)-ar
|
||||||
CFLAGS = -Os -g \
|
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)
|
||||||
# ARFLAGS = rcsv
|
# ARFLAGS = rcsv
|
||||||
ARFLAGS = rcs
|
ARFLAGS = rcs
|
||||||
OBJS = gpio.o vector.o assert.o
|
OBJS = gpio.o vector.o assert.o
|
||||||
|
@ -26,13 +26,14 @@ PREFIX ?= arm-none-eabi
|
|||||||
|
|
||||||
CC = $(PREFIX)-gcc
|
CC = $(PREFIX)-gcc
|
||||||
AR = $(PREFIX)-ar
|
AR = $(PREFIX)-ar
|
||||||
CFLAGS = -Os -g \
|
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)
|
||||||
# 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,13 +24,14 @@ PREFIX ?= arm-none-eabi
|
|||||||
|
|
||||||
CC = $(PREFIX)-gcc
|
CC = $(PREFIX)-gcc
|
||||||
AR = $(PREFIX)-ar
|
AR = $(PREFIX)-ar
|
||||||
CFLAGS = -Os -g \
|
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)
|
||||||
# ARFLAGS = rcsv
|
# ARFLAGS = rcsv
|
||||||
ARFLAGS = rcs
|
ARFLAGS = rcs
|
||||||
OBJS = gpio.o
|
OBJS = gpio.o
|
||||||
|
@ -24,13 +24,14 @@ PREFIX ?= arm-none-eabi
|
|||||||
|
|
||||||
CC = $(PREFIX)-gcc
|
CC = $(PREFIX)-gcc
|
||||||
AR = $(PREFIX)-ar
|
AR = $(PREFIX)-ar
|
||||||
CFLAGS = -Os -g \
|
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)
|
||||||
# ARFLAGS = rcsv
|
# ARFLAGS = rcsv
|
||||||
ARFLAGS = rcs
|
ARFLAGS = rcs
|
||||||
OBJS = gpio.o pwr.o
|
OBJS = gpio.o pwr.o
|
||||||
|
@ -26,9 +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 -g3 -Wall -Wextra -I../../../include -fno-common \
|
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)
|
||||||
# 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 -g3 \
|
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,6 +36,7 @@ CFLAGS = -O2 -g3 \
|
|||||||
-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)
|
||||||
|
|
||||||
ARFLAGS = rcs
|
ARFLAGS = rcs
|
||||||
|
|
||||||
|
@ -24,9 +24,10 @@ PREFIX ?= arm-none-eabi
|
|||||||
|
|
||||||
CC = $(PREFIX)-gcc
|
CC = $(PREFIX)-gcc
|
||||||
AR = $(PREFIX)-ar
|
AR = $(PREFIX)-ar
|
||||||
CFLAGS = -Os -g -Wall -Wextra -I../../../include -fno-common \
|
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)
|
||||||
# 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,9 +24,10 @@ PREFIX ?= arm-none-eabi
|
|||||||
|
|
||||||
CC = $(PREFIX)-gcc
|
CC = $(PREFIX)-gcc
|
||||||
AR = $(PREFIX)-ar
|
AR = $(PREFIX)-ar
|
||||||
CFLAGS = -Os -g -Wall -Wextra -I../../../include -fno-common \
|
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)
|
||||||
# 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,9 +25,10 @@ PREFIX ?= arm-none-eabi
|
|||||||
|
|
||||||
CC = $(PREFIX)-gcc
|
CC = $(PREFIX)-gcc
|
||||||
AR = $(PREFIX)-ar
|
AR = $(PREFIX)-ar
|
||||||
CFLAGS = -Os -g -Wall -Wextra -I../../../include -fno-common \
|
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)
|
||||||
# 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,9 +25,10 @@ PREFIX ?= arm-none-eabi
|
|||||||
|
|
||||||
CC = $(PREFIX)-gcc
|
CC = $(PREFIX)-gcc
|
||||||
AR = $(PREFIX)-ar
|
AR = $(PREFIX)-ar
|
||||||
CFLAGS = -Os -g -Wall -Wextra -I../../../include -fno-common \
|
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)
|
||||||
# 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,9 +24,10 @@ PREFIX ?= arm-none-eabi
|
|||||||
|
|
||||||
CC = $(PREFIX)-gcc
|
CC = $(PREFIX)-gcc
|
||||||
AR = $(PREFIX)-ar
|
AR = $(PREFIX)-ar
|
||||||
CFLAGS = -Os -g -Wall -Wextra -I../../../include -fno-common \
|
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)
|
||||||
# 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,13 +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 -g \
|
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)
|
||||||
|
|
||||||
ARFLAGS = rcs
|
ARFLAGS = rcs
|
||||||
|
|
||||||
|
@ -24,13 +24,14 @@ PREFIX ?= arm-none-eabi
|
|||||||
|
|
||||||
CC = $(PREFIX)-gcc
|
CC = $(PREFIX)-gcc
|
||||||
AR = $(PREFIX)-ar
|
AR = $(PREFIX)-ar
|
||||||
CFLAGS = -Os -g \
|
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)
|
||||||
# ARFLAGS = rcsv
|
# ARFLAGS = rcsv
|
||||||
ARFLAGS = rcs
|
ARFLAGS = rcs
|
||||||
|
|
||||||
|
@ -24,13 +24,14 @@ PREFIX ?= arm-none-eabi
|
|||||||
|
|
||||||
CC = $(PREFIX)-gcc
|
CC = $(PREFIX)-gcc
|
||||||
AR = $(PREFIX)-ar
|
AR = $(PREFIX)-ar
|
||||||
CFLAGS = -Os -g \
|
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)
|
||||||
# ARFLAGS = rcsv
|
# ARFLAGS = rcsv
|
||||||
ARFLAGS = rcs
|
ARFLAGS = rcs
|
||||||
|
|
||||||
|
@ -25,13 +25,14 @@ PREFIX ?= arm-none-eabi
|
|||||||
|
|
||||||
CC = $(PREFIX)-gcc
|
CC = $(PREFIX)-gcc
|
||||||
AR = $(PREFIX)-ar
|
AR = $(PREFIX)-ar
|
||||||
CFLAGS = -Os -g \
|
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)
|
||||||
|
|
||||||
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 -g \
|
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,6 +34,7 @@ CFLAGS = -Os -g \
|
|||||||
-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)
|
||||||
# ARFLAGS = rcsv
|
# ARFLAGS = rcsv
|
||||||
ARFLAGS = rcs
|
ARFLAGS = rcs
|
||||||
|
|
||||||
|
@ -24,13 +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 -g \
|
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)
|
||||||
|
|
||||||
ARFLAGS = rcs
|
ARFLAGS = rcs
|
||||||
|
|
||||||
|
@ -24,13 +24,14 @@ PREFIX ?= arm-none-eabi
|
|||||||
|
|
||||||
CC = $(PREFIX)-gcc
|
CC = $(PREFIX)-gcc
|
||||||
AR = $(PREFIX)-ar
|
AR = $(PREFIX)-ar
|
||||||
CFLAGS = -Os -g \
|
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)
|
||||||
# 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,13 +26,14 @@ PREFIX ?= arm-none-eabi
|
|||||||
|
|
||||||
CC = $(PREFIX)-gcc
|
CC = $(PREFIX)-gcc
|
||||||
AR = $(PREFIX)-ar
|
AR = $(PREFIX)-ar
|
||||||
CFLAGS = -Os -g \
|
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)
|
||||||
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