## Refer to http://caffe.berkeleyvision.org/installation.html
# Contributions simplifying and improving our build system are welcome!
# CUDA directory contains bin/ and lib/ directories that we need.
CUDA_DIR := /usr/local/cuda-6.5
# CUDA architecture setting: going with all of them.
CUDA_ARCH := -gencode arch=compute_20,code=sm_20 \
-gencode arch=compute_20,code=sm_21 \
-gencode arch=compute_30,code=sm_30 \
-gencode arch=compute_35,code=sm_35
# BLAS choice:
# atlas for ATLAS (default)
# mkl for MKL
# open for OpenBlas
#BLAS := atlas
# Custom (MKL/ATLAS/OpenBLAS) include and lib directories.
# Leave commented to accept the defaults for your choice of BLAS
# (which should work)!
# BLAS_INCLUDE := /path/to/your/blas
# BLAS_LIB := /path/to/your/blas
# This is required only if you will compile the matlab interface.
# MATLAB directory should contain the mex binary in /bin.
# MATLAB_DIR := /usr/local
# MATLAB_DIR := /Applications/MATLAB_R2012b.app
# NOTE: this is required only if you will compile the python interface.
# We need to be able to find Python.h and numpy/arrayobject.h.
#PYTHON_INCLUDE := /usr/local/include/python2.7 \
# /usr/local/lib/python2.7/dist-packages/numpy/core/include
# Anaconda Python distribution is quite popular. Include path:
# PYTHON_INCLUDE := $(HOME)/anaconda/include \
# $(HOME)/anaconda/include/python2.7 \
# $(HOME)/anaconda/lib/python2.7/site-packages/numpy/core/include
# We need to be able to find libpythonX.X.so or .dylib.
#PYTHON_LIB := /usr/local/lib
# PYTHON_LIB := $(HOME)/anaconda/lib
# Uncomment to support layers written in Python (will link against Python libs)
WITH_PYTHON_LAYER := 1
# Whatever else you find you need goes here.
#INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include
#LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib
#BUILD_DIR := build
#DISTRIBUTE_DIR := distribute
# Uncomment for debugging.
# DEBUG := 1
# The ID of the GPU that 'make runtest' will use to run unit tests.
TEST_GPUID := 0
BLAS := open
MATLAB_DIR := /usr/local-linux/matlab
PYTHON_INCLUDE := /rcg/software/Linux/RHEL/6/x86_64/LANG/PYTHON/2.7.6-SYSTEM/include/python2.7 /rcg/software/Linux/RHEL/6/x86_64/LANG/PYTHON/2.7.6-SYSTEM/lib/python2.7/site-packages/numpy/core/include
PYTHON_LIB := /rcg/software/Linux/RHEL/6/x86_64/LANG/PYTHON/2.7.6-SYSTEM/lib
INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/openblas /rcg/software/Linux/RHEL/6/x86_64/LIB/OPENCV/3.0.0-CUDA65/include /rcg/software/Linux/RHEL/6/x86_64/LIB/HDF5/1.8.12/include /rcg/software/Linux/RHEL/6/x86_64/LIB/BOOST/1.57.0/include /rcg/software/Linux/RHEL/6/x86_64/LIB/GLOG/0.3.3/include /rcg/software/Linux/RHEL/6/x86_64/LIB/LEVELDB/20150213/include
LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib /rcg/software/Linux/RHEL/6/x86_64/LIB/OPENCV/3.0.0-CUDA65/lib /rcg/software/Linux/RHEL/6/x86_64/LIB/HDF5/1.8.12/lib /rcg/software/Linux/RHEL/6/x86_64/LIB/BOOST/1.57.0/lib /rcg/software/Linux/RHEL/6/x86_64/LIB/GLOG/0.3.3/lib /rcg/software/Linux/RHEL/6/x86_64/LIB/LEVELDB/20150213/lib
BUILD_DIR := build
DISTRIBUTE_DIR := distribute
# enable pretty build (comment to see full commands)
Q ?= @