From: Martin Mares Date: Wed, 25 Jun 2008 13:58:17 +0000 (+0200) Subject: Makefiles: Allow a prefix and suffix of installed libraries to be specified. X-Git-Tag: holmes-import~430 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=7f72bae808529a42bf4655d5a0804186438f0d5f;p=libucw.git Makefiles: Allow a prefix and suffix of installed libraries to be specified. --- diff --git a/build/Makebottom b/build/Makebottom index 1a37a35b..19d1179d 100644 --- a/build/Makebottom +++ b/build/Makebottom @@ -55,13 +55,13 @@ $(o)/%.cf: $(s)/%.cf $(o)/config.mk $(s)/build/genconf $(Q)rm -f $@ $(Q)ar rcs $@ $^ ifdef CONFIG_INSTALL_API - $(Q)$(call symlink,$@,run/lib) + $(Q)$(call symlink-alias,$@,run/lib,$(*F)$(LIBNAME_INFIX).a) endif %.so: $(M)LD $@ $(Q)$(CC) $(LSHARED) $(LDFLAGS) -o $@ $^ - $(Q)$(call symlink,$@,run/lib) + $(Q)$(call symlink-alias,$@,run/lib,$(*F)$(SONAME_INFIX).so$(SONAME_SUFFIX)) $(o)/%.pc: $(s)/%.pc $(o)/%.$(LS) $(M)PC $<