#--------------------------------------------------------------------------- # # Makefile for executing the Ganlib non-regression tests # Author : A. Hebert (2018-5-10) # #--------------------------------------------------------------------------- # OS = $(shell uname -s | cut -d"_" -f1) ifneq (,$(filter $(OS),SunOS AIX)) MAKE = gmake endif ifeq ($(openmp),1) nomp = 16 else nomp = 0 endif ifeq ($(intel),1) fcompilerSuite = intel else ifeq ($(nvidia),1) fcompilerSuite = nvidia else ifeq ($(llvm),1) fcompilerSuite = llvm else fcompilerSuite = custom endif endif endif all : $(MAKE) -C src clean : $(MAKE) clean -C src tests : ./rganlib -c $(fcompilerSuite) -p $(nomp) -q testgan1.x2m ./rganlib -c $(fcompilerSuite) -p $(nomp) -q testgan2.x2m ./rganlib -c $(fcompilerSuite) -p $(nomp) -q testgan3.x2m ifeq ($(hdf5),1) ./rganlib -c $(fcompilerSuite) -p $(nomp) -q testgan4.x2m endif