forked from AMReX-Codes/amrex
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
put USE_HDF5 in the GNUMake build system (AMReX-Codes#1047)
- Loading branch information
Showing
4 changed files
with
31 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
CPPFLAGS += -DAMREX_USE_HDF5 | ||
|
||
ifndef AMREX_HDF5_HOME | ||
ifdef HDF5_DIR | ||
AMREX_HDF5_HOME = $(HDF5_DIR) | ||
endif | ||
ifdef HDF5_HOME | ||
AMREX_HDF5_HOME = $(HDF5_HOME) | ||
endif | ||
endif | ||
|
||
LIBRARIES += -lhdf5 -lz -ldl | ||
|
||
ifdef AMREX_HDF5_HOME | ||
HDF5_ABSPATH = $(abspath $(AMREX_HDF5_HOME)) | ||
INCLUDE_LOCATIONS += $(HDF5_ABSPATH)/include | ||
LIBRARY_LOCATIONS += $(HDF5_ABSPATH)/lib | ||
LDFLAGS += -Xlinker=-rpath -Xlinker=$(HDF5_ABSPATH)/lib | ||
endif |