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.
5 if HAVE_COMPAT_SYMLINKS
6 all-local
: .libs
/install-gallium-links
8 .libs
/install-gallium-links
: $(dri_LTLIBRARIES
) $(egl_LTLIBRARIES
) $(lib_LTLIBRARIES
)
9 $(AM_V_GEN
)$(MKDIR_P
) $(top_builddir
)/$(LIB_DIR
); \
10 link_dir
=$(top_builddir
)/$(LIB_DIR
)/gallium
; \
11 if
test x
$(egl_LTLIBRARIES
) != x
; then \
12 link_dir
=$(top_builddir
)/$(LIB_DIR
)/egl
; \
14 $(MKDIR_P
) $$link_dir; \
15 file_list
=$(dri_LTLIBRARIES
:%.la
=.libs
/%.so
); \
16 file_list
+=$(egl_LTLIBRARIES
:%.la
=.libs
/%.
$(LIB_EXT
)*); \
17 file_list
+=$(lib_LTLIBRARIES
:%.la
=.libs
/%.
$(LIB_EXT
)*); \
18 for f in
$$file_list; do \
19 if
test -h .libs
/$$f; then \
20 cp
-d
$$f $$link_dir; \
22 ln
-f
$$f $$link_dir; \