The next patches are going to combine some of the mapi subdirectories' Makefiles into a single Makefile, giving better build parallelism. lib_LTLIBRARIES will be set to something like lib_LTLIBRARIES = shared-glapi/libglapi.la es2api/libGLESv2.la and the current code in install-lib-links.mk simply prepends .libs/ and replaces the .la in order to create the filenames that it needs to ln/cp into the LIBDIR. This doesn't work when the .la file is actually in a subdirectory. This patch fixes this and puts .libs/ in the right place. Reviewed-by: Kristian Høgsberg <krh@bitplanet.net> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
19 lines
614 B
Makefile
19 lines
614 B
Makefile
# Provide compatibility with scripts for the old Mesa build system for
|
|
# a while by putting a link to the driver into /lib of the build tree.
|
|
|
|
if BUILD_SHARED
|
|
if HAVE_COMPAT_SYMLINKS
|
|
all-local : .libs/install-mesa-links
|
|
|
|
.libs/install-mesa-links : $(lib_LTLIBRARIES)
|
|
$(AM_V_GEN)$(MKDIR_P) $(top_builddir)/$(LIB_DIR); \
|
|
for f in $(join $(addsuffix .libs/,$(dir $(lib_LTLIBRARIES))),$(notdir $(lib_LTLIBRARIES:%.la=%.$(LIB_EXT)*))); do \
|
|
if test -h .libs/$$f; then \
|
|
cp -d $$f $(top_builddir)/$(LIB_DIR); \
|
|
else \
|
|
ln -f $$f $(top_builddir)/$(LIB_DIR); \
|
|
fi; \
|
|
done && touch $@
|
|
endif
|
|
endif
|