# Time-stamp: </wpw/thrust/rpi/Makefile, Thu, 26 Mar 2015, 12:19:41 EDT, http://wrfranklin.org/>

# Whenever a variable is defined more than once, the last definition wins.

C=-g
C=-O3

O=-Xcompiler -fopenmp -DTHRUST_DEVICE_BACKEND=THRUST_DEVICE_SYSTEM_OMP
O=

V=30
V=35

CXXFLAGS=$C -std=c++11 -march=native -Xcompiler -Wno-unused-result $O

LDLIBS=-lglut -lrt -lm
LDLIBS=-lm -lgomp
LDLIBS=-lm

CUFLAGS=--ptxas-options=-v  -arch=compute_$V $C
CUFLAGS=-arch=compute_$V $C

.SUFFIXES: .cu

.cu: 
	nvcc $(CUFLAGS) $< $(LDLIBS) -o $@ 
