Blame sofort/exrules/pe-common.mk

12fcaa
# pe-common.mk: common PE shared library rules.
12fcaa
# this file is covered by COPYING.SOFORT.
12fcaa
48a7ea
DSO_REF_VER      = $(IMPLIB_VER)
48a7ea
DSO_REF_SONAME   = $(IMPLIB_SONAME)
48a7ea
DSO_REF_SOLINK   = $(IMPLIB_SOLINK)
48a7ea
9c558e
LDFLAGS_IMPLIB	+= -Wl,--output-def
9c558e
LDFLAGS_IMPLIB	+= -Wl,$(IMPLIB_DEF)
9c558e
670ee5
LDFLAGS_SONAME	+= -Wl,-soname
670ee5
LDFLAGS_SONAME	+= -Wl,$(DSO_SONAME)
670ee5
LDFLAGS_SHARED	+= $(LDFLAGS_SONAME)
9c558e
65af99
DSO_LIBPATH	?= loader
7a1449
PE_SUBSYSTEM	?= windows
7a1449
LDFLAGS_COMMON	+= -Wl,--subsystem=$(PE_SUBSYSTEM)
7a1449
9c558e
implib:			implib-ver package-implib-soname package-implib-solink
9c558e
9c558e
implib-ver:		shared-lib $(IMPLIB_VER)
9c558e
9c558e
implib-soname:		shared-lib $(IMPLIB_SONAME)
9c558e
9c558e
implib-solink:		shared-lib $(IMPLIB_SOLINK)
9c558e
9c558e
$(IMPLIB_DEF):		shared-lib
9c558e
9c558e
install-implib:		install-implib-ver \
9c558e
			package-install-implib-soname \
9c558e
			package-install-implib-solink
9c558e
9c558e
install-implib-ver:	implib-ver
9c558e
			mkdir -p $(DESTDIR)$(LIBDIR)
9c558e
			cp $(IMPLIB_VER) $(DESTDIR)$(LIBDIR)
9c558e
9c558e
clean-implib:
9c558e
			rm -f $(SHARED_LIB)
9c558e
			rm -f $(IMPLIB_DEF)
9c558e
			rm -f $(IMPLIB_VER)
9c558e
			rm -f $(IMPLIB_SONAME)
9c558e
			rm -f $(IMPLIB_SOLINK)