init commit

This commit is contained in:
tqchen
2014-02-06 15:50:50 -08:00
parent 225aa9841b
commit aecfbf5096
6 changed files with 371 additions and 0 deletions

25
Makefile Normal file
View File

@@ -0,0 +1,25 @@
export CC = gcc
export CXX = g++
export CFLAGS = -Wall -O3 -msse2
# specify tensor path
BIN =
OBJ = xgboost.o
.PHONY: clean all
all: $(BIN) $(OBJ)
export LDFLAGS= -pthread -lm
xgboost.o: booster/xgboost.cpp
$(BIN) :
$(CXX) $(CFLAGS) $(LDFLAGS) -o $@ $(filter %.cpp %.o %.c, $^)
$(OBJ) :
$(CXX) -c $(CFLAGS) -o $@ $(firstword $(filter %.cpp %.c, $^) )
install:
cp -f -r $(BIN) $(INSTALL_PATH)
clean:
$(RM) $(OBJ) $(BIN) *~