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
|
2015-02-19 13:52:49 +00:00
|
|
|
all-local : .install-mesa-links
|
2014-01-29 19:40:25 +00:00
|
|
|
|
2015-02-19 13:52:49 +00:00
|
|
|
.install-mesa-links : $(lib_LTLIBRARIES)
|
2014-03-03 03:04:38 +00:00
|
|
|
$(AM_V_GEN)$(MKDIR_P) $(top_builddir)/$(LIB_DIR); \
|
2014-08-14 23:07:26 +00: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-12-07 19:30:58 +00:00
|
|
|
|
|
|
|
clean-local:
|
|
|
|
for f in $(notdir $(lib_LTLIBRARIES:%.la=.libs/%.$(LIB_EXT)*)); do \
|
|
|
|
$(RM) $(top_builddir)/$(LIB_DIR)/$$f; \
|
|
|
|
done;
|
2015-02-24 14:05:15 +00:00
|
|
|
$(RM) .install-mesa-links
|
2014-12-07 19:30:58 +00:00
|
|
|
|
2014-03-09 11:50:44 +00:00
|
|
|
endif
|
2014-03-12 18:13:02 +00:00
|
|
|
endif
|