mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
Update debug info
Change pin configs Clean up some code
This commit is contained in:
@@ -7,7 +7,10 @@ endif
|
||||
# Discover the source files to build
|
||||
SOURCE := $(shell find . -type f -name '*.c')
|
||||
SOURCE_CPP := $(shell find . -type f -name '*.cpp')
|
||||
SOURCES := $(shell find . -type f -name '*.c*')
|
||||
S_SRCS := $(shell find . -type f -name '*.s')
|
||||
CPPCHECK := cppcheck
|
||||
CHECKFLAGS := -q --error-exitcode=1
|
||||
|
||||
APP_INC_DIR = ./inc
|
||||
CMSIS_DEVICE_INC_DIR = ./CMSIS/device
|
||||
@@ -172,8 +175,8 @@ OUT_OBJS_CPP=$(addprefix $(OUTPUT_DIR)/,$(OBJS_CPP))
|
||||
OUT_OBJS_S=$(addprefix $(OUTPUT_DIR)/,$(OBJS_S))
|
||||
OUT_HEXFILE=$(addprefix $(HEXFILE_DIR)/,$(OUTPUT_EXE))
|
||||
|
||||
all: $(OUT_HEXFILE).hex
|
||||
|
||||
all: cppcheck.out.xml $(OUT_HEXFILE).hex
|
||||
|
||||
#
|
||||
# The rule to create the target directory
|
||||
#
|
||||
@@ -209,6 +212,8 @@ $(OUT_OBJS_S): $(OUTPUT_DIR)/%.o: %.s Makefile
|
||||
@echo 'Finished building: $<'
|
||||
@echo ' '
|
||||
|
||||
cppcheck.out.xml: $(SOURCES)
|
||||
$(CPPCHECK) $(CHECKFLAGS) $^ -xml >$@
|
||||
|
||||
clean :
|
||||
rm -Rf $(OUTPUT_DIR)
|
||||
|
||||
Reference in New Issue
Block a user