add mock exec

This commit is contained in:
tqchen
2014-12-21 18:47:56 -08:00
parent 677475529f
commit c8396ca24e
3 changed files with 9 additions and 4 deletions

View File

@@ -17,14 +17,15 @@ else
endif
# specify tensor path
BIN = xgboost
BIN = xgboost
MOCKBIN = xgboost-mock
OBJ = updater.o gbm.o io.o main.o
MPIBIN = xgboost-mpi
SLIB = wrapper/libxgboostwrapper.so
.PHONY: clean all mpi python Rpack librabit librabit_mpi
all: $(BIN) $(OBJ) $(SLIB) mpi
all: $(BIN) $(OBJ) $(SLIB) $(MOCKBIN)
mpi: $(MPIBIN)
# rules to get rabit library
@@ -42,10 +43,14 @@ gbm.o: src/gbm/gbm.cpp src/gbm/*.hpp src/gbm/*.h
io.o: src/io/io.cpp src/io/*.hpp src/utils/*.h src/learner/dmatrix.h src/*.h
main.o: src/xgboost_main.cpp src/utils/*.h src/*.h src/learner/*.hpp src/learner/*.h
xgboost-mpi: updater.o gbm.o io.o main.o librabit_mpi
xgboost-mock: updater.o gbm.o io.o main.o librabit
xgboost: updater.o gbm.o io.o main.o librabit
wrapper/libxgboostwrapper.so: wrapper/xgboost_wrapper.cpp src/utils/*.h src/*.h src/learner/*.hpp src/learner/*.h updater.o gbm.o io.o librabit
$(BIN) :
$(CXX) $(CFLAGS) -o $@ $(filter %.cpp %.o %.c, $^) $(LDFLAGS) -lrabit
$(MOCKBIN) :
$(CXX) $(CFLAGS) -o $@ $(filter %.cpp %.o %.c, $^) $(LDFLAGS) -lrabit_mock
$(SLIB) :