Skip to content

Commit

Permalink
Add GDAL libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
r-barnes committed Jun 4, 2019
1 parent 012ff26 commit 29ab1f7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
export GDAL_LIBS=`gdal-config --libs` `gdal-config --dep-libs` -DUSEGDAL
export GDAL_CFLAGS=`gdal-config --cflags`
RICHDEM_GIT_HASH="-NA-"
RICHDEM_COMPILE_TIME=`date -u +'%Y-%m-%d %H:%M:%S UTC'`
export RD_CXX_FLAGS=-I../common/richdem/include -DRICHDEM_GIT_HASH="\"$(RICHDEM_GIT_HASH)\"" -DRICHDEM_COMPILE_TIME="\"$(RICHDEM_COMPILE_TIME)\""
export CXXFLAGS=--std=c++17 -g -O3 -march=native -Wall -Wno-unknown-pragmas -pipe #-fopenmp #-fsanitize=address
export LIBS=-lnetcdf
export CXXFLAGS=--std=c++17 -g -O3 -march=native -Wall -Wno-unknown-pragmas -pipe -fopenmp #-fsanitize=address
export DS_LIB_FLAGS=-Iparallel-hashmap
#export LIBS=-lnetcdf


a.out: main.cpp DisjointDenseIntSet.hpp dephier.hpp ../common/netcdf.hpp Makefile fill_spill_merge.hpp
$(CXX) $(CXXFLAGS) $(DS_LIB_FLAGS) $(RD_CXX_FLAGS) main.cpp ../common/richdem/include/richdem/richdem.cpp $(LIBS)
$(CXX) $(GDAL_CFLAGS) $(DS_LIB_FLAGS) $(CXXFLAGS) $(RD_CXX_FLAGS) -o dephier.exe main.cpp ../common/richdem/include/richdem/richdem.cpp $(LIBS) $(GDAL_LIBS)

clean:
rm a.out

0 comments on commit 29ab1f7

Please sign in to comment.