1
0
mirror of https://github.com/TREX-CoE/trexio.git synced 2024-12-22 20:35:44 +01:00

Using pkg-config for hdf5 in Makefile

This commit is contained in:
Anthony Scemama 2021-04-26 22:46:43 +02:00
parent 728d7bb3ad
commit 08a28c9ae4

View File

@ -9,8 +9,8 @@ CFLAGS=-fPIC -fexceptions -Wall -Werror -Wpedantic -Wextra
FC=gfortran -g FC=gfortran -g
FFLAGS=-fPIC -fcheck=all -Waliasing -Wampersand -Wconversion -Wsurprising -Wintrinsics-std -Wno-tabs -Wintrinsic-shadow -Wline-truncation -Wreal-q-constant -Wuninitialized -fbacktrace -ffpe-trap=zero,overflow,underflow -finit-real=nan FFLAGS=-fPIC -fcheck=all -Waliasing -Wampersand -Wconversion -Wsurprising -Wintrinsics-std -Wno-tabs -Wintrinsic-shadow -Wline-truncation -Wreal-q-constant -Wuninitialized -fbacktrace -ffpe-trap=zero,overflow,underflow -finit-real=nan
LIBS= -L/usr/lib/x86_64-linux-gnu/hdf5/serial/ -lz -lm -lhdf5 -lhdf5_hl -lgfortran LIBS= $(shell pkg-config --libs hdf5) -lhdf5_hl -lgfortran
INCLUDE = -I/usr/include/hdf5/serial INCLUDE = $(shell pkg-config --cflags hdf5)
endif endif
ifeq ($(COMPILER),INTEL) ifeq ($(COMPILER),INTEL)