Blame sofort/exrules/pe-common.mk

8360a8
# pe-common.mk: common PE shared library rules.
8360a8
# this file is covered by COPYING.SOFORT.
8360a8
38579a
DSO_REF_VER      = $(IMPLIB_VER)
38579a
DSO_REF_SONAME   = $(IMPLIB_SONAME)
38579a
DSO_REF_SOLINK   = $(IMPLIB_SOLINK)
38579a
38579a
LDFLAGS_IMPLIB	+= -Wl,--output-def
38579a
LDFLAGS_IMPLIB	+= -Wl,$(IMPLIB_DEF)
38579a
38579a
LDFLAGS_SONAME	+= -Wl,-soname
38579a
LDFLAGS_SONAME	+= -Wl,$(DSO_SONAME)
38579a
LDFLAGS_SHARED	+= $(LDFLAGS_SONAME)
38579a
38579a
DSO_LIBPATH	?= loader
38579a
PE_SUBSYSTEM	?= windows
38579a
LDFLAGS_COMMON	+= -Wl,--subsystem=$(PE_SUBSYSTEM)
38579a
38579a
implib:			implib-ver package-implib-soname package-implib-solink
38579a
38579a
implib-ver:		shared-lib $(IMPLIB_VER)
38579a
38579a
implib-soname:		shared-lib $(IMPLIB_SONAME)
38579a
38579a
implib-solink:		shared-lib $(IMPLIB_SOLINK)
38579a
38579a
$(IMPLIB_DEF):		shared-lib
38579a
38579a
install-implib:		install-implib-ver \
38579a
			package-install-implib-soname \
38579a
			package-install-implib-solink
38579a
38579a
install-implib-ver:	implib-ver
38579a
			mkdir -p $(DESTDIR)$(LIBDIR)
38579a
			cp $(IMPLIB_VER) $(DESTDIR)$(LIBDIR)
38579a
38579a
clean-implib:
38579a
			rm -f $(SHARED_LIB)
38579a
			rm -f $(IMPLIB_DEF)
38579a
			rm -f $(IMPLIB_VER)
38579a
			rm -f $(IMPLIB_SONAME)
38579a
			rm -f $(IMPLIB_SOLINK)