Blame sofort/exrules/pe-common.mk

1b64c0
# pe-common.mk: common PE shared library rules.
1b64c0
# this file is covered by COPYING.SOFORT.
1b64c0
1b64c0
DSO_REF_VER      = $(IMPLIB_VER)
1b64c0
DSO_REF_SONAME   = $(IMPLIB_SONAME)
1b64c0
DSO_REF_SOLINK   = $(IMPLIB_SOLINK)
1b64c0
1b64c0
LDFLAGS_IMPLIB	+= -Wl,--output-def
1b64c0
LDFLAGS_IMPLIB	+= -Wl,$(IMPLIB_DEF)
1b64c0
1b64c0
LDFLAGS_SONAME	+= -Wl,-soname
1b64c0
LDFLAGS_SONAME	+= -Wl,$(DSO_SONAME)
1b64c0
LDFLAGS_SHARED	+= $(LDFLAGS_SONAME)
1b64c0
1b64c0
DSO_LIBPATH	?= loader
1b64c0
PE_SUBSYSTEM	?= windows
1b64c0
LDFLAGS_COMMON	+= -Wl,--subsystem=$(PE_SUBSYSTEM)
1b64c0
1b64c0
implib:			implib-ver package-implib-soname package-implib-solink
1b64c0
1b64c0
implib-ver:		shared-lib $(IMPLIB_VER)
1b64c0
1b64c0
implib-soname:		shared-lib $(IMPLIB_SONAME)
1b64c0
1b64c0
implib-solink:		shared-lib $(IMPLIB_SOLINK)
1b64c0
1b64c0
$(IMPLIB_DEF):		shared-lib
1b64c0
1b64c0
install-implib:		install-implib-ver \
1b64c0
			package-install-implib-soname \
1b64c0
			package-install-implib-solink
1b64c0
1b64c0
install-implib-ver:	implib-ver
1b64c0
			mkdir -p $(DESTDIR)$(LIBDIR)
1b64c0
			cp $(IMPLIB_VER) $(DESTDIR)$(LIBDIR)
1b64c0
1b64c0
clean-implib:
1b64c0
			rm -f $(SHARED_LIB)
1b64c0
			rm -f $(IMPLIB_DEF)
1b64c0
			rm -f $(IMPLIB_VER)
1b64c0
			rm -f $(IMPLIB_SONAME)
1b64c0
			rm -f $(IMPLIB_SOLINK)