Blame sofort/exrules/pe-common.mk

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