Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vinniel
makefile
Commits
0a364131
Commit
0a364131
authored
Sep 04, 2017
by
Marcus M. Darden
Browse files
Add "make static" for static analysis testing.
parent
02cbffe3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
0a364131
...
...
@@ -24,7 +24,7 @@ LD_RUN_PATH := /usr/um/gcc-6.2.0/lib64
# TODO
# Change EXECUTABLE to match the command name given in the project spec.
EXECUTABLE
=
project0
EXECUTABLE
=
executable
DEBUG
=
$(EXECUTABLE)
_debug
# designate which compiler to use
...
...
@@ -70,6 +70,11 @@ debug: clean all
profile
:
CXXFLAGS += -pg
profile
:
clean all
# make static - will perform static analysis in the matter currently used
# on the autograder
static
:
cppcheck
--enable
=
all
--suppress
=
missingIncludeSystem
*
.c
*
*
.h
*
# highest target; sews together all objects into executable
all
:
$(EXECUTABLE)
...
...
@@ -161,6 +166,11 @@ EECS281 Advanced Makefile Help
C)
If
test
drivers
need
special
dependencies,
they
must
be
added
manually.
D) IMPORTANT
:
NO SOURCE FILES THAT BEGIN WITH test WILL BE ADDED TO ANY
SUBMISSION
TARBALLS.
*
Static
Analysis
support
A)
Matches
current
autograder
style
grading
tests
B) Usage
:
$$
make
static
endef
export
MAKEFILE_HELP
...
...
@@ -195,6 +205,6 @@ help:
######################
# these targets do not create any files
.PHONY
:
all release debug profile clean alltests partialsubmit fullsubmit help
.PHONY
:
all release debug profile
static
clean alltests partialsubmit fullsubmit help
# disable built-in rules
.SUFFIXES
:
Write
Preview
Supports
Markdown
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