Blame sofort/exrules/pe-common.mk

4170e8
DSO_REF_VER      = $(IMPLIB_VER)
4170e8
DSO_REF_SONAME   = $(IMPLIB_SONAME)
4170e8
DSO_REF_SOLINK   = $(IMPLIB_SOLINK)
4170e8
781ac1
LDFLAGS_IMPLIB	+= -Wl,--output-def
781ac1
LDFLAGS_IMPLIB	+= -Wl,$(IMPLIB_DEF)
9f9f2d
fbdd61
LDFLAGS_SONAME	+= -Wl,-soname
fbdd61
LDFLAGS_SONAME	+= -Wl,$(DSO_SONAME)
fbdd61
LDFLAGS_SHARED	+= $(LDFLAGS_SONAME)
781ac1
06d1f6
DSO_LIBPATH	?= loader
972b59
PE_SUBSYSTEM	?= windows
972b59
LDFLAGS_COMMON	+= -Wl,--subsystem=$(PE_SUBSYSTEM)
972b59
e53924
implib:			implib-ver package-implib-soname package-implib-solink
781ac1
781ac1
implib-ver:		shared-lib $(IMPLIB_VER)
781ac1
781ac1
implib-soname:		shared-lib $(IMPLIB_SONAME)
781ac1
781ac1
implib-solink:		shared-lib $(IMPLIB_SOLINK)
781ac1
781ac1
$(IMPLIB_DEF):		shared-lib
781ac1
e53924
install-implib:		install-implib-ver \
e53924
			package-install-implib-soname \
e53924
			package-install-implib-solink
e53924
e53924
install-implib-ver:	implib-ver
e53924
			mkdir -p $(DESTDIR)$(LIBDIR)
e53924
			cp $(IMPLIB_VER) $(DESTDIR)$(LIBDIR)
e53924
e53924
clean-implib:
e53924
			rm -f $(SHARED_LIB)
e53924
			rm -f $(IMPLIB_DEF)
e53924
			rm -f $(IMPLIB_VER)
e53924
			rm -f $(IMPLIB_SONAME)
e53924
			rm -f $(IMPLIB_SOLINK)