Makefile 833 B

12345678910111213141516171819202122232425262728293031323334
  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. # make sure BOOST_ROOT is pointing to your boost directory
  8. # otherwise, set it here:
  9. # BOOST_ROOT = /path/to/boost
  10. # path to the cuda installation
  11. CUDA_ROOT = /usr/local/cuda
  12. # target architecture
  13. ARCH = sm_13
  14. NVCC = $(CUDA_ROOT)/bin/nvcc
  15. INCLUDES += -I../../include/ -I$(BOOST_ROOT)
  16. NVCCFLAGS = -O3 $(INCLUDES) -arch $(ARCH)
  17. %.o : %.cu
  18. $(NVCC) $(NVCCFLAGS) -c $< -o $@
  19. % : %.o
  20. $(NVCC) $(NVCCFLAGS) -o $@ $<
  21. all : phase_oscillator_chain phase_oscillator_ensemble lorenz_parameters relaxation
  22. clean :
  23. -rm *~ *.o phase_oscillator_chain phase_oscillator_ensemble lorenz_parameters relaxation