diff --git a/Makefile b/Makefile index 5d3f9d527..668c4f9c8 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ OBJ = xgboost.o all: $(BIN) $(OBJ) export LDFLAGS= -pthread -lm -xgboost.o: booster/*.h booster/*.cpp +xgboost.o: booster/xgboost.h booster/xgboost_data.h booster/xgboost.cpp booster/*/*.hpp booster/*/*.h $(BIN) : $(CXX) $(CFLAGS) $(LDFLAGS) -o $@ $(filter %.cpp %.o %.c, $^)