OSDN Git Service

configure: use LIB_EXT rather than hardcoded .so
[android-x86/external-mesa.git] / install-gallium-links.mk
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
4 all-local : .libs/install-gallium-links
5
6 .libs/install-gallium-links : $(dri_LTLIBRARIES) $(vdpau_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/%.$(LIB_EXT)*);  \
14         file_list+=$(vdpau_LTLIBRARIES:%.la=.libs/%.$(LIB_EXT)*); \
15         file_list+=$(egl_LTLIBRARIES:%.la=.libs/%.$(LIB_EXT)*); \
16         file_list+=$(lib_LTLIBRARIES:%.la=.libs/%.$(LIB_EXT)*); \
17         for f in $$file_list; do                                \
18                 if test -h .libs/$$f; then                      \
19                         cp -d $$f $$link_dir;                   \
20                 else                                            \
21                         ln -f $$f $$link_dir;                   \
22                 fi;                                             \
23         done && touch $@