Skip to content

Commit

Permalink
Merge pull request #116 from pzaino/develop
Browse files Browse the repository at this point in the history
merge of cumulative set of improvements from Develop to Main branch
  • Loading branch information
pzaino authored Jan 12, 2023
2 parents 1b5b2b0 + 14e06b4 commit 59228f4
Show file tree
Hide file tree
Showing 5 changed files with 375 additions and 123 deletions.
9 changes: 5 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
# Description: This Makefile is intended to be reusable to build many types of
# C Libraries and it will also build and execute automatically all
# the provided Unit and Integration tests at every build.
# Your can reuse it very easly in your own libraries, just copy it
# in you rlibrary structure and change the parameters in the next
# section "Manualpart of the Makefile", and you're ready to build!
# Your can reuse it very easily in your own libraries, just copy it
# in your library structure and change the parameters in the next
# section "Manual part of the Makefile", and you're ready to build!
###############################################################################

###############################################################################
Expand Down Expand Up @@ -123,6 +123,7 @@ ifeq ($(CC),gcc)
ifeq ($(strip $(CFLAGS)),)
CFLAGS+=-std=c99 -Wall -Wextra -I./src -I./tests -fstack-protector-strong
P_CFLAGS+=
CLIBFLAGS+=-pedantic
endif
ifeq ($(strip $(LDFLAGS)),)
LDFLAGS+=
Expand Down Expand Up @@ -291,7 +292,7 @@ $(OBJF): $(OSRCF)
$(info Building $@ )
$(info ===========================)
# . /opt/rh/devtoolset-10/enable
$(CC) -c -o $@ $< $(CFLAGS) $(CODE_MACROS)
$(CC) -c -o $@ $< $(CLIBFLAGS) $(CFLAGS) $(CODE_MACROS)
@echo ""
@echo "Check if the objcode has been built:"
@ls -alh ./o/*
Expand Down
4 changes: 3 additions & 1 deletion scripts/cpp_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@ fi
# Run CPPCheck:
###############

${cppcheck_cmd} ${start_path}/src/*.c --bug-hunting \
# Old and lo longer used options: --bug-hunting

${cppcheck_cmd} ${start_path}/src/*.c \
--enable=all \
--output-file=./cppcheck_report.txt \
--platform=${Platform} \
Expand Down
Loading

0 comments on commit 59228f4

Please sign in to comment.