Blame sofort/exrules/pe-common.mk

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