Blame sofort/exrules/pe-common.mk

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