#
# sample Makefile for Intel compiler(s) with OpenMP
#
# B. Massingill, 02/16/2005
#
# first do "source $OMP_INSTALL_DIR/bin/iccvars.sh"
#   (or "source $OMP_INSTALL_DIR/bin/iccvars.csh" if using csh)
# where $OMP_INSTALL_DIR is the directory where you installed
#   the compiler
#
# usage examples:
#   "make hello" to compile "hello.c" to "hello" 
#   "make hello++" to compile "hello++.cpp" to "hello++"
#

ICC         = icc
CLINKER     = $(CC)
ICXX        = icc
OPTFLAGS    = -O -Wall -Wcheck -openmp -wd981 

CFLAGS	  = $(OPTFLAGS) 
CCFLAGS	  = $(CFLAGS) 

%: %.c
	$(ICC) -o $@ $(CFLAGS) $<

%: %.cpp
	$(ICXX) -o $@ $(CCFLAGS) $<