Makefile.am 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. # StarPU --- Runtime system for heterogeneous multicore architectures.
  2. #
  3. # Copyright (C) 2009-2013 Université de Bordeaux 1
  4. # Copyright (C) 2010, 2011, 2012, 2013 Centre National de la Recherche Scientifique
  5. # Copyright (C) 2011 INRIA
  6. #
  7. # StarPU is free software; you can redistribute it and/or modify
  8. # it under the terms of the GNU Lesser General Public License as published by
  9. # the Free Software Foundation; either version 2.1 of the License, or (at
  10. # your option) any later version.
  11. #
  12. # StarPU is distributed in the hope that it will be useful, but
  13. # WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  15. #
  16. # See the GNU Lesser General Public License in COPYING.LGPL for more details.
  17. SUBDIRS =
  18. CLEANFILES = *.gcno *.gcda *.linkinfo
  19. EXTRA_DIST = dolib.c
  20. ldflags =
  21. libstarpu_so_version = $(LIBSTARPU_INTERFACE_CURRENT):$(LIBSTARPU_INTERFACE_REVISION):$(LIBSTARPU_INTERFACE_AGE)
  22. if STARPU_HAVE_WINDOWS
  23. LC_MESSAGES=C
  24. export LC_MESSAGES
  25. ldflags += -Xlinker --output-def -Xlinker .libs/libstarpu-@STARPU_EFFECTIVE_VERSION@.def
  26. if STARPU_HAVE_MS_LIB
  27. .libs/libstarpu-@STARPU_EFFECTIVE_VERSION@.lib: libstarpu-@STARPU_EFFECTIVE_VERSION@.la dolib
  28. ./dolib "$(STARPU_MS_LIB)" $(STARPU_MS_LIB_ARCH) .libs/libstarpu-@STARPU_EFFECTIVE_VERSION@.def @STARPU_EFFECTIVE_VERSION@ $(libstarpu_so_version) .libs/libstarpu-@STARPU_EFFECTIVE_VERSION@.lib
  29. all-local: .libs/libstarpu-@STARPU_EFFECTIVE_VERSION@.lib
  30. endif STARPU_HAVE_MS_LIB
  31. install-exec-hook:
  32. $(INSTALL) .libs/libstarpu-@STARPU_EFFECTIVE_VERSION@.def $(DESTDIR)$(libdir)
  33. if STARPU_HAVE_MS_LIB
  34. $(INSTALL) .libs/libstarpu-@STARPU_EFFECTIVE_VERSION@.lib $(DESTDIR)$(libdir)
  35. $(INSTALL) .libs/libstarpu-@STARPU_EFFECTIVE_VERSION@.exp $(DESTDIR)$(libdir)
  36. endif STARPU_HAVE_MS_LIB
  37. endif STARPU_HAVE_WINDOWS
  38. lib_LTLIBRARIES = libstarpu-@STARPU_EFFECTIVE_VERSION@.la
  39. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_CPPFLAGS = -I$(top_srcdir)/include/ -DBUILDING_STARPU
  40. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_CFLAGS = $(GLOBAL_AM_CFLAGS) $(HWLOC_CFLAGS) $(STARPU_CUDA_CPPFLAGS) $(STARPU_OPENCL_CPPFLAGS) $(FXT_CFLAGS)
  41. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_LIBADD = -lm $(HWLOC_LIBS) $(STARPU_OPENCL_LDFLAGS) $(STARPU_CUDA_LDFLAGS) $(FXT_LIBS) $(STARPU_GLPK_LDFLAGS)
  42. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_LDFLAGS = $(ldflags) $(FXT_LDFLAGS) -no-undefined \
  43. -version-info $(libstarpu_so_version)
  44. noinst_HEADERS = \
  45. core/dependencies/data_concurrency.h \
  46. core/dependencies/cg.h \
  47. core/dependencies/tags.h \
  48. core/dependencies/implicit_data_deps.h \
  49. core/progress_hook.h \
  50. core/sched_policy.h \
  51. core/sched_ctx.h \
  52. core/perfmodel/perfmodel.h \
  53. core/perfmodel/regression.h \
  54. core/jobs.h \
  55. core/task.h \
  56. core/workers.h \
  57. core/topology.h \
  58. core/debug.h \
  59. core/errorcheck.h \
  60. core/combined_workers.h \
  61. core/simgrid.h \
  62. core/task_bundle.h \
  63. sched_policies/detect_combined_workers.h \
  64. sched_policies/fifo_queues.h \
  65. sched_policies/deque_queues.h \
  66. sched_policies/stack_queues.h \
  67. datawizard/footprint.h \
  68. datawizard/datawizard.h \
  69. datawizard/data_request.h \
  70. datawizard/filters.h \
  71. datawizard/write_back.h \
  72. datawizard/datastats.h \
  73. datawizard/memstats.h \
  74. datawizard/memory_manager.h \
  75. datawizard/memalloc.h \
  76. datawizard/copy_driver.h \
  77. datawizard/coherency.h \
  78. datawizard/sort_data_handles.h \
  79. datawizard/memory_nodes.h \
  80. datawizard/interfaces/data_interface.h \
  81. common/barrier.h \
  82. common/timing.h \
  83. common/list.h \
  84. common/rwlock.h \
  85. common/starpu_spinlock.h \
  86. common/fxt.h \
  87. common/utils.h \
  88. common/thread.h \
  89. common/barrier.h \
  90. common/uthash.h \
  91. common/barrier_counter.h \
  92. drivers/driver_common/driver_common.h \
  93. drivers/cpu/driver_cpu.h \
  94. drivers/cuda/driver_cuda.h \
  95. drivers/opencl/driver_opencl.h \
  96. drivers/opencl/driver_opencl_utils.h \
  97. debug/starpu_debug_helpers.h \
  98. debug/traces/starpu_fxt.h \
  99. profiling/bound.h \
  100. profiling/profiling.h \
  101. util/starpu_insert_task_utils.h \
  102. util/starpu_data_cpy.h \
  103. util/starpu_task_list_inline.h \
  104. starpu_parameters.h \
  105. top/starpu_top_message_queue.h \
  106. top/starpu_top_connection.h \
  107. top/starpu_top_core.h
  108. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES = \
  109. common/barrier.c \
  110. common/barrier_counter.c \
  111. common/hash.c \
  112. common/rwlock.c \
  113. common/starpu_spinlock.c \
  114. common/timing.c \
  115. common/fxt.c \
  116. common/utils.c \
  117. common/thread.c \
  118. core/jobs.c \
  119. core/task.c \
  120. core/task_bundle.c \
  121. core/workers.c \
  122. core/combined_workers.c \
  123. core/topology.c \
  124. core/debug.c \
  125. core/errorcheck.c \
  126. core/progress_hook.c \
  127. core/disk.c \
  128. core/dependencies/cg.c \
  129. core/dependencies/dependencies.c \
  130. core/dependencies/implicit_data_deps.c \
  131. core/dependencies/tags.c \
  132. core/dependencies/task_deps.c \
  133. core/dependencies/data_concurrency.c \
  134. core/perfmodel/perfmodel_history.c \
  135. core/perfmodel/perfmodel_bus.c \
  136. core/perfmodel/perfmodel.c \
  137. core/perfmodel/perfmodel_print.c \
  138. core/perfmodel/regression.c \
  139. core/sched_policy.c \
  140. core/simgrid.c \
  141. core/sched_ctx.c \
  142. core/parallel_task.c \
  143. sched_policies/eager_central_policy.c \
  144. sched_policies/eager_central_priority_policy.c \
  145. sched_policies/work_stealing_policy.c \
  146. sched_policies/deque_modeling_policy_data_aware.c \
  147. sched_policies/random_policy.c \
  148. sched_policies/stack_queues.c \
  149. sched_policies/deque_queues.c \
  150. sched_policies/fifo_queues.c \
  151. sched_policies/detect_combined_workers.c \
  152. sched_policies/parallel_heft.c \
  153. sched_policies/parallel_eager.c \
  154. drivers/driver_common/driver_common.c \
  155. datawizard/memory_nodes.c \
  156. datawizard/write_back.c \
  157. datawizard/coherency.c \
  158. datawizard/data_request.c \
  159. datawizard/datawizard.c \
  160. datawizard/copy_driver.c \
  161. datawizard/filters.c \
  162. datawizard/sort_data_handles.c \
  163. datawizard/malloc.c \
  164. datawizard/memory_manager.c \
  165. datawizard/memalloc.c \
  166. datawizard/memstats.c \
  167. datawizard/footprint.c \
  168. datawizard/datastats.c \
  169. datawizard/user_interactions.c \
  170. datawizard/reduction.c \
  171. datawizard/interfaces/data_interface.c \
  172. datawizard/interfaces/bcsr_interface.c \
  173. datawizard/interfaces/coo_interface.c \
  174. datawizard/interfaces/csr_interface.c \
  175. datawizard/interfaces/matrix_filters.c \
  176. datawizard/interfaces/matrix_interface.c \
  177. datawizard/interfaces/block_filters.c \
  178. datawizard/interfaces/block_interface.c \
  179. datawizard/interfaces/vector_interface.c \
  180. datawizard/interfaces/bcsr_filters.c \
  181. datawizard/interfaces/csr_filters.c \
  182. datawizard/interfaces/vector_filters.c \
  183. datawizard/interfaces/variable_interface.c \
  184. datawizard/interfaces/void_interface.c \
  185. datawizard/interfaces/multiformat_interface.c \
  186. util/execute_on_all.c \
  187. util/starpu_create_sync_task.c \
  188. util/file.c \
  189. util/misc.c \
  190. util/starpu_data_cpy.c \
  191. util/starpu_insert_task.c \
  192. util/starpu_insert_task_utils.c \
  193. util/starpu_inlines.c \
  194. debug/traces/starpu_fxt.c \
  195. debug/traces/starpu_fxt_mpi.c \
  196. debug/traces/starpu_fxt_dag.c \
  197. debug/traces/starpu_paje.c \
  198. debug/latency.c \
  199. debug/structures_size.c \
  200. profiling/profiling.c \
  201. profiling/bound.c \
  202. profiling/profiling_helpers.c \
  203. top/starpu_top.c \
  204. top/starpu_top_task.c \
  205. top/starpu_top_message_queue.c \
  206. top/starpu_top_connection.c \
  207. worker_collection/worker_list.c
  208. if STARPU_USE_CPU
  209. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/cpu/driver_cpu.c
  210. endif
  211. if STARPU_USE_CUDA
  212. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/cuda/driver_cuda.c
  213. else
  214. if STARPU_SIMGRID
  215. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/cuda/driver_cuda.c
  216. endif
  217. endif
  218. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/cuda/starpu_cublas.c
  219. if STARPU_USE_OPENCL
  220. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/opencl/driver_opencl.c
  221. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/opencl/driver_opencl_utils.c
  222. else
  223. if STARPU_SIMGRID
  224. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/opencl/driver_opencl.c
  225. endif
  226. endif
  227. showcheck:
  228. -cat /dev/null