Makefile.am 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. #
  2. # StarPU
  3. # Copyright (C) Université Bordeaux 1, CNRS 2008-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. SUBDIRS =
  17. CLEANFILES = *.gcno *.gcda *.linkinfo
  18. EXTRA_DIST = dolib.c
  19. ldflags =
  20. if STARPU_HAVE_WINDOWS
  21. LC_MESSAGES=C
  22. export LC_MESSAGES
  23. ldflags += -Xlinker --output-def -Xlinker .libs/libstarpu.def
  24. if STARPU_HAVE_MS_LIB
  25. .libs/libstarpu.lib: libstarpu.la dolib
  26. ./dolib "$(STARPU_MS_LIB)" X86 .libs/libstarpu.def libstarpu-0 .libs/libstarpu.lib
  27. all-local: .libs/libstarpu.lib
  28. endif STARPU_HAVE_MS_LIB
  29. install-exec-hook:
  30. $(INSTALL) .libs/libstarpu.def $(DESTDIR)$(libdir)
  31. if STARPU_HAVE_MS_LIB
  32. $(INSTALL) .libs/libstarpu.lib $(DESTDIR)$(libdir)
  33. $(INSTALL) .libs/libstarpu.exp $(DESTDIR)$(libdir)
  34. endif STARPU_HAVE_MS_LIB
  35. endif STARPU_HAVE_WINDOWS
  36. lib_LTLIBRARIES = libstarpu.la
  37. libstarpu_la_CPPFLAGS = -I$(top_srcdir)/include/
  38. libstarpu_la_CFLAGS = -W -Wall -Wextra $(HWLOC_CFLAGS)
  39. libstarpu_la_LIBADD = -lm $(HWLOC_LIBS)
  40. libstarpu_la_LDFLAGS = $(ldflags) -version-number 0:0:0 -no-undefined
  41. noinst_HEADERS = \
  42. core/dependencies/data_concurrency.h \
  43. core/dependencies/cg.h \
  44. core/dependencies/tags.h \
  45. core/dependencies/htable.h \
  46. core/dependencies/implicit_data_deps.h \
  47. core/sched_policy.h \
  48. core/perfmodel/perfmodel.h \
  49. core/perfmodel/regression.h \
  50. core/jobs.h \
  51. core/task.h \
  52. core/workers.h \
  53. core/topology.h \
  54. core/debug.h \
  55. core/errorcheck.h \
  56. sched_policies/fifo_queues.h \
  57. sched_policies/deque_queues.h \
  58. sched_policies/stack_queues.h \
  59. datawizard/footprint.h \
  60. datawizard/datawizard.h \
  61. datawizard/data_request.h \
  62. datawizard/filters.h \
  63. datawizard/write_back.h \
  64. datawizard/datastats.h \
  65. datawizard/memalloc.h \
  66. datawizard/copy_driver.h \
  67. datawizard/coherency.h \
  68. datawizard/sort_data_handles.h \
  69. datawizard/memory_nodes.h \
  70. datawizard/interfaces/data_interface.h \
  71. common/hash.h \
  72. common/timing.h \
  73. common/htable32.h \
  74. common/list.h \
  75. common/rwlock.h \
  76. common/starpu_spinlock.h \
  77. common/fxt.h \
  78. common/utils.h \
  79. drivers/driver_common/driver_common.h \
  80. drivers/cpu/driver_cpu.h \
  81. drivers/gordon/driver_gordon.h \
  82. drivers/gordon/gordon_interface.h \
  83. drivers/cuda/driver_cuda.h \
  84. drivers/opencl/driver_opencl.h \
  85. drivers/opencl/driver_opencl_utils.h \
  86. profiling/bound.h \
  87. profiling/profiling.h
  88. libstarpu_la_SOURCES = \
  89. common/hash.c \
  90. common/htable32.c \
  91. common/rwlock.c \
  92. common/starpu_spinlock.c \
  93. common/timing.c \
  94. common/fxt.c \
  95. common/utils.c \
  96. core/jobs.c \
  97. core/task.c \
  98. core/workers.c \
  99. core/topology.c \
  100. core/debug.c \
  101. core/errorcheck.c \
  102. core/progress_hook.c \
  103. core/dependencies/cg.c \
  104. core/dependencies/dependencies.c \
  105. core/dependencies/implicit_data_deps.c \
  106. core/dependencies/tags.c \
  107. core/dependencies/task_deps.c \
  108. core/dependencies/htable.c \
  109. core/dependencies/data_concurrency.c \
  110. core/perfmodel/perfmodel_history.c \
  111. core/perfmodel/perfmodel_bus.c \
  112. core/perfmodel/perfmodel.c \
  113. core/perfmodel/regression.c \
  114. core/sched_policy.c \
  115. core/priorities.c \
  116. sched_policies/eager_central_policy.c \
  117. sched_policies/eager_central_priority_policy.c \
  118. sched_policies/work_stealing_policy.c \
  119. sched_policies/deque_modeling_policy_data_aware.c \
  120. sched_policies/random_policy.c \
  121. sched_policies/stack_queues.c \
  122. sched_policies/deque_queues.c \
  123. sched_policies/fifo_queues.c \
  124. drivers/driver_common/driver_common.c \
  125. datawizard/memory_nodes.c \
  126. datawizard/write_back.c \
  127. datawizard/coherency.c \
  128. datawizard/data_request.c \
  129. datawizard/progress.c \
  130. datawizard/copy_driver.c \
  131. datawizard/filters.c \
  132. datawizard/sort_data_handles.c \
  133. datawizard/memalloc.c \
  134. datawizard/footprint.c \
  135. datawizard/datastats.c \
  136. datawizard/user_interactions.c \
  137. datawizard/reduction.c \
  138. datawizard/interfaces/data_interface.c \
  139. datawizard/interfaces/bcsr_interface.c \
  140. datawizard/interfaces/csr_interface.c \
  141. datawizard/interfaces/matrix_filters.c \
  142. datawizard/interfaces/matrix_interface.c \
  143. datawizard/interfaces/block_filters.c \
  144. datawizard/interfaces/block_interface.c \
  145. datawizard/interfaces/vector_interface.c \
  146. datawizard/interfaces/bcsr_filters.c \
  147. datawizard/interfaces/csr_filters.c \
  148. datawizard/interfaces/vector_filters.c \
  149. datawizard/interfaces/variable_interface.c \
  150. datawizard/interfaces/void_interface.c \
  151. util/malloc.c \
  152. util/execute_on_all.c \
  153. util/starpu_create_sync_task.c \
  154. util/starpu_cublas.c \
  155. util/file.c \
  156. util/starpu_data_cpy.c \
  157. util/starpu_insert_task.c \
  158. util/starpu_task_list.c \
  159. debug/latency.c \
  160. profiling/profiling.c \
  161. profiling/bound.c \
  162. profiling/bus_profiling_helpers.c
  163. if STARPU_USE_CPU
  164. libstarpu_la_SOURCES += drivers/cpu/driver_cpu.c
  165. endif
  166. if STARPU_USE_CUDA
  167. libstarpu_la_SOURCES += drivers/cuda/driver_cuda.c
  168. endif
  169. if STARPU_USE_GORDON
  170. libstarpu_la_SOURCES += drivers/gordon/driver_gordon.c
  171. endif
  172. if STARPU_USE_OPENCL
  173. libstarpu_la_SOURCES += drivers/opencl/driver_opencl.c
  174. libstarpu_la_SOURCES += drivers/opencl/driver_opencl_utils.c
  175. endif