Commit 0bb8d9ba authored by Zolnierczuk, Piotr's avatar Zolnierczuk, Piotr
Browse files

make it work on ubuntu

parent e18f8877
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -14,3 +14,4 @@ FCFLAGS = -g

#external libraries (set to empty to disable)
GRDIR   = /usr/local/gr
HDF5DIR = /usr/local/Cellar/hdf5/1.14.3_1/lib  # location of pkg-config files
+3 −3
Original line number Diff line number Diff line
@@ -25,9 +25,9 @@ LDLIBS += -lGR
endif

ifneq ($(HDF5DIR),)
export PKG_CONFIG_PATH := $(HDF5DIR)/lib/pkgconfig:$(PKG_CONFIG_PATH)
FCFLAGS += $(shell pkg-config --cflags hdf5_fortran)
LDLIBS  += $(shell pkg-config --libs   hdf5_fortran)
export PKG_CONFIG_PATH := $(HDF5DIR)/pkgconfig:$(PKG_CONFIG_PATH)
FCFLAGS += $(shell pkg-config --cflags      hdf5)
LDLIBS  += $(shell pkg-config --libs-only-L hdf5) -lhdf5_fortran -lhdf5
endif