Blame sofort/exrules/pe-common.mk

f470d1
DSO_REF_VER      = $(IMPLIB_VER)
f470d1
DSO_REF_SONAME   = $(IMPLIB_SONAME)
f470d1
DSO_REF_SOLINK   = $(IMPLIB_SOLINK)
f470d1
ffea9c
LDFLAGS_IMPLIB	+= -Wl,--output-def
ffea9c
LDFLAGS_IMPLIB	+= -Wl,$(IMPLIB_DEF)
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)