# This configuration was tested on a Centos 7 with the EPEL repository configured # and a Fedora 29 Docker image with the following packages installed: # mingw64-gcc-gfortran mingw64-gcc-c++ mingw64-winpthreads-static # OpenBLAS was built with the following command: # make BINARY=64 CC=x86_64-w64-mingw32-gcc FC=x86_64-w64-mingw32-gfortran HOSTCC=gcc TARGET=CORE2 # The result is a minimal standalone binary running on Windows when built with # make OPENBLAS_LIBPATH= ARCH=Linux-x86-64-mingw64-minimal VERSION=sopt # If you do not have a Fedora or Centos yet but have Docker, you can use the following two commands # to build CP2K via a Fedora Docker container: # docker build -f tools/docker/Dockerfile.build_mingw64 -t cp2k/mingw64:latest tools/docker # docker run --rm -v $(pwd):/cp2k --user $(id -u):$(id -g) cp2k/mingw64 CC = x86_64-w64-mingw32-gcc CXX = x86_64-w64-mingw32-g++ FC = x86_64-w64-mingw32-gfortran LD = x86_64-w64-mingw32-gfortran AR = x86_64-w64-mingw32-ar -r DFLAGS = -D__NO_STATM_ACCESS -D__NO_SOCKETS -D__MINGW CFLAGS = $(DFLAGS) -O2 FCFLAGS = $(DFLAGS) -O2 -ffree-form -ffree-line-length-none \ -ftree-vectorize -funroll-loops -std=f2008 LDFLAGS = $(FCFLAGS) -static LIBS = $(OPENBLAS_LIBPATH)/libopenblas.a