Blame sofort/exrules/pe-common.mk

5dc983
DSO_REF_VER      = $(IMPLIB_VER)
5dc983
DSO_REF_SONAME   = $(IMPLIB_SONAME)
5dc983
DSO_REF_SOLINK   = $(IMPLIB_SOLINK)
5dc983
5dc983
LDFLAGS_IMPLIB	+= -Wl,--output-def
5dc983
LDFLAGS_IMPLIB	+= -Wl,$(IMPLIB_DEF)
5dc983
5dc983
LDFLAGS_SONAME	+= -Wl,-soname
5dc983
LDFLAGS_SONAME	+= -Wl,$(DSO_SONAME)
5dc983
LDFLAGS_SHARED	+= $(LDFLAGS_SONAME)
5dc983
5dc983
DSO_LIBPATH	?= loader
5dc983
PE_SUBSYSTEM	?= windows
5dc983
LDFLAGS_COMMON	+= -Wl,--subsystem=$(PE_SUBSYSTEM)
5dc983
5dc983
implib:			implib-ver package-implib-soname package-implib-solink
5dc983
5dc983
implib-ver:		shared-lib $(IMPLIB_VER)
5dc983
5dc983
implib-soname:		shared-lib $(IMPLIB_SONAME)
5dc983
5dc983
implib-solink:		shared-lib $(IMPLIB_SOLINK)
5dc983
5dc983
$(IMPLIB_DEF):		shared-lib
5dc983
5dc983
install-implib:		install-implib-ver \
5dc983
			package-install-implib-soname \
5dc983
			package-install-implib-solink
5dc983
5dc983
install-implib-ver:	implib-ver
5dc983
			mkdir -p $(DESTDIR)$(LIBDIR)
5dc983
			cp $(IMPLIB_VER) $(DESTDIR)$(LIBDIR)
5dc983
5dc983
clean-implib:
5dc983
			rm -f $(SHARED_LIB)
5dc983
			rm -f $(IMPLIB_DEF)
5dc983
			rm -f $(IMPLIB_VER)
5dc983
			rm -f $(IMPLIB_SONAME)
5dc983
			rm -f $(IMPLIB_SOLINK)