Skip to content
GitLab
About GitLab
GitLab: the DevOps platform
Explore GitLab
Install GitLab
How GitLab compares
Get started
GitLab docs
GitLab Learn
Pricing
Talk to an expert
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Projects
Groups
Snippets
Sign up now
Login
Sign in
Toggle navigation
Menu
Open sidebar
esyang
eecs281_project0
Commits
02311bc9
Commit
02311bc9
authored
Sep 25, 2015
by
Waleed Khan
Browse files
Update to GCC 5.1.0
parent
3c989a70
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
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
:
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment