Blame sofort/exrules/pe-common.mk

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