Kristian Høgsberg | cbecd95 | 2014-01-29 11:40:25 -0800 | [diff] [blame] | 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 | |
Emil Velikov | 4d8267e | 2014-03-12 18:13:02 +0000 | [diff] [blame] | 4 | if BUILD_SHARED |
Emil Velikov | 22c1335 | 2014-03-09 11:50:44 +0000 | [diff] [blame] | 5 | if HAVE_COMPAT_SYMLINKS |
Lucas Stach | 5c1aac1 | 2015-02-19 14:52:49 +0100 | [diff] [blame] | 6 | all-local : .install-mesa-links |
Kristian Høgsberg | cbecd95 | 2014-01-29 11:40:25 -0800 | [diff] [blame] | 7 | |
Lucas Stach | 5c1aac1 | 2015-02-19 14:52:49 +0100 | [diff] [blame] | 8 | .install-mesa-links : $(lib_LTLIBRARIES) |
Emil Velikov | b496ab0 | 2014-03-03 03:04:38 +0000 | [diff] [blame] | 9 | $(AM_V_GEN)$(MKDIR_P) $(top_builddir)/$(LIB_DIR); \ |
Matt Turner | 4ccd2a9 | 2014-08-14 16:07:26 -0700 | [diff] [blame] | 10 | for f in $(join $(addsuffix .libs/,$(dir $(lib_LTLIBRARIES))),$(notdir $(lib_LTLIBRARIES:%.la=%.$(LIB_EXT)*))); do \ |
Kristian Høgsberg | cbecd95 | 2014-01-29 11:40:25 -0800 | [diff] [blame] | 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 $@ |
Matt Turner | b662d52 | 2014-12-07 11:30:58 -0800 | [diff] [blame] | 17 | |
| 18 | clean-local: |
| 19 | for f in $(notdir $(lib_LTLIBRARIES:%.la=.libs/%.$(LIB_EXT)*)); do \ |
| 20 | $(RM) $(top_builddir)/$(LIB_DIR)/$$f; \ |
| 21 | done; |
Emil Velikov | fece147 | 2015-02-24 14:05:15 +0000 | [diff] [blame] | 22 | $(RM) .install-mesa-links |
Matt Turner | b662d52 | 2014-12-07 11:30:58 -0800 | [diff] [blame] | 23 | |
Emil Velikov | 22c1335 | 2014-03-09 11:50:44 +0000 | [diff] [blame] | 24 | endif |
Emil Velikov | 4d8267e | 2014-03-12 18:13:02 +0000 | [diff] [blame] | 25 | endif |