Blame sofort/exrules/pe-common.mk

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