Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
makefile
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EECS 281
makefile
Commits
0a364131
Commit
0a364131
authored
7 years ago
by
Marcus M. Darden
Browse files
Options
Downloads
Patches
Plain Diff
Add "make static" for static analysis testing.
parent
02cbffe3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+12
-2
12 additions, 2 deletions
Makefile
with
12 additions
and
2 deletions
Makefile
+
12
−
2
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
:
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment