CC = cc
# switch to cc for sun compiler
# mkl does not compile under cc.  Unresolved circular path?

ObjectFiles = GEMM.o Bench.o
Executable = Bench

MKL_LIBDIR=/home/faculty/struther/intel/mkl/10.2.5.035/lib/32
MKL_LIB = -L$(MKL_LIBDIR) $(MKL_LIBDIR)/libmkl_intel.a -Wl,--start-group $(MKL_LIBDIR)/libmkl_intel_thread.a $(MKL_LIBDIR)/libmkl_core.a -Wl,--end-group -L$(MKL_LIBDIR) -liomp5 -lpthread -lm
#from "make" output of mkl example 
#Note group command to resolve circular dependencies

GSL_LIB= -lgslcblas
# switch GSL to MKL for different libraries

Rand_Test: $(ObjectFiles)
	$(CC) -O3 -o $(Executable) $(ObjectFiles) $(GSL_LIB)
	
clean: 
	rm -f $(ObjectFiles) $(Executable)
