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