1# Copyright 2011-2014 Mario Mulansky
2# Copyright 2011-2012 Karsten Ahnert
3#
4# Distributed under the Boost Software License, Version 1.0.
5# (See accompanying file LICENSE_1_0.txt or
6# copy at http://www.boost.org/LICENSE_1_0.txt)
7
8# make sure BOOST_ROOT is pointing to your boost directory
9# otherwise, set it here:
10# BOOST_ROOT = /path/to/boost
11
12# path to the cuda installation
13CUDA_ROOT = /usr/local/cuda
14# target architecture
15ARCH = sm_13
16
17NVCC = $(CUDA_ROOT)/bin/nvcc
18
19INCLUDES += -I../../include/ -I$(BOOST_ROOT)
20
21NVCCFLAGS = -O3 $(INCLUDES) -arch $(ARCH)
22
23%.o : %.cu
24	$(NVCC) $(NVCCFLAGS) -c $< -o $@
25
26% : %.o
27	$(NVCC) $(NVCCFLAGS) -o $@ $<
28
29
30all : phase_oscillator_chain phase_oscillator_ensemble lorenz_parameters relaxation
31
32
33clean :
34	-rm *~ *.o phase_oscillator_chain phase_oscillator_ensemble lorenz_parameters relaxation
35