File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change
1
+ export GDAL_LIBS =` gdal-config --libs ` ` gdal-config --dep-libs ` -DUSEGDAL
2
+ export GDAL_CFLAGS =` gdal-config --cflags `
1
3
RICHDEM_GIT_HASH ="-NA-"
2
4
RICHDEM_COMPILE_TIME =` date -u +' %Y-%m-%d %H:%M:%S UTC' `
3
5
export RD_CXX_FLAGS =-I../common/richdem/include -DRICHDEM_GIT_HASH="\"$(RICHDEM_GIT_HASH ) \"" -DRICHDEM_COMPILE_TIME="\"$(RICHDEM_COMPILE_TIME ) \""
4
- export CXXFLAGS=--std =c++17 -g -O3 -march=native -Wall -Wno-unknown-pragmas -pipe # -fopenmp #-fsanitize=address
5
- export LIBS=-lnetcdf
6
+ export CXXFLAGS=--std =c++17 -g -O3 -march=native -Wall -Wno-unknown-pragmas -pipe -fopenmp # -fsanitize=address
6
7
export DS_LIB_FLAGS=-Iparallel-hashmap
8
+ # export LIBS=-lnetcdf
7
9
8
10
9
11
a.out : main.cpp DisjointDenseIntSet.hpp dephier.hpp ../common/netcdf.hpp Makefile fill_spill_merge.hpp
10
- $(CXX ) $(CXXFLAGS ) $(DS_LIB_FLAGS ) $(RD_CXX_FLAGS ) main.cpp ../common/richdem/include/richdem/richdem.cpp $(LIBS )
12
+ $(CXX ) $(GDAL_CFLAGS ) $(DS_LIB_FLAGS ) $(CXXFLAGS ) $( RD_CXX_FLAGS ) -o dephier.exe main.cpp ../common/richdem/include/richdem/richdem.cpp $(LIBS ) $( GDAL_LIBS )
11
13
12
14
clean :
13
15
rm a.out
You can’t perform that action at this time.
0 commit comments