Blame sofort/exrules/pe-common.mk

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