|
|
5694f7 |
LDFLAGS_IMPLIB += -Wl,--output-def
|
|
|
5694f7 |
LDFLAGS_IMPLIB += -Wl,$(IMPLIB_DEF)
|
|
|
79e6a8 |
LDFLAGS_SHARED += $(LDFLAGS_IMPLIB)
|
|
|
79e6a8 |
|
|
|
daf95d |
LDFLAGS_SONAME += -Wl,-soname
|
|
|
daf95d |
LDFLAGS_SONAME += -Wl,$(DSO_SONAME)
|
|
|
daf95d |
LDFLAGS_SHARED += $(LDFLAGS_SONAME)
|
|
|
5694f7 |
|
|
|
a21236 |
PE_SUBSYSTEM ?= windows
|
|
|
a21236 |
LDFLAGS_COMMON += -Wl,--subsystem=$(PE_SUBSYSTEM)
|
|
|
a21236 |
|
|
|
4ec485 |
implib: implib-ver package-implib-soname package-implib-solink
|
|
|
5694f7 |
|
|
|
5694f7 |
implib-ver: shared-lib $(IMPLIB_VER)
|
|
|
5694f7 |
|
|
|
5694f7 |
implib-soname: shared-lib $(IMPLIB_SONAME)
|
|
|
5694f7 |
|
|
|
5694f7 |
implib-solink: shared-lib $(IMPLIB_SOLINK)
|
|
|
5694f7 |
|
|
|
5694f7 |
$(IMPLIB_DEF): shared-lib
|
|
|
5694f7 |
|
|
|
4ec485 |
install-implib: install-implib-ver \
|
|
|
4ec485 |
package-install-implib-soname \
|
|
|
4ec485 |
package-install-implib-solink
|
|
|
4ec485 |
|
|
|
4ec485 |
install-implib-ver: implib-ver
|
|
|
4ec485 |
mkdir -p $(DESTDIR)$(LIBDIR)
|
|
|
4ec485 |
cp $(IMPLIB_VER) $(DESTDIR)$(LIBDIR)
|
|
|
4ec485 |
|
|
|
4ec485 |
clean-implib:
|
|
|
4ec485 |
rm -f $(SHARED_LIB)
|
|
|
4ec485 |
rm -f $(IMPLIB_DEF)
|
|
|
4ec485 |
rm -f $(IMPLIB_VER)
|
|
|
4ec485 |
rm -f $(IMPLIB_SONAME)
|
|
|
4ec485 |
rm -f $(IMPLIB_SOLINK)
|
|
|
4ec485 |
|
|
|
4ec485 |
|
|
|
94353c |
ifeq ($(OS_IMPLIB_TOOL),mdso)
|
|
|
94353c |
|
|
|
94353c |
$(IMPLIB_VER): $(IMPLIB_DEF)
|
|
|
94353c |
$(MDSO) -m $(HOST_BITS) -i $(IMPLIB_VER) -n $(DSO_VER) $(IMPLIB_DEF)
|
|
|
94353c |
|
|
|
94353c |
else ifeq ($(OS_IMPLIB_TOOL),dlltool)
|
|
|
94353c |
|
|
|
94353c |
$(IMPLIB_VER): $(IMPLIB_DEF)
|
|
|
94353c |
$(DLLTOOL) -l $(IMPLIB_VER) -d $(IMPLIB_DEF) -D $(DSO_VER)
|
|
|
94353c |
|
|
|
94353c |
endif
|
|
|
94353c |
|
|
|
94353c |
|
|
|
94353c |
|
|
|
4ec485 |
ifeq ($(AVOID_VERSION),yes)
|
|
|
4ec485 |
|
|
|
4ec485 |
package-implib-soname:
|
|
|
4ec485 |
package-implib-solink:
|
|
|
4ec485 |
package-install-implib-soname:
|
|
|
4ec485 |
package-install-implib-solink:
|
|
|
4ec485 |
|
|
|
4ec485 |
else
|
|
|
4ec485 |
|
|
|
4ec485 |
package-implib-soname: implib-soname
|
|
|
4ec485 |
package-implib-solink: implib-solink
|
|
|
4ec485 |
package-install-implib-soname: install-implib-soname
|
|
|
4ec485 |
package-install-implib-solink: install-implib-solink
|
|
|
4ec485 |
|
|
|
4ec485 |
|
|
|
94353c |
ifeq ($(OS_IMPLIB_TOOL),mdso)
|
|
|
94353c |
|
|
|
94353c |
$(IMPLIB_SONAME): $(IMPLIB_DEF)
|
|
|
94353c |
$(MDSO) -m $(HOST_BITS) -i $(IMPLIB_SONAME) -n $(DSO_SONAME) $(IMPLIB_DEF)
|
|
|
94353c |
|
|
|
94353c |
else ifeq ($(OS_IMPLIB_TOOL),dlltool)
|
|
|
94353c |
|
|
|
5694f7 |
$(IMPLIB_SONAME): $(IMPLIB_DEF)
|
|
|
5694f7 |
$(DLLTOOL) -l $(IMPLIB_SONAME) -d $(IMPLIB_DEF) -D $(DSO_SONAME)
|
|
|
5694f7 |
|
|
|
94353c |
endif
|
|
|
94353c |
|
|
|
94353c |
|
|
|
5694f7 |
$(IMPLIB_SOLINK): $(IMPLIB_SONAME)
|
|
|
5694f7 |
rm -f $(IMPLIB_SOLINK).tmp
|
|
|
5694f7 |
ln -s $(IMP_SONAME) $(IMPLIB_SOLINK).tmp
|
|
|
5694f7 |
mv $(IMPLIB_SOLINK).tmp $(IMPLIB_SOLINK)
|
|
|
5694f7 |
|
|
|
5694f7 |
install-implib-soname: implib-soname
|
|
|
5694f7 |
mkdir -p $(DESTDIR)$(LIBDIR)
|
|
|
5694f7 |
cp $(IMPLIB_SONAME) $(DESTDIR)$(LIBDIR)
|
|
|
5694f7 |
|
|
|
5694f7 |
install-implib-solink: implib-soname
|
|
|
5694f7 |
mkdir -p $(DESTDIR)$(LIBDIR)
|
|
|
ffe38a |
rm -f $(IMPLIB_SOLINK).tmp
|
|
|
ffe38a |
ln -s $(IMP_SONAME) $(IMPLIB_SOLINK).tmp
|
|
|
ffe38a |
mv $(IMPLIB_SOLINK).tmp $(DESTDIR)$(LIBDIR)/$(IMP_SOLINK)
|
|
|
5694f7 |
|
|
|
4ec485 |
endif
|