make it packable

This commit is contained in:
tqchen
2014-08-28 21:46:12 -07:00
parent 2e96bc51f5
commit 3e92eb13d3
4 changed files with 24 additions and 10 deletions

View File

@@ -1,12 +1,13 @@
# package root
PKGROOT=../../
# _*_ mode: Makefile; _*_
export CC = gcc
export CXX = g++
# package root
PKGROOT=../../
# expose these flags to R CMD SHLIB
PKG_CPPFLAGS = -O3 -Wno-unknown-pragmas -DXGBOOST_CUSTOMIZE_ERROR_ -fPIC $(SHLIB_OPENMP_CFLAGS)
PKG_CPPFLAGS += -I$(PKGROOT)
PKG_LIBS = $(SHLIB_OPENMP_CFLAGS)
ifeq ($(no_omp),1)

View File

@@ -1,12 +1,13 @@
# package root
PKGROOT=../../
# _*_ mode: Makefile; _*_
export CC = gcc
export CXX = g++
# package root
PKGROOT=../../
# expose these flags to R CMD SHLIB
PKG_CPPFLAGS = -O3 -Wno-unknown-pragmas -DXGBOOST_CUSTOMIZE_ERROR_ -fopenmp -fPIC $(SHLIB_OPENMP_CFLAGS)
PKG_CPPFLAGS += -I$(PKGROOT)
PKG_LIBS = $(SHLIB_OPENMP_CFLAGS)
# add flag to build native code even in cross compiler

View File

@@ -3,10 +3,10 @@
#include <utility>
#include <cstring>
#include "xgboost_R.h"
#include "../../wrapper/xgboost_wrapper.h"
#include "../../src/utils/utils.h"
#include "../../src/utils/omp.h"
#include "../../src/utils/matrix_csr.h"
#include "wrapper/xgboost_wrapper.h"
#include "src/utils/utils.h"
#include "src/utils/omp.h"
#include "src/utils/matrix_csr.h"
using namespace xgboost;
// implements error handling