Fix broken make on windows (#2499)

* fix Makefile for make on windows

* clean up compilation warnings

* fix for `no file name for include` make warning
This commit is contained in:
Vadim Khotilovich
2017-07-08 11:17:31 -05:00
committed by Tianqi Chen
parent ba820847f9
commit 7350085955
3 changed files with 7 additions and 3 deletions

View File

@@ -29,7 +29,9 @@ endif
include $(DMLC_CORE)/make/dmlc.mk
# include the plugins
ifdef XGB_PLUGINS
include $(XGB_PLUGINS)
endif
# set compiler defaults for OSX versus *nix
# let people override either
@@ -70,13 +72,15 @@ endif
ifeq ($(UNAME), Windows)
XGBOOST_DYLIB = lib/libxgboost.dll
JAVAINCFLAGS += -I${JAVA_HOME}/include/win32
else ifeq ($(UNAME), Darwin)
else
ifeq ($(UNAME), Darwin)
XGBOOST_DYLIB = lib/libxgboost.dylib
CFLAGS += -fPIC
else
XGBOOST_DYLIB = lib/libxgboost.so
CFLAGS += -fPIC
endif
endif
ifeq ($(UNAME), Linux)
LDFLAGS += -lrt