Makefile.am 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # StarPU --- Runtime system for heterogeneous multicore architectures.
  2. #
  3. # Copyright (C) 2020-2021 Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria
  4. #
  5. # StarPU 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. # StarPU 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. include $(top_srcdir)/starpu-notests.mk
  17. SUBDIRS =
  18. PYTHON_PY_SRC = $(wildcard $(top_srcdir)/starpupy/src/*py)
  19. PYTHON_PY_BUILD = $(addprefix $(top_builddir)/starpupy/src/starpu/,$(notdir $(PYTHON_PY_SRC)))
  20. PYTHON_C_SRC = $(wildcard $(top_srcdir)/starpupy/src/*c)
  21. PYTHON_C_BUILD = $(addprefix $(top_builddir)/starpupy/src/starpu/,$(notdir $(PYTHON_C_SRC)))
  22. $(top_builddir)/starpupy/src/starpu/%.py: $(abs_top_srcdir)/starpupy/src/%.py
  23. $(MKDIR_P) starpu
  24. $(V_ln) $(LN_S) $< $@
  25. $(top_builddir)/starpupy/src/starpu/%.c: $(abs_top_srcdir)/starpupy/src/%.c
  26. @$(MKDIR_P) starpu
  27. $(V_ln) $(LN_S) $< $@
  28. all: $(PYTHON_PY_BUILD) $(PYTHON_C_BUILD)
  29. $(PYTHON) setup.py build $(PYTHON_SETUP_OPTIONS)
  30. install-exec-local:
  31. @if test -d $(prefix)/lib/python* ; \
  32. then \
  33. chmod u+w $(prefix)/lib/python* ; \
  34. chmod u+w $(prefix)/lib/python*/site-packages ; \
  35. fi
  36. $(PYTHON) setup.py install
  37. if STARPU_BUILD_STARPUPY
  38. clean-local:
  39. $(PYTHON) setup.py clean
  40. rm -fr build
  41. rm -f starpu/*py starpu/*c
  42. endif
  43. distclean-local:
  44. rm -rf build
  45. uninstall-local:
  46. rm -rf $(prefix)/lib/python*/site-packages/starpu*
  47. rm -rf $(prefix)/lib/python*/site-packages/tmp/starpu*
  48. EXTRA_DIST = \
  49. delay.py \
  50. __init__.py \
  51. intermedia.py \
  52. joblib.py \
  53. starpu_task_wrapper.c