Allow using external dmlc-core (#91)

* Set `RABIT_BUILD_DMLC=1` if use dmlc-core in rabit

* remove dmlc-core
This commit is contained in:
Chen Qin
2019-04-26 00:28:45 -07:00
committed by Jiaming Yuan
parent e3d51d3e62
commit 5c3b36f346
8 changed files with 36 additions and 18 deletions

View File

@@ -1,5 +1,13 @@
OS := $(shell uname)
RABIT_BUILD_DMLC = 0
ifeq ($(RABIT_BUILD_DMLC),1)
DMLC=dmlc-core
else
DMLC=../dmlc-core
endif
export WARNFLAGS= -Wall -Wextra -Wno-unused-parameter -Wno-unknown-pragmas -std=c++11
export CFLAGS = -O3 $(WARNFLAGS) -I $(DMLC)/include -I include/
export LDFLAGS =-Llib
@@ -74,7 +82,6 @@ ALIB= lib/librabit.a lib/librabit_empty.a lib/librabit_mock.a lib/librabit_base.
MPISLIB= lib/librabit_mpi.so
MPIALIB= lib/librabit_mpi.a
HEADERS=src/*.h include/rabit/*.h include/rabit/internal/*.h
DMLC=dmlc-core
.PHONY: clean all install mpi python lint doc doxygen