# Add source files here
EXECUTABLE	:= exo03
# CUDA source files (compiled with cudacc)
CUFILES		:= \
	MyReduction_kernel.cu\
	InitArrayGPU.cu
	
# CUDA dependency files
CU_DEPS		:= \
	MyReduction.h\
	InitArrayGPU.cuh\
	InitArrayFunc.hpp\
	MyReduction_kernel.cuh

# C/C++ source files (compiled with gcc / c++)
CCFILES		:= \
	MyReduction.cpp \
	exo03func.cpp \
	exo03.cpp\
	InitArray.cpp

C_DEPS		:= \
	exo03func.hpp\
	MyReduction.hpp\
	InitArray.hpp\
	InitArrayFunc.hpp\
	MyReduction.h\
	exo03func.h\
	MyReduction.h

CFILES	:= 

# 
GENCODE_ARCH =  -gencode=arch=compute_13,code=\"sm_13,compute_13\" 

include Makefile.CUDA

doc :
	echo "Build listings.pdf..."
	@pdflatex listings.tex
	@pdflatex listings.tex
	@pdflatex listings.tex
	@rm -f *.log *.lol *.aux *.dvi *.out *.toc

CLEAN : clean
	@rm -rf bin obj *.log *.lol *.aux *.dvi *.out listings.pdf *.toc *~
	
run : $(TARGETDIR)/$(EXECUTABLE)
	$(TARGETDIR)/$(EXECUTABLE) -type=float
