COMMONFLAGS := -DNUMPY_INTERFACE -DRND_MULTIPLIERS_FILE=\"$(shell pwd)/rnd_multipliers_32bit.txt\"
INCLUDES := -I$(PYTHON_INCLUDE) -I$(NUMPY_INCLUDE)
LIB := -latlas -lcblas

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

EXECUTABLE	:= _nvrbm.so

USECUBLAS       := 1
# Add source files here

# CUDA source files (compiled with cudacc)
CUFILES		:= NVRBM.cu  NVRBM_kernel.cu pynvrbm.cu nvmatrix.cu nvmatrix_kernel.cu 
# CUDA dependency files
CU_DEPS		:= NVRBM.cuh  NVRBM_kernel.cuh  pynvrbm.cuh nvmatrix.cuh nvmatrix_kernel.cuh 

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

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


include common-gcc-cuda-2.3.mk
