#### Override object directories to separate similar architectures.
OBJDIR = $(FYS_PLATFORM)$(POSTFIX)
BINDIR = $(OBJDIR)
DEPDIR = Nifl_intel
$(info FYS_PLATFORM detected - building for CAMd/CINF/Niflheim with OBJDIR=$(OBJDIR).)

#### Compilers and compilation flags

# Uncomment to enable OpenMP support
#OPENMPFLAGS = -qopenmp

# C and C++ compiler and compilation flags.  You enable OpenMP support here.
# OpenMP is currently only supported in the parallel version.
CC=icx
CXX=icpx
CFLAGS = -O3 -ftz -xHost -fPIC $(OPENMPFLAGS)
CXXFLAGS = $(CFLAGS)
LIBS = -lsvml -lm $(OPENMPFLAGS)

# Compilation flags for parallel simulations
MPICC=I_MPI_CXX=icpx mpicxx
MPICXX=I_MPI_CXX=icpx mpicxx
MPICFLAGS = $(CFLAGS)
MPICXXFLAGS = $(MPICFLAGS)

# Enable PARPOSTFIX if the compilation flags for parallel and serial code is different.
PARPOSTFIX = -par

# Extra flags to silence compiler warnings in Interface and ParallelInterface
IFACEFLAGS = -Wno-writable-strings

# Extra flags to silence compiler warning for the Brenner potential
#BRENNERCFLAGS =  -Wno-strict-aliasing -Wno-unused

