Clone of mesa.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

install-gallium-links.mk 1.2KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # Provide compatibility with scripts for the old Mesa build system for
  2. # a while by putting a link to the driver into /lib of the build tree.
  3. if BUILD_SHARED
  4. if HAVE_COMPAT_SYMLINKS
  5. all-local : .install-gallium-links
  6. .install-gallium-links : $(dri_LTLIBRARIES) $(egl_LTLIBRARIES) $(lib_LTLIBRARIES)
  7. $(AM_V_GEN)$(MKDIR_P) $(top_builddir)/$(LIB_DIR); \
  8. link_dir=$(top_builddir)/$(LIB_DIR)/gallium; \
  9. if test x$(egl_LTLIBRARIES) != x; then \
  10. link_dir=$(top_builddir)/$(LIB_DIR)/egl; \
  11. fi; \
  12. $(MKDIR_P) $$link_dir; \
  13. file_list="$(dri_LTLIBRARIES:%.la=.libs/%.so)"; \
  14. file_list="$$file_list$(egl_LTLIBRARIES:%.la=.libs/%.$(LIB_EXT)*)"; \
  15. file_list="$$file_list$(lib_LTLIBRARIES:%.la=.libs/%.$(LIB_EXT)*)"; \
  16. for f in $$file_list; do \
  17. if test -h .libs/$$f; then \
  18. cp -d $$f $$link_dir; \
  19. else \
  20. ln -f $$f $$link_dir; \
  21. fi; \
  22. done && touch $@
  23. endif
  24. clean-local:
  25. for f in $(notdir $(dri_LTLIBRARIES:%.la=.libs/%.$(LIB_EXT)*)) \
  26. $(notdir $(egl_LTLIBRARIES:%.la=.libs/%.$(LIB_EXT)*)) \
  27. $(notdir $(lib_LTLIBRARIES:%.la=.libs/%.$(LIB_EXT)*)); do \
  28. echo $$f; \
  29. $(RM) $(top_builddir)/$(LIB_DIR)/gallium/$$f; \
  30. done;
  31. rmdir $(top_builddir)/$(LIB_DIR)/gallium || true
  32. $(RM) .install-gallium-links
  33. endif