Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eecs281_project0
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
kevinkh
eecs281_project0
Commits
02311bc9
Commit
02311bc9
authored
9 years ago
by
Waleed Khan
Browse files
Options
Downloads
Patches
Plain Diff
Update to GCC 5.1.0
parent
3c989a70
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+16
-8
16 additions, 8 deletions
Makefile
with
16 additions
and
8 deletions
Makefile
+
16
−
8
View file @
02311bc9
...
...
@@ -40,10 +40,10 @@
# Version 1 - 2014-09-21, David Snider (sniderdj@umich.edu)
# Vertion 0 - ????-??-??, Matt Diffenderfer (mjdiffy@umich.edu)
# enables c++1
1
on CAEN
PATH
:=
/usr/um/gcc-
4.8.3
/bin:
$(
PATH
)
LD_LIBRARY_PATH
:=
/usr/um/gcc-
4.8.3
/lib64
LD_RUN_PATH
:=
/usr/um/gcc-
4.8.3
/lib64
# enables c++1
4
on CAEN
PATH
:=
/usr/um/gcc-
5.1.0
/bin:
$(
PATH
)
LD_LIBRARY_PATH
:=
/usr/um/gcc-
5.1.0
/lib64
LD_RUN_PATH
:=
/usr/um/gcc-
5.1.0
/lib64
# TODO
# Change EXECUTABLE to match the command name given in the project spec.
...
...
@@ -75,7 +75,7 @@ PARTIAL_SUBMITFILE = partialsubmit.tar.gz
FULL_SUBMITFILE
=
fullsubmit.tar.gz
#Default Flags
CXXFLAGS
=
-std
=
c++1
1
-Wall
-Werror
-Wextra
-pedantic
CXXFLAGS
=
-std
=
c++1
4
-Wall
-Werror
-Wextra
-pedantic
# make release - will compile "all" with $(CXXFLAGS) and the -O3 flag
# also defines NDEBUG so that asserts will not check
...
...
@@ -84,9 +84,17 @@ release: all
# make debug - will compile "all" with $(CXXFLAGS) and the -g flag
# also defines DEBUG so that "#ifdef DEBUG /*...*/ #endif" works
debug
:
CXXFLAGS += -g3 -DDEBUG
debug
:
CXXFLAGS += -g3 -DDEBUG
$(UBFLAGS)
debug
:
clean all
# make ubdebug - will compile "debug" using special flags to carry out checks
# for undefined behavior at runtime
# you may also need to run `module load gcc/5.1.0` before
# running your program on CAEN
UBFLAGS
=
-fsanitize
=
undefined
-fsanitize
=
address
-fno-sanitize-recover
ubdebug
:
CXXFLAGS += $(UBFLAGS)
ubdebug
:
debug
# make profile - will compile "all" with $(CXXFLAGS) and the -pg flag
profile
:
CXXFLAGS += -pg
profile
:
clean all
...
...
@@ -213,6 +221,6 @@ project0.o: project0.cpp class.h
######################
# these targets do not create any files
.PHONY
:
all release debug profile clean alltests partialsubmit fullsubmit help
.PHONY
:
all release debug
ubdebug
profile clean alltests partialsubmit fullsubmit help
# disable built-in rules
.SUFFIXES
:
\ No newline at end of file
.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