Partially revert "automake: allow only shared builds"
[mesa.git] / install-lib-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 if BUILD_SHARED
5 if HAVE_COMPAT_SYMLINKS
6 all-local : .libs/install-mesa-links
7
8 .libs/install-mesa-links : $(lib_LTLIBRARIES)
9 $(AM_V_GEN)$(MKDIR_P) $(top_builddir)/$(LIB_DIR); \
10 for f in $(lib_LTLIBRARIES:%.la=.libs/%.$(LIB_EXT)*); do \
11 if test -h .libs/$$f; then \
12 cp -d $$f $(top_builddir)/$(LIB_DIR); \
13 else \
14 ln -f $$f $(top_builddir)/$(LIB_DIR); \
15 fi; \
16 done && touch $@
17 endif
18 endif