-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a Cppcheck makefile for parallel building
The one-shot command works, but only use a single core. This build benefits significantly from parallelization, and make is the easiest way to do it. Since the original Cppcheck makefile doesn't do the right thing, supply a custom build.
- Loading branch information
Showing
2 changed files
with
10 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
ext := $(shell find externals -mindepth 1 -type d) | ||
src := $(shell find cli lib externals -name '*.cpp') | ||
obj := $(src:.cpp=.o) | ||
CXXFLAGS := -Os -Ilib $(addprefix -I,$(ext)) | ||
LDFLAGS := -s | ||
LDLIBS := -lshlwapi | ||
cppcheck$(EXE): $(obj) | ||
$(CXX) $(LDFLAGS) -o $@ $(obj) $(LDLIBS) |
644e2cd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<3