Reicher82 / toolchain / sbmake

Forked from toolchain/sbmake 3 years ago
Clone

Blame sofort/exrules/pe-common.mk

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