2014-01-29 19:40:25 +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-01-29 19:40:25 +00:00
|
|
|
all-local : .libs/install-mesa-links
|
|
|
|
|
|
|
|
.libs/install-mesa-links : $(lib_LTLIBRARIES)
|
2014-03-03 03:04:38 +00:00
|
|
|
$(AM_V_GEN)$(MKDIR_P) $(top_builddir)/$(LIB_DIR); \
|
2014-08-15 00:07:26 +01:00
|
|
|
for f in $(join $(addsuffix .libs/,$(dir $(lib_LTLIBRARIES))),$(notdir $(lib_LTLIBRARIES:%.la=%.$(LIB_EXT)*))); do \
|
2014-01-29 19:40:25 +00:00
|
|
|
if test -h .libs/$$f; then \
|
|
|
|
cp -d $$f $(top_builddir)/$(LIB_DIR); \
|
|
|
|
else \
|
|
|
|
ln -f $$f $(top_builddir)/$(LIB_DIR); \
|
|
|
|
fi; \
|
|
|
|
done && touch $@
|
2014-03-09 11:50:44 +00:00
|
|
|
endif
|
2014-03-12 18:13:02 +00:00
|
|
|
endif
|