-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigure
More file actions
30 lines (23 loc) · 731 Bytes
/
configure
File metadata and controls
30 lines (23 loc) · 731 Bytes
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
#!/bin/sh
echo "configure: building makevars"
mysystem=$(uname)
case $mysystem in
Linux )
echo "System detected: $mysystem"
LIBSOCL="-lOpenCL"
;;
Darwin )
echo "System detected: $mysystem"
LIBSOCL="-framework OpenCL"
;;
*)
echo "System is unknown"
LIBSOCL=""
esac
echo "PKG_FLAGS+=-I../inst/include/" > src/Makevars
printf '\nPKG_LIBS+=$(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)' >> src/Makevars
printf '\nPKG_LIBS+=$(shell "${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" \ -e "RcppParallel::RcppParallelLibs()")\n' >> src/Makevars
echo "PKG_LIBS+=$LIBSOCL" >> src/Makevars
printf '\nall: $(SHLIB)\n' >> src/Makevars
echo "" >> src/Makevars
echo "End of configure"