-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.mk
32 lines (27 loc) · 1.68 KB
/
config.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
WFS_ROOT := /<path_to_software>/WindGen
# ----------------------------------------------------------------------
# NO MPI
# ----------------------------------------------------------------------
CC := gcc-11
FFTW_CONFIG_FLAGS := --prefix=$(WFS_ROOT)/fftw-3.3.10/
CFLAGS := -O2 -ffast-math -freciprocal-math -I $(WFS_ROOT)/src -I $(WFS_ROOT)/fftw-3.3.10/include
LDFLAGS := -L $(WFS_ROOT)/src -L $(WFS_ROOT)/fftw-3.3.10/lib
LDFLAGS += -lwfs -lfftw3
# ----------------------------------------------------------------------
# MPI
# ----------------------------------------------------------------------
#CC := mpicc
#FFTW_CONFIG_FLAGS := --enable-mpi --prefix=$(WFS_ROOT)/fftw-3.3.10/
#CFLAGS := -DHAVE_MPI -O2 -ffast-math -freciprocal-math -I $(WFS_ROOT)/src -I $(WFS_ROOT)/fftw-3.3.10/include
#LDFLAGS := -L $(WFS_ROOT)/src -L $(WFS_ROOT)/fftw-3.3.10/lib
#LDFLAGS += -lwfs -lfftw3_mpi -lfftw3
# ----------------------------------------------------------------------
# HDF5
# ----------------------------------------------------------------------
HDF5_ROOT := /<path_to_software>/HDF5/HDF5
ZLIB_ROOT := /<path_to_software>/HDF5/zlib
SZIP_ROOT := /<path_to_software>/HDF5/szip
CFLAGS += -DHAVE_HDF5 -I $(HDF5_ROOT)/include
LDFLAGS += $(HDF5_ROOT)/lib/libhdf5.a $(ZLIB_ROOT)/lib/libz.a $(SZIP_ROOT)/lib/libsz.a
# ----------------------------------------------------------------------
LDFLAGS += -pthread -lsz -lz -ldl -lm