Makefile.cudatest 726 Bytes
Newer Older
karius's avatar
karius committed
1
#CC=gcc
karius's avatar
karius committed
2
NVCC=nvcc
karius's avatar
karius committed
3 4 5 6 7 8 9 10
IMP_INCLUDE = -I/data/git/imp/bin/include/ -I/data/git/imp/build/src/dependency/RMF/include/
EIGEN_INCLUDE = -I/data/tools/eigen-eigen-323c052e1731/
CUDA_INCLUDE = -I./cuda_util_include #most of it comes with nvcc, this is a convenience lib

CFLAGS=-I. $(CUDA_INCLUDE)  $(IMP_INCLUDE) $(EIGEN_INCLUDE) -D_GLIBCXX_USE_CXX11_ABI=0 #the latter is for IMP


BOOST_LINKS = -L/usr/local/lib -lboost_filesystem
karius's avatar
karius committed
11
IMP_LINKS = -L/data/git/imp/build/lib/ -lRMF -limp_core -limp_rmf -limp_kernel -limp_atom -limp_algebra
karius's avatar
karius committed
12

karius's avatar
karius committed
13
LFLAGS=-L. #$(IMP_LINKS) $(BOOST_LINKS) 
karius's avatar
karius committed
14

karius's avatar
karius committed
15 16
all: CRotationGrid.o
	$(NVCC) $(LFLAGS) $(CFLAGS) -o CudaTest CudaTest.cu CRotationGrid.o 
17
CRotationGrid.o: CRotationGrid.cpp
karius's avatar
karius committed
18
	$(NVCC) -c -o $@ $< $(CFLAGS)