checkin makefile

This commit is contained in:
tqchen
2014-08-28 22:21:51 -07:00
parent b0130545a6
commit 03127fc07e
2 changed files with 10 additions and 18 deletions

View File

@@ -1,20 +1,13 @@
# package root
PKGROOT=../../
# _*_ mode: Makefile; _*_
export CC = gcc
export CXX = g++
CXX=`Rcmd config CXX`
CFLAGS=`Rcmd config CFLAGS`
# 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_CPPFLAGS= -DXGBOOST_CUSTOMIZE_ERROR_ -I$(PKGROOT) $(SHLIB_OPENMP_CFLAGS)
XGBFLAG= $(CFLAGS) -DXGBOOST_CUSTOMIZE_ERROR_ -fPIC $(SHLIB_OPENMP_CFLAGS)
PKG_LIBS = $(SHLIB_OPENMP_CFLAGS)
# add flag to build native code even in cross compiler
ifeq "$(WIN)" "64"
PKG_CPPFLAGS += -m64
endif
ifeq ($(no_omp),1)
PKG_CPPFLAGS += -DDISABLE_OPENMP
endif