Blame sofort/exrules/pe-common.mk

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