|
|
ffea9c |
LDFLAGS_IMPLIB += -Wl,--output-def
|
|
|
ffea9c |
LDFLAGS_IMPLIB += -Wl,$(IMPLIB_DEF)
|
|
|
ffea9c |
LDFLAGS_SHARED += $(LDFLAGS_IMPLIB)
|
|
|
ffea9c |
|
|
|
a44a95 |
LDFLAGS_SONAME += -Wl,-soname
|
|
|
a44a95 |
LDFLAGS_SONAME += -Wl,$(DSO_SONAME)
|
|
|
a44a95 |
LDFLAGS_SHARED += $(LDFLAGS_SONAME)
|
|
|
ffea9c |
|
|
|
9b9b9e |
DSO_LIBPATH ?= loader
|
|
|
ffea9c |
PE_SUBSYSTEM ?= windows
|
|
|
ffea9c |
LDFLAGS_COMMON += -Wl,--subsystem=$(PE_SUBSYSTEM)
|
|
|
ffea9c |
|
|
|
ffea9c |
implib: implib-ver package-implib-soname package-implib-solink
|
|
|
ffea9c |
|
|
|
ffea9c |
implib-ver: shared-lib $(IMPLIB_VER)
|
|
|
ffea9c |
|
|
|
ffea9c |
implib-soname: shared-lib $(IMPLIB_SONAME)
|
|
|
ffea9c |
|
|
|
ffea9c |
implib-solink: shared-lib $(IMPLIB_SOLINK)
|
|
|
ffea9c |
|
|
|
ffea9c |
$(IMPLIB_DEF): shared-lib
|
|
|
ffea9c |
|
|
|
ffea9c |
install-implib: install-implib-ver \
|
|
|
ffea9c |
package-install-implib-soname \
|
|
|
ffea9c |
package-install-implib-solink
|
|
|
ffea9c |
|
|
|
ffea9c |
install-implib-ver: implib-ver
|
|
|
ffea9c |
mkdir -p $(DESTDIR)$(LIBDIR)
|
|
|
ffea9c |
cp $(IMPLIB_VER) $(DESTDIR)$(LIBDIR)
|
|
|
ffea9c |
|
|
|
ffea9c |
clean-implib:
|
|
|
ffea9c |
rm -f $(SHARED_LIB)
|
|
|
ffea9c |
rm -f $(IMPLIB_DEF)
|
|
|
ffea9c |
rm -f $(IMPLIB_VER)
|
|
|
ffea9c |
rm -f $(IMPLIB_SONAME)
|
|
|
ffea9c |
rm -f $(IMPLIB_SOLINK)
|
|
|
ffea9c |
|
|
|
ffea9c |
|
|
|
18aea8 |
ifeq ($(OS_IMPLIB_TOOL),mdso)
|
|
|
18aea8 |
|
|
|
18aea8 |
$(IMPLIB_VER): $(IMPLIB_DEF)
|
|
|
9b9b9e |
$(MDSO) -m $(HOST_BITS) -i $(IMPLIB_VER) -n $(DSO_VER) -l $(DSO_LIBPATH) $<
|
|
|
18aea8 |
|
|
|
18aea8 |
else ifeq ($(OS_IMPLIB_TOOL),dlltool)
|
|
|
18aea8 |
|
|
|
18aea8 |
$(IMPLIB_VER): $(IMPLIB_DEF)
|
|
|
18aea8 |
$(DLLTOOL) -l $(IMPLIB_VER) -d $(IMPLIB_DEF) -D $(DSO_VER)
|
|
|
18aea8 |
|
|
|
18aea8 |
endif
|
|
|
18aea8 |
|
|
|
18aea8 |
|
|
|
18aea8 |
|
|
|
ffea9c |
ifeq ($(AVOID_VERSION),yes)
|
|
|
ffea9c |
|
|
|
ffea9c |
package-implib-soname:
|
|
|
ffea9c |
package-implib-solink:
|
|
|
ffea9c |
package-install-implib-soname:
|
|
|
ffea9c |
package-install-implib-solink:
|
|
|
ffea9c |
|
|
|
ffea9c |
else
|
|
|
ffea9c |
|
|
|
ffea9c |
package-implib-soname: implib-soname
|
|
|
ffea9c |
package-implib-solink: implib-solink
|
|
|
ffea9c |
package-install-implib-soname: install-implib-soname
|
|
|
ffea9c |
package-install-implib-solink: install-implib-solink
|
|
|
ffea9c |
|
|
|
ffea9c |
|
|
|
18aea8 |
ifeq ($(OS_IMPLIB_TOOL),mdso)
|
|
|
18aea8 |
|
|
|
18aea8 |
$(IMPLIB_SONAME): $(IMPLIB_DEF)
|
|
|
18aea8 |
$(MDSO) -m $(HOST_BITS) -i $(IMPLIB_SONAME) -n $(DSO_SONAME) $(IMPLIB_DEF)
|
|
|
18aea8 |
|
|
|
18aea8 |
else ifeq ($(OS_IMPLIB_TOOL),dlltool)
|
|
|
18aea8 |
|
|
|
ffea9c |
$(IMPLIB_SONAME): $(IMPLIB_DEF)
|
|
|
ffea9c |
$(DLLTOOL) -l $(IMPLIB_SONAME) -d $(IMPLIB_DEF) -D $(DSO_SONAME)
|
|
|
ffea9c |
|
|
|
18aea8 |
endif
|
|
|
18aea8 |
|
|
|
18aea8 |
|
|
|
ffea9c |
$(IMPLIB_SOLINK): $(IMPLIB_SONAME)
|
|
|
ffea9c |
rm -f $(IMPLIB_SOLINK).tmp
|
|
|
ffea9c |
ln -s $(IMP_SONAME) $(IMPLIB_SOLINK).tmp
|
|
|
ffea9c |
mv $(IMPLIB_SOLINK).tmp $(IMPLIB_SOLINK)
|
|
|
ffea9c |
|
|
|
ffea9c |
install-implib-soname: implib-soname
|
|
|
ffea9c |
mkdir -p $(DESTDIR)$(LIBDIR)
|
|
|
ffea9c |
cp $(IMPLIB_SONAME) $(DESTDIR)$(LIBDIR)
|
|
|
ffea9c |
|
|
|
ffea9c |
install-implib-solink: implib-soname
|
|
|
ffea9c |
mkdir -p $(DESTDIR)$(LIBDIR)
|
|
|
491fc9 |
rm -f $(IMPLIB_SOLINK).tmp
|
|
|
491fc9 |
ln -s $(IMP_SONAME) $(IMPLIB_SOLINK).tmp
|
|
|
491fc9 |
mv $(IMPLIB_SOLINK).tmp $(DESTDIR)$(LIBDIR)/$(IMP_SOLINK)
|
|
|
ffea9c |
|
|
|
ffea9c |
endif
|