COMMONFLAGS := -DNUMPY_INTERFACE
# Set this to point to your python and numpy header dirs
INCLUDES := -I$(PYTHON_INCLUDE) -I$(NUMPY_INCLUDE)
LIB := -lpthread 

PYTHON_26=$(shell python -V 2>&1 | grep 2.6)
ifneq ($(PYTHON_26),)
	LIB += -lpython2.6
else
	LIB += -lpython2.5
endif

EXECUTABLE	:= _convrbm.so

USECUBLAS       := 1
# Add source files here

# CUDA source files (compiled with cudacc)
CUFILES		:= ConvRBM.cu pyConvRBM.cu ConvRBM_kernel.cu nvmatrix.cu nvmatrix_kernel.cu conv.cu conv2.cu conv3.cu conv_util.cu
# CUDA dependency files
CU_DEPS		:= ConvRBM.cuh pyConvRBM.cuh ConvRBM_kernel.cuh nvmatrix.cuh nvmatrix_kernel.cuh conv.cuh conv3.cuh conv_util.cuh

# C/C++ source files (compiled with gcc / c++)
CCFILES		:= matrix.cpp WorkRequest.cpp WorkResult.cpp
C_DEPS		:= matrix.h matrix_funcs.h queue.h thread.h WorkRequest.h WorkResult.h

################################################################################
# Rules and targets


include common-gcc-cuda-2.3.mk
