Updated response
This commit is contained in:
parent
0a954e09da
commit
af5a611951
5 changed files with 44 additions and 3 deletions
30
Sheet5/Ex2_Second_Attempt/Makefile
Normal file
30
Sheet5/Ex2_Second_Attempt/Makefile
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
#
|
||||
# use GNU-Compiler tools
|
||||
COMPILER=GCC_
|
||||
# alternatively from the shell
|
||||
# export COMPILER=GCC_
|
||||
# or, alternatively from the shell
|
||||
# make COMPILER=GCC_
|
||||
|
||||
# use Intel compilers
|
||||
#COMPILER=ICC_
|
||||
|
||||
# use PGI compilers
|
||||
# COMPILER=PGI_
|
||||
EX=Ex2
|
||||
|
||||
SOURCES = main${EX}.cpp
|
||||
OBJECTS = $(SOURCES:.cpp=.o)
|
||||
|
||||
PROGRAM = main.${COMPILER}
|
||||
|
||||
# uncomment the next to lines for debugging and detailed performance analysis
|
||||
CXXFLAGS += -g -fopenmp
|
||||
LINKFLAGS += -g -fopenmp -ltbb
|
||||
# do not use -pg with PGI compilers
|
||||
|
||||
ifndef COMPILER
|
||||
COMPILER=GCC_
|
||||
endif
|
||||
|
||||
include ${COMPILER}default.mk
|
||||
Loading…
Add table
Add a link
Reference in a new issue