add win make
This commit is contained in:
parent
c6eaf01a97
commit
47a0e84c5f
27
R-package/src/Makevars.win
Normal file
27
R-package/src/Makevars.win
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
# _*_ mode: Makefile; _*_
|
||||||
|
export CC = gcc
|
||||||
|
export CXX = g++
|
||||||
|
|
||||||
|
# expose these flags to R CMD SHLIB
|
||||||
|
PKG_CPPFLAGS = -O3 -Wno-unknown-pragmas -DXGBOOST_CUSTOMIZE_ERROR_ -fopenmp -fPIC
|
||||||
|
|
||||||
|
ifeq ($(no_omp),1)
|
||||||
|
PKG_CPPFLAGS += -D -DDISABLE_OPENMP
|
||||||
|
endif
|
||||||
|
|
||||||
|
CXXOBJ= xgboost_wrapper.o xgboost_io.o
|
||||||
|
OBJECTS= xgboost_R.o $(CXXOBJ)
|
||||||
|
|
||||||
|
.PHONY: all clean
|
||||||
|
all: $(SHLIB)
|
||||||
|
$(SHLIB): $(OBJECTS)
|
||||||
|
|
||||||
|
xgboost_wrapper.o: ../../wrapper/xgboost_wrapper.cpp
|
||||||
|
xgboost_io.o: ../../src/io/io.cpp
|
||||||
|
|
||||||
|
$(CXXOBJ) :
|
||||||
|
$(CXX) -c $(PKG_CPPFLAGS) -o $@ $(firstword $(filter %.cpp %.c, $^) )
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf *.so *.o *~ *.dll
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user