firasuke / cross / slibtool

Forked from cross/slibtool 3 months ago
Clone
Text Blame History Raw

LDFLAGS_IMPLIB += -Wl,--output-def LDFLAGS_IMPLIB += -Wl,$(IMPLIB_DEF) LDFLAGS_SHARED += $(LDFLAGS_IMPLIB)

LDFLAGS_SHARED += -Wl,-soname LDFLAGS_SHARED += -Wl,$(DSO_SONAME)

implib: implib-ver implib-soname implib-solink

implib-ver: shared-lib $(IMPLIB_VER)

implib-soname: shared-lib $(IMPLIB_SONAME)

implib-solink: shared-lib $(IMPLIB_SOLINK)

$(IMPLIB_DEF): shared-lib

$(IMPLIB_VER): $(IMPLIB_DEF) $(DLLTOOL) -l $(IMPLIB_VER) -d $(IMPLIB_DEF) -D $(DSO_VER)

$(IMPLIB_SONAME): $(IMPLIB_DEF) $(DLLTOOL) -l $(IMPLIB_SONAME) -d $(IMPLIB_DEF) -D $(DSO_SONAME)

$(IMPLIB_SOLINK): $(IMPLIB_SONAME) rm -f $(IMPLIB_SOLINK).tmp ln -s $(IMP_SONAME) $(IMPLIB_SOLINK).tmp mv $(IMPLIB_SOLINK).tmp $(IMPLIB_SOLINK)

install-implib: install-implib-ver \ install-implib-soname \ install-implib-solink

install-implib-ver: implib-ver mkdir -p $(DESTDIR)$(LIBDIR) cp $(IMPLIB_VER) $(DESTDIR)$(LIBDIR)

install-implib-soname: implib-soname mkdir -p $(DESTDIR)$(LIBDIR) cp $(IMPLIB_SONAME) $(DESTDIR)$(LIBDIR)

install-implib-solink: implib-soname mkdir -p $(DESTDIR)$(LIBDIR) rm -f $@.tmp ln -s $(IMP_SONAME) $@.tmp mv $@.tmp $(DESTDIR)$(LIBDIR)/$(IMP_SOLINK)

clean-implib: rm -f $(SHARED_LIB) rm -f $(IMPLIB_DEF) rm -f $(IMPLIB_VER) rm -f $(IMPLIB_SONAME) rm -f $(IMPLIB_SOLINK)