aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/lm3s/Makefile.include6
-rw-r--r--examples/lm4f/Makefile.include6
-rw-r--r--examples/lpc13xx/Makefile.include6
-rw-r--r--examples/lpc17xx/Makefile.include6
-rw-r--r--examples/lpc43xx/Makefile.include6
-rw-r--r--examples/stm32/f1/Makefile.include6
-rw-r--r--examples/stm32/f2/Makefile.include6
-rw-r--r--examples/stm32/f4/Makefile.include6
-rw-r--r--examples/stm32/l1/Makefile.include6
9 files changed, 45 insertions, 9 deletions
diff --git a/examples/lm3s/Makefile.include b/examples/lm3s/Makefile.include
index c9bd33c..c698f0c 100644
--- a/examples/lm3s/Makefile.include
+++ b/examples/lm3s/Makefile.include
@@ -36,7 +36,11 @@ $(info We seem to be building the example in the source directory. Using local l
endif
endif
-CFLAGS += -O0 -g3 -Wall -Wextra -I$(TOOLCHAIN_DIR)/include -fno-common \
+CFLAGS += -O0 -g3 \
+ -Wall -Wextra -Wimplicit-function-declaration \
+ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
+ -Wundef -Wshadow \
+ -I$(TOOLCHAIN_DIR)/include -fno-common \
-mcpu=cortex-m3 -mthumb -MD -DLM3S
LDSCRIPT ?= $(BINARY).ld
LDFLAGS += -L$(TOOLCHAIN_DIR)/lib \
diff --git a/examples/lm4f/Makefile.include b/examples/lm4f/Makefile.include
index 60987e8..91511ce 100644
--- a/examples/lm4f/Makefile.include
+++ b/examples/lm4f/Makefile.include
@@ -37,7 +37,11 @@ endif
endif
ARCH_FLAGS = -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16
-CFLAGS += -O0 -g3 -Wall -Wextra -I$(TOOLCHAIN_DIR)/include \
+CFLAGS += -O0 -g3 \
+ -Wall -Wextra -Wimplicit-function-declaration \
+ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
+ -Wundef -Wshadow \
+ -I$(TOOLCHAIN_DIR)/include \
-fno-common $(ARCH_FLAGS) -MD -DLM4F
LDSCRIPT ?= $(BINARY).ld
LDFLAGS += --static -Wl,--start-group -lc -lgcc -lnosys -Wl,--end-group \
diff --git a/examples/lpc13xx/Makefile.include b/examples/lpc13xx/Makefile.include
index 0b22063..049382f 100644
--- a/examples/lpc13xx/Makefile.include
+++ b/examples/lpc13xx/Makefile.include
@@ -36,7 +36,11 @@ $(info We seem to be building the example in the source directory. Using local l
endif
endif
-CFLAGS += -Os -g -Wall -Wextra -I$(TOOLCHAIN_DIR)/include -fno-common \
+CFLAGS += -Os -g \
+ -Wall -Wextra -Wimplicit-function-declaration \
+ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
+ -Wundef -Wshadow \
+ -I$(TOOLCHAIN_DIR)/include -fno-common \
-mcpu=cortex-m3 -mthumb -MD -DLPC13XX
LDSCRIPT ?= $(BINARY).ld
LDFLAGS += -L$(TOOLCHAIN_DIR)/lib \
diff --git a/examples/lpc17xx/Makefile.include b/examples/lpc17xx/Makefile.include
index 9c38a68..0a29041 100644
--- a/examples/lpc17xx/Makefile.include
+++ b/examples/lpc17xx/Makefile.include
@@ -36,7 +36,11 @@ $(info We seem to be building the example in the source directory. Using local l
endif
endif
-CFLAGS += -O0 -g -Wall -Wextra -I$(TOOLCHAIN_DIR)/include -fno-common \
+CFLAGS += -O0 -g \
+ -Wall -Wextra -Wimplicit-function-declaration \
+ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
+ -Wundef -Wshadow \
+ -I$(TOOLCHAIN_DIR)/include -fno-common \
-mcpu=cortex-m3 -mthumb -MD -DLPC17XX
LDSCRIPT ?= $(BINARY).ld
LDFLAGS += -L$(TOOLCHAIN_DIR)/lib \
diff --git a/examples/lpc43xx/Makefile.include b/examples/lpc43xx/Makefile.include
index cf78538..10121a9 100644
--- a/examples/lpc43xx/Makefile.include
+++ b/examples/lpc43xx/Makefile.include
@@ -39,7 +39,11 @@ $(info We seem to be building the example in the source directory. Using local l
endif
endif
-CFLAGS += -O2 -g -Wall -Wextra -I$(TOOLCHAIN_DIR)/include -fno-common \
+CFLAGS += -O2 -g \
+ -Wall -Wextra -Wimplicit-function-declaration \
+ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
+ -Wundef -Wshadow \
+ -I$(TOOLCHAIN_DIR)/include -fno-common \
-mcpu=cortex-m4 -mthumb -MD \
-mfloat-abi=hard -mfpu=fpv4-sp-d16 -DLPC43XX
LDSCRIPT ?= $(BINARY).ld
diff --git a/examples/stm32/f1/Makefile.include b/examples/stm32/f1/Makefile.include
index 2ae9e27..faf7899 100644
--- a/examples/stm32/f1/Makefile.include
+++ b/examples/stm32/f1/Makefile.include
@@ -38,7 +38,11 @@ endif
endif
ARCH_FLAGS = -mthumb -mcpu=cortex-m3 -msoft-float
-CFLAGS += -Os -g -Wall -Wextra -I$(TOOLCHAIN_DIR)/include \
+CFLAGS += -Os -g \
+ -Wall -Wextra -Wimplicit-function-declaration \
+ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
+ -Wundef -Wshadow \
+ -I$(TOOLCHAIN_DIR)/include \
-fno-common $(ARCH_FLAGS) -MD -DSTM32F1
LDSCRIPT ?= $(BINARY).ld
LDFLAGS += --static -Wl,--start-group -lc -lgcc -lnosys -Wl,--end-group \
diff --git a/examples/stm32/f2/Makefile.include b/examples/stm32/f2/Makefile.include
index 10eed79..e8fea09 100644
--- a/examples/stm32/f2/Makefile.include
+++ b/examples/stm32/f2/Makefile.include
@@ -38,7 +38,11 @@ $(info We seem to be building the example in the source directory. Using local l
endif
endif
-CFLAGS += -Os -g -Wall -Wextra -I$(TOOLCHAIN_DIR)/include \
+CFLAGS += -Os -g \
+ -Wall -Wextra -Wimplicit-function-declaration \
+ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
+ -Wundef -Wshadow \
+ -I$(TOOLCHAIN_DIR)/include \
-fno-common -mcpu=cortex-m3 -mthumb -msoft-float -MD -DSTM32F2
LDSCRIPT ?= $(BINARY).ld
LDFLAGS += --static -Wl,--start-group -lc -lgcc -lnosys -Wl,--end-group \
diff --git a/examples/stm32/f4/Makefile.include b/examples/stm32/f4/Makefile.include
index 815f375..ede4288 100644
--- a/examples/stm32/f4/Makefile.include
+++ b/examples/stm32/f4/Makefile.include
@@ -39,7 +39,11 @@ $(info We seem to be building the example in the source directory. Using local l
endif
endif
-CFLAGS += -Os -g -Wall -Wextra -I$(TOOLCHAIN_DIR)/include \
+CFLAGS += -Os -g \
+ -Wall -Wextra -Wimplicit-function-declaration \
+ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
+ -Wundef -Wshadow \
+ -I$(TOOLCHAIN_DIR)/include \
-fno-common -mcpu=cortex-m4 -mthumb \
-mfloat-abi=hard -mfpu=fpv4-sp-d16 -MD -DSTM32F4
LDSCRIPT ?= $(BINARY).ld
diff --git a/examples/stm32/l1/Makefile.include b/examples/stm32/l1/Makefile.include
index 57b7030..e65cdb5 100644
--- a/examples/stm32/l1/Makefile.include
+++ b/examples/stm32/l1/Makefile.include
@@ -38,7 +38,11 @@ endif
endif
ARCH_FLAGS = -mthumb -mcpu=cortex-m3 -msoft-float
-CFLAGS += -Os -g -Wall -Wextra -I$(TOOLCHAIN_DIR)/include \
+CFLAGS += -Os -g \
+ -Wall -Wextra -Wimplicit-function-declaration \
+ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
+ -Wundef -Wshadow \
+ -I$(TOOLCHAIN_DIR)/include \
-fno-common $(ARCH_FLAGS) -MD -DSTM32L1
LDSCRIPT ?= $(BINARY).ld
LDFLAGS += --static -Wl,--start-group -lc -lgcc -lnosys -Wl,--end-group \