]> mj.ucw.cz Git - libucw.git/commitdiff
Makefiles: Allow a prefix and suffix of installed libraries to be specified.
authorMartin Mares <mj@ucw.cz>
Wed, 25 Jun 2008 13:58:17 +0000 (15:58 +0200)
committerMartin Mares <mj@ucw.cz>
Wed, 25 Jun 2008 14:23:56 +0000 (16:23 +0200)
build/Makebottom

index 1a37a35b71903bcd5aa47e4e364ba0cb8376315c..19d1179dc3fcf5ec5416ab1b64f4fa9dcbdbcbb3 100644 (file)
@@ -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 $<