Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
buildsystem
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Turris
buildsystem
Commits
01b2a68a
Verified
Commit
01b2a68a
authored
Sep 19, 2016
by
Michal 'vorner' Vaner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set proper standard to cppcheck
parent
64a36f0b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
Makefile.top
Makefile.top
+5
-3
No files found.
Makefile.top
View file @
01b2a68a
...
@@ -11,10 +11,12 @@ endif
...
@@ -11,10 +11,12 @@ endif
ifeq
($(LANG_MODE),c)
ifeq
($(LANG_MODE),c)
COMPILER
:=
$(CC)
COMPILER
:=
$(CC)
FLAGS
:=
C
FLAGS
:=
C
STANDARD
:=
c99
endif
endif
ifeq
($(LANG_MODE),cpp)
ifeq
($(LANG_MODE),cpp)
COMPILER
:=
$(CXX)
COMPILER
:=
$(CXX)
FLAGS
:=
CXX
FLAGS
:=
CXX
STANDARD
=
c++11
endif
endif
# Build compiler flags
# Build compiler flags
ifdef
RELEASE
ifdef
RELEASE
...
@@ -35,8 +37,8 @@ endif
...
@@ -35,8 +37,8 @@ endif
ifndef
PLUGIN_PATH
ifndef
PLUGIN_PATH
PLUGIN_PATH
:=
lib
PLUGIN_PATH
:=
lib
endif
endif
CFLAGS_ALL
+=
$(CFLAGS)
--std
=
gnu99
-pedantic
-Wall
-Wextra
-fno-omit-frame-pointer
-DOUTPUT_DIRECTORY
=
\"
$(
abspath
$(O)
)
\"
-DSOURCE_DIRECTORY
=
\"
$(
abspath
$(S)
)
\"
-DPAGE_SIZE
=
$(PAGE_SIZE)
-DPREFIX
=
$(
abspath
$(O)
)
-DMAX_LOG_LEVEL
=
$(MAX_LOG_LEVEL)
-DPLUGIN_PATH
=
\"
$(PLUGIN_PATH)
\"
$
(
addprefix,-D,
$(EXTRA_DEFINES)
)
CFLAGS_ALL
+=
$(CFLAGS)
--std
=
$(STANDARD)
-pedantic
-Wall
-Wextra
-fno-omit-frame-pointer
-DOUTPUT_DIRECTORY
=
\"
$(
abspath
$(O)
)
\"
-DSOURCE_DIRECTORY
=
\"
$(
abspath
$(S)
)
\"
-DPAGE_SIZE
=
$(PAGE_SIZE)
-DPREFIX
=
$(
abspath
$(O)
)
-DMAX_LOG_LEVEL
=
$(MAX_LOG_LEVEL)
-DPLUGIN_PATH
=
\"
$(PLUGIN_PATH)
\"
$
(
addprefix,-D,
$(EXTRA_DEFINES)
)
CXXFLAGS_ALL
+=
$(CXXFLAGS)
$(CFLAGS)
--std
=
gnu++11
-pedantic
-Wall
-Wextra
-fno-omit-frame-pointer
-DOUTPUT_DIRECTORY
=
\"
$(
abspath
$(O)
)
\"
-DSOURCE_DIRECTORY
=
\"
$(
abspath
$(S)
)
\"
-DPAGE_SIZE
=
$(PAGE_SIZE)
-DPREFIX
=
$(
abspath
$(O)
)
-DMAX_LOG_LEVEL
=
$(MAX_LOG_LEVEL)
-DPLUGIN_PATH
=
\"
$(PLUGIN_PATH)
\"
$
(
addprefix,-D,
$(EXTRA_DEFINES)
)
CXXFLAGS_ALL
+=
$(CXXFLAGS)
$(CFLAGS)
--std
=
$(STANDARD)
-pedantic
-Wall
-Wextra
-fno-omit-frame-pointer
-DOUTPUT_DIRECTORY
=
\"
$(
abspath
$(O)
)
\"
-DSOURCE_DIRECTORY
=
\"
$(
abspath
$(S)
)
\"
-DPAGE_SIZE
=
$(PAGE_SIZE)
-DPREFIX
=
$(
abspath
$(O)
)
-DMAX_LOG_LEVEL
=
$(MAX_LOG_LEVEL)
-DPLUGIN_PATH
=
\"
$(PLUGIN_PATH)
\"
$
(
addprefix,-D,
$(EXTRA_DEFINES)
)
LDFLAGS_ALL
+=
$(LDFLAGS)
LDFLAGS_ALL
+=
$(LDFLAGS)
ifdef
STATIC
ifdef
STATIC
...
@@ -253,4 +255,4 @@ FORCE:
...
@@ -253,4 +255,4 @@ FORCE:
cppcheck-%
:
FORCE
cppcheck-%
:
FORCE
$(M)
CCPC
$@
$(M)
CCPC
$@
$(Q)
cppcheck
--enable
=
style
--enable
=
warning
--std
=
c99
--suppress
=
allocaCalled
--suppress
=
obsoleteFunctionsalloca
--template
=
'{file}:{line},{severity},{id},{message}'
--inline-suppr
--error-exitcode
=
1
-q
$(
filter-out
FORCE,
$^
)
$(Q)
cppcheck
--enable
=
style
--enable
=
warning
--std
=
$(STANDARD)
--suppress
=
allocaCalled
--suppress
=
obsoleteFunctionsalloca
--template
=
'{file}:{line},{severity},{id},{message}'
--inline-suppr
--error-exitcode
=
1
-q
$(
filter-out
FORCE,
$^
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment