Changeset View
Changeset View
Standalone View
Standalone View
Makefile
Context not available. | |||||
# 3. Compiler selection and Flags | # 3. Compiler selection and Flags | ||||
######################################################### | ######################################################### | ||||
# GNU Compiler | # CLANG Compiler | ||||
CC = gcc | CC = clang | ||||
CFLAGS = -fopenmp -lm -O3 | CFLAGS = -fopenmp -S -emit-llvm | ||||
CFLAGS = -fopenmp -lm -O3 | |||||
FC = gfortran | FC = gfortran | ||||
FFLAGS = -fopenmp -lm | FFLAGS = -fopenmp -lm | ||||
FFLAGS = -fopenmp -lm -O3 | FFLAGS = -fopenmp -lm -O3 | ||||
# GNU Compiler | |||||
# CC = gcc | |||||
# CFLAGS = -fopenmp -lm -O3 | |||||
# FC = gfortran | |||||
# FFLAGS = -fopenmp -lm | |||||
# FFLAGS = -fopenmp -lm -O3 | |||||
# Fujitsu Compilers: | # Fujitsu Compilers: | ||||
#CC = fcc | #CC = fcc | ||||
Context not available. | |||||
#FC = uhf90 | #FC = uhf90 | ||||
#FFLAGS = -mp | #FFLAGS = -mp | ||||
# Check path | |||||
FILE=LLVM-IR/lit.tmp | |||||
CHECK_PATH=`cat $(FILE)` | |||||
######################################################################### | ######################################################################### | ||||
help: | help: | ||||
Context not available. | |||||
@echo " cleanlogs" | @echo " cleanlogs" | ||||
@echo " Remove all *.log files from bin/ directory" | @echo " Remove all *.log files from bin/ directory" | ||||
@echo " clean" | @echo " clean" | ||||
@echo " Remove all sources and executables from bin/ directory" | @echo " Clean out and log files" | ||||
@echo " cleanall" | @echo " distclean" | ||||
@echo " Remove the entire bin/ directory" | @echo " Clean arch test directory with clean" | ||||
@echo " veryclean" | |||||
@echo " Remove the entire bin/c directory with distclean" | |||||
omp_my_sleep: | omp_my_sleep: | ||||
mkdir -p bin/c | mkdir -p bin/c | ||||
Context not available. | |||||
ctest: omp_my_sleep omp_testsuite | ctest: omp_my_sleep omp_testsuite | ||||
./runtest.pl --lang=c testlist-c.txt | ./runtest.pl --lang=c testlist-c.txt | ||||
cd bin/; make -j | |||||
ftest: | ftest: | ||||
mkdir -p bin/fortran | mkdir -p bin/fortran | ||||
Context not available. | |||||
cleansrcs: | cleansrcs: | ||||
find bin/ -iname "*.[cf]" -exec rm {} \; | find bin/ -iname "*.[cf]" -exec rm {} \; | ||||
cleanbins: | cleanbins: | ||||
find bin/ -perm /a+x -type f -exec rm {} \; | find bin/c -perm /a+x -type f -exec rm {} \; | ||||
cleanouts: | cleanouts: | ||||
find bin/ -iname "*.out" -exec rm {} \; | find bin/ -iname "*.out" -exec rm {} \; | ||||
cleanlogs: | cleanlogs: | ||||
find bin/ -iname "*.log" -exec rm {} \; | find bin/ -iname "*.log" -exec rm {} \; | ||||
clean: cleansrcs cleanbins | clean: cleanouts cleanlogs | ||||
cleanall: | distclean: clean | ||||
rm -rf bin/ | rm -rf bin/c/* | ||||
rm -rf LLVM-IR/$(CHECK_PATH) | |||||
veryclean: distclean | |||||
rm -rf bin/c/ | |||||
Context not available. |