blob: 5fe9141d3bfafb9de831bb3cb0569a431a7ef444 [file] [log] [blame]
Kristian Høgsbergcbecd952014-01-29 11:40:25 -08001# 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 Velikov4d8267e2014-03-12 18:13:02 +00004if BUILD_SHARED
Emil Velikov22c13352014-03-09 11:50:44 +00005if HAVE_COMPAT_SYMLINKS
Lucas Stach5c1aac12015-02-19 14:52:49 +01006all-local : .install-mesa-links
Kristian Høgsbergcbecd952014-01-29 11:40:25 -08007
Lucas Stach5c1aac12015-02-19 14:52:49 +01008.install-mesa-links : $(lib_LTLIBRARIES)
Emil Velikovb496ab02014-03-03 03:04:38 +00009 $(AM_V_GEN)$(MKDIR_P) $(top_builddir)/$(LIB_DIR); \
Matt Turner4ccd2a92014-08-14 16:07:26 -070010 for f in $(join $(addsuffix .libs/,$(dir $(lib_LTLIBRARIES))),$(notdir $(lib_LTLIBRARIES:%.la=%.$(LIB_EXT)*))); do \
Kristian Høgsbergcbecd952014-01-29 11:40:25 -080011 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 Turnerb662d522014-12-07 11:30:58 -080017
18clean-local:
19 for f in $(notdir $(lib_LTLIBRARIES:%.la=.libs/%.$(LIB_EXT)*)); do \
20 $(RM) $(top_builddir)/$(LIB_DIR)/$$f; \
21 done;
Emil Velikovfece1472015-02-24 14:05:15 +000022 $(RM) .install-mesa-links
Matt Turnerb662d522014-12-07 11:30:58 -080023
Emil Velikov22c13352014-03-09 11:50:44 +000024endif
Emil Velikov4d8267e2014-03-12 18:13:02 +000025endif