| 1 |
RWINLIB = ../.deps/libcurl |
| 2 |
TARGET = lib$(subst gcc,,$(COMPILED_BY))$(R_ARCH) |
| 3 |
|
| 4 |
PKG_LIBS = \ |
| 5 |
-L$(RWINLIB)/$(TARGET) \ |
| 6 |
-L$(RWINLIB)/lib \ |
| 7 |
-lwinhttp -lcurl -lnghttp2 -lssh2 -lz -lssl -lcrypto -pthread -lgdi32 -lws2_32 -lcrypt32 -lbcrypt -lwldap32 |
| 8 |
|
| 9 |
PKG_CPPFLAGS= \ |
| 10 |
-I$(RWINLIB)/include -DCURL_STATICLIB -DSTRICT_R_HEADERS -DR_NO_REMAP |
| 11 |
|
| 12 |
all: $(SHLIB) cleanup |
| 13 |
|
| 14 |
# Needed for parallel make |
| 15 |
$(OBJECTS): | $(RWINLIB) |
| 16 |
|
| 17 |
$(RWINLIB): |
| 18 |
@"${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" "../tools/winlibs.R" |
| 19 |
|
| 20 |
cleanup: $(SHLIB) |
| 21 |
@rm -Rf $(RWINLIB) |