Blame sofort/exrules/pe-common.mk

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)