-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
mikejiang
committed
Nov 19, 2020
1 parent
2d13cae
commit 8c56869
Showing
3 changed files
with
24 additions
and
43 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,2 +1,15 @@ | ||
PKG_LIBS += -L$(LIB_GSL)$(R_ARCH)/lib -lgsl -lgslcblas -lm | ||
PKG_CPPFLAGS += -I$(RHOME)/src/include -I$(LIB_GSL)$(R_ARCH)/include | ||
VERSION=2.4 | ||
RWINLIB=../windows/gsl-$(VERSION) | ||
|
||
PKG_LIBS += -L$(RWINLIB)/lib$(R_ARCH) -lgsl -lgslcblas -lm | ||
PKG_CPPFLAGS += -I$(RHOME)/src/include -I$(RWINLIB)/include | ||
|
||
all: clean winlibs | ||
|
||
clean: | ||
rm -f $(OBJECTS) $(SHLIB) | ||
|
||
winlibs: | ||
"${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" "../tools/winlibs.R" $(VERSION) | ||
|
||
.PHONY: all winlibs clean |
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,9 @@ | ||
# Build against static libraries from rwinlib | ||
VERSION <- commandArgs(TRUE) | ||
if(!file.exists(sprintf("../windows/gsl-%s/include/gsl/gs_math.h", VERSION))){ | ||
if(getRversion() < "3.3.0") setInternet2() | ||
download.file(sprintf("https://github.com/rwinlib/gsl/archive/v%s.zip", VERSION), "lib.zip", quiet = TRUE) | ||
dir.create("../windows", showWarnings = FALSE) | ||
unzip("lib.zip", exdir = "../windows") | ||
unlink("lib.zip") | ||
} |