Blame sofort/exrules/pe-common.mk

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