Makefile.am 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. #
  2. # StarPU
  3. # Copyright (C) INRIA 2009 (see AUTHORS file)
  4. #
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU Lesser General Public License as published by
  7. # the Free Software Foundation; either version 2.1 of the License, or (at
  8. # your option) any later version.
  9. #
  10. # This program is distributed in the hope that it will be useful, but
  11. # WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  13. #
  14. # See the GNU Lesser General Public License in COPYING.LGPL for more details.
  15. #
  16. #
  17. AM_CPPFLAGS = -I$(top_srcdir)/include/ -I$(top_builddir)/include
  18. lib_LTLIBRARIES = libstarpufft.la
  19. EXTRA_DIST = \
  20. starpufft.h \
  21. float.h \
  22. double.h \
  23. cudax_kernels.h \
  24. starpufftx.c \
  25. starpufftx1d.c \
  26. starpufftx2d.c \
  27. cuda_kernels.cu \
  28. cudaf_kernels.cu \
  29. cudax_kernels.cu \
  30. testx.c \
  31. testx_threads.c
  32. libstarpufft_la_SOURCES = starpufft.c starpufftf.c starpufft-common.c
  33. libstarpufft_la_LIBADD = $(top_builddir)/src/libstarpu.la $(FFTW_LIBS) $(FFTWF_LIBS)
  34. libstarpufft_la_CFLAGS = $(FFTWF_CFLAGS)
  35. if USE_CUDA
  36. # TODO define NVCCFLAGS
  37. NVCC ?= nvcc
  38. NVCCFLAGS += -Xcompiler -fPIC -Xlinker -fPIC
  39. cuda_kernels.o: cuda_kernels.cu
  40. $(NVCC) $(AM_CPPFLAGS) $< -c -o $@ --compiler-options -fno-strict-aliasing $(NVCCFLAGS) -I${includedir} -arch sm_13
  41. cudaf_kernels.o: cudaf_kernels.cu
  42. $(NVCC) $(AM_CPPFLAGS) $< -c -o $@ --compiler-options -fno-strict-aliasing $(NVCCFLAGS) -I${includedir}
  43. libstarpufft_la_SOURCES += cuda_kernels.cu cudaf_kernels.cu
  44. am_libstarpufft_la_OBJECTS = cuda_kernels.o cudaf_kernels.o starpufft.lo starpufftf.lo starpufft-common.lo
  45. libstarpufft_la_LIBADD += -lcufft
  46. endif
  47. check_PROGRAMS = test testf
  48. test_LDADD = libstarpufft.la $(top_builddir)/src/libstarpu.la $(FFTW_LIBS)
  49. testf_LDADD = libstarpufft.la $(top_builddir)/src/libstarpu.la $(FFTWF_LIBS)
  50. #test_threads_LDADD = libstarpufft.la $(top_builddir)/src/libstarpu.la -lfftw3_threads
  51. #testf_threads_LDADD = libstarpufft.la $(top_builddir)/src/libstarpu.la -lfftw3f_threads