2014-03-02 20:59:39 +00:00
|
|
|
# Provide compatibility with scripts for the old Mesa build system for
|
|
|
|
# a while by putting a link to the driver into /lib of the build tree.
|
|
|
|
|
2014-03-12 18:13:02 +00:00
|
|
|
if BUILD_SHARED
|
2014-03-09 11:50:44 +00:00
|
|
|
if HAVE_COMPAT_SYMLINKS
|
2014-03-02 20:59:39 +00:00
|
|
|
all-local : .libs/install-gallium-links
|
|
|
|
|
2014-06-21 11:31:47 +00:00
|
|
|
.libs/install-gallium-links : $(dri_LTLIBRARIES) $(egl_LTLIBRARIES) $(lib_LTLIBRARIES)
|
2014-03-02 20:59:39 +00:00
|
|
|
$(AM_V_GEN)$(MKDIR_P) $(top_builddir)/$(LIB_DIR); \
|
|
|
|
link_dir=$(top_builddir)/$(LIB_DIR)/gallium; \
|
|
|
|
if test x$(egl_LTLIBRARIES) != x; then \
|
|
|
|
link_dir=$(top_builddir)/$(LIB_DIR)/egl; \
|
|
|
|
fi; \
|
|
|
|
$(MKDIR_P) $$link_dir; \
|
2014-04-07 14:24:46 +00:00
|
|
|
file_list=$(dri_LTLIBRARIES:%.la=.libs/%.so); \
|
2014-03-08 19:48:04 +00:00
|
|
|
file_list+=$(egl_LTLIBRARIES:%.la=.libs/%.$(LIB_EXT)*); \
|
|
|
|
file_list+=$(lib_LTLIBRARIES:%.la=.libs/%.$(LIB_EXT)*); \
|
2014-03-02 20:59:39 +00:00
|
|
|
for f in $$file_list; do \
|
|
|
|
if test -h .libs/$$f; then \
|
|
|
|
cp -d $$f $$link_dir; \
|
|
|
|
else \
|
|
|
|
ln -f $$f $$link_dir; \
|
|
|
|
fi; \
|
|
|
|
done && touch $@
|
2014-03-09 11:50:44 +00:00
|
|
|
endif
|
2014-03-12 18:13:02 +00:00
|
|
|
endif
|