-
Notifications
You must be signed in to change notification settings - Fork 95
/
Makevars.win
34 lines (27 loc) · 955 Bytes
/
Makevars.win
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
VERSION = 3.4.1
RWINLIB = ../windows/gdal3-$(VERSION)
TARGET = lib$(subst gcc,,$(COMPILED_BY))$(R_ARCH)
PKG_CPPFLAGS =\
-I$(RWINLIB)/include \
-DHAVE_PROJ_H
PKG_LIBS = \
-L$(RWINLIB)/$(TARGET) \
-L$(RWINLIB)/lib$(R_ARCH) \
-lgdal -lsqlite3 -lspatialite -lproj -lgeos_c -lgeos \
-ljson-c -lnetcdf -lmariadbclient -lpq -lpgport -lpgcommon \
-lwebp -lcurl -lssh2 -lssl \
-lhdf5_hl -lhdf5 -lexpat -lfreexl -lcfitsio \
-lmfhdf -lhdf -lxdr -lpcre \
-lopenjp2 -ljasper -lpng -ljpeg -ltiff -lgeotiff -lgif -lxml2 -llzma -lz -lzstd \
-lodbc32 -lodbccp32 -liconv -lpsapi -lwldap32 -lsecur32 -lgdi32 -lnormaliz \
-lcrypto -lcrypt32 -lws2_32 -lshlwapi -lbcrypt
CXX_STD = CXX11
all: clean winlibs
winlibs:
mkdir -p ../inst
"${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" --vanilla "../tools/winlibs.R" $(VERSION)
cp -r "$(RWINLIB)/share/gdal" ../inst/
cp -r "$(RWINLIB)/share/proj" ../inst/
clean:
rm -f $(SHLIB) $(OBJECTS)
.PHONY: all winlibs clean